<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import { Meteor } from 'meteor/meteor';
import { createContainer } from 'meteor/react-meteor-data';
import { Roles } from 'meteor/alanning:roles';
import Grid from 'react-bootstrap/lib/Grid';

import GlobalNavigation from '/imports/ui/components/globalNavigation';
import PublicRoute from '/imports/ui/components/publicRoute';
import PrivateRoute from '/imports/ui/components/privateRoute';
import NotFound from '/imports/ui/components/notFound';

import Index from '/imports/modules/app/components/index';
import Login from '/imports/modules/app/components/login';
import RecoverPassword from '/imports/modules/app/components/recoverPassword';
import ResetPassword from '/imports/modules/app/components/resetPassword';
import Signup from '/imports/modules/app/components/signup';

import Documents from '/imports/modules/documents/components/documents';
import NewDocument from '/imports/modules/documents/components/newDocument';
import ViewDocument from '/imports/modules/documents/components/viewDocument';
import EditDocument from '/imports/modules/documents/components/editDocument';

const App = props => (
  <BrowserRouter>
    {!props.loading ?
      <div className="App">
        <GlobalNavigation {...props} />
        <Grid>
          <Switch>
            <Route exact path="/" component={Index} />
            <PrivateRoute path="/documents/new" component={NewDocument} {...props} />
            <PrivateRoute path="/documents/:_id/edit" component={EditDocument} {...props} />
            <PrivateRoute path="/documents/:_id" component={ViewDocument} {...props} />
            <PrivateRoute path="/documents" component={Documents} {...props} />
            <PublicRoute path="/login" component={Login} {...props} />
            <PublicRoute path="/recover-password" component={RecoverPassword} {...props} />
            <PublicRoute path="/reset-password/:token" component={ResetPassword} {...props} />
            <PublicRoute path="/signup" component={Signup} {...props} />
            <Route component={NotFound} />
          </Switch>
        </Grid>
      </div> : ''}<commit_msg>Update UI, move index path to PrivateRoute<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import { Meteor } from 'meteor/meteor';
import { createContainer } from 'meteor/react-meteor-data';
import { Roles } from 'meteor/alanning:roles';
import Grid from 'react-bootstrap/lib/Grid';

import GlobalNavigation from '/imports/ui/components/globalNavigation';
import PublicRoute from '/imports/ui/components/publicRoute';
import PrivateRoute from '/imports/ui/components/privateRoute';
import NotFound from '/imports/ui/components/notFound';

import Index from '/imports/modules/app/components/index';
import Login from '/imports/modules/app/components/login';
import RecoverPassword from '/imports/modules/app/components/recoverPassword';
import ResetPassword from '/imports/modules/app/components/resetPassword';
import Signup from '/imports/modules/app/components/signup';

import Documents from '/imports/modules/documents/components/documents';
import NewDocument from '/imports/modules/documents/components/newDocument';
import ViewDocument from '/imports/modules/documents/components/viewDocument';
import EditDocument from '/imports/modules/documents/components/editDocument';

const App = props => (
  <BrowserRouter>
    {!props.loading ?
      <div className="App">
        <GlobalNavigation {...props} />
        <Grid>
          <Switch>
            <PrivateRoute exact path="/" component={Index} {...props} />
            <PrivateRoute path="/documents/new" component={NewDocument} {...props} />
            <PrivateRoute path="/documents/:_id/edit" component={EditDocument} {...props} />
            <PrivateRoute path="/documents/:_id" component={ViewDocument} {...props} />
            <PrivateRoute path="/documents" component={Documents} {...props} />
            <PublicRoute path="/login" component={Login} {...props} />
            <PublicRoute path="/recover-password" component={RecoverPassword} {...props} />
            <PublicRoute path="/reset-password/:token" component={ResetPassword} {...props} />
            <PublicRoute path="/signup" component={Signup} {...props} />
            <Route component={NotFound} />
          </Switch>
        </Grid>
      </div> : ''}
{'fraction_non_alphanumeric': 0.14793552660631487, 'fraction_numerical': 0.0, 'mean_word_length': 3.7236704900938475, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 41, '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': '327978', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1191, 'n_words': 275}