<commit_before>module ParsleySimpleForm
  module Validators
    module Presence
      def attribute_validate(*args)
        options = args.extract_options!
        options.merge!({type: :blank})
        args << options
        { 'parsley-required': true, 'parsley-required-message': client_side_error_message(*args) }
      end
    end
  end
end

module ActiveModel
  module Validations<commit_msg>Changed setting type to use :blank in the options[:message] instead of options[:type]. Also change function name to retrieve error message.<commit_after>module ParsleySimpleForm
  module Validators
    module Presence
      def attribute_validate(*args)
        options = args.extract_options!
        options.merge!({message: :blank})
        args << options
        { 'parsley-required': true, 'parsley-required-message': parsley_error_message(*args) }
      end
    end
  end
end

module ActiveModel
  module Validations
{'fraction_non_alphanumeric': 0.08360477741585233, 'fraction_numerical': 0.0, 'mean_word_length': 3.4326923076923075, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5822629', 'n_tokens_mistral': 247, 'n_tokens_neox': 244, 'n_words': 70}