<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import { AppContainer } from 'react-hot-loader';

const App = props => (
  <AppContainer>
    <Provider store={props.store}>
      <Router history={props.history} routes={props.routes} />
    </Provider>
  </AppContainer>
);

App.propTypes = {
  store: PropTypes.oneOfType([
    PropTypes.array,
    PropTypes.string,
    PropTypes.number,
    PropTypes.bool,
    PropTypes.object,
  ]).isRequired,
  history: PropTypes.oneOfType([
    PropTypes.array,
    PropTypes.string,
    PropTypes.number,
    PropTypes.bool,
    PropTypes.object,
  ]).isRequired,
  routes: PropTypes.oneOfType([
    PropTypes.array,
    PropTypes.string,
    PropTypes.number,
    PropTypes.bool,
    PropTypes.object,
  ]).isRequired,
};
<commit_msg>no need to wrap app in AppContainer if HMR is not enabled<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import { AppContainer } from 'react-hot-loader';

const enableHMR = (process.env.ENABLE_WEBPACK_HMR === 'true');

const App = (props) => {
  if (enableHMR) {
    return (
      <AppContainer>
        <Provider store={props.store}>
          <Router history={props.history} routes={props.routes} />
        </Provider>
      </AppContainer>
    );
  }

  return (
    <Provider store={props.store}>
      <Router history={props.history} routes={props.routes} />
    </Provider>
  );
};

App.propTypes = {
  store: PropTypes.oneOfType([
    PropTypes.array,
    PropTypes.string,
    PropTypes.number,
    PropTypes.bool,
    PropTypes.object,
  ]).isRequired,
  history: PropTypes.oneOfType([
    PropTypes.array,
    PropTypes.string,
    PropTypes.number,
    PropTypes.bool,
    PropTypes.object,
  ]).isRequired,
  routes: PropTypes.oneOfType([
    PropTypes.array,
    PropTypes.string,
    PropTypes.number,
    PropTypes.bool,
    PropTypes.object,
  ]).isRequired,
};

{'fraction_non_alphanumeric': 0.13561776061776062, 'fraction_numerical': 0.0, 'mean_word_length': 3.2830578512396693, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 18, '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': '6371634', 'n_tokens_mistral': 633, 'n_tokens_neox': 668, 'n_words': 137}