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

    function momenthelperService($q, $http, umbRequestHelper) {

        var existingLocales = [];

        function getSupportedLocales() {
            var deferred = $q.defer();

            if (existingLocales.length === 0) {
                umbRequestHelper.resourcePromise(
                    $http.get(
                        umbRequestHelper.getApiUrl(
                            "momentApiBaseUrl",
                            "GetSupportedLocales")),
                    'Failed to get cultures').then(function(locales) {
                    existingLocales = locales;
                    deferred.resolve(existingLocales);
                });
            } else {
                deferred.resolve(existingLocales);
            }

            return deferred.promise;
        }

        ////////////

        var service = {
            getSupportedLocales: getSupportedLocales
        };

        return service;

    }

    angular.module('umbraco.services').factory('momenthelperService', momenthelperService);


})();

<commit_msg>Removes ugly non-existing comment :)<commit_after>﻿(function () {
    'use strict';

    function momenthelperService($q, $http, umbRequestHelper) {

        var existingLocales = [];

        function getSupportedLocales() {
            var deferred = $q.defer();

            if (existingLocales.length === 0) {
                umbRequestHelper.resourcePromise(
                    $http.get(
                        umbRequestHelper.getApiUrl(
                            "momentApiBaseUrl",
                            "GetSupportedLocales")),
                    'Failed to get cultures').then(function(locales) {
                    existingLocales = locales;
                    deferred.resolve(existingLocales);
                });
            } else {
                deferred.resolve(existingLocales);
            }

            return deferred.promise;
        }

        var service = {
            getSupportedLocales: getSupportedLocales
        };

        return service;

    }

    angular.module('umbraco.services').factory('momenthelperService', momenthelperService);


})();


{'fraction_non_alphanumeric': 0.10250569476082004, 'fraction_numerical': 0.0009111617312072893, 'mean_word_length': 1.472972972972973, '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': '1374013', 'n_tokens_mistral': 552, 'n_tokens_neox': 501, 'n_words': 86}