<commit_before><html>
	<head>
		<style type="text/css">
			* {
				font-family:monospace;
			}
			html,body {
				overflow: hidden;
				background: #272F87;
				height:100%;
				color:white;
				font-family:Arial,Helvetica,sans-serif;
				font-size:12px;
			}
			
			body {
				margin:0;
				padding:10;
			}
			
			td {
				padding:3px;
				padding-left:13px;
				padding-right:13px;
				margin:0;
			}
			
			td.head {
				border-bottom:2px solid white;
			}
		</style>
		<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
		<script type="text/javascript">
		
			function fixLength(t, l) {
				while(t.length < l) {
					t = "&nbsp;" + t;
				}
				return t;
			}
		
			function update() {
				$.getJSON('/data', function(data) {
					$("#current").html("<span style='color:yellow;'>" + data["current"] + "</span> @" + parseInt(data["mhash"]) + "MHash");
					var h = "<table border=0 padding=0 cellpadding=0 cellspacing=0><tr><td class=head><b>Server</b></td><td class=head align=right><b>Shares</b></td><td class=head align=right><b>Role</b></td><td class=head align=right><b>User Shares / Reject</b></td><td class=head align=right><b>Payout</b></td><td class=head align=right><b>Efficiency</b></td></tr>";
					var maxlrej = 0;
					for(v in data["servers"]) {
						if(!data["servers"][v]["lag"]) {
							if(maxlrej > (""+data["servers"][v]["rejects"]).length)
								maxlrej = (""+data["servers"][v]["rejects"]).length;
						}
					}
					for(v in data["servers"]) {
						h += "<tr>";
						var srv = data["servers"][v]
						
						var na  = srv['name'];
						if(na == data["current"]) {
							na = "<span style='color:yellow;'>" + v + "</span>";
						}
						if(srv["lag"]) {
							na = "<span style='color:red;'>" + v + "</span>";
						}
						
						h += "<td><b>" + na + "</b></td>";
						shares = srv['shares'];
						if(srv["role"] != "mine" && srv["role"] != "info") {
							shares = "Not Gathered";
						}
						
						h += "<td align=right>" + shares  + "</td>";
						
						h += "<td align=right>" + srv["role"] + "</td>";

						var pp = 0;
						if(parseInt(srv["rejects"]) > 0) {
							pp = parseFloat(parseFloat(srv["rejects"])) / parseFloat(srv["user_shares"]) * 100;
						}
						h += "<td align=right>" + fixLength(""+parseInt(srv["user_shares"]),10) 
							+ " / " + fixLength(""+parseInt(srv["rejects"]),maxlrej+3) 
							
							+ " (" + fixLength("" + pp.toFixed(2), 5) + "%)";
							+ "</td>";
						lag = srv["lag"];

                        payout = srv["payout"]
						
						h += "<td align=right>" + payout + "</td>";

                        var expect = srv["shares"] * 50 / data["difficulty"];
                        var payout = parseFloat(payout)/expect * 100;
                        var pay_str = fixLength("" + payout.toFixed(2),5) + "%";

                        h += "<td align=right>" + pay_str + "</td>"; 

						h += "</tr>";
					}
					h += "</table>";
					$("#table").html(h);
				});
			}
		
			$(document).ready(function() {
				setInterval("update()", 5000);
				update();
			});
		</script>
	</head>
	<body>
	
		<h1 id="current"></h1>
		
		<div id="table"></div>
	
	</body>
</html>
<commit_msg>Restored the yellow coloring for current server<commit_after><html>
	<head>
		<style type="text/css">
			* {
				font-family:monospace;
			}
			html,body {
				overflow: hidden;
				background: #272F87;
				height:100%;
				color:white;
				font-family:Arial,Helvetica,sans-serif;
				font-size:12px;
			}
			
			body {
				margin:0;
				padding:10;
			}
			
			td {
				padding:3px;
				padding-left:13px;
				padding-right:13px;
				margin:0;
			}
			
			td.head {
				border-bottom:2px solid white;
			}
		</style>
		<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
		<script type="text/javascript">
		
			function fixLength(t, l) {
				while(t.length < l) {
					t = "&nbsp;" + t;
				}
				return t;
			}
		
			function update() {
				$.getJSON('/data', function(data) {
					$("#current").html("<span style='color:yellow;'>" + data["current"] + "</span> @" + parseInt(data["mhash"]) + "MHash");
					var h = "<table border=0 padding=0 cellpadding=0 cellspacing=0><tr><td class=head><b>Server</b></td><td class=head align=right><b>Shares</b></td><td class=head align=right><b>Role</b></td><td class=head align=right><b>User Shares / Reject</b></td><td class=head align=right><b>Payout</b></td><td class=head align=right><b>Efficiency</b></td></tr>";
					var maxlrej = 0;
					for(v in data["servers"]) {
						if(!data["servers"][v]["lag"]) {
							if(maxlrej > (""+data["servers"][v]["rejects"]).length)
								maxlrej = (""+data["servers"][v]["rejects"]).length;
						}
					}
					for(v in data["servers"]) {
						h += "<tr>";
						var srv = data["servers"][v]
						
						var na  = srv['name'];
						if(v == data["current"]) {
							na = "<span style='color:yellow;'>" + v + "</span>";
						}
						if(srv["lag"]) {
							na = "<span style='color:red;'>" + v + "</span>";
						}
						
						h += "<td><b>" + na + "</b></td>";
						shares = srv['shares'];
						if(srv["role"] != "mine" && srv["role"] != "info") {
							shares = "Not Gathered";
						}
						
						h += "<td align=right>" + shares  + "</td>";
						
						h += "<td align=right>" + srv["role"] + "</td>";

						var pp = 0;
						if(parseInt(srv["rejects"]) > 0) {
							pp = parseFloat(parseFloat(srv["rejects"])) / parseFloat(srv["user_shares"]) * 100;
						}
						h += "<td align=right>" + fixLength(""+parseInt(srv["user_shares"]),10) 
							+ " / " + fixLength(""+parseInt(srv["rejects"]),maxlrej+3) 
							
							+ " (" + fixLength("" + pp.toFixed(2), 5) + "%)";
							+ "</td>";
						lag = srv["lag"];

                        payout = srv["payout"]
						
						h += "<td align=right>" + payout + "</td>";

                        var expect = srv["shares"] * 50 / data["difficulty"];
                        var payout = parseFloat(payout)/expect * 100;
                        var pay_str = fixLength("" + payout.toFixed(2),5) + "%";

                        h += "<td align=right>" + pay_str + "</td>"; 

						h += "</tr>";
					}
					h += "</table>";
					$("#table").html(h);
				});
			}
		
			$(document).ready(function() {
				setInterval("update()", 5000);
				update();
			});
		</script>
	</head>
	<body>
	
		<h1 id="current"></h1>
		
		<div id="table"></div>
	
	</body>
</html>

{'fraction_non_alphanumeric': 0.2209250112258644, 'fraction_numerical': 0.015267175572519083, 'mean_word_length': 2.0665442863698944, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 139, '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': '441183', 'n_tokens_mistral': 3187, 'n_tokens_neox': 2348, 'n_words': 392}