<commit_before>import thunk from "redux-thunk";
import { applyMiddleware, createStore } from "redux";
import { browserHistory } from "react-router";
import { routerMiddleware } from "react-router-redux";
import rootReducer from "./rootReducer";

// TODO: should depend on MIX_ENV/NODE_ENV
const __DEBUG__ = true;
const __PERFORMANCE_DEBUG__ = false;

export default function configureStore(initialState = {}) {
  let middlewares = [thunk, routerMiddleware(browserHistory)];

  if (__DEBUG__) {
    const createLogger = require("redux-logger");
    middlewares.push(createLogger());<commit_msg>disable redux-logger in production<commit_after>import thunk from "redux-thunk";
import { applyMiddleware, createStore } from "redux";
import { browserHistory } from "react-router";
import { routerMiddleware } from "react-router-redux";
import rootReducer from "./rootReducer";

const __DEBUG__ = process.env.NODE_ENV !== "production";
const __PERFORMANCE_DEBUG__ = false;

export default function configureStore(initialState = {}) {
  let middlewares = [thunk, routerMiddleware(browserHistory)];

  if (__DEBUG__) {
    const createLogger = require("redux-logger");
    middlewares.push(createLogger());
{'fraction_non_alphanumeric': 0.11695906432748537, 'fraction_numerical': 0.0, 'mean_word_length': 5.965116279069767, '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': '656303', 'n_tokens_mistral': 345, 'n_tokens_neox': 346, 'n_words': 90}