<commit_before>function stearch(inputid, displaymode, classname){
	inputid = "#"+inputid;
	query = $('#search_text').val();
	query = query.toLowerCase();
	
	if(typeof classname === 'undefined'){
		classname = ".searchable_row";
	}else{
		classname = "." + classname;
	}
	
	$(classname).each(function() {
		var str = purifyText($(this).html());
			result_multsearch = 0;
			result_multsearch_check = 0;
			n=query.split(" ");
			for (i = 0; i < n.length; ++i) {
				if(n[i]!=" " && n[i]!=""){
				    b=str.search(n[i]);
				    if(b==-1){
					}else{
						result_multsearch++;
					}
					result_multsearch_check++;
				}
			}

			if(result_multsearch == result_multsearch_check){
				if(typeof displaymode === 'undefined'){
					$(this).css('display','table-row');
				}else{
					$(this).css('display',displaymode);
				}
				
			}else{
				$(this).css('display','none');
			}
	});
}

function purifyText (txt) {
	var intext = txt;
	str = intext.toLowerCase();
	str = str.replace(/<[^>]*>/g, "");
	str = str.replace(/\n/gm, "");
	str = str.replace(/\t/gm, " ");
	return str;
}<commit_msg>element id requirement update<commit_after>function searchTable(elementid, inputid, displaymode, classname){
	
	if(typeof elementid === 'undefined'){
		elementid = "#"+elementid;
	}else{
		alert('You need to provide the element id, this is the first argument');
	}
	
	if(typeof classname === 'undefined'){
		query = $(this).val();
	}else{
		inputid = "#"+inputid;
		query = $(inputid).val();
	}
	
	query = query.toLowerCase();
	
	if(typeof classname === 'undefined'){
		classname = ".searchable_row";
	}else{
		classname = "." + classname;
	}
	
	if(typeof displaymode === 'undefined'){
		displaymode = "block";
	}
	
	$(elementid).children(classname).each(function() {
		var str = purifyText($(this).html());
			result_multsearch = 0;
			result_multsearch_check = 0;
			n=query.split(" ");
			for (i = 0; i < n.length; ++i) {
				if(n[i]!=" " && n[i]!=""){
				    b=str.search(n[i]);
				    if(b==-1){
					}else{
						result_multsearch++;
					}
					result_multsearch_check++;
				}
			}

			if(result_multsearch == result_multsearch_check){
				$(this).css('display',displaymode);
			}else{
				$(this).css('display',displaymode);
			}
	});
}

function purifyText (txt) {
	var intext = txt;
	str = intext.toLowerCase();
	str = str.replace(/<[^>]*>/g, "");
	str = str.replace(/\n/gm, "");
	str = str.replace(/\t/gm, " ");
	return str;
}
{'fraction_non_alphanumeric': 0.21061291649526945, 'fraction_numerical': 0.003290826820238585, 'mean_word_length': 3.413793103448276, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7073463', 'n_tokens_mistral': 1044, 'n_tokens_neox': 884, 'n_words': 160}