<commit_before>require('colors')

function BaseColorReporter () {
  this.USE_COLORS = true

  this.LOG_SINGLE_BROWSER = '%s: ' + '%s'.cyan + '\n'
  this.LOG_MULTI_BROWSER = '%s %s: ' + '%s'.cyan + '\n'

  this.SPEC_FAILURE = '%s %s FAILED'.red + '\n'
  this.SPEC_SLOW = '%s SLOW %s: %s'.yellow + '\n'
  this.ERROR = '%s ERROR'.red + '\n'

  this.FINISHED_ERROR = ' ERROR'.red
  this.FINISHED_SUCCESS = ' SUCCESS'.green
  this.FINISHED_DISCONNECTED = ' DISCONNECTED'.red

  this.X_FAILED = ' (%d FAILED)'.red

  this.TOTAL_SUCCESS = 'TOTAL: %d SUCCESS'.green + '\n'
  this.TOTAL_FAILED = 'TOTAL: %d FAILED, %d SUCCESS'.red + '\n'<commit_msg>refactor: use colors/safe (#3548)<commit_after>const { red, yellow, green, cyan } = require('colors/safe')

function BaseColorReporter () {
  this.USE_COLORS = true

  this.LOG_SINGLE_BROWSER = '%s: ' + cyan('%s') + '\n'
  this.LOG_MULTI_BROWSER = '%s %s: ' + cyan('%s') + '\n'

  this.SPEC_FAILURE = red('%s %s FAILED') + '\n'
  this.SPEC_SLOW = yellow('%s SLOW %s: %s') + '\n'
  this.ERROR = red('%s ERROR') + '\n'

  this.FINISHED_ERROR = red(' ERROR')
  this.FINISHED_SUCCESS = green(' SUCCESS')
  this.FINISHED_DISCONNECTED = red(' DISCONNECTED')

  this.X_FAILED = red(' (%d FAILED)')

  this.TOTAL_SUCCESS = green('TOTAL: %d SUCCESS') + '\n'
  this.TOTAL_FAILED = red('TOTAL: %d FAILED, %d SUCCESS') + '\n'
{'fraction_non_alphanumeric': 0.20029563932002956, 'fraction_numerical': 0.0029563932002956393, 'mean_word_length': 3.8530465949820787, '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': '5973089', 'n_tokens_mistral': 578, 'n_tokens_neox': 549, 'n_words': 111}