<commit_before>import i18next from 'i18next';
import moment from 'moment';

export const state = () => ({
    languages: [
        {key: 'de', description: 'Deutsch'},
        {key: 'en', description: 'English'}
    ],
    language: 'de'
});

export const mutations = {
    SET_LANGUAGE: function (state, language) {
        if (state.language !== language) {
            console.log(`Change language to ${language}`);
            i18next.changeLanguage(language);
            state.language = language;
            moment.locale(language);
        }
    }
};

export const actions = {
    setLanguage({commit}, {language}) {
        try {
            this.$axios.$put(`/user/language/${language}`);
            commit('SET_LANGUAGE', language);
        } catch (error) {

        }
    }<commit_msg>Removed log.<commit_after>import i18next from 'i18next';
import moment from 'moment';

export const state = () => ({
    languages: [
        {key: 'de', description: 'Deutsch'},
        {key: 'en', description: 'English'}
    ],
    language: 'de'
});

export const mutations = {
    SET_LANGUAGE: function (state, language) {
        if (state.language !== language) {
            i18next.changeLanguage(language);
            state.language = language;
            moment.locale(language);
        }
    }
};

export const actions = {
    setLanguage({commit}, {language}) {
        try {
            this.$axios.$put(`/user/language/${language}`);
            commit('SET_LANGUAGE', language);
        } catch (error) {

        }
    }
{'fraction_non_alphanumeric': 0.15194805194805194, 'fraction_numerical': 0.007792207792207792, 'mean_word_length': 2.2510548523206753, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1263763', 'n_tokens_mistral': 448, 'n_tokens_neox': 445, 'n_words': 99}