<commit_before>/*!
 * Vanillay Mask
 * https://github.com/carlosrberto/VanillaMask
 *
 * Copyright (c) 2014 <NAME>
 *
 * Licensed under a Creative Commons Attribution 3.0 License
 * http://creativecommons.org/licenses/by-sa/3.0/
 *
 * Version: 0.1
 */

(function(global){
    var $ = global.jQuery || false;

    var addEvent = function(evnt, elem, func) {
        if (elem.addEventListener)  // W3C DOM
            elem.addEventListener(evnt,func,false);
        else if (elem.attachEvent) { // IE DOM
            elem.attachEvent("on"+evnt, func);
        }
        else {
            elem[evnt] = func;
        }
    };

    var VanillaMask = function(input, options) {
        var that = this;
        if ($ && input instanceof $) {
            this.jquery = true;
            this.$input = input;
            this.input = input.get(0);
        } else {
            this.jquery = false;
            this.input = input;
        }
        this.options = options;
        this.placeholderChar = /[0-9a-zA-Z]/;
        this.masks = options.masks;
        this.render();
        addEvent('keyup', this.input, function(event){<commit_msg>fix input verification<commit_after>/*!
 * Vanillay Mask
 * https://github.com/carlosrberto/VanillaMask
 *
 * Copyright (c) 2014 <NAME>
 *
 * Licensed under MIT License
 *
 * Version: 0.1
 */

(function(global){
    var $ = global.jQuery || false;

    var addEvent = function(evnt, elem, func) {
        if (elem.addEventListener)  // W3C DOM
            elem.addEventListener(evnt,func,false);
        else if (elem.attachEvent) { // IE DOM
            elem.attachEvent("on"+evnt, func);
        }
        else {
            elem[evnt] = func;
        }
    };

    var VanillaMask = function(input, options) {
        var that = this;

        if (!input || !options) {
            return;
        }

        if ($ && input instanceof $) {
            this.jquery = true;
            this.$input = input;
            this.input = input.get(0);
        } else {
            this.jquery = false;
            this.input = input;
        }
        this.options = options;
        this.placeholderChar = /[0-9a-zA-Z]/;
        this.masks = options.masks;
        this.render();
        addEvent('keyup', this.input, function(event){
{'fraction_non_alphanumeric': 0.13636363636363635, 'fraction_numerical': 0.01059135039717564, 'mean_word_length': 1.7815950920245398, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '4468466', 'n_tokens_mistral': 709, 'n_tokens_neox': 684, 'n_words': 148}