<commit_before><commit_msg>添加socket服务<commit_after>'use strict'

var app = require('express')();
var io = require('socket.io')(app);

server.listen(80);

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

io.on('connection', function (socket) {
  socket.emit('news', { hello: 'world' });
  socket.on('my other event', function (data) {
    console.log(data);
  });
});
{'fraction_non_alphanumeric': 0.2225, 'fraction_numerical': 0.005, 'mean_word_length': 5.1692307692307695, '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': '1107456', 'n_tokens_mistral': 142, 'n_tokens_neox': 140, 'n_words': 27}