<commit_before>import Vue from "vue";
import Vuex, {Store} from "vuex";
import state from "./state";
import * as mutations from "./mutations";
import * as getters from "./getters";
import * as actions from "./actions";
import {persistencePlugin, i18nPlugin} from "./plugins";

Vue.use(Vuex);

export default new Store({
    strict: process.env.NODE_ENV !== "production",
    state,
    mutations,
    getters,
    actions,
    plugins: [
        persistencePlugin({
            prefix: "sulcalc",
            saveOn: {
                addCustomSets: "sets.custom",
                setSmogonSets: "enabledSets.smogon",
                setPokemonPerfectSets: "enabledSets.pokemonPerfect",
                setCustomSets: "enabledSets.custom",
                setLongRolls: "longRolls",
                setFractions: "fractions"
            }
        }),
        i18nPlugin()
    ]
});<commit_msg>Fix persistence issues not tracking the correct mutations<commit_after>import Vue from "vue";
import Vuex, {Store} from "vuex";
import state from "./state";
import * as mutations from "./mutations";
import * as getters from "./getters";
import * as actions from "./actions";
import {persistencePlugin, i18nPlugin} from "./plugins";

Vue.use(Vuex);

export default new Store({
    strict: process.env.NODE_ENV !== "production",
    state,
    mutations,
    getters,
    actions,
    plugins: [
        persistencePlugin({
            prefix: "sulcalc",
            saveOn: {
                importPokemon: "sets.custom",
                toggleSmogonSets: "enabledSets.smogon",
                togglePokemonPerfectSets: "enabledSets.pokemonPerfect",
                toggleCustomSets: "enabledSets.custom",
                toggleLongRolls: "longRolls",
                toggleFractions: "fractions"
            }
        }),
        i18nPlugin()
    ]
});
{'fraction_non_alphanumeric': 0.11815718157181572, 'fraction_numerical': 0.004336043360433604, 'mean_word_length': 2.3082437275985663, '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': '622440', 'n_tokens_mistral': 547, 'n_tokens_neox': 516, 'n_words': 133}