<commit_before>package pl.edu.icm.coansys.classification.documents.auxil.oozieworkflowbaker.xmlworkflows;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import pl.edu.icm.coansys.classification.documents.auxil.oozieworkflowbaker.xmlworkflows.transformations.ForkMerge;


public class OozieWorkflowBaker {
	public static void main(String[] args) throws IOException{
		if(args.length!=2){
			System.out.println("Usage: java Creator input_xml_file_path output_xml_file_path");
			System.exit(1);
		}
		
		File in_file = new File(args[0]);
		File out_file = new File(args[1]+"/"+System.nanoTime()+".xml");
		
		StringBuilder sb = readFileToStringBuilder(in_file);
		
		sb = ForkMerge.substitute(sb);
		
		FileWriter fw = new FileWriter(out_file);
		fw.write(sb.toString());
		fw.flush();
		fw.close();
		
		return;
	}

	private static StringBuilder readFileToStringBuilder(File in_file) throws IOException {
		BufferedReader br = new BufferedReader(new FileReader(in_file));
		StringBuilder sb = new StringBuilder();
		
		for(String line = br.readLine();line!=null;line = br.readLine()){
			sb.append(line+"\n");
		}
		br.close();
		return sb;
	}
}<commit_msg>final final name is workflow.xml<commit_after>package pl.edu.icm.coansys.classification.documents.auxil.oozieworkflowbaker.xmlworkflows;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import pl.edu.icm.coansys.classification.documents.auxil.oozieworkflowbaker.xmlworkflows.transformations.ForkMerge;


public class OozieWorkflowBaker {
	public static void main(String[] args) throws IOException{
		File in_file = new File(args[0]);
		File out_file = new File(args[0].replaceAll("\\.ingridient", ""));
		
		StringBuilder sb = readFileToStringBuilder(in_file);
		
		sb = ForkMerge.substitute(sb);
		
		FileWriter fw = new FileWriter(out_file);
		fw.write(sb.toString());
		fw.flush();
		fw.close();
		
		return;
	}

	private static StringBuilder readFileToStringBuilder(File in_file) throws IOException {
		BufferedReader br = new BufferedReader(new FileReader(in_file));
		StringBuilder sb = new StringBuilder();
		
		for(String line = br.readLine();line!=null;line = br.readLine()){
			sb.append(line+"\n");
		}
		br.close();
		return sb;
	}
}
{'fraction_non_alphanumeric': 0.1260178363706863, 'fraction_numerical': 0.0023264831329972858, 'mean_word_length': 5.128266033254157, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2377486', 'n_tokens_mistral': 932, 'n_tokens_neox': 841, 'n_words': 161}