<commit_before>import React from 'react';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import { reducer } from './reducer';
import { App } from './App';

const store = createStore(reducer);

React.render((
  <Provider store={store}>
    {() => <App />}
  </Provider>
), document.getElementById('root'));
<commit_msg>Make reducer hot-loadable.<commit_after>import React from 'react';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import { reducer } from './reducer';
import { App } from './App';

const store = createStore(reducer);

React.render((
  <Provider store={store}>
    {() => <App />}
  </Provider>
), document.getElementById('root'));

if (module.hot) {
  // Enable Webpack hot module replacement for reducers
  module.hot.accept('./reducer', () => {
    const {reducer: nextReducer} = require('./reducer');
    store.replaceReducer(nextReducer);
  });
}

{'fraction_non_alphanumeric': 0.18083961248654468, 'fraction_numerical': 0.0, 'mean_word_length': 4.314285714285714, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 12, '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': '7504810', 'n_tokens_mistral': 291, 'n_tokens_neox': 287, 'n_words': 75}