<commit_before>var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var fs = require('fs');
var jade = require('jade');
var port = process.env.PORT || 3000;
var url = process.env.MONGOHQ_URL || "mongodb://localhost/whenisbest";


var router = require('./routes');

app.use(express.static(__dirname + '/public'));
app.set('view engine', 'jade');
app.use(bodyParser.json());

//middleware function for router
app.use(function(req,res,next){
    next();
});

app.use('/',router);

// catch 404 
app.use(function(req, res, next) {
    var err = new Error('Not Found');
    err.status = 404;
    console.log(err);
});

app.listen(port);
console.log("Hey! You are running on port " + port);

module.exports = app;<commit_msg>removed 404 catch causing latency issues<commit_after>var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var fs = require('fs');
var jade = require('jade');
var port = process.env.PORT || 3000;
var url = process.env.MONGOHQ_URL || "mongodb://localhost/whenisbest";


var router = require('./routes');

app.use(express.static(__dirname + '/public'));
app.set('view engine', 'jade');
app.use(bodyParser.json());

//middleware function for router
app.use(function(req,res,next){
    next();
});

app.use('/',router);

app.listen(port);
console.log("Hey! You are running on port " + port);

module.exports = app;
{'fraction_non_alphanumeric': 0.19151943462897528, 'fraction_numerical': 0.012014134275618375, 'mean_word_length': 4.924686192468619, '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': '266536', 'n_tokens_mistral': 481, 'n_tokens_neox': 458, 'n_words': 115}