<commit_before>module Jqvr
  # Inclui todos os validator padrões do rails no mapped_validators
  module BuiltInValidators
    
    MappedValidators.add :acceptance, "required:true" 
    MappedValidators.add :confirmation, "equalTo:'[name=\"%{model}[%{attribute}_confirmation]\"]'" 
    MappedValidators.add :exclusion, "exclusionIn:%{options[:in]}"
    MappedValidators.add :format, "formatWith:%{options[:with]}" 
    MappedValidators.add :format, "formatWithout:%{options[:without]}" 
    MappedValidators.add :inclusion, "inclusionIn:%{options[:in]}" 
    MappedValidators.add :length, "minlength:%{options[:minimum]}" 
    MappedValidators.add :length, "maxlength:%{options[:maximum]}" 
    MappedValidators.add :length, "rangelength:[%{options[:minimum]},%{options[:maximum]}]", :within 
    MappedValidators.add :length, "rangelength:[%{options[:minimum]},%{options[:maximum]}]", :in 
    # TODO, faltou length is
    MappedValidators.add :numericality, "numericality:true" 
    MappedValidators.add :numericality, "digits:true",:only_integer 
    MappedValidators.add :numericality, "numericalityGreaterThan:%{options[:greater_than]}"
    MappedValidators.add :numericality, "min:%{options[:greater_than_or_equal_to]}" 
    MappedValidators.add :numericality, "numericalityEqualTo:%{options[:equal_to]}"
    MappedValidators.add :numericality, "numericalityLessThan:%{options[:less_than]}"
    MappedValidators.add :numericality, "max:%{options[:less_than_or_equal_to]}" 
    MappedValidators.add :numericality, "numericalityOdd:true",:odd
    MappedValidators.add :numericality, "numericalityEven:true",:even
    MappedValidators.add :presence,"required:true"
    # TODO Fazer depois, pois tem ajax
    # map_validator :uniqueness
  end
end<commit_msg>adicionado o map para confirmation<commit_after>module Jqvr
  # Inclui todos os validator padrões do rails no mapped_validators
  module BuiltInValidators
    
    MappedValidators.add :acceptance, "required:true" 
    MappedValidators.add :confirmation, "confirmation:true" 
    MappedValidators.add :exclusion, "exclusionIn:%{options[:in]}"
    MappedValidators.add :format, "formatWith:%{options[:with]}" 
    MappedValidators.add :format, "formatWithout:%{options[:without]}" 
    MappedValidators.add :inclusion, "inclusionIn:%{options[:in]}" 
    MappedValidators.add :length, "minlength:%{options[:minimum]}" 
    MappedValidators.add :length, "maxlength:%{options[:maximum]}" 
    MappedValidators.add :length, "rangelength:[%{options[:minimum]},%{options[:maximum]}]", :within 
    MappedValidators.add :length, "rangelength:[%{options[:minimum]},%{options[:maximum]}]", :in 
    # TODO, faltou length is
    MappedValidators.add :numericality, "numericality:true" 
    MappedValidators.add :numericality, "digits:true",:only_integer 
    MappedValidators.add :numericality, "numericalityGreaterThan:%{options[:greater_than]}"
    MappedValidators.add :numericality, "min:%{options[:greater_than_or_equal_to]}" 
    MappedValidators.add :numericality, "numericalityEqualTo:%{options[:equal_to]}"
    MappedValidators.add :numericality, "numericalityLessThan:%{options[:less_than]}"
    MappedValidators.add :numericality, "max:%{options[:less_than_or_equal_to]}" 
    MappedValidators.add :numericality, "numericalityOdd:true",:odd
    MappedValidators.add :numericality, "numericalityEven:true",:even
    MappedValidators.add :presence,"required:true"
    # TODO Fazer depois, pois tem ajax
    # map_validator :uniqueness
  end
end
{'fraction_non_alphanumeric': 0.13963449457452884, 'fraction_numerical': 0.0, 'mean_word_length': 6.598698481561822, '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': '1532569', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1144, 'n_words': 179}