Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 158 for fess (0.14 sec)

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

        // the whole array.
        int from = 0;
        int to = array.length - 1;
    
        while (true) {
          if (to <= from + 1) {
            // Two or less elements left.
            if (to == from + 1 && array[to] < array[from]) {
              // Exactly two elements left.
              swap(array, from, to);
            }
            return array[k];
          } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

        }
    
        @Override
        public Map<String, Collection<Integer>> create(Object... elements) {
          ImmutableMap.Builder<String, Integer> builder = ImmutableMap.builder();
          // assumes that each set is a singleton or less (as is done for the samples)
          for (Object elem : elements) {
            @SuppressWarnings("unchecked") // safe by generator contract
            Entry<String, Collection<Integer>> entry = (Entry<String, Collection<Integer>>) elem;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/LongMath.java

          throw new ArithmeticException("ceilingPowerOfTwo(" + x + ") is not representable as a long");
        }
        return 1L << -Long.numberOfLeadingZeros(x - 1);
      }
    
      /**
       * Returns the largest power of two less than or equal to {@code x}. This is equivalent to {@code
       * checkedPow(2, log2(x, FLOOR))}.
       *
       * @throws IllegalArgumentException if {@code x <= 0}
       * @since 20.0
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Preconditions.java

       * @param size the size of that array, list or string
       * @return the value of {@code index}
       * @throws IndexOutOfBoundsException if {@code index} is negative or is not less than {@code size}
       * @throws IllegalArgumentException if {@code size} is negative
       */
      @CanIgnoreReturnValue
      public static int checkElementIndex(int index, int size) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class TreeMultimapExplicitTest extends TestCase {
    
      /**
       * Compare strings lengths, and if the lengths are equal compare the strings. A {@code null} is
       * less than any non-null value.
       */
      private enum StringLength implements Comparator<@Nullable String> {
        COMPARATOR;
    
        @Override
        public int compare(@Nullable String first, @Nullable String second) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Utf8.java

        int utf8Length = utf16Length;
        int i = 0;
    
        // This loop optimizes for pure ASCII.
        while (i < utf16Length && sequence.charAt(i) < 0x80) {
          i++;
        }
    
        // This loop optimizes for chars less than 0x800.
        for (; i < utf16Length; i++) {
          char c = sequence.charAt(i);
          if (c < 0x800) {
            utf8Length += ((0x7f - c) >>> 31); // branch free!
          } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

      }
    
      public void testExpectedFpp() {
        BloomFilter<Object> bf = BloomFilter.create(HashTestUtils.BAD_FUNNEL, 10, 0.03);
        double fpp = bf.expectedFpp();
        assertEquals(0.0, fpp);
        // usually completed in less than 200 iterations
        while (fpp != 1.0) {
          boolean changed = bf.put(new Object());
          double newFpp = bf.expectedFpp();
          // if changed, the new fpp is strictly higher, otherwise it is the same
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public abstract class FluentFuture<V extends @Nullable Object>
        extends GwtFluentFutureCatchingSpecialization<V> {
    
      /**
       * A less abstract subclass of AbstractFuture. This can be used to optimize setFuture by ensuring
       * that {@link #get} calls exactly the implementation of {@link AbstractFuture#get}.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 11 19:08:44 GMT 2023
    - 18.7K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

            || (stimuli.length >= 5 && removes > 2)) {
          // removes are the most expensive thing to test, since they often throw exceptions with stack
          // traces, so we test them a bit less aggressively
          return;
        }
    
        MultiExceptionListIterator reference = new MultiExceptionListIterator(expectedElements);
        I target = newTargetIterator();
        for (int i = 0; i < stimuli.length; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

          stopwatch.sleepMillis(rate * 1000);
          limiter.setRate(rate);
          long burst = measureTotalTimeMillis(limiter, oneSecWorthOfWork, new Random());
          // we allow one second worth of work to go in a burst (i.e. take less than a second)
          assertTrue(burst <= 1000);
          long afterBurst = measureTotalTimeMillis(limiter, oneSecWorthOfWork, new Random());
          // but work beyond that must take at least one second
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
Back to top