<commit_before>'use strict';

import './css/site.scss';

import React from 'react';
import Router from 'react-router';
import { Route, RouteHandler } from 'react-router';

import Nav from './components/Nav';
import Home from './pages/Home';
import Book from './pages/Book';
import Diary from './pages/Diary';
import Gallery from './pages/Gallery';
import Prices from './pages/Prices';

let App = React.createClass({
  render() {
    return (
      <div>
      <Nav />
      <div className="content-wrapper">
        <RouteHandler/>
      </div>
      </div>
    );
  }
});

let routes = (
  <Route name="app" path="/" handler={App}>
      <Route name="home" path="/home" handler={Home} />
      <Route name="book" path="/book" handler={Book} />
      <Route name="diary" path="/diary" handler={Diary} />
      <Route name="gallery" path="/gallery" handler={Gallery} />
      <Route name="prices" path="/prices" handler={Prices} />
  </Route>
);

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

module.hot.accept();<commit_msg>default and not found routing<commit_after>'use strict';

import './css/site.scss';

import React from 'react';
import Router from 'react-router';
import { Route, RouteHandler } from 'react-router';

import Nav from './components/Nav';
import Home from './pages/Home';
import Book from './pages/Book';
import Diary from './pages/Diary';
import Gallery from './pages/Gallery';
import Prices from './pages/Prices';

let App = React.createClass({
  render() {
    return (
      <div>
        <Nav />
        <div className="content-wrapper">
          <RouteHandler/>
        </div>
      </div>
    );
  }
});

let DefaultRoute = Router.DefaultRoute,
    NotFoundRoute = Router.NotFoundRoute;
let routes = (
  <Route name="app" path="/" handler={App}>
      <Route name="home" path="/home" handler={Home} />
      <Route name="book" path="/book" handler={Book} />
      <Route name="diary" path="/diary" handler={Diary} />
      <Route name="gallery" path="/gallery" handler={Gallery} />
      <Route name="prices" path="/prices" handler={Prices} />
      <DefaultRoute handler={Home} />
      <NotFoundRoute handler={Home} />
  </Route>
);

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

module.hot.accept();
{'fraction_non_alphanumeric': 0.18401727861771058, 'fraction_numerical': 0.0, 'mean_word_length': 3.3208955223880596, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '5958037', 'n_tokens_mistral': 721, 'n_tokens_neox': 716, 'n_words': 184}