<commit_before>var app = require('express')()
  , server = require('http').createServer(app)
  , io = require('socket.io').listen(server)
  , port = parseInt(process.env.PORT) || 3000; // we need to use parseInt because all environment variables are strings ~ Gilles

server.listen(port);

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

io.sockets.on('connection', function (socket) {
  socket.emit('news', { hello: 'world' });
  socket.on('my other event', function (data) {
    console.log(data);
  });
});<commit_msg>updated server<commit_after>var app = require('express')()
  , server = require('http').createServer(app)
  , io = require('socket.io').listen(server)
  , port = parseInt(process.env.PORT) || 3000; // we need to use parseInt because all environment variables are strings ~ Gilles

server.listen(port);

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

io.sockets.on('connection', function (socket) {
  socket.emit('greeting', { hello: 'world' });
  socket.on('my other event', function (data) {
    console.log(data);
  });
});
{'fraction_non_alphanumeric': 0.18979409131602507, 'fraction_numerical': 0.007162041181736795, 'mean_word_length': 4.646464646464646, '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': '698247', 'n_tokens_mistral': 359, 'n_tokens_neox': 355, 'n_words': 83}