<commit_before>define(function (require) {
    'use strict';

    var output = {
        cleanPath: function (path, outputDir) {
            while (path.indexOf(outputDir) == 0) {
                path = path.substring(outputDir.length + 1)
            }

            return path;
        },

        load: function (name, req, onload, config) {
            var outputDir = config.config.output.outputDir;
            var cleanPath = this.cleanPath(name, outputDir);

            req([outputDir + '/' + cleanPath], function (value) {
                onload(value);
            });
        }
    };

    return output;
});<commit_msg>Cleaned up the code and made it simpler.<commit_after>define(function (require) {
    'use strict';

    var output = {
        load: function (name, req, onload, config) {
            var outputDir = config.config.output.outputDir;

            while (name.indexOf(outputDir) == 0) {
                name = name.substring(outputDir.length + 1);
            }

            req([outputDir + '/' + name], function (value) {
                onload(value);
            });
        }
    };

    return output;
});
{'fraction_non_alphanumeric': 0.12620508326029797, 'fraction_numerical': 0.0035056967572304996, 'mean_word_length': 1.6933962264150944, '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': '3450913', 'n_tokens_mistral': 326, 'n_tokens_neox': 308, 'n_words': 73}