<commit_before>//
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt

package flambe.util;

/**
 * Represents the severity of a log message.
 */
enum LogLevel {
    /** General helpful information. */
    Info;

    /** An unexpected, but recoverable problem. */
    Warn;

    /** A fatal, unrecoverable problem. */
    Error;
}

interface LogHandler
{
    public function log (level :LogLevel, message :String) :Void;
}

/**
 * A logging system, for printing formatted debug messages. Logging is stripped from release
 * builds, unless the -D flambe_keep_logs compiler flag is used.
 */
class Logger
{
    /**
     * @param handler The handler that logs will be sent to for printing.
     */
    public function new (handler :LogHandler)
    {
        _handler = handler;<commit_msg>No "public" in interfaces.<commit_after>//
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt

package flambe.util;

/**
 * Represents the severity of a log message.
 */
enum LogLevel {
    /** General helpful information. */
    Info;

    /** An unexpected, but recoverable problem. */
    Warn;

    /** A fatal, unrecoverable problem. */
    Error;
}

interface LogHandler
{
    function log (level :LogLevel, message :String) :Void;
}

/**
 * A logging system, for printing formatted debug messages. Logging is stripped from release
 * builds, unless the -D flambe_keep_logs compiler flag is used.
 */
class Logger
{
    /**
     * @param handler The handler that logs will be sent to for printing.
     */
    public function new (handler :LogHandler)
    {
        _handler = handler;
{'fraction_non_alphanumeric': 0.10997596153846154, 'fraction_numerical': 0.0, 'mean_word_length': 2.8188073394495414, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7455218', 'n_tokens_mistral': 488, 'n_tokens_neox': 481, 'n_words': 171}