<commit_before>(function () {

    var modules = {};

    window.require = function (name) {
        var m = modules[name];
        if (!m) {
            throw Error('Cannot find module ' + JSON.stringify(m));
        }
        if (m.state === 'unloaded') {
            m.state = 'beingloaded';
            m.instance = m.init(m.instance, window.require);
            m.state = 'loaded';
        }
        return m.instance;
    };

    window.defModule = function (name, init) {
        if (modules[name]) {
            throw Error('Redefinition of module ' + JSON.stringify(name));
        }
        modules[name] = {state: 'unloaded', init: init, instance: {}};
    };

})();<commit_msg>fake-require.js: renamed "instance" -> "exports"<commit_after>(function () {

    var modules = {};

    window.require = function (name) {
        var m = modules[name];
        if (!m) {
            throw Error('Cannot find module ' + JSON.stringify(m));
        }
        if (m.state === 'unloaded') {
            m.state = 'beingloaded';
            m.exports = m.init(m.exports, window.require);
            m.state = 'loaded';
        }
        return m.exports;
    };

    window.defModule = function (name, init) {
        if (modules[name]) {
            throw Error('Redefinition of module ' + JSON.stringify(name));
        }
        modules[name] = {state: 'unloaded', init: init, exports: {}};
    };

})();
{'fraction_non_alphanumeric': 0.16229624379872432, 'fraction_numerical': 0.0, 'mean_word_length': 1.8934426229508197, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5961833', 'n_tokens_mistral': 420, 'n_tokens_neox': 413, 'n_words': 93}