<commit_before>#!/usr/bin/env node

/**
 * test -- Initiates the testing cycle and sets `./test/src` as the files to execute. Istanbul is used for code
 * coverage and tests are run with Mocha and results are uploaded to Codecov.io
 */

var sh = require('./sh');

var mochaOption = " ./test/src/*.js";

if (process.env.TRAVIS)
{
   // Presently Istanbul doesn't support JSPM tests.
   //sh.exec('babel-node ./node_modules/.bin/istanbul cover _mocha --report lcovonly -- --bail ' + mochaOption
   // + ' && cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js');

   sh.exec('babel-node ./node_modules/.bin/istanbul cover _mocha --report lcovonly -- --bail ' + mochaOption);
}
else if(process.argv.indexOf('--coverage') !== -1)
{
   sh.exec('babel-node ./node_modules/.bin/istanbul cover _mocha --report lcovonly -- --bail ' + mochaOption);
}
else
{<commit_msg>Updated test<commit_after>#!/usr/bin/env node

/**
 * test -- Initiates the testing cycle and sets `./test/src` as the files to execute. Istanbul is used for code
 * coverage and tests are run with Mocha and results are uploaded to Codecov.io
 */

var sh = require('./sh');

var mochaOption = " --timeout 15000 ./test/src/*.js";

if (process.env.TRAVIS)
{
   // Presently Istanbul doesn't support JSPM tests.
   //sh.exec('babel-node ./node_modules/.bin/istanbul cover _mocha --report lcovonly -- --bail ' + mochaOption
   // + ' && cat ./coverage/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js');

   sh.exec('babel-node ./node_modules/.bin/istanbul cover _mocha --report lcovonly -- --bail ' + mochaOption);
}
else if(process.argv.indexOf('--coverage') !== -1)
{
   sh.exec('babel-node ./node_modules/.bin/istanbul cover _mocha --report lcovonly -- --bail ' + mochaOption);
}
else
{
{'fraction_non_alphanumeric': 0.16826651609260304, 'fraction_numerical': 0.003952569169960474, 'mean_word_length': 3.1018518518518516, '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': '5166351', 'n_tokens_mistral': 632, 'n_tokens_neox': 595, 'n_words': 159}