<commit_before>var express = require('express')
    , app=express()
    , http=require('http')
    , server = http.createServer(app)
    , io = require('socket.io').listen(server)
    , projector = require('projector.js');

server.listen(8080);

app.use(express.static(__dirname + "/public"));

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

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

io.sockets.on('connection', function (client) {
  client.on('device', function(data){
    (data.type).listeners();
});<commit_msg>refactor to basic state<commit_after>var express = require('express')
var app=express();
var http=require('http');
var server = http.createServer(app);
var io = require('socket.io').listen(server);

server.listen(8080);

app.use(express.static(__dirname + "/public"));

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

io.sockets.on('connection', function (client) {
  console.log(client)
});
{'fraction_non_alphanumeric': 0.2054263565891473, 'fraction_numerical': 0.007751937984496124, 'mean_word_length': 5.148809523809524, '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': '7494270', 'n_tokens_mistral': 339, 'n_tokens_neox': 331, 'n_words': 61}