<commit_before>var React = require('react');
var Router = require('react-router');
var DefaultRoute = Router.DefaultRoute;
var Route = Router.Route;
var App = require('./AppComponent.jsx');
var ListComponent = require('./ListComponent.jsx');
var BrowseComponent = require('./BrowseComponent.jsx');
var FolderComponent = require('./FolderComponent.jsx');
var lastModifiedComponent = require('./lastModifiedComponent.jsx');
var NProgress = require('nprogress');

var defaultRoute = React.createClass({
    render: function() {
        return (<h1>404</h1>);
    }
});

NProgress.start();

/**
 * Routes
 */
var routes = (
  <Route name="app" path="/" handler={App}>
    <Route name="list" handler={ListComponent} />
    <Route name="browse" handler={BrowseComponent} />
    <Route name="folder" handler={FolderComponent} />
    <Route name="lastmodified" handler={lastModifiedComponent} />
    <DefaultRoute handler={ListComponent} />
  </Route>
);

Router.run(routes, function (Handler) {
  React.render(<Handler/>, document.body);
});<commit_msg>remove useless code<commit_after>var React = require('react');
var Router = require('react-router');
var DefaultRoute = Router.DefaultRoute;
var Route = Router.Route;
var App = require('./AppComponent.jsx');
var ListComponent = require('./ListComponent.jsx');
var BrowseComponent = require('./BrowseComponent.jsx');
var FolderComponent = require('./FolderComponent.jsx');
var lastModifiedComponent = require('./lastModifiedComponent.jsx');
var NProgress = require('nprogress');

NProgress.start();

/**
 * Routes
 */
var routes = (
  <Route name="app" path="/" handler={App}>
    <Route name="list" handler={ListComponent} />
    <Route name="browse" handler={BrowseComponent} />
    <Route name="folder" handler={FolderComponent} />
    <Route name="lastmodified" handler={lastModifiedComponent} />
    <DefaultRoute handler={ListComponent} />
  </Route>
);

Router.run(routes, function (Handler) {
  React.render(<Handler/>, document.body);
});
{'fraction_non_alphanumeric': 0.17269076305220885, 'fraction_numerical': 0.0025100401606425703, 'mean_word_length': 5.247648902821316, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '4300487', 'n_tokens_mistral': 584, 'n_tokens_neox': 580, 'n_words': 125}