<commit_before>var fs = require('fs');
var http = require('http');
var https = require('https');
var keyfile = process.env.KEY_FILE;
var crtfile = process.env.CRT_FILE;

var privateKey = fs.readFileSync(keyfile, 'utf8');
var certificate = fs.readFileSync(crtfile, 'utf8');

var credentials = {key: privateKey, cert: certificate};

var express = require('express');
var app = express();

var port = 80;
var sllport = 443;

app.use('/assets', express.static(__dirname + '/public'));

app.get('/', function(req, res) {
	res.send('Moi EMMI!!!');
});

var httpServer = http.createServer(app);
var httpsServer = https.createServer(credentials, app);

httpServer.listen(port);
httpsServer.listen(443);
<commit_msg>Add condition for production environment.<commit_after>var fs = require('fs');
var http = require('http');
var https = require('https');

if(process.env.ENVIRONMENT === 'production') {
	var keyfile = process.env.KEY_FILE;
	var crtfile = process.env.CRT_FILE;

	var privateKey = fs.readFileSync(keyfile, 'utf8');
	var certificate = fs.readFileSync(crtfile, 'utf8');

	var credentials = {key: privateKey, cert: certificate};

};

var express = require('express');
var app = express();

var port = 80;
var sllport = 443;

app.use('/assets', express.static(__dirname + '/public'));

app.get('/', function(req, res) {
	res.send('Moi EMMI!!!');
});

var httpServer = http.createServer(app);
httpServer.listen(port);

if(process.env.ENVIRONMENT === 'production') {
	var httpsServer = https.createServer(credentials, app);
	httpsServer.listen(443);
};

{'fraction_non_alphanumeric': 0.17343649258542876, 'fraction_numerical': 0.012894906511927788, 'mean_word_length': 5.7186147186147185, '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': '6897089', 'n_tokens_mistral': 530, 'n_tokens_neox': 509, 'n_words': 124}