<commit_before>var express = require("express"),
    app = express(),
    TranslateMe = require("../lib/TranslateMe"),
    translateMe = new TranslateMe(process.env.MONGO_URL, "en", ["de", "fr"]);


app.use(express.bodyParser());
app.use(express.methodOverride());

// It is imported to place the reqisterRoutes between after all use statements
translateMe.registerRoutes(app, true);

app.get("/", function(req, res){
    var body = "Hello World";
    res.setHeader("Content-Type", "text/plain");
    res.setHeader("Content-Length", body.length);
    res.end(body);
});

app.listen(3000);
console.log("Listening on port 3000");
<commit_msg>Improved statement where to register translate.me routes<commit_after>var express = require("express"),
    app = express(),
    TranslateMe = require("../lib/TranslateMe"),
    translateMe = new TranslateMe(process.env.MONGO_URL, "en", ["de", "fr"]);


app.use(express.bodyParser());
app.use(express.methodOverride());

/*
It is imported to place the "reqister routers" after
all use-statements, to prevent any blockage of other middlewares.
*/
translateMe.registerRoutes(app, true);

app.get("/", function(req, res){
    var body = "Hello World";
    res.setHeader("Content-Type", "text/plain");
    res.setHeader("Content-Length", body.length);
    res.end(body);
});

app.listen(3000);
console.log("Listening on port 3000");

{'fraction_non_alphanumeric': 0.16946676406135866, 'fraction_numerical': 0.01168736303871439, 'mean_word_length': 4.780590717299578, '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': '4575014', 'n_tokens_mistral': 446, 'n_tokens_neox': 425, 'n_words': 104}