<commit_before>{% set collection = promo.collection %}
{% if addons %}
<li class="panel">
  <div id="{{ promo.id }}" class="feature promo-collection {{ promo.cls }}">
    <hgroup>
      {% if promo.linkify_title %}
        <h2>
          {% if module_context == 'discovery' %}
            <a href="{{ collection.get_url_path()|urlparams(src='discovery-promo') }}">{{ promo.title|safe }}</a>
          {% else %}
            <a href="{{ collection.get_url_path()|urlparams(src='hp-dl-promo') }}">{{ promo.title|safe }}</a>
          {% endif %}
        </h2>
      {% else %}
        <h2>{{ promo.title|safe }}</h2>
      {% endif %}
      {% if promo.subtitle %}
        <h3>{{ promo.subtitle|safe }}</h3>
      {% endif %}
    </hgroup>
    <ul class="addons">
      {% for addon in addons %}
        <li data-guid="{{ addon.guid }}" data-ctx="{{ module_context }}"
            {% if addon.type == amo.ADDON_PERSONA %}class="persona-feature"{% endif %}>
          {% if module_context == 'discovery' %}
          <a href="{{ services_url('discovery.addons.detail', addon.slug,
                                   src='discovery-promo') }}" target="_self">
          {% else %}
          <a href="{{ url('i_addons.detail', addon.slug,
                          src='hp-dl-promo') }}" target="_self">
          {% endif %}
            {% if addon.type == amo.ADDON_PERSONA %}
              <h3 class="vtruncate">{{ addon.name }}</h3>
              {{ disco_persona_preview(addon.persona, linked=False) }}
            {% else %}
              <img src="{{ addon.icon_url }}" width="32" height="32">
              <h3 class="vtruncate">{{ addon.name }}</h3>
              <p class="desc vtruncate">{{ descriptions.get(addon.id, addon.summary|strip_html) }}</p>
            {% endif %}
          </a>
        </li>
      {% endfor %}
    </ul>
  </div>
</li>
{% endif %}<commit_msg>band-aid for promo-panel bleeding (bug 676701)<commit_after>{% set collection = promo.collection %}
{%- if addons -%}
<li class="panel">
  <div id="{{ promo.id }}" class="feature promo-collection {{ promo.cls }}">
    <hgroup>
      {% if promo.linkify_title %}
        <h2>
          {% if module_context == 'discovery' %}
            <a href="{{ collection.get_url_path()|urlparams(src='discovery-promo') }}">{{ promo.title|safe }}</a>
          {% else %}
            <a href="{{ collection.get_url_path()|urlparams(src='hp-dl-promo') }}">{{ promo.title|safe }}</a>
          {% endif %}
        </h2>
      {% else %}
        <h2>{{ promo.title|safe }}</h2>
      {% endif %}
      {% if promo.subtitle %}
        <h3>{{ promo.subtitle|safe }}</h3>
      {% endif %}
    </hgroup>
    <ul class="addons">
      {% for addon in addons %}
        <li data-guid="{{ addon.guid }}" data-ctx="{{ module_context }}"
            {% if addon.type == amo.ADDON_PERSONA %}class="persona-feature"{% endif %}>
          {% if module_context == 'discovery' %}
          <a href="{{ services_url('discovery.addons.detail', addon.slug,
                                   src='discovery-promo') }}" target="_self">
          {% else %}
          <a href="{{ url('i_addons.detail', addon.slug,
                          src='hp-dl-promo') }}" target="_self">
          {% endif %}
            {% if addon.type == amo.ADDON_PERSONA %}
              <h3 class="vtruncate">{{ addon.name }}</h3>
              {{ disco_persona_preview(addon.persona, linked=False) }}
            {% else %}
              <img src="{{ addon.icon_url }}" width="32" height="32">
              <h3 class="vtruncate">{{ addon.name }}</h3>
              <p class="desc vtruncate">{{ descriptions.get(addon.id, addon.summary|strip_html) }}</p>
            {% endif %}
          </a>
        </li>
      {% endfor %}
    </ul>
  </div>
</li>
{%- endif -%}
{'fraction_non_alphanumeric': 0.20416776576101292, 'fraction_numerical': 0.008968609865470852, 'mean_word_length': 2.0191082802547773, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3136947', 'n_tokens_mistral': 1351, 'n_tokens_neox': 1233, 'n_words': 229}