<commit_before>import Vue from 'vue';
import VueRouter from 'vue-router';
import firebase from 'firebase'
import firebaseui from 'firebaseui';
import routes from './routes';
import {config} from './firebaseConfig'
import App from './App.vue';

Vue.use(VueRouter);

const router = new VueRouter({
    routes,
    linkActiveClass: 'active',
    linkExactActiveClass: 'active'
});

new Vue({
    router,
    created() {
        firebase.initializeApp(config);
        firebase.auth().onAuthStateChanged((user) => {
            console.log('user', user);

            if(user) {
                this.$router.push('/success');
            } else {
                this.$router.push('/auth')
            }
        });
    },
    el: '#app',
    template: '<app></app>',
    components: { App }
});<commit_msg>add(index.js): vuex<commit_after>import Vue from 'vue';
import VueRouter from 'vue-router';
import Vuetify from 'vuetify';
import Vuex from 'vuex';
import routes from './routes';
import App from './App.vue';

Vue.use(VueRouter);
Vue.use(Vuetify);
Vue.use(Vuex);

const router = new VueRouter({
    routes,
    linkActiveClass: 'active',
    linkExactActiveClass: 'active'
});

new Vue({
    router,
    el: '#app',
    render: h => h(App)
});

{'fraction_non_alphanumeric': 0.15890850722311398, 'fraction_numerical': 0.0, 'mean_word_length': 2.896875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2913173', 'n_tokens_mistral': 412, 'n_tokens_neox': 410, 'n_words': 101}