<commit_before><!--
function ext_change() {
	if (document.iform.beginport.selectedIndex == 0) {
		document.iform.beginport_cust.disabled = 0;
	} else {
		document.iform.beginport_cust.value = "";
		document.iform.beginport_cust.disabled = 1;
	}
	if (document.iform.endport.selectedIndex == 0) {
		document.iform.endport_cust.disabled = 0;
	} else {
		document.iform.endport_cust.value = "";
		document.iform.endport_cust.disabled = 1;
	}
	if (document.iform.localbeginport.selectedIndex == 0) {
		document.iform.localbeginport_cust.disabled = 0;
	} else {
		document.iform.localbeginport_cust.value = "";
		document.iform.localbeginport_cust.disabled = 1;
	}
}

function ext_rep_change() {
	document.iform.endport.selectedIndex = document.iform.beginport.selectedIndex;
	document.iform.localbeginport.selectedIndex = document.iform.beginport.selectedIndex;
}


function proto_change() {
	if(document.iform.proto.selectedIndex > 3) {
		document.iform.beginport_cust.disabled = 1;
		document.iform.endport_cust.disabled = 1;
		document.iform.beginport.disabled = 1;
		document.iform.endport.disabled = 1;
		document.iform.localbeginport_cust.disabled = 1;
		document.iform.localbeginport.disabled = 1;		
	} else {
		document.iform.beginport_cust.disabled = 0;
		document.iform.endport_cust.disabled = 0;
		document.iform.beginport.disabled = 0;
		document.iform.endport.disabled = 0;
		document.iform.localbeginport_cust.disabled = 0;
		document.iform.localbeginport.disabled = 0;		
	}
	
}

window.onload = function () {
	var oTextbox1 = new AutoSuggestControl(document.getElementById("localip"), new StateSuggestions(addressarray));
	var oTextbox2 = new AutoSuggestControl(document.getElementById("beginport_cust"), new StateSuggestions(customarray));
	var oTextbox3 = new AutoSuggestControl(document.getElementById("endport_cust"), new StateSuggestions(customarray));
	var oTextbox4 = new AutoSuggestControl(document.getElementById("localbeginport_cust"), new StateSuggestions(customarray));
}

//--><commit_msg>Correctly disable for GRE too..<commit_after><!--
function ext_change() {
	if (document.iform.beginport.selectedIndex == 0) {
		document.iform.beginport_cust.disabled = 0;
	} else {
		document.iform.beginport_cust.value = "";
		document.iform.beginport_cust.disabled = 1;
	}
	if (document.iform.endport.selectedIndex == 0) {
		document.iform.endport_cust.disabled = 0;
	} else {
		document.iform.endport_cust.value = "";
		document.iform.endport_cust.disabled = 1;
	}
	if (document.iform.localbeginport.selectedIndex == 0) {
		document.iform.localbeginport_cust.disabled = 0;
	} else {
		document.iform.localbeginport_cust.value = "";
		document.iform.localbeginport_cust.disabled = 1;
	}
}

function ext_rep_change() {
	document.iform.endport.selectedIndex = document.iform.beginport.selectedIndex;
	document.iform.localbeginport.selectedIndex = document.iform.beginport.selectedIndex;
}


function proto_change() {
	if(document.iform.proto.selectedIndex > 2) {
		document.iform.beginport_cust.disabled = 1;
		document.iform.endport_cust.disabled = 1;
		document.iform.beginport.disabled = 1;
		document.iform.endport.disabled = 1;
		document.iform.localbeginport_cust.disabled = 1;
		document.iform.localbeginport.disabled = 1;		
	} else {
		document.iform.beginport_cust.disabled = 0;
		document.iform.endport_cust.disabled = 0;
		document.iform.beginport.disabled = 0;
		document.iform.endport.disabled = 0;
		document.iform.localbeginport_cust.disabled = 0;
		document.iform.localbeginport.disabled = 0;		
	}
	
}

window.onload = function () {
	var oTextbox1 = new AutoSuggestControl(document.getElementById("localip"), new StateSuggestions(addressarray));
	var oTextbox2 = new AutoSuggestControl(document.getElementById("beginport_cust"), new StateSuggestions(customarray));
	var oTextbox3 = new AutoSuggestControl(document.getElementById("endport_cust"), new StateSuggestions(customarray));
	var oTextbox4 = new AutoSuggestControl(document.getElementById("localbeginport_cust"), new StateSuggestions(customarray));
}

//-->
{'fraction_non_alphanumeric': 0.12320633349826818, 'fraction_numerical': 0.012864918357248886, 'mean_word_length': 5.248840803709428, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5935565', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1302, 'n_words': 186}