<commit_before>var baseTemplate = window.document.body.innerHTML;
var wrapper = document.createElement('div');
wrapper.id = 'jasmineWrapper';
document.body.appendChild(wrapper);

beforeEach(function() {
    jasmineWrapper.innerHTML = '';
});<commit_msg>forgot to add "toBeNear" matcher<commit_after>var baseTemplate = window.document.body.innerHTML;
var wrapper = document.createElement('div');
wrapper.id = 'jasmineWrapper';
document.body.appendChild(wrapper);

beforeEach(function() {
    jasmineWrapper.innerHTML = '';

    this.addMatchers({
        toBeNear: function(expected, within) {
            within = within || 1;
            return (this.actual >= (expected - within)) && (this.actual <= (expected + within));
        }
    });
});
{'fraction_non_alphanumeric': 0.14899328859060404, 'fraction_numerical': 0.0013422818791946308, 'mean_word_length': 4.253521126760563, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3255576', 'n_tokens_mistral': 213, 'n_tokens_neox': 203, 'n_words': 40}