<commit_before><%= render 'error' %>

<div class="form-group">
  <%= form_for :quiz, url: quizzes_path do |f| %>
    <%= f.label :title %>
    <%= f.text_field :title, class: 'form-control' %><br>
    <%= f.label :body %>
    <%= f.text_area :body, class: 'form-control' %><br>
    <%= f.label :level %>
    <%= f.number_field :level, class: 'form-control' %><br>

    Select a category<br>
    <% @categories.each do |c| %>

    <%= f.radio_button(:category_id, c.id) %>
    <%= f.label(:category_id, c.title ) %>
    <br>
    <% end %> 

    <%= f.submit class: "btn btn-success" %>
    <%= button_tag "Reset", type: :reset, class: "btn btn-danger" %>
  <% end %>
</div>
<commit_msg>add radio buttons for 'level'<commit_after><%= render 'error' %>

<div class="form-group">
  <%= form_for :quiz, url: quizzes_path do |f| %>
    <%= f.label :title %>
    <%= f.text_field :title, class: 'form-control' %><br>
    <%= f.label :body %>
    <%= f.text_area :body, class: 'form-control' %><br>
    

    <%= f.label :level %>
    <%= f.radio_button :level, "1", :checked => true %>
    <%= f.label :"1", "1", :value => "1" %> 
    <%= f.radio_button :level, "2" %>
    <%= f.label :level, "2", :value => "2" %>
    <%= f.radio_button :level, "3" %>
    <%= f.label :level, "3", :value => "3" %>
    <br>

    Select a category<br>
    <% @categories.each do |c| %>

    <%= f.radio_button(:category_id, c.id) %>
    <%= f.label(:category_id, c.title ) %>
    <br>
    <% end %> 

    <%= f.submit class: "btn btn-success" %>
    <%= button_tag "Reset", type: :reset, class: "btn btn-danger" %>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.24362958359229334, 'fraction_numerical': 0.006215040397762586, 'mean_word_length': 2.907766990291262, 'pattern_counts': {'":': 0, '<': 52, '<?xml version=': 0, '>': 56, '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': '2113904', 'n_tokens_mistral': 704, 'n_tokens_neox': 626, 'n_words': 140}