<commit_before>import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from './components/App.jsx';
import configureStore from './store/configureStore.js';
import { fetchUser } from './actions/user.js';

const store = configureStore();

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

store.dispatch(fetchUser(1))
  .then(() => {
    console.log(JSON.stringify(store.getState(), null, 2));
  });
<commit_msg>automatically copy the index.html file into the build directory<commit_after>import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from './components/App.jsx';
import configureStore from './store/configureStore.js';
import { fetchUser } from './actions/user.js';

/* eslint-disable import/no-unresolved */
// this line magically copies index.html into the build folder, courtesy of the file-loader plugin
require('file?name=[name].[ext]!./index.html');
/* eslint-enable import/no-unresolved */

const store = configureStore();

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

store.dispatch(fetchUser(1))
  .then(() => {
    console.log(JSON.stringify(store.getState(), null, 2));
  });

{'fraction_non_alphanumeric': 0.1667885881492319, 'fraction_numerical': 0.002926115581565472, 'mean_word_length': 4.583673469387755, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '3181562', 'n_tokens_mistral': 415, 'n_tokens_neox': 407, 'n_words': 107}