<commit_before>// Since we don't set a beacon_url, we'll just subscribe to the before_beacon function
// and print the results into the browser itself.
BOOMR.subscribe('before_beacon', function(o) {
	var html = "", t_name, t_other, others = [];
	if(o.t_done) { html += "This page took " + o.t_done + " ms to load<br>"; }
	if(o.t_other) {
		t_other = o.t_other.replace(/\|/g, ' = ').split(',');
		html += "Other timers measured: <br>";
		for(var i=0; i<t_other.length; i++) {
			html += "&nbsp;&nbsp;&nbsp;" + t_other[i] + " ms<br>";
		}
	}
	if(o.bw) { html += "Your bandwidth to this server is " + parseInt(o.bw/1024) + "kbps (&#x00b1;" + parseInt(o.bw_err*100/o.bw) + "%)<br>"; }
	if(o.lat) { html += "Your latency to this server is " + parseInt(o.lat) + "&#x00b1;" + o.lat_err + "ms<br>"; }

	var r = document.getElementById('results');
	r.innerHTML = html;

	for(var k in o) {
		if(!k.match(/^(t_done|t_other|bw|lat|bw_err|lat_err)$/)) {
			others.push(k + " = " + o[k]);
		}<commit_msg>do not show built in params that are not important<commit_after>// Since we don't set a beacon_url, we'll just subscribe to the before_beacon function
// and print the results into the browser itself.
BOOMR.subscribe('before_beacon', function(o) {
	var html = "", t_name, t_other, others = [];
	if(o.t_done) { html += "This page took " + o.t_done + " ms to load<br>"; }
	if(o.t_other) {
		t_other = o.t_other.replace(/\|/g, ' = ').split(',');
		html += "Other timers measured: <br>";
		for(var i=0; i<t_other.length; i++) {
			html += "&nbsp;&nbsp;&nbsp;" + t_other[i] + " ms<br>";
		}
	}
	if(o.bw) { html += "Your bandwidth to this server is " + parseInt(o.bw/1024) + "kbps (&#x00b1;" + parseInt(o.bw_err*100/o.bw) + "%)<br>"; }
	if(o.lat) { html += "Your latency to this server is " + parseInt(o.lat) + "&#x00b1;" + o.lat_err + "ms<br>"; }

	var r = document.getElementById('results');
	r.innerHTML = html;

	for(var k in o) {
		if(!k.match(/^(t_done|t_other|bw|lat|bw_err|lat_err|u|r2?)$/)) {
			others.push(k + " = " + o[k]);
		}
{'fraction_non_alphanumeric': 0.21403855659911022, 'fraction_numerical': 0.014335145823035097, 'mean_word_length': 3.888888888888889, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, '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': '5790464', 'n_tokens_mistral': 864, 'n_tokens_neox': 814, 'n_words': 193}