<commit_before>var _ = require("lodash");
var requireCxt = require.context(".", true, /\.spec\.js$/);

// polyfill Object.keys for IE<=8
if (!Object.keys) {
  Object.keys = _.keys;
}

window.chai = require("chai");
window.expect = window.chai.expect;
window.sinon = require("sinon");
window.chai.use(require("sinon-chai"));

_.each(requireCxt.keys(), function (specFileName) {
  requireCxt(specFileName);
});<commit_msg>clearer variable name, link to documentation<commit_after>var _ = require("lodash");
// https://github.com/webpack/docs/wiki/context/
//   71f80252750e1d8f4b6b40395855e0dd5cca6d12#requirecontext
var specFileRequire = require.context(".", true, /\.spec\.js$/);

// polyfill Object.keys for IE<=8
if (!Object.keys) {
  Object.keys = _.keys;
}

window.chai = require("chai");
window.expect = window.chai.expect;
window.sinon = require("sinon");
window.chai.use(require("sinon-chai"));

_.each(specFileRequire.keys(), function (specFileName) {
  specFileRequire(specFileName);
});
{'fraction_non_alphanumeric': 0.1857429718875502, 'fraction_numerical': 0.029116465863453816, 'mean_word_length': 5.23125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '5967178', 'n_tokens_mistral': 367, 'n_tokens_neox': 347, 'n_words': 59}