<commit_before><%= form_for [@assignment, exam_template],
             html: { multipart: true } do |f| %>
    <%= f.error_messages%>
    <div class='template-pane'>
      <h4>
        <%= link_to t('exam_templates.download'), download_assignment_exam_template_path(id: exam_template.id) %>
      </h4>
      <h4><%= ExamTemplate.human_attribute_name('num_pages') %>: <%= exam_template.num_pages %></h4>
      <h4><%= ExamTemplate.human_attribute_name('filename') %>: <%= exam_template.filename %></h4>
    </div>

    <fieldset>
      <legend><%= t('exam_templates.update.general') %></legend>
      <p><%= raw t('assignment.required_fields') %> <span class='required_field'>*</span></p>
      <%= f.label t('exam_templates.update.instruction') %>
      <%= f.file_field :new_template %>
    </fieldset>

    <fieldset><commit_msg>render out 'name' in the view<commit_after><%= form_for [@assignment, exam_template],
             html: { multipart: true } do |f| %>
    <%= f.error_messages%>
    <div class='template-pane'>
      <h4>
        <%= link_to t('exam_templates.download'), download_assignment_exam_template_path(id: exam_template.id) %>
      </h4>
      <h4><%= ExamTemplate.human_attribute_name('name') %>: <%= exam_template.name %></h4>
      <h4><%= ExamTemplate.human_attribute_name('num_pages') %>: <%= exam_template.num_pages %></h4>
      <h4><%= ExamTemplate.human_attribute_name('filename') %>: <%= exam_template.filename %></h4>
    </div>

    <fieldset>
      <legend><%= t('exam_templates.update.general') %></legend>
      <p><%= raw t('assignment.required_fields') %> <span class='required_field'>*</span></p>
      <%= f.label t('exam_templates.update.instruction') %>
      <%= f.file_field :new_template %>
    </fieldset>

    <fieldset>
{'fraction_non_alphanumeric': 0.19875776397515527, 'fraction_numerical': 0.007905138339920948, 'mean_word_length': 3.8021680216802167, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '4809388', 'n_tokens_mistral': 654, 'n_tokens_neox': 602, 'n_words': 92}