<commit_before>/**
 * changes the color of a selected paragraph when hovered over
 **/
function mouseOver(){
	document.getElementById("color").style.color = "red";
}

/**
 * changes the color of a selected paragraph back when mose removed
 **/
function mouseOut(){
	document.getElementById("color").style.color = "black";
}

/**
 * function using regular expressions to find a given string and replace it with another given string
 **/
function findReplace(){
	var find = document.getElementById("find").value;
	var replace = document.getElementById("replace").value;
	//var regex = new RegExp(/ + find + /, i);
	document.getElementById("toreplace").innerHTML = document.getElementById("toreplace").innerHTML.replace(/river/i, replace);<commit_msg>Regular expression working for all entries (though case sensitive) for a pre-defined value<commit_after>/**
 * changes the color of a selected paragraph when hovered over
 **/
function mouseOver(){
	document.getElementById("color").style.color = "red";
}

/**
 * changes the color of a selected paragraph back when mose removed
 **/
function mouseOut(){
	document.getElementById("color").style.color = "black";
}

/**
 * function using regular expressions to find a given string and replace it with another given string
 **/
function findReplace(){
	var find = document.getElementById("find").value;
	var replace = document.getElementById("replace").value;
	//var regex = new RegExp(/ + find + /, i);
	document.getElementById("toreplace").innerHTML = document.getElementById("toreplace").innerHTML.replace(/River/g, replace);
{'fraction_non_alphanumeric': 0.13413858868404324, 'fraction_numerical': 0.0, 'mean_word_length': 5.10077519379845, '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': '4958758', 'n_tokens_mistral': 401, 'n_tokens_neox': 399, 'n_words': 137}