<commit_before>'use strict';

var store = new Vuex.Store({
    strict: true,
    state: {
        page: {
            isOk: false,
            message: '',
            status: '',
            loading: false,
            userSelected: false
        },
        search: {
            term: '',
            count: 0,
            users: []
        },
        user: {
            repositories: []
        },
        commits: {
            repository: '',
            branchs: [],
            commits: [],
            show: false
        }
    },
    mutations: {
        bindSearchResult: function(state, result) {
            state.search.users = result.items;
        },
        bindUser: function(state, user) {
            state.user = user;
        },
        bindRepositories: function(state, repositories) {
            state.user.repositories = repositories;
        },
        bindCommits: function(state, data) {
            state.commits = {
                repository: data.repository,
                branchs: state.commits.branchs,
                commits: data.commits,
                show: data.commits.length > 0
            }
        },
        bindBranchs: function(state, branchs) {
            state.commits.branchs = branchs;
        },
        increaseCount: function(state) {
            state.search.count++;
        },
        updatePage: function(state, stats) {
            state.page = {
                isOk: stats.isOk,
                status: stats.status,
                message: stats.message,
                loading: false,
                userSelected: stats.userSelected ? stats.userSelected : false
            };
        },<commit_msg>fix(store): add trim() funcion to remove breaklines in the parameter<commit_after>'use strict';

var store = new Vuex.Store({
    strict: true,
    state: {
        page: {
            isOk: false,
            message: '',
            status: '',
            loading: false,
            userSelected: false
        },
        search: {
            term: '',
            count: 0,
            users: []
        },
        user: {
            repositories: []
        },
        commits: {
            repository: '',
            branchs: [],
            commits: [],
            show: false
        }
    },
    mutations: {
        bindSearchResult: function(state, result) {
            state.search.users = result.items;
        },
        bindUser: function(state, user) {
            state.user = user;
        },
        bindRepositories: function(state, repositories) {
            state.user.repositories = repositories;
        },
        bindCommits: function(state, data) {
            state.commits = {
                repository: data.repository.trim(),
                branchs: state.commits.branchs,
                commits: data.commits,
                show: data.commits.length > 0
            }
        },
        bindBranchs: function(state, branchs) {
            state.commits.branchs = branchs;
        },
        increaseCount: function(state) {
            state.search.count++;
        },
        updatePage: function(state, stats) {
            state.page = {
                isOk: stats.isOk,
                status: stats.status,
                message: stats.message,
                loading: false,
                userSelected: stats.userSelected ? stats.userSelected : false
            };
        },
{'fraction_non_alphanumeric': 0.10752056404230317, 'fraction_numerical': 0.0011750881316098707, 'mean_word_length': 1.2386587771203157, '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': '387805', 'n_tokens_mistral': 896, 'n_tokens_neox': 864, 'n_words': 177}