<commit_before>package it.unical.mat.embasp.base;

public abstract class InputProgram {

	protected StringBuilder program;
	protected StringBuilder files_paths;

	InputProgram() {
		program = new StringBuilder();
		files_paths = new StringBuilder();
	}

	InputProgram (String initial_program ){
		program = new StringBuilder(initial_program);
		files_paths = new StringBuilder();
	}

	public void addRawInput(String raw_input){
		program.append(raw_input);
	}

	public void addFilesPath(String file_path){
		files_paths.append(file_path);
	}
	public void addProgram(String program){
		this.program.append(program);
	}

	public void clearFilesPaths(){
		files_paths.setLength(0);
		files_paths.trimToSize();
	}

	public void clearProgram(){
		program.setLength(0);
		program.trimToSize();
	}

	public void clearAll(){
		clearFilesPaths();
		clearProgram();
	}

}
<commit_msg>Completed TODO<commit_after>package it.unical.mat.embasp.base;

import java.util.ArrayList;
import java.util.List;

public abstract class InputProgram {

	protected String program; 
	protected List<String> files_paths; 

	public InputProgram() {
		init();
	}

	public InputProgram (String initial_program ){
		init();
		program = initial_program;
	}
	
	private void init(){
		program = new String();
		files_paths = new ArrayList<>();
	}

	public void addRawInput(String raw_input){
		program += raw_input;
	}

	public void addFilesPath(String file_path){
		files_paths.add(file_path);
	}
	public void addProgram(String program){
		this.program = program;
	}

	public void clearFilesPaths(){
		files_paths.clear();
	}

	public void clearProgram(){
		program = "";
	}

	public void clearAll(){
		clearFilesPaths();
		clearProgram();
	}

}

{'fraction_non_alphanumeric': 0.11273364485981309, 'fraction_numerical': 0.0011682242990654205, 'mean_word_length': 4.767676767676767, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3138255', 'n_tokens_mistral': 571, 'n_tokens_neox': 523, 'n_words': 124}