<commit_before>var express = require('express');
var _ = require('lodash');
var bodyParser = require('body-parser');
var morgan = require('morgan');

var config = require('./config');
var twilio = require('./twilio');
var middlewares = require('./middlewares');
var routes = require('./routes');

var app = express();

app.use(morgan('combined'));
app.use(bodyParser.json())

app.get('/', function(req, res) {
	res.send('hello world');
});

routes(app);

app.use(function(req, res, next) {
	var e = new Error("Not Found");
	e.status = 404;
	next(e);
})

app.use(function(error, req, res, next) {
	console.log("Error:", error.stack || error.message || error);
	res.status(error.status || 500).send({<commit_msg>Parse urlencoded body<commit_after>var express = require('express');
var _ = require('lodash');
var bodyParser = require('body-parser');
var morgan = require('morgan');

var config = require('./config');
var twilio = require('./twilio');
var middlewares = require('./middlewares');
var routes = require('./routes');

var app = express();

app.use(morgan('combined'));
app.use(bodyParser.urlencoded());
app.use(bodyParser.json())

app.get('/', function(req, res) {
	res.send('hello world');
});

routes(app);

app.use(function(req, res, next) {
	var e = new Error("Not Found");
	e.status = 404;
	next(e);
})

app.use(function(error, req, res, next) {
	console.log("Error:", error.stack || error.message || error);
	res.status(error.status || 500).send({
{'fraction_non_alphanumeric': 0.21272229822161423, 'fraction_numerical': 0.008207934336525308, 'mean_word_length': 5.416666666666667, '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': '5153053', 'n_tokens_mistral': 499, 'n_tokens_neox': 488, 'n_words': 112}