<commit_before>import * as types from './mutation-types'
import config from 'config'
import { Module } from 'vuex'
import { newsletterState } from '../types/newsletterState'
import { cacheStorage } from '../'
import CmsBlockState from "core/modules/cms/types/CmsBlockState";
import RootState from "core/types/RootState";

export const module: Module<newsletterState, any> ={
  namespaced: true,
  state: {
    isSubscribed: false,
    email: null,
  },
  getters: {
    isSubscribed: state => state.isSubscribed,
    email: state => state.email
  },
  mutations: {
    [types.NEWSLETTER_SUBSCRIBE] (state) {
      state.isSubscribed = true
    },
    [types.NEWSLETTER_UNSUBSCRIBE] (state) {
      state.isSubscribed = false
    },
    [types.SET_EMAIL] (state, payload) {
      state.email = payload
    }
  },<commit_msg>removed unnecessary imports<commit_after>import * as types from './mutation-types'
import config from 'config'
import { Module } from 'vuex'
import { newsletterState } from '../types/newsletterState'
import { cacheStorage } from '../'

export const module: Module<newsletterState, any> ={
  namespaced: true,
  state: {
    isSubscribed: false,
    email: null,
  },
  getters: {
    isSubscribed: state => state.isSubscribed,
    email: state => state.email
  },
  mutations: {
    [types.NEWSLETTER_SUBSCRIBE] (state) {
      state.isSubscribed = true
    },
    [types.NEWSLETTER_UNSUBSCRIBE] (state) {
      state.isSubscribed = false
    },
    [types.SET_EMAIL] (state, payload) {
      state.email = payload
    }
  },
{'fraction_non_alphanumeric': 0.12790697674418605, 'fraction_numerical': 0.0, 'mean_word_length': 3.363380281690141, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4109067', 'n_tokens_mistral': 514, 'n_tokens_neox': 513, 'n_words': 116}