<commit_before>define(['js/core/Component'], function (Component) {

    return Component.inherit('sprd.util.LocaleService', {

        defaults: {
            fallbackLanguage: 'en',
            fallbackCountry: 'EU',
            supportedLanguages: null,
            supportedCountries: null
        },

        $languageMap: {
            de: 'de',
            fr: 'fr',
            'co.uk': 'en',
            be: 'nl',
            dk: 'dk',
            es: 'es',
            ie: 'en',
            it: 'it',
            nl: 'nl',
            no: 'no',
            pl: 'pl',
            fi: 'fi',
            se: 'se',
            at: 'de',

            net: null,
            com: null
        },

        $countryMap: {
            de: 'DE',
            fr: 'FR',
            'co.uk': 'GB',
            be: 'BE',
            dk: 'DK',
            es: 'ES',
            ie: 'IE',
            it: 'IT',
            nl: 'NL',
            no: 'NO',
            pl: 'PL',
            fi: 'FI',
            se: 'SE',
            at: 'AT',

            net: "EU",
            com: "US"
        },

        getLanguage: function () {
            var browserLanguage = navigator.language || navigator.browserLanguage || navigator.systemLanguage || navigator.userLanguage;
            return this.determinateLanguage(this.getHost(), browserLanguage, this.$.supportedLanguages, this.$.fallbackLanguage);
        },<commit_msg>fixed de-DE for determinating language code<commit_after>define(['js/core/Component'], function (Component) {

    return Component.inherit('sprd.util.LocaleService', {

        defaults: {
            fallbackLanguage: 'en',
            fallbackCountry: 'EU',
            supportedLanguages: null,
            supportedCountries: null
        },

        $languageMap: {
            de: 'de',
            fr: 'fr',
            'co.uk': 'en',
            be: 'nl',
            dk: 'dk',
            es: 'es',
            ie: 'en',
            it: 'it',
            nl: 'nl',
            no: 'no',
            pl: 'pl',
            fi: 'fi',
            se: 'se',
            at: 'de',

            net: null,
            com: null
        },

        $countryMap: {
            de: 'DE',
            fr: 'FR',
            'co.uk': 'GB',
            be: 'BE',
            dk: 'DK',
            es: 'ES',
            ie: 'IE',
            it: 'IT',
            nl: 'NL',
            no: 'NO',
            pl: 'PL',
            fi: 'FI',
            se: 'SE',
            at: 'AT',

            net: "EU",
            com: "US"
        },

        getLanguage: function () {
            var browserLanguage = (navigator.language || navigator.browserLanguage || navigator.systemLanguage || navigator.userLanguage).split("-")[0];
            return this.determinateLanguage(this.getHost(), browserLanguage, this.$.supportedLanguages, this.$.fallbackLanguage);
        },
{'fraction_non_alphanumeric': 0.14875173370319, 'fraction_numerical': 0.00034674063800277393, 'mean_word_length': 1.1872630780894617, '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': '5294337', 'n_tokens_mistral': 834, 'n_tokens_neox': 808, 'n_words': 191}