<commit_before>/*
var static = require('node-static');
var http = require('http');
//var file = new(static.Server)();
var file = new static.Server('.');
var app = http.createServer(function (req,res){
	file.serve(req,res);
}).listen(process.env.PORT|| 2016, function(){console.log("webrtc 1.0 listen 2016")});
*/
var WebSocketServer = require('ws').Server;

var wss = new WebSocketServer({port: 2016},function(){console.log("webrtc 1.0 listen 2016")});

wss.broadcast = function(data) {
    for(var i in this.clients) {
        this.clients[i].send(data);
    }
};

wss.on('connection', function(ws) {
    ws.on('message', function(message) {
        console.log('received: %s', message);
        wss.broadcast(message);
    });
});<commit_msg>initial commit, server node changed<commit_after>
var static = require('node-static');
var http = require('http');
//var file = new(static.Server)();
var file = new static.Server('.');
var app = http.createServer(function (req,res){
	file.serve(req,res);
}).listen(process.env.PORT|| 2016, function(){console.log("webrtc 1.0 listen 2016")});
/*
var WebSocketServer = require('ws').Server;

var wss = new WebSocketServer({port: 2016},function(){console.log("webrtc 1.0 listen 2016")});

wss.broadcast = function(data) {
    for(var i in this.clients) {
        this.clients[i].send(data);
    }
};

wss.on('connection', function(ws) {
    ws.on('message', function(message) {
        console.log('received: %s', message);
        wss.broadcast(message);
    });
});
*/
{'fraction_non_alphanumeric': 0.19788219722038386, 'fraction_numerical': 0.026472534745201854, 'mean_word_length': 4.4, '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': '3451134', 'n_tokens_mistral': 539, 'n_tokens_neox': 500, 'n_words': 106}