<commit_before>//
/// Setup the Symple server
var fs = require('fs');
var Symple = require('symple');
var sy = new Symple();
sy.loadConfig(__dirname + '/symple.json'); // see symple.json for options
sy.init();
console.log('Symple server listening on port ' + sy.config.port);


//
/// Setup the demo client web server

var express = require('express'),
  path = require('path'),
  app = express(),
  serverPort = parseInt(sy.config.port)
clientPort = serverPort - 1;

app.set('port', clientPort);
app.set('view engine', 'ejs');
app.set('views', __dirname + '/');
app.use(express.static(__dirname + '/assets'));

<commit_msg>Added comments for Chrome support<commit_after>//
/// Setup the Symple server
var fs = require('fs');
var Symple = require('symple');
var sy = new Symple();
sy.loadConfig(__dirname + '/symple.json'); // see symple.json for options
sy.init();
console.log('Symple server listening on port ' + sy.config.port);


//
/// Setup the demo client web server

var express = require('express'),
  path = require('path'),
  app = express(),
  serverPort = parseInt(sy.config.port)
clientPort = serverPort - 1;

app.set('port', clientPort);
app.set('view engine', 'ejs');
app.set('views', __dirname + '/');
app.use(express.static(__dirname + '/assets'));

//uncomment this for HTTPS support (Chrome)

//var https = require('https');
//var privateKey  = fs.readFileSync('ssl/symple.key', 'utf8'); // there are no local /ssl folder, but you can get it from other samples, or create self signed certs
//var certificate = fs.readFileSync('ssl/symple.crt', 'utf8');
//var credentials = {key: privateKey, cert: certificate};

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

//httpsServer.listen(app.get('port'), function() {
   //console.log('Web server listening on port ' + app.get('port'));
//});

//comment all next lines for HTTPS support (Chrome)
{'fraction_non_alphanumeric': 0.17656500802568217, 'fraction_numerical': 0.002140181915462814, 'mean_word_length': 4.373563218390805, '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': '2266652', 'n_tokens_mistral': 579, 'n_tokens_neox': 576, 'n_words': 176}