<commit_before><!DOCTYPE html>
<html>
    <title>Real Time Web Chat Application</title>
    <script type="text/javascript" src='/socket.io/socket.io.js'></script>
    <script type="text/javascript">
		window.onload = function() {
			var messages = [];
			var socket = io.connect('http://' + window.location.hostname);
			var name = document.getElementById("name");
			var field = document.getElementById("field");
			var sendButton = document.getElementById("send");
			var content = document.getElementById("content");

			socket.on('message', function(data) {
				if (data.message) {
					if (data.name) {
						messages.push("<strong>" + data.name + ": </strong>" + data.message);
					}
					else {
						messages.push(data.message);
					}
					var html = '';
					for (var i = 0; i < messages.length; i++) {
						html += messages[i] + '<br />';
					}
					content.innerHTML = html;
				}
				else {
					console.log("There is a problem: ", data);
				}
			});

			sendMessage = function() {
				var text = field.value;
				var user = name.value;
				socket.emit('send', {message: text, name: user});
				field.value = "";
			}
			sendButton.onclick = sendMessage;
			field.onkeyup = function(e) {
				if (e.keyCode == 13) {
					sendMessage();
				}
			}
		}
	</script>
    <body>
        <div id="content" style='width: 500px; height: 300px; margin: 0 0 20px 0; border: solid 1px #999; overflow-y: scroll;'></div>
        <div class="controls">
            <input class="name" style='width: 150px' id='name' placeholder='Name' />
            <input class="field" style='width: 300px' id='field' placeholder='Message' />
            <input class="send" type='button' value='send' id='send' />
		</div>
	</body>
</html><commit_msg>Forced white background on chat window<commit_after><!DOCTYPE html>
<html>
    <title>Real Time Web Chat Application</title>
    <script type="text/javascript" src='/socket.io/socket.io.js'></script>
    <script type="text/javascript">
		window.onload = function() {
			var messages = [];
			var socket = io.connect('http://' + window.location.hostname);
			var name = document.getElementById("name");
			var field = document.getElementById("field");
			var sendButton = document.getElementById("send");
			var content = document.getElementById("content");

			socket.on('message', function(data) {
				if (data.message) {
					if (data.name) {
						messages.push("<strong>" + data.name + ": </strong>" + data.message);
					}
					else {
						messages.push(data.message);
					}
					var html = '';
					for (var i = 0; i < messages.length; i++) {
						html += messages[i] + '<br />';
					}
					content.innerHTML = html;
				}
				else {
					console.log("There is a problem: ", data);
				}
			});

			sendMessage = function() {
				var text = field.value;
				var user = name.value;
				socket.emit('send', {message: text, name: user});
				field.value = "";
			}
			sendButton.onclick = sendMessage;
			field.onkeyup = function(e) {
				if (e.keyCode == 13) {
					sendMessage();
				}
			}
		}
	</script>
    <body>
        <div id="content" style='background-color: #FFF; width: 500px; height: 300px; margin: 0 0 20px 0; border: solid 1px #999; overflow-y: scroll;'></div>
        <div class="controls">
            <input class="name" style='width: 150px' id='name' placeholder='Name' />
            <input class="field" style='width: 300px' id='field' placeholder='Message' />
            <input class="send" type='button' value='send' id='send' />
		</div>
	</body>
</html>

{'fraction_non_alphanumeric': 0.17640385706182643, 'fraction_numerical': 0.013613159387407828, 'mean_word_length': 2.8504366812227073, 'pattern_counts': {'":': 2, '<': 47, '<?xml version=': 0, '>': 45, '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': '3237450', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1101, 'n_words': 262}