Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 364 for hints_ (0.04 sec)

  1. guava-tests/benchmark/com/google/common/cache/LoadingCacheSingleThreadBenchmark.java

    package com.google.common.cache;
    
    import com.google.caliper.AfterExperiment;
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.common.primitives.Ints;
    import java.util.Random;
    import java.util.concurrent.atomic.AtomicLong;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Single-threaded benchmark for {@link LoadingCache}.
     *
     * @author Charles Fry
     */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java

        Random random = new Random();
    
        int sizeRemaining = size;
    
        // TODO(kevinb): generate better test contents for multisets
        while (sizeRemaining > 0) {
          // The JVM will return interned values for small ints.
          Integer value = random.nextInt(1000) + 128;
          int count = min(random.nextInt(10) + 1, sizeRemaining);
          sizeRemaining -= count;
          hashMultiset.add(value, count);
          linkedHashMultiset.add(value, count);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

                assertEquals(EncryptionNegotiateContext.CIPHER_AES128_GCM, SMBUtil.readInt2(buffer, offset + 2));
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 1, 3, 5, 10, 20 })
            @DisplayName("Should encode various cipher counts correctly")
            void testEncodeVariousCipherCounts(int cipherCount) {
                int[] ciphers = new int[cipherCount];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/GcFinalization.java

     * </ul>
     *
     * <p>This class uses (possibly repeated) invocations of {@link java.lang.System#gc()} to cause
     * finalization to happen. However, a call to {@code System.gc()} is specified to be no more than a
     * hint, so this technique may fail at the whim of the JDK implementation, for example if a user
     * specified the JVM flag {@code -XX:+DisableExplicitGC}. But in practice, it works very well for
     * ordinary tests.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java

    package com.google.common.collect;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import com.google.common.base.Optional;
    import com.google.common.primitives.Ints;
    import java.util.List;
    import java.util.Random;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Benchmarks for the {@code TreeTraverser} operations on binary trees.
     *
     * @author Louis Wasserman
     */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/AbstractBaseGraph.java

    import com.google.common.collect.Iterators;
    import com.google.common.collect.Sets;
    import com.google.common.collect.UnmodifiableIterator;
    import com.google.common.math.IntMath;
    import com.google.common.primitives.Ints;
    import java.util.AbstractSet;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * This class provides a skeletal implementation of {@link BaseGraph}.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/IntsMethodsForWeb.java

     * the License.
     */
    
    package com.google.common.primitives;
    
    import jsinterop.annotations.JsMethod;
    import jsinterop.annotations.JsPackage;
    
    /** Web specializations for {@link Ints} methods. */
    public abstract class IntsMethodsForWeb {
    
      @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL)
      public static native int min(int... array);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Oct 26 00:50:12 UTC 2023
    - 1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java

                assertEquals(1310720, response.getTotalBytesWritten());
            }
    
            @ParameterizedTest
            @DisplayName("Should decode various chunksWritten values")
            @ValueSource(ints = { 0, 1, 10, 100, 1000, Integer.MAX_VALUE })
            void testDecodeVariousChunksWritten(int chunks) throws SMBProtocolDecodingException {
                byte[] buffer = createValidCopyChunkResponse(chunks, 0, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

        BloomFilter<byte[]> bf = BloomFilter.create(Funnels.byteArrayFunnel(), 100);
        for (int i = 0; i < 10; i++) {
          bf.put(Ints.toByteArray(i));
        }
    
        BloomFilter<byte[]> copy = SerializableTester.reserialize(bf);
        for (int i = 0; i < 10; i++) {
          assertTrue(copy.mightContain(Ints.toByteArray(i)));
        }
        assertThat(copy.expectedFpp()).isEqualTo(bf.expectedFpp());
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/math/Quantiles.java

        for (int i = 0; i < len; i++) {
          doubles[i] = longs[i];
        }
        return doubles;
      }
    
      private static double[] intsToDoubles(int[] ints) {
        int len = ints.length;
        double[] doubles = new double[len];
        for (int i = 0; i < len; i++) {
          doubles[i] = ints[i];
        }
        return doubles;
      }
    
      /**
       * Performs an in-place selection to find the element which would appear at a given index in a
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 30.1K bytes
    - Viewed (0)
Back to top