<commit_before>package com.polarbirds.screencapture;

import com.polarbirds.screencapture.plugin.Configuration;
import com.polarbirds.screencapture.plugin.bundled.FileSaver;
import com.polarbirds.screencapture.view.View;
import com.polarbirds.screencapture.view.swing.CaptureFrame;

import java.awt.*;
import java.io.FileNotFoundException;

public class Main {

    public static final String VERSION = "1.0.1"; //TODO: Keep this updated

	public static void main(String[] args) {
        if (args.length > 0){
            for (String arg : args){
                if (arg.equals("-v") || arg.equals("--version")){
                    System.out.println("ScreenCapture version "+VERSION);
                    System.out.println("\tGithub repo: https://github.com/krissrex/ScreenCapture/");
                    return;
                }
                else if (arg.equals("-l") || arg.equals("--list")){
                    System.out.println("internal "+ FileSaver.class.getName());
                    return;
                }
                else if (arg.equals("-h") || arg.equals("--help")){
                    System.out.println("-v --version\tPrints the program version\n" +
                            "-l --list \t\tLists internal plugins.\n" +
                            "-h --help \t\tDisplays this help.");
                    return;
                }
                else {
                    System.out.println("Invalid argument. Use -h or --help for help.");
                    return;
                }
            }
        }


	    final String config = "config.txt";
		System.out.println("Started.");

        try {
            View view = new CaptureFrame();
            Configuration configuration = new Configuration(config);

            new Controller(view, configuration).start();
        } catch (AWTException e) {
            e.printStackTrace();
        }
    }
}
<commit_msg>Added support for specifying path to config file using the -c and --config parameters. Updated version number.<commit_after>package com.polarbirds.screencapture;

import com.polarbirds.screencapture.plugin.Configuration;
import com.polarbirds.screencapture.plugin.bundled.FileSaver;
import com.polarbirds.screencapture.view.View;
import com.polarbirds.screencapture.view.swing.CaptureFrame;

import java.awt.*;
import java.io.FileNotFoundException;

public class Main {

    public static final String VERSION = "1.0.2"; //TODO: Keep this updated

	public static void main(String[] args) {

        String config = "config.txt";

        for (String arg : args){
            if (arg.equals("-v") || arg.equals("--version")){
                System.out.println("ScreenCapture version "+VERSION);
                System.out.println("\tGithub repo: https://github.com/krissrex/ScreenCapture/");
                return;
            }
            else if (arg.equals("-l") || arg.equals("--list")){
                System.out.println("internal "+ FileSaver.class.getName());
                return;
            }
            else if (arg.equals("-h") || arg.equals("--help")){
                System.out.println("-v --version\tPrints the program version\n" +
                        "-l --list \t\tLists internal plugins.\n" +
                        "-h --help \t\tDisplays this help.\n"+
                        "-c=\"c:\\path\\to\\config.txt\" --config=\"c:\\path\\to\\config.txt\" \t\tSpecify path to config file"
                );
                return;
            }
            else if ((arg.startsWith("-c") || arg.startsWith("--config"))){
                String[] params = arg.split("=");
                if(params.length != 2){
                    return;
                }
                config = params[1];
            }
            else {
                System.out.println("Invalid argument. Use -h or --help for help.");
                return;
            }
        }

		System.out.println("Started using configuration file: " + config);

        try {
            View view = new CaptureFrame();
            Configuration configuration = new Configuration(config);

            new Controller(view, configuration).start();
        } catch (AWTException e) {
            e.printStackTrace();
        }
    }
}

{'fraction_non_alphanumeric': 0.13320736891828058, 'fraction_numerical': 0.0021256495040151155, 'mean_word_length': 1.6753000631711938, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '4623721', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1100, 'n_words': 249}