<commit_before>/** @jsx React.DOM */
'use strict';

var flux  = require('./flux');
var Route = require('react-router').Route;

var SiteLayout       = require('./ui/layouts/site');
var HomePage         = require('./ui/pages/home');
var LoginPage        = require('./ui/pages/login');
var RegistrationPage = require('./ui/pages/register');
var NotFoundPage     = require('./ui/pages/404');

var props = function(name, path, handler, props)
{
    props         = props || {};
    props.flux    = flux;
    props.handler = handler;
    props.path    = path;
    props.name    = name;

    return props;
};

module.exports = Route(
    {handler : SiteLayout, location : 'history', flux : flux},
    Route(props('home', '/', HomePage)),
    Route(props('login', '/login', LoginPage)),
    Route(props('register', '/register', RegistrationPage)),
    Route(props('404', '*', NotFoundPage))
);<commit_msg>Refs #12 - Update routes file.<commit_after>/** @jsx React.DOM */
'use strict';

var flux   = require('./flux');
var Route  = require('react-router').Route;
var Routes = require('react-router').Routes;

var SiteLayout       = require('./ui/layouts/site');
var HomePage         = require('./ui/pages/home');
var LoginPage        = require('./ui/pages/login');
var RegistrationPage = require('./ui/pages/register');
var NotFoundPage     = require('./ui/pages/404');

var props = function(name, path, handler, props)
{
    props         = props || {};
    props.flux    = flux;
    props.handler = handler;
    props.path    = path;
    props.name    = name;

    return props;
};

module.exports = Routes(
    {location : 'history'},
    Route(
        {handler : SiteLayout, flux : flux},
        Route(props('home', '/', HomePage)),
        Route(props('login', '/login', LoginPage)),
        Route(props('register', '/register', RegistrationPage)),
        Route(props('404', '*', NotFoundPage))
    )
);
{'fraction_non_alphanumeric': 0.18559411146161936, 'fraction_numerical': 0.007360672975814932, 'mean_word_length': 2.9978991596638656, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1031680', 'n_tokens_mistral': 583, 'n_tokens_neox': 561, 'n_words': 132}