<commit_before>// Notice I can omit the module name. The loader assumes modules map to a file
// path unless it's told otherwise.
define(function () {
    'use strict';

    // I could also have used the second argument to the factory. Vodori has decided to
    // list their modules at the top, since it's more Java like (and we use Java :-)).
    var methods = {},
    // There are plenty of others, but I want to keep this brief.
        EXPOSED = ['map', 'forEach', 'every', 'some', 'reduce'];

    var aProto = Array.prototype;
    var aSlice = aProto.slice;
    var methodName = '';

    var makeMethod = function (name) {
        return function (array) {
            //noinspection JSReferencingMutableVariableFromClosure
            return aProto[name].apply(array, aSlice.call(arguments, 1));
        };
    };

    for (var i = 0, len = EXPOSED.length; i < len; ++i) {
        methodName = EXPOSED[i];
        /**
         * Create a wrapper for whatever array methods are listed.
         * NOTE: This is not an appropriate real world solution.
         */
        methods[methodName] = makeMethod(methodName);
    }

    return methods;
});<commit_msg>Removing stale comments.<commit_after>// Notice I can omit the module name. The loader assumes modules map to a file
// path unless it's told otherwise.
define(function () {
    'use strict';

    var methods = {},
        // There are plenty of others, but I want to keep this brief.
        EXPOSED = ['map', 'forEach', 'every', 'some', 'reduce'];

    var aProto = Array.prototype;
    var aSlice = aProto.slice;
    var methodName = '';

    var makeMethod = function (name) {
        return function (array) {
            //noinspection JSReferencingMutableVariableFromClosure
            return aProto[name].apply(array, aSlice.call(arguments, 1));
        };
    };

    for (var i = 0, len = EXPOSED.length; i < len; ++i) {
        methodName = EXPOSED[i];
        /**
         * Create a wrapper for whatever array methods are listed.
         * NOTE: This is not an appropriate real world solution.
         */
        methods[methodName] = makeMethod(methodName);
    }

    return methods;
});
{'fraction_non_alphanumeric': 0.11152073732718894, 'fraction_numerical': 0.0018433179723502304, 'mean_word_length': 2.3816199376947043, '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': '6242575', 'n_tokens_mistral': 617, 'n_tokens_neox': 589, 'n_words': 228}