<commit_before>import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
import { browserHistory } from 'react-router';
import { createStore, applyMiddleware } from 'redux';
import { routerMiddleware } from 'react-router-redux';
import reducers from '../Reducers';

const middleware = [ thunk, routerMiddleware(browserHistory) ];

if (process.env.NODE_ENV !== 'production') {
  const logger = createLogger({ collapsed: true });
  middleware = [ ...middleware, logger ];
}

export default function () {
  return createStore(
    reducers,
    applyMiddleware(...middleware)
  );
}
<commit_msg>Changed middleware from const to let<commit_after>import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
import { browserHistory } from 'react-router';
import { createStore, applyMiddleware } from 'redux';
import { routerMiddleware } from 'react-router-redux';
import reducers from '../Reducers';

let middleware = [ thunk, routerMiddleware(browserHistory) ];

if (process.env.NODE_ENV !== 'production') {
  const logger = createLogger({ collapsed: true });
  middleware = [ ...middleware, logger ];
}

export default function () {
  return createStore(
    reducers,
    applyMiddleware(...middleware)
  );
}

{'fraction_non_alphanumeric': 0.13257881972514146, 'fraction_numerical': 0.0, 'mean_word_length': 4.839622641509434, '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': '4328335', 'n_tokens_mistral': 353, 'n_tokens_neox': 360, 'n_words': 99}