<commit_before>var Path = require('path');

exports.register = function (plugin, options, next) {

    plugin.route({
        method: 'GET',
        path: '/',
        config: {
            pre: [
                [
                    { method: 'npm.version()', assign: 'version' },
                    { method: 'npm.downloads()', assign: 'downloads' },
                    { method: 'github.issues()', assign: 'issues' },
                    { method: 'github.commits()', assign: 'commits' },
                    { method: 'community()', assign: 'community' }
                ],
                { method: 'github.latestUpdate', assign: 'latestUpdate' }
            ],
            handler: function (request, reply) {

                reply.view('index', request.pre);
            }
        }
    });

    plugin.route({
        method: 'GET',
        path: '/community',
        config: {
            pre: [
                { method: 'community()', assign: 'community' }
            ],
            handler: function (request, reply) {

                reply.view('community', request.pre);
            }
        }
    });

    plugin.route({
        method: 'GET',
        path: '/plugins',
        config: {
            pre: [
                { method: 'plugins()', assign: 'plugins' }<commit_msg>add hapidays<commit_after>var Path = require('path');

exports.register = function (plugin, options, next) {

    plugin.route({
        method: 'GET',
        path: '/',
        config: {
            pre: [
                [
                    { method: 'npm.version()', assign: 'version' },
                    { method: 'npm.downloads()', assign: 'downloads' },
                    { method: 'github.issues()', assign: 'issues' },
                    { method: 'github.commits()', assign: 'commits' },
                    { method: 'community()', assign: 'community' }
                ],
                { method: 'github.latestUpdate', assign: 'latestUpdate' }
            ],
            handler: function (request, reply) {

                reply.view('index', request.pre);
            }
        }
    });

    plugin.route({
        method: 'GET',
        path: '/hapidays',
        config: {
            handler: {
                view: 'hapidays'
            }
        }
    });

    plugin.route({
        method: 'GET',
        path: '/community',
        config: {
            pre: [
                { method: 'community()', assign: 'community' }
            ],
            handler: function (request, reply) {

                reply.view('community', request.pre);
            }
        }
    });

    plugin.route({
        method: 'GET',
        path: '/plugins',
        config: {
            pre: [
                { method: 'plugins()', assign: 'plugins' }
{'fraction_non_alphanumeric': 0.15423423423423424, 'fraction_numerical': 0.0, 'mean_word_length': 1.2810188989317994, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4460137', 'n_tokens_mistral': 766, 'n_tokens_neox': 713, 'n_words': 154}