<commit_before>/* eslint-env mocha */
/* @flow */

import logger from '../../core/logger'

const { defaultLogger } = logger
const log = logger({component: 'mocha'})

const lines = []

defaultLogger.addStream({
  type: 'raw',
  level: 'trace',
  stream: {
    write: function (msg) {
      lines.push(msg)
    }
  }
})<commit_msg>test/support/logging: Remove remaining es6 module import<commit_after>/* eslint-env mocha */
/* @flow */

const logger = require('../../core/logger')

const { defaultLogger } = logger
const log = logger({component: 'mocha'})

const lines = []

defaultLogger.addStream({
  type: 'raw',
  level: 'trace',
  stream: {
    write: function (msg) {
      lines.push(msg)
    }
  }
})
{'fraction_non_alphanumeric': 0.17847025495750707, 'fraction_numerical': 0.00141643059490085, 'mean_word_length': 3.2083333333333335, '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': '2937986', 'n_tokens_mistral': 238, 'n_tokens_neox': 236, 'n_words': 58}