<commit_before>'use strict';

(function() {
    Vue.component('repository', {
        props: ['repository'],
        template: `<a v-on:click="commits" class="panel-block" :data-branch="repository.default_branch">
                        <span class="panel-icon">
                            <i v-if="repository.fork" class="fa fa-code-fork"></i>
                            <i v-else class="fa fa-book"></i>
                        </span>
                        <p>{{repository.name}}</p>
                    </a>`,
        computed: {
            user: () => store.getters.user
        },
        methods: {
            commits (event) {
                let self = this;
                store.commit(types.PAGE_IS_LOADING);
                
                let repository = event.target.innerText.trim();
                $github.commits(self.user, repository).then(response => {
                    store.commit(types.UPDATE.COMMITS, { commits: response.data, repository: repository });
                    store.commit(types.UPDATE.PAGE, { isOk: response.status == 200, status: response.statusText });
                    store.dispatch('getBranchs', repository);
                });
            }
        }
    });
})();<commit_msg>fix(repository): pass the userSelected attribute to not hide profile view<commit_after>'use strict';

(function() {
    Vue.component('repository', {
        props: ['repository'],
        template: `<a v-on:click="commits" class="panel-block" :data-branch="repository.default_branch">
                        <span class="panel-icon">
                            <i v-if="repository.fork" class="fa fa-code-fork"></i>
                            <i v-else class="fa fa-book"></i>
                        </span>
                        <p>{{repository.name}}</p>
                    </a>`,
        computed: {
            user: () => store.getters.user
        },
        methods: {
            commits (event) {
                let self = this;
                store.commit(types.PAGE_IS_LOADING);
                
                let repository = event.target.innerText.trim();
                $github.commits(self.user, repository).then(response => {
                    store.commit(types.UPDATE.COMMITS, { commits: response.data, repository: repository });
                    store.commit(types.UPDATE.PAGE, { 
                        isOk: response.status == 200,
                        status: response.statusText,
                        userSelected: true });
                    store.dispatch('getBranchs', repository);
                });
            }
        }
    });
})();
{'fraction_non_alphanumeric': 0.13883605933815138, 'fraction_numerical': 0.002282236591860023, 'mean_word_length': 1.3844061650045332, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 27, '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': '3793864', 'n_tokens_mistral': 689, 'n_tokens_neox': 648, 'n_words': 115}