<commit_before>console.log('Welcome to Moustacheminer Server Services');

//	const config = require('config');
//	const express = require('express');
const path = require('path');
const i18n = require('i18n');
require('./discord');

i18n.configure({
	directory: path.join(__dirname, '..', 'locales'),
	cookie: 'lang',
	defaultLocale: 'en-gb',
	autoReload: true,
	updateFiles: false
});
//
//	const app = express();
//
//	app.enable('trust proxy')
//		.set('views', path.join(__dirname, 'dynamic'))
//		.set('view engine', 'pug')
//		.get('/', (req, res) => {
//			res.render('index');
//		})
//		.use(express.static(path.join(__dirname, 'static')))
//		.use('*', (req, res) => res.status(404).render('error'));
//
//	console.log('Listening on', config.get('webserver').port);
//	app.listen(config.get('webserver').port);

process.on('unhandledRejection', (reason) => {
	console.dir(reason);
});<commit_msg>ECONNRESET is not gud, but we catch<commit_after>console.log('Welcome to Moustacheminer Server Services');

//	const config = require('config');
//	const express = require('express');
const path = require('path');
const i18n = require('i18n');
require('./discord');

i18n.configure({
	directory: path.join(__dirname, '..', 'locales'),
	cookie: 'lang',
	defaultLocale: 'en-gb',
	autoReload: true,
	updateFiles: false
});
//
//	const app = express();
//
//	app.enable('trust proxy')
//		.set('views', path.join(__dirname, 'dynamic'))
//		.set('view engine', 'pug')
//		.get('/', (req, res) => {
//			res.render('index');
//		})
//		.use(express.static(path.join(__dirname, 'static')))
//		.use('*', (req, res) => res.status(404).render('error'));
//
//	console.log('Listening on', config.get('webserver').port);
//	app.listen(config.get('webserver').port);

process.on('unhandledRejection', (reason) => {
	console.dir(reason);
});

process.on('uncaughtException', (err) => {
	if (err.code === 'ECONNRESET') {
		console.log('ECONNREST occured, stream broke');
	} else {
		console.log('Moustacheminer Server Services has crashed!'.red);
		console.log(err.stack);
		process.exit(1);
	}
});
{'fraction_non_alphanumeric': 0.23923444976076555, 'fraction_numerical': 0.00909090909090909, 'mean_word_length': 4.473821989528796, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '604637', 'n_tokens_mistral': 770, 'n_tokens_neox': 750, 'n_words': 139}