<commit_before><td>
  <% if !grouping.has_submission? %>
    <% if assignment.submission_rule.can_collect_now? %>
      <%= link_to h(grouping.group.group_name), :action => 'collect_and_begin_grading', :id => assignment.id, :grouping_id => grouping.id %>
    <% else %>
      <%=h(grouping.group.group_name)%>
    <% end %>
  <% else %>
    <%= link_to h(grouping.group.group_name), :controller => 'results', :action => 'edit', :id => grouping.get_submission_used.result%>
  <% end %>
    (<%= h(grouping.accepted_students.collect{ |student| student.user_name}.join(',')) %>)
  <%='<span class="invalid">' + t(:invalid_grouping) + '</span>' if !grouping.is_valid? %>
  </td> 
  <% if !@details.nil? %>
    <% assignment.rubric_criteria.each do |criterion| %>
      <td>
        <% if grouping.has_submission? %>
          <% mark = grouping.get_submission_used.result.marks.find_by_rubric_criterion_id(criterion.id) %>
          <% if mark.nil? || mark.mark.nil?%>
            -
          <% else %>
            <%= mark.mark %>
          <% end %>
        <% else %>
          -
        <% end %>
      </td>
    <% end %>
  <% else %>
  <td>
    <%= link_to h(grouping.group.repository_name), :action => "repo_browser", :id => grouping.id %>
  </td>
  <td>
  <% if !grouping.has_submission? %>
  -
  <% else %>
    <%= h(grouping.get_submission_used.revision_timestamp.strftime(LONG_DATE_TIME_FORMAT)) %>
  <% end %>
  </td>
  <% end %>
  <td class="marking_state">
    <% if !grouping.has_submission? %>
	<% if assignment.submission_rule.can_collect_now? %>
	  <%= image_tag('icons/add.png')%>
	<% else %>
       	  -
	<% end %>
    <% else %>
	<% if !grouping.get_submission_used.has_result? %>
	    <%= image_tag('icons/pencil.png') %>
	<% else %>
	    <% if grouping.get_submission_used.result.marking_state == Result::MARKING_STATES[:complete]%>
		<% if !grouping.get_submission_used.result.released_to_students %>
		    <%= image_tag('icons/accept.png')%>
		<% else %><commit_msg>Closing #428: Marking state icons are too similar<commit_after><td>
  <% if !grouping.has_submission? %>
    <% if assignment.submission_rule.can_collect_now? %>
      <%= link_to h(grouping.group.group_name), :action => 'collect_and_begin_grading', :id => assignment.id, :grouping_id => grouping.id %>
    <% else %>
      <%=h(grouping.group.group_name)%>
    <% end %>
  <% else %>
    <%= link_to h(grouping.group.group_name), :controller => 'results', :action => 'edit', :id => grouping.get_submission_used.result%>
  <% end %>
    (<%= h(grouping.accepted_students.collect{ |student| student.user_name}.join(',')) %>)
  <%='<span class="invalid">' + t(:invalid_grouping) + '</span>' if !grouping.is_valid? %>
  </td> 
  <% if !@details.nil? %>
    <% assignment.rubric_criteria.each do |criterion| %>
      <td>
        <% if grouping.has_submission? %>
          <% mark = grouping.get_submission_used.result.marks.find_by_rubric_criterion_id(criterion.id) %>
          <% if mark.nil? || mark.mark.nil?%>
            -
          <% else %>
            <%= mark.mark %>
          <% end %>
        <% else %>
          -
        <% end %>
      </td>
    <% end %>
  <% else %>
  <td>
    <%= link_to h(grouping.group.repository_name), :action => "repo_browser", :id => grouping.id %>
  </td>
  <td>
  <% if !grouping.has_submission? %>
  -
  <% else %>
    <%= h(grouping.get_submission_used.revision_timestamp.strftime(LONG_DATE_TIME_FORMAT)) %>
  <% end %>
  </td>
  <% end %>
  <td class="marking_state">
    <% if !grouping.has_submission? %>
	<% if assignment.submission_rule.can_collect_now? %>
	  <%= image_tag('icons/shape_square.png')%>
	<% else %>
       	  -
	<% end %>
    <% else %>
	<% if !grouping.get_submission_used.has_result? %>
	    <%= image_tag('icons/pencil.png') %>
	<% else %>
	    <% if grouping.get_submission_used.result.marking_state == Result::MARKING_STATES[:complete]%>
		<% if !grouping.get_submission_used.result.released_to_students %>
		    <%= image_tag('icons/accept.png')%>
		<% else %>
{'fraction_non_alphanumeric': 0.19597115145486196, 'fraction_numerical': 0.0007460830639144492, 'mean_word_length': 3.079107505070994, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 125, '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': '2770577', 'n_tokens_mistral': 1614, 'n_tokens_neox': 1423, 'n_words': 195}