<commit_before>var yangmanPluginsFactories = [
    'ymDisplayMountPoints',
];

var yangmanPluginContollers = [
];

define([
    'common/yangutils/services/custom-funct.services',
].concat(yangmanPluginsFactories.map(function (plugin) {
    'use strict';
    return 'app/yangman/services/plugins/' + plugin + '.services';
})).concat(yangmanPluginContollers.map(function (ctrl) {
    'use strict';
    return 'app/yangman/plugins/cv/' + ctrl + '.controller';
})), function () {
    'use strict';

    angular.module('app.yangman').service('PluginsHandlerService', PluginsHandlerService);

    function PluginsHandlerService($injector, CustomFuncService) {

        var service = {
            addPlugins: addPlugins,
            plugAll: plugAll,
            plugins: [],
        };

        service.addPlugins();

        return service;

        // TODO: add service's description
        function addPlugins() {
            yangmanPluginsFactories.forEach(function (pluginFactFullName) {
                var pluginServiceName = pluginFactFullName.split('/'),
                    pluginName = pluginServiceName[pluginServiceName.length - 1].split('.')[0];

                $injector.invoke([pluginName, function (pluginFact) {
                    service.plugins.push(pluginFact);
                }]);
            });

        }

        /**
         * Method for importing additional plugins
         * @param apis
         */
        function plugAll(apis) {
            service.plugins.forEach(function (plugin) {
                plugin.module.forEach(function (plModule, i){
                    CustomFuncService.createCustomFunctionalityApis(apis, plModule, plugin.revision,
                                                                    plugin.pathString[i], plugin.label,
                                                                    plugin.getCallback, plugin.view,
                                                                    plugin.hideButtonOnSelect);
                });
            });
        }
    }
});
<commit_msg>Yangman - removed concatenation of dependencies<commit_after>define([
    'common/yangutils/services/custom-funct.services',
    'app/yangman/services/plugins/ymDisplayMountPoints.services'
], function () {
    'use strict';

    angular.module('app.yangman').service('PluginsHandlerService', PluginsHandlerService);

    function PluginsHandlerService($injector, CustomFuncService) {
        var yangmanPluginsFactories = [
            'ymDisplayMountPoints',
        ];

        var service = {
            addPlugins: addPlugins,
            plugAll: plugAll,
            plugins: [],
        };

        service.addPlugins();

        return service;

        // TODO: add service's description
        function addPlugins() {
            yangmanPluginsFactories.forEach(function (pluginFactFullName) {
                var pluginServiceName = pluginFactFullName.split('/'),
                    pluginName = pluginServiceName[pluginServiceName.length - 1].split('.')[0];

                $injector.invoke([pluginName, function (pluginFact) {
                    service.plugins.push(pluginFact);
                }]);
            });

        }

        /**
         * Method for importing additional plugins
         * @param apis
         */
        function plugAll(apis) {
            service.plugins.forEach(function (plugin) {
                plugin.module.forEach(function (plModule, i){
                    CustomFuncService.createCustomFunctionalityApis(apis, plModule, plugin.revision,
                                                                    plugin.pathString[i], plugin.label,
                                                                    plugin.getCallback, plugin.view,
                                                                    plugin.hideButtonOnSelect);
                });
            });
        }
    }
});

{'fraction_non_alphanumeric': 0.10399590163934426, 'fraction_numerical': 0.0010245901639344263, 'mean_word_length': 1.6137884872824633, '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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2566316', 'n_tokens_mistral': 947, 'n_tokens_neox': 890, 'n_words': 149}