<commit_before>var vForm = document.getElementById('mgform');
var vInput = document.getElementById('mail');

vForm.onsubmit = function() {
	if (this.hid == "bulk") {
		location = "/submit/" + encodeURIComponent(vInput.value);
	}
	if (this.hid == "list") {
		location = "/validate/" + encodeURIComponent(vInput.value);
	}
	if (this.hid == "inv") {
		location = "/invoice/" + encodeURIComponent(vInput.value);
	}

	return false;
}<commit_msg>Fix JS bug<commit_after>var vForm = document.getElementById('mgform');
var vInput = document.getElementById('mail');
var vBody = document.getElementById('mailBody');
var location;
vForm.onsubmit = function() {
	if (this.hid == "bulk") {
		location = "/submit/" + encodeURIComponent(vInput.value)+"/"+encodeURIComponent(vBody.value);
	}
	if (this.hid == "list") {
		location = "/validate/" + encodeURIComponent(vInput.value);
	}
	if (this.hid == "inv") {
		location = "/invoice/" + encodeURIComponent(vInput.value)+"/"+encodeURIComponent(vBody.value);
	}

	return false;
}
{'fraction_non_alphanumeric': 0.18397626112759644, 'fraction_numerical': 0.0, 'mean_word_length': 5.059880239520958, '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': '6012501', 'n_tokens_mistral': 344, 'n_tokens_neox': 356, 'n_words': 63}