test_class.file: oak-segment-tar/src/test/java/org/apache/jackrabbit/oak/segment/file/PriorityCacheTest.java
test_class.identifier: PriorityCacheTest
test_case.body: @Test
      public void nextPowerOfTwo() {
          assertEquals(1, PriorityCache.nextPowerOfTwo(-1));
          assertEquals(1, PriorityCache.nextPowerOfTwo(-123));
          assertEquals(1, PriorityCache.nextPowerOfTwo(0));
          assertEquals(1, PriorityCache.nextPowerOfTwo(1));
          assertEquals(2, PriorityCache.nextPowerOfTwo(2));
          assertEquals(4, PriorityCache.nextPowerOfTwo(3));
          assertEquals(4, PriorityCache.nextPowerOfTwo(4));
          assertEquals(512, PriorityCache.nextPowerOfTwo(500));
          assertEquals(2147483648L, PriorityCache.nextPowerOfTwo(Integer.MAX_VALUE));
      }
test_case.class_method_signature: PriorityCacheTest.nextPowerOfTwo()
test_case.full_signature: @Test public void nextPowerOfTwo()
test_case.identifier: nextPowerOfTwo
test_case.invocations: assertEquals nextPowerOfTwo assertEquals nextPowerOfTwo assertEquals nextPowerOfTwo assertEquals nextPowerOfTwo assertEquals nextPowerOfTwo assertEquals nextPowerOfTwo assertEquals nextPowerOfTwo assertEquals nextPowerOfTwo assertEquals nextPowerOfTwo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void nextPowerOfTwo()
focal_class.declarator: rehash
focal_class.modifier: private final
focal_class.original_string: private final int rehash;
focal_class.type: int
focal_class.var_name: rehash
focal_class.declarator: entries
focal_class.modifier: private final
focal_class.original_string: private final Entry<?,?>[] entries;
focal_class.type: Entry<?,?>[]
focal_class.var_name: entries
focal_class.declarator: costs = new int[256]
focal_class.modifier: private final
focal_class.original_string: private final int[] costs = new int[256];
focal_class.type: int[]
focal_class.var_name: costs
focal_class.declarator: evictions = new int[256]
focal_class.modifier: private final
focal_class.original_string: private final int[] evictions = new int[256];
focal_class.type: int[]
focal_class.var_name: evictions
focal_class.declarator: hitCount
focal_class.modifier: private
focal_class.original_string: private long hitCount;
focal_class.type: long
focal_class.var_name: hitCount
focal_class.declarator: missCount
focal_class.modifier: private
focal_class.original_string: private long missCount;
focal_class.type: long
focal_class.var_name: missCount
focal_class.declarator: loadCount
focal_class.modifier: private
focal_class.original_string: private long loadCount;
focal_class.type: long
focal_class.var_name: loadCount
focal_class.declarator: loadExceptionCount
focal_class.modifier: private
focal_class.original_string: private long loadExceptionCount;
focal_class.type: long
focal_class.var_name: loadExceptionCount
focal_class.declarator: evictionCount
focal_class.modifier: private
focal_class.original_string: private long evictionCount;
focal_class.type: long
focal_class.var_name: evictionCount
focal_class.declarator: size
focal_class.modifier: private
focal_class.original_string: private long size;
focal_class.type: long
focal_class.var_name: size
focal_class.declarator: weigher
focal_class.modifier: @NotNull
      private final
focal_class.original_string: @NotNull
      private final Weigher<K, V> weigher;
