<commit_before>{% extends "base.html" %}
{% load i18n %}

{% block content %}
  {% comment %} Translators: Heading of the collection page where users can view all partners they are authorized to access with other relevant information. {% endcomment %}
  <h3 class="inline-header">{% trans 'Your collection' %}</h3>
  <a href="{% url 'users:my_applications' user.editor.pk %}" class="btn btn-default pull-right">
    {% comment %} Translators: A button on the 'your collection' page which when clicked takes users their applications page. {% endcomment %}
    {% trans "Your applications" %}
  </a>
  <ul class="nav nav-tabs">
    {% comment %} Translators: Tab label (1 of 2) for the page listing all partners which can accessed either via proxy or via bundle (direct access). {% endcomment %}
    <li {% if proxy_bundle_authorizations or proxy_bundle_authorizations_expired %}class="active"{% elif not manual_authorizations and not manual_authorizations_expired %}class="active"{% endif %}><a data-toggle="tab" href="#proxy">{%  trans 'Proxy/bundle access' %} <span class="badge">{{ proxy_bundle_authorizations.count }}</span></a></li>
    {% comment %} Translators: Tab label (2 of 2) for the page listing all partners which can accessed manually. {% endcomment %}
    <li {% if manual_authorizations or manual_authorizations_expired %}{% if not proxy_bundle_authorizations and not proxy_bundle_authorizations_expired %}class="active"{% endif %}{% endif %}><a data-toggle="tab" href="#manual">{%  trans 'Manual access' %} <span class="badge">{{ manual_authorizations.count }}</span></a></li>
  </ul>
  <div class="tab-content">
    <div id="proxy" class="tab-pane fade {% if proxy_bundle_authorizations or proxy_bundle_authorizations_expired %}in active{% elif not manual_authorizations and not manual_authorizations_expired %}in active{% endif %}">
      <br>
      <div class="row row-flex">
        {% for each_authorization in proxy_bundle_authorizations %}
          <div class="col-flex col-xs-12 col-sm-4 col-md-3">
            {% include "users/collection_tile.html" %}
          </div>
        {% empty %}
          <div class="col-xs-12">
            {% comment %} Translators: On the collection page (proxy/bundle access tab), this text is displayed when the user has no active collections. {% endcomment %}
            {% trans 'You have no active proxy/bundle collections.' %}
          </div>
        {% endfor %}
      </div>
      {%  if proxy_bundle_authorizations_expired %}
        {% comment %} Translators: Heading for the section which lists all of the user's expired collection. {% endcomment %}
        <h4>{% trans 'Expired' %}</h4>
        <hr>
      {% endif %}
      <div class="row row-flex">
        {% for each_authorization in proxy_bundle_authorizations_expired %}
          <div class="col-flex col-xs-12 col-sm-4 col-md-3">
            {% include "users/collection_tile.html" %}
          </div>
        {% endfor %}
      </div>
    </div>
    <div id="manual" class="tab-pane fade {% if manual_authorizations or manual_authorizations_expired %}{% if not proxy_bundle_authorizations and not proxy_bundle_authorizations_expired %}in active{% endif %}{% endif %}">
      <br>
      <div class="row row-flex">
        {% for each_authorization in manual_authorizations %}
          <div class="col-flex col-xs-12 col-sm-4 col-md-3">
            {% include "users/collection_tile.html" %}
          </div>
        {% empty %}
          <div class="col-xs-12">
            {% comment %} Translators: On the collection page (manual access tab), this text is displayed when the user has no active collections. {% endcomment %}
            {% trans 'You have no active manual access collections.' %}
          </div>
        {% endfor %}
      </div>
      {%  if manual_authorizations_expired %}
        {% comment %} Translators: Heading for the section which lists all of the user's expired collection. {% endcomment %}
        <h4>{% trans 'Expired' %}</h4>
        <hr>
      {% endif %}
      <div class="row row-flex">
        {% for each_authorization in manual_authorizations_expired %}
          <div class="col-flex col-xs-12 col-sm-4 col-md-3">
            {% include "users/collection_tile.html" %}
          </div>
        {% endfor %}
      </div>
    </div>
  </div>
{% endblock %}<commit_msg>Reformat for readability<commit_after>{% extends "base.html" %}
{% load i18n %}

{% block content %}
  {% comment %} Translators: Heading of the collection page where users can view all partners they are authorized to access with other relevant information. {% endcomment %}
  <h3 class="inline-header">{% trans 'Your collection' %}</h3>
  <a href="{% url 'users:my_applications' user.editor.pk %}" class="btn btn-default pull-right">
    {% comment %} Translators: A button on the 'your collection' page which when clicked takes users their applications page. {% endcomment %}
    {% trans "Your applications" %}
  </a>
  <ul class="nav nav-tabs">
    {% comment %} Translators: Tab label (1 of 2) for the page listing all partners which can accessed either via proxy or via bundle (direct access). {% endcomment %}
    <li
      {% if proxy_bundle_authorizations or proxy_bundle_authorizations_expired %}
        class="active"
      {% elif not manual_authorizations and not manual_authorizations_expired %}
        class="active"
      {% endif %}
    >
      <a data-toggle="tab" href="#proxy">
        {% trans 'Proxy/bundle access' %}
        <span class="badge">
          {{ proxy_bundle_authorizations.count }}
        </span>
      </a>
    </li>
    {% comment %} Translators: Tab label (2 of 2) for the page listing all partners which can accessed manually. {% endcomment %}
    <li
      {% if manual_authorizations or manual_authorizations_expired %}
        {% if not proxy_bundle_authorizations and not proxy_bundle_authorizations_expired %}
          class="active"
        {% endif %}
      {% endif %}
    >
      <a data-toggle="tab" href="#manual">
        {% trans 'Manual access' %}
        <span class="badge">
          {{ manual_authorizations.count }}
        </span>
      </a>
    </li>
  </ul>
  <div class="tab-content">
    <div id="proxy" class="tab-pane fade {% if proxy_bundle_authorizations or proxy_bundle_authorizations_expired %}in active{% elif not manual_authorizations and not manual_authorizations_expired %}in active{% endif %}">
      <br>
      <div class="row row-flex">
        {% for each_authorization in proxy_bundle_authorizations %}
          <div class="col-flex col-xs-12 col-sm-4 col-md-3">
            {% include "users/collection_tile.html" %}
          </div>
        {% empty %}
          <div class="col-xs-12">
            {% comment %} Translators: On the collection page (proxy/bundle access tab), this text is displayed when the user has no active collections. {% endcomment %}
            {% trans 'You have no active proxy/bundle collections.' %}
          </div>
        {% endfor %}
      </div>
      {%  if proxy_bundle_authorizations_expired %}
        {% comment %} Translators: Heading for the section which lists all of the user's expired collection. {% endcomment %}
        <h4>{% trans 'Expired' %}</h4>
        <hr>
      {% endif %}
      <div class="row row-flex">
        {% for each_authorization in proxy_bundle_authorizations_expired %}
          <div class="col-flex col-xs-12 col-sm-4 col-md-3">
            {% include "users/collection_tile.html" %}
          </div>
        {% endfor %}
      </div>
    </div>
    <div id="manual" class="tab-pane fade {% if manual_authorizations or manual_authorizations_expired %}{% if not proxy_bundle_authorizations and not proxy_bundle_authorizations_expired %}in active{% endif %}{% endif %}">
      <br>
      <div class="row row-flex">
        {% for each_authorization in manual_authorizations %}
          <div class="col-flex col-xs-12 col-sm-4 col-md-3">
            {% include "users/collection_tile.html" %}
          </div>
        {% empty %}
          <div class="col-xs-12">
            {% comment %} Translators: On the collection page (manual access tab), this text is displayed when the user has no active collections. {% endcomment %}
            {% trans 'You have no active manual access collections.' %}
          </div>
        {% endfor %}
      </div>
      {%  if manual_authorizations_expired %}
        {% comment %} Translators: Heading for the section which lists all of the user's expired collection. {% endcomment %}
        <h4>{% trans 'Expired' %}</h4>
        <hr>
      {% endif %}
      <div class="row row-flex">
        {% for each_authorization in manual_authorizations_expired %}
          <div class="col-flex col-xs-12 col-sm-4 col-md-3">
            {% include "users/collection_tile.html" %}
          </div>
        {% endfor %}
      </div>
    </div>
  </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.1334233322083474, 'fraction_numerical': 0.007199910001124986, 'mean_word_length': 2.8203695745595185, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '6710478', 'n_tokens_mistral': 2753, 'n_tokens_neox': 2470, 'n_words': 776}