<commit_before>var button = document.getElementById('runButton');

button.addEventListener('mousedown', function(event) {
	var combyTable = document.getElementById('results');
	document.querySelector(".combsays").style.display = 'block';
	if (results.childElementCount === 1) {
		document.querySelector(".preloader-wrapper").style.display = 'block';
	} 

		
	
});<commit_msg>make h3 stay after button page load and handle spinner better<commit_after>var button = document.getElementById('runButton');
var combyTable = document.getElementById('results');

if (combyTable.childNodes[1].childElementCount > 0) {
	document.getElementById("combsays").style.display = '';
}

button.addEventListener('click', function() {
	document.getElementById("combsays").style.display = '';

	while ( combyTable.childNodes[1].firstChild ) {
		 combyTable.childNodes[1].removeChild(combyTable.childNodes[1].firstChild);
	}

	if (combyTable.childNodes[1].childElementCount === 0) {
		document.querySelector(".preloader-wrapper").style.display = '';
	}
});
{'fraction_non_alphanumeric': 0.1576402321083172, 'fraction_numerical': 0.008704061895551257, 'mean_word_length': 6.446043165467626, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1601705', 'n_tokens_mistral': 308, 'n_tokens_neox': 298, 'n_words': 45}