<commit_before>package com.paraam.cpeagent.core;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class CPEUtil {
	
	public ArrayList<String> parseFile(String filepath) {
		ArrayList<String> agentlist = new ArrayList<String>();
		System.out.println( "deserialize CpeConfDB >>>>>> : " + filepath);
		try {
			BufferedReader input = null;
			File infile = new File(filepath);
			if (infile.exists()) {
				input = new BufferedReader(new FileReader(infile));
			} else {
				InputStream is = this.getClass().getResourceAsStream(filepath);
				input = new BufferedReader(new InputStreamReader( is));
			}
			try {
				String line = null;
				while (( line = input.readLine()) != null) {
					agentlist.add(line);
				}<commit_msg>Update CPEUtil.java<commit_after>package com.paraam.cpeagent.core;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class CPEUtil {
	
	public ArrayList<String> parseFile(String filepath) {
		ArrayList<String> agentlist = new ArrayList<String>();
		//System.out.println( "deserialize CpeConfDB >>>>>> : " + filepath);
		try {
			BufferedReader input = null;
			File infile = new File(filepath);
			if (infile.exists()) {
				input = new BufferedReader(new FileReader(infile));
			} else {
				InputStream is = this.getClass().getResourceAsStream(filepath);
				input = new BufferedReader(new InputStreamReader( is));
			}
			try {
				String line = null;
				while (( line = input.readLine()) != null) {
					agentlist.add(line);
				}
{'fraction_non_alphanumeric': 0.1277602523659306, 'fraction_numerical': 0.0, 'mean_word_length': 4.271468144044321, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 21, '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': '130491', 'n_tokens_mistral': 665, 'n_tokens_neox': 589, 'n_words': 135}