<commit_before>window.onload = function() {
	var on = "white";
	var off = "#303030";
	var hour = 12;
	var minutes = 25;
	
	document.getElementById("its").style.color=on;
	document.getElementById("minutes").style.color=on;

	// set modifier
	if (minutes < 3 || minutes > 57){
		document.getElementById("oclock").style.color=on;
		document.getElementById("minutes").style.color=off;
	}else if (minutes < 33){
		document.getElementById("past").style.color=on;
	}else if (minutes <= 57){
		document.getElementById("to").style.color=on;
		hour =(hour === 12)? 1: hour + 1;
		minutes = 60 - minutes;
	}

	//set minutes
	if (minutes >= 3){
	       if(minutes < 7){
			document.getElementById("fiveMod").style.color=on;
		}else if (minutes < 13){
			document.getElementById("tenMod").style.color=on;
		}else if (minutes < 17){
			document.getElementById("quarter").style.color=on;
			document.getElementById("minutes").style.color=off;
		}else if (minutes < 23){
			document.getElementById("twenty").style.color=on;
		}else if (minutes < 27){
			document.getElementById("twenty").style.color=on;
			document.getElementById("fiveMod").style.color=on;
		}else if (minutes < 33){
			document.getElementById("half").style.color=on;
			document.getElementById("minutes").style.color=off;

		}
	}

	//set hours
	switch (hour){
		case 1 :
			document.getElementById("one").style.color=on;
			break;
		case 2 :
			document.getElementById("two").style.color=on;
			break;
		case 3 :
			document.getElementById("three").style.color=on;
			break;
		case 4 :
			document.getElementById("four").style.color=on;
			break;
		case 5 :
			document.getElementById("five").style.color=on;
			break;
		case 6 :
			document.getElementById("six").style.color=on;
			break;
		case 7 :
			document.getElementById("seven").style.color=on;
			break;
		case 8 :
			document.getElementById("eight").style.color=on;
			break;
		case 9 :
			document.getElementById("nine").style.color=on;
			break;
		case 10 :
			document.getElementById("ten").style.color=on;
			break;
		case 11 :
			document.getElementById("eleven").style.color=on;
			break;
		case 12 :
			document.getElementById("twelve").style.color=on;
			break;
	}
}
<commit_msg>JS date & refresh added nedds screen blanking<commit_after>var update = function() {
	var on = "white";
	var off = "#303030";
	current = new Date();
	var hour = current.getHours();
	if (hour > 12) {hour -= 12};
	var minutes = current.getMinutes();
	
	document.getElementById("its").style.color=on;
	document.getElementById("minutes").style.color=on;

	// set modifier
	if (minutes < 3){
		document.getElementById("oclock").style.color=on;
		document.getElementById("minutes").style.color=off;
	}else if (minutes < 33){
		document.getElementById("past").style.color=on;
	}else if (minutes <= 57){
		document.getElementById("to").style.color=on;
		hour === 12 ? hour = 1: hour += 1;
		minutes = 60 - minutes;
	}else{
		document.getElementById("oclock").style.color=on;
		document.getElementById("minutes").style.color=off;
		hour === 12 ? hour = 1: hour += 1;
		minutes = 60 - minutes;
	}

	//set minutes
	if (minutes >= 3){
	       if(minutes < 7){
			document.getElementById("fiveMod").style.color=on;
		}else if (minutes < 13){
			document.getElementById("tenMod").style.color=on;
		}else if (minutes < 17){
			document.getElementById("quarter").style.color=on;
			document.getElementById("minutes").style.color=off;
		}else if (minutes < 23){
			document.getElementById("twenty").style.color=on;
		}else if (minutes < 27){
			document.getElementById("twenty").style.color=on;
			document.getElementById("fiveMod").style.color=on;
		}else if (minutes < 33){
			document.getElementById("half").style.color=on;
			document.getElementById("minutes").style.color=off;

		}
	}

	//set hours
	switch (hour){
		case 1 :
			document.getElementById("one").style.color=on;
			break;
		case 2 :
			document.getElementById("two").style.color=on;
			break;
		case 3 :
			document.getElementById("three").style.color=on;
			break;
		case 4 :
			document.getElementById("four").style.color=on;
			break;
		case 5 :
			document.getElementById("five").style.color=on;
			break;
		case 6 :
			document.getElementById("six").style.color=on;
			break;
		case 7 :
			document.getElementById("seven").style.color=on;
			break;
		case 8 :
			document.getElementById("eight").style.color=on;
			break;
		case 9 :
			document.getElementById("nine").style.color=on;
			break;
		case 10 :
			document.getElementById("ten").style.color=on;
			break;
		case 11 :
			document.getElementById("eleven").style.color=on;
			break;
		case 12 :
			document.getElementById("twelve").style.color=on;
			break;
	}
}

//onload = update;
setInterval(update,1000);

{'fraction_non_alphanumeric': 0.1668077900084674, 'fraction_numerical': 0.02286198137171888, 'mean_word_length': 4.02125398512221, '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': '3149315', 'n_tokens_mistral': 1841, 'n_tokens_neox': 1500, 'n_words': 292}