<commit_before>// This is the hapi plugin version to be included in other projects

// Dependencies
var Hapi = require('hapi');
var Hoek = require('hoek');

// Server Config
var config = require('./server/config');

// Hapi Server Plugins
var plugins = require('./server/config/plugins');

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

	//make config available to templates
	plugin.ext('onPostHandler', function (request, reply) {

        // Get the response object
        var response = request.response;

        if (request.response.variety === 'view') { 
	        request.response.source.context = Hoek.applyToDefaults(config, request.response.source.context);
	    }

	    reply();

    });

	plugin.register(plugins, function(err) {
	    
	    if (err) throw err;
	    
	    // Make sure DB is available
	    plugin.dependency('dogwater');
	    
	    plugin.route(require('./server/routes'));
	    
	    plugin.views(config.hapi.options.views);
	    
	    next();
	    
	});
    
};

exports.register.attributes = {
    pkg: require("./package.json")
}<commit_msg>testing heroku deploy / logging<commit_after>// This is the hapi plugin version to be included in other projects

// Dependencies
var Hapi = require('hapi');
var Hoek = require('hoek');

// Server Config
var config = require('./server/config');

// Hapi Server Plugins
var plugins = require('./server/config/plugins');

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

	//make config available to templates
	/*plugin.ext('onPostHandler', function (request, reply) {

        // Get the response object
        var response = request.response;

        if (request.response.variety === 'view') { 
	        request.response.source.context = Hoek.applyToDefaults(config, request.response.source.context);
	    }

	    reply();

    });*/

	plugin.register(plugins, function(err) {
	    
	    if (err) throw err;
	    
	    // Make sure DB is available
	    plugin.dependency('dogwater');
	    
	    plugin.route(require('./server/routes'));
	    
	    plugin.views(config.hapi.options.views);
	    
	    next();
	    
	});
    
};

exports.register.attributes = {
    pkg: require("./package.json")
}
{'fraction_non_alphanumeric': 0.13978001833180567, 'fraction_numerical': 0.0, 'mean_word_length': 2.7768166089965396, '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': '5717893', 'n_tokens_mistral': 662, 'n_tokens_neox': 610, 'n_words': 155}