<commit_before><html>
  <head>
    <title>Button Incrementer</title>
    <script src="https://cdn.socket.io/socket.io-1.4.5.js"></script>
  </head>

  <body>
    <button type="button" onClick="onClick()">Click me</button>
    <p>Clicks: <a id="clicks">0</a></p>
    <p>Opponent: <a id="oclicks">0</a></p>
  </body>

  <script>
    var socket = io();
    var clicks = 0;
    function onClick() {
      clicks += 1;
      socket.emit('score', clicks);
      document.getElementById("clicks").innerHTML = clicks;
    };
    socket.on('score', function(oclicks) {
      document.getElementById("oclicks").innerHTML = oclicks;
    });
	setInterval(function() { socket.emit('score', clicks); }, 500);
  </script><commit_msg>Badly spaced cookies<commit_after><html>
  <head>
    <title>Button Incrementer</title>
    <script src="https://cdn.socket.io/socket.io-1.4.5.js"></script>
  </head>

  <body>
    <button type="button" onClick="onClick()">Click me</button>
    <p>Clicks: <a id="clicks">0</a></p>
    <p>Opponent: <a id="oclicks">0</a></p>
  </body>

  <script>
	//sorry about spacing
	 function readCookie(name) {
		var nameEQ = name + "=";
		var ca = document.cookie.split(';');
		for(var i=0;i < ca.length;i++) {
			var c = ca[i];
			while (c.charAt(0)==' ') c = c.substring(1,c.length);
			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
		}
		return null;
	}
	
    var clicks = 0;
	var oclicks = 0;
	
	if (document.cookie) {
		clicks = parseInt(readCookie('score'));
		oclicks = parseInt(readCookie('oscore'));
		document.getElementById("clicks").innerHTML = clicks;
		document.getElementById("oclicks").innerHTML = oclicks;
	}
	
	var socket = io();
	
	
    function onClick() {
      clicks += 1;
      socket.emit('score', clicks);
      document.getElementById("clicks").innerHTML = clicks;
    };
    socket.on('score', function(oclicks) {
      document.getElementById("oclicks").innerHTML = oclicks;
    });
	setInterval(function() { socket.emit('score', clicks); }, 500);
	setInterval(function() { document.cookie= 'score=' + clicks + "; oscore=" + oclicks;}, 1000);

	
  </script>
{'fraction_non_alphanumeric': 0.1996224634261444, 'fraction_numerical': 0.01368570080226522, 'mean_word_length': 3.5591397849462365, 'pattern_counts': {'":': 0, '<': 46, '<?xml version=': 0, '>': 45, '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': '1425410', 'n_tokens_mistral': 805, 'n_tokens_neox': 738, 'n_words': 135}