<commit_before><!DOCTYPE html>
<html>
	<head>
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
		<script src="http://cdn.sockjs.org/sockjs-0.3.4.min.js"></script>
		<script>
			$(function() {
				var conn = null;

				function log(msg) {
					var control = $('#log');
					control.html(control.html() + msg + '<br/>');
					control.scrollTop(control.scrollTop() + 1000);
				}

				function disconnect() {
					if (conn != null) {
						log('Disconnecting...');

						conn.close();
						conn = null;

						updateUi();
					}
				}

				function updateUi() {
					if (conn == null || conn.readyState != SockJS.OPEN) {
						$('#status').text('disconnected');
						$('#connect').text('Connect');
					} else {
						$('#status').text('connected (' + conn.protocol + ')');
								$('#connect').text('Disconnect');
								}
								}

								$('form').submit(function() {
									var text = $('#message').val();
									conn.send(text);
									$('#message').val('').focus();
									return false;
								});

								conn = new SockJS('http://' + window.location.host + '/universe');
								log('Connecting...');

								conn.onopen = function() {
									log('Connected.');
									updateUi();
								};

								conn.onmessage = function(e) {
									log(e.data);
								};

								conn.onclose = function() {
									log('Disconnected.');
									conn = null;
									updateUi();
								};

								$('#message').val('').focus();
			});
		</script>
		<title>Sockjs-go chat</title>
	</head>
	<body>
		<h1>Sockjs-go chat</h1>

		<div>
			Status: <span id="status">disconnected</span>
		</div>
		<div id="log" style="width: 80em; height: 30em; overflow:auto; border: 1px solid black">
		</div>
		<form id="chatform">
			<label for="message">Message:</label>
			<input id="message" type="text" />
			<input type="submit" value="Send" />
		</form>
	</body>
</html><commit_msg>Prettify the development shell a little<commit_after><!DOCTYPE html>
<html>
	<head>
		<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
		<script src="//cdn.sockjs.org/sockjs-0.3.4.min.js"></script>
		<script>
			$(function() {
				var conn = null;

				function log(msg) {
					var control = $('#log');
					control.html(control.html() + msg + '<br/>');
					control.scrollTop(control.scrollTop() + 1000);
				}

				function disconnect() {
					if (conn != null) {
						log('Disconnecting...');

						conn.close();
						conn = null;

						updateUi();
					}
				}

				function updateUi() {
					if (conn == null || conn.readyState != SockJS.OPEN) {
						$('#status').text('disconnected');
						$('#connect').text('Connect');
					} else {
						$('#status').text('connected (' + conn.protocol + ')');
								$('#connect').text('Disconnect');
								}
								}

								$('form').submit(function() {
									var text = $('#message').val();
									conn.send(text);
									$('#message').val('').focus();
									return false;
								});

								conn = new SockJS('http://' + window.location.host + '/universe');
								log('Connecting...');

								conn.onopen = function() {
									log('Connected.');
									updateUi();
								};

								conn.onmessage = function(e) {
									log(e.data);
								};

								conn.onclose = function() {
									log('Disconnected.');
									conn = null;
									updateUi();
								};

								$('#message').val('').focus();
			});
		</script>
		<title>War Cluster Development shell</title>
	</head>
	<body>
		<h1>Sockjs-go chat</h1>

		<div>
			Status: <span id="status">disconnected</span>
		</div>
		<div id="log" style="width: 80em; height: 30em; overflow:auto; border: 1px solid black">
		</div>
		<form id="chatform">
			<label for="message">Command:</label>
			<input id="message" type="text" style="width: 80em">
			<input type="submit" value="Send">
		</form>
	</body>
</html>
{'fraction_non_alphanumeric': 0.2130645572850217, 'fraction_numerical': 0.009186016841030875, 'mean_word_length': 2.2858340318524726, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '720120', 'n_tokens_mistral': 1873, 'n_tokens_neox': 1278, 'n_words': 230}