<commit_before>/**
 * Kotatsu Winston Logger
 * =======================
 *
 * Building kotatsu's Winston logger.
 */
var winston = require('winston'),
    levels = require('./levels.js'),
    formatter = require('./formatter.js'),
    pkg = require('../package.json');

module.exports = function createLogger(quiet) {
  var transports = [];

  if (!quiet)
    transports.push(new winston.transports.Console({
      format: winston.format.combine(winston.format.printf(formatter))
    }));

  var logger = winston.createLogger({
    levels: levels,
    transports: transports
  });

  logger.announce = function() {
    this.info('(v' + pkg.version + ')');
  };

  return logger;
};<commit_msg>Fix #145 - fixing --quiet flag<commit_after>/**
 * Kotatsu Winston Logger
 * =======================
 *
 * Building kotatsu's Winston logger.
 */
var winston = require('winston'),
    levels = require('./levels.js'),
    formatter = require('./formatter.js'),
    pkg = require('../package.json');

module.exports = function createLogger(quiet) {
  var transports = [];

  transports.push(new winston.transports.Console({
    format: winston.format.combine(winston.format.printf(formatter)),
    silent: quiet
  }));

  var logger = winston.createLogger({
    levels: levels,
    transports: transports
  });

  logger.announce = function() {
    this.info('(v' + pkg.version + ')');
  };

  return logger;
};
{'fraction_non_alphanumeric': 0.19472182596291013, 'fraction_numerical': 0.0021398002853067048, 'mean_word_length': 3.570032573289902, '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': '6395457', 'n_tokens_mistral': 461, 'n_tokens_neox': 415, 'n_words': 86}