focal_class.type: Weigher<K, V>
focal_class.var_name: weigher
focal_class.declarator: weight = 0
focal_class.modifier: private
focal_class.original_string: private long weight = 0;
focal_class.type: long
focal_class.var_name: weight
focal_class.file: oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/file/PriorityCache.java
focal_class.identifier: PriorityCache
focal_class.class_method_signature: PriorityCache.factory(final int size, @NotNull final Weigher<K, V> weigher)
focal_class.full_signature: public static Supplier<PriorityCache<K, V>> factory(final int size, @NotNull final Weigher<K, V> weigher)
focal_class.identifier: factory
focal_class.modifiers: public static
focal_class.parameters: (final int size, @NotNull final Weigher<K, V> weigher)
focal_class.return: Supplier<PriorityCache<K, V>>
focal_class.signature: Supplier<PriorityCache<K, V>> factory(final int size, @NotNull final Weigher<K, V> weigher)
focal_class.class_method_signature: PriorityCache.factory(final int size)
focal_class.full_signature: public static Supplier<PriorityCache<K, V>> factory(final int size)
focal_class.identifier: factory
focal_class.modifiers: public static
focal_class.parameters: (final int size)
focal_class.return: Supplier<PriorityCache<K, V>>
focal_class.signature: Supplier<PriorityCache<K, V>> factory(final int size)
focal_class.class_method_signature: PriorityCache.nextPowerOfTwo(int size)
focal_class.full_signature: public static long nextPowerOfTwo(int size)
focal_class.identifier: nextPowerOfTwo
focal_class.modifiers: public static
focal_class.parameters: (int size)
focal_class.return: long
focal_class.signature: long nextPowerOfTwo(int size)
focal_class.class_method_signature: PriorityCache.PriorityCache(int size, int rehash)
focal_class.full_signature:   PriorityCache(int size, int rehash)
focal_class.identifier: PriorityCache
focal_class.parameters: (int size, int rehash)
focal_class.signature:  PriorityCache(int size, int rehash)
focal_class.class_method_signature: PriorityCache.PriorityCache(int size, int rehash, @NotNull Weigher<K, V> weigher)
focal_class.full_signature: public  PriorityCache(int size, int rehash, @NotNull Weigher<K, V> weigher)
focal_class.identifier: PriorityCache
focal_class.modifiers: public
focal_class.parameters: (int size, int rehash, @NotNull Weigher<K, V> weigher)
focal_class.signature:  PriorityCache(int size, int rehash, @NotNull Weigher<K, V> weigher)
focal_class.class_method_signature: PriorityCache.PriorityCache(int size, @NotNull Weigher<K, V> weigher)
focal_class.full_signature: public  PriorityCache(int size, @NotNull Weigher<K, V> weigher)
focal_class.identifier: PriorityCache
focal_class.modifiers: public
focal_class.parameters: (int size, @NotNull Weigher<K, V> weigher)
focal_class.signature:  PriorityCache(int size, @NotNull Weigher<K, V> weigher)
focal_class.class_method_signature: PriorityCache.PriorityCache(int size)
focal_class.full_signature: public  PriorityCache(int size)
focal_class.identifier: PriorityCache
focal_class.modifiers: public
focal_class.parameters: (int size)
focal_class.signature:  PriorityCache(int size)
focal_class.class_method_signature: PriorityCache.project(int hashCode, int iteration)
focal_class.full_signature: private int project(int hashCode, int iteration)
focal_class.identifier: project
focal_class.modifiers: private
focal_class.parameters: (int hashCode, int iteration)
focal_class.return: int
focal_class.signature: int project(int hashCode, int iteration)
focal_class.class_method_signature: PriorityCache.size()
focal_class.full_signature: public long size()
focal_class.identifier: size
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long size()
focal_class.class_method_signature: PriorityCache.put(@NotNull K key, @NotNull V value, int generation, byte initialCost)
focal_class.full_signature: public synchronized boolean put(@NotNull K key, @NotNull V value, int generation, byte initialCost)
focal_class.identifier: put
focal_class.modifiers: public synchronized
focal_class.parameters: (@NotNull K key, @NotNull V value, int generation, byte initialCost)
focal_class.return: boolean
focal_class.signature: boolean put(@NotNull K key, @NotNull V value, int generation, byte initialCost)
focal_class.class_method_signature: PriorityCache.get(@NotNull K key, int generation)
focal_class.full_signature: @SuppressWarnings("unchecked") @Nullable public synchronized V get(@NotNull K key, int generation)
focal_class.identifier: get
focal_class.modifiers: @SuppressWarnings("unchecked") @Nullable public synchronized
focal_class.parameters: (@NotNull K key, int generation)
focal_class.return: V
focal_class.signature: V get(@NotNull K key, int generation)
focal_class.class_method_signature: PriorityCache.purgeGenerations(@NotNull Predicate<Integer> purge)
focal_class.full_signature: public synchronized void purgeGenerations(@NotNull Predicate<Integer> purge)
focal_class.identifier: purgeGenerations
focal_class.modifiers: public synchronized
focal_class.parameters: (@NotNull Predicate<Integer> purge)
focal_class.return: void
focal_class.signature: void purgeGenerations(@NotNull Predicate<Integer> purge)
focal_class.class_method_signature: PriorityCache.weighEntry(Entry<?, ?> entry)
focal_class.full_signature: @SuppressWarnings("unchecked") private int weighEntry(Entry<?, ?> entry)
focal_class.identifier: weighEntry
focal_class.modifiers: @SuppressWarnings("unchecked") private
focal_class.parameters: (Entry<?, ?> entry)
focal_class.return: int
focal_class.signature: int weighEntry(Entry<?, ?> entry)
focal_class.class_method_signature: PriorityCache.toString()
focal_class.full_signature: @Override public synchronized String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public synchronized
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: PriorityCache.toString(int[] ints)
focal_class.full_signature: private static String toString(int[] ints)
focal_class.identifier: toString
focal_class.modifiers: private static
focal_class.parameters: (int[] ints)
focal_class.return: String
focal_class.signature: String toString(int[] ints)
focal_class.class_method_signature: PriorityCache.getStats()
focal_class.full_signature: @NotNull public CacheStats getStats()
focal_class.identifier: getStats
focal_class.modifiers: @NotNull public
focal_class.parameters: ()
focal_class.return: CacheStats
focal_class.signature: CacheStats getStats()
focal_class.class_method_signature: PriorityCache.estimateCurrentWeight()
focal_class.full_signature: public long estimateCurrentWeight()
focal_class.identifier: estimateCurrentWeight
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long estimateCurrentWeight()
focal_method.body: public static long nextPowerOfTwo(int size) {
          return 1L << (64L - numberOfLeadingZeros((long)max(1, size) - 1L));
      }
focal_method.class_method_signature: PriorityCache.nextPowerOfTwo(int size)
focal_method.full_signature: public static long nextPowerOfTwo(int size)
focal_method.identifier: nextPowerOfTwo
focal_method.invocations: numberOfLeadingZeros max
focal_method.modifiers: public static
focal_method.parameters: (int size)
focal_method.return: long
focal_method.signature: long nextPowerOfTwo(int size)