Search Options

Results per page
Sort
Preferred Languages
Advance

Results 471 - 480 of 531 for hasNet (0.06 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

        client.processNextFrame() // Pong.
    
        // After 1000ms the client will attempt a ping 2, but we don't process it. That'll cause the
        // client to fail at 1500ms when it's time to send ping 3 because pong 2 hasn't been received.
        taskFaker.advanceUntil(ns(1000L))
        taskFaker.advanceUntil(ns(1500L))
        client.listener.assertFailure(
          SocketTimeoutException::class.java,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 01:59:58 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableList.java

       */
      public static <E> ImmutableList<E> copyOf(Iterator<? extends E> elements) {
        // We special-case for 0 or 1 elements, but going further is madness.
        if (!elements.hasNext()) {
          return of();
        }
        E first = elements.next();
        if (!elements.hasNext()) {
          return of(first);
        } else {
          return new ImmutableList.Builder<E>().add(first).addAll(elements).build();
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        assertEquals(0, (int) numberOrdering.min(iterator));
        assertFalse(iterator.hasNext());
      }
    
      public void testIteratorMaxExhaustsIterator() {
        List<Integer> ints = Lists.newArrayList(9, 0, 3, 5);
        Iterator<Integer> iterator = ints.iterator();
        assertEquals(9, (int) numberOrdering.max(iterator));
        assertFalse(iterator.hasNext());
      }
    
      public void testIterableMinAndMax() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/OrderingTest.java

        assertEquals(0, (int) numberOrdering.min(iterator));
        assertFalse(iterator.hasNext());
      }
    
      public void testIteratorMaxExhaustsIterator() {
        List<Integer> ints = Lists.newArrayList(9, 0, 3, 5);
        Iterator<Integer> iterator = ints.iterator();
        assertEquals(9, (int) numberOrdering.max(iterator));
        assertFalse(iterator.hasNext());
      }
    
      public void testIterableMinAndMax() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

                  countMap.entrySet().iterator();
    
              @Override
              @CheckForNull
              protected Entry<E> computeNext() {
                while (true) {
                  if (!mapEntries.hasNext()) {
                    return endOfData();
                  }
                  Map.Entry<E, AtomicInteger> mapEntry = mapEntries.next();
                  int count = mapEntry.getValue().get();
                  if (count != 0) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/security/simple-oauth2.md

    ##### Porque usar hashing de senha
    
    Se o seu banco de dados for roubado, o ladrão não terá as senhas em texto simples dos seus usuários, apenas os hashes.
    
    Assim, o ladrão não poderá tentar usar essas mesmas senhas em outro sistema (como muitos usuários usam a mesma senha em todos os lugares, isso seria perigoso).
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="82-85"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 12:17:45 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

      @CheckForNull
      public K lastKey() {
        return sortedDelegate.lastKey();
      }
    
      @CheckForNull
      K higher(K k) {
        Iterator<K> iterator = keySet().tailSet(k).iterator();
        while (iterator.hasNext()) {
          K tmp = iterator.next();
          if (comparator().compare(k, tmp) < 0) {
            return tmp;
          }
        }
        return null;
      }
    
      public ImmutableSortedMap<K, V> headMap(K toKey) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/hash/Crc32cHashFunction.java

    final class Crc32cHashFunction extends AbstractHashFunction {
      static final HashFunction CRC_32_C = new Crc32cHashFunction();
    
      @Override
      public int bits() {
        return 32;
      }
    
      @Override
      public Hasher newHasher() {
        return new Crc32cHasher();
      }
    
      @Override
      public String toString() {
        return "Hashing.crc32c()";
      }
    
      static final class Crc32cHasher extends AbstractStreamingHasher {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 21.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/StatsAccumulator.java

       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision)
       */
      public void addAll(Iterator<? extends Number> values) {
        while (values.hasNext()) {
          add(values.next().doubleValue());
        }
      }
    
      /**
       * Adds the given values to the dataset.
       *
       * @param values a series of values
       */
      public void addAll(double... values) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        tester.testAllPublicInstanceMethods(BloomFilter.create(Funnels.unencodedCharsFunnel(), 100));
        tester.testAllPublicStaticMethods(BloomFilter.class);
      }
    
      /** Tests that we never get an optimal hashes number of zero. */
      public void testOptimalHashes() {
        for (int n = 1; n < 1000; n++) {
          for (int m = 0; m < 1000; m++) {
            assertTrue(BloomFilter.optimalNumOfHashFunctions(n, m) > 0);
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top