<commit_before>function validate() {
	console.log("MOO");
	var form = $('.validatedForm').validate({
				rules : {
					email: {
						required : true,
						email: true
					},
					password : {
						required : true,
						minlength : 5
					},
					confirmPassword : {
						required : true,
						minlength : 5,
						equalTo : <PASSWORD>"
					}
				}
			});
	if(form.form()) {
		$('.validatedForm').submit();
	}
}
function addValidate() {
	var addActivityForm = $('.addValidatedForm').validate( {
				rules : {
					activity: {
						required: true
					}

				}
	});

		if(addActivityForm.form()) {
		$('.validatedForm').submit();
	}

}

	<commit_msg>Updated validation for add activity<commit_after>function validate() {
	console.log("MOO");
	var form = $('.validatedForm').validate({
				rules : {
					email: {
						required : true,
						email: true
					},
					password : {
						required : true,
						minlength : 5
					},
					confirmPassword : {
						required : true,
						minlength : 5,
						equalTo : <PASSWORD>"
					}
				}
			});
	if(form.form()) {
		$('.validatedForm').submit();
	}
}
function addValidate() {
	var addActivityForm = $('.addValidatedForm').validate( {
				rules : {
					activity: {
						required: true
					},
					timeSpent: {
						required: true
					}

				}
	});

		if(addActivityForm.form()) {
		$('.validatedForm').submit();
	}
}

	
{'fraction_non_alphanumeric': 0.16546242774566475, 'fraction_numerical': 0.002890173410404624, 'mean_word_length': 2.1405895691609977, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6679793', 'n_tokens_mistral': 650, 'n_tokens_neox': 445, 'n_words': 81}