<commit_before>package jdbc4rdf.executor;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;

import org.apache.logging.log4j.core.appender.AppenderLoggingException;

import jdbc4rdf.loader.io.FileAppender;

public class ResultWriter {
	
	private File resultFile;
	private FileAppender writer = new FileAppender();
	
	
	public void newFile() {
		resultFile = new File("results.txt");
		// create the file if it does not exist yet
		if (!resultFile.exists()) {
			try {
				resultFile.createNewFile();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}else{
			try {
				resultFile.delete();
				resultFile.createNewFile();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}		
	}
	
	public void writeFile(ArrayList<String> data){
		for(int i = 0; i < data.size(); i++){
			writer.appendLine(resultFile, data.get(i));
		}
	}
	
	
}
<commit_msg>Deleted unnecessary import.<commit_after>package jdbc4rdf.executor;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;

import jdbc4rdf.loader.io.FileAppender;

public class ResultWriter {
	
	private File resultFile;
	private FileAppender writer = new FileAppender();
	
	
	public void newFile() {
		resultFile = new File("results.txt");
		// create the file if it does not exist yet
		if (!resultFile.exists()) {
			try {
				resultFile.createNewFile();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}else{
			try {
				resultFile.delete();
				resultFile.createNewFile();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}		
	}
	
	public void writeFile(ArrayList<String> data){
		for(int i = 0; i < data.size(); i++){
			writer.appendLine(resultFile, data.get(i));
		}
	}
	
	
}

{'fraction_non_alphanumeric': 0.12869565217391304, 'fraction_numerical': 0.004057971014492754, 'mean_word_length': 3.506527415143603, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3818480', 'n_tokens_mistral': 657, 'n_tokens_neox': 563, 'n_words': 132}