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

import reducerRegistry from './registry';

const isServer = typeof window === 'undefined';

const initialReducers = combineReducers({ ...reducerRegistry.getReducers() });

const reduxDevTools =
  !isServer &&
  window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ &&
  window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
    maxAge: 10,
    stateSanitizer: (state) => ({
      ...state,
      datasets: {
        ...state.datasets,
        data: 'NOT_SERIALIZED',
      },
      ptw: {
        ...state.ptw,<commit_msg>add my gfw as base reducer<commit_after>import { createStore, applyMiddleware, combineReducers, compose } from 'redux';
import thunkMiddleware from 'redux-thunk';

import { reduxModule as myGfwReduxModule } from 'providers/mygfw-provider';

import reducerRegistry from './registry';

const isServer = typeof window === 'undefined';

reducerRegistry.registerModule('myGfw', myGfwReduxModule);

const initialReducers = combineReducers(reducerRegistry.getReducers());

const reduxDevTools =
  !isServer &&
  window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ &&
  window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
    maxAge: 10,
    stateSanitizer: (state) => ({
      ...state,
      datasets: {
        ...state.datasets,
        data: 'NOT_SERIALIZED',
      },
      ptw: {
        ...state.ptw,
{'fraction_non_alphanumeric': 0.12106368089573127, 'fraction_numerical': 0.0027991602519244225, 'mean_word_length': 3.8639455782312924, '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': '7361598', 'n_tokens_mistral': 482, 'n_tokens_neox': 467, 'n_words': 91}