<commit_before><div class="page-header">
  <h1>Mission Grading: <%= @mission.title %></h1>
</div>

<input type="hidden" value="<%= course_assessment_mission_dump_code_path %>" id="dump_url" />

<% if @my_std_courses.size > 0 %>
  <h3>My Students</h3>

  <% if @mission.single_question? and @mission.questions.coding.first %>
    <input type="button" id="dump_sub_mine" class="btn dump_sub" value="Download Submissions">
  <% end %>

  <table class="table">
    <thead>
      <th>Student</th>
      <th>Status</th>
      <th>Grade</th>
    </thead>
    <tbody>
      <% @my_std_courses.each do |std| %>
        <% sub = @submissions.select {|sub| sub.std_course == std }.first %>
        <tr>
          <% if sub %>
            <td><a href="<%= course_mission_submission_path(@course, @mission, sub) %>"><%= std.name %></a> </td>
          <% else %>
            <td><%= std.name %></td>
          <% end %>
          <td><%= sub ? sub.status.capitalize : '<span class="not-started">Not Started</span>'.html_safe %></td>
          <td><%= (sub and sub.final_grading) ? sub.final_grading.total_grade : 0 %>/ <%= @mission.max_grade %></td>
        </tr>
      <% end %>
    </tbody>

  </table>
<% end %>

<h3>All Students</h3>
<% if @mission.single_question? and @mission.questions.coding.first %>
    <input type="button" id="dump_sub_all" class="btn dump_sub" value="Download Submissions">
<% end %>
<table class="table">
  <thead>
  <th>Student</th>
  <th>Tutor</th>
  <th>Status</th>
  <th>Grade</th>
  </thead>
  <tbody>
  <% @std_courses.each do |std| %>
      <% sub = @submissions.select {|sub| sub.std_course == std }.first %>
      <tr>
        <% if sub %>
            <td><a href="<%= course_assessment_mission_assessment_submission_path(@course, @mission, sub) %>"><%= std.name %></a> </td>
        <% else %>
            <td><%= std.name %></td>
        <% end %>
        <td><%= std.get_my_tutor_name %></td>
        <td><%= sub ? sub.status.capitalize : '<span class="not-started">Not Started</span>'.html_safe %></td>
        <td><%= (sub and sub.final_grading) ? sub.final_grading.total_grade : 0 %>/ <%= @mission.max_grade %></td>
      </tr>
  <% end %>
  </tbody>
</table>

<% if @stats_paging.display? %>
  <%= paginate @std_courses %>
<% end %>

<% if @std_courses_phantom.length > 0 %>
  <h3>Phantom Students</h3>
  <% if @mission.single_question? and @mission.coding_questions.first %>
    <input type="button" id="dump_sub_phantom" class="btn dump_sub" value="Download Submissions">
  <% end %>

  <table class="table">
    <thead>
      <th>Student</th>
      <th>Tutor</th>
      <th>Status</th>
      <th>Grade</th>
    </thead>
    <tbody>
      <% @std_courses_phantom.each do |std| %>
        <% sub = @submissions.select {|sub| sub.std_course == std }.first %>
        <tr>
          <% if sub %>
            <td><a href="<%= course_mission_submission_path(@course, @mission, sub) %>"><%= std.name %></a> </td>
          <% else %><commit_msg>Fix broken identifier references.<commit_after><div class="page-header">
  <h1>Mission Grading: <%= @mission.title %></h1>
</div>

<input type="hidden" value="<%= course_assessment_mission_dump_code_path %>" id="dump_url" />

<% if @my_std_courses.size > 0 %>
  <h3>My Students</h3>

  <% if @mission.single_question? and @mission.questions.coding.first %>
    <input type="button" id="dump_sub_mine" class="btn dump_sub" value="Download Submissions">
  <% end %>

  <table class="table">
    <thead>
      <th>Student</th>
      <th>Status</th>
      <th>Grade</th>
    </thead>
    <tbody>
      <% @my_std_courses.each do |std| %>
        <% sub = @submissions.select {|sub| sub.std_course == std }.first %>
        <tr>
          <% if sub %>
            <td><a href="<%= course_mission_submission_path(@course, @mission, sub) %>"><%= std.name %></a> </td>
          <% else %>
            <td><%= std.name %></td>
          <% end %>
          <td><%= sub ? sub.status.capitalize : '<span class="not-started">Not Started</span>'.html_safe %></td>
          <td><%= (sub and sub.final_grading) ? sub.final_grading.total_grade : 0 %>/ <%= @mission.max_grade %></td>
        </tr>
      <% end %>
    </tbody>

  </table>
<% end %>

<h3>All Students</h3>
<% if @mission.single_question? and @mission.questions.coding.first %>
    <input type="button" id="dump_sub_all" class="btn dump_sub" value="Download Submissions">
<% end %>
<table class="table">
  <thead>
  <th>Student</th>
  <th>Tutor</th>
  <th>Status</th>
  <th>Grade</th>
  </thead>
  <tbody>
  <% @std_courses.each do |std| %>
      <% sub = @submissions.select {|sub| sub.std_course == std }.first %>
      <tr>
        <% if sub %>
            <td><a href="<%= course_assessment_mission_assessment_submission_path(@course, @mission, sub) %>"><%= std.name %></a> </td>
        <% else %>
            <td><%= std.name %></td>
        <% end %>
        <td><%= std.get_my_tutor_name %></td>
        <td><%= sub ? sub.status.capitalize : '<span class="not-started">Not Started</span>'.html_safe %></td>
        <td><%= (sub and sub.grade) ? sub.grade : 0 %> / <%= @mission.max_grade %></td>
      </tr>
  <% end %>
  </tbody>
</table>

<% if @stats_paging.display? %>
  <%= paginate @std_courses %>
<% end %>

<% if @std_courses_phantom.length > 0 %>
  <h3>Phantom Students</h3>
  <% if @mission.single_question? and @mission.questions.coding.count > 0 %>
    <input type="button" id="dump_sub_phantom" class="btn dump_sub" value="Download Submissions">
  <% end %>

  <table class="table">
    <thead>
      <th>Student</th>
      <th>Tutor</th>
      <th>Status</th>
      <th>Grade</th>
    </thead>
    <tbody>
      <% @std_courses_phantom.each do |std| %>
        <% sub = @submissions.select {|sub| sub.std_course == std }.first %>
        <tr>
          <% if sub %>
            <td><a href="<%= course_assessment_mission_assessment_submission_path(@course, @mission, sub) %>"><%= std.name %></a> </td>
          <% else %>
{'fraction_non_alphanumeric': 0.21049103402044578, 'fraction_numerical': 0.004189710072063013, 'mean_word_length': 2.8803641092327696, 'pattern_counts': {'":': 0, '<': 267, '<?xml version=': 0, '>': 272, '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': '2955296', 'n_tokens_mistral': 2351, 'n_tokens_neox': 2111, 'n_words': 412}