<commit_before>window.$$=function getElementById(i){
	return document.getElementById(i.substring(1));
};

!(function (window, undefined) {
	var html={
		"console":$$("#console")
	};
	function exec(latex){
		//Convert to javascript:
		return M(M.latex.parse(latex)).eval();
	}
	var console = {
		"current":undefined,
		"write" :function(data, className){
			var elem = document.createElement("li");
			elem.className=className;
			elem.appendChild(typeof data === "string" ? document.createTextNode(data) : data);
			html.console.appendChild(elem);
			return elem;
		},
		"warn" :function(data){
			return this.warn(data, "warn");
		},
		"error" :function(data){
			return this.warn(data, "error");
		},
		"response" :function(data){
			return this.warn(data, "response");
		},
		"execute":function(d){
			if(this.current){
				window.d=d;
				var result=document.createElement("div");
				result.className="result";
				var res = exec(d);
				result.appendChild(document.createTextNode(res));
				this.current.appendChild(result);
			}
			var mathQuill=document.createElement("div");
			var current = this.current = this.write(mathQuill, "write user");
			setTimeout(function(){current.style.opacity=1.0;},1);
			mathQuill.appendChild(document.createTextNode(""));
			
			var self=this;
			$(mathQuill)
				.mathquill("editable")
				//.trigger({ type: "keydown", ctrlKey: true, which: 65 })
				.focus()
				.bind("keydown.jscas", function(event) {
						if(event.which == 13) {
							var jQueryDataKey = '[[mathquill internal data]]';
							var latex = 
							$(this)
								.unbind('.mathquill')
								.unbind('.jscas')
							 	.removeClass('mathquill-editable mathquill-textbox')
								.find("textarea")
									.remove()
								.end()
								.mathquill("latex");
							$(current).unbind(".jscas");
							self.execute(latex);
						}
					}
				
				);
				$(current).bind("click.jscas",function() {
					$(mathQuill).focus();
				});
						
		}
	};
	console.log=console.write;
	html.console.innerHTML="";
	console.execute();
})(window);<commit_msg>remove sample logs<commit_after>window.$$=function getElementById(i){
	return document.getElementById(i.substring(1));
};

!(function (window, undefined) {
	var html={
		"console":$$("#console")
	};
	function exec(latex){
		//Convert to javascript:
		return M(M.latex.parse(latex)).eval();
	}
	var console = {
		"current":undefined,
		"write" :function(data, className){
			var elem = document.createElement("li");
			elem.className=className;
			elem.appendChild(typeof data === "string" ? document.createTextNode(data) : data);
			html.console.appendChild(elem);
			return elem;
		},
		"warn" :function(data){
			return this.warn(data, "warn");
		},
		"error" :function(data){
			return this.warn(data, "error");
		},
		"response" :function(data){
			return this.warn(data, "response");
		},
		"execute":function(d){
			if(this.current){
				window.d=d;
				var result=document.createElement("div");
				result.className="result";
				var res = exec(d);
				result.appendChild(document.createTextNode(res));
				this.current.appendChild(result);
			}
			var mathQuill=document.createElement("div");
			var current = this.current = this.write(mathQuill, "write user");
			setTimeout(function(){current.style.opacity=1.0;},1);
			mathQuill.appendChild(document.createTextNode(""));
			
			var self=this;
			$(mathQuill)
				.mathquill("editable")
				//.trigger({ type: "keydown", ctrlKey: true, which: 65 })
				.focus()
				.bind("keydown.jscas", function(event) {
						if(event.which == 13) {
							var jQueryDataKey = '[[mathquill internal data]]';
							var latex = 
							$(this)
								.unbind('.mathquill')
								.unbind('.jscas')
							 	.removeClass('mathquill-editable mathquill-textbox')
								.find("textarea")
									.remove()
								.end()
								.mathquill("latex");
							$(current).unbind(".jscas");
							self.execute(latex);
						}
					}
				
				);
				$(current).bind("click.jscas",function() {
					$(mathQuill).focus();
				});
						
		}
	};
	console.log=console.write;
	console.execute();
})(window);
{'fraction_non_alphanumeric': 0.1829238628071029, 'fraction_numerical': 0.0038919970810021892, 'mean_word_length': 3.332982086406744, 'pattern_counts': {'":': 6, '<': 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': '611352', 'n_tokens_mistral': 1750, 'n_tokens_neox': 1339, 'n_words': 222}