<commit_before>import { compose, createStore, applyMiddleware } from 'redux'
import { loadingBarMiddleware } from 'react-redux-loading-bar'
import { thunkMiddleware } from 'redux-thunk'
import { createLogger } from 'redux-logger'
import rootReducer from '../reducers/reducer'
import { reduxReactRouter } from 'redux-router';

const initialState = {
  weather: {
    isFetching: true,
    details: {
      payload: [],
    },
  },
}

// const store = compose(
//   applyMiddleware(thunkMiddleware, loadingBarMiddleware(), createLogger()),
// )(createStore);

// const store = createStore(rootReducer, initialState)
// compose  (
//   applyMiddleware(
//     thunkMiddleware,
//     loadingBarMiddleware(),
//     createLogger()
//   )
// )

const store =
compose(
  applyMiddleware(
    thunkMiddleware,
    loadingBarMiddleware(),
    createLogger()
  )
)(createStore)(rootReducer, initialState);


export default function configureStore(){
  return store(rootReducer, initialState)
}<commit_msg>Fix reducer error<commit_after>import { compose, createStore, applyMiddleware } from 'redux'
import { loadingBarMiddleware } from 'react-redux-loading-bar'
import { thunkMiddleware } from 'redux-thunk'
import { createLogger } from 'redux-logger'
import rootReducer from '../reducers/reducer'
import { reduxReactRouter } from 'redux-router';

const initialState = {
  weather: {
    isFetching: true,
    details: {
      payload: [],
    },
  },
}

// const store = compose(
//   applyMiddleware(thunkMiddleware, loadingBarMiddleware(), createLogger()),
// )(createStore);

// const store = createStore(rootReducer, initialState)
// compose  (
//   applyMiddleware(
//     thunkMiddleware,
//     loadingBarMiddleware(),
//     createLogger()
//   )
// )

const store = createStore(
  rootReducer,
  initialState,
  compose(
      applyMiddleware(
      thunkMiddleware,
      loadingBarMiddleware(),
      createLogger()
    )
  )
);


export default function configureStore(){
  return store
}
{'fraction_non_alphanumeric': 0.12857860371672528, 'fraction_numerical': 0.0, 'mean_word_length': 3.7315914489311166, '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': '465769', 'n_tokens_mistral': 599, 'n_tokens_neox': 608, 'n_words': 132}