<commit_before>var caroot = require('caroot'),
    Module = require('module'),
    originalLoad = Module._load,
    originalResolve = Module._resolveFilename;

function init(rootPath){
    Module._resolveFilename = function(path, passedModule){
        return originalResolve(caroot(path, passedModule.filename, rootPath), passedModule);
    };

    Module._load = function(request, parent, isMain) {
        return originalLoad(caroot(request, parent.filename, rootPath), parent, isMain);
    };
}

module.exports = init;<commit_msg>changed back to origial api<commit_after>var caroot = require('caroot'),
    Module = require('module'),
    originalLoad = Module._load,
    originalResolve = Module._resolveFilename;

Module._load = function(request, parent, isMain) {
    return originalLoad(caroot(request, parent.filename), parent, isMain);
};

Module._resolveFilename = function(path, passedModule){
    return originalResolve(caroot(path, passedModule.filename), passedModule);
};
{'fraction_non_alphanumeric': 0.12056737588652482, 'fraction_numerical': 0.0, 'mean_word_length': 5.136645962732919, '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': '6751588', 'n_tokens_mistral': 267, 'n_tokens_neox': 268, 'n_words': 59}