<commit_before>'use strict';

var logger = require('winston');
var config = require('config');
var logLevel = process.env.LOG_LEVEL || 'info';

if (config.loggly && !logger.transports.Loggly) {
  var Loggly = require('winston-loggly').Loggly;

  logger.add(Loggly, config.loggly);
}

logger.level = logLevel;

if (process.env.LOG_STREAM) {
  logger.add(logger.transports.File, {
      filename: process.env.LOG_STREAM,
      level: logLevel
    }
  );
}

module.exports.changeLogLevel = function (newLogLevel) {
  logger.level = newLogLevel;
};

logger.args = function args(msg, params) {
  logger.info(msg, params[0]);
};


module.exports.logger = logger;<commit_msg>Changed logger.args to debug level<commit_after>'use strict';

var logger = require('winston');
var config = require('config');
var logLevel = process.env.LOG_LEVEL || 'info';

if (config.loggly && !logger.transports.Loggly) {
  var Loggly = require('winston-loggly').Loggly;

  logger.add(Loggly, config.loggly);
}

logger.level = logLevel;

if (process.env.LOG_STREAM) {
  logger.add(logger.transports.File, {
      filename: process.env.LOG_STREAM,
      level: logLevel
    }
  );
}

module.exports.changeLogLevel = function (newLogLevel) {
  logger.level = newLogLevel;
};

logger.args = function args(msg, params) {
  logger.debug(msg, params[0]);
};


module.exports.logger = logger;
{'fraction_non_alphanumeric': 0.15243004418262152, 'fraction_numerical': 0.0014727540500736377, 'mean_word_length': 4.350393700787402, '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': '6470586', 'n_tokens_mistral': 467, 'n_tokens_neox': 457, 'n_words': 87}