<commit_before>

function setupPOC(form, selectEleId) {
	var selectEle = document.getElementById(selectEleId);
	var otext = selectEle.options[selectEle.options.selectedIndex].text;
	if(otext == "[Other]") {
		form.action = "submitPointOfContact.do?dispatch=setup&page=0&location=local";
		form.submit();
	}
	return false;
}

function setupOrgDetailView(form, selectEleId, particleIdEle) {
	var selectEle = document.getElementById(selectEleId);
	var org = selectEle.options[selectEle.options.selectedIndex].text;
	var pocId = selectEle.options[selectEle.options.selectedIndex].value;
	var particleId = null;
	if (document.getElementById(particleIdEle)!=null){
		particleId = document.getElementById(particleIdEle).value;
	}
	var particleStr = "";
	if (particleId!=null){
		particleStr = "&particleId="+particleId;
	}
	if(org != "[Other]") {
		form.action = "submitPointOfContact.do?dispatch=detailView&page=0&location=local" + 
			particleStr+"&pocId="+pocId;
		form.submit();
	}
	return false;
}

function setPOCDetailLink(selectEleId, linkId) {
	var selectEle = document.getElementById(selectEleId);
	var linkEle = document.getElementById(linkId);
	var org = selectEle.options[selectEle.options.selectedIndex].text;
	if(org != "[Other]" && org != "") {
		linkEle.style.display = "inline";
	} else {
		linkEle.style.display = "none";	
	}
}

function setSecondaryPOC(form, selectEleId, pocIndex) {
	var selectEle = document.getElementById(selectEleId);
	var pocId = selectEle.options[selectEle.options.selectedIndex].value;
	if(pocId != "other" && pocId != "") {
		form.action = "submitPointOfContact.do?dispatch=getPointOfContact&pocIndex=" + pocIndex + "&pocId=" + pocId;<commit_msg>updated link for creating new POC<commit_after>

function setupPOC(form, selectEleId) {
	var selectEle = document.getElementById(selectEleId);
	var otext = selectEle.options[selectEle.options.selectedIndex].text;
	if(otext == "[Other]") {
		form.action = "submitNanoparticleSample.do?dispatch=newPointOfContact&page=0";
		form.submit();
	}
	return false;
}

function setPOCDetailLink(selectEleId, linkId) {
	var selectEle = document.getElementById(selectEleId);
	var linkEle = document.getElementById(linkId);
	var org = selectEle.options[selectEle.options.selectedIndex].text;
	if(org != "[Other]" && org != "") {
		linkEle.style.display = "inline";
	} else {
		linkEle.style.display = "none";	
	}
}

function setSecondaryPOC(form, selectEleId, pocIndex) {
	var selectEle = document.getElementById(selectEleId);
	var pocId = selectEle.options[selectEle.options.selectedIndex].value;
	if(pocId != "other" && pocId != "") {
		form.action = "submitPointOfContact.do?dispatch=getPointOfContact&pocIndex=" + pocIndex + "&pocId=" + pocId;
{'fraction_non_alphanumeric': 0.14390872285609127, 'fraction_numerical': 0.001104158998895841, 'mean_word_length': 6.133858267716535, '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': '1755997', 'n_tokens_mistral': 968, 'n_tokens_neox': 901, 'n_words': 148}