<commit_before>// Serve Static Files
var express = require('express');
var app = express();
var oneDay = 86400000;
app.use(express.static(__dirname + '/public_files', { maxAge: oneDay}));
app.listen(process.env.PORT || 1313);

// Primus
'use strict';
var Primus = require('primus')
    , http = require('http')
var server = http.createServer(function (request, response) {
    response.writeHead(200, {"Content-Type": "text/html"});
    response.end("Primus!?!?!?");
}), primus = new Primus(server,{});

primus.save(__dirname + '/public_files/js/primus.js');

server.listen(1310);<commit_msg>some very basic primus server side code<commit_after>// Serve Static Files
var express = require('express');
var app = express();
var oneDay = 86400000;
app.use(express.static(__dirname + '/public_files', { maxAge: oneDay}));
app.listen(process.env.PORT || 1313);

// Primus
'use strict';
var Primus = require('primus')
    , http = require('http')
var server = http.createServer(function (request, response) {
    response.writeHead(200, {"Content-Type": "text/html"});
    response.end("Primus!?!?!?");
}), primus = new Primus(server,{});

primus.save(__dirname + '/public_files/js/primus.js');

primus.on('connection', function (spark) {
    console.log(spark.address);
});

primus.on('disconnection', function(spark) {
    console.log("Disconnect: " + spark.address);
});

server.listen(1310);
{'fraction_non_alphanumeric': 0.1900647948164147, 'fraction_numerical': 0.027357811375089993, 'mean_word_length': 5.289592760180995, 'pattern_counts': {'":': 2, '<': 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': '2284028', 'n_tokens_mistral': 489, 'n_tokens_neox': 449, 'n_words': 97}