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

/* GET home page. */
app.get('/', function(req, res) {
  res.send('The great eye is open...');
});

io.on('connection', function(socket){
	console.log('Client connected');
	
	io.on('dock', function(data){
		console.log('piBot '+ data.name + 'is online.');
	})

	io.emit('order', {led:'on'});
	
	setTimeout(function(){
		io.emit('order', {led:'off'});
	}, 5000);
});

http.listen(process.env.PORT || 5000, function(){
	console.log('piNET is awake and listening on port %d', http.address().port);
});<commit_msg>docking<commit_after>var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);

/* GET home page. */
app.get('/', function(req, res) {
  res.send('The great eye is open...');
});

io.on('connection', function(socket){
	console.log('Client connected');
	socket.emit('dock', {});

	io.on('docking', function(data){
		console.log('piBot '+ data.name + 'is online.');
	});

	socket.emit('order', {led:'on'});
	
	setTimeout(function(){
		socket.emit('order', {led:'off'});
	}, 5000);
});

http.listen(process.env.PORT || 5000, function(){
	console.log('piNET is awake and listening on port %d', http.address().port);
});
{'fraction_non_alphanumeric': 0.24135280553420446, 'fraction_numerical': 0.012298232129131437, 'mean_word_length': 4.972477064220183, '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': '3147784', 'n_tokens_mistral': 474, 'n_tokens_neox': 440, 'n_words': 97}