<commit_before>/**
 * Main application file
 */

'use strict';

// Set default node environment to production
process.env.NODE_ENV = process.env.NODE_ENV || 'production';

var express = require('express');
var mongoose = require('mongoose');
var config = require('./config/environment');

// Connect to database
mongoose.connect(config.mongo.uri, config.mongo.options);

// Populate DB with sample data
if(config.seedDB) { require('./config/seed'); }

// Setup server
var app = express();
var server = require('http').createServer(app);
var socketio = require('socket.io')(server, {<commit_msg>printing config at init<commit_after>/**
 * Main application file
 */

'use strict';

// Set default node environment to production
process.env.NODE_ENV = process.env.NODE_ENV || 'production';

var express = require('express');
var mongoose = require('mongoose');
var config = require('./config/environment');

console.log('****** CONFIG *****');
console.log(config);
console.log('****** END CONFIG *****');

// Connect to database
mongoose.connect(config.mongo.uri, config.mongo.options);

// Populate DB with sample data
if(config.seedDB) { require('./config/seed'); }

// Setup server
var app = express();
var server = require('http').createServer(app);
var socketio = require('socket.io')(server, {
{'fraction_non_alphanumeric': 0.17592592592592593, 'fraction_numerical': 0.0, 'mean_word_length': 5.0607476635514015, 'pattern_counts': {'":': 0, '<': 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': '5123447', 'n_tokens_mistral': 376, 'n_tokens_neox': 379, 'n_words': 103}