<commit_before>﻿function UpdateMessages() {
	var url = "/Home/Next";
    var inner = "";
	$.get(url, function(data) {
		if ((data === "") || (data === null)) {
			return;
		}
		var items = data.split('#');
		var post = "<li class='hh-post'>";
		post += "<h2>" + items[0] + "</h2>";
		if (items.length > 3) {
		    post += "<i><small>" + FormatTime(items[3]) + "</small></i><br>";
		}
		post += "<i>" + items[1].replace(/\*/g, '') + "</i><br>";
		post += items[2] + "</li>";
		$('#stream').append(post);
	});
}
function FormatTime(code) {
	var year = new Date().getFullYear();
	var month = code.substring(0, 2);
	var day = code.substring(2, 4);
	var hour = code.substring(4, 6);
	var minute = code.substring(6, 8);
	return "" + year + "/" + month + "/" + day + " " + hour + ":" + minute;
}
$(document).ready(function() {
	setInterval(function() {
		UpdateMessages();
	}, 5000);
});<commit_msg>Front-end frequent updates and mocking up seconds<commit_after>﻿function UpdateMessages() {
	var url = "/Home/Next";
    var inner = "";
	$.get(url, function(data) {
		if ((data === "") || (data === null)) {
			return;
		}
		var items = data.split('#');
		var post = "<li class='hh-post'>";
		post += "<h2>" + items[0] + "</h2>";
		if (items.length > 3) {
		    post += "<i><small>" + FormatTime(items[3]) + "</small></i><br>";
		}
		post += "<i>" + items[1].replace(/\*/g, '') + "</i><br>";
		post += items[2] + "</li>";
		$('#stream').append(post);
	});
}
function FormatTime(code) {
	var year = new Date().getFullYear();
	var month = code.substring(0, 2);
	var day = code.substring(2, 4);
	var hour = code.substring(4, 6);
	var minute = code.substring(6, 8);
	var second = new Date().getTime() / 1000 % 60;
	return "" + year + "/" + month + "/" + day + " " + hour + ":" + minute + ":" + second;
}
$(document).ready(function() {
	setInterval(function() {
		UpdateMessages();
	}, 500);
});
{'fraction_non_alphanumeric': 0.2640807651434644, 'fraction_numerical': 0.022848034006376194, 'mean_word_length': 3.5047846889952154, 'pattern_counts': {'":': 3, '<': 27, '<?xml version=': 0, '>': 29, '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': '3079246', 'n_tokens_mistral': 734, 'n_tokens_neox': 681, 'n_words': 157}