<commit_before>import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export const store = new Vuex.Store({
  state: {
    selected: {
      lnglat: null,
      label: null,
      address: null,
      pid: null
    },
    poi: {
      lnglat: null,
      label: null,
      address: null
    },
    show: 'welcome',
    initLnglatFlag: false
  },
  getters: {
    selected: state => state.selected,
    poi: state => state.poi,
    show: state => state.show,
    initLnglatFlag: state => state.initLnglatFlag
  },
  mutations: {
    selected (state, payload) {
      state.selected = {
        lnglat: payload.lnglat,
        label: payload.label,
        address: payload.address,
        pid: payload.pid
      }
    },
    poi (state, payload) {
      state.poi = {
        lnglat: payload.lnglat,
        label: payload.label,
        address: payload.address
      }
    },
    show (state, n) {
      state.show = n
    },
    initLnglatFlag (state, n) {
      state.initLnglatFlag = n
    }
  }
})<commit_msg>added map toggle<commit_after>import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export const store = new Vuex.Store({
  state: {
    selected: {
      lnglat: null,
      label: null,
      address: null,
      pid: null
    },
    poi: {
      lnglat: null,
      label: null,
      address: null
    },
    show: 'welcome',
    drawMap: false
  },
  getters: {
    selected: state => state.selected,
    poi: state => state.poi,
    show: state => state.show,
    drawMap: state => state.drawMap
  },
  mutations: {
    selected (state, payload) {
      state.selected = {
        lnglat: payload.lnglat,
        label: payload.label,
        address: payload.address,
        pid: payload.pid
      }
    },
    poi (state, payload) {
      state.poi = {
        lnglat: payload.lnglat,
        label: payload.label,
        address: payload.address
      }
    },
    show (state, n) {
      state.show = n
    },
    drawMap (state, n) {
      state.drawMap = n
    }
  }
})
{'fraction_non_alphanumeric': 0.12413108242303873, 'fraction_numerical': 0.0, 'mean_word_length': 1.8744650499286732, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6132468', 'n_tokens_mistral': 698, 'n_tokens_neox': 703, 'n_words': 164}