<commit_before><div id="history" class="island alpha c comm-dashboard-switch">
  <div id="review-files-header"><h3>{{ _('App History') }}</h3></div>

  <table id="review-files" class="item-history"
         data-slug="{{ product.app_slug }}" data-note-types="{{ mkt.comm.U_NOTE_TYPES()|json }}"
         {# Don't use urlparams because we don't want to urlencode the slug. #}
         data-comm-thread-url="{{ url('comm-thread-list') + '?app=' + product.app_slug }}"
         data-thread-id-placeholder="0" data-comm-note-url="{{ url('comm-note-list', 0) }}">
    {# Results populated below by reviewers_commbadge.js (Commbadge API) #}

    {% for i in range(pager.object_list.count(), 0, -1) %}
      {% set version = pager.object_list[i - 1] %}
      <tr class="listing-header">
        <th colspan="2">
          {% trans version = version.version, created = version.created|datetime, version_status = version_status(product, version), developer_name = version.developer_name %}
          Version {{ version }} &middot; {{ developer_name }} &middot; {{ created }} <span class="light">&middot; {{ version_status }}</span>
          {% endtrans %}
        </th>
      </tr>

      <tr class="listing-body">
        {% if product.is_packaged %}
          <td class="files">
            {% set version_files = version.all_files %}
            {% if version_files %}
              <h4>{{ _('Files in this version:') }}</h4>
              <ul>
                {% for file in version_files %}
                  <li class="file-info">
                    <span class="light">
                      <div>{{ file_review_status(product, file) }}</div>
                      <a href="{{ url('mkt.developers.apps.file_validation', product.app_slug, file) }}">{{ _('Validation') }}</a>
                      {% if not version.deleted %}
                        <a href="{{ url('mkt.developers.apps.file_validation', product.app_slug, file) }}">{{ _('Validation') }}</a>
                        &middot;
                        <a href="{{ url('mkt.files.list', file) }}">{{ _('Contents') }}</a>
                        {% if show_diff and version == product.latest_version %}
                          &middot;
                          <a class="compare" href="{{ url('mkt.files.compare', file, file_compare(file, show_diff)) }}">{{ _('Compare') }}</a>
                        {% endif %}
                      {% endif %}
                    </span>
                  </li>
                {% endfor %}
                {% for file in version_files %}
                  <li class="file-info">
                    <span class="light">
                      <div>{{ file_review_status(product, file) }}</div>
                    </span>
                  </li>
                {% endfor %}
              </ul>
            {% endif %}
          </td>
        {% endif %}

        <td>
          {# By version. #}
          <table class="activity" data-version="{{ version.id }}">
            <thead>
              {% if version.releasenotes %}
                <tr>
                  <th>{{ _('Version Notes') }}</th>
                  <td class="activity_version">
                    <div class="history-notes">
                      {{ version.releasenotes|nl2br }}
                    </div>
                  </td>
                </tr>
              {% endif %}
              {% if version.approvalnotes %}
                <tr>
                  <th>{{ _('Notes for Reviewers') }}</th><commit_msg>remove dupe file version info (bug 1045057)<commit_after><div id="history" class="island alpha c comm-dashboard-switch">
  <div id="review-files-header"><h3>{{ _('App History') }}</h3></div>

  <table id="review-files" class="item-history"
         data-slug="{{ product.app_slug }}" data-note-types="{{ mkt.comm.U_NOTE_TYPES()|json }}"
         {# Don't use urlparams because we don't want to urlencode the slug. #}
         data-comm-thread-url="{{ url('comm-thread-list') + '?app=' + product.app_slug }}"
         data-thread-id-placeholder="0" data-comm-note-url="{{ url('comm-note-list', 0) }}">
    {# Results populated below by reviewers_commbadge.js (Commbadge API) #}

    {% for i in range(pager.object_list.count(), 0, -1) %}
      {% set version = pager.object_list[i - 1] %}
      <tr class="listing-header">
        <th colspan="2">
          {% trans version = version.version, created = version.created|datetime, version_status = version_status(product, version), developer_name = version.developer_name %}
          Version {{ version }} &middot; {{ developer_name }} &middot; {{ created }} <span class="light">&middot; {{ version_status }}</span>
          {% endtrans %}
        </th>
      </tr>

      <tr class="listing-body">
        {% if product.is_packaged %}
          <td class="files">
            {% set version_files = version.all_files %}
            {% if version_files %}
              <h4>{{ _('Files in this version:') }}</h4>
              <ul>
                {% for file in version_files %}
                  <li class="file-info">
                    <span class="light">
                      <div>{{ file_review_status(product, file) }}</div>
                      {% if not version.deleted %}
                        <a href="{{ url('mkt.developers.apps.file_validation', product.app_slug, file) }}">{{ _('Validation') }}</a>
                        &middot;
                        <a href="{{ url('mkt.files.list', file) }}">{{ _('Contents') }}</a>
                        {% if show_diff and version == product.latest_version %}
                          &middot;
                          <a class="compare" href="{{ url('mkt.files.compare', file, file_compare(file, show_diff)) }}">{{ _('Compare') }}</a>
                        {% endif %}
                      {% endif %}
                    </span>
                  </li>
                {% endfor %}
              </ul>
            {% endif %}
          </td>
        {% endif %}

        <td>
          {# By version. #}
          <table class="activity" data-version="{{ version.id }}">
            <thead>
              {% if version.releasenotes %}
                <tr>
                  <th>{{ _('Version Notes') }}</th>
                  <td class="activity_version">
                    <div class="history-notes">
                      {{ version.releasenotes|nl2br }}
                    </div>
                  </td>
                </tr>
              {% endif %}
              {% if version.approvalnotes %}
                <tr>
                  <th>{{ _('Notes for Reviewers') }}</th>
{'fraction_non_alphanumeric': 0.16856319223183128, 'fraction_numerical': 0.004399939311181915, 'mean_word_length': 1.5901768172888016, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, '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': '4046374', 'n_tokens_mistral': 1991, 'n_tokens_neox': 1804, 'n_words': 395}