test_class.declarator: folder = new TemporaryFolder(new File("./target"))
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public TemporaryFolder folder = new TemporaryFolder(new File("./target"));
test_class.type: TemporaryFolder
test_class.var_name: folder
test_class.declarator: RANDOM = new Random()
test_class.modifier: private static final
test_class.original_string: private static final Random RANDOM = new Random();
test_class.type: Random
test_class.var_name: RANDOM
test_class.file: oak-commons/src/test/java/org/apache/jackrabbit/oak/commons/FileIOUtilsTest.java
test_class.identifier: FileIOUtilsTest
test_case.body: @Test
      public void sortTest() throws IOException {
          List<String> list = newArrayList("a", "z", "e", "b");
          File f = assertWrite(list.iterator(), false, list.size());
  
          sort(f);
  
          BufferedReader reader =
              new BufferedReader(new InputStreamReader(new FileInputStream(f), UTF_8));
          String line;
          List<String> retrieved = newArrayList();
          while ((line = reader.readLine()) != null) {
              retrieved.add(line);
          }
          closeQuietly(reader);
          Collections.sort(list);
          assertArrayEquals(Arrays.toString(list.toArray()), list.toArray(), retrieved.toArray());
      }
test_case.class_method_signature: FileIOUtilsTest.sortTest()
test_case.full_signature: @Test public void sortTest()
test_case.identifier: sortTest
test_case.invocations: newArrayList assertWrite iterator size sort newArrayList readLine add closeQuietly sort assertArrayEquals toString toArray toArray toArray
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void sortTest()
focal_class.declarator: lexComparator = new Comparator<String>() {
          @Override public int compare(String s1, String s2) {
              return s1.compareTo(s2);
          }
      }
focal_class.modifier: public final static
focal_class.original_string: public final static Comparator<String> lexComparator = new Comparator<String>() {
          @Override public int compare(String s1, String s2) {
              return s1.compareTo(s2);
          }
      };
focal_class.type: Comparator<String>
focal_class.var_name: lexComparator
focal_class.declarator: passThruTransformer = new Function<String, String>() {
          @Nullable @Override public String apply(@Nullable String input) {
              return input;
          }
      }
focal_class.modifier: @Deprecated public final static
focal_class.original_string: @Deprecated public final static Function<String, String> passThruTransformer = new Function<String, String>() {
          @Nullable @Override public String apply(@Nullable String input) {
              return input;
          }
      };
focal_class.type: Function<String, String>
focal_class.var_name: passThruTransformer
focal_class.file: oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/FileIOUtils.java
focal_class.identifier: FileIOUtils
focal_class.class_method_signature: FileIOUtils.FileIOUtils()
focal_class.full_signature: private  FileIOUtils()
focal_class.identifier: FileIOUtils
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  FileIOUtils()
focal_class.class_method_signature: FileIOUtils.sort(File file)
focal_class.full_signature: public static void sort(File file)
focal_class.identifier: sort
focal_class.modifiers: public static
focal_class.parameters: (File file)
focal_class.return: void
focal_class.signature: void sort(File file)
focal_class.class_method_signature: FileIOUtils.sort(File file, Comparator<String> comparator)
focal_class.full_signature: public static void sort(File file, Comparator<String> comparator)
focal_class.identifier: sort
focal_class.modifiers: public static
focal_class.parameters: (File file, Comparator<String> comparator)
focal_class.return: void
focal_class.signature: void sort(File file, Comparator<String> comparator)
focal_class.class_method_signature: FileIOUtils.merge(List<File> files, File output)
focal_class.full_signature: public static void merge(List<File> files, File output)
focal_class.identifier: merge
focal_class.modifiers: public static
focal_class.parameters: (List<File> files, File output)
focal_class.return: void
focal_class.signature: void merge(List<File> files, File output)
focal_class.class_method_signature: FileIOUtils.merge(List<File> files, File output, Comparator<String> comparator)
focal_class.full_signature: public static void merge(List<File> files, File output, Comparator<String> comparator)
focal_class.identifier: merge
focal_class.modifiers: public static
focal_class.parameters: (List<File> files, File output, Comparator<String> comparator)
focal_class.return: void
focal_class.signature: void merge(List<File> files, File output, Comparator<String> comparator)
focal_class.class_method_signature: FileIOUtils.copy(InputStream stream)
focal_class.full_signature: public static File copy(InputStream stream)
focal_class.identifier: copy
focal_class.modifiers: public static
focal_class.parameters: (InputStream stream)
focal_class.return: File
focal_class.signature: File copy(InputStream stream)
focal_class.class_method_signature: FileIOUtils.append(List<File> files, File appendTo, boolean delete)
focal_class.full_signature: public static void append(List<File> files, File appendTo, boolean delete)
focal_class.identifier: append
focal_class.modifiers: public static
focal_class.parameters: (List<File> files, File appendTo, boolean delete)
focal_class.return: void
focal_class.signature: void append(List<File> files, File appendTo, boolean delete)
focal_class.class_method_signature: FileIOUtils.writeAsLine(BufferedWriter writer, String str, boolean escape)
focal_class.full_signature: public static void writeAsLine(BufferedWriter writer, String str, boolean escape)
focal_class.identifier: writeAsLine
focal_class.modifiers: public static
focal_class.parameters: (BufferedWriter writer, String str, boolean escape)
focal_class.return: void
focal_class.signature: void writeAsLine(BufferedWriter writer, String str, boolean escape)
focal_class.class_method_signature: FileIOUtils.writeStrings(Iterator<String> iterator, File f, boolean escape)
focal_class.full_signature: public static int writeStrings(Iterator<String> iterator, File f, boolean escape)
focal_class.identifier: writeStrings
focal_class.modifiers: public static
focal_class.parameters: (Iterator<String> iterator, File f, boolean escape)
focal_class.return: int
focal_class.signature: int writeStrings(Iterator<String> iterator, File f, boolean escape)
focal_class.class_method_signature: FileIOUtils.writeStrings(Iterator<String> iterator, File f, boolean escape,
          @Nullable Logger logger, @Nullable String message)
