<commit_before>import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);


export const store = new Vuex.Store({
    strict: true,
    modules:{
    },
    state: {
        user: null,
        players: [],
        selected: null,
        selectedPlayer: null,
        selectedNeighbor: null,
        boxes: {},
        borderBoxes: {},
        mode: 'select',
        commands: [],
        builds:[],
        buildLocations: {},
        resources: [],
        phase: null,
        combatants: [],
        battles: [],
        playersReady: [],
        casualities: {},
        borderClashes: {},
        smallMap: false,
        hovered: null,
        beacon: null,
        log: []
    },
    getters:{
        getLog(state){
            return state.log;
        },
        beacon(state){
            return state.beacon;
        },
        hovered(state){
            return state.hovered;
        },
        playerIds(state){
          if(state.user){
              let ids = [];
              state.players.forEach((item, index) => {
                  if(item == state.user){
                      ids.push(index);
                  }
              })
            return ids;
          }  else {
              return [];
          }
        },
        isSmallMap(state){
            return state.smallMap
        },
        totalArmies(state){
            let ret = [0,0,0]
          for(let property in state.boxes){
              if(state.boxes[property].armies[1]){
                  console.log("Armies ");
                  console.log(state.boxes[property].armies[1])
                  ret [1] += state.boxes[property].armies[1]
              }
              if(state.boxes[property].armies[2]){
                  console.log("Armies ");
                  console.log(state.boxes[property].armies[1])
                  ret [2] += state.boxes[property].armies[2]
              }
          }
          console.log(ret);
          return ret;
        },
        casualities(state){
            return state.casualities;
        },
        borderClashes(state){
            return state.borderClashes;
        },
        buildLocations(state){
            return state.buildLocations;
        },<commit_msg>removed console.logs<commit_after>import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);


export const store = new Vuex.Store({
    strict: true,
    modules:{
    },
    state: {
        user: null,
        players: [],
        selected: null,
        selectedPlayer: null,
        selectedNeighbor: null,
        boxes: {},
        borderBoxes: {},
        mode: 'select',
        commands: [],
        builds:[],
        buildLocations: {},
        resources: [],
        phase: null,
        combatants: [],
        battles: [],
        playersReady: [],
        casualities: {},
        borderClashes: {},
        smallMap: false,
        hovered: null,
        beacon: null,
        log: []
    },
    getters:{
        getLog(state){
            return state.log;
        },
        beacon(state){
            return state.beacon;
        },
        hovered(state){
            return state.hovered;
        },
        playerIds(state){
          if(state.user){
              let ids = [];
              state.players.forEach((item, index) => {
                  if(item == state.user){
                      ids.push(index);
                  }
              })
            return ids;
          }  else {
              return [];
          }
        },
        isSmallMap(state){
            return state.smallMap
        },
        totalArmies(state){
            let ret = [0,0,0]
          for(let property in state.boxes){
              if(state.boxes[property].armies[1]){

                  ret [1] += state.boxes[property].armies[1]
              }
              if(state.boxes[property].armies[2]){

                  ret [2] += state.boxes[property].armies[2]
              }
          }
          return ret;
        },
        casualities(state){
            return state.casualities;
        },
        borderClashes(state){
            return state.borderClashes;
        },
        buildLocations(state){
            return state.buildLocations;
        },
{'fraction_non_alphanumeric': 0.12526741145709533, 'fraction_numerical': 0.004753981459472308, 'mean_word_length': 1.2418753329781567, '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': '5190068', 'n_tokens_mistral': 1154, 'n_tokens_neox': 1152, 'n_words': 210}