<commit_before><script src="<?= $server ?>/socket.io/socket.io.js"></script>
<script>
	$(function(){
		var iosocket = io.connect("<?= $server ?>");
		iosocket.on('connect', function () {
			//Some online indication
			$("#online_indicator").show();
			$("#offline_indicator").hide();

			iosocket.on('update', function(message) {
				console.log("update", message);
				
			});
			
			iosocket.on('disconnect', function() {
				//Some offline indication
				$("#online_indicator").hide();
				$("#offline_indicator").show();
			});
		});

	});
</script><commit_msg>Trigger update event on socket.io updates<commit_after><script src="<?= $server ?>/socket.io/socket.io.js"></script>
<script>
	$(function(){
		var iosocket = io.connect("<?= $server ?>");
		iosocket.on('connect', function () {
			//Some online indication
			$("#online_indicator").show();
			$("#offline_indicator").hide();

			iosocket.on('update', function(message) {
				// console.log("update", message);
				$(document).trigger("update", message);
			});
			
			iosocket.on('disconnect', function() {
				//Some offline indication
				$("#online_indicator").hide();
				$("#offline_indicator").show();
			});
		});

	});
</script>
{'fraction_non_alphanumeric': 0.23083333333333333, 'fraction_numerical': 0.0, 'mean_word_length': 4.004166666666666, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '4883433', 'n_tokens_mistral': 445, 'n_tokens_neox': 377, 'n_words': 64}