<commit_before>'use strict';

var fs = require('fs'),
    express = require('express'),
    http = require('http');

var app = express();

// set static routes
app.use('/', express.static(__dirname + '/src'));
app.use('/vendor', express.static(__dirname + '/bower_components'));
app.use('/template', express.static(__dirname + '/bower_components/ui.bootstrap/template'));

var httpServer = http.createServer(app);

var PORT = process.env.PORT || 80;
httpServer.listen(PORT);

console.log('+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+');
console.log('HTTPS Server listening @ https://%s:%s', PORT);
console.log('+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+');
<commit_msg>Added debug server.js configuration ..<commit_after>'use strict';

var fs = require('fs'),
    express = require('express'),
    http = require('http'),
    https = require('https');

var https_options = {
  key: fs.readFileSync('./hostkey.pem'),
  cert: fs.readFileSync('./hostcert.pem')
};

var PORT = 8443,
    HOST = 'localhost';

var app = express();

// set static routes
app.use('/', express.static(__dirname + '/src'));
app.use('/vendor', express.static(__dirname + '/bower_components'));
app.use('/template', express.static(__dirname + '/bower_components/ui.bootstrap/template'));

//https://localhost:8443/ui.bootstrap/template/accordion/accordion-group.html

var server = https.createServer(https_options, app)
                  .listen(PORT, HOST);


var httpServer = http.createServer(app);
var httpOptions = {
	port: 80,
	host: 'localhost'
};

httpServer.listen(httpOptions);

console.log('+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+');
console.log('HTTPS Server listening @ https://%s:%s', HOST, PORT);
console.log('+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+');
{'fraction_non_alphanumeric': 0.28515185601799775, 'fraction_numerical': 0.006749156355455568, 'mean_word_length': 3.731382978723404, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '6011498', 'n_tokens_mistral': 603, 'n_tokens_neox': 540, 'n_words': 105}