<commit_before>/*
	#How to use:
	
	var myModel = function(){
		ValidationModel.apply(this,arguments);
		this.name = null;
		this.age = null;
		this.email = null;
	};
	myModel.prototype.validations={
		name:{
			rules: ['required'], //will give the default msg
			controlName: "full name"
		},
		age:{
			rules: ['required','number'],
			messages: ["@controlName is mandatory", "@controlName must be a number"],
			controlName: "age"
		},
		email: {
			rules: ['email','custom'],
			messages: ["@controlName is invalid"," "],
			controlName: "email address",
			custom: function(obj){
				//do your stuff
				return {
					code: 121,
					msg: "@controlName is taken already"
				}
			}
		}
	}
*/

var ValidationModel = (function () {
	
	var defaultIsvalid = false; //this is the default value of isValid. Before calling the .validate() function

	//core ValidationModel constructor
	var ValidationModel = function () {
		this.isValid = false;
	};

	//validation error constructor.
	var ValidationError = function (controlName, msg, code) {
		if(!controlName)
			controlName="";
<commit_msg>removing inline example<commit_after>/*
	
*/

var ValidationModel = (function () {
	
	var defaultIsvalid = false; //this is the default value of isValid. Before calling the .validate() function

	//core ValidationModel constructor
	var ValidationModel = function () {
		this.isValid = false;
	};

	//validation error constructor.
	var ValidationError = function (controlName, msg, code) {
		if(!controlName)
			controlName="";

{'fraction_non_alphanumeric': 0.13447593935398813, 'fraction_numerical': 0.001977587343441002, 'mean_word_length': 3.6, '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': '2033372', 'n_tokens_mistral': 522, 'n_tokens_neox': 446, 'n_words': 140}