<commit_before>import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import configureStore from './store';
import Routes from './routes';
import styles from './styles/style.styl';

const store = configureStore({});
const history = syncHistoryWithStore(browserHistory, store);

class Root extends React.Component {
  componentDidMount() {
    // Call an action here if we need to fetch something as the app loads
    // store.dispatch(getPodcasts());
  }

  render() {
    return (
      <Provider store={store}>
        <Router history={history}>
          { Routes }
        </Router>
      </Provider>
    );
  }
}

export default Root;<commit_msg>getting rid of an annoying react-router error, per https://github.com/reactjs/react-router/issues/2704<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import configureStore from './store';
import Routes from './routes';
import styles from './styles/style.styl';

const store = configureStore({});
const history = syncHistoryWithStore(browserHistory, store);

class Root extends React.Component {
  componentDidMount() {
    // Call an action here if we need to fetch something as the app loads
    // store.dispatch(getPodcasts());
  }

  render() {
    return (
      <Provider store={store}>
        <Router history={history} routes={Routes}>
        </Router>
      </Provider>
    );
  }
}

export default Root;
{'fraction_non_alphanumeric': 0.1254396248534584, 'fraction_numerical': 0.0023446658851113715, 'mean_word_length': 3.7154696132596685, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 1, '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': '2297587', 'n_tokens_mistral': 478, 'n_tokens_neox': 469, 'n_words': 151}