<commit_before>
/**
 * Module dependencies.
 */

var express       = require('express'),
    expressHogan  = require('express-hogan.js'),
    mongoose      = require('mongoose'),
    nodemailer    = require('nodemailer');


// Connect to the default database
mongoose.connect('mongodb://localhost/all');

var app = module.exports = express.createServer();

// Configuration

app.configure(function(){
  app.set('views', __dirname + '/views');
  app.register('.txt',  expressHogan);
  app.register('.html', expressHogan);
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(app.router);
  app.use(express.static(__dirname + '/public'));
});

app.configure('development', function(){
  app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
  app.use(express.logger({ format: ':method :status :url' }));
});

app.configure('production', function(){
  app.use(express.errorHandler());
});
<commit_msg>Add logging to all requests (needed to be at start of configure, perhaps a template rendering issue?)<commit_after>
/**
 * Module dependencies.
 */

var express       = require('express'),
    expressHogan  = require('express-hogan.js'),
    mongoose      = require('mongoose'),
    nodemailer    = require('nodemailer');


// Connect to the default database
mongoose.connect('mongodb://localhost/all');

var app = module.exports = express.createServer();

// Configuration

app.configure(function(){
  app.use(express.logger('dev'));
  app.set('views', __dirname + '/views');
  app.register('.txt',  expressHogan);
  app.register('.html', expressHogan);
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(app.router);
  app.use(express.static(__dirname + '/public'));
});

app.configure('development', function(){
  app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
});

app.configure('production', function(){
  app.use(express.errorHandler());
});

{'fraction_non_alphanumeric': 0.18163160595177014, 'fraction_numerical': 0.0, 'mean_word_length': 4.6686046511627906, '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': '7420607', 'n_tokens_mistral': 580, 'n_tokens_neox': 580, 'n_words': 114}