<commit_before>'use strict';

var path = require('path');
var chai = require('chai');
var child_process = require('child_process');

var TEST_OUTPUT_DIR = path.join(__dirname, 'test_output');

chai.config.includeStack = true;

var CI = !!process.env.TRAVIS;

if (CI) {
  console.log('Detected CI environment. Tweaking settings...');
}

module.exports = {
  assert: chai.assert,
  TEST_OUTPUT_DIR: TEST_OUTPUT_DIR,
  cleanTestOutputDir: function() {
    try {
      child_process.spawnSync('rm', ['-rf', TEST_OUTPUT_DIR]);
    } catch(err) {}
  },
  aggregateTimeout: 10,
  watcherWarmUpWait: CI ? 1000 : 50,
  watcherWait: CI ? 1000 : 400,
  watcherTimeout: CI ? 10000 : 2000
};<commit_msg>CI improvements<commit_after>'use strict';

var path = require('path');
var chai = require('chai');
var child_process = require('child_process');

var TEST_OUTPUT_DIR = path.join(__dirname, 'test_output');

chai.config.includeStack = true;

var CI = !!process.env.TRAVIS;

module.exports = {
  assert: chai.assert,
  TEST_OUTPUT_DIR: TEST_OUTPUT_DIR,
  cleanTestOutputDir: function() {
    try {
      child_process.spawnSync('rm', ['-rf', TEST_OUTPUT_DIR]);
    } catch(err) {}
  },
  aggregateTimeout: 10,
  watcherWarmUpWait: CI ? 1000 : 50,
  watcherWait: CI ? 1000 : 400,
  watcherTimeout: CI ? 10000 : 2000
};

if (CI) {
  console.log('Detected CI environment. Settings...', JSON.stringify(module.exports));
}
{'fraction_non_alphanumeric': 0.1516014234875445, 'fraction_numerical': 0.03416370106761566, 'mean_word_length': 4.4921875, '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': '6666692', 'n_tokens_mistral': 543, 'n_tokens_neox': 484, 'n_words': 107}