<commit_before>import React from 'react';
import {Route, IndexRoute} from 'react-router';
import App from './containers/App';
import PullsPage from './containers/PullsPage';
import LoginPage from './containers/LoginPage';

import settings from './utils/settings';
import github from './utils/github';

function checkAuth(nextState, replace) {
	var token = settings.val('token');

	if (token) {
		github.authenticate(
			{
				token: token,
				type: 'token',
				username: settings.val('username')
			}
		);
	}
	else {
		replace('/login');
	}
}

export default (
  <Route path="/" component={App}>
    <IndexRoute component={PullsPage} />
    <Route path="config" component={PullsPage} onEnter={checkAuth} /><commit_msg>Inadvertently removed the auth check<commit_after>import React from 'react';
import {Route, IndexRoute} from 'react-router';
import App from './containers/App';
import PullsPage from './containers/PullsPage';
import LoginPage from './containers/LoginPage';

import settings from './utils/settings';
import github from './utils/github';

function checkAuth(nextState, replace) {
	var token = settings.val('token');

	if (token) {
		github.authenticate(
			{
				token: token,
				type: 'token',
				username: settings.val('username')
			}
		);
	}
	else {
		replace('/login');
	}
}

export default (
  <Route path="/" component={App}>
    <IndexRoute component={PullsPage} onEnter={checkAuth} />
    <Route path="config" component={PullsPage} onEnter={checkAuth} />
{'fraction_non_alphanumeric': 0.15441672285906946, 'fraction_numerical': 0.0, 'mean_word_length': 4.3768115942028984, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7168070', 'n_tokens_mistral': 496, 'n_tokens_neox': 450, 'n_words': 119}