<commit_before>import './styles.css';
import React from 'react';
import {Provider} from 'react-redux';
import {render} from 'react-dom';
import {Router, Route, Redirect, IndexRedirect, hashHistory} from 'react-router';
import {AppContainer} from 'react-hot-loader';
import RedBox from 'redbox-react';
import App from './components/App';
import Content from './components/Content';
import ContentView from './components/ContentView';
import configureStore from './configureStore';

const store = configureStore();

renderApp();

if (module.hot) {
  module.hot.accept('./components/App', renderApp);
}

function renderApp() {
  render(
    <AppContainer errorReporter={RedBox}>
      <Provider store={store}>
        <Router history={hashHistory}>
          <Route path="/" component={App}>
            <IndexRedirect to="/view" />
            <Route path="/memo/:memoId" component={Content} />
            <Route path="/view" component={ContentView} />
            <Redirect from="*" to="/view" />
          </Route>
        </Router>
      </Provider>
    </AppContainer>,
    document.getElementById('app'),
  );
}<commit_msg>Small fixes<commit_after>import './styles.css';
import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import {AppContainer} from 'react-hot-loader';
import RedBox from 'redbox-react';
import {Router, Route, Redirect, IndexRedirect, hashHistory} from 'react-router';
import App from './components/App';
import Content from './components/Content';
import ContentView from './components/ContentView';
import configureStore from './configureStore';

const store = configureStore();

renderApp();
applyHotLoader();

function renderApp() {
  render(
    <AppContainer errorReporter={RedBox}>
      <Provider store={store}>
        <Router history={hashHistory}>
          <Route path="/" component={App}>
            <IndexRedirect to="/view" />
            <Route path="/memo/:memoId" component={Content} />
            <Route path="/view" component={ContentView} />
            <Redirect from="*" to="/view" />
          </Route>
        </Router>
      </Provider>
    </AppContainer>,
    document.getElementById('app'),
  );
}

function applyHotLoader() {
  if (module.hot) {
    module.hot.accept('./components/App', renderApp);
  }
}
{'fraction_non_alphanumeric': 0.16001734605377277, 'fraction_numerical': 0.0, 'mean_word_length': 3.497076023391813, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '3570304', 'n_tokens_mistral': 633, 'n_tokens_neox': 632, 'n_words': 168}