<commit_before>var React = require('react');

console.log(React);<commit_msg>Adds basic pages with routing from react-router<commit_after>var React = require('react'),
 Router = require('react-router'),
 Route = Router.Route,
 NotFoundRoute = Router.NotFoundRoute,
 DefaultRoute = Router.DefaultRoute,
 Link = Router.Link,
 RouteHandler = Router.RouteHandler;

var App = React.createClass({
  render: function () {
    return (
      <div>
        <header>
          <ul>
            <li><Link to="app">Home</Link></li>
          </ul>
        </header>

        {/* this is the important part */}
        <RouteHandler/>
      </div>
    );
  }
});

var TileMap = React.createClass({
  mixins: [Router.State],
  render: function () {
    return (
      <div>
        <h1>Tile map</h1>
        <div>{this.getParams().uuid}</div>
      </div>
    );
  }
});

var Home = React.createClass({
  render: function () {
    return (
      <div>Home</div>
    );
  }
});

var routes = (
  <Route name="app" path="/" handler={App}>
    <Route name="uuid" path="uuid/:uuid" handler={TileMap}/>
    <DefaultRoute handler={Home}/>
  </Route>
);

Router.run(routes, function (Handler) {
  React.render(<Handler/>, document.body);
});
{'fraction_non_alphanumeric': 0.1762295081967213, 'fraction_numerical': 0.001639344262295082, 'mean_word_length': 2.722560975609756, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '1809491', 'n_tokens_mistral': 401, 'n_tokens_neox': 401, 'n_words': 82}