<commit_before><%= form_for exam_template,
             as: :exam_template,
             url: assignment_exam_templates_path,
             html: {multipart: true} do |f| %>
    <%= f.error_messages%>
    <div class='template-pane'>
      <h4>
        <%= link_to 'Download Exam Template', {:action=>'download', :controller=>'exam_templates', :id=>exam_template.id} %>
      </h4>
      <h4>Number of pages: <%= exam_template.num_pages %></h4>
      <h4>Name of file: <%= exam_template.filename %></h4>
    </div>

    <fieldset>
      <legend><%= t("Update Exam Template") %></legend>
      <p><%= raw t("assignment.required_fields") %> <span class='required_field'>*</span></p>

      <%= f.file_field :new_template %>
      <%= submit_tag t(:submit)%>
    </fieldset>
<% end %><commit_msg>changed the views for uploading exam templates<commit_after><%= form_for exam_template,
             as: :exam_template,
             url: assignment_exam_templates_path,
             html: {multipart: true} do |f| %>
    <%= f.error_messages%>
    <div class='template-pane'>
      <h4>
        <%= link_to 'Download Exam Template', {:action=>'download', :controller=>'exam_templates', :id=>exam_template.id} %>
      </h4>
      <h4>Number of pages: <%= exam_template.num_pages %></h4>
      <h4>Name of file: <%= exam_template.filename %></h4>
    </div>

    <fieldset>
      <legend><%= t("Update Exam Template") %></legend>
      <p><%= raw t("assignment.required_fields") %> <span class='required_field'>*</span></p>
      <%= f.label 'Upload New Template' %>
      <%= f.file_field :new_template %>
      <p><%= submit_tag t(:submit)%></p>
    </fieldset>
<% end %>
{'fraction_non_alphanumeric': 0.19050480769230768, 'fraction_numerical': 0.007211538461538462, 'mean_word_length': 3.0609756097560976, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 64, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5202511', 'n_tokens_mistral': 603, 'n_tokens_neox': 557, 'n_words': 115}