<commit_before>{% extends "student/base.html" %}
{% import 'student/assignment/_tablehelper.html' as table %}
{% from 'student/time.html' import time %}
{% import 'diff.html' as diff %}

{% block title %} Assignment | Ok {% endblock %}
{% block css %}
  <!-- src="https:// .. .js" -->
{% endblock %}

{% block header %}

  <!-- <div class="left col-md-2">
    <div class="stripes">
      <div class="stripe"></div>
      <div class="stripe"></div>
      <div class="stripe"></div>
    </div>
  </div> -->

{% endblock %}

{% block body %}
    <main>
      {% include 'student/assignment/sidebar.html' %}
      <div class="col-md-2"></div>
      <section class="content nomapa col-md-10 col-xs-12">
        <header>
          <div class="header-bg">
            <div class="right col-md-3">
                <a href="#" class="header-text"><span>Logout</span></a>
                <div class="header-text user-profile">
                  <span class="user-name"> {{ current_user.name | default(current_user.email, True) }}</span>
                  <i class="fa fa-user"></i>
                </div>
              </div>
          </div>
        </header>

        {% set backup_type = 'Submission' if backup.submit else 'Backup' %}
        <div class="subcontent heading">
          <div class="wrap">
            <div class="string-nav">
              <span><a href="{{ url_for(".index", auto_redir=False) }}">Courses</a></span> &raquo;
              <span><a href="{{ url_for(".course", course=course.offering) }}"> {{ course.offering }}</a></span> &raquo;
              <span><a href="{{ url_for(".assignment", course=course.offering, assign=assignment.offering_name()) }}"> {{ assignment.display_name }}</a></span> &raquo;
              <span> {{backup_type}} {{ utils.encode_id(backup.id) }} </span>
            </div>
            <h3 class="text-center">Received at {{ time(backup.created, course) }} from {{ backup.submitter.email }}</h3>
          </div>
          {% include 'alerts.html' %}
        </div>
        <!-- start desktop/tablet version -->
        <div class="subcontent list">
            <div class="wrap">
                <!-- Action bar -->
                <a href="{{ url_for('.code', course=course.offering, assign=assignment.offering_name(), bid=backup.id, submit=backup.submit, diff=None if use_diff else 1) }}" class="no-dash button-small">
                  <i class="fa fa-file-code-o"> </i> View {{ 'Code' if use_diff else 'Diff' }}
                </a>
            </div>
        </div>
        <div class="subcontent list">
          <div class="wrap">
            {% if use_diff %}
              {{ diff.highlight_diffs(files_before, files_after) }}
            {% else %}
              {{ diff.highlight_files(files_after) }}
            {% endif %}
          </div>
        </div>
      </section>
    </main>
{% endblock %}

{% block js %}
  <!-- src="https:// .. .js" -->
{% endblock %}
<commit_msg>Reword received line<commit_after>{% extends "student/base.html" %}
{% import 'student/assignment/_tablehelper.html' as table %}
{% from 'student/time.html' import time %}
{% import 'diff.html' as diff %}

{% block title %} Assignment | Ok {% endblock %}
{% block css %}
  <!-- src="https:// .. .js" -->
{% endblock %}

{% block header %}

  <!-- <div class="left col-md-2">
    <div class="stripes">
      <div class="stripe"></div>
      <div class="stripe"></div>
      <div class="stripe"></div>
    </div>
  </div> -->

{% endblock %}

{% block body %}
    <main>
      {% include 'student/assignment/sidebar.html' %}
      <div class="col-md-2"></div>
      <section class="content nomapa col-md-10 col-xs-12">
        <header>
          <div class="header-bg">
            <div class="right col-md-3">
                <a href="#" class="header-text"><span>Logout</span></a>
                <div class="header-text user-profile">
                  <span class="user-name"> {{ current_user.name | default(current_user.email, True) }}</span>
                  <i class="fa fa-user"></i>
                </div>
              </div>
          </div>
        </header>

        {% set backup_type = 'Submission' if backup.submit else 'Backup' %}
        <div class="subcontent heading">
          <div class="wrap">
            <div class="string-nav">
              <span><a href="{{ url_for(".index", auto_redir=False) }}">Courses</a></span> &raquo;
              <span><a href="{{ url_for(".course", course=course.offering) }}"> {{ course.offering }}</a></span> &raquo;
              <span><a href="{{ url_for(".assignment", course=course.offering, assign=assignment.offering_name()) }}"> {{ assignment.display_name }}</a></span> &raquo;
              <span> {{backup_type}} {{ utils.encode_id(backup.id) }} </span>
            </div>
            <h3 class="text-center">Received on {{ time(backup.created, course) }} from {{ backup.submitter.email }}</h3>
          </div>
          {% include 'alerts.html' %}
        </div>
        <!-- start desktop/tablet version -->
        <div class="subcontent list">
            <div class="wrap">
                <!-- Action bar -->
                <a href="{{ url_for('.code', course=course.offering, assign=assignment.offering_name(), bid=backup.id, submit=backup.submit, diff=None if use_diff else 1) }}" class="no-dash button-small">
                  <i class="fa fa-file-code-o"> </i> View {{ 'Code' if use_diff else 'Diff' }}
                </a>
            </div>
        </div>
        <div class="subcontent list">
          <div class="wrap">
            {% if use_diff %}
              {{ diff.highlight_diffs(files_before, files_after) }}
            {% else %}
              {{ diff.highlight_files(files_after) }}
            {% endif %}
          </div>
        </div>
      </section>
    </main>
{% endblock %}

{% block js %}
  <!-- src="https:// .. .js" -->
{% endblock %}

{'fraction_non_alphanumeric': 0.19765266201734988, 'fraction_numerical': 0.0034019391052900155, 'mean_word_length': 2.0545454545454547, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 145, 'https://': 4, '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': '968913', 'n_tokens_mistral': 1883, 'n_tokens_neox': 1767, 'n_words': 380}