<commit_before>//load the environment variables from the .env file in the same directory
require('dotenv').config();
//modules
var express = require('express');
var bodyParser = require('body-parser');
//server-related initialization
var app = express();
var http = require('http').Server(app);
//custom vars and modules
var controller = require('./app/controller.js');
var logger = require('./lib/logger.js');
var rootLocation = __dirname + '/../client/public';

app.use(bodyParser.json()); //allow json parsing
app.use(bodyParser.urlencoded({extended: true})); //for parsing application/x-www-form-urlencoded
//allow any content from inside /client/public to be brought to the user
//expose everything in public. The main index.html file should exist inside public but not inside html/
app.use(express.static(rootLocation));

//start the server
(function () {
    var server = http.listen(process.env.HTTP_PORT, function () {
        logger.info("Server started");
        logger.debug("Manticore's environment variables:");
        logger.debug("CONSUL_IP: " + process.env.CONSUL_IP);
        logger.debug("POST_CONNECTION_ADDR: " + process.env.POST_CONNECTION_ADDR);
        logger.debug("DOMAIN_NAME: " + process.env.DOMAIN_NAME);
        logger.debug("HTTP_PORT: " + process.env.HTTP_PORT);
        logger.debug("NGINX_OFF: " + process.env.NGINX_OFF);
        logger.debug("NODE_LOGS: " + process.env.NODE_LOGS);
        controller(app);
    });
})();<commit_msg>Show NODE_LOGS variable by default<commit_after>//load the environment variables from the .env file in the same directory
require('dotenv').config();
//modules
var express = require('express');
var bodyParser = require('body-parser');
//server-related initialization
var app = express();
var http = require('http').Server(app);
//custom vars and modules
var controller = require('./app/controller.js');
var logger = require('./lib/logger.js');
var rootLocation = __dirname + '/../client/public';

app.use(bodyParser.json()); //allow json parsing
app.use(bodyParser.urlencoded({extended: true})); //for parsing application/x-www-form-urlencoded
//allow any content from inside /client/public to be brought to the user
//expose everything in public. The main index.html file should exist inside public but not inside html/
app.use(express.static(rootLocation));

//start the server
(function () {
    var server = http.listen(process.env.HTTP_PORT, function () {
        logger.info("Server started");
        logger.info("Environment variable NODE_LOGS=" + process.env.NODE_LOGS);
        logger.debug("Manticore's environment variables:");
        logger.debug("CONSUL_IP: " + process.env.CONSUL_IP);
        logger.debug("POST_CONNECTION_ADDR: " + process.env.POST_CONNECTION_ADDR);
        logger.debug("DOMAIN_NAME: " + process.env.DOMAIN_NAME);
        logger.debug("HTTP_PORT: " + process.env.HTTP_PORT);
        logger.debug("NGINX_OFF: " + process.env.NGINX_OFF);
        
        controller(app);
    });
})();
{'fraction_non_alphanumeric': 0.1459658520254436, 'fraction_numerical': 0.0, 'mean_word_length': 4.055837563451776, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6489837', 'n_tokens_mistral': 861, 'n_tokens_neox': 852, 'n_words': 218}