<commit_before>import { createStore, applyMiddleware, compose } from 'redux';
import thunkMiddleware from 'redux-thunk';
import { browserHistory } from 'react-router';
import { routerMiddleware } from 'react-router-redux';

import authMiddleware from './middlewares/auth';
import reducers from './reducers';

const initialState = {};

const appliedMiddleware = applyMiddleware(
  thunkMiddleware,
  routerMiddleware(browserHistory),
  authMiddleware,
);

const store = createStore(
  reducers,
  initialState,
  compose(appliedMiddleware),
);

export default store;<commit_msg>Configures redux devtools (#507)<commit_after>import { createStore, applyMiddleware, compose } from 'redux';
import thunkMiddleware from 'redux-thunk';
import { browserHistory } from 'react-router';
import { routerMiddleware } from 'react-router-redux';

import authMiddleware from './middlewares/auth';
import reducers from './reducers';

const initialState = {};

const appliedMiddleware = applyMiddleware(
  thunkMiddleware,
  routerMiddleware(browserHistory),
  authMiddleware,
);

const composeEnhancers = process.env.NODE_ENV !== 'production' &&
  typeof global.window === 'object' &&
  global.window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?
  global.window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : compose;
const store = createStore(
  reducers,
  initialState,
  composeEnhancers(appliedMiddleware),
);

export default store;
{'fraction_non_alphanumeric': 0.10668563300142248, 'fraction_numerical': 0.0021337126600284497, 'mean_word_length': 6.252577319587629, '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': '6165024', 'n_tokens_mistral': 415, 'n_tokens_neox': 415, 'n_words': 98}