<commit_before>import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { browserHistory, Router, Route, IndexRedirect } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';

import { requireAuthentication } from './shared/components/AuthenticatedComponent';
import configureStore from './configureStore';

import appScreen from './screens/app';
import aboutScreen from './screens/app/screens/about';
import translateScreen from './screens/app/screens/translate';
import listsScreen from './screens/app/screens/lists';
import homeScreen from './screens/app/screens/home';
import finishScreen from './screens/app/screens/finish';
import profileScreen from './screens/app/screens/profile';
import loginScreen from './screens/app/screens/login';
import logoutScreen from './screens/app/screens/logout';
import playScreen from './screens/app/screens/play';
import selectScreen from './screens/app/screens/select';

// Get the application-wide store instance, prepopulating with state from the server where available.
// ! Don't have server-rendering yet, might add later
const initialState = window.initialReduxState;
const store = configureStore(initialState);

const history = syncHistoryWithStore(browserHistory, store);

ReactDOM.render(
  <Provider store={store}>
    <Router history={history}>
      <Route path="/" component={appScreen}>
        <IndexRedirect to="home" />
        <Route path="login" component={loginScreen} />
        <Route path="logout" component={logoutScreen} />
        <Route path="home" component={homeScreen} />
        <Route path="play/:type" component={requireAuthentication(playScreen)} />
        <Route path="select/:type" component={requireAuthentication(selectScreen)} />
        <Route path="translate" component={requireAuthentication(translateScreen)} />
        <Route path="lists" component={requireAuthentication(listsScreen)} />
        <Route path="finish/:type" component={requireAuthentication(finishScreen)} />
        <Route path="profile" component={requireAuthentication(profileScreen)} />
        <Route path="about" component={requireAuthentication(aboutScreen)} />
      </Route>
    </Router>
  </Provider>,
  document.getElementById('index_root'));
<commit_msg>Allow visiting about screen without auth<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { browserHistory, Router, Route, IndexRedirect } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';

import { requireAuthentication } from './shared/components/AuthenticatedComponent';
import configureStore from './configureStore';

import appScreen from './screens/app';
import aboutScreen from './screens/app/screens/about';
import translateScreen from './screens/app/screens/translate';
import listsScreen from './screens/app/screens/lists';
import homeScreen from './screens/app/screens/home';
import finishScreen from './screens/app/screens/finish';
import profileScreen from './screens/app/screens/profile';
import loginScreen from './screens/app/screens/login';
import logoutScreen from './screens/app/screens/logout';
import playScreen from './screens/app/screens/play';
import selectScreen from './screens/app/screens/select';

// Get the application-wide store instance, prepopulating with state from the server where available.
// ! Don't have server-rendering yet, might add later
const initialState = window.initialReduxState;
const store = configureStore(initialState);

const history = syncHistoryWithStore(browserHistory, store);

ReactDOM.render(
  <Provider store={store}>
    <Router history={history}>
      <Route path="/" component={appScreen}>
        <IndexRedirect to="home" />
        <Route path="login" component={loginScreen} />
        <Route path="logout" component={logoutScreen} />
        <Route path="home" component={homeScreen} />
        <Route path="play/:type" component={requireAuthentication(playScreen)} />
        <Route path="select/:type" component={requireAuthentication(selectScreen)} />
        <Route path="translate" component={requireAuthentication(translateScreen)} />
        <Route path="lists" component={requireAuthentication(listsScreen)} />
        <Route path="finish/:type" component={requireAuthentication(finishScreen)} />
        <Route path="profile" component={requireAuthentication(profileScreen)} />
        <Route path="about" component={aboutScreen} />
      </Route>
    </Router>
  </Provider>,
  document.getElementById('index_root'));

{'fraction_non_alphanumeric': 0.134029590948651, 'fraction_numerical': 0.0, 'mean_word_length': 4.923969072164948, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '5679948', 'n_tokens_mistral': 1183, 'n_tokens_neox': 1186, 'n_words': 303}