<commit_before>// Toggle between hiding and showing blog replies/comments

function myFunction(id) {
    var x = document.getElementById(id);
    if (x.className.indexOf("w3-show") == -1) {
        x.className += " w3-show";
    } else { 
        x.className = x.className.replace(" w3-show", "");
    }
}

function likeFunction(x) {
    x.style.fontWeight = "bold";
    x.innerHTML = "✓ Liked";
}

function readMore(id)
{
	var postIndex = id.slice(-1);
	var postEntryId = "blogEntry" + postIndex;
	var postExcerptId = "postExcerpt" + postIndex;
	var postContentId = "postContent" + postIndex;
	var postExcerpt = document.getElementById(postExcerptId);
	var postContent = document.getElementById(postContentId);
	postExcerpt.className = postExcerpt.className.replace(" w3-show", "");
	postContent.className += " w3-show";
	
	var entries = document.getElementById('entries').childNodes;
	for(var i=0; i<entries.length; i++) 
	{
		if ((entries[i].nodeName.toLowerCase() == 'div') && (entries[i].id != postEntryId) )
		{
		   entries[i].style.display = 'none';
		}
	}
}

function goBack(id)
{
	var postIndex = id.slice(-1);
	var postEntryId = "blogEntry" + postIndex;
	var postExcerptId = "postExcerpt" + postIndex;
	var postContentId = "postContent" + postIndex;
	var postExcerpt = document.getElementById(postExcerptId);
	var postContent = document.getElementById(postContentId);
	postExcerpt.className += " w3-show";
	postContent.className = postExcerpt.className.replace(" w3-show", "");
	
	var entries = document.getElementById('entries').childNodes;
	for(var i=0; i<entries.length; i++) 
	{
		if ((entries[i].nodeName.toLowerCase() == 'div') && (entries[i].id != postEntryId) )
		{
		   entries[i].style.display = '';
		}
	}
}

function loadMoreTagEntries(btn)
{
	var disable = false;
	var count = 0;
	var entries = document.getElementById('entries').childNodes;
	for(var i=0; i<entries.length; i++) 
	{
		if ((entries[i].nodeName.toLowerCase() == 'div') && (entries[i].style.display == 'none') )
		{
		   entries[i].style.display = '';
		   count = count + 1;
		}
		if(i == entries.length-1)
			disable = true;
		if(count >= 2)
			break;
	}
	if(disable)
		btn.className += " w3-disabled";
	else
	{
		btn.style.color = "#fff !important";
		btn.style.backgroundColor = "#000 !important";
	}
}

function subscribe(){
	document.getElementById("displayEmailError").style.display = 'none';
	
	var f = $('#contactForm');
	if(!f[0].email.validity.valid)
	{
		document.getElementById("displayEmailError").style.display = '';
		return;
	}
	
	var f_rat = document.getElementById("rat");
	if(f_rat.value != "")
		return;
		
	var f_email = document.getElementById("email");
	var  f_data = "Email="+f_email.value;
	console.log(f_data);
	f_email.value = '';
	$.ajax({
		dataType: "json",
		url: "https://formsapi.jabwn.com/key/RJgPflYOU79fwdeJbPU8",
		method: "POST",
		data: {message: f_data}
	});
	document.getElementById('thank-you').style.display='block';
	return false;
}<commit_msg>added font color to js function<commit_after>// Toggle between hiding and showing blog replies/comments

function myFunction(id) {
    var x = document.getElementById(id);
    if (x.className.indexOf("w3-show") == -1) {
        x.className += " w3-show";
    } else { 
        x.className = x.className.replace(" w3-show", "");
    }
}

function likeFunction(x) {
    x.style.fontWeight = "bold";
    x.innerHTML = "✓ Liked";
}

function readMore(id)
{
	var postIndex = id.slice(-1);
	var postEntryId = "blogEntry" + postIndex;
	var postExcerptId = "postExcerpt" + postIndex;
	var postContentId = "postContent" + postIndex;
	var postExcerpt = document.getElementById(postExcerptId);
	var postContent = document.getElementById(postContentId);
	postExcerpt.className = postExcerpt.className.replace(" w3-show", "");
	postContent.className += " w3-show";
	
	var entries = document.getElementById('entries').childNodes;
	for(var i=0; i<entries.length; i++) 
	{
		if ((entries[i].nodeName.toLowerCase() == 'div') && (entries[i].id != postEntryId) )
		{
		   entries[i].style.display = 'none';
		}
	}
}

function goBack(id)
{
	var postIndex = id.slice(-1);
	var postEntryId = "blogEntry" + postIndex;
	var postExcerptId = "postExcerpt" + postIndex;
	var postContentId = "postContent" + postIndex;
	var postExcerpt = document.getElementById(postExcerptId);
	var postContent = document.getElementById(postContentId);
	postExcerpt.className += " w3-show";
	postContent.className = postExcerpt.className.replace(" w3-show", "");
	
	var entries = document.getElementById('entries').childNodes;
	for(var i=0; i<entries.length; i++) 
	{
		if ((entries[i].nodeName.toLowerCase() == 'div') && (entries[i].id != postEntryId) )
		{
		   entries[i].style.display = '';
		}
	}
}

function loadMoreTagEntries(btn)
{
	var disable = false;
	var count = 0;
	var entries = document.getElementById('entries').childNodes;
	for(var i=0; i<entries.length; i++) 
	{
		if ((entries[i].nodeName.toLowerCase() == 'div') && (entries[i].style.display == 'none') )
		{
		   entries[i].style.display = '';
		   count = count + 1;
		}
		if(i == entries.length-1)
			disable = true;
		if(count >= 2)
			break;
	}
	if(disable)
		btn.className += " w3-disabled";
	else
	{
		btn.style.color = "#fff !important";
		btn.style.backgroundColor = "#000 !important";
	}
}

function subscribe(){
	document.getElementById("displayEmailError").style.display = 'none';
	
	var f = $('#contactForm');
	if(!f[0].email.validity.valid)
	{
		document.getElementById("displayEmailError").style.display = '';
		document.getElementById("displayEmailError").style.fontColor = 'red';
		return;
	}
	
	var f_rat = document.getElementById("rat");
	if(f_rat.value != "")
		return;
		
	var f_email = document.getElementById("email");
	var  f_data = "Email="+f_email.value;
	console.log(f_data);
	f_email.value = '';
	$.ajax({
		dataType: "json",
		url: "https://formsapi.jabwn.com/key/RJgPflYOU79fwdeJbPU8",
		method: "POST",
		data: {message: f_data}
	});
	document.getElementById('thank-you').style.display='block';
	return false;
}
{'fraction_non_alphanumeric': 0.1715751158173395, 'fraction_numerical': 0.00827266710787558, 'mean_word_length': 4.22923875432526, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1149271', 'n_tokens_mistral': 2203, 'n_tokens_neox': 2078, 'n_words': 385}