<commit_before>import {createStore, combineReducers, applyMiddleware} from 'redux';
import createLogger from 'redux-logger';
import thunk from 'redux-thunk';

import reducers from '../reducers';
import chromeStorageMiddleware from './chromeStorageMiddleware';
import analyticsMiddleware from './analyticsMiddleware';

const middleware = [
  thunk,
  chromeStorageMiddleware,
  analyticsMiddleware
];

const logger = createLogger({
  duration: true,
  collapsed: true
});

if (ENV === 'develop') middleware.push(logger);

const createStoreWithMiddleware = applyMiddleware(
  ...middleware
)(createStore);

const reducer = combineReducers({
  ...reducers
});

const createAppStore = (initialState = {}) =>
  createStoreWithMiddleware(reducer, initialState);

export default createAppStore;
<commit_msg>update logger middleware according to redux-logger v3<commit_after>import {createStore, combineReducers, applyMiddleware} from 'redux';
import {createLogger} from 'redux-logger';
import thunk from 'redux-thunk';

import reducers from '../reducers';
import chromeStorageMiddleware from './chromeStorageMiddleware';
import analyticsMiddleware from './analyticsMiddleware';

const middleware = [
  thunk,
  chromeStorageMiddleware,
  analyticsMiddleware
];

const logger = createLogger({
  duration: true,
  collapsed: true
});

if (ENV === 'develop') middleware.push(logger);

const createStoreWithMiddleware = applyMiddleware(
  ...middleware
)(createStore);

const reducer = combineReducers({
  ...reducers
});

const createAppStore = (initialState = {}) =>
  createStoreWithMiddleware(reducer, initialState);

export default createAppStore;

{'fraction_non_alphanumeric': 0.11266747868453106, 'fraction_numerical': 0.0006090133982947625, 'mean_word_length': 6.081896551724138, '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': '7215368', 'n_tokens_mistral': 452, 'n_tokens_neox': 469, 'n_words': 124}