<commit_before>global.appRoot = __dirname;
var sites = global.appRoot + '/sites/';
var express = require('express');
var compression = require('compression');
var settings = require('./src/settings');
var cvh = require('./src/server/createVirtualHost.js');
var vhost = require('vhost');
var main = express();

main.use(compression());
settings.hosts.forEach(function(host) {
    console.log('Attempting to create Virtual Host for url: %s using middleware: %s.', host.url, host.middleware);
<commit_msg>Adding middleware to log requests.wq<commit_after>global.appRoot = __dirname;
var sites = global.appRoot + '/sites/';
var express = require('express');
var compression = require('compression');
var settings = require('./src/settings');
var cvh = require('./src/server/createVirtualHost.js');
var vhost = require('vhost');
var main = express();

main.use(compression());
main.use(function(req, res, next) {
    console.log('********** request received **********');
    console.log('req.method: ' + req.method);
    console.log('req.hostname: ' + req.hostname);
    console.log('req.path' + req.path);
    console.log('**************************************');
    next();
});
settings.hosts.forEach(function(host) {
    console.log('Attempting to create Virtual Host for url: %s using middleware: %s.', host.url, host.middleware);

{'fraction_non_alphanumeric': 0.20930232558139536, 'fraction_numerical': 0.0, 'mean_word_length': 5.352380952380952, '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': '5114245', 'n_tokens_mistral': 394, 'n_tokens_neox': 388, 'n_words': 96}