<commit_before>require("babelify/polyfill");

if (typeof window === "undefined") {
    global.window = global;
    global.navigator = {
        userAgent: "node"
    };
    let Storage = require("dom-storage");
    global.localStorage = new Storage(null, { strict: true });
    indexedDB = require("fake-indexeddb");
    global.indexedDB = indexedDB;
    openDatabase = require("opendatabase");
    global.openDatabase = openDatabase;
}
<commit_msg>lets us use _.js on the command line with mocha<commit_after>try {
    require("babelify/polyfill");
} catch (err) {
    console.log(err);
}

if (typeof window === "undefined") {
    global.window = global;
    global.navigator = {
        userAgent: "node"
    };
    let Storage = require("dom-storage");
    global.localStorage = new Storage(null, { strict: true });
    let indexedDB = require("fake-indexeddb");
    global.indexedDB = indexedDB;
    let openDatabase = require("opendatabase");
    global.openDatabase = openDatabase;
}

{'fraction_non_alphanumeric': 0.1404040404040404, 'fraction_numerical': 0.0, 'mean_word_length': 3.5458715596330275, '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': '3911963', 'n_tokens_mistral': 303, 'n_tokens_neox': 297, 'n_words': 67}