<commit_before>package loc;

import loc.filter.Filter;
import loc.filter.FilterFactory;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;

public class ConfigFileReader {
	public static Filter[] readFilters(Path filePath) throws IOException {
		List<Filter> filterList = new ArrayList<>();
		BufferedReader bufferedReader = new BufferedReader(new FileReader(filePath.toFile()));
		String line;
		while ((line = bufferedReader.readLine()) != null) {
			filterList.add(FilterFactory.create(line));
		}
		return filterList.toArray(new Filter[filterList.size()]);
	}
}<commit_msg>HotFix skip empty or whitespace config lines in ConfigFileReader<commit_after>package loc;

import loc.filter.Filter;
import loc.filter.FilterFactory;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;

public class ConfigFileReader {
	public static Filter[] readFilters(Path filePath) throws IOException {
		List<Filter> filterList = new ArrayList<>();
		BufferedReader bufferedReader = new BufferedReader(new FileReader(filePath.toFile()));
		String line;
		while ((line = bufferedReader.readLine()) != null) {
			line = line.trim();
			if (line.isEmpty()) continue;
			filterList.add(FilterFactory.create(line));
		}
		return filterList.toArray(new Filter[filterList.size()]);
	}
}
{'fraction_non_alphanumeric': 0.11887172599059771, 'fraction_numerical': 0.0, 'mean_word_length': 5.742081447963801, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5607909', 'n_tokens_mistral': 461, 'n_tokens_neox': 437, 'n_words': 107}