<commit_before>import createBrowserHistory from 'history/createBrowserHistory'
import promiseMiddleware from 'redux-promise-middleware'
import thunk from 'redux-thunk'
import { composeWithDevTools } from 'redux-devtools-extension'
import { createStore, applyMiddleware } from 'redux'
import { routerMiddleware } from 'connected-react-router'
import createRootReducer from 'main/reducer'
import initState from 'main/initState'

export const history = createBrowserHistory()

const middleware = [
  routerMiddleware(history),
  promiseMiddleware(),
  thunk
]

export const store = createStore(
  createRootReducer(history),
  initState,
  composeWithDevTools(applyMiddleware(...middleware))
)<commit_msg>Fix Redux middleware initialization to prevent warnings<commit_after>import { createBrowserHistory } from 'history'
import promise from 'redux-promise-middleware'
import thunk from 'redux-thunk'
import { composeWithDevTools } from 'redux-devtools-extension'
import { createStore, applyMiddleware } from 'redux'
import { routerMiddleware } from 'connected-react-router'
import createRootReducer from 'main/reducer'
import initState from 'main/initState'

export const history = createBrowserHistory()

const middleware = [
  routerMiddleware(history),
  promise,
  thunk
]

export const store = createStore(
  createRootReducer(history),
  initState,
  composeWithDevTools(applyMiddleware(...middleware))
)
{'fraction_non_alphanumeric': 0.08742004264392324, 'fraction_numerical': 0.0, 'mean_word_length': 6.6521739130434785, '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': '616983', 'n_tokens_mistral': 395, 'n_tokens_neox': 399, 'n_words': 104}