<commit_before>module ExCite
  module ApplicationHelper
    def build_external_form
      f = ""
      @elements.each do |element|
        # Return input element for no js and not textarea
        f += "<input name=\"#{element[:name]}\" type=\"#{(element[:type].nil?) ? "text" : element[:type]}\" value='#{@value}' />" unless (element[:type] and element[:type].eql?("textarea"))
        # Return textarea element for no js and type=textarea
        f += "<textarea name=\"#{element[:name]}\" id=\"#{element[:name]}\">#{element[:value]}</textarea>" unless (element[:type].nil? or not element[:type].eql?("textarea"))
      end
      return f
    end
  end
end
<commit_msg>Updated for both textarea and input<commit_after>module ExCite
  module ApplicationHelper
    def build_external_form
      f = ""
      @elements.each do |element|
        # Return input element for no js and not textarea
        f += "<input name=\"#{element[:name]}\" type=\"#{(element[:type].nil?) ? "text" : element[:type]}\" value='#{@value}' />" unless (element[:type] and element[:type].eql?("textarea"))
        # Return textarea element for no js and type=textarea
        f += "<textarea name=\"#{element[:name]}\" id=\"#{element[:name]}\">#{@value}</textarea>" unless (element[:type].nil? or not element[:type].eql?("textarea"))
      end
      return f
    end
  end
end

{'fraction_non_alphanumeric': 0.1859778597785978, 'fraction_numerical': 0.0, 'mean_word_length': 3.581081081081081, 'pattern_counts': {'":': 0, '<': 9, '<?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': '356334', 'n_tokens_mistral': 407, 'n_tokens_neox': 398, 'n_words': 111}