<commit_before><h1>Workspace: <%= @assignment.name %></h1>

<h2>Students you can mark:</h2>

<table>
  <thead>
    <th>Submission By</th>
    <th>Submission Collected On</th>
    <th>Marking Status</th>
    <th>Final Results</th>
  </thead>
  <tbody>
<% for grouping in @groupings %>
  <tr>
    <td>
      <% for student_membership in grouping.student_memberships %>
        <% some_user = student_membership.user %>
        <%=some_user.user_name%>(<%=some_user.last_name%>, <%=some_user.first_name%>)<br />
      <% end %>
    </td>
    <td>
      <% submission = grouping.get_submission_used %>
      <% if submission.nil? %>
      <%= link_to "Create Submission Manually", :controller => 'submissions', :action => 'create_manually', :id => @assignment.id, :grouping_id => grouping.id %>
      <% else %> 
        <%= submission.created_at %>
      <% end %>
    </td>
    <td>
       <% if submission.nil? %>
       -
       <% else %>
         <% if submission.result.nil? %>
           No Marking Results
         <% else %>
           <% if submission.result.released_to_students %>
             Released
           <% else %>
           <%= link_to submission.result.marking_state, :controller =>   'results', :action=> 'edit', :id => submission.result.id %>
           <% end %>
         <% end %>
       <% end %>
    </td>
    <td>
      <% if submission.nil? %>
      -
      <% else %>
       <% if submission.result.nil? %>
        <%= link_to 'Begin Grading', :controller => 'results', :action => 'create', :id => submission.id %>
       <% else %>
         TODO:  Grade
       <% end %>
       <% end %> 
    <td>
  </tr>
<% end %>
  </tbody>
</table><commit_msg>refs #145 fianl results displayed on the browse view of submission for TA's<commit_after><h1>Workspace: <%= @assignment.name %></h1>

<h2>Students you can mark:</h2>

<table>
  <thead>
    <th>Submission By</th>
    <th>Submission Collected On</th>
    <th>Marking Status</th>
    <th>Final Results</th>
  </thead>
  <tbody>
<% for grouping in @groupings %>
  <tr>
    <td>
      <% for student_membership in grouping.student_memberships %>
        <% some_user = student_membership.user %>
        <%=some_user.user_name%>(<%=some_user.last_name%>, <%=some_user.first_name%>)<br />
      <% end %>
    </td>
    <td>
      <% submission = grouping.get_submission_used %>
      <% if submission.nil? %>
      <%= link_to "Create Submission Manually", :controller => 'submissions', :action => 'create_manually', :id => @assignment.id, :grouping_id => grouping.id %>
      <% else %> 
        <%= submission.created_at %>
      <% end %>
    </td>
    <td>
       <% if submission.nil? %>
       -
       <% else %>
         <% if submission.result.nil? %>
           No Marking Results
         <% else %>
           <% if submission.result.released_to_students %>
             Released
           <% else %>
           <%= link_to submission.result.marking_state, :controller =>   'results', :action=> 'edit', :id => submission.result.id %>
           <% end %>
         <% end %>
       <% end %>
    </td>
    <td>
      <% if submission.nil? %>
      -
      <% else %>
       <% if submission.result.nil? %>
        <%= link_to 'Begin Grading', :controller => 'results', :action => 'create', :id => submission.id %>
       <% else %>
          <%= submission.result.total_mark%>/<%= @assignment.total_mark %>
       <% end %>
       <% end %> 
    <td>
  </tr>
<% end %>
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.1825511085516844, 'fraction_numerical': 0.0031672905269219693, 'mean_word_length': 2.1784080512351327, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 147, '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': '4810306', 'n_tokens_mistral': 1260, 'n_tokens_neox': 1107, 'n_words': 227}