<commit_before># Make an input to create a translated input
class SimpleForm::FormBuilder
  def translated_input(attribute_name, options = {})    
    options.reverse_merge! :wrapper_html => {}
    output = "".html_safe

    template.content_tag :div, :class => "form_group" do
      # Because the translated_attribute is a pseudo attribute, we need to find out what input type to make or simple form will just make a string input. 
      input_type = default_input_type(attribute_name, find_attribute_column(attribute_name), {})
      output = input(attribute_name, options)
      options[:wrapper_html].merge!(:class => "translation_field")
      options[:as] = input_type
      output << input("#{attribute_name}_translated", options)
    end

    return output
  end
end<commit_msg>Inheriting input type if set.<commit_after># Make an input to create a translated input
class SimpleForm::FormBuilder
  def translated_input(attribute_name, options = {})    
    options.reverse_merge! :wrapper_html => {}
    output = "".html_safe

    template.content_tag :div, :class => "form_group" do
      # Because the translated_attribute is a pseudo attribute, we need to find out what input type to make or simple form will just make a string input. 
      input_type = default_input_type(attribute_name, find_attribute_column(attribute_name), {})
      output = input(attribute_name, options)
      options[:wrapper_html].merge!(:class => "translation_field")
      options[:as] ||= input_type
      output << input("#{attribute_name}_translated", options)
    end

    return output
  end
end
{'fraction_non_alphanumeric': 0.09371069182389936, 'fraction_numerical': 0.0, 'mean_word_length': 4.165584415584416, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '1778010', 'n_tokens_mistral': 432, 'n_tokens_neox': 427, 'n_words': 137}