<commit_before>// Client utils for test environment (PhantomJS)

'use strict';

/*global window, NodecaLoader, $*/
/*eslint no-console: 0*/


// Expose assert
window.assert = window.chai.assert;


var oldAssertionErrorToString = window.chai.AssertionError.prototype.toString;

window.chai.AssertionError.prototype.toString = function () {<commit_msg>Added alias "TEST.N" to clinet testing API<commit_after>// Client utils for test environment (PhantomJS)

'use strict';

/*global window, NodecaLoader, $*/
/*eslint no-console: 0*/


// Expose assert
window.assert = window.chai.assert;


// Expose N
window.TEST = { N: NodecaLoader.N };


var oldAssertionErrorToString = window.chai.AssertionError.prototype.toString;

window.chai.AssertionError.prototype.toString = function () {
{'fraction_non_alphanumeric': 0.1282051282051282, 'fraction_numerical': 0.002564102564102564, 'mean_word_length': 4.700729927007299, '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': '5189252', 'n_tokens_mistral': 251, 'n_tokens_neox': 243, 'n_words': 59}