<commit_before>// Load dependencies
var Emitter = require('component-emitter');

var inherit = require('yiwn-inherit');

// local
var Context = require('./context.js'),
    Route   = require('./route.js');

// Expose
module.exports = Router;


/**
 * Instantiate a new Router
 *
 * @constructor
 * @return {Router}
 * @api public
 */

function Router(){
    // permit use without `new`
    if (!(this instanceof Router))
        return new Router();

    this.initialize();

    return this;
}

Router.extend = inherit.bind(null, Router);

Emitter(Router.prototype);
<commit_msg>expose  and<commit_after>/**
 * Dependencies.
 */

var Emitter = require('component-emitter');

var inherit = require('yiwn-inherit');

// local
var Context = require('./context.js'),
    Route   = require('./route.js');


/**
 * Expose `Router`.
 */

module.exports = Router;

/**
 * Expose modules.
 */

module.exports.Route = Route;
module.exports.Context = Context;


/**
 * Instantiate a new Router
 *
 * @constructor
 * @return {Router}
 * @api public
 */

function Router(){
    // permit use without `new`
    if (!(this instanceof Router))
        return new Router();

    this.initialize();

    return this;
}

Router.extend = inherit.bind(null, Router);

Emitter(Router.prototype);

{'fraction_non_alphanumeric': 0.1640502354788069, 'fraction_numerical': 0.0, 'mean_word_length': 3.1940789473684212, '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': '1144851', 'n_tokens_mistral': 406, 'n_tokens_neox': 391, 'n_words': 101}