test_class.declarator: builder = EMPTY_NODE.builder()
test_class.modifier: private
test_class.original_string: private NodeBuilder builder = EMPTY_NODE.builder();
test_class.type: NodeBuilder
test_class.var_name: builder
test_class.file: oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/UniqueIndexCleanerTest.java
test_class.identifier: UniqueIndexCleanerTest
test_case.body: @Test
      public void nothingCleaned() throws Exception{
          builder.child("a").setProperty(PROP_CREATED, 100);
          builder.child("b").setProperty(PROP_CREATED, 100);
  
          refresh();
  
          UniqueIndexCleaner cleaner = new UniqueIndexCleaner(MILLISECONDS, 1);
          cleaner.clean(builder, 10);
          assertThat(copyOf(builder.getChildNodeNames()), containsInAnyOrder("a", "b"));
      }
test_case.class_method_signature: UniqueIndexCleanerTest.nothingCleaned()
test_case.full_signature: @Test public void nothingCleaned()
test_case.identifier: nothingCleaned
test_case.invocations: setProperty child setProperty child refresh clean assertThat copyOf getChildNodeNames containsInAnyOrder
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void nothingCleaned()
focal_class.declarator: createTimeMarginMillis
focal_class.modifier: private final
focal_class.original_string: private final long createTimeMarginMillis;
focal_class.type: long
focal_class.var_name: createTimeMarginMillis
focal_class.file: oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/property/UniqueIndexCleaner.java
focal_class.identifier: UniqueIndexCleaner
focal_class.class_method_signature: UniqueIndexCleaner.UniqueIndexCleaner(TimeUnit timeUnit, long createTimeMargin)
focal_class.full_signature: public  UniqueIndexCleaner(TimeUnit timeUnit, long createTimeMargin)
focal_class.identifier: UniqueIndexCleaner
focal_class.modifiers: public
focal_class.parameters: (TimeUnit timeUnit, long createTimeMargin)
focal_class.signature:  UniqueIndexCleaner(TimeUnit timeUnit, long createTimeMargin)
focal_class.class_method_signature: UniqueIndexCleaner.clean(NodeBuilder builder, long lastIndexedTo)
focal_class.full_signature: public int clean(NodeBuilder builder, long lastIndexedTo)
focal_class.identifier: clean
focal_class.modifiers: public
focal_class.parameters: (NodeBuilder builder, long lastIndexedTo)
focal_class.return: int
focal_class.signature: int clean(NodeBuilder builder, long lastIndexedTo)
focal_class.class_method_signature: UniqueIndexCleaner.entryCovered(long entryCreationTime, long lastIndexedTo)
focal_class.full_signature: private boolean entryCovered(long entryCreationTime, long lastIndexedTo)
focal_class.identifier: entryCovered
focal_class.modifiers: private
focal_class.parameters: (long entryCreationTime, long lastIndexedTo)
focal_class.return: boolean
focal_class.signature: boolean entryCovered(long entryCreationTime, long lastIndexedTo)
focal_method.body: public int clean(NodeBuilder builder, long lastIndexedTo) {
          int removalCount = 0;
          NodeState baseState = builder.getBaseState();
          for (ChildNodeEntry e : baseState.getChildNodeEntries()) {
              long entryCreationTime = e.getNodeState().getLong(PROP_CREATED);
              if (entryCovered(entryCreationTime, lastIndexedTo)) {
                  builder.child(e.getName()).remove();
                  removalCount++;
              }
          }
          return removalCount;
      }
focal_method.class_method_signature: UniqueIndexCleaner.clean(NodeBuilder builder, long lastIndexedTo)
focal_method.full_signature: public int clean(NodeBuilder builder, long lastIndexedTo)
focal_method.identifier: clean
focal_method.invocations: getBaseState getChildNodeEntries getLong getNodeState entryCovered remove child getName
focal_method.modifiers: public
focal_method.parameters: (NodeBuilder builder, long lastIndexedTo)
focal_method.return: int
focal_method.signature: int clean(NodeBuilder builder, long lastIndexedTo)