<commit_before>"use strict";

var connect = require("connect");

//middlewares
var parseURL = require('./middleware/parseURL.js'),
    setAjaxFlag = require('./middleware/setAjaxFlag.js'),
    serveInitPageShortcut = require('./middleware/serveInitPageShortcut.js');

var middleware = [
        parseURL,
        setAjaxFlag,
        connect.bodyParser(),
        serveInitPageShortcut
    ];

function onRequest() {
    return middleware;
}

module.exports = onRequest();<commit_msg>- removed connect body parser. Parsing only json-parser and multipart parser now.<commit_after>"use strict";

var connect = require("connect");

//middlewares
var parseURL = require('./middleware/parseURL.js'),
    setAjaxFlag = require('./middleware/setAjaxFlag.js'),
    serveInitPageShortcut = require('./middleware/serveInitPageShortcut.js');

var middleware = [
        parseURL,
        setAjaxFlag,
        //Maybe add the add another point?
        connect.json(),
        connect.urlencoded(),
        serveInitPageShortcut
    ];

function onRequest() {
    return middleware;
}

module.exports = onRequest();
{'fraction_non_alphanumeric': 0.12601994560290117, 'fraction_numerical': 0.0, 'mean_word_length': 3.4516129032258065, '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': '1443000', 'n_tokens_mistral': 315, 'n_tokens_neox': 313, 'n_words': 67}