focal_class.full_signature: public static int writeStrings(Iterator<String> iterator, File f, boolean escape,
          @Nullable Logger logger, @Nullable String message)
focal_class.identifier: writeStrings
focal_class.modifiers: public static
focal_class.parameters: (Iterator<String> iterator, File f, boolean escape,
          @Nullable Logger logger, @Nullable String message)
focal_class.return: int
focal_class.signature: int writeStrings(Iterator<String> iterator, File f, boolean escape,
          @Nullable Logger logger, @Nullable String message)
focal_class.class_method_signature: FileIOUtils.writeStrings(Iterator<String> iterator, File f, boolean escape,
          @NotNull java.util.function.Function<String, String> transformer, @Nullable Logger logger, @Nullable String message)
focal_class.full_signature: public static int writeStrings(Iterator<String> iterator, File f, boolean escape,
          @NotNull java.util.function.Function<String, String> transformer, @Nullable Logger logger, @Nullable String message)
focal_class.identifier: writeStrings
focal_class.modifiers: public static
focal_class.parameters: (Iterator<String> iterator, File f, boolean escape,
          @NotNull java.util.function.Function<String, String> transformer, @Nullable Logger logger, @Nullable String message)
focal_class.return: int
focal_class.signature: int writeStrings(Iterator<String> iterator, File f, boolean escape,
          @NotNull java.util.function.Function<String, String> transformer, @Nullable Logger logger, @Nullable String message)
focal_class.class_method_signature: FileIOUtils.writeStrings(Iterator<String> iterator, File f, boolean escape,
              @NotNull Function<String, String> transformer, @Nullable Logger logger, @Nullable String message)
focal_class.full_signature: @Deprecated public static int writeStrings(Iterator<String> iterator, File f, boolean escape,
              @NotNull Function<String, String> transformer, @Nullable Logger logger, @Nullable String message)
focal_class.identifier: writeStrings
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (Iterator<String> iterator, File f, boolean escape,
              @NotNull Function<String, String> transformer, @Nullable Logger logger, @Nullable String message)
focal_class.return: int
focal_class.signature: int writeStrings(Iterator<String> iterator, File f, boolean escape,
              @NotNull Function<String, String> transformer, @Nullable Logger logger, @Nullable String message)
focal_class.class_method_signature: FileIOUtils.readStringsAsSet(InputStream stream, boolean unescape)
focal_class.full_signature: public static Set<String> readStringsAsSet(InputStream stream, boolean unescape)
focal_class.identifier: readStringsAsSet
focal_class.modifiers: public static
focal_class.parameters: (InputStream stream, boolean unescape)
focal_class.return: Set<String>
focal_class.signature: Set<String> readStringsAsSet(InputStream stream, boolean unescape)
focal_class.class_method_signature: FileIOUtils.lineBreakAwareComparator(Comparator<String> delegate)
focal_class.full_signature: public static Comparator<String> lineBreakAwareComparator(Comparator<String> delegate)
focal_class.identifier: lineBreakAwareComparator
focal_class.modifiers: public static
focal_class.parameters: (Comparator<String> delegate)
focal_class.return: Comparator<String>
focal_class.signature: Comparator<String> lineBreakAwareComparator(Comparator<String> delegate)
focal_class.class_method_signature: FileIOUtils.copyInputStreamToFile(final InputStream source, final File destination)
focal_class.full_signature: public static void copyInputStreamToFile(final InputStream source, final File destination)
focal_class.identifier: copyInputStreamToFile
focal_class.modifiers: public static
focal_class.parameters: (final InputStream source, final File destination)
focal_class.return: void
focal_class.signature: void copyInputStreamToFile(final InputStream source, final File destination)
focal_method.body: public static void sort(File file) throws IOException {
          File sorted = createTempFile("fleioutilssort", null);
          merge(sortInBatch(file, lexComparator, true), sorted);
          move(sorted, file);
      }
focal_method.class_method_signature: FileIOUtils.sort(File file)
focal_method.full_signature: public static void sort(File file)
focal_method.identifier: sort
focal_method.invocations: createTempFile merge sortInBatch move
focal_method.modifiers: public static
focal_method.parameters: (File file)
focal_method.return: void
focal_method.signature: void sort(File file)