<commit_before><%= form_for([@exercise, @submission], html: {role: 'form'}) do |f| %>
  <% if @submission.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@submission.errors.count, "error") %> prohibited this submission from being saved:</h2>

      <ul>
      <% @submission.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field form-group" >
    <%= f.label :content %><br>
    <%= f.text_area :content, class: 'form-control', value: @previous_submission_content %>
  </div>
  <div class="actions form-group">
    <%= f.submit class: 'btn btn-primary' %>
    <%= link_to t('cancel'),  :back,  class: 'btn btn-default' %>
  </div>
<% end %><commit_msg>Add exercise description on new submission<commit_after><%= form_for([@exercise, @submission], html: {role: 'form'}) do |f| %>
  <% if @submission.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@submission.errors.count, "error") %> prohibited this submission from being saved:</h2>

      <ul>
      <% @submission.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
  <section>
    <p>
      <%= @exercise.description_html %>
    </p>
  </section>
  <div class="field form-group" >
    <%= f.label :content %><br>
    <%= f.text_area :content, class: 'form-control', value: @previous_submission_content %>
  </div>
  <div class="actions form-group">
    <%= f.submit class: 'btn btn-primary' %>
    <%= link_to t('cancel'),  :back,  class: 'btn btn-default' %>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.20959902794653706, 'fraction_numerical': 0.002430133657351154, 'mean_word_length': 3.2339331619537277, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 58, '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': '7311267', 'n_tokens_mistral': 620, 'n_tokens_neox': 564, 'n_words': 130}