<commit_before>import config from 'config';
import API from 'api';
import {_} from 'i18n';
import {setattr, isObject} from 'utils';
import log from 'logger';
import moment from 'moment';
import $ from 'jquery'
import 'jquery-validation-dist';

// jQuery validate
$.extend($.validator.messages, {
    required: _('valid-required'),
    remote: _('valid-remote'),
    email: _('valid-email'),
    url: _('valid-url'),
    date: _('valid-date'),
    dateISO: _('valid-date-iso'),
    number: _('valid-number'),
    digits: _('valid-digits'),
    creditcard: _('valid-creditcard'),
    equalTo: _('valid-equal-to'),
    maxlength: $.validator.format(_('valid-maxlength')),
    minlength: $.validator.format(_('valid-minlength')),
    rangelength: $.validator.format(_('valid-range-length')),
    range: $.validator.format(_('valid-range')),
    max: $.validator.format(_('valid-max')),
    min: $.validator.format(_('valid-min'))
});


/**
 *  Rule for depend dates, should be greater that param.
 */<commit_msg>Remove i18next warning for jquery-validate non interpolated variables<commit_after>import config from 'config';
import API from 'api';
import {_} from 'i18n';
import {setattr, isObject} from 'utils';
import log from 'logger';
import moment from 'moment';
import $ from 'jquery'
import 'jquery-validation-dist';

// Remove warning for non-interpolated variables
const interpolation = {defaultVariables:{'O': '{O}', '1': '{1}', 'ISO': '{ISO}'}};

// jQuery validate
$.extend($.validator.messages, {
    required: _('valid-required'),
    remote: _('valid-remote'),
    email: _('valid-email'),
    url: _('valid-url'),
    date: _('valid-date'),
    dateISO: _('valid-date-iso', {interpolation: interpolation}),
    number: _('valid-number'),
    digits: _('valid-digits'),
    creditcard: _('valid-creditcard'),
    equalTo: _('valid-equal-to'),
    maxlength: $.validator.format(_('valid-maxlength', {interpolation: interpolation})),
    minlength: $.validator.format(_('valid-minlength', {interpolation: interpolation})),
    rangelength: $.validator.format(_('valid-range-length', {interpolation: interpolation})),
    range: $.validator.format(_('valid-range', {interpolation: interpolation})),
    max: $.validator.format(_('valid-max', {interpolation: interpolation})),
    min: $.validator.format(_('valid-min', {interpolation: interpolation}))
});


/**
 *  Rule for depend dates, should be greater that param.
 */
{'fraction_non_alphanumeric': 0.18937834499794154, 'fraction_numerical': 0.0032935364347468094, 'mean_word_length': 4.731132075471698, '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': '4204671', 'n_tokens_mistral': 748, 'n_tokens_neox': 753, 'n_words': 180}