<commit_before>var config  = require("../config.json");

/*****************************************************************************\
    Return a set of functions which we can use to log to console
\*****************************************************************************/
module.exports = function() {
    _error = function(message) {
      console.log(config.logger.message + "ERROR: " + message);
    };
    
    _warn = function(message) {
      console.log(config.logger.message + "WARNING: " + message);
    };

    _info = function(message) {
      console.log(config.logger.message + "INFO: " + message);
    };

    _success = function(message) {
      console.log(config.logger.message + "SUCCESS: " + message);
    };

    return {
        error:    _error,
        warn:     _warn,
        info:     _info,
        success:  _success,
    };
}<commit_msg>Update logger.js<commit_after>var config  = require("../config.json");

/*****************************************************************************\
    Return a set of functions which we can use to log to console
\*****************************************************************************/
module.exports = function() {
    _error = function(message) {
      console.log(config.logger.message + "ERROR:\t" + message);
    };
    
    _warn = function(message) {
      console.log(config.logger.message + "WARNING:\t" + message);
    };

    _info = function(message) {
      console.log(config.logger.message + "INFO:\t\t" + message);
    };

    _success = function(message) {
      console.log(config.logger.message + "SUCCESS:\t" + message);
    };

    return {
        error:    _error,
        warn:     _warn,
        info:     _info,
        success:  _success,
    };
}
{'fraction_non_alphanumeric': 0.2941510505394662, 'fraction_numerical': 0.0, 'mean_word_length': 2.9506726457399104, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4974287', 'n_tokens_mistral': 476, 'n_tokens_neox': 452, 'n_words': 95}