<commit_before>import React, {Component} from 'react'
import {
  Route,
  NavLink,
} from 'react-router-dom'
import {Drawer, MenuItem, Divider} from 'material-ui'
import {createStore, applyMiddleware, compose} from 'redux'
import thunk from 'redux-thunk'
import createHistory from 'history/createBrowserHistory'
import {ConnectedRouter, routerMiddleware} from 'react-router-redux'
import {ApolloProvider, ApolloClient, createNetworkInterface} from 'react-apollo'
import {persistStore, autoRehydrate} from 'redux-persist'
import Notification from './components/notification'
import reducers from './reducers'
import styles from './App.scss'
import Header from './components/header'
import Logo from './assets/logo_blue_2x.png'
import Welcome from './components/welcome'
import SiteEditor from './components/site_editor'


const networkInterface = createNetworkInterface({
  uri: process.env.REACT_APP_GRAPHQL
})
const client = new ApolloClient({
  networkInterface: networkInterface
})
const history = createHistory()
const middleware = routerMiddleware(history)
const store = createStore(
  reducers(client),
  {},
  compose(
    applyMiddleware(client.middleware(), thunk, middleware),
    autoRehydrate(),
    (typeof window.__REDUX_DEVTOOLS_EXTENSION__ !== 'undefined') ? window.__REDUX_DEVTOOLS_EXTENSION__() : f => f,
  )
)
persistStore(store, {blacklist: ['apollo']})<commit_msg>do not persist all reducers<commit_after>import React, {Component} from 'react'
import {
  Route,
  NavLink,
} from 'react-router-dom'
import {Drawer, MenuItem, Divider} from 'material-ui'
import {createStore, applyMiddleware, compose} from 'redux'
import thunk from 'redux-thunk'
import createHistory from 'history/createBrowserHistory'
import {ConnectedRouter, routerMiddleware} from 'react-router-redux'
import {ApolloProvider, ApolloClient, createNetworkInterface} from 'react-apollo'
import {persistStore, autoRehydrate} from 'redux-persist'
import Notification from './components/notification'
import reducers from './reducers'
import styles from './App.scss'
import Header from './components/header'
import Logo from './assets/logo_blue_2x.png'
import Welcome from './components/welcome'
import SiteEditor from './components/site_editor'


const networkInterface = createNetworkInterface({
  uri: process.env.REACT_APP_GRAPHQL
})
const client = new ApolloClient({
  networkInterface: networkInterface
})
const history = createHistory()
const middleware = routerMiddleware(history)
const store = createStore(
  reducers(client),
  {},
  compose(
    applyMiddleware(client.middleware(), thunk, middleware),
    autoRehydrate(),
    (typeof window.__REDUX_DEVTOOLS_EXTENSION__ !== 'undefined') ? window.__REDUX_DEVTOOLS_EXTENSION__() : f => f,
  )
)
persistStore(store, {whitelist: ['app', 'session']})
{'fraction_non_alphanumeric': 0.11425501432664756, 'fraction_numerical': 0.0007163323782234957, 'mean_word_length': 6.2734375, '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': '3980691', 'n_tokens_mistral': 848, 'n_tokens_neox': 822, 'n_words': 222}