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

var Mocha = require('mocha');

var mocha = new Mocha();
mocha.reporter('spec').ui('tdd');

mocha.addFile('test/basicPubSub.js');

var runner = mocha.run(function() {
  process.exit(0);
});<commit_msg>Exit with a non-zero status code on test failure(s)<commit_after>#!/usr/bin/env node

var Mocha = require('mocha');

var mocha = new Mocha();
mocha.reporter('spec').ui('tdd');

mocha.addFile('test/basicPubSub.js');

var runner = mocha.run(function(failures) {
  process.on('exit', function() {
    process.exit(failures);
  });
});
{'fraction_non_alphanumeric': 0.20105820105820105, 'fraction_numerical': 0.001763668430335097, 'mean_word_length': 5.241758241758242, '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': '1593160', 'n_tokens_mistral': 224, 'n_tokens_neox': 210, 'n_words': 40}