Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for 02 (0.01 sec)

  1. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

        BigInteger result;
        do {
          result = randomNonNegativeBigInteger(numBits);
        } while (result.signum() == 0);
        return result;
      }
    
      /**
       * Generates a number in [0, 2^numBits) with an exponential distribution. The floor of the log2 of
       * the result is chosen uniformly at random in [0, numBits), and then the result is chosen in that
       * range uniformly at random. Zero is treated as having log2 == 0.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/RangeTest.java

        assertThat(expected).hasMessageThat().contains("connected");
        expected =
            assertThrows(IllegalArgumentException.class, () -> range.intersection(Range.closed(0, 2)));
        assertThat(expected).hasMessageThat().contains("connected");
      }
    
      public void testIntersection_deFactoEmpty() {
        {
          Range<Integer> range = Range.open(3, 4);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/MathBenchmarking.java

        BigInteger result;
        do {
          result = randomNonNegativeBigInteger(numBits);
        } while (result.signum() == 0);
        return result;
      }
    
      /**
       * Generates a number in [0, 2^numBits) with an exponential distribution. The floor of the log2 of
       * the result is chosen uniformly at random in [0, numBits), and then the result is chosen in that
       * range uniformly at random. Zero is treated as having log2 == 0.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        assertThat(iia1.subArray(1, 1)).isSameInstanceAs(ImmutableLongArray.of());
        assertThat(iia1.subArray(0, 1).asList()).containsExactly(5L);
        assertThat(iia3.subArray(0, 2).asList()).containsExactly(5L, 25L).inOrder();
        assertThat(iia3.subArray(1, 3).asList()).containsExactly(25L, 125L).inOrder();
    
        assertThrows(IndexOutOfBoundsException.class, () -> iia3.subArray(-1, 1));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        assertThat(limiter.acquire())
            .isWithin(EPSILON)
            .of(0.0); // R0.00, ...which is granted immediately
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.2); // R0.20
        assertEvents("R0.00", "U0.20", "R0.00", "R0.20");
      }
    
      public void testSimpleAcquireEarliestAvailableIsInPast() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

        assertThat(limiter.acquire())
            .isWithin(EPSILON)
            .of(0.0); // R0.00, ...which is granted immediately
        assertThat(limiter.acquire()).isWithin(EPSILON).of(0.2); // R0.20
        assertEvents("R0.00", "U0.20", "R0.00", "R0.20");
      }
    
      public void testSimpleAcquireEarliestAvailableIsInPast() {
        RateLimiter limiter = RateLimiter.create(5.0, stopwatch);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        assertThat(iia1.subArray(1, 1)).isSameInstanceAs(ImmutableDoubleArray.of());
        assertThat(iia1.subArray(0, 1).asList()).containsExactly(5.0);
        assertThat(iia3.subArray(0, 2).asList()).containsExactly(5.0, 25.0).inOrder();
        assertThat(iia3.subArray(1, 3).asList()).containsExactly(25.0, 125.0).inOrder();
    
        assertThrows(IndexOutOfBoundsException.class, () -> iia3.subArray(-1, 1));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java

      }
    
      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testSubList_ofSubListNonEmpty() {
        List<E> subList = getList().subList(0, 2).subList(1, 2);
        assertEquals(
            "subList(0, 2).subList(1, 2) "
                + "should be a single-element list of the element at index 1",
            singletonList(getOrderedElements().get(1)),
            subList);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/dict/stopwords/StopwordsFileTest.java

        }
    
        // Test selectList method
        public void test_selectList_normalCase() {
            loadTestData();
    
            DictionaryFile.PagingList<StopwordsItem> result = stopwordsFile.selectList(0, 2);
            assertEquals(2, result.size());
            assertEquals(1, result.getCurrentPageNumber());
            assertEquals(2, result.getPageSize());
            assertEquals(5, result.getAllRecordCount());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  10. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

      @Throws(IOException::class)
      fun processNextEvent(): Boolean {
        var id = lastId
        var type: String? = null
        val data = Buffer()
    
        while (true) {
          when (source.select(options)) {
            in 0..2 -> {
              completeEvent(id, type, data)
              return true
            }
    
            in 3..4 -> {
              source.readData(data)
            }
    
            in 5..7 -> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top