<commit_before><% dontTotal = false %>
<tr style='<%= ignored_submission_style submission %>'>

  <td>
    <% if submission.version == 0 then %>
      <font size=-2>Unofficial</font>
    <% else %>
      <%= submission.version %>
    <% end %>
  </td>

  <td>
    <% if submission.filename then %>
      <%= render partial: "downloadSubmission", locals: {sub: submission, can_always_download: download_access} %>
    <% else %>
      None
    <% end %>
  </td>

  <td class=smallText><%= submission.created_at %></td>

  <% for problem in @problems do %>
    <td class="prettyBorder">
      <% if @scores[submission.id] and @scores[submission.id][problem.id] and @scores[submission.id][problem.id][:released] == 1 then
        score = @scores[submission.id][problem.id]
        if score[:feedback] or score[:feedback_file] then %>

          <%= link_to (score[:score].to_f.round(1).to_s), {:action=>"viewFeedback",
            :submission=>submission.id,
            :feedback=>problem.id} %>

        <% else %>
          <%= score[:score].to_f.round(1).to_s %>
        <% end %>
      <% else %>
        <% unless problem.optional then
          dontTotal = true
        end %>
        --
      <% end %>
    </td>
  <% end %>

  <% if @course.grace_days >= 0 then %>
    <td title="Submitted <%= submission.days_late %> days late" >
      </nobr>
    </td>
  <% end %>

  <% if @assessment.version_penalty? %>
    <td><%== submission.version_penalty(@effectiveCud) %> <i>(<%= submission.version_over_threshold_by %>)</i></td>
  <% end %>
  
  <td>
    <% if (submission.special_type == Submission::NG) then %>
      NG
    <% elsif (submission.special_type == Submission::EXC) then %>
      EXC
    <% elsif dontTotal then %>
      --
    <% else %>
      <%= computed_score { submission.final_score(@effectiveCud) } %>
    <% end %>
  </td>

  <% if @cud.instructor? then %>
    <td><%== tweak(submission.tweak) %></td>

    <td class="smallText">
      <% if @assessment.has_autograde and submission.version > 0 then %>
        <%= link_to '(Regrade)', regrade_course_assessment_submission_path(@course, @assessment, submission) %>
      <% end %>
      <%= link_to '(Destroy)', course_assessment_submission_path(@course,@assessment,submission), method: :delete %>
      <%= link_to '(Edit)', edit_course_assessment_submission_path(@course, @assessment, submission)  %>
    </td>

    <% if @cud.instructor? %>
      <td style="color: red;"><%= submission.errors.full_messages.join("<br />") %></td><commit_msg>Fixed assessments#history links<commit_after><% dontTotal = false %>
<tr style='<%= ignored_submission_style submission %>'>

  <td>
    <% if submission.version == 0 then %>
      <font size=-2>Unofficial</font>
    <% else %>
      <%= submission.version %>
    <% end %>
  </td>

  <td>
    <% if submission.filename then %>
      <%= render partial: "downloadSubmission", locals: {sub: submission, can_always_download: download_access} %>
    <% else %>
      None
    <% end %>
  </td>

  <td class=smallText><%= submission.created_at %></td>

  <% for problem in @problems do %>
    <td class="prettyBorder">
      <% if @scores[submission.id] and @scores[submission.id][problem.id] and @scores[submission.id][problem.id][:released] == 1 then
        score = @scores[submission.id][problem.id]
        if score[:feedback] or score[:feedback_file] then %>

          <%= link_to (score[:score].to_f.round(1).to_s), {:action=>"viewFeedback",
            :submission=>submission.id,
            :feedback=>problem.id} %>

        <% else %>
          <%= score[:score].to_f.round(1).to_s %>
        <% end %>
      <% else %>
        <% unless problem.optional then
          dontTotal = true
        end %>
        --
      <% end %>
    </td>
  <% end %>

  <% if @course.grace_days >= 0 then %>
    <td title="Submitted <%= submission.days_late %> days late" >
      </nobr>
    </td>
  <% end %>

  <% if @assessment.version_penalty? %>
    <td><%== submission.version_penalty(@effectiveCud) %> <i>(<%= submission.version_over_threshold_by %>)</i></td>
  <% end %>
  
  <td>
    <% if (submission.special_type == Submission::NG) then %>
      NG
    <% elsif (submission.special_type == Submission::EXC) then %>
      EXC
    <% elsif dontTotal then %>
      --
    <% else %>
      <%= computed_score { submission.final_score(@effectiveCud) } %>
    <% end %>
  </td>

  <% if @cud.instructor? then %>
    <td><%== tweak(submission.tweak) %></td>

    <td class="smallText">
      <% if @assessment.has_autograde and submission.version > 0 then %>
        <%= link_to '(Regrade)', [:regrade, @course, @assessment, submission] %>
      <% end %>
      <%= link_to '(Destroy)', [:destroyConfirm, @course, @assessment, submission] %>
      <%= link_to '(Edit)', [:edit, @course, @assessment, submission] %>
    </td>

    <% if @cud.instructor? %>
      <td style="color: red;"><%= submission.errors.full_messages.join("<br />") %></td>
{'fraction_non_alphanumeric': 0.18959257765227913, 'fraction_numerical': 0.0028237192416296895, 'mean_word_length': 2.847168347556245, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 0, '>': 153, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3628115', 'n_tokens_mistral': 1829, 'n_tokens_neox': 1600, 'n_words': 314}