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

	/*validation*/
	$("#contactForm").validate({

		// setup handling of form errors
		debug: true,
		errorClass: "alert alert-danger",
		errorLabelContainer: "#output-area",
		errorElement: "div",

		// rules define what is good/bad input
		// each rule starts with the form input element's NAME attribute
		rules: {
			name: {
				required: true,
				maxlength: 45
			},
			email: {
				email: true,
				required: true
			},
			message: {
				required: true,
				minlength: 2,
				maxlength: 10
			}
		},

		// error messages to display to the end user
		messages: {
			name: {
				required: "Please enter name."
			},
			email: {
				email: "Please enter a valid email address.",
				required: "Please enter a valid email address."
			},
			message: {
				required: "Please enter a message.",
				minlength: "Please enter a message.",
				maxlength: "2000 characters max."
			}
		},
		submitHandler: function(form) {
			$("#contactForm").ajaxSubmit({
				type: "POST",
				url: $("#contactForm").attr("action"),

				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<commit_msg>setting connection with validation<commit_after>	$(document).ready(function(){

	/*validation*/
	$("#contactForm").validate({

		// setup handling of form errors
		debug: true,
		errorClass: "alert alert-danger",
		errorLabelContainer: "#output-area",
		errorElement: "div",

		// rules define what is good/bad input
		// each rule starts with the form input element's NAME attribute
		rules: {
			name: {
				required: true,
				maxlength: 45
			},
			email: {
				email: true,
				required: true
			},
			message: {
				required: true,
				minlength: 2,
				maxlength: 10
			}
		},

		// error messages to display to the end user
		messages: {
			name: {
				required: "Please enter name."
			},
			email: {
				email: "Please enter a valid email address.",
				required: "Please enter a valid email address."
			},
			message: {
				required: "Please enter a message.",
				minlength: "Please enter a message.",
				maxlength: "2000 characters max."
			}
		},

		submitHandler: function(form) {
			$("#contactForm").ajaxSubmit({
				type: "POST",
				url: $("#contactForm").attr("action"),

				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
{'fraction_non_alphanumeric': 0.140625, 'fraction_numerical': 0.006696428571428571, 'mean_word_length': 2.8250355618776672, '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': '2612025', 'n_tokens_mistral': 1026, 'n_tokens_neox': 778, 'n_words': 256}