<commit_before>$(document).ready(function(){

	// jQuery Form Processor
	$('#myform').submit(function(e){
		// grab the form. Use the form id
		var form = $('#myform');

		// send form data to mailer.php
		$.ajax({
			type: 'POST',
			url: form.attr('action'),
			data: form.serialize(),
			success: function(ajaxOutput) {
				// clear the output area's formatting
				$("#output-area").css("display", "");

				// write the server's reply to the output area
				$("#output-area").html(ajaxOutput);

				// reset the form if it was successful
				if($(".alert-success").length >= 1) {
					$("#myform")[0].reset();
				}
			}
		});
		e.preventDefault();
	});// end jQuery Form Processor

});/*end document.ready()*/<commit_msg>trying event listener<commit_after>$(document).ready(function(){

	// jQuery Form Processor
	$('#myform').submit(function(e){
		// grab the form. Use the form id
		var form = $('#myform');

		// send form data to mailer.php
		$.ajax({
			type: 'POST',
			url: form.attr('action'),
			data: form.serialize(),
			success: function(ajaxOutput) {
				// clear the output area's formatting
				$("#output-area").css("display", "");

				// write the server's reply to the output area
				$("#output-area").html(ajaxOutput);

				// reset the form if it was successful
				if($(".alert-success").length >= 1) {
					$("#myform")[0].reset();
				}
			}
		});
		e.preventDefault();
	});// end jQuery Form Processor

});/*end document.ready()*/

/* document.getElementById("form").addEventListener("submit", function(e) {
 e.preventDefault();
 var msg = e.currentTarget.getElementById("msg").value.trim();
 if (msg) {
 alert(msg);
 }
 }, false);


{'fraction_non_alphanumeric': 0.2006006006006006, 'fraction_numerical': 0.0024024024024024023, 'mean_word_length': 3.2938144329896906, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5415306', 'n_tokens_mistral': 599, 'n_tokens_neox': 512, 'n_words': 133}