<commit_before>package edu.wheaton.simulator.statistics;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Serializer {
	
	

	public static void serializer(String serializable) {
		String filename = "tester.txt"; // TODO: Change if necessary
		
		try {
			BufferedWriter writer = new BufferedWriter(new FileWriter(
					filename));
			writer.write(serializable);
			writer.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		// TODO: Move to a separate method
		try {
			BufferedReader reader = new BufferedReader(new FileReader(
					filename));
			
			System.out.println(reader.readLine());
		
			
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}<commit_msg>Serializer currently working.<commit_after>package edu.wheaton.simulator.statistics;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Serializer {

	public static void serializer(String serializable) {
		String filename = "tester.txt"; // TODO: Change if necessary

		try {
			BufferedWriter writer = new BufferedWriter(
					new FileWriter(filename));
			writer.write(serializable);
			writer.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		// TODO: Move to a separate method
		try {
			BufferedReader reader = new BufferedReader(
					new FileReader(filename));

			StringBuilder sb = new StringBuilder();
			String line = reader.readLine();
			String savefile;

			while (line != null) {
				sb.append(line);
				sb.append("\n");
				line = reader.readLine();
			}

			savefile = sb.toString();
			
			reader.close();
			
			System.out.println(savefile + "\nDone."); //TODO Console tester.
			
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
{'fraction_non_alphanumeric': 0.11279170267934313, 'fraction_numerical': 0.0, 'mean_word_length': 3.4777562862669247, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3829060', 'n_tokens_mistral': 802, 'n_tokens_neox': 668, 'n_words': 177}