<commit_before>var express = require("express")
var app = express()
var http = require("http").Server(app)

var cookieParser = require("cookie-parser")
var session = require("express-session")
var morgan = require("morgan")
var mongoose = require("mongoose")
var bodyParser = require("body-parser")

var configDB = require("./config/database.js")

mongoose.connect(configDB.url)

app.use(morgan("dev"))
app.use(cookieParser())

app.use(bodyParser.urlencoded({extended: false}))

app.use(session({
            secret: "anystringoftext",
            saveUninitialized: true,
            resave: true
        }))

app.set("view engine", "jade")

require("./app/routes.js")(app)

app.use(express.static(__dirname + "/public"));

app.get("*", function(req, res) {
    res.render("react");
});

var port = Number(process.env.PORT || 3000)

var server = http.listen(port, function() {
    console.log('App listening on :' + port);
});

module.exports = server
<commit_msg>added gzip compression<commit_after>var express = require("express")
var app = express()
var http = require("http").Server(app)
var compress = require('compression')

var cookieParser = require("cookie-parser")
var session = require("express-session")
var morgan = require("morgan")
var mongoose = require("mongoose")
var bodyParser = require("body-parser")

var configDB = require("./config/database.js")

mongoose.connect(configDB.url)

app.use(morgan("dev"))
app.use(compress())
app.use(cookieParser())

app.use(bodyParser.urlencoded({extended: false}))

app.use(session({
            secret: "anystringoftext",
            saveUninitialized: true,
            resave: true
        }))

app.set("view engine", "jade")

require("./app/routes.js")(app)

app.use(express.static(__dirname + "/public"));

app.get("*", function(req, res) {
    res.render("react");
});

var port = Number(process.env.PORT || 3000)

var server = http.listen(port, function() {
    console.log('App listening on :' + port);
});

module.exports = server

{'fraction_non_alphanumeric': 0.17526289434151227, 'fraction_numerical': 0.00400600901352028, 'mean_word_length': 4.444141689373297, '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': '553082', 'n_tokens_mistral': 640, 'n_tokens_neox': 635, 'n_words': 132}