<commit_before>package com.mjoell.twitchchatcounter;

import java.sql.SQLException;

public class TwitchChatCounter {
	public static String username;
	public static String password;
	public static String channel;
	public static String mysqluser;
	public static String mysqlpassword;
	
	public static void main(String args[]) throws Exception {
		if(args.length != 5) {
			System.out.println("You messed up, please fix.");
		} else {
			username = args[0];
			password = args[1];
			channel = "#" + args[2];
			mysqluser = args[3];
			mysqlpassword = args[4];
			
			TwitchConnect.main();
		}
	}
}<commit_msg>Configuration file, no more parameters<commit_after>package com.mjoell.twitchchatcounter;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Properties;

public class TwitchChatCounter {
	public static String username;
	public static String password;
	public static String channel;
	public static String mysqluser;
	public static String mysqlpassword;
	
	public static void main(String args[]) throws Exception {
		File file = new File("twitch.conf");
		
		if(!file.exists()) {
			Properties properties = new Properties();
			OutputStream output = null;
			
			try {
				output = new FileOutputStream("twitch.conf");
				
				properties.setProperty("twitchusername", "TwitchUsername");
				properties.setProperty("twitchpassword", "<PASSWORD>");
				properties.setProperty("channel", "TwitchChannel");
				properties.setProperty("mysqluser", "MySQLUser");
				properties.setProperty("mysqlpass", "<PASSWORD>");
			} catch(IOException e) {
				e.printStackTrace();
			} finally {
				output.close();
			}
		} else {
			Properties properties = new Properties();
			InputStream input = null;
			
			try {
				input = new FileInputStream("twitch.conf");
				
				properties.load(input);
				username = properties.getProperty("twitchusername");
				password = properties.getProperty("<PASSWORD>password");
				channel = properties.getProperty("channel");
				mysqluser = properties.getProperty("mysqluser");
				mysqlpassword = properties.getProperty("mysqlpassword");
			} catch(IOException e) {
				e.printStackTrace();
			} finally {
				input.close();
			}
			
			TwitchConnect.main();
		}
	}
}
{'fraction_non_alphanumeric': 0.1188542112013681, 'fraction_numerical': 0.0025651988029072254, 'mean_word_length': 4.223214285714286, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '3104817', 'n_tokens_mistral': 766, 'n_tokens_neox': 642, 'n_words': 163}