Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 98 for repeats (0.04 sec)

  1. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

            assertTrue(BloomFilter.optimalNumOfBits(n, fpp) >= 0);
          }
        }
    
        // some random values
        Random random = new Random(0);
        for (int repeats = 0; repeats < 10000; repeats++) {
          assertTrue(BloomFilter.optimalNumOfBits(random.nextInt(1 << 16), random.nextDouble()) >= 0);
        }
    
        // and some crazy values (this used to be capped to Integer.MAX_VALUE, now it can go bigger
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/BloomFilterTest.java

            assertTrue(BloomFilter.optimalNumOfBits(n, fpp) >= 0);
          }
        }
    
        // some random values
        Random random = new Random(0);
        for (int repeats = 0; repeats < 10000; repeats++) {
          assertTrue(BloomFilter.optimalNumOfBits(random.nextInt(1 << 16), random.nextDouble()) >= 0);
        }
    
        // and some crazy values (this used to be capped to Integer.MAX_VALUE, now it can go bigger
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Strings.java

       * example, {@code repeat("hey", 3)} returns the string {@code "heyheyhey"}.
       *
       * @param string any non-null string
       * @param count the number of times to repeat it; a nonnegative integer
       * @return a string containing {@code string} repeated {@code count} times (the empty string if
       *     {@code count} is zero)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 27 17:53:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/PopularWordHelperTest.java

            String seed = "very_long_seed_" + "x".repeat(100);
            String[] tags = { "long_tag_" + "y".repeat(50), "another_long_tag_" + "z".repeat(50) };
            String[] roles = { "long_role_" + "a".repeat(50) };
            String[] fields = { "long_field_" + "b".repeat(50) };
            String[] excludes = { "long_exclude_" + "c".repeat(50) };
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 11K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/StringsTest.java

        String input = "20";
        assertEquals("", Strings.repeat(input, 0));
        assertEquals("20", Strings.repeat(input, 1));
        assertEquals("2020", Strings.repeat(input, 2));
        assertEquals("202020", Strings.repeat(input, 3));
    
        assertEquals("", Strings.repeat("", 4));
    
        for (int i = 0; i < 100; ++i) {
          assertEquals(2 * i, Strings.repeat(input, i).length());
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 27 17:53:41 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8
      static final String LOTS_OF_DELTAS = Strings.repeat(DELTA, 62);
    
      @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8
      private static final String ALMOST_TOO_MANY_LEVELS = Strings.repeat("a.", 127);
    
      @SuppressWarnings("InlineMeInliner") // String.repeat unavailable under Java 8
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/opensearch/client/CrawlerEngineClientTest.java

            });
    
            thread.start();
            thread.join();
    
            assertNull(exceptionHolder[0]);
            assertNotNull(clientHolder[0]);
        }
    
        // Test repeated instantiation
        public void test_repeatedInstantiation() {
            // Test that repeated instantiation works correctly
            for (int i = 0; i < 10; i++) {
                CrawlerEngineClient client = new CrawlerEngineClient();
                assertNotNull(client);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  8. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourcesHttpTest.kt

              |
              |
              """.trimMargin(),
            headers = Headers.headersOf("content-type", "text/event-stream"),
          ),
        )
        var request = Request.Builder().url(server.url("/")).build()
        repeat(2) {
          val response = client.newCall(request).execute()
    
          if (response.code == 401) {
            assertThat(response.body.string()).isEqualTo("{\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 13:49:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/exception/FessUserNotFoundExceptionTest.java

            assertNull(exception.getCause());
        }
    
        public void test_constructor_withLongUsername() {
            // Test with a very long username
            String username = "verylongusername".repeat(10);
            FessUserNotFoundException exception = new FessUserNotFoundException(username);
    
            assertNotNull(exception);
            assertEquals("User is not found: " + username, exception.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

        builder.put(k1, v1);
        return builder.build();
      }
    
      /**
       * Returns an immutable multimap containing the given entries, in order. Repeated occurrences of
       * an entry (according to {@link Object#equals}) after the first are ignored.
       */
      public static <K, V> ImmutableSetMultimap<K, V> of(K k1, V v1, K k2, V v2) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
Back to top