<commit_before>import { applyMiddleware, createStore, compose } from 'redux/es';
import { syncHistoryWithStore, routerMiddleware } from 'react-router-redux';
import { browserHistory } from 'react-router/es';
import { composeWithDevTools } from 'redux-devtools-extension';
import rootReducer from './reducers';

const routingMiddleware = routerMiddleware(browserHistory);
const middlewares = [routingMiddleware];
let enhancers;

if (process.env.NODE_ENV !== 'production') {
  enhancers = composeWithDevTools(applyMiddleware(...middlewares));
} else {
  enhancers = compose(applyMiddleware(...middlewares));
}

const store = createStore(rootReducer, undefined, enhancers);

export const history = syncHistoryWithStore(browserHistory, store);
export { store };
<commit_msg>updated store with thunk.<commit_after>import { applyMiddleware, createStore, compose } from 'redux/es';
import thunk from 'redux-thunk';
import { syncHistoryWithStore, routerMiddleware } from 'react-router-redux';
import { browserHistory } from 'react-router/es';
import { composeWithDevTools } from 'redux-devtools-extension';
import rootReducer from './reducers';

const routingMiddleware = routerMiddleware(browserHistory);
const middlewares = [routingMiddleware, thunk];
let enhancers;

if (process.env.NODE_ENV !== 'production') {
  enhancers = composeWithDevTools(applyMiddleware(...middlewares));
} else {
  enhancers = compose(applyMiddleware(...middlewares));
}

const store = createStore(rootReducer, undefined, enhancers);

export const history = syncHistoryWithStore(browserHistory, store);
export { store };

{'fraction_non_alphanumeric': 0.11934673366834171, 'fraction_numerical': 0.0, 'mean_word_length': 6.770731707317073, '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': '6052578', 'n_tokens_mistral': 452, 'n_tokens_neox': 451, 'n_words': 110}