<commit_before>function resource(path) {
    return window.__resources__[path].data;
}

(function() {
    var process = {};
    var modulePaths = ['/libs'];

    var path; // Will be loaded further down

    function resolveModulePath(request, parent) {
        // If not a relative path then search the modulePaths for it
        var start = request.substring(0, 2);
        if (start !== "./" && start !== "..") {
            return [request, modulePaths];
        }

        var parentIsIndex = path.basename(parent.filename).match(/^index\.js$/),
            parentPath    = parentIsIndex ? parent.id : path.dirname(parent.id),
            id            = path.join(parentPath, request);

        // Relative path so searching inside parent's directory
        return [id, [path.dirname(parent.filename)]];
    }

    function findModulePath(id, dirs) {
        if (id.charAt(0) === '/') {
            dirs = [''];
        }
        for (var i = 0; i < dirs.length; i++) {
            var dir = dirs[i];
            var p = path.join(dir, id);

            // Check for index first
            if (path.exists(path.join(p, 'index.js'))) {
                return path.join(p, 'index.js');
            } else if (path.exists(p) + '.js') {
                return p + '.js';
            }
        }

        return false;
    }

    function loadModule(request, parent) {
        var resolvedModule = resolveModulePath(request, parent),
            id             = resolvedModule[0],
            paths          = resolvedModule[1],
            filename       = findModulePath(request, paths);

        var cachedModule = parent.moduleCache[filename];
        if (cachedModule) {
            return cachedModule.exports;
        }

        var module = new Module(id, parent);
        module.moduleCache[filename] = module;
        module._initialize(filename);

        return module.exports;
    }

    function Module(id, parent) {
        this.id = id;
        this.parent = parent;<commit_msg>Fixed some resources not being found<commit_after>function resource(path) {
    return window.__resources__[path].data;
}

(function() {
    var process = {};
    var modulePaths = ['/libs'];

    var path; // Will be loaded further down

    function resolveModulePath(request, parent) {
        // If not a relative path then search the modulePaths for it
        var start = request.substring(0, 2);
        if (start !== "./" && start !== "..") {
            return [request, modulePaths];
        }

        var parentIsIndex = path.basename(parent.filename).match(/^index\.js$/),
            parentPath    = parentIsIndex ? parent.id : path.dirname(parent.id),
            id            = path.join(parentPath, request);

        // Relative path so searching inside parent's directory
        return [id, [path.dirname(parent.filename)]];
    }

    function findModulePath(id, dirs) {
        if (id.charAt(0) === '/') {
            dirs = [''];
        }
        for (var i = 0; i < dirs.length; i++) {
            var dir = dirs[i];
            var p = path.join(dir, id);

            // Check for index first
            if (path.exists(path.join(p, 'index.js'))) {
                return path.join(p, 'index.js');
            } else if (path.exists(p + '.js')) {
                return p + '.js';
            }
        }

        return false;
    }

    function loadModule(request, parent) {
        var resolvedModule = resolveModulePath(request, parent),
            id             = resolvedModule[0],
            paths          = resolvedModule[1],
            filename       = findModulePath(request, paths);

        var cachedModule = parent.moduleCache[filename];
        if (cachedModule) {
            return cachedModule.exports;
        }

        var module = new Module(id, parent);
        module.moduleCache[filename] = module;
        module._initialize(filename);

        return module.exports;
    }

    function Module(id, parent) {
        this.id = id;
        this.parent = parent;
{'fraction_non_alphanumeric': 0.12739487434685245, 'fraction_numerical': 0.002985817367504354, 'mean_word_length': 1.7877947295423025, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7091557', 'n_tokens_mistral': 1121, 'n_tokens_neox': 1077, 'n_words': 280}