<commit_before>{% load i18n %}

<table class='vertical_infotable'>
  <tr>
    <th>{% trans "Time of delivery" %}:</th>
    <td>{{ delivery.time_of_delivery }}</td>
  </tr>
  <tr>
    <th>{% trans "Delivered by" %}:</th>
    <td>{{ delivery.delivered_by.username }}</td>
  </tr>


  {% if assignment_group.students.count > 1 %}
    <tr>
      <th>{% trans "Group members" %}:</th>
      <td>{{ assignment_group.students.all|join:", " }} </td>
    </tr>
  {% endif %}

  <tr>
    <th>{% trans "Status" %}:</th>
    <td>
 
      {% if delivery.grade %}
       Corrected

      {% else %}
       Not corrected
      {% endif %}
 
    </td>
  </tr>

 {% if delivery.grade %}
   <tr>
    <th>{% trans "Grade" %}:</th>
    <td> {{ delivery.grade }} </td>
  </tr>
{% endif %}

</table>

<h2>{% trans "Files" %}</h2>
<ul>
{% for filemeta in delivery.filemeta_set.all %}
  <li> <a href='{% url download-file filemeta.id %}'>{{ filemeta.filename }}</a>  ({{ filemeta.size }} bytes) </li>

{% endfor %}
</ul><commit_msg>Show correct status and grade<commit_after>{% load i18n %}

<table class='vertical_infotable'>
  <tr>
    <th>{% trans "Time of delivery" %}:</th>
    <td>{{ delivery.time_of_delivery }}</td>
  </tr>
  <tr>
    <th>{% trans "Delivered by" %}:</th>
    <td>{{ delivery.delivered_by.username }}</td>
  </tr>


  {% if assignment_group.students.count > 1 %}
    <tr>
      <th>{% trans "Group members" %}:</th>
      <td>{{ assignment_group.students.all|join:", " }} </td>
    </tr>
  {% endif %}

  <tr>
    <th>{% trans "Status" %}:</th>
    <td>
 
      {% if delivery.feedback.grade %}
       Corrected

      {% else %}
       Not corrected
      {% endif %}
 
    </td>
  </tr>

 {% if delivery.feedback.grade %}
   <tr>
    <th>{% trans "Grade" %}:</th>
    <td> {{ delivery.feedback.grade }} </td>
  </tr>
{% endif %}

</table>

<h2>{% trans "Files" %}</h2>
<ul>
{% for filemeta in delivery.filemeta_set.all %}
  <li> <a href='{% url download-file filemeta.id %}'>{{ filemeta.filename }}</a>  ({{ filemeta.size }} bytes) </li>

{% endfor %}
</ul>
{'fraction_non_alphanumeric': 0.23652258377853327, 'fraction_numerical': 0.0048567265662943174, 'mean_word_length': 2.652482269503546, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4891703', 'n_tokens_mistral': 863, 'n_tokens_neox': 775, 'n_words': 183}