<commit_before>/*
 * formality.js
 *
 * @author <NAME> 
 * @copyright IVARTECH < http://ivartech.com >
 * @since May 2013
 */


//data types: null, boolean, integer, number, string, array (, file)

//elements-basic: text, textarea, checkbox, select, multiple-select, button, file

//elements-advanced: items-list/tags(array), date-picker(string), color-picker(string), number-spinner(number),  multiple-checkboxes(array), threeway(number:-1,0,1), multiple-file(array:files), dropzone(array:files), slider(number)...

//states: default, info, warn, error, load, disabled, tip, valid/ok

//TODO: BUTTON STATES, LOADING, ERROR, SUCCESS
//TODO: CAPTCHA WIDGET
//TODO: FORM SUBMISSION

if (ivar === undefined) var ivar = {};

ivar.namespace('formality');
formality.formAggregator = {};

$(document).ready(function() {
	//console.log(jules.validate('lol',{type: 'string'}));<commit_msg>Connected properly to ivartech.js<commit_after>/*
 * formality.js
 *
 * @author <NAME> 
 * @copyright IVARTECH < http://ivartech.com >
 * @since May 2013
 */


//data types: null, boolean, integer, number, string, array (, file)

//elements-basic: text, textarea, checkbox, select, multiple-select, button, file

//elements-advanced: items-list/tags(array), date-picker(string), color-picker(string), number-spinner(number),  multiple-checkboxes(array), threeway(number:-1,0,1), multiple-file(array:files), dropzone(array:files), slider(number)...

//states: default, info, warn, error, load, disabled, tip, valid/ok

//TODO: BUTTON STATES, LOADING, ERROR, SUCCESS
//TODO: CAPTCHA WIDGET
//TODO: FORM SUBMISSION

if (ivar === undefined) var ivar = {};

ivar.namespace('formality');

ivar.require('ivar.data.jules');

formality.formAggregator = {};

ivar.ready(function() {
	//console.log(jules.validate('lol',{type: 'string'}));
{'fraction_non_alphanumeric': 0.18030973451327434, 'fraction_numerical': 0.007743362831858407, 'mean_word_length': 5.132203389830509, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1008555', 'n_tokens_mistral': 633, 'n_tokens_neox': 610, 'n_words': 139}