<commit_before>/**
 * 
 */

var WebsocketControlQuery=new Class({
		Implements:Events,
		initialize:function(url){

			var me=this;
			me._ws=false;
			
			me._handlers=[];
			me._timers=[];
			
			me._counter=0;

			try{

				//attempt websocket connection...
				if(window.GeoliveAjaxWebsocketServer){

					var ws = new WebSocket(url);
					console.log('started websocket: ws');
					
					ws.onopen=function(){
						me._ws=ws;
						me.fireEvent('onConnect');
					}

					ws.onerror=function(){
						console.log('recieved error! ');			
					}

					ws.onmessage=function(message){
						me._handleMessage(message);
					};
				}

			}catch(e){<commit_msg>oops removed check global var<commit_after>/**
 * 
 */

var WebsocketControlQuery=new Class({
		Implements:Events,
		initialize:function(url){

			var me=this;
			me._ws=false;
			
			me._handlers=[];
			me._timers=[];
			
			me._counter=0;

			try{

		
					var ws = new WebSocket(url);
					console.log('started websocket: ws');
					
					ws.onopen=function(){
						me._ws=ws;
						me.fireEvent('onConnect');
					}

					ws.onerror=function(){
						console.log('recieved error! ');			
					}

					ws.onmessage=function(message){
						me._handleMessage(message);
					};
				
			}catch(e){
{'fraction_non_alphanumeric': 0.15250198570293885, 'fraction_numerical': 0.0015885623510722795, 'mean_word_length': 2.442622950819672, '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': '3977268', 'n_tokens_mistral': 622, 'n_tokens_neox': 424, 'n_words': 65}