<commit_before>import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

/*
 * 
 * 
 * 
 */
public class Storage {
	private ArrayList<String> inputData;
	private ArrayList<String> ignoreList;
	private static final Storage mStorage = new Storage();
	
	public Storage(){
		this.inputData = new ArrayList<String>();
		this.ignoreList = new ArrayList<String>();
	}
	
	public int getLength(ArrayList<String> al){
		return al.size();
	}
	
	public void addLine(ArrayList<String> al,String inputLine){
		al.add(inputLine);
	}
	
	public String getLineAtPos(ArrayList<String> al, int posNo){
		return al.get(posNo);
	}
	
	public static Storage getInstance(){ 
		return mStorage;
	}
	
	public void loadInputFile(String inputFileLocation) throws FileNotFoundException, IOException{
		try (BufferedReader br = new BufferedReader(new FileReader(inputFileLocation))) {
		    String line;
		    while ((line = br.readLine()) != null) {
		    	addLine(inputData, line);
		    }
		}
	}
	
	public boolean isIgnoredWordPresent(String word){
		for (int i = 0; i < ignoreList.size(); i++) {
			if(word.equalsIgnoreCase(ignoreList.get(i))){
				return true;
			}
		}
		return false;<commit_msg>changes to functions in storage class<commit_after>import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

/*
 * 
 * 
 * 
 */
public class Storage {
	private ArrayList<String> inputData;
	private ArrayList<String> ignoreList;
	private static final Storage mStorage = new Storage();
	
	public Storage(){
		this.inputData = new ArrayList<String>();
		this.ignoreList = new ArrayList<String>();
	}
	
	public int getLengthInputData(){
		return inputData.size();
	}
	
	public int getLengthIgnoreList(){
		return ignoreList.size();
	}
	
	public void addLine(String inputLine){
		inputData.add(inputLine);
	}
	
	public String getLineAtPos(int posNo){
		return inputData.get(posNo);
	}
	
	public static Storage getInstance(){ 
		return mStorage;
	}
	
	public void loadInputFile(String inputFileLocation) throws FileNotFoundException, IOException{
		try (BufferedReader br = new BufferedReader(new FileReader(inputFileLocation))) {
		    String line;
		    while ((line = br.readLine()) != null) {
		    	addLine(line);
		    }
		}
	}
	
	public boolean isIgnoredWordPresent(String word){
		for (int i = 0; i < ignoreList.size(); i++) {
			if(word.equalsIgnoreCase(ignoreList.get(i))){
				return true;
			}
		}
		return false;
{'fraction_non_alphanumeric': 0.11589147286821705, 'fraction_numerical': 0.0007751937984496124, 'mean_word_length': 4.224696356275303, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 14, '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': '6671208', 'n_tokens_mistral': 867, 'n_tokens_neox': 772, 'n_words': 198}