<commit_before>import DevTools from 'dev-tools'
import hashHistory from 'react-router/lib/hashHistory'
import reduxThunk from 'redux-thunk'
import { connectStore } from 'xo'
import {
  applyMiddleware,
  combineReducers,
  compose,
  createStore
} from 'redux'
import {
  syncHistoryWithStore,
  routerReducer
} from 'react-router-redux'

import reducer from './reducer'

// ===================================================================

const store = createStore(
  combineReducers({
    ...reducer,
    routing: routerReducer
  }),
  compose(
    applyMiddleware(reduxThunk),
    DevTools ? DevTools.instrument() : value => value
  )
)

connectStore(store)

export default store

export const history = syncHistoryWithStore(hashHistory, store)<commit_msg>chore(store): do not add useless enhancers<commit_after>import DevTools from 'dev-tools'
import hashHistory from 'react-router/lib/hashHistory'
import reduxThunk from 'redux-thunk'
import { connectStore } from 'xo'
import {
  applyMiddleware,
  combineReducers,
  compose,
  createStore
} from 'redux'
import {
  syncHistoryWithStore,
  routerReducer
} from 'react-router-redux'

import reducer from './reducer'

// ===================================================================

const enhancers = [
  applyMiddleware(reduxThunk)
]
DevTools && enhancers.push(DevTools.instrument())

const store = createStore(
  combineReducers({
    ...reducer,
    routing: routerReducer
  }),
  compose.apply(null, enhancers)
)

connectStore(store)

export default store

export const history = syncHistoryWithStore(hashHistory, store)
{'fraction_non_alphanumeric': 0.1762114537444934, 'fraction_numerical': 0.0, 'mean_word_length': 5.25984251968504, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3363739', 'n_tokens_mistral': 484, 'n_tokens_neox': 478, 'n_words': 113}