<commit_before><!-- {% comment %}
   - This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/.
{% endcomment %} -->
{% if not accepts_signoffs %}
  <div class="bad_signoff">
  We're not accepting sign-offs at this point.
  </div>
{% else %}
{% if good %}
  <div class="good_signoff">
    <p>
      Congratulations, this looks good!
      {% if first %}
      This will be the first release of this locale. To sign off, please answer these questions:
      {% endif %}
    </p>
    {% if first %}
    <div>
      <p><label><input type="checkbox" class="first_signoff_needed"> Are you following your bugzilla component?</label></p>
      <p><label><input type="checkbox" class="first_signoff_needed"> Have you thoroughly tested your localization?</label></p>
      <p><label><input type="checkbox" class="first_signoff_needed"> Have you completed productization for your locale?</label></p>
      <p><label><input type="checkbox"> Are you progressing with the translation of all necessary web parts?</label></p>
      <p>
        <a href="mailto:<EMAIL>?subject=Requesting%20localizer%20report%20for%20{{ language.code }}&amp;body=Hello,%0A%0APlease%20send%20me%20the%20weekly%20localizer%20reports.%0A%0AName:%0AEmail:%0ALocale:%20{{ language.code }}">
          Would you like to receive usage data for your locale?
        </a>
      </p>
    </div>
    {% endif %}
  </div>

{% else %}
  <div class="bad_signoff">
  {% if doubled %}
    <p>There is already a sign-off for this revision.</p>
  {% endif %}
  {% if newer|length %}
    <p>There are {{newer|join:", "}} sign-off(s) for newer revisions.</p>
  {% endif %}
  {% if not run %}
    <p>There is no source check for this
      revision. This might not be a good revision to sign off on.</p>
  {% else %}
    {% if run.errors %}
      <p>There are {{ run.errors }} errors in the
        source check for this revision. This is not a good revision to sign
        off on.</p>
    {% endif %}
    {% if run.missing %}
      <p>There are {{ run.missing }}
        missing strings. Depending on the amount, and the release, this may
        be a reason for this sign-off to get rejected.</p>
    {% endif %}
  {% endif %}
  <p>You may want to pick a different
    revision.</p>
{% endif %}
{% endif %}<commit_msg>Fixes bug 895666 - Displayed first sign-off form for bad releases too. r=Pike<commit_after><!-- {% comment %}
   - This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/.
{% endcomment %} -->
{% if not accepts_signoffs %}
  <div class="bad_signoff">
  We're not accepting sign-offs at this point.
  </div>
{% else %}
{% if good %}
  <div class="good_signoff">
    <p>Congratulations, this looks good!</p>
  </div>

{% else %}
  <div class="bad_signoff">
  {% if doubled %}
    <p>There is already a sign-off for this revision.</p>
  {% endif %}
  {% if newer|length %}
    <p>There are {{newer|join:", "}} sign-off(s) for newer revisions.</p>
  {% endif %}
  {% if not run %}
    <p>There is no source check for this
      revision. This might not be a good revision to sign off on.</p>
  {% else %}
    {% if run.errors %}
      <p>There are {{ run.errors }} errors in the
        source check for this revision. This is not a good revision to sign
        off on.</p>
    {% endif %}
    {% if run.missing %}
      <p>There are {{ run.missing }}
        missing strings. Depending on the amount, and the release, this may
        be a reason for this sign-off to get rejected.</p>
    {% endif %}
  {% endif %}
  <p>You may want to pick a different
    revision.</p>
{% endif %}

{% if first %}
  <p>This will be the first release of this locale. To sign off, please answer these questions:</p>
  <div>
    <p><label><input type="checkbox" class="first_signoff_needed"> Are you following your bugzilla component?</label></p>
    <p><label><input type="checkbox" class="first_signoff_needed"> Have you thoroughly tested your localization?</label></p>
    <p><label><input type="checkbox" class="first_signoff_needed"> Have you completed productization for your locale?</label></p>
    <p><label><input type="checkbox"> Are you progressing with the translation of all necessary web parts?</label></p>
    <p>
      <a href="mailto:<EMAIL>?subject=Requesting%20localizer%20report%20for%20{{ language.code }}&amp;body=Hello,%0A%0APlease%20send%20me%20the%20weekly%20localizer%20reports.%0A%0AName:%0AEmail:%0ALocale:%20{{ language.code }}">
        Would you like to receive usage data for your locale?
      </a>
    </p>
  </div>
{% endif %}
{% endif %}
{'fraction_non_alphanumeric': 0.14689382921254934, 'fraction_numerical': 0.014543943486391025, 'mean_word_length': 3.1897302001740644, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 99, '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': '6811285', 'n_tokens_mistral': 1642, 'n_tokens_neox': 1477, 'n_words': 512}