<commit_before>/*
 * Copyright (C) 2012 Vanderbilt University, All rights reserved.
 *
 * Author: <NAME>
 */
"use strict";

if (typeof define !== 'function') {
    var define = require('amdefine')(module);
}

/*
 * -------- LOGMANAGER -------
 */

define([], function () {

    var logLevels = {
            "ALL" : 5,
            "DEBUG" : 4,
            "INFO" : 3,
            "WARNING" : 2,
            "ERROR" : 1,
            "OFF" : 0
        },
        logColors = {
            "DEBUG" : "90",
            "INFO" : "36",
            "WARNING" : "33",
            "ERROR" : "31"
        },
        currentLogLevel = logLevels.ERROR,
        useColors = false,
        excludedComponents = [],
        Logger,
        isComponentAllowedToLog;

    isComponentAllowedToLog = function (componentName) {
        var i,
            excludedComponentName;

        for (i = 0; i < excludedComponents.length; i += 1) {
            excludedComponentName = excludedComponents[i];

            if (excludedComponentName.substr(-1) === "*") {<commit_msg>dfault log level is warning not error<commit_after>/*
 * Copyright (C) 2012 Vanderbilt University, All rights reserved.
 *
 * Author: <NAME>
 */
"use strict";

if (typeof define !== 'function') {
    var define = require('amdefine')(module);
}

/*
 * -------- LOGMANAGER -------
 */

define([], function () {

    var logLevels = {
            "ALL" : 5,
            "DEBUG" : 4,
            "INFO" : 3,
            "WARNING" : 2,
            "ERROR" : 1,
            "OFF" : 0
        },
        logColors = {
            "DEBUG" : "90",
            "INFO" : "36",
            "WARNING" : "33",
            "ERROR" : "31"
        },
        currentLogLevel = logLevels.WARNING,
        useColors = false,
        excludedComponents = [],
        Logger,
        isComponentAllowedToLog;

    isComponentAllowedToLog = function (componentName) {
        var i,
            excludedComponentName;

        for (i = 0; i < excludedComponents.length; i += 1) {
            excludedComponentName = excludedComponents[i];

            if (excludedComponentName.substr(-1) === "*") {
{'fraction_non_alphanumeric': 0.15225563909774437, 'fraction_numerical': 0.019736842105263157, 'mean_word_length': 1.64472049689441, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7570806', 'n_tokens_mistral': 660, 'n_tokens_neox': 621, 'n_words': 146}