<commit_before>var config = require('./config');
var dbc = require('./db/schema');

var express = require('express');
var bodyParser = require('body-parser');
var routes = require('./route/base');

var strategy = require('./auth.js');
var passport = require('passport');

passport.use(strategy);

var app = express();
app.use(bodyParser.urlencoded({
  extended: false
}));
app.use(routes);
app.use(function(err, req, res, next) {
  console.error(err.stack);
  res.sendStatus(500);
});

app.listen(config.webserver.port, function() {
  console.log("Server started at port " + config.webserver.port );
});<commit_msg>Receive json as incoming body type<commit_after>var config = require('./config');
var dbc = require('./db/schema');

var express = require('express');
var bodyParser = require('body-parser');
var routes = require('./route/base');

var strategy = require('./auth.js');
var passport = require('passport');

passport.use(strategy);

var app = express();
app.use(bodyParser.json());
app.use(routes);
app.use(function(err, req, res, next) {
  console.error(err.stack);
  res.sendStatus(500);
});

app.listen(config.webserver.port, function() {
  console.log("Server started at port " + config.webserver.port );
});
{'fraction_non_alphanumeric': 0.1919934640522876, 'fraction_numerical': 0.004901960784313725, 'mean_word_length': 5.347150259067358, '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': '1471842', 'n_tokens_mistral': 390, 'n_tokens_neox': 384, 'n_words': 87}