<commit_before>function iconHover() {
	var image3 = document.getElementById("plan-icon");
	var link3 = document.getElementById("applicationLink");

	if (!("ontouchstart" in document.documentElement) && 
		! (navigator.maxTouchPoints > 0) &&
		! (navigator.msMaxTouchPoints > 0) ){

	link3.addEventListener("mouseover", function(){
		if (window.location.hash == "#l=en") {
			image3.src="img/coming-soon-icon.svg";
		}
		else {
			image3.src="img/a-venir-icon.svg"
		}
	}, false);
	link3.addEventListener("mouseout", function(){
		image3.src="img/plan-icon.svg";}, false);
	};   
};

//Set language and update URL hash
function langtoggle(l){

	if (l == 'en' ){
		local_lang = lang.en,
		window.location.hash = "#l=en";
	}

	else if (l == 'fr') {
		local_lang = lang.fr,
		window.location.hash = "#l=fr";
	}	

	for(var key in local_lang) {
		document.getElementById(key).innerHTML = local_lang[key];
	}
}

//Check URL hash; set appropriate page language.
function loadLanguage() {

	var domain = window.location.origin.split(".")[1];
	var hash = window.location.hash;

	if (hash == '#l=en' || (hash == '' && domain == 'forest-atlas')) {
		langtoggle('en')
	}
	else {
		langtoggle('fr')
	}
}

//Generate flag link/image from country JS file
function generateFlag() {

	var flagContainer = document.getElementById('flag');

	var newLink = document.createElement('a');
	var newImg = document.createElement('img');

	newLink.href = flag["href"];
	newImg.setAttribute('src',flag["src"]);
	newImg.className += " img-responsive";

	newLink.appendChild(newImg);
	flagContainer.appendChild(newLink);
}

//Generate background image from country JS file
function generateBcgImg() {
document.getElementById('intro').style.background = bcgImage["src"];
}

//Generate partner logos from country JS file
function generatePartnerLogos() {
<commit_msg>Changed variable names; simplified functions<commit_after>function iconHover() {
	var image = document.getElementById("plan-icon");
	var link = document.getElementById("applicationLink");

	if (!("ontouchstart" in document.documentElement) && 
		! (navigator.maxTouchPoints > 0) &&
		! (navigator.msMaxTouchPoints > 0) ){

	link.addEventListener("mouseover", function(){
		if (window.location.hash == "#l=en") {
			image.src="img/coming-soon-icon.svg";
		}
		else {
			image.src="img/a-venir-icon.svg"
		}
	}, false);
	link.addEventListener("mouseout", function(){
		image.src="img/plan-icon.svg";}, false);
	};   
};

//Set language and update URL hash
function langtoggle(l){

	if (l == 'en' ){
		local_lang = lang.en,
		window.location.hash = "#l=en";
	}

	else if (l == 'fr') {
		local_lang = lang.fr,
		window.location.hash = "#l=fr";
	}	

	for(var key in local_lang) {
		document.getElementById(key).innerHTML = local_lang[key];
	}
}

//Check URL hash; set appropriate page language.
function loadLanguage() {

	var hash = window.location.hash;

	if (hash == '#l=en') {
		langtoggle('en')
	}
	else {
		langtoggle('fr')
	}
}

//Generate flag link/image from country JS file
function generateFlag() {

	var flagContainer = document.getElementById('flag');

	var newLink = document.createElement('a');
	var newImg = document.createElement('img');

	newLink.href = flag["href"];
	newImg.setAttribute('src',flag["src"]);
	newImg.className += " img-responsive";

	newLink.appendChild(newImg);
	flagContainer.appendChild(newLink);
}

//Generate background image from country JS file
function generateBcgImg() {
document.getElementById('intro').style.background = bcgImage["src"];
}

//Generate partner logos from country JS file
function generatePartnerLogos() {

{'fraction_non_alphanumeric': 0.1657397107897664, 'fraction_numerical': 0.0033370411568409346, 'mean_word_length': 4.559505409582689, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3888522', 'n_tokens_mistral': 1224, 'n_tokens_neox': 1149, 'n_words': 252}