<commit_before>var InputMask = function ( options ) {
  if ( options && options.masked ) {
    // Make it easy to wrap this plugin and pass elements instead of a selector
    options.masked = typeof options.masked === string ? document.querySelectorAll( options.masked ) : options.masked;
  }

  if ( options ) {
    this.options = {
      masked: options.masked || document.querySelectorAll( this.defaults.masked ),
      maskedNumber: options.maskedNumber || this.defaults.maskedNumber,
      maskedLetter: options.maskedLetter || this.defaults.maskedLetter,
      error: options.onError || this.defaults.onError
    }
  } else {
    this.options = this.defaults;
    this.options.masked = document.querySelectorAll( this.options.masked );
  }

  this.refresh( true );
};

var inputMask = {

  // Default Values
  defaults: {
    masked : '.masked',
    maskedNumber : 'XdDmMyY9',
    maskedLetter : '_',
    noValidate: '',
    omError: function(){}
  },

  refresh: function(init) {
    var input, parentClass;

    if ( !init ) {
      this.options.masked = document.querySelectorAll( this.options.masked );
    }

    for(i = 0; i < this.options.masked.length; i++) {
      input = this.options.masked[i]
      parentClass = input.parentNode.getAttribute('class');

      if ( !parentClass || ( parentClass && parentClass.indexOf('shell') === -1 ) ) {
        this.createShell(input);
        if ( this.options.noValidate ) {
          this.noValidateSetup(input);
        }
        this.activateMasking(input);
      }
    }
  },

  noValidate: function(input) {
    this.getForm( input ).setAttribute('noValidate',true);<commit_msg>on error typo<commit_after>var InputMask = function ( options ) {
  if ( options && options.masked ) {
    // Make it easy to wrap this plugin and pass elements instead of a selector
    options.masked = typeof options.masked === string ? document.querySelectorAll( options.masked ) : options.masked;
  }

  if ( options ) {
    this.options = {
      masked: options.masked || document.querySelectorAll( this.defaults.masked ),
      maskedNumber: options.maskedNumber || this.defaults.maskedNumber,
      maskedLetter: options.maskedLetter || this.defaults.maskedLetter,
      error: options.onError || this.defaults.onError
    }
  } else {
    this.options = this.defaults;
    this.options.masked = document.querySelectorAll( this.options.masked );
  }

  this.refresh( true );
};

var inputMask = {

  // Default Values
  defaults: {
    masked : '.masked',
    maskedNumber : 'XdDmMyY9',
    maskedLetter : '_',
    noValidate: '',
    onError: function(){}
  },

  refresh: function(init) {
    var input, parentClass;

    if ( !init ) {
      this.options.masked = document.querySelectorAll( this.options.masked );
    }

    for(i = 0; i < this.options.masked.length; i++) {
      input = this.options.masked[i]
      parentClass = input.parentNode.getAttribute('class');

      if ( !parentClass || ( parentClass && parentClass.indexOf('shell') === -1 ) ) {
        this.createShell(input);
        if ( this.options.noValidate ) {
          this.noValidateSetup(input);
        }
        this.activateMasking(input);
      }
    }
  },

  noValidate: function(input) {
    this.getForm( input ).setAttribute('noValidate',true);
{'fraction_non_alphanumeric': 0.13353658536585367, 'fraction_numerical': 0.001829268292682927, 'mean_word_length': 2.8828402366863903, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4076753', 'n_tokens_mistral': 1012, 'n_tokens_neox': 1007, 'n_words': 199}