<commit_before>const path = require('path');
const denodeify = require('denodeify');
const webpack = denodeify(require('webpack'));
const mkdirp = denodeify(require('mkdirp'));
const rmdir = denodeify(require('rmdir'));
const readdir = denodeify(require('recursive-readdir'));
const Mocha = require('mocha');
const sourceMapSupport = require('source-map-support');

const args = require('commander');

args
  .version('0.0.1')
  .description('Runs a batery of tests after webpacking them. If not specified, runs all .js files found in ./test')
  .usage('[options] [files to test]')
  .option('-c, --coverage', 'Run Istanbul for code coverage')
  .parse(process.argv);

const testFiles = args.args;

const root = process.cwd();
const absPath = folder => path.join(root, folder);

const mocha = new Mocha();
const exec = denodeify(
  require('child_process').exec,
  (err, stdout, stderr) => [err, stdout, stderr]
);

const testDir = absPath('test');
const tmpDir = absPath('tmp');
const testUtils = absPath('test/utils/*');<commit_msg>Added description to Usage<commit_after>const path = require('path');
const denodeify = require('denodeify');
const webpack = denodeify(require('webpack'));
const mkdirp = denodeify(require('mkdirp'));
const rmdir = denodeify(require('rmdir'));
const readdir = denodeify(require('recursive-readdir'));
const Mocha = require('mocha');
const sourceMapSupport = require('source-map-support');

const args = require('commander');

args
  .version('0.0.1')
  .description(
'Runs a batery of tests after webpacking them. If not specified, runs all .js files found in ./test'
  )
  .usage('[options] [files to test]')
  .option('-c, --coverage', 'Run Istanbul for code coverage')
  .parse(process.argv);

const testFiles = args.args;

const root = process.cwd();
const absPath = folder => path.join(root, folder);

const mocha = new Mocha();
const exec = denodeify(
  require('child_process').exec,
  (err, stdout, stderr) => [err, stdout, stderr]
);

const testDir = absPath('test');
const tmpDir = absPath('tmp');
const testUtils = absPath('test/utils/*');
{'fraction_non_alphanumeric': 0.16498800959232615, 'fraction_numerical': 0.0028776978417266188, 'mean_word_length': 5.51875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3344681', 'n_tokens_mistral': 686, 'n_tokens_neox': 668, 'n_words': 189}