<commit_before>import util.Coordinate;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created by Boti on 2017. 03. 16..
 */
public class Prompt {

    private static boolean doSupress = true;
    private static int indentLevel = 0;

    public static void supressMessages(boolean doSupress) {
        Prompt.doSupress = doSupress;
    }

    public static void addIndent() {
        printMessage("->");
        indentLevel++;
    }

    public static void removeIndent() {
        if (indentLevel > 0) {
            indentLevel--;
            printMessage("<-");
        }
    }

    public static int readCommand() {
        int input = -1;
        InputStreamReader ir = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(ir);
        String inputStr = "";
        try {
            inputStr = br.readLine();
            input = Integer.parseInt(inputStr);
        } catch (IOException e) {
            return -1;
        } catch (NumberFormatException e) {
            inputStr = inputStr.toLowerCase();
            switch (inputStr) {
                case "yes":;
                case "y":
                    input = 1;
                    break;
                case "no":;
                case "n":
                    input = 0;
                    break;
                default:
                    input = -1;
                    break;
            }
        }
        return input;
    }

    public static void printMessage(String s) {
        for (int i = 0; i < indentLevel; i++) {
            System.out.print("\t");
        }
        System.out.println(s);
    }<commit_msg>Extended Prompt functionality<commit_after>import util.Coordinate;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created by Boti on 2017. 03. 16..
 */
public class Prompt {

    private static boolean doSupress = true;
    private static int indentLevel = 0;

    public static void supressMessages(boolean doSupress) {
        Prompt.doSupress = doSupress;
    }

    public static void addIndent() {
        printMessage("->");
        indentLevel++;
    }

    public static void removeIndent() {
        if (indentLevel > 0) {
            indentLevel--;
            printMessage("<-");
        }
    }

    public static int readCommand() {
        int input = -1;
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String inputStr = "";
        try {
            inputStr = br.readLine().toLowerCase();
            input = Integer.parseInt(inputStr);
        } catch (IOException e) {
            return -1;
        } catch (NumberFormatException e) {
            switch (inputStr) {
                case "yes":;
                case "y":
                    input = 1;
                    break;
                case "no":;
                case "n":
                    input = 0;
                    break;
                default:
                    input = -1;
                    break;
            }
        }
        return input;
    }

    public static boolean readBool() {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
            String inputStr = br.readLine().toLowerCase();
            switch (inputStr) {
                case "yes":;
                case "y":
                    return true;
                default:
                    return false;
            }
        } catch (IOException e) {
            return false;
        }
    }

    public static void printMessage(String s) {
        for (int i = 0; i < indentLevel; i++) {
            System.out.print("\t");
        }
        System.out.println(s);
    }
{'fraction_non_alphanumeric': 0.10148777895855472, 'fraction_numerical': 0.008501594048884165, 'mean_word_length': 1.3844205193160228, 'pattern_counts': {'":': 10, '<': 7, '<?xml version=': 0, '>': 7, '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': '3194531', 'n_tokens_mistral': 1027, 'n_tokens_neox': 965, 'n_words': 262}