<commit_before>var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var session = require('express-session');
var nodemailer = require('nodemailer');
<<<<<<< HEAD
var jwt = require('jsonwebtoken');
=======
>>>>>>> ca4eae0c3d97069eef9a0c3c3153dc3aac8f3cde

//hbs stuff start
var hbs = require('hbs');
hbs.registerPartials(__dirname + '/views/partials');

//https only
function requireHTTPS(req, res, next) {
    // The 'x-forwarded-proto' check is for Heroku
    if (!req.secure && req.get('x-forwarded-proto') !== 'https' && process.env.NODE_ENV !== "development") {
        return res.redirect('https://' + req.get('host') + req.url);
    }
    next();
}

// Setting up mongoose<commit_msg>changes pulled<commit_after>var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var session = require('express-session');
var nodemailer = require('nodemailer');

//hbs stuff start
var hbs = require('hbs');
hbs.registerPartials(__dirname + '/views/partials');

//https only
function requireHTTPS(req, res, next) {
    // The 'x-forwarded-proto' check is for Heroku
    if (!req.secure && req.get('x-forwarded-proto') !== 'https' && process.env.NODE_ENV !== "development") {
        return res.redirect('https://' + req.get('host') + req.url);
    }
    next();
}

// Setting up mongoose
{'fraction_non_alphanumeric': 0.18672456575682383, 'fraction_numerical': 0.011166253101736972, 'mean_word_length': 4.781362007168458, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, 'https://': 2, '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': '6279049', 'n_tokens_mistral': 525, 'n_tokens_neox': 515, 'n_words': 121}