<commit_before>window.onload = (function() {

	var socket = io.connect('http://localhost:8080');

	socket.on('connect', function() {
		socket.send();
		console.log('Connected!');
		
		
		//player = new Player(50, 50);
	});

	socket.on('draw', function(data) {
		console.log(data);
	});

	socket.on('disconnect', function() {
		console.log('Disconnected!');
	});

});


window.addEventListener('load',init,false);

var canvas=null, ctx=null;



function init(){
    canvas=document.getElementById('juego');

    
    ctx=canvas.getContext('2d');
    <commit_msg>capturando datos enviados<commit_after>window.onload = (function() {

	var socket = io.connect('http://localhost:8080');

	socket.on('connect', function() {
		socket.send();
		console.log('Connected!');
		
		
		//player = new Player(50, 50);
	});

	socket.on('initData', function(data) {
		console.log(data);
		console.log(data.FPS);
	});
	socket.on('draw', function(data) {
		console.log(data);
	});

	socket.on('disconnect', function() {
		console.log('Disconnected!');
	});

});


window.addEventListener('load',init,false);

var canvas=null, ctx=null;



function init(){
    canvas=document.getElementById('juego');

    
    ctx=canvas.getContext('2d');
    
{'fraction_non_alphanumeric': 0.20244897959183675, 'fraction_numerical': 0.014693877551020407, 'mean_word_length': 4.307359307359308, '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': '1258161', 'n_tokens_mistral': 457, 'n_tokens_neox': 407, 'n_words': 60}