<commit_before>
function $(query) {
	return document.querySelector(query);
}

function formatSecs(secs) {
	var stamp = '';

	if (typeof secs !== 'number') {
		return '';
	}

	var hours = Math.floor(secs / (60 * 60));
 
	var divisor_for_minutes = secs % (60 * 60);
	var mins = Math.floor(divisor_for_minutes / 60);

	var divisor_for_seconds = divisor_for_minutes % 60;
	
	secs = Math.ceil(divisor_for_seconds);


	if (hours>0) {
		stamp += hours+'h ';
	}

	if (mins>0 || hours>0) {
		stamp += mins+'min ';
	}

	stamp += secs+'s';

	return stamp;
}<commit_msg>added utility function called isEmptyObject.<commit_after>
function $(query) {
	return document.querySelector(query);
}

function formatSecs(secs) {
	var stamp = '';

	if (typeof secs !== 'number') {
		return '';
	}

	var hours = Math.floor(secs / (60 * 60));
 
	var divisor_for_minutes = secs % (60 * 60);
	var mins = Math.floor(divisor_for_minutes / 60);

	var divisor_for_seconds = divisor_for_minutes % 60;
	
	secs = Math.ceil(divisor_for_seconds);


	if (hours>0) {
		stamp += hours+'h ';
	}

	if (mins>0 || hours>0) {
		stamp += mins+'min ';
	}

	stamp += secs+'s';

	return stamp;
}

function isEmptyObject(obj) {
	for (var name in obj) {
		return false;
	}
	return true;
}
{'fraction_non_alphanumeric': 0.1591276252019386, 'fraction_numerical': 0.024232633279483037, 'mean_word_length': 3.7471264367816093, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '7515142', 'n_tokens_mistral': 539, 'n_tokens_neox': 472, 'n_words': 109}