<commit_before>package linenux.config;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;

import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;

/**
 * Creates the configuration file.
 */
public class Config {
    public static final String DEFAULT_FILE_PATH = Paths.get(".").toAbsolutePath().toString();
    public static final String CONFIG_FILENAME = "Config.json";
    public static final String SCHEDULE_FILENAME = "Schedule.xml";
    public static final String TEST_SCHEDULE_FILENAME = "TestSchedule.xml";

    private Path configFilePath;
    private Path scheduleFilePath;
    private Path testScheduleFilePath;

    public Config() {
        System.out.println(DEFAULT_FILE_PATH);
        this.configFilePath = Paths.get(DEFAULT_FILE_PATH + CONFIG_FILENAME);
        this.scheduleFilePath = Paths.get(DEFAULT_FILE_PATH + SCHEDULE_FILENAME);
        this.testScheduleFilePath = Paths.get(DEFAULT_FILE_PATH + TEST_SCHEDULE_FILENAME);
        initialize();
    }

    /**
     * Initializes configuration file with default values;
     */
    @SuppressWarnings("unchecked")
    private void initialize() {
        if (hasConfigFile()) {
            return;
        }<commit_msg>remove println<commit_after>package linenux.config;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;

import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;

/**
 * Creates the configuration file.
 */
public class Config {
    public static final String DEFAULT_FILE_PATH = Paths.get(".").toAbsolutePath().toString();
    public static final String CONFIG_FILENAME = "Config.json";
    public static final String SCHEDULE_FILENAME = "Schedule.xml";
    public static final String TEST_SCHEDULE_FILENAME = "TestSchedule.xml";

    private Path configFilePath;
    private Path scheduleFilePath;
    private Path testScheduleFilePath;

    public Config() {
        this.configFilePath = Paths.get(DEFAULT_FILE_PATH + CONFIG_FILENAME);
        this.scheduleFilePath = Paths.get(DEFAULT_FILE_PATH + SCHEDULE_FILENAME);
        this.testScheduleFilePath = Paths.get(DEFAULT_FILE_PATH + TEST_SCHEDULE_FILENAME);
        initialize();
    }

    /**
     * Initializes configuration file with default values;
     */
    @SuppressWarnings("unchecked")
    private void initialize() {
        if (hasConfigFile()) {
            return;
        }
{'fraction_non_alphanumeric': 0.09915907498248074, 'fraction_numerical': 0.0, 'mean_word_length': 3.8307952622673436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4926233', 'n_tokens_mistral': 821, 'n_tokens_neox': 809, 'n_words': 180}