<commit_before><commit_msg>Creation of the ReportWritter class, pending for test<commit_after>package es.uniovi.asw;


import java.io.FileNotFoundException;
import java.io.PrintWriter;

/**
 * Created by Chamadoria on 24/02/2016.
 * @author UO236953
 */
public class ReportWritter {
    private StringBuffer sb;

    public ReportWritter(){
        sb = new StringBuffer();
    }

    public void add(String register){
        sb.append(register+'\n');
    }

    public void clean(){
        sb.delete(0,sb.length()-1);
    }
    public void print(){
        System.out.println(sb);
    }
    public void makeTxt(String fileName){
        try {
            PrintWriter writer = new PrintWriter(fileName + ".txt");
            writer.print(sb);
            writer.close();
        }catch (FileNotFoundException e1) {
                e1.printStackTrace();
        }
    }
}
{'fraction_non_alphanumeric': 0.11697247706422019, 'fraction_numerical': 0.020642201834862386, 'mean_word_length': 2.3576923076923078, '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': '1879619', 'n_tokens_mistral': 267, 'n_tokens_neox': 254, 'n_words': 60}