<commit_before>const winston = require('winston');

const customLevels = {
    levels: {
      emerg: 0,
      alert: 1,
      crit: 2,
      error: 3,
      warning: 4,
      notice: 5,
      silly: 6,
      info: 7,
      debug: 8
    },
    colors: {
      emerg: 'red',
      alert: 'yellow',
      crit: 'red',
      error: 'red',
      warning: 'red',
      notice: 'yellow',
      silly: 'pink',
      info: 'green',
      debug: 'blue'
    }
  };

const logger = new winston.Logger({
  level: 'info',
  levels: customLevels.levels,
  colors: customLevels.colors
});

logger.setLevels(customLevels.levels);
winston.addColors(customLevels.colors);
logger.cli();

if (!process.env.TEST) {
  logger.add(winston.transports.Console, {
    level: 'info',
    levels: customLevels.levels,
    prettyPrint: true,
    colorize: true,
    timestamp: true
  });<commit_msg>Fixed console coloration for silly and info logs<commit_after>const winston = require('winston');

const customLevels = {
  levels: {
    emerg: 0,
    alert: 1,
    crit: 2,
    error: 3,
    warning: 4,
    notice: 5,
    silly: 6,
    info: 7,
    debug: 8
  },
  colors: {
    emerg: 'red',
    alert: 'yellow',
    crit: 'red',
    error: 'red',
    warning: 'yellow',
    notice: 'gray',
    silly: 'magenta',
    info: 'blue',
    debug: 'cyan'
  }
};

const logger = new winston.Logger({
  level: 'info',
  levels: customLevels.levels,
  colors: customLevels.colors
});

if (!process.env.TEST) {
  logger.add(winston.transports.Console, {
    prettyPrint: true,
    colorize: true,
    timestamp: true
  });
{'fraction_non_alphanumeric': 0.14962121212121213, 'fraction_numerical': 0.011363636363636364, 'mean_word_length': 2.522222222222222, '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': '3266919', 'n_tokens_mistral': 599, 'n_tokens_neox': 558, 'n_words': 138}