<commit_before>package adf.launcher;

import adf.Main;

import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.jar.Attributes;
import java.util.jar.Manifest;

import static adf.Main.VERSION_CODE;

public class ConsoleOutput
{
    private static final int titleLength = 6;

    public static enum State {INFO, WARN, ERROR, NOTICE, START, FINISH};

    public static void out(State state, String out)
    {
        boolean colorMode = System.getProperty("cm", "0").equals("1");
        if (colorMode)
        {
            switch (state)
            {
                case INFO:
                    System.out.print("\u001B[36m"); break;
                case WARN:
                    System.out.print("\u001B[33m"); break;
                case ERROR:
                    System.out.print("\u001B[31m"); break;
                case NOTICE:
                    System.out.print("\u001B[35m"); break;
                case START:
                case FINISH:
                    System.out.print("\u001B[32m"); break;
            }
        }
        System.out.print('[');
        System.out.print(state.name());
        for (int i = state.name().length(); i < titleLength; i++)
        { System.out.print(' '); }
        System.out.print("]" + (colorMode ? "\u001B[0m " : " "));
        System.out.println(out);
    }

    public static void info(String out)
    { out(State.INFO, out); }
<commit_msg>modify color output mode flag<commit_after>package adf.launcher;

import adf.Main;

import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.jar.Attributes;
import java.util.jar.Manifest;

import static adf.Main.VERSION_CODE;

public class ConsoleOutput
{
    private static final int titleLength = 6;

    public static enum State {INFO, WARN, ERROR, NOTICE, START, FINISH};

    public static void out(State state, String out)
    {
        boolean colorMode = System.getProperty("color", "0").equals("1");
        if (colorMode)
        {
            switch (state)
            {
                case INFO:
                    System.out.print("\u001B[36m"); break;
                case WARN:
                    System.out.print("\u001B[33m"); break;
                case ERROR:
                    System.out.print("\u001B[31m"); break;
                case NOTICE:
                    System.out.print("\u001B[35m"); break;
                case START:
                case FINISH:
                    System.out.print("\u001B[32m"); break;
            }
        }
        System.out.print('[');
        System.out.print(state.name());
        for (int i = state.name().length(); i < titleLength; i++)
        { System.out.print(' '); }
        System.out.print("]" + (colorMode ? "\u001B[0m " : " "));
        System.out.println(out);
    }

    public static void info(String out)
    { out(State.INFO, out); }

{'fraction_non_alphanumeric': 0.1348627042057699, 'fraction_numerical': 0.02224539450816823, 'mean_word_length': 1.8023369036027264, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4883292', 'n_tokens_mistral': 910, 'n_tokens_neox': 833, 'n_words': 192}