test_class.declarator: NAME = "cache stats"
test_class.modifier: private static final
test_class.original_string: private static final String NAME = "cache stats";
test_class.type: String
test_class.var_name: NAME
test_class.declarator: KEYS = 100
test_class.modifier: private static final
test_class.original_string: private static final int KEYS = 100;
test_class.type: int
test_class.var_name: KEYS
test_class.declarator: weigher = new Weigher<Integer, Integer>() {
          @Override
          public int weigh(@NotNull Integer key, @NotNull Integer value) {
              return 1;
          }
      }
test_class.modifier: private final
test_class.original_string: private final Weigher<Integer, Integer> weigher = new Weigher<Integer, Integer>() {
          @Override
          public int weigh(@NotNull Integer key, @NotNull Integer value) {
              return 1;
          }
      };
test_class.type: Weigher<Integer, Integer>
test_class.var_name: weigher
test_class.declarator: cache = CacheBuilder.newBuilder()
                  .recordStats()
                  .maximumWeight(Long.MAX_VALUE)
                  .weigher(weigher)
                  .build()
test_class.modifier: private final
test_class.original_string: private final Cache<Integer, Integer> cache = CacheBuilder.newBuilder()
                  .recordStats()
                  .maximumWeight(Long.MAX_VALUE)
                  .weigher(weigher)
                  .build();
test_class.type: Cache<Integer, Integer>
test_class.var_name: cache
test_class.declarator: cacheStats =
              new CacheStats(cache, NAME, weigher, Long.MAX_VALUE)
test_class.modifier: private final
test_class.original_string: private final CacheStats cacheStats =
              new CacheStats(cache, NAME, weigher, Long.MAX_VALUE);
test_class.type: CacheStats
test_class.var_name: cacheStats
test_class.declarator: misses
test_class.modifier: private
test_class.original_string: private int misses;
test_class.type: int
test_class.var_name: misses
test_class.declarator: fails
test_class.modifier: private
test_class.original_string: private int fails;
test_class.type: int
test_class.var_name: fails
test_class.declarator: loadTime
test_class.modifier: private
test_class.original_string: private long loadTime;
test_class.type: long
test_class.var_name: loadTime
test_class.file: oak-core-spi/src/test/java/org/apache/jackrabbit/oak/cache/CacheStatsTest.java
test_class.identifier: CacheStatsTest
test_case.body: @Test
      public void estimateCurrentWeight() {
          assertEquals(KEYS + misses, cacheStats.estimateCurrentWeight());
      }
test_case.class_method_signature: CacheStatsTest.estimateCurrentWeight()
test_case.full_signature: @Test public void estimateCurrentWeight()
test_case.identifier: estimateCurrentWeight
test_case.invocations: assertEquals estimateCurrentWeight
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void estimateCurrentWeight()
focal_class.declarator: cache
focal_class.modifier: private final
focal_class.original_string: private final Cache<Object, Object> cache;
focal_class.type: Cache<Object, Object>
focal_class.var_name: cache
focal_class.declarator: weigher
focal_class.modifier: private final
focal_class.original_string: private final Weigher<Object, Object> weigher;
focal_class.type: Weigher<Object, Object>
focal_class.var_name: weigher
focal_class.declarator: maxWeight
focal_class.modifier: private final
focal_class.original_string: private final long maxWeight;
focal_class.type: long
focal_class.var_name: maxWeight
focal_class.file: oak-core-spi/src/main/java/org/apache/jackrabbit/oak/cache/CacheStats.java
focal_class.identifier: CacheStats
focal_class.class_method_signature: CacheStats.CacheStats(
              @NotNull Cache<?, ?> cache,
              @NotNull String name,
              @Nullable Weigher<?, ?> weigher,
              long maxWeight)
focal_class.full_signature: @SuppressWarnings("unchecked") public  CacheStats(
              @NotNull Cache<?, ?> cache,
              @NotNull String name,
              @Nullable Weigher<?, ?> weigher,
              long maxWeight)
focal_class.identifier: CacheStats
focal_class.modifiers: @SuppressWarnings("unchecked") public
focal_class.parameters: (
              @NotNull Cache<?, ?> cache,
              @NotNull String name,
              @Nullable Weigher<?, ?> weigher,
              long maxWeight)
focal_class.signature:  CacheStats(
              @NotNull Cache<?, ?> cache,
              @NotNull String name,
              @Nullable Weigher<?, ?> weigher,
              long maxWeight)
focal_class.class_method_signature: CacheStats.getCurrentStats()
focal_class.full_signature: @Override protected com.google.common.cache.CacheStats getCurrentStats()
focal_class.identifier: getCurrentStats
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: com.google.common.cache.CacheStats
focal_class.signature: com.google.common.cache.CacheStats getCurrentStats()
focal_class.class_method_signature: CacheStats.getElementCount()
focal_class.full_signature: @Override public long getElementCount()
focal_class.identifier: getElementCount
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getElementCount()
focal_class.class_method_signature: CacheStats.estimateCurrentWeight()
focal_class.full_signature: @Override public long estimateCurrentWeight()
focal_class.identifier: estimateCurrentWeight
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long estimateCurrentWeight()
focal_class.class_method_signature: CacheStats.getMaxTotalWeight()
focal_class.full_signature: @Override public long getMaxTotalWeight()
focal_class.identifier: getMaxTotalWeight
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getMaxTotalWeight()
focal_class.superclass: extends AbstractCacheStats
focal_method.body: @Override
      public long estimateCurrentWeight() {
          if (weigher == null) {
              return -1;
          }
          long size = 0;
          for (Map.Entry<?, ?> e : cache.asMap().entrySet()) {
              Object k = e.getKey();
              Object v = e.getValue();
              size += weigher.weigh(k, v);
          }
          return size;
      }
focal_method.class_method_signature: CacheStats.estimateCurrentWeight()
focal_method.full_signature: @Override public long estimateCurrentWeight()
focal_method.identifier: estimateCurrentWeight
focal_method.invocations: entrySet asMap getKey getValue weigh
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: long
focal_method.signature: long estimateCurrentWeight()