<commit_before>import React from 'react';
import { Router, Route } from 'react-router';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore';

//Import All Non-Auth Routes
import App from './screens/App';
import Dashboard from './screens/Dashboard';
// import About from './components/About';

// Import All New Experiment Routes
import NewExperiment from './screens/NewExperiment';
import Hypothesis from './containers/NewExperiment/Hypothesis';
import MeasureInput from './containers/NewExperiment/MeasureInput';
import MyExps from './components/myexperiments/MyExperiments';
var ExperimentActions = require('./actions/Experiments.js');
var IndependentVariableActions = require('./actions/IndependentVars.js');
var DependentVariableActions = require('./actions/DependentVariables.js');
var SampleActions = require('./actions/Samples.js');
var MeasureActions = require('./actions/Measures.js');
var RequestActions = require('./actions/Requests.js');
var ReminderActions = require('./actions/Reminders.js');
var UserActions = require('./actions/Users.js');
var normalize = require('./utils/normalize.js');

//Import All View Experiments Routes
import ViewExperiment from './components/ViewExperiment';
// import RunExperiment from './components/RunExperiment';
import EditExperiment from './components/EditExperiment';
// import NewUser from './components/NewUser';
// import Documentation from './components/Documentation';

const store = configureStore();
if (window.user && window.exps) {
  store.dispatch(UserActions.setUser(window.user.username, window.user.googleId));

  var normData = normalize({ exps : window.exps });
  ExperimentActions.setExperiments(normData.entities.experiments);
  DependentVariableActions.setDepVars(normData.entities.dependentVars);
  IndependentVariableActions.setIndVars(normData.entities.independentVars);
  MeasureActions.setMeasures(normData.entities.measures);
  RequestActions.setRequests(normData.entities.requests);
  ReminderActions.setReminders(normData.entities.reminders);
}

render((
  <Provider store={store}>
    <Router>
      <Route path='/' component={App}>
        <Route path='/:userid/dashboard' component={Dashboard} />
          {/*<Route path='/:userid/view/:expid' component={ViewExperiment} />*/}
          {/* <Route path='/:userid/run/:expid' component={RunExperiment} /> */}
          {/*<Route path='/:userid/edit/:expid' component={EditExperiment} />*/}
        <Route path='/:userid/newexp' component={NewExperiment} />
        <Route path='/about' component={About} />
        <Route path='/myexps' component={MyExps} />
        <Route path='/viewexp/:expid' component={ViewExperiment} />
        {/* <Route path='/newuser' component={NewUser} />
         <Route path='/documentation' component={Documentation} /> */}
      </Route>
    </Router>
  </Provider>
  ), document.getElementById('root')
);
<commit_msg>Fix requirement filepath<commit_after>import React from 'react';
import { Router, Route } from 'react-router';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore';

//Import All Non-Auth Routes
import App from './screens/App';
import Dashboard from './screens/Dashboard';
// import About from './components/About';

// Import All New Experiment Routes
import NewExperiment from './screens/NewExperiment';
import Hypothesis from './containers/NewExperiment/Hypothesis';
import MeasureInput from './containers/NewExperiment/MeasureInput';
import MyExps from './components/myexperiments/MyExperiments';
var ExperimentActions = require('./actions/Experiments.js');
var IndependentVariableActions = require('./actions/IndependentVars.js');
var DependentVariableActions = require('./actions/DependentVariables.js');
var SampleActions = require('./actions/Samples.js');
var MeasureActions = require('./actions/Measures.js');
var RequestActions = require('./actions/Requests.js');
var ReminderActions = require('./actions/Reminders.js');
var UserActions = require('./actions/Users.js');
var normalize = require('./utils/normalize.js');

//Import All View Experiments Routes
import ViewExperiment from './components/viewexperiment/ViewExperiment';
// import RunExperiment from './components/RunExperiment';
// import EditExperiment from '../components/EditExperiment';
// import NewUser from './components/NewUser';
// import Documentation from './components/Documentation';

const store = configureStore();
if (window.user && window.exps) {
  store.dispatch(UserActions.setUser(window.user.username, window.user.googleId));

  var normData = normalize({ exps : window.exps });
  ExperimentActions.setExperiments(normData.entities.experiments);
  DependentVariableActions.setDepVars(normData.entities.dependentVars);
  IndependentVariableActions.setIndVars(normData.entities.independentVars);
  MeasureActions.setMeasures(normData.entities.measures);
  RequestActions.setRequests(normData.entities.requests);
  ReminderActions.setReminders(normData.entities.reminders);
}

render((
  <Provider store={store}>
    <Router>
      <Route path='/' component={App}>
        <Route path='/:userid/dashboard' component={Dashboard} />
          {/*<Route path='/:userid/view/:expid' component={ViewExperiment} />*/}
          {/* <Route path='/:userid/run/:expid' component={RunExperiment} /> */}
          {/*<Route path='/:userid/edit/:expid' component={EditExperiment} />*/}
        <Route path='/:userid/newexp' component={NewExperiment} />
        <Route path='/about' component={About} />
        <Route path='/myexps' component={MyExps} />
        <Route path='/viewexp/:expid' component={ViewExperiment} />
        {/* <Route path='/newuser' component={NewUser} />
         <Route path='/documentation' component={Documentation} /> */}
      </Route>
    </Router>
  </Provider>
  ), document.getElementById('root')
);

{'fraction_non_alphanumeric': 0.15449343655334905, 'fraction_numerical': 0.0, 'mean_word_length': 4.747582205029014, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '6054137', 'n_tokens_mistral': 1659, 'n_tokens_neox': 1682, 'n_words': 342}