<commit_before>// Load .env
var config = require('./config');

var path = require('path')
var express = require('express')
var ipfilter = require('express-ipfilter').IpFilter;
var bodyparser = require('body-parser')
var mustacheExpress = require('mustache-express')
var Promise = require("bluebird");
const fs = require("fs");

// local modules
var nginxParser = Promise.promisify(require('./nginx-parser'));
var latestCommit = require('./latest-git-master-commit');



var app = express()

// Register '.html' extension with The Mustache Express
app.engine('html', mustacheExpress());

app.set('views', path.join(__dirname, 'public/templates'))
app.set('view engine', 'mustache');

// ip filter
var ips = ['192.168.3.11/24'];
app.use(ipfilter(ips, {mode: 'allow'}));

// serve static content
app.use('/static', express.static('public'))

// Parse the body
app.use(bodyparser.urlencoded({extended: false}))

var channel = "AuctionZip";

const REPO_DIR = path.resolve(__dirname, "nginx");
var auctionZipConf = path.resolve(REPO_DIR, "prod/conf.d/auctionzip/auctionzip.com.conf");<commit_msg>Added x-forwarded-for<commit_after>// Load .env
var config = require('./config');

var path = require('path')
var express = require('express')
var ipfilter = require('express-ipfilter').IpFilter;
var bodyparser = require('body-parser')
var mustacheExpress = require('mustache-express')
var Promise = require("bluebird");
const fs = require("fs");

// local modules
var nginxParser = Promise.promisify(require('./nginx-parser'));
var latestCommit = require('./latest-git-master-commit');



var app = express()

// Register '.html' extension with The Mustache Express
app.engine('html', mustacheExpress());

app.set('views', path.join(__dirname, 'public/templates'))
app.set('view engine', 'mustache');

// ip filter
var ips = ['192.168.3.11/24'];
app.use(ipfilter(ips, {mode: 'allow', allowedHeaders: ['x-forwarded-for']}));

// serve static content
app.use('/static', express.static('public'))

// Parse the body
app.use(bodyparser.urlencoded({extended: false}))

var channel = "AuctionZip";

const REPO_DIR = path.resolve(__dirname, "nginx");
var auctionZipConf = path.resolve(REPO_DIR, "prod/conf.d/auctionzip/auctionzip.com.conf");
{'fraction_non_alphanumeric': 0.1797752808988764, 'fraction_numerical': 0.009887640449438202, 'mean_word_length': 5.585798816568047, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3530230', 'n_tokens_mistral': 711, 'n_tokens_neox': 687, 'n_words': 166}