test_class.declarator: temporaryFolder = new TemporaryFolder(new File("target"))
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public TemporaryFolder temporaryFolder = new TemporaryFolder(new File("target"));
test_class.type: TemporaryFolder
test_class.var_name: temporaryFolder
test_class.file: oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/LocalIndexDirTest.java
test_class.identifier: LocalIndexDirTest
test_case.body: @Test
      public void nonEmptyDir() throws Exception{
          IndexMeta m = new IndexMeta("/a/b", 100);
          File baseDir = createDirWithIndexMetaFile(m);
          new File(baseDir, "foo").mkdir();
          LocalIndexDir dir = new LocalIndexDir(baseDir);
          assertFalse(dir.isEmpty());
      }
test_case.class_method_signature: LocalIndexDirTest.nonEmptyDir()
test_case.full_signature: @Test public void nonEmptyDir()
test_case.identifier: nonEmptyDir
test_case.invocations: createDirWithIndexMetaFile mkdir assertFalse isEmpty
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void nonEmptyDir()
focal_class.declarator: dir
focal_class.modifier: final
focal_class.original_string: final File dir;
focal_class.type: File
focal_class.var_name: dir
focal_class.declarator: indexMeta
focal_class.modifier: final
focal_class.original_string: final IndexMeta indexMeta;
focal_class.type: IndexMeta
focal_class.var_name: indexMeta
focal_class.file: oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/LocalIndexDir.java
focal_class.identifier: LocalIndexDir
focal_class.interfaces: implements Comparable<LocalIndexDir>
focal_class.class_method_signature: LocalIndexDir.LocalIndexDir(File dir)
focal_class.full_signature: public  LocalIndexDir(File dir)
focal_class.identifier: LocalIndexDir
focal_class.modifiers: public
focal_class.parameters: (File dir)
focal_class.signature:  LocalIndexDir(File dir)
focal_class.class_method_signature: LocalIndexDir.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: LocalIndexDir.isEmpty()
focal_class.full_signature: public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: LocalIndexDir.getJcrPath()
focal_class.full_signature: public String getJcrPath()
focal_class.identifier: getJcrPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getJcrPath()
focal_class.class_method_signature: LocalIndexDir.getFSPath()
focal_class.full_signature: public String getFSPath()
focal_class.identifier: getFSPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getFSPath()
focal_class.class_method_signature: LocalIndexDir.compareTo(LocalIndexDir o)
focal_class.full_signature: @Override public int compareTo(LocalIndexDir o)
focal_class.identifier: compareTo
focal_class.modifiers: @Override public
focal_class.parameters: (LocalIndexDir o)
focal_class.return: int
focal_class.signature: int compareTo(LocalIndexDir o)
focal_class.class_method_signature: LocalIndexDir.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: LocalIndexDir.isIndexDir(File file)
focal_class.full_signature: static boolean isIndexDir(File file)
focal_class.identifier: isIndexDir
focal_class.modifiers: static
focal_class.parameters: (File file)
focal_class.return: boolean
focal_class.signature: boolean isIndexDir(File file)
focal_method.body: public boolean isEmpty() {
          String[] listing = dir.list();
  
          //If some IO error occurs listing would be null
          //In such a case better to return false
          if (listing == null) {
              return false;
          }
  
          //If the dir only has the meta file then it would be
          //considered as empty
          return listing.length == 1;
      }
focal_method.class_method_signature: LocalIndexDir.isEmpty()
focal_method.full_signature: public boolean isEmpty()
focal_method.identifier: isEmpty
focal_method.invocations: list
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: boolean
focal_method.signature: boolean isEmpty()