<commit_before>import {
  createStore as doCreateStore,
  combineReducers,
  applyMiddleware,
  compose
} from 'redux'
import { routerReducer } from 'react-router-redux'
import * as reducers from './ducks'

export default function createStore (...middlewares) {
  return doCreateStore(
    combineReducers(allReducers),
    initialState,
    composeEnhancers(applyMiddleware(...middlewares))
  )
}<commit_msg>Update createStore to be more complete<commit_after>import {
  createStore as doCreateStore,
  combineReducers,
  applyMiddleware,
  compose
} from 'redux'
import { routerReducer } from 'react-router-redux'
import * as reducers from './ducks'

const allReducers = Object.assign({}, reducers, {
  routing: routerReducer
})

const composeEnhancers = typeof __REDUX_DEVTOOLS_EXTENSION_COMPOSE__ === 'function'
  ? __REDUX_DEVTOOLS_EXTENSION_COMPOSE__
  : compose

  const initialState = typeof __INITIAL_STATE__ === 'object'
  ? __INITIAL_STATE__
  : {}

export default function createStore () {
  return doCreateStore(
    combineReducers(allReducers),
    initialState
  )
}
{'fraction_non_alphanumeric': 0.09242144177449169, 'fraction_numerical': 0.0, 'mean_word_length': 4.950549450549451, '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': '7377348', 'n_tokens_mistral': 360, 'n_tokens_neox': 353, 'n_words': 78}