<commit_before><%
  user_deductions = grouping.grace_period_deductions.group_by {|d| d.membership.user}
%>

<h3><%=t('submission_rules.grace_period_submission_rule.deductions')%></h3>
<% user_deductions.each do |u| %>
<table>
  <thead>
    <th colspan="2">
      <%= u[0].user_name %> - (<%= u[0].first_name%> <%=u[0].last_name%>)
    </th>
  </thead>
  <tr>
    <td>
      <%= u[1].first.deduction %> credits
    </td>
    <td>
      <%= link_to_remote t('submission_rules.grace_period_submission_rule.remove_deduction'), :url => {:action => 'delete_grace_period_deduction', :id => grouping.id, :deduction_id => u[1].first.id }, :confirm => t('submission_rules.grace_period_submission_rule.confirm_remove_deduction') %>
    </td>
  </tr>
</table>
<% end %><commit_msg>Fix for issue 769, fix routing issue with grading assignment caused by upgrading to rails 3.0<commit_after><%
  user_deductions = grouping.grace_period_deductions.group_by {|d| d.membership.user}
%>

<h3><%=I18n.t('submission_rules.grace_period_submission_rule.deductions')%></h3>
<% user_deductions.each do |u| %>
<table>
  <thead>
    <th colspan="2">
      <%= u[0].user_name %> - (<%= u[0].first_name%> <%=u[0].last_name%>)
    </th>
  </thead>
  <tr>
    <td>
      <%= u[1].first.deduction %> credits
    </td>
    <td>
      <%=link_to I18n.t('submission_rules.grace_period_submission_rule.remove_deduction'), :url => {:action => 'delete_grace_period_deduction', :id => grouping.id, :deduction_id => u[1].first.id }, :confirm => I18n.t('submission_rules.grace_period_submission_rule.confirm_remove_deduction') %>
    </td>
  </tr>
</table>
<% end %>
{'fraction_non_alphanumeric': 0.1963076923076923, 'fraction_numerical': 0.016615384615384615, 'mean_word_length': 4.511864406779661, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 59, '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': '3870112', 'n_tokens_mistral': 686, 'n_tokens_neox': 633, 'n_words': 93}