Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 57 for 0x1000 (0.03 sec)

  1. guava-tests/benchmark/com/google/common/collect/HashMultisetAddPresentBenchmark.java

     *
     * @author Louis Wasserman
     */
    @NullUnmarked
    public class HashMultisetAddPresentBenchmark {
      private static final int ARRAY_MASK = 0x0ffff;
      private static final int ARRAY_SIZE = 0x10000;
      List<Multiset<Integer>> multisets = new ArrayList<>(0x10000);
      int[] queries = new int[ARRAY_SIZE];
    
      @BeforeExperiment
      void setUp() {
        Random random = new Random();
        multisets.clear();
        for (int i = 0; i < ARRAY_SIZE; i++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/math/StatsBenchmark.java

      int n;
    
      @Param MeanAlgorithm meanAlgorithm;
      @Param VarianceAlgorithm varianceAlgorithm;
    
      private final double[][] values = new double[0x100][];
    
      @BeforeExperiment
      void setUp() {
        Random rng = new Random();
        for (int i = 0; i < 0x100; i++) {
          values[i] = new double[n];
          for (int j = 0; j < n; j++) {
            values[i][j] = rng.nextDouble();
          }
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

      @Param({"10", "100", "1000", "10000", "100000"})
      int datasetSize;
    
      @Param QuantilesAlgorithm algorithm;
    
      private final double[][] datasets = new double[0x100][];
    
      @BeforeExperiment
      void setUp() {
        Random rng = new Random();
        for (int i = 0; i < 0x100; i++) {
          datasets[i] = new double[datasetSize];
          for (int j = 0; j < datasetSize; j++) {
            datasets[i][j] = rng.nextDouble();
          }
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. okhttp-idna-mapping-table/src/test/kotlin/okhttp3/internal/idn/MappingTablesTest.kt

          mergeAdjacentRanges(
            listOf(
              Mapping(0x0000, 0x002c, TYPE_DISALLOWED_STD3_VALID, ByteString.EMPTY),
            ),
          ),
        ).containsExactly(
          Mapping(0x0000, 0x002c, TYPE_VALID, ByteString.EMPTY),
        )
      }
    
      @Test fun simplifyCombinesCanonicalEquivalent() {
        assertThat(
          mergeAdjacentRanges(
            listOf(
              Mapping(0x0000, 0x002c, TYPE_DISALLOWED_STD3_VALID, ByteString.EMPTY),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

      }
    
      public void testCopyOf_iterable_notCollection_nonempty() {
        List<Double> list = Arrays.asList(0.0, 1.0, 3.0);
        ImmutableDoubleArray iia = ImmutableDoubleArray.copyOf(iterable(list));
        list.set(2, 2.0);
        assertThat(iia.asList()).containsExactly(0.0, 1.0, 3.0).inOrder();
      }
    
      public void testCopyOf_iterable_collection_empty() {
        Iterable<Double> iterable = Collections.emptySet();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/HostnamesTest.kt

        val addressF = decodeIpv6("0:0:0:0:0:ffff:7f00:1")!!
        assertThat(canonicalizeInetAddress(addressF)).isEqualTo(addressB)
    
        val addressG = decodeIpv6("0:0:0:0:0:ffff:c0a8:1")!!
        assertThat(canonicalizeInetAddress(addressG)).isEqualTo(addressC)
      }
    
      @Test
      fun canonicalizeInetAddressMapped() {
        val addressAIpv6 = decodeIpv6("0:0:0:0:0:ffff:7f00:1")!!
        val addressAIpv4 = byteArrayOf(127, 0, 0, 1)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/collect/ComparatorDelegationOverheadBenchmark.java

     */
    @NullUnmarked
    public class ComparatorDelegationOverheadBenchmark {
      private final Integer[][] inputArrays = new Integer[0x100][];
    
      @Param({"10000"})
      int n;
    
      @BeforeExperiment
      void setUp() throws Exception {
        Random rng = new Random();
        for (int i = 0; i < 0x100; i++) {
          Integer[] array = new Integer[n];
          for (int j = 0; j < n; j++) {
            array[j] = rng.nextInt();
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

     * the order of magnitude of the generated values uniformly at random.
     *
     * @author Louis Wasserman
     */
    @NullUnmarked
    final class MathBenchmarking {
      static final int ARRAY_SIZE = 0x10000;
      static final int ARRAY_MASK = 0x0ffff;
      static final Random RANDOM_SOURCE = new Random(314159265358979L);
      static final int MAX_EXPONENT = 100;
    
      /*
       * Duplicated from LongMath.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

    /**
     * Benchmarks for certain methods of {@code UnsignedLongs}.
     *
     * @author Eamonn McManus
     */
    @NullUnmarked
    public class UnsignedLongsBenchmark {
      private static final int ARRAY_SIZE = 0x10000;
      private static final int ARRAY_MASK = 0x0ffff;
      private static final Random randomSource = new Random(314159265358979L);
      private static final long[] longs = new long[ARRAY_SIZE];
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 28 01:26:26 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2.kt

      @JvmField
      val CONNECTION_PREFACE = "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n".encodeUtf8()
    
      /** The initial max frame size, applied independently writing to, or reading from the peer. */
      const val INITIAL_MAX_FRAME_SIZE = 0x4000 // 16384
    
      const val TYPE_DATA = 0x0
      const val TYPE_HEADERS = 0x1
      const val TYPE_PRIORITY = 0x2
      const val TYPE_RST_STREAM = 0x3
      const val TYPE_SETTINGS = 0x4
      const val TYPE_PUSH_PROMISE = 0x5
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 5.7K bytes
    - Viewed (0)
Back to top