<commit_before>var config = require("./config");
var express = require("express");
var bodyParser = require("body-parser");
var session = require("cookie-session");
var path = require("path");
var logger = require("./lib/logger");
var compression = require("compression");
var browserify = require('browserify-middleware');
var util = require("util");
var _ = require("lodash");

var app = express();

app.set("view engine", "jade");
app.set("views", path.join(__dirname, "/views"));
app.locals.pretty = config.prettyHtml;
app.use(compression());
app.use(express.static(path.join(__dirname, "public"), {
    maxAge: config.staticAssetMaxAge
}));
app.use("/vendor", express.static(path.join(__dirname, "bower_components"), {
    maxAge: config.staticAssetMaxAge
}));
app.use("/js/console.js", browserify("./client/console.js"));
app.use("/js/schema.js", browserify("./client/schema.js"));
app.use(bodyParser.urlencoded({
    extended: true
}));
app.use(bodyParser.json());
app.use(session({
    secret: "C18A49CE-58B2-4B1B-82C1-E3883AA624E0"
}));
app.use(function(req, res, next) {
    res.locals.util = util;
    res.locals._ = _;
    res.locals.config = config;
    console.log(res.locals.config);
    return next();
});

var authController = require("./routes/authController");
var consoleController = require("./routes/consoleController");
var adminController = require("./routes/adminController");
var connectionController = require("./routes/connectionController");
var schemaController = require("./routes/schemaController");
var errorController = require("./routes/errorController");

app.get("/login", authController.getLogin);
app.post("/login", authController.postLogin);

app.use(authController.authMiddleware);

app.get("/", connectionController.getConnections);<commit_msg>Don't console.log on every request<commit_after>var config = require("./config");
var express = require("express");
var bodyParser = require("body-parser");
var session = require("cookie-session");
var path = require("path");
var logger = require("./lib/logger");
var compression = require("compression");
var browserify = require('browserify-middleware');
var util = require("util");
var _ = require("lodash");

var app = express();

app.set("view engine", "jade");
app.set("views", path.join(__dirname, "/views"));
app.locals.pretty = config.prettyHtml;
app.use(compression());
app.use(express.static(path.join(__dirname, "public"), {
    maxAge: config.staticAssetMaxAge
}));
app.use("/vendor", express.static(path.join(__dirname, "bower_components"), {
    maxAge: config.staticAssetMaxAge
}));
app.use("/js/console.js", browserify("./client/console.js"));
app.use("/js/schema.js", browserify("./client/schema.js"));
app.use(bodyParser.urlencoded({
    extended: true
}));
app.use(bodyParser.json());
app.use(session({
    secret: "C18A49CE-58B2-4B1B-82C1-E3883AA624E0"
}));
app.use(function(req, res, next) {
    res.locals.util = util;
    res.locals._ = _;
    res.locals.config = config;
    return next();
});

var authController = require("./routes/authController");
var consoleController = require("./routes/consoleController");
var adminController = require("./routes/adminController");
var connectionController = require("./routes/connectionController");
var schemaController = require("./routes/schemaController");
var errorController = require("./routes/errorController");

app.get("/login", authController.getLogin);
app.post("/login", authController.postLogin);

app.use(authController.authMiddleware);

app.get("/", connectionController.getConnections);
{'fraction_non_alphanumeric': 0.18667416362102895, 'fraction_numerical': 0.011245431543435479, 'mean_word_length': 5.9221789883268485, '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': '6209225', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1092, 'n_words': 196}