<commit_before>package server;

import org.codehaus.jackson.map.ObjectMapper;

import config.ConfigManager;

class CLIHandler {
	public boolean configFileProvided() {
		return this.hasConfigFile;
	}

	public String getConfigFilePath() {
		return this.configFilePath;
	}

	public boolean loadTextGraph() {
		return this.textGraph;
	}

	public boolean serializegraph() {
		return this.dumpgraph;
	}

	public boolean parametersProvided() {
		return parametersProvided;
	}

	private boolean hasConfigFile = false;
	private String configFilePath;
	private boolean textGraph = true;;
	private boolean dumpgraph = false;
	private boolean parametersProvided;

	public CLIHandler(ObjectMapper mapper, String[] args) {
		parametersProvided = args.length > 0;
		textGraph = true;
		dumpgraph = false;
		for (int i = 0; i < args.length; i++) {
			// Load Config
			if (args[i].startsWith("-c") && ((i + 1) < args.length)) {
				hasConfigFile = true;
				configFilePath = args[i + 1];
			} else if (args[i].trim().equals("dumpgraph")) {
				dumpgraph = true;
			} else if (args[i].trim().startsWith("-f")
					&& ((i + 1) < args.length)
					&& args[i + 1].trim().equals("dump")) {
				textGraph = false;
			}
		}
		if (parametersProvided()) {
			if (!configFileProvided()) {
				System.err
						.println("Missing config path parameter, using defaults");
				System.err<commit_msg>Remove unneedes semicolon<commit_after>package server;

import org.codehaus.jackson.map.ObjectMapper;

import config.ConfigManager;

class CLIHandler {
	public boolean configFileProvided() {
		return this.hasConfigFile;
	}

	public String getConfigFilePath() {
		return this.configFilePath;
	}

	public boolean loadTextGraph() {
		return this.textGraph;
	}

	public boolean serializegraph() {
		return this.dumpgraph;
	}

	public boolean parametersProvided() {
		return parametersProvided;
	}

	private boolean hasConfigFile = false;
	private String configFilePath;
	private boolean textGraph = true;
	private boolean dumpgraph = false;
	private boolean parametersProvided;

	public CLIHandler(ObjectMapper mapper, String[] args) {
		parametersProvided = args.length > 0;
		textGraph = true;
		dumpgraph = false;
		for (int i = 0; i < args.length; i++) {
			// Load Config
			if (args[i].startsWith("-c") && ((i + 1) < args.length)) {
				hasConfigFile = true;
				configFilePath = args[i + 1];
			} else if (args[i].trim().equals("dumpgraph")) {
				dumpgraph = true;
			} else if (args[i].trim().startsWith("-f")
					&& ((i + 1) < args.length)
					&& args[i + 1].trim().equals("dump")) {
				textGraph = false;
			}
		}
		if (parametersProvided()) {
			if (!configFileProvided()) {
				System.err
						.println("Missing config path parameter, using defaults");
				System.err
{'fraction_non_alphanumeric': 0.13059294288832302, 'fraction_numerical': 0.0043652237177155325, 'mean_word_length': 3.799301919720768, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '4894048', 'n_tokens_mistral': 985, 'n_tokens_neox': 852, 'n_words': 219}