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

import { loadState, saveState } from '../utils/local-storage';
import { reducer }              from '../reducers';

const initialState = loadState();
const router = routerMiddleware(browserHistory);

export const Store = createStore(reducer, initialState, applyMiddleware(thunkMiddleware, router));

Store.subscribe(() => saveState(Store.getState()));
<commit_msg>chore(devtools): Add hook for redux devtools<commit_after>import { browserHistory }                        from 'react-router';
import { createStore, applyMiddleware, compose } from 'redux';
import { routerMiddleware }                      from 'react-router-redux';
import thunkMiddleware                           from 'redux-thunk';

import { loadState, saveState } from '../utils/local-storage';
import { reducer }              from '../reducers';

const initialState = loadState();
const router = routerMiddleware(browserHistory);

const composeEnhancers = process.env.NODE_ENV !== 'production' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

export const Store = createStore(reducer, initialState, composeEnhancers(applyMiddleware(thunkMiddleware, router)));

Store.subscribe(() => saveState(Store.getState()));

{'fraction_non_alphanumeric': 0.11707988980716254, 'fraction_numerical': 0.0, 'mean_word_length': 3.7483660130718954, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3783395', 'n_tokens_mistral': 378, 'n_tokens_neox': 377, 'n_words': 94}