<commit_before>var Xbmc = function() {
	
	var Keyboard = function() {
		var old_length = 0;
		
		function type(e) {
			var str = e.value;
			var new_length = str ? str.length : 0;
			var val = (old_length > new_length) ? 'backspace' : lastChar(str);
			sendKey(val)();
			old_length = new_length;
		}
		
		function lastChar(str) {
			return str ? str[str.length-1] : 'backspace';
		}
		
		return {type : type}
	}();

	function sendKey(key) {
		var code = (key.length === 1) ? getAscii(key) : codes[key];
		
		return function() {
			App.http_client.get("/xbmcCmds/xbmcHttp", {"command":"SendKey("+code+")"}, {success: function(r){ Ti.API.info(r);}, error: function(e){alert(e)}});
		}
	}
	
	function getAscii(key) {
		return key.charCodeAt(0) + 61696;
	}

	var codes = {
		"ok" : "61453",
		"backspace" : "61448",
		"menu" : "247",
		"up" : "270",<commit_msg>remove info<commit_after>var Xbmc = function() {
	
	var Keyboard = function() {
		var old_length = 0;
		
		function type(e) {
			var str = e.value;
			var new_length = str ? str.length : 0;
			var val = (old_length > new_length) ? 'backspace' : lastChar(str);
			sendKey(val)();
			old_length = new_length;
		}
		
		function lastChar(str) {
			return str ? str[str.length-1] : 'backspace';
		}
		
		return {type : type}
	}();

	function sendKey(key) {
		var code = (key.length === 1) ? getAscii(key) : codes[key];
		
		return function() {
			App.http_client.get("/xbmcCmds/xbmcHttp", {"command":"SendKey("+code+")"}, {success: function(r){ }, error: function(e){Ti.API.info(e)}});
		}
	}
	
	function getAscii(key) {
		return key.charCodeAt(0) + 61696;
	}

	var codes = {
		"ok" : "61453",
		"backspace" : "61448",
		"menu" : "247",
		"up" : "270",
{'fraction_non_alphanumeric': 0.1906158357771261, 'fraction_numerical': 0.030498533724340176, 'mean_word_length': 3.3969072164948453, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, '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': '4586130', 'n_tokens_mistral': 791, 'n_tokens_neox': 661, 'n_words': 137}