<commit_before>var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);

// Forwarding chat message
socket.on('chat-message', (message) => {
  console.log(message);
  io.emit('chat-message', message);
});

http.listen(process.env.PORT || 8081, () => {
  console.log('Starting websocket server on 8081');
});

<commit_msg>Wrap chat-message channel into connection channel<commit_after>var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);

// Forwarding chat message
io.on('connection', (socket) => {
  socket.on('chat-message', (message) => {
    socket.emit('chat-message', message);
  });
});

http.listen(process.env.PORT || 8081, () => {
  console.log('Starting websocket server on 8081');
});


{'fraction_non_alphanumeric': 0.19953051643192488, 'fraction_numerical': 0.018779342723004695, 'mean_word_length': 5.136690647482014, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '3920588', 'n_tokens_mistral': 282, 'n_tokens_neox': 264, 'n_words': 60}