Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 351 for Towers (0.27 sec)

  1. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

      }
    
      private static final int EVEN_POWERS_OF_TWO = 0x55555555;
      private static final int ODD_POWERS_OF_TWO = 0xaaaaaaaa;
    
      @VisibleForTesting
      static boolean isEvenLevel(int index) {
        int oneBased = ~~(index + 1); // for GWT
        checkState(oneBased > 0, "negative index");
        return (oneBased & EVEN_POWERS_OF_TWO) > (oneBased & ODD_POWERS_OF_TWO);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/BigIntegerMath.java

     *
     * @author Louis Wasserman
     * @since 11.0
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class BigIntegerMath {
      /**
       * Returns the smallest power of two greater than or equal to {@code x}. This is equivalent to
       * {@code BigInteger.valueOf(2).pow(log2(x, CEILING))}.
       *
       * @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
    - 18.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Sets.java

       * is merely copied. Only as the power set is iterated are the individual subsets created, and
       * these subsets themselves occupy only a small constant amount of memory.
       *
       * @param set the set of elements to construct a power set from
       * @return the power set, as an immutable set of immutable sets
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 77.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/Striped.java

        }
      }
    
      private abstract static class PowerOfTwoStriped<L> extends Striped<L> {
        /** Capacity (power of two) minus one, for fast mod evaluation */
        final int mask;
    
        PowerOfTwoStriped(int stripes) {
          Preconditions.checkArgument(stripes > 0, "Stripes must be positive");
          this.mask = stripes > Ints.MAX_POWER_OF_TWO ? ALL_SET : ceilToPowerOfTwo(stripes) - 1;
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 10 20:55:18 GMT 2023
    - 20.3K bytes
    - Viewed (1)
  5. .cm/plugins/filters/byCodeowner/index.js

            const result = new Map()
            files.map(f => {
                console.log("Resolving owners for: " + f);
                const owners = resolveCodeowners(mapping, f);
                console.log("Owners for: " + f + " are: " + owners);
                owners.filter(i => typeof i === 'string')
                    .map(u => u.replace(/^@gradle\//, ""))
                    .forEach(owner => {
    JavaScript
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Mon Apr 22 19:12:32 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSet.java

      private static boolean shouldTrim(int actualUnique, int expectedUnique) {
        return actualUnique < (expectedUnique >> 1) + (expectedUnique >> 2);
      }
    
      // We use power-of-2 tables, and this is the highest int that's a power of 2
      static final int MAX_TABLE_SIZE = Ints.MAX_POWER_OF_TWO;
    
      // Represents how tightly we can pack things, as a maximum.
      private static final double DESIRED_LOAD_FACTOR = 0.7;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/CaseFormatTest.java

        assertEquals("foo", LOWER_CAMEL.to(LOWER_UNDERSCORE, "foo"));
        assertEquals("foo_bar", LOWER_CAMEL.to(LOWER_UNDERSCORE, "fooBar"));
        assertEquals("h_t_t_p", LOWER_CAMEL.to(LOWER_UNDERSCORE, "hTTP"));
      }
    
      public void testLowerCamelToLowerCamel() {
        assertEquals("foo", LOWER_CAMEL.to(LOWER_CAMEL, "foo"));
        assertEquals("fooBar", LOWER_CAMEL.to(LOWER_CAMEL, "fooBar"));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/CaseFormatTest.java

        assertEquals("foo", LOWER_CAMEL.to(LOWER_UNDERSCORE, "foo"));
        assertEquals("foo_bar", LOWER_CAMEL.to(LOWER_UNDERSCORE, "fooBar"));
        assertEquals("h_t_t_p", LOWER_CAMEL.to(LOWER_UNDERSCORE, "hTTP"));
      }
    
      public void testLowerCamelToLowerCamel() {
        assertEquals("foo", LOWER_CAMEL.to(LOWER_CAMEL, "foo"));
        assertEquals("fooBar", LOWER_CAMEL.to(LOWER_CAMEL, "fooBar"));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu May 04 09:41:29 GMT 2023
    - 8.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/math/IntMathTest.java

    @GwtCompatible(emulated = true)
    public class IntMathTest extends TestCase {
      public void testMaxSignedPowerOfTwo() {
        assertTrue(IntMath.isPowerOfTwo(IntMath.MAX_SIGNED_POWER_OF_TWO));
    
        // Extra work required to make GWT happy.
        long value = IntMath.MAX_SIGNED_POWER_OF_TWO * 2L;
        assertFalse(IntMath.isPowerOfTwo((int) value));
      }
    
      public void testCeilingPowerOfTwo() {
        for (int x : POSITIVE_INTEGER_CANDIDATES) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  10. cmd/admin-handlers_test.go

    	}
    	return toUniqLock(b.LockEntries[i]) < toUniqLock(b.LockEntries[j])
    }
    
    func TestTopLockEntries(t *testing.T) {
    	locksHeld := make(map[string][]lockRequesterInfo)
    	var owners []string
    	for i := 0; i < 4; i++ {
    		owners = append(owners, fmt.Sprintf("node-%d", i))
    	}
    
    	// Simulate DeleteObjects of 10 objects in a single request. i.e same lock
    	// request UID, but 10 different resource names associated with it.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.8K bytes
    - Viewed (0)
Back to top