<commit_before>%h1 #{@form_type}
%p
  %font{:color => "Crimson"} #{@error}


-@list_of_questions.each do |question|
  %a 
    %font{:color => "008B8B"} #{question.question} 
  %br
  -if (question.question_type == "radio_button")
    -String(String(question.answers)[1..-2]).split(', ').each do |choice|
      =radio_button_tag(:ans, "#{choice}")
      =label_tag(:tag, "#{choice}")
      &nbsp
  -elsif (question.question_type == "statement")
  -elsif (question.question_type == "message")
    %textarea{:cols => "35", :name => "#{@form_type}[#{question.order}]", :rows => "6"} 
  -elsif (question.question_type == "textbox")
    %input{:name => "#{@form_type}[#{question.order}]", :type => "text"}

  / = radio_button_tag(:age, "child")
  / = label_tag(:age_child, "I am younger than 21")
  / = radio_button_tag(:age, "adult")
  / = label_tag(:age_adult, "I'm over 21")
  %hr
=link_to 'Save and Return', form_user_path(:save => true)
=link_to 'Submit Form', form_user_path(:submit => true, :type => @form_type)<commit_msg>change name tag for form qestion in view<commit_after>%h1 #{@form_type}
%p
  %font{:color => "Crimson"} #{@error}


-@list_of_questions.each do |question|
  %a 
    %font{:color => "008B8B"} #{question.question} 
  %br
  -if (question.question_type == "radio_button")
    -String(String(question.answers)[1..-2]).split(', ').each do |choice|
      =radio_button_tag(:ans, "#{choice}")
      =label_tag(:tag, "#{choice}")
      &nbsp
  -elsif (question.question_type == "statement")
  -elsif (question.question_type == "message")
    %textarea{:cols => "35", :name => "#{question.question}]", :rows => "6"} 
  -elsif (question.question_type == "textbox")
    %input{:name => "#{question.question}", :type => "text"}
  %hr
=link_to 'Save and Return', form_user_path(:save => true)
=link_to 'Submit Form', form_user_path(:submit => true, :type => @form_type)
{'fraction_non_alphanumeric': 0.21512247071352503, 'fraction_numerical': 0.012779552715654952, 'mean_word_length': 4.57566765578635, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '2123218', 'n_tokens_mistral': 712, 'n_tokens_neox': 687, 'n_words': 138}