<commit_before>import Vue from 'vue'

const state = new Vue({
  data: {
    // app Mode
    appMode: 'full',
    // navigation
    navigationMode: 'forward',
    isRouterEnabled: false,
    router: {},
    history: [],
    backwardNavigation: false,
    componentList: {},
    goBackView: '',
    // look & feel
    diameters: {},
    usePercentSizes: false,
    percentSizes: {
      xxl: 30,
      xl: 20,
      l: 16,
      m: 8,
      s: 6,
      xs: 4,
      xxs: 2
    },
    minSizesInPixels: {
      xxl: 180,
      xl: 150,
      l: 100,
      m: 80,
      s: 50,
      xs: 30,
      xxs: 20
    },
    appStyle: {
      theme: 'theme-black',
      mode: 'mode-dark',
      shape: 'circle'
    },
    // pagination components
    currentPage: 0,
    items: [],
    pages: [],
    params: {},
    // debug
    debug: false
  }
})

export default state<commit_msg>feat(state.js): use a common initialState for Vue and resetConfig method<commit_after>import Vue from 'vue'

export const initialState = {
  // app Mode
  appMode: 'full',
  // navigation
  navigationMode: 'forward',
  isRouterEnabled: false,
  router: {},
  history: [],
  backwardNavigation: false,
  componentList: {},
  goBackView: '',
  // look & feel
  diameters: {},
  usePercentSizes: false,
  percentSizes: {
    xxl: 30,
    xl: 20,
    l: 16,
    m: 8,
    s: 6,
    xs: 4,
    xxs: 2
  },
  minSizesInPixels: {
    xxl: 180,
    xl: 150,
    l: 100,
    m: 80,
    s: 50,
    xs: 30,
    xxs: 20
  },
  appStyle: {
    theme: 'theme-black',
    mode: 'mode-dark',
    shape: 'circle'
  },
  // pagination components
  currentPage: 0,
  items: [],
  pages: [],
  params: {},
  // debug
  debug: false
}

const state = new Vue({
  data: { ...initialState }
})

export default state
{'fraction_non_alphanumeric': 0.14642451759364358, 'fraction_numerical': 0.03178206583427923, 'mean_word_length': 2.008532423208191, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6674695', 'n_tokens_mistral': 693, 'n_tokens_neox': 636, 'n_words': 170}