<commit_before>var chai = require('chai');
chai.should();
chai.use(require('sinon-chai'));
var sinon = exports.sinon = require('sinon');
var sandbox = exports.sandbox = null;

beforeEach(function() {
    exports.sandbox = sinon.sandbox.create();
});

afterEach(function() {
    exports.sandbox.restore();
});<commit_msg>Add helper require method<commit_after>var path = require('path');
var chai = require('chai');
chai.should();
chai.use(require('sinon-chai'));
var sinon = exports.sinon = require('sinon');
var sandbox = exports.sandbox = null;

exports.require = function(lib_path) {
    return require(path.join(__dirname, '../lib', lib_path));
};

beforeEach(function() {
    exports.sandbox = sinon.sandbox.create();
});

afterEach(function() {
    exports.sandbox.restore();
});
{'fraction_non_alphanumeric': 0.1859872611464968, 'fraction_numerical': 0.0, 'mean_word_length': 5.4958677685950414, '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': '2588346', 'n_tokens_mistral': 269, 'n_tokens_neox': 260, 'n_words': 48}