<commit_before>var doExtract = function (url, callback) {
	$.getJSON('get-meaning', {'url': url}, callback);
};

/*
function removeAllChildren(elem){
	if ( elem.hasChildNodes() ){
		while (elem.childNodes.length >= 1 )
		{
			elem.removeChild( elem.firstChild );	   
		} 
	}
}

function doExtract(){
	document.getElementById('doExtract').disable=true;
	var resultDiv = document.getElementById('extractionresult');
	removeAllChildren(resultDiv);
	var url = document.getElementById('url').value;
	$.getJSON("get-meaning?url="+url,renderResult);
	document.getElementById('doExtract').disable=false;
}



function renderResult(jsonObj){
	var resultDiv = document.getElementById('extractionresult');
	
	var tableNode = document.createElement('table');
	tableNode.setAttribute('align','center');
	tableNode.setAttribute('border','1');
	resultDiv.appendChild(tableNode);
	var rowNode = document.createElement("tr");
	tableNode.appendChild(rowNode);
	var imgCell = document.createElement("td");
	rowNode.appendChild(imgCell);
	
	var imgNode = document.createElement("img");
	imgCell.appendChild(imgNode);
	imgNode.setAttribute('src',jsonObj.image);
	
	var subTableCell = document.createElement(td);
	rowNode.appendChild(subTableCell);
	var subTableNode = document.createElement("table");
	subTableNode.setAttribute('width','100%');
	subTableNode.setAttribute('border','1');
	subTableCell.appendChild(subTableNode);
	
	
	
}*/<commit_msg>remove unused js code.<commit_after>var doExtract = function (url, callback) {
	$.getJSON('get-meaning', {'url': url}, callback);
};

{'fraction_non_alphanumeric': 0.15951313260730302, 'fraction_numerical': 0.003843689942344651, 'mean_word_length': 6.732673267326732, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6075726', 'n_tokens_mistral': 478, 'n_tokens_neox': 465, 'n_words': 76}