<commit_before>var express = require('express');
var Response = require('express-response');

var app = express();
var fs = require('fs');

var compiler = require('./test-compiler');
var runner = require('./test-runner');

var bodyParser = require('body-parser');
var urlencodedParser = bodyParser.urlencoded({ extended: false })
var parseString = require('xml2js').parseString;
var childProcess = require('child_process');

app.post('/test', urlencodedParser, function (req, res) {
  compiler.createCompilationFile(req.body);
  var result2 = "";
  var output2 = "";

  runner.runTestFile(function(result){
    Response.OK(res)(result);
    fs.unlinkSync("test.js");
  });
})

var server = app.listen(8080, function () {
  console.log("Serving on port 8080");
})
<commit_msg>Fixing require order<commit_after>var express = require('express');
var bodyParser = require('body-parser')

var app = express();

var jsonParser = bodyParser.json({ type: 'application/*' });

var Response = require('express-response');

var compiler = require('./test-compiler');
var runner = require('./test-runner');

app.post('/test', jsonParser, function (req, res) {
  compiler.createCompilationFile(req.body);
  runner.runTestFile(function(result) {
    fs.unlinkSync("test.js");
    Response.OK(res)(result);
  });
})

var server = app.listen(8080, function () {
  console.log("Serving on port 8080");
})

{'fraction_non_alphanumeric': 0.17507204610951008, 'fraction_numerical': 0.013688760806916427, 'mean_word_length': 5.256756756756757, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '2669137', 'n_tokens_mistral': 430, 'n_tokens_neox': 416, 'n_words': 95}