<commit_before>package com.bigbass1997.linkbot;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Hashtable;

import org.apache.commons.io.FileUtils;

import com.bigbass1997.linkbot.util.Util;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

public class ConfigManager {
	
	public static String hostname, database, username, password, dbTable;
	public static int port;
	public static boolean debug;
	
	public static Hashtable<String, String> eventNames;

	public static String configJsonPath;
	public static JsonObject configJson;
	
	public static void loadConfig(FMLPreInitializationEvent e){
		configJsonPath = e.getModConfigurationDirectory() + "/LinkBot.json";
		
		String configString = readFile(configJsonPath);
		if(configString == null || configString == ""){
			createConfig(e);
		}
		
		configJson = new JsonParser().parse(readFile(configJsonPath)).getAsJsonObject();
		
		//--
		
		//--
		
		debug = configJson.get("debug").getAsBoolean();
	}
	
	public static void reloadConfig(){
		configJson = new JsonParser().parse(readFile(configJsonPath)).getAsJsonObject();
		
		//--
		
		//--
		
		debug = configJson.get("debug").getAsBoolean();
	}<commit_msg>Cleaned ConfigManager<commit_after>package com.bigbass1997.linkbot;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;

import org.apache.commons.io.FileUtils;

import com.bigbass1997.linkbot.util.Util;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

public class ConfigManager {
	
	public static boolean debug;

	public static String configJsonPath;
	public static JsonObject configJson;
	
	public static void loadConfig(FMLPreInitializationEvent e){
		configJsonPath = e.getModConfigurationDirectory() + "/LinkBot.json";
		
		String configString = readFile(configJsonPath);
		if(configString == null || configString == ""){
			createConfig(e);
		}
		
		configJson = new JsonParser().parse(readFile(configJsonPath)).getAsJsonObject();
		
		//--
		
		
		//--
		
		debug = configJson.get("debug").getAsBoolean();
	}
	
	public static void reloadConfig(){
		configJson = new JsonParser().parse(readFile(configJsonPath)).getAsJsonObject();
		
		//--
		
		//--
		
		debug = configJson.get("debug").getAsBoolean();
	}
{'fraction_non_alphanumeric': 0.11843107387661843, 'fraction_numerical': 0.006092916984006093, 'mean_word_length': 4.673866090712743, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5828328', 'n_tokens_mistral': 888, 'n_tokens_neox': 778, 'n_words': 156}