<commit_before>class YogoFormBuilder < ActionView::Helpers::FormBuilder
  helpers = field_helpers +
  %w(date_select datetime_select time_select collection_select calendar_date_select) +
  %w(collection_select select country_select time_zone_select) -
  %w(hidden_field label fields_for)

  # Creates the correct form field element for a DataMapper Type
  #
  # @author <NAME> <EMAIL>
  #
  # @api private
  helpers.each do |name|
    define_method(name) do |field, *args|
      options = args.last.is_a?(Hash) ? args.pop : {}
      args << options.except(:label, :sub_label)
      locals = { :element => super(field, *args), :label => label(field, options[:label]), :sub_label => options[:sub_label]}
      @template.capture do
        @template.render(:partial => 'forms/field', :locals => locals)
      end
    end
  end<commit_msg>set prettier defaults for text areas<commit_after>class YogoFormBuilder < ActionView::Helpers::FormBuilder
  helpers = field_helpers +
  %w(date_select datetime_select time_select collection_select calendar_date_select) +
  %w(collection_select select country_select time_zone_select) -
  %w(hidden_field label fields_for text_area)

  # Creates the correct form field element for a DataMapper Type
  #
  # @author <NAME> <EMAIL>
  #
  # @api private
  helpers.each do |name|
    define_method(name) do |field, *args|
      options = args.last.is_a?(Hash) ? args.pop : {}
      args << options.except(:label, :sub_label)
      locals = { :element => super(field, *args), :label => label(field, options[:label]), :sub_label => options[:sub_label]}
      @template.capture do
        @template.render(:partial => 'forms/field', :locals => locals)
      end
    end
  end
  
  # Set the default rows/cols for a text_area to look prettier
  #
  # @author <NAME> <EMAIL>.com
  #
  # @api private
  def text_area(field, *args)
    options = args.last.is_a?(Hash) ? args.pop : {}
    options[:rows] ||= 7
    options[:cols] ||= 50
    args << options.except(:label, :sub_label)
    locals = { :element => super(field, *args), :label => label(field, options[:label]), :sub_label => options[:sub_label]}
    @template.capture do
      @template.render(:partial => 'forms/field', :locals => locals)
    end
  end
{'fraction_non_alphanumeric': 0.13276709879302637, 'fraction_numerical': 0.0013410818059901655, 'mean_word_length': 3.9186813186813185, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 24, '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': '1040228', 'n_tokens_mistral': 711, 'n_tokens_neox': 715, 'n_words': 176}