<commit_before>/* eslint no-undef: 0 no-console: 0, func-names: 0, prefer-rest-params: 0*/
mocha.delay(true); // Adds a global `run` function
// mocha.bail( true );
mocha.fullTrace(true);
mocha.timeout(0);
// Handle `phantomjs`
if (typeof callPhantom === 'function') {
  Mocha.reporters.Base.useColors = true;
  Mocha.process.stdout.write = function () {};
  console.log = function () {
    callPhantom({ args: [].slice.call(arguments) });
  };
  mocha.reporter('spec');
}

mocha.ui('bdd');

const runner = mocha.run();
runner.on('end', () => {
  if (typeof callPhantom === 'function') {
    callPhantom({ exit: true, failures: runner.failures });
  }
});

if (typeof callPhantom === 'function') {
  onerror = function () {
    const args = [].slice.call(arguments);
    console.error(...args);
    callPhantom({ exit: true, failures: runner.failures });
  };<commit_msg>Minimize the console output then running headless<commit_after>/* eslint no-undef: 0 no-console: 0, func-names: 0, prefer-rest-params: 0*/
mocha.delay(true); // Adds a global `run` function
// mocha.bail( true );
mocha.fullTrace(true);
mocha.timeout(0);
// Handle `phantomjs`
if (typeof callPhantom === 'function') {
  Mocha.reporters.Base.useColors = true;
  Mocha.process.stdout.write = function () {};
  console.log = function () {
    callPhantom({ args: [].slice.call(arguments) });
  };
  mocha.reporter('min');
}

mocha.ui('bdd');

const runner = mocha.run();
runner.on('end', () => {
  if (typeof callPhantom === 'function') {
    callPhantom({ exit: true, failures: runner.failures });
  }
});

if (typeof callPhantom === 'function') {
  onerror = function () {
    const args = [].slice.call(arguments);
    console.error(...args);
    callPhantom({ exit: true, failures: runner.failures });
  };
{'fraction_non_alphanumeric': 0.1935846933033202, 'fraction_numerical': 0.005627462014631401, 'mean_word_length': 3.9526462395543174, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3856923', 'n_tokens_mistral': 640, 'n_tokens_neox': 604, 'n_words': 136}