<commit_before>package ru.pravvich.start;

/**
 * @since <NAME>
 * @since 09.11.2016
 */
public class StartUI {
    private Input input;
    private Tracker tracker = new Tracker();

    // only for tests
    public void setInput(Input input) {
        this.input = input;
    }

    public Tracker getTracker() {
        return this.tracker;
    }

    public StartUI(Input input) {
        this.input = input;
    }

    // init new task
    public void startUpp() {
        MenuTracker menuTracker = new MenuTracker(this.input,this.tracker);
        menuTracker.fillAction();
        menuTracker.showMenu();
        do {
            int key = this.input.askInt("Select action: ");
            menuTracker.select(key);
            menuTracker.showMenu();
        } while (!("y").equals(this.input.ask("For quit enter (y) : ")));
    }

    public static void main(String[] args) {

        System.out.println("Welcome to task manager!");
        Input input = new ConsoleInput();
        StartUI startUI = new StartUI(input);
        startUI.startUpp();
    }<commit_msg>add method setTracker(Tracker) for tests<commit_after>package ru.pravvich.start;

/**
 * @since <NAME>
 * @since 09.11.2016
 */
public class StartUI {
    private Input input;
    private Tracker tracker = new Tracker();

    // only for tests
    public void setTracker(Tracker tracker) {
        this.tracker = tracker;
    }

    public Tracker getTracker() {
        return this.tracker;
    }

    public StartUI(Input input) {
        this.input = input;
    }

    // init new task
    public void startUpp() {
        MenuTracker menuTracker = new MenuTracker(this.input,this.tracker);
        menuTracker.fillAction();
        menuTracker.showMenu();
        do {
            int key = this.input.askInt("Select action: ");
            menuTracker.select(key);
            menuTracker.showMenu();
        } while (!("y").equals(this.input.ask("For quit enter (y) : ")));
    }

    public static void main(String[] args) {

        System.out.println("Welcome to task manager!");
        Input input = new ConsoleInput();
        StartUI startUI = new StartUI(input);
        startUI.startUpp();
    }
{'fraction_non_alphanumeric': 0.12276683463124141, 'fraction_numerical': 0.007329363261566651, 'mean_word_length': 2.2743628185907045, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7322857', 'n_tokens_mistral': 652, 'n_tokens_neox': 620, 'n_words': 160}