<commit_before>window.addEventListener("load", function() {
	const EXTRA_IMAGES = document.getElementsByClassName("alt-logo-img");
	EXTRA_IMAGES[0].classList.toggle("active");
	EXTRA_IMAGES[EXTRA_IMAGES.length - 1].classList.toggle("active");

	var just_switched = false;
	Array.from(EXTRA_IMAGES).forEach(function(img, idx) {
		var next_idx = idx + 1;
		if(next_idx == EXTRA_IMAGES.length)
			next_idx = 0;

		// Only triggered on active alt images
		img.addEventListener("mouseover", function() {
			if(!just_switched) {
				img.classList.toggle("active");
				EXTRA_IMAGES[next_idx].classList.toggle("active");
				just_switched = true;
			} else
				just_switched = false;
		});
	});
});<commit_msg>Reduce if to a modulo for changing logos<commit_after>window.addEventListener("load", function() {
	const EXTRA_IMAGES = document.getElementsByClassName("alt-logo-img");
	EXTRA_IMAGES[0].classList.toggle("active");
	EXTRA_IMAGES[EXTRA_IMAGES.length - 1].classList.toggle("active");

	var just_switched = false;
	Array.from(EXTRA_IMAGES).forEach(function(img, idx) {
		var next_idx = (idx + 1) % EXTRA_IMAGES.length;

		// Only triggered on active alt images
		img.addEventListener("mouseover", function() {
			if(!just_switched) {
				img.classList.toggle("active");
				EXTRA_IMAGES[next_idx].classList.toggle("active");
				just_switched = true;
			} else
				just_switched = false;
		});
	});
});
{'fraction_non_alphanumeric': 0.14764621968616262, 'fraction_numerical': 0.004992867332382311, 'mean_word_length': 5.021459227467811, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '872696', 'n_tokens_mistral': 517, 'n_tokens_neox': 470, 'n_words': 78}