<commit_before>const React = require('react');
import {mount} from './app/lib/tools';

// For mounting App component into <section id="app"></section> use:
//
// import App from './app/components/App';
// mount(App, 'app');
//
// else

import App from './app/components/App';
import Home from './app/components/Home';
import About from './app/components/About';

const Router = require('react-router');
const Route = Router.Route;
const DefaultRoute = Router.DefaultRoute;

const routes = (
    <Route name="app" path="/" handler={App}>
        <Route name="home" handler={Home}/>
        <Route name="about" handler={About}/>
        <DefaultRoute handler={Home}/>
    </Route>
);

Router.run(routes, function (Handler) {
    React.render(<Handler/>, document.getElementById('app'));
});

// or HTML5 pushstate history:
//Router.run(routes, Router.HistoryLocation, function (Handler) {
//    React.render(<Handler/>, document.getElementById('app'));
//});<commit_msg>Hipster-imports<commit_after>import React = require('react');
import Router, {Route, DefaultRoute} = require('react-router');
import {mount} from './app/lib/tools';

// For mounting App component into <section id="app"></section> use:
//
// import App from './app/components/App';
// mount(App, 'app');
//
// else

import App from './app/components/App';
import Home from './app/components/Home';
import About from './app/components/About';

const routes = (
    <Route name="app" path="/" handler={App}>
        <Route name="home" handler={Home}/>
        <Route name="about" handler={About}/>
        <DefaultRoute handler={Home}/>
    </Route>
);

Router.run(routes, function (Handler) {
    React.render(<Handler/>, document.getElementById('app'));
});

// or HTML5 pushstate history:
//Router.run(routes, Router.HistoryLocation, function (Handler) {
//    React.render(<Handler/>, document.getElementById('app'));
//});
{'fraction_non_alphanumeric': 0.19397463002114165, 'fraction_numerical': 0.0010570824524312897, 'mean_word_length': 3.968503937007874, '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': '6045260', 'n_tokens_mistral': 562, 'n_tokens_neox': 563, 'n_words': 142}