<commit_before>
function require(name) {
    // is the name aliased?
    name = require.aliases[name] || name;

    var cached = require.cached[name];
    if (cached) {
        return cached.exports;
    }

    var func = require.wrappers[name];
    if (!func) {
        throw new Error('unable to resolve module: ' + name);
    }

    var module = {
        exports: {}
    };

    if (!require.main) {
        require.main = module;
    }

    func(module, module.exports, require);
    require.cached[name] = module;
    return module.exports;
}

require.register = function(path, fn) {
    require.wrappers[path] = fn;
};

require.alias = function(path, alias) {
    require.aliases[path] = alias;
}

require.aliases = {};
require.wrappers = {};
require.cached = {};
<commit_msg>client: wrap in closure for better minification<commit_after>
// closure so the 'require' variable can be minified
var require = (function() {

function require(name) {
    // is the name aliased?
    name = require.aliases[name] || name;

    var cached = require.cached[name];
    if (cached) {
        return cached;
    }

    var func = require.wrappers[name];
    if (!func) {
        throw new Error('no such module: ' + name);
    }

    var module = {
        exports: {}
    };

    if (!require.main) {
        require.main = module;
    }

    func(module, module.exports, require);
    return require.cached[name] = module.exports;
}

require.register = function(path, fn) {
    require.wrappers[path] = fn;
};

require.alias = function(path, alias) {
    require.aliases[path] = alias;
}

require.aliases = {};
require.wrappers = {};
require.cached = {};

return require;
})();

{'fraction_non_alphanumeric': 0.1444776119402985, 'fraction_numerical': 0.0, 'mean_word_length': 2.6835164835164833, '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': '63147', 'n_tokens_mistral': 533, 'n_tokens_neox': 528, 'n_words': 129}