<commit_before>(function(angular) {
    'use strict';

    angular.module('esri.map', []);

    angular.module('esri.map').factory('esriLoader', function ($q) {
        return function(moduleName){
            var deferred = $q.defer();

            require([moduleName], function(module){
                if(module){
                    deferred.resolve(module);
                } else {
                    deferred.reject('Couldn\'t load ' + moduleName);
                }
            });

            return deferred.promise;
        };
    });

})(angular);<commit_msg>Updated esriLoader to support an Array<String> as input. The return of the promise will either return a single object when a string is input or an Array<object> when an array of strings is provided.<commit_after>(function(angular) {
    'use strict';

    angular.module('esri.map', []);

    angular.module('esri.map').factory('esriLoader', function ($q) {
        return function(moduleName){
            var deferred = $q.defer();
            if (angular.isString(moduleName)) {
                require([moduleName], function (obj) {
                    deferred.resolve(obj);
                });
            }
            else if (angular.isArray(moduleName)) {
                require(moduleName, function (obj) {
                    deferred.resolve(arguments);
                });
            }
            else {
                deferred.reject('An Array<String> or String is required to load modules.')
            }
            return deferred.promise;

        };
    });

})(angular);
{'fraction_non_alphanumeric': 0.12547770700636943, 'fraction_numerical': 0.0, 'mean_word_length': 1.7513134851138354, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6170902', 'n_tokens_mistral': 412, 'n_tokens_neox': 387, 'n_words': 93}