<commit_before>
//Constructor
function NomadsMobileClient(initCallback) {
	//Public member variables
	
	this.user = {};
	this.socket = io.connect();
	this.initCallback = initCallback;

	//Socket Listeners
	this.socket.on('connect', function(data){});
	this.socket.on('user_confirmed', function(data){console.log("User Confirmed "+data);});
  
  this.socket.on("disconnect", function() {
  	//https://github.com/LearnBoost/socket.io-client/issues/251
  	console.log("reconnecting");
    socket.socket.reconnect();
  });

  //add to global thought object when any user sends a message.
  // only use this function for Desktops. NO PHONES. Too much info and too slow.
  this.socket.on('client_update', function(data){
		console.log("data received ", data);
		if(data.type == 'poemMessage'){
			
			var xLoc = 300 - (8*(data.messageText.length/2));
    	allClientThoughts.push({
	    	"thought":data.messageText, 
		    "x":xLoc,
		    "y":270,
		    "life":255,
		    "size":16,
		    "alpha":1.0
		  });
  	}
  });
<commit_msg>message positioning<commit_after>
//Constructor
function NomadsMobileClient(initCallback) {
	//Public member variables
	
	this.user = {};
	this.socket = io.connect();
	this.initCallback = initCallback;

	//Socket Listeners
	this.socket.on('connect', function(data){});
	this.socket.on('user_confirmed', function(data){console.log("User Confirmed "+data);});
  
  this.socket.on("disconnect", function() {
  	//https://github.com/LearnBoost/socket.io-client/issues/251
  	console.log("reconnecting");
    socket.socket.reconnect();
  });

  //add to global thought object when any user sends a message.
  // only use this function for Desktops. NO PHONES. Too much info and too slow.
  this.socket.on('client_update', function(data){
		console.log("data received ", data);
		if(data.type == 'poemMessage'){
			
			var xLoc = 300 - (10*(data.messageText.length/2));
    	allClientThoughts.push({
	    	"thought":data.messageText, 
		    "x":xLoc,
		    "y":270,
		    "life":255,
		    "size":16,
		    "alpha":1.0
		  });
  	}
  });

{'fraction_non_alphanumeric': 0.1652892561983471, 'fraction_numerical': 0.01798736023334954, 'mean_word_length': 3.473913043478261, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2990976', 'n_tokens_mistral': 754, 'n_tokens_neox': 675, 'n_words': 137}