<commit_before>'use strict';

const express = require('express');
const socketIO = require('socket.io');
const path = require('path');

const PORT = process.env.PORT || 3000;
const INDEX = path.join(__dirname, 'examples/spaaace/index.html');

const server = express();

server.get('/', function (req, res) {
    res.sendFile(INDEX)
});


server.use('/', express.static(path.join(__dirname, 'examples/spaaace')));

var requestHandler = server.listen(PORT, () => console.log(`Listening on ${ PORT }`));

const io = socketIO(requestHandler);


/*
    Game logic
 */

const ServerEngine = require("./examples/spaaace/js/ServerEngine.js");
const serverEngine = new ServerEngine(io);<commit_msg>trying to fix port issues on heroku<commit_after>'use strict';

const express = require('express');
const socketIO = require('socket.io');
const path = require('path');

const INDEX = path.join(__dirname, 'examples/spaaace/index.html');

const server = express();

server.get('/', function (req, res) {
    res.sendFile(INDEX)
});


server.use('/', express.static(path.join(__dirname, 'examples/spaaace')));

var requestHandler = server.listen(process.env.PORT || 3000, function(){
    console.log("Express server listening on port %d in %s mode", this.address().port, app.settings.env);
});

const io = socketIO(requestHandler);


/*
    Game logic
 */

const ServerEngine = require("./examples/spaaace/js/ServerEngine.js");
const serverEngine = new ServerEngine(io);
{'fraction_non_alphanumeric': 0.17158544955387783, 'fraction_numerical': 0.00549073438572409, 'mean_word_length': 5.100418410041841, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6727517', 'n_tokens_mistral': 461, 'n_tokens_neox': 442, 'n_words': 107}