<commit_before>var config = require('./config')
var app, express, http, io, server, socket;
var bodyParser = require('body-parser');
var path = require("path");

http = require('http');
io = require('socket.io');
express = require('express');

app = express();

// Configure NodeJS Express server
app.use(bodyParser.json())
app.use(express.static(path.join(__dirname, 'public')));

server = http.createServer(app);


// This is the Express server and Port
// Where the webapp will receive requests
server.listen(config.express.port);

app.get('/', function(req, res) {
	return res.sendFile(__dirname + '/Demo.html');
});

// Set the socket to listen in on the Express port.
socket = io.listen(server);

// Connect to the socket connection to wait for requests from the client 
socket.sockets.on('connection', function(client) {
    console.log("A new client has connected");

    client.emit("msg", "Hello there little buddy");
});<commit_msg>updated config key for socket.io<commit_after>var config = require('./config')
var app, express, http, io, server, socket;
var bodyParser = require('body-parser');
var path = require("path");

http = require('http');
io = require('socket.io');
express = require('express');

app = express();

// Configure NodeJS Express server
app.use(bodyParser.json())
app.use(express.static(path.join(__dirname, 'public')));

server = http.createServer(app);


// This is the Express server and Port
// Where the webapp will receive requests
server.listen(config.socketio.port);

app.get('/', function(req, res) {
	return res.sendFile(__dirname + '/Demo.html');
});

// Set the socket to listen in on the Express port.
socket = io.listen(server);

// Connect to the socket connection to wait for requests from the client 
socket.sockets.on('connection', function(client) {
    console.log("A new client has connected");

    client.emit("msg", "Hello there little buddy");
});
{'fraction_non_alphanumeric': 0.1547743966421826, 'fraction_numerical': 0.0, 'mean_word_length': 4.814024390243903, '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': '6279312', 'n_tokens_mistral': 554, 'n_tokens_neox': 547, 'n_words': 182}