Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 54 for 128 (0.11 sec)

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

        // TODO(kevinb): generate better test contents for multisets
        for (int i = 0; sizeRemaining > 0; i++) {
          // The JVM will return interned values for small ints.
          Integer value = random.nextInt(1000) + 128;
          int count = Math.min(random.nextInt(10) + 1, sizeRemaining);
          sizeRemaining -= count;
          hashMultiset.add(value, count);
          linkedHashMultiset.add(value, count);
          treeMultiset.add(value, count);
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/Utf8Test.java

          assertThat(expected)
              .hasMessageThat()
              .isEqualTo("Unpaired surrogate at index " + invalidCodePointIndex);
        }
      }
    
      // 128 - [chars 0x0000 to 0x007f]
      private static final long ONE_BYTE_ROUNDTRIPPABLE_CHARACTERS = 0x007f - 0x0000 + 1;
    
      // 128
      private static final long EXPECTED_ONE_BYTE_ROUNDTRIPPABLE_COUNT =
          ONE_BYTE_ROUNDTRIPPABLE_CHARACTERS;
    
      // 1920 [chars 0x0080 to 0x07FF]
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/HashTestUtils.java

        {
          HashCode unused = hashFunction.hashBytes(new byte[64], 0, 0);
        }
    
        try {
          hashFunction.hashBytes(new byte[128], -1, 128);
          Assert.fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
          hashFunction.hashBytes(new byte[128], 64, 256 /* too long len */);
          Assert.fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/BenchmarkHelpers.java

              + "\u2006\u2007\u2008\u2009\u200a";
      private static final String ASCII_CHARACTERS;
    
      static {
        int spaceInAscii = 32;
        int sevenBitAsciiMax = 128;
        StringBuilder sb = new StringBuilder(sevenBitAsciiMax - spaceInAscii);
        for (int ch = spaceInAscii; ch < sevenBitAsciiMax; ch++) {
          sb.append((char) ch);
        }
        ASCII_CHARACTERS = sb.toString();
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

              }
            };
        assertThat(actual)
            .containsExactly(
                1,
                2,
                4,
                8,
                16,
                32,
                64,
                128,
                256,
                512,
                1024,
                2048,
                4096,
                8192,
                16384,
                32768,
                65536,
                131072,
                262144,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

              }
            };
        assertThat(actual)
            .containsExactly(
                1,
                2,
                4,
                8,
                16,
                32,
                64,
                128,
                256,
                512,
                1024,
                2048,
                4096,
                8192,
                16384,
                32768,
                65536,
                131072,
                262144,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

       *
       * @see MaxCodePoint#decode
       */
      @Param({"0x80", "0x90", "0x100", "0x800", "0x10000", "0x10ffff"})
      MaxCodePoint maxCodePoint;
    
      @Param({"16384"})
      int charCount;
    
      @Param({"MURMUR3_32", "MURMUR3_128", "SHA1"})
      HashFunctionEnum hashFunctionEnum;
    
      private String[] strings;
    
      static final int SAMPLES = 0x100;
      static final int SAMPLE_MASK = 0xFF;
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

        UnicodeEscaper e = NOP_ESCAPER;
        assertEquals(TEST_STRING, escapeAsString(e, TEST_STRING));
      }
    
      public void testSimpleEscaper() {
        UnicodeEscaper e = SIMPLE_ESCAPER;
        String expected =
            "[0]abyz[128][256][2048][4096]ABYZ[65535]"
                + "["
                + Character.MIN_SUPPLEMENTARY_CODE_POINT
                + "]"
                + "0189["
                + Character.MAX_CODE_POINT
                + "]";
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/cache/SegmentBenchmark.java

    import java.util.concurrent.atomic.AtomicReferenceArray;
    
    /**
     * Benchmark for {@code LocalCache.Segment.expand()}.
     *
     * @author Charles Fry
     */
    public class SegmentBenchmark {
    
      @Param({"16", "32", "64", "128", "256", "512", "1024", "2048", "4096", "8192"})
      int capacity;
    
      private Segment<Object, Object> segment;
    
      @BeforeExperiment
      void setUp() {
        LocalCache<Object, Object> cache =
            new LocalCache<>(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 23 16:59:39 GMT 2019
    - 2.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/BenchmarkHelpers.java

              + "\u2006\u2007\u2008\u2009\u200a";
      private static final String ASCII_CHARACTERS;
    
      static {
        int spaceInAscii = 32;
        int sevenBitAsciiMax = 128;
        StringBuilder sb = new StringBuilder(sevenBitAsciiMax - spaceInAscii);
        for (int ch = spaceInAscii; ch < sevenBitAsciiMax; ch++) {
          sb.append((char) ch);
        }
        ASCII_CHARACTERS = sb.toString();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3K bytes
    - Viewed (0)
Back to top