<commit_before><?php namespace Console;

class Console
{

    private static $colors = [
        'INFO'    => '32',
        'DEBUG'   => '35',
        'WARNING' => '31'
    ];

    public static $disabled = [];

    public static function __callStatic($type, $arguments)
    {

        $type = strtoupper($type);
        $message = trim($arguments[0], "    \n");
        $end_of_line = (isset($arguments[1])) ? $arguments[1] : "\n";

        if (in_array($type, self::$disabled)) {
            return false;
        }

        echo self::preText($type) . $message . $end_of_line;

    }

    private static function preText($type)
    {

        $date = '[' . self::dateString() . ']';
        $type = self::typeColor($type, '[' . $type . ']');

        return $date . $type . ' ';

    }

    private static function typeColor($type, $string)
    {

        if (!isset(self::$colors[$type])) {
            return $string;
        }

        return self::colorString(self::$colors[$type], $string);

    }

    public static function colorString($color, $string)
    {
        return "\033[" . $color . "m" . $string . "\033[0m";
    }

    private static function dateString()
    {
        return date('H:i:s');
    }

}<commit_msg>Added "notice" severity<commit_after><?php namespace Console;

class Console
{

    private static $colors = [
        'INFO'    => '32',
        'DEBUG'   => '35',
        'WARNING' => '31',
        'NOTICE'  => '33'
    ];

    public static $disabled = [];

    public static function __callStatic($type, $arguments)
    {

        $type = strtoupper($type);
        $message = trim($arguments[0], "    \n");
        $end_of_line = (isset($arguments[1])) ? $arguments[1] : "\n";

        if (in_array($type, self::$disabled)) {
            return false;
        }

        echo self::preText($type) . $message . $end_of_line;

    }

    private static function preText($type)
    {

        $date = '[' . self::dateString() . ']';
        $type = self::typeColor($type, '[' . $type . ']');

        return $date . $type . ' ';

    }

    private static function typeColor($type, $string)
    {

        if (!isset(self::$colors[$type])) {
            return $string;
        }

        return self::colorString(self::$colors[$type], $string);

    }

    public static function colorString($color, $string)
    {
        return "\033[" . $color . "m" . $string . "\033[0m";
    }

    private static function dateString()
    {
        return date('H:i:s');
    }

}
{'fraction_non_alphanumeric': 0.17764471057884232, 'fraction_numerical': 0.013572854291417165, 'mean_word_length': 2.0375757575757576, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '1339934', 'n_tokens_mistral': 822, 'n_tokens_neox': 778, 'n_words': 166}