<commit_before>import { combineReducers } from 'redux';
import { persistReducer } from 'redux-persist';
import autoMergeLevel2 from 'redux-persist/lib/stateReconciler/autoMergeLevel2';
import fuzzySettingsReducer from './fuzzy-settings';
import generalSettingsReducer from './settings';
import keyboardConfigReducer from './keyboard';
import colorSettingsReducer from './colors';
import stateReducer from './state';
import storage from './services/storage-adapter';

const persistConfig = {
  key: 'root',
  storage,
  serialize: false,
  blacklist: ['state'],
  stateReconciler: autoMergeLevel2,
};


const rootReducer = combineReducers({
  fuzzy: fuzzySettingsReducer,
  general: generalSettingsReducer,
  state: stateReducer,
  keyboard: keyboardConfigReducer,
  color: colorSettingsReducer,
});

export default persistReducer(persistConfig, rootReducer);
<commit_msg>Start explicitly versioning persisted reducer now (0), was (-1)<commit_after>import { combineReducers } from 'redux';
import { persistReducer } from 'redux-persist';
import autoMergeLevel2 from 'redux-persist/lib/stateReconciler/autoMergeLevel2';
import fuzzySettingsReducer from './fuzzy-settings';
import generalSettingsReducer from './settings';
import keyboardConfigReducer from './keyboard';
import colorSettingsReducer from './colors';
import stateReducer from './state';
import storage from './services/storage-adapter';

const persistConfig = {
  key: 'root',
  storage,
  serialize: false,
  blacklist: ['state'],
  stateReconciler: autoMergeLevel2,
  // Unversioned configs are set to -1 by default
  // TODO: Write migrations
  version: 0,
};


const rootReducer = combineReducers({
  fuzzy: fuzzySettingsReducer,
  general: generalSettingsReducer,
  state: stateReducer,
  keyboard: keyboardConfigReducer,
  color: colorSettingsReducer,
});

export default persistReducer(persistConfig, rootReducer);

{'fraction_non_alphanumeric': 0.10615711252653928, 'fraction_numerical': 0.005307855626326964, 'mean_word_length': 5.981481481481482, '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': '3278443', 'n_tokens_mistral': 593, 'n_tokens_neox': 542, 'n_words': 149}