<commit_before>var express = require('express');
var bodyParser = require('body-parser');
var app = express();
var server = require('http').Server(app);
var io = require('socket.io')(server);

server.listen(process.env.PORT || 1337);

app.use(bodyParser.json()); 
app.use(bodyParser.urlencoded({ extended: true })); 
app.use(express.static('public'));

var gameList = { sessions: [], unmatched: ["fak1", "fak2"] };

app.get('/', function (req, res) {
    res.sendfile(__dirname + '/index.html');
});

app.get('/reset', function (req, res) {
    gameList = { sessions: [], unmatched: ["fak1", "fak2"] };

    res.status(200).send(gameList);
});<commit_msg>Adding timeouts<commit_after>var express = require('express');
var bodyParser = require('body-parser');
var app = express();
var server = require('http').Server(app);
var io = require('socket.io')(server, { pingTimeout: 60000});

io.set('close timeout', 60);
io.set('heartbeat timeout', 60);
server.listen(process.env.PORT || 1337);

app.use(bodyParser.json()); 
app.use(bodyParser.urlencoded({ extended: true })); 
app.use(express.static('public'));

var gameList = { sessions: [], unmatched: ["fak1", "fak2"] };

app.get('/', function (req, res) {
    res.sendfile(__dirname + '/index.html');
});

app.get('/reset', function (req, res) {
    gameList = { sessions: [], unmatched: ["fak1", "fak2"] };

    res.status(200).send(gameList);
});
{'fraction_non_alphanumeric': 0.22190408017179672, 'fraction_numerical': 0.02219040801717967, 'mean_word_length': 5.32579185520362, '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': '1612066', 'n_tokens_mistral': 489, 'n_tokens_neox': 468, 'n_words': 97}