<commit_before>var express = require("express");
var secrets = require("./config/secrets");
var swig = require("swig");
var lodash = require("lodash");
var path = require("path");
var bodyParser = require("body-parser");
var expressValidator = require("express-validator");
var session = require("express-session");
var passport = require("passport");
var favicon = require("serve-favicon");
var cors = require("cors");
var corsOptions = {
	origin : "*"
};

var app = express();

//Helpers
var FleetHelper = require("./helpers/fleet_helper.js");

app.engine("html",swig.renderFile);
app.set("views",path.join(__dirname,"views"));
app.set("view engine","html");
app.locals._ = lodash;

//app.use(favicon(path.join(__dirname + " /../public/favicon.ico")));
app.use(bodyParser());
app.use(expressValidator());

app.use(session({
	resave: true,
	saveUninitialized: true,
	cookie: {
		maxAge: 60 * 1000
	},
	secret: secrets.sessionSecret
}));
app.use(passport.initialize());
app.use(passport.session());
app.use(cors(corsOptions));

var routes = require("./routes.js");

require('./routes/fleet')(app, FleetHelper);
routes(app,passport);

module.exports = app;<commit_msg>misspelled fleet route, typing tooooooooooooo fast<commit_after>var express = require("express");
var secrets = require("./config/secrets");
var swig = require("swig");
var lodash = require("lodash");
var path = require("path");
var bodyParser = require("body-parser");
var expressValidator = require("express-validator");
var session = require("express-session");
var passport = require("passport");
var favicon = require("serve-favicon");
var cors = require("cors");
var corsOptions = {
	origin : "*"
};

var app = express();

//Helpers
var FleetHelper = require("./helpers/fleet_helper.js");

app.engine("html",swig.renderFile);
app.set("views",path.join(__dirname,"views"));
app.set("view engine","html");
app.locals._ = lodash;

//app.use(favicon(path.join(__dirname + " /../public/favicon.ico")));
app.use(bodyParser());
app.use(expressValidator());

app.use(session({
	resave: true,
	saveUninitialized: true,
	cookie: {
		maxAge: 60 * 1000
	},
	secret: secrets.sessionSecret
}));
app.use(passport.initialize());
app.use(passport.session());
app.use(cors(corsOptions));

var routes = require("./routes.js");

require('./routes/fleet.js')(app, FleetHelper);
routes(app,passport);

module.exports = app;
{'fraction_non_alphanumeric': 0.1971356360572873, 'fraction_numerical': 0.005054759898904802, 'mean_word_length': 6.132132132132132, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '4353336', 'n_tokens_mistral': 801, 'n_tokens_neox': 782, 'n_words': 154}