<commit_before>var hoursText = document.getElementById('hours');
var minutesText = document.getElementById('minutes');
var secondsText = document.getElementById('seconds');
var startStop = document.getElementById('startStop');
var seconds = 0;
var minutes = 0;
var hours = 0;
var interval;

function count() {
	seconds--;
	if(seconds < 1){
		seconds = 59;
		minutes--;
		if(minutes < 0){
			minutes = 59;
			hours--;
			if(hours < 0){
				resetTimer();
				startStop.onclick = resetTimer;
				$(".btn-default").prop('disabled', true);							
				interval = setInterval(expired, 1000);
			}
			else
				hoursText.innerHTML = hours <= 9 ? "0" + hours : hours;
		}
		minutesText.innerHTML = minutes <= 9 ? "0" + minutes : minutes;
	}
	secondsText.innerHTML = seconds <= 9 ? "0" + seconds : seconds;
}
function startTimer(e) {
	$(".startStopBtn").blur();
	$(".btn-default").prop('disabled', true);							
	startStop.onclick = stopTimer;
	if(seconds > 59){
		seconds = seconds % 60;
		secondsText.innerHTML = seconds <= 9 ? "0" + seconds : seconds;
		minutes++;
		minutesText.innerHTML = minutes <= 9 ? "0" + minutes : minutes;
	}
	if(minutes > 59){
		minutes = minutes % 60;
		minutesText.innerHTML = minutes <= 9 ? "0" + minutes : minutes;
		hours++;<commit_msg>Issue #7 setting expired class immediately on timeout<commit_after>var hoursText = document.getElementById('hours');
var minutesText = document.getElementById('minutes');
var secondsText = document.getElementById('seconds');
var startStop = document.getElementById('startStop');
var seconds = 0;
var minutes = 0;
var hours = 0;
var interval;

function count() {
	seconds--;
	if(seconds < 1){
		seconds = 59;
		minutes--;
		if(minutes < 0){
			minutes = 59;
			hours--;
			if(hours < 0){
				resetTimer();
				startStop.onclick = resetTimer;
				$(".btn-default").prop('disabled', true);							
                $("#time").addClass("expired");
                interval = setInterval(expired, 1000);
			}
			else
				hoursText.innerHTML = hours <= 9 ? "0" + hours : hours;
		}
		minutesText.innerHTML = minutes <= 9 ? "0" + minutes : minutes;
	}
	secondsText.innerHTML = seconds <= 9 ? "0" + seconds : seconds;
}
function startTimer(e) {
	$(".startStopBtn").blur();
	$(".btn-default").prop('disabled', true);							
	startStop.onclick = stopTimer;
	if(seconds > 59){
		seconds = seconds % 60;
		secondsText.innerHTML = seconds <= 9 ? "0" + seconds : seconds;
		minutes++;
		minutesText.innerHTML = minutes <= 9 ? "0" + minutes : minutes;
	}
	if(minutes > 59){
		minutes = minutes % 60;
		minutesText.innerHTML = minutes <= 9 ? "0" + minutes : minutes;
		hours++;
{'fraction_non_alphanumeric': 0.16233766233766234, 'fraction_numerical': 0.026355996944232237, 'mean_word_length': 3.546875, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 7, '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': '5722046', 'n_tokens_mistral': 978, 'n_tokens_neox': 795, 'n_words': 211}