<commit_before>{% extends "base.html" %}
{% load django_bootstrap_breadcrumbs %}
{% load sanitize_html icon %}
{% load dict_func %}
{% load task_taken_func %}

{% block title %}{{ course.name }} | {{ course.year }}{% endblock %}

{% block breadcrumbs %}
  {{ block.super }}
  {% breadcrumb course.year course.year.get_absolute_url %}
  {% breadcrumb course.name "" %}
{% endblock breadcrumbs %}

{% block navbar %}
  <ul class="nav">
    <li class="active">
      <a href="">Список задач</a>
    </li>
    {% if visible_queue %}
      <li>
        <a href="{{ course.get_absolute_url }}/queue">Очередь на проверку</a>
      </li>
    {% endif %}
    {% if user_is_teacher %}
      <li>
        <a href="{% url courses.views.course_settings course.id %}">Настройки</a>
      </li>
    {% endif %}
  </ul>
{% endblock navbar %}

{% block content %}
  {{ block.super }}
    {% if course.information %}
      {{ course.information|urlize|sanitize|safe }}
      <br>
    {% endif %}
    {% if course.can_edit %}
      <a class="btn-small" href="javascript:get_edit_course_modal({{ course.id }}, {% if course.information %} '{{course.information|escapejs}}' {% else %} '' {% endif %});">
        {% if course.information %}
          Редактировать информацию о курсе
        {% else %}
          Добавить информацию о курсе
        {% endif %}
      </a>
      <a class="btn-small" href="{{course.id}}/data/"> Добавить данных
      </a>
      <br>

      {% if course.can_edit and course.is_special_course %}
        <a class="btn-small" href="javascript:get_add_task_modal({{ course.id }}, null,  null, '{{course.can_edit}}');">
          Добавить задачу
        </a>
        <br>
      {% endif %}
    {% endif %}
    
    <div class = "breadcrumb_button">
    {% if not user_is_teacher and course.can_be_chosen_by_extern%}
      {% if user_is_attended_special_course %}
        <button type="button" class="btn btn-danger" OnClick="javascript:set_spectial_course_attend({{ course.id }}, 'remove');">
          Отписаться<commit_msg>del Добавить данных href<commit_after>{% extends "base.html" %}
{% load django_bootstrap_breadcrumbs %}
{% load sanitize_html icon %}
{% load dict_func %}
{% load task_taken_func %}

{% block title %}{{ course.name }} | {{ course.year }}{% endblock %}

{% block breadcrumbs %}
  {{ block.super }}
  {% breadcrumb course.year course.year.get_absolute_url %}
  {% breadcrumb course.name "" %}
{% endblock breadcrumbs %}

{% block navbar %}
  <ul class="nav">
    <li class="active">
      <a href="">Список задач</a>
    </li>
    {% if visible_queue %}
      <li>
        <a href="{{ course.get_absolute_url }}/queue">Очередь на проверку</a>
      </li>
    {% endif %}
    {% if user_is_teacher %}
      <li>
        <a href="{% url courses.views.course_settings course.id %}">Настройки</a>
      </li>
    {% endif %}
  </ul>
{% endblock navbar %}

{% block content %}
  {{ block.super }}
    {% if course.information %}
      {{ course.information|urlize|sanitize|safe }}
      <br>
    {% endif %}
    {% if course.can_edit %}
      <a class="btn-small" href="javascript:get_edit_course_modal({{ course.id }}, {% if course.information %} '{{course.information|escapejs}}' {% else %} '' {% endif %});">
        {% if course.information %}
          Редактировать информацию о курсе
        {% else %}
          Добавить информацию о курсе
        {% endif %}
      </a>
      <br>

      {% if course.can_edit and course.is_special_course %}
        <a class="btn-small" href="javascript:get_add_task_modal({{ course.id }}, null,  null, '{{course.can_edit}}');">
          Добавить задачу
        </a>
        <br>
      {% endif %}
    {% endif %}
    
    <div class = "breadcrumb_button">
    {% if not user_is_teacher and course.can_be_chosen_by_extern%}
      {% if user_is_attended_special_course %}
        <button type="button" class="btn btn-danger" OnClick="javascript:set_spectial_course_attend({{ course.id }}, 'remove');">
          Отписаться
{'fraction_non_alphanumeric': 0.17381489841986456, 'fraction_numerical': 0.0, 'mean_word_length': 2.838306063522618, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '1360364', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1362, 'n_words': 268}