<commit_before>import { createStore, compose, applyMiddleware } from "redux";
import thunkMiddleware from "redux-thunk";

import { persistStore, persistReducer } from "redux-persist";
import storage from "redux-persist/lib/storage";

import { createBrowserHistory } from "history";
import { routerMiddleware } from "connected-react-router";

import { loaderMiddleware, flashMessageMiddleWare } from "./core";

import rootReducer from "./RootReducer";

const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

export const history = createBrowserHistory();

const persisConfig = {
  key: "movieManager",
  storage
};

const persistedReducer = persistReducer(persisConfig, rootReducer(history));

const configureStore = () => {
  let store = createStore(
    persistedReducer,
    composeEnhancer(
      applyMiddleware(
        routerMiddleware(history),
        thunkMiddleware,
        loaderMiddleware,<commit_msg>adds whitelist option to persistConfig<commit_after>import { createStore, compose, applyMiddleware } from "redux";
import thunkMiddleware from "redux-thunk";

import { persistStore, persistReducer } from "redux-persist";
import storage from "redux-persist/lib/storage";

import { createBrowserHistory } from "history";
import { routerMiddleware } from "connected-react-router";

import { loaderMiddleware, flashMessageMiddleWare } from "./core";

import rootReducer from "./RootReducer";

const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

export const history = createBrowserHistory();

const persisConfig = {
  key: "movieManager",
  whitelist: ["auth", "user", "movies", "form", "router"],
  storage
};

const persistedReducer = persistReducer(persisConfig, rootReducer(history));

const configureStore = () => {
  let store = createStore(
    persistedReducer,
    composeEnhancer(
      applyMiddleware(
        routerMiddleware(history),
        thunkMiddleware,
        loaderMiddleware,
{'fraction_non_alphanumeric': 0.10285132382892057, 'fraction_numerical': 0.0, 'mean_word_length': 5.277955271565495, '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': '7519184', 'n_tokens_mistral': 588, 'n_tokens_neox': 563, 'n_words': 137}