<commit_before>/*jshint node:false, -W082, -W017 */
R = (function (global, document, undefined) {
    var MODULES = {};

    // By using a named "eval" most browsers will execute in the global scope.
    // http://www.davidflanagan.com/2010/12/global-eval-in.html
    var globalEval = eval;

    var createElement = "createElement",
        baseElement = document[createElement]("base"),
        relativeElement = document[createElement]("a");
    document.head.appendChild(baseElement);

    function resolve(base, relative, resolved) {
        baseElement.href = base;
        // If the relative url begins with a letter (and not a "."), then it's
        // in node_modules
        relativeElement.href = relative.replace(/^(\w)/, "./node_modules/$1");
        resolved = relativeElement.href;
        baseElement.href = "";
        return resolved;

    }

    // A module has the following properties (shorted to one letter to aid compression)
    // - g: boolean, loadinG, true if this module has been requested for loading
    //      before. Used to prevent the same module being loaded twice
    // - l: string, Location, the url location of this module
    // - t: string, Text, the text content of the module
    // - e: boolean-y, Error, truthy if there was an error (probably a 404) loading the module
    // - n: module object, Next, instead of using this module, use the object
    //      pointed to by this property. Used for dependencies in other packages
    // - exports, object, the exports of the module!
    function getModule(location) {
        return MODULES[location] = MODULES[location] || {l: location};
    }

    function deepLoad(module, callback) {
        if (module.g) {
            return callback(module.e, module);
        }
        module.g = true;

        var location = module.l;

        var request = new XMLHttpRequest();
        request.onload = function (text, o) {
            if (request.status == 200) {
                text = module.t = request.response;
                o = {};
                text.replace(/(?:^|[^\w\$_.])require\s*\(\s*["']([^"']*)["']\s*\)/g, function (_, id) {
                    o[id] = true;
                });
                var deps = Object.keys(o);
                var count = deps.length;
                function loaded() {
                    // We call loaded straight away below in case there
                    // are no dependencies. Putting this check first
                    // and the decrement after saves us an `if` for that
                    // special case
                    if (!count--) {
                        callback(undefined, module);
                    }
                }
                deps.forEach(function (dep) {
                    o = loaded;
                    if (dep[0] != ".") {
                        // Recurse up the tree trying to find the dependency<commit_msg>They all do the same thing anyway. 1036<commit_after>/*jshint node:false, -W082, -W017 */
R = (function (global, document, undefined) {
    var MODULES = {};

    // By using a named "eval" most browsers will execute in the global scope.
    // http://www.davidflanagan.com/2010/12/global-eval-in.html
    var globalEval = eval;

    var createElement = "createElement",
        baseElement = document[createElement]("base"),
        relativeElement = document[createElement]("a");
    document.head.appendChild(baseElement);

    function resolve(base, relative, resolved) {
        baseElement.href = base;
        // If the relative url begins with a letter (and not a "."), then it's
        // in node_modules
        relativeElement.href = relative.replace(/^(\w)/, "./node_modules/$1");
        resolved = relativeElement.href;
        baseElement.href = "";
        return resolved;

    }

    // A module has the following properties (shorted to one letter to aid compression)
    // - g: boolean, loadinG, true if this module has been requested for loading
    //      before. Used to prevent the same module being loaded twice
    // - l: string, Location, the url location of this module
    // - t: string, Text, the text content of the module
    // - e: boolean-y, Error, truthy if there was an error (probably a 404) loading the module
    // - n: module object, Next, instead of using this module, use the object
    //      pointed to by this property. Used for dependencies in other packages
    // - exports, object, the exports of the module!
    function getModule(location) {
        return MODULES[location] = MODULES[location] || {l: location};
    }

    function deepLoad(module, callback) {
        if (module.g) {
            return callback(module.e, module);
        }
        module.g = true;

        var location = module.l;

        var request = new XMLHttpRequest();
        request.onload = function (text, o) {
            if (request.status == 200) {
                text = module.t = request.response;
                o = {};
                text.replace(/(?:^|[^\w\$_.])require\s*\(\s*["']([^"']*)["']\s*\)/g, function (_, id) {
                    o[id] = true;
                });
                var deps = Object.keys(o);
                var count = deps.length;
                function loaded() {
                    // We call loaded straight away below in case there
                    // are no dependencies. Putting this check first
                    // and the decrement after saves us an `if` for that
                    // special case
                    if (!count--) {
                        callback(undefined, module);
                    }
                }
                deps.map(function (dep) {
                    o = loaded;
                    if (dep[0] != ".") {
                        // Recurse up the tree trying to find the dependency
{'fraction_non_alphanumeric': 0.11514629948364888, 'fraction_numerical': 0.007573149741824441, 'mean_word_length': 1.747517730496454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '151022', 'n_tokens_mistral': 1565, 'n_tokens_neox': 1479, 'n_words': 522}