<commit_before>import {applyMiddleware, createStore, compose} from 'redux';
import * as reduxLoop from 'redux-loop';
import devTools from 'remote-redux-devtools';
import middleware from './middleware';
import reducer from './reducer';

const enhancer = compose(
  applyMiddleware(...middleware),
  reduxLoop.install(),
  devTools()
);

// create the store
const store = createStore(
  reducer,
  null,<commit_msg>Updated PR to only require devTools in development<commit_after>import {applyMiddleware, createStore, compose} from 'redux';
import * as reduxLoop from 'redux-loop';
import middleware from './middleware';
import reducer from './reducer';

let enhancers = [
  applyMiddleware(...middleware),
  reduxLoop.install()
];

if (process.env.NODE_ENV !== 'production') {
  let devTools = require('remote-redux-devtools');
  enhancers = [...enhancers, devTools()];
}

const enhancer = compose(...enhancers);

// create the store
const store = createStore(
  reducer,
  null,
{'fraction_non_alphanumeric': 0.13510747185261002, 'fraction_numerical': 0.0, 'mean_word_length': 4.927272727272728, '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': '6050191', 'n_tokens_mistral': 298, 'n_tokens_neox': 296, 'n_words': 86}