<commit_before>{% extends 'base.html' %}
{% load my_tags %}

{% block title %}
  Tomo &mdash;
  {{ problem_set.course.name }} &mdash;
  {{ problem_set.title }} &mdash;
  Statistika
{% endblock %}

{% block breadcrumbs %}
  <li>
    <a href="{% url homepage %}">Začetna stran</a>
    <span class="divider">/</span>
  </li>
  <li>
    <a href="{% url course problem_set.course.id %}">{{ problem_set.course.name }}</a>
    <span class="divider">/</span>
  </li>
  <li>
    <a href="{% url problem_set problem_set.id %}">{{ problem_set.title }}</a>
    <span class="divider">/</span>
  </li>
  <li class="active">
    Statistika
  </li>
{% endblock %}

{% block header %}
  {{ problem_set.title }} &mdash;
  Statistika
{% endblock %}

{% block contents %}
  {% for problem in problems.all %}
  <h3>
    Naloga {{ forloop.counter }}
    {% if problem.title %} &mdash; {{ problem.title }}{% endif %}
  </h3>

  <table>
    <thead>
      <tr>
        <th>&nbsp;</th>
        <th>Ime</th>
        <th>Priimek</th>
        {% for part in problem.parts.all %}
        <th>{{ forloop.counter }})</th>
        {% endfor %}
      </tr>
    </thead>

    <tbody>
      {% with attempts|get:problem.id as problem_attempts %}
      {% for user, attempts in problem_attempts.items %}
      <tr>
        <td><a href="{% url student_archive_download problem.id user.id %}"><img src="{{ STATIC_URL }}download.png"></a></td>
        <td>{{ user.first_name }}</td>
        <td>{{ user.last_name }}</td>
        {% for part in problem.parts.all %}
        {% with attempts|get:part.id as attempt %}
          <td>
            {% if attempt %}
              <div id="solutions-{{ problem.id }}-{{ part.id }}-{{ user.id }}" class="modal hide fade" style="width: 700px; margin: -250px 0 0 -352px;">
                <div class="modal-header">
                  <a href="#" class="close">&times;</a>
                  <h3>
                    {{user.get_full_name}}, rešitev naloge {{ forloop.parentloop.counter }}.{{ forloop.counter }})
                  </h3>
                </div>
                <div class="modal-body solution-view">
                  {% if attempt.solution %}
                    <pre><code>{{ attempt.solution }}</code></pre>
                  {% else %}
                    <p>
                      Naloge še ni reševal.
                    </p>
                  {% endif %}
                </div>
              </div>
              <a data-controls-modal="solutions-{{ problem.id }}-{{ part.id }}-{{ user.id }}" data-backdrop="true" data-keyboard="true" href="#">
              <img src="{{ STATIC_URL }}{% if attempt.solution %}{% if attempt.correct %}correct{% else %}incorrect{% endif %}{% else %}missing{% endif %}.png">
              </a>
            {% else %}
              &nbsp;
            {% endif %}
          </td>
        {% endwith %}
        {% endfor %}
      </tr><commit_msg>Corrected header for solution in statistics.<commit_after>{% extends 'base.html' %}
{% load my_tags %}

{% block title %}
  Tomo &mdash;
  {{ problem_set.course.name }} &mdash;
  {{ problem_set.title }} &mdash;
  Statistika
{% endblock %}

{% block breadcrumbs %}
  <li>
    <a href="{% url homepage %}">Začetna stran</a>
    <span class="divider">/</span>
  </li>
  <li>
    <a href="{% url course problem_set.course.id %}">{{ problem_set.course.name }}</a>
    <span class="divider">/</span>
  </li>
  <li>
    <a href="{% url problem_set problem_set.id %}">{{ problem_set.title }}</a>
    <span class="divider">/</span>
  </li>
  <li class="active">
    Statistika
  </li>
{% endblock %}

{% block header %}
  {{ problem_set.title }} &mdash;
  Statistika
{% endblock %}

{% block contents %}
  {% for problem in problems.all %}
  <h3>
    Naloga {{ forloop.counter }}
    {% if problem.title %} &mdash; {{ problem.title }}{% endif %}
  </h3>

  <table>
    <thead>
      <tr>
        <th>&nbsp;</th>
        <th>Ime</th>
        <th>Priimek</th>
        {% for part in problem.parts.all %}
        <th>{{ forloop.counter }})</th>
        {% endfor %}
      </tr>
    </thead>

    <tbody>
      {% with attempts|get:problem.id as problem_attempts %}
      {% for user, attempts in problem_attempts.items %}
      <tr>
        <td><a href="{% url student_archive_download problem.id user.id %}"><img src="{{ STATIC_URL }}download.png"></a></td>
        <td>{{ user.first_name }}</td>
        <td>{{ user.last_name }}</td>
        {% for part in problem.parts.all %}
        {% with attempts|get:part.id as attempt %}
          <td>
            {% if attempt %}
              <div id="solutions-{{ problem.id }}-{{ part.id }}-{{ user.id }}" class="modal hide fade" style="width: 700px; margin: -250px 0 0 -352px;">
                <div class="modal-header">
                  <a href="#" class="close">&times;</a>
                  <h3>
                    {{user.get_full_name}}, rešitev naloge {{ forloop.parentloop.parentloop.counter }}.{{ forloop.parentloop.counter }})
                  </h3>
                </div>
                <div class="modal-body solution-view">
                  {% if attempt.solution %}
                    <pre><code>{{ attempt.solution }}</code></pre>
                  {% else %}
                    <p>
                      Naloge še ni reševal.
                    </p>
                  {% endif %}
                </div>
              </div>
              <a data-controls-modal="solutions-{{ problem.id }}-{{ part.id }}-{{ user.id }}" data-backdrop="true" data-keyboard="true" href="#">
              <img src="{{ STATIC_URL }}{% if attempt.solution %}{% if attempt.correct %}correct{% else %}incorrect{% endif %}{% else %}missing{% endif %}.png">
              </a>
            {% else %}
              &nbsp;
            {% endif %}
          </td>
        {% endwith %}
        {% endfor %}
      </tr>
{'fraction_non_alphanumeric': 0.19253807975355125, 'fraction_numerical': 0.005134348793428034, 'mean_word_length': 1.8577017114914425, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 139, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7034550', 'n_tokens_mistral': 2071, 'n_tokens_neox': 1849, 'n_words': 416}