<commit_before>{% comment %}
Copyright (C) 2017-2020  The Software Heritage developers
See the AUTHORS file at the top-level directory of this distribution
License: GNU Affero General Public License version 3, or any later version
See top-level LICENSE file for more information
{% endcomment %}

{% include "includes/revision-info.html" %}

{% if snapshot_context and snapshot_context.is_empty %}
  {% include "includes/empty-snapshot.html" %}
{% elif dirs|length > 0 or files|length > 0 %}
  <div class="table-responsive">
    <table class="table swh-table swh-directory-table">
      <thead>
        <tr>
          <th>File</th>
          <th class="d-none d-md-table-cell">Mode</th>
          <th class="d-none d-sm-table-cell">Size</th>
        </tr>
      </thead>
      <tbody>
        {% for d in dirs %}
          <tr class="swh-directory-entry swh-tr-hover-highlight">
            <td class="swh-directory">
              <i class="{{ swh_object_icons.directory }} mdi-fw" aria-hidden="true"></i>
              <a href="{{ d.url | safe }}">
                {{ d.name }}
              </a>
            </td>
            <td class="d-none d-md-table-cell">
              {{ d.perms }}
            </td>
            <td class="d-none d-sm-table-cell">
            </td>
          </tr>
        {% endfor %}
        {% for f in files %}
          <tr class="swh-directory-entry swh-tr-hover-highlight">
            <td class="swh-content">
              <i class="{{ swh_object_icons.content }} mdi-fw" aria-hidden="true"></i>
              <a href="{{ f.url | safe }}">
                {{ f.name }}
              </a>
            </td>
            <td class="d-none d-md-table-cell">
              {{ f.perms }}
            </td>
            <td class="d-none d-sm-table-cell">
              {{ f.length }}
            </td><commit_msg>templates/directory-display: Remove permissions display for directories<commit_after>{% comment %}
Copyright (C) 2017-2020  The Software Heritage developers
See the AUTHORS file at the top-level directory of this distribution
License: GNU Affero General Public License version 3, or any later version
See top-level LICENSE file for more information
{% endcomment %}

{% include "includes/revision-info.html" %}

{% if snapshot_context and snapshot_context.is_empty %}
  {% include "includes/empty-snapshot.html" %}
{% elif dirs|length > 0 or files|length > 0 %}
  <div class="table-responsive">
    <table class="table swh-table swh-directory-table">
      <thead>
        <tr>
          <th>File</th>
          <th class="d-none d-md-table-cell">Mode</th>
          <th class="d-none d-sm-table-cell">Size</th>
        </tr>
      </thead>
      <tbody>
        {% for d in dirs %}
          <tr class="swh-directory-entry swh-tr-hover-highlight">
            <td class="swh-directory">
              <i class="{{ swh_object_icons.directory }} mdi-fw" aria-hidden="true"></i>
              <a href="{{ d.url | safe }}">
                {{ d.name }}
              </a>
            </td>
            <td class="d-none d-md-table-cell">
            </td>
            <td class="d-none d-sm-table-cell">
            </td>
          </tr>
        {% endfor %}
        {% for f in files %}
          <tr class="swh-directory-entry swh-tr-hover-highlight">
            <td class="swh-content">
              <i class="{{ swh_object_icons.content }} mdi-fw" aria-hidden="true"></i>
              <a href="{{ f.url | safe }}">
                {{ f.name }}
              </a>
            </td>
            <td class="d-none d-md-table-cell">
              {{ f.perms }}
            </td>
            <td class="d-none d-sm-table-cell">
              {{ f.length }}
            </td>
{'fraction_non_alphanumeric': 0.15769644779332614, 'fraction_numerical': 0.005920344456404736, 'mean_word_length': 1.7574183976261128, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 79, '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': '408866', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1111, 'n_words': 273}