<commit_before><%= form_tag "#{course_reviews_path(course)}", method: "post" do  %>
  

<div id="modal<%= course.id %>" class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <%= label_tag "Add Review" %> </br>
      <%= label_tag "Difficulty: " %>
      <%= select_tag "difficulty", options_for_select([*1..5], "") %>
      <%= label_tag "Rating: " %>
      <%= select_tag "rating", options_for_select([*1..5], "") %>
      <%= hidden_field_tag  :user_id, current_user.id %>
      

<div>      <%= submit_tag nil, :class => 'btn btn-success' %>
    </div>    </div>
  </div>
</div>



<% end %>
<commit_msg>form in plain html to support angular<commit_after><form action="{{reviewUrl(course)}}" method="POST">
   <div id="modal{{course.id}}" class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
     <div class="modal-dialog modal-sm">
       <div class="modal-content">
         <input name="authenticity_token" value="<%= form_authenticity_token %>" type="hidden">
         <%= label_tag "Add Review" %> </br>
         <%= label_tag "Difficulty: " %>
         <%= select_tag "difficulty", options_for_select([*1..5], "") %>
         <%= label_tag "Rating: " %>
         <%= select_tag "rating", options_for_select([*1..5], "") %>
         <%= hidden_field_tag  :user_id, current_user.id %>
         <%= submit_tag nil, :class => 'btn btn-success' %>
       </div>
     </div>
   </div>
</form>

{'fraction_non_alphanumeric': 0.2079453755431409, 'fraction_numerical': 0.006207324643078833, 'mean_word_length': 3.4164383561643836, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 42, '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': '101575', 'n_tokens_mistral': 588, 'n_tokens_neox': 542, 'n_words': 103}