<commit_before>'use strict';

var restify = require('restify');
var js2xmlparser = require('js2xmlparser');
var server = restify.createServer({
    formatters: {
        'application/json; q=5': function format(req, res, body) {
            res.setHeader('Content-type', 'application/hal+json');
            res.send(JSON.stringify(body));
        },
        'application/xml; q=0': function formatFoo(req, res, body) {
            res.send(js2xmlparser('document', body));
        }
    }
});

server
    .use(restify.fullResponse())
    .use(restify.bodyParser())
;
server.pre(restify.pre.userAgentConnection());

require('./lib/routes')(server);

server.listen(8002);<commit_msg>Formatters sucks<commit_after>'use strict';

var restify = require('restify');
var js2xmlparser = require('js2xmlparser');
var server = restify.createServer();

server
    .use(restify.fullResponse())
    .use(restify.bodyParser())
;
server.pre(restify.pre.userAgentConnection());

require('./lib/routes')(server);

server.listen(8002);
{'fraction_non_alphanumeric': 0.17092337917485265, 'fraction_numerical': 0.014734774066797643, 'mean_word_length': 4.1206030150753765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '4561971', 'n_tokens_mistral': 327, 'n_tokens_neox': 323, 'n_words': 52}