<commit_before>'use strict'
/* jshint node: true */

/*
logger.
  warn
  error
  debug
*/

var logger = require("./logger/logger");
logger.info("mongoose setup...");
// mongoose setup
require('./config/db');

var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
/*var async = require('async');*/

var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var session = require('express-session');
var flash = require('req-flash');

var pkg = require('./package.json');
var config = require('./config.json');
var siteBuilder = require('./services/siteBuilder');

var app = express();

logger.info("passport setup...");
var passport = require('passport');
require('./config/passport')(app, passport);

logger.info("Overriding 'Express' logger");
app.use(require('morgan')("combined", { "stream": logger.stream }));

// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');

app.use(function(req, res, next) {
    var ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
    logger.info('Connected IP:', ip);
    next();
});

// uncomment after placing your favicon in /public
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
app.use('/bower_components', express.static(path.join(__dirname, '/bower_components')));

logger.info("Initialize Authentication");

app.use(express.static('public'));<commit_msg>small config order change<commit_after>'use strict'
/* jshint node: true */

/*
logger.
  warn
  error
  debug
*/

var logger = require("./logger/logger");
logger.info("mongoose setup...");
// mongoose setup
require('./config/db');

var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
/*var async = require('async');*/

var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var session = require('express-session');
var flash = require('req-flash');

var pkg = require('./package.json');
var config = require('./config.json');
var siteBuilder = require('./services/siteBuilder');

var app = express();

logger.info("passport setup...");
var passport = require('passport');
require('./config/passport')(app, passport);

logger.info("Overriding 'Express' logger");
app.use(require('morgan')("combined", { "stream": logger.stream }));

// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');

app.use(function(req, res, next) {
    var ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;
    logger.info('Connected IP:', ip);
    next();
});

// uncomment after placing your favicon in /public
app.use(express.static('public'));
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')));
app.use('/bower_components', express.static(path.join(__dirname, '/bower_components')));

logger.info("Initialize Authentication");

{'fraction_non_alphanumeric': 0.20123203285420946, 'fraction_numerical': 0.0, 'mean_word_length': 5.354347826086957, 'pattern_counts': {'":': 2, '<': 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': '1585029', 'n_tokens_mistral': 896, 'n_tokens_neox': 891, 'n_words': 206}