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

{% block extrahead %}
<link rel="stylesheet" href="{{ MEDIA_URL }}css/zamboni/nick.css">
<link rel="stylesheet"
      href="{{ MEDIA_URL }}css/zamboni/jquery-ui/custom-1.7.2.css">
{% endblock %}

{% block title %}
Nick's Special Featured Add-ons Page for {{ request.APP.pretty }}
{% endblock %}

{% block content %}
<ul class="listing-header">
  {% for name, url, title in sections %}
  <li {{ name|class_selected(section) }}>
    <a href="{{ url }}">{{ title }}</a>
  </li>
  {% endfor %}
  </li>
  <li>
    <form id="params" method="get" action="" class="go">
      {{ form.as_p()|safe }}
    </form>
  </li>
</ul>

<table id="rec-stats" title="holy tablular data batman">
  <thead>
    <th>ID</th>
    <th>Name</th>
    <th>Categories</th>
    <th>Rating</th>
    <th>Reviews</th>
    <th>Compatibility</th>
    <th>Featured?</th>
    <th>DL(prev)</th>
    <th>DL(cur)</th>
    <th>DL&Delta;</th>
    <th>ADU(prev)</th>
    <th>ADU(cur)</th>
    <th>ADU&Delta;</th>
    <th>SPARKLINES</th>
  </thead>
  <tbody>
    {% for addon in addons.object_list %}
    {% cache addon %}
    <tr>
      <td><a href="{{ url('addons.detail', addon.id) }}"
             title="{{ addon.name }}">{{ addon.id }}</a></td>
      <td>{{ addon.name.localized_string|truncate(20, True) }}</td>
      <td>{{ addon.first_category }}</td>
      <td>{{ addon.average_rating }}</td>
      <td><a href="{{ url('reviews.list', addon.id) }}">
          {{ addon.total_reviews}}</a></td>
      {% set supports = addon.current_version.compatible_apps %}
      {% if request.APP in supports %}
        <td>{{ supports[request.APP].max }}</td>
      {% else %}
        <td>---</td>
      {% endif %}
      <td>{% if addon.featured %}Y{% else %}N{% endif %}</td>
      <td>{{ addon.downloads.previous|numberfmt }}</td>
      <td>{{ addon.downloads.current|numberfmt }}</td>
      <td class="{{ addon.downloads.change }}">
        {{ addon.downloads.delta|numberfmt('+0%;-0%') }}
      </td>
      <td>{{ addon.adus.previous|round|numberfmt }}</td>
      <td>{{ addon.adus.current|round|numberfmt }}</td>
      <td class="{{ addon.adus.change }}">
        {{ addon.adus.delta|numberfmt('+0%;-0%') }}
      </td>
      <td class="sparklines">{{ addon.sparks|join(',') }}</td>
    </tr><commit_msg>cache per qs, not per add-on (bug 556084)<commit_after>{% extends "base.html" %}

{% block extrahead %}
<link rel="stylesheet" href="{{ MEDIA_URL }}css/zamboni/nick.css">
<link rel="stylesheet"
      href="{{ MEDIA_URL }}css/zamboni/jquery-ui/custom-1.7.2.css">
{% endblock %}

{% block title %}
Nick's Special Featured Add-ons Page for {{ request.APP.pretty }}
{% endblock %}

{% block content %}
<ul class="listing-header">
  {% for name, url, title in sections %}
  <li {{ name|class_selected(section) }}>
    <a href="{{ url }}">{{ title }}</a>
  </li>
  {% endfor %}
  </li>
  <li>
    <form id="params" method="get" action="" class="go">
      {{ form.as_p()|safe }}
    </form>
  </li>
</ul>

<table id="rec-stats" title="holy tablular data batman">
  <thead>
    <th>ID</th>
    <th>Name</th>
    <th>Categories</th>
    <th>Rating</th>
    <th>Reviews</th>
    <th>Compatibility</th>
    <th>Featured?</th>
    <th>DL(prev)</th>
    <th>DL(cur)</th>
    <th>DL&Delta;</th>
    <th>ADU(prev)</th>
    <th>ADU(cur)</th>
    <th>ADU&Delta;</th>
    <th>SPARKLINES</th>
  </thead>
  <tbody>
    {% for addon in addons.object_list %}
    {% cache addon.object_list %}
    <tr>
      <td><a href="{{ url('addons.detail', addon.id) }}"
             title="{{ addon.name }}">{{ addon.id }}</a></td>
      <td>{{ addon.name.localized_string|truncate(20, True) }}</td>
      <td>{{ addon.first_category }}</td>
      <td>{{ addon.average_rating }}</td>
      <td><a href="{{ url('reviews.list', addon.id) }}">
          {{ addon.total_reviews}}</a></td>
      {% set supports = addon.current_version.compatible_apps %}
      {% if request.APP in supports %}
        <td>{{ supports[request.APP].max }}</td>
      {% else %}
        <td>---</td>
      {% endif %}
      <td>{% if addon.featured %}Y{% else %}N{% endif %}</td>
      <td>{{ addon.downloads.previous|numberfmt }}</td>
      <td>{{ addon.downloads.current|numberfmt }}</td>
      <td class="{{ addon.downloads.change }}">
        {{ addon.downloads.delta|numberfmt('+0%;-0%') }}
      </td>
      <td>{{ addon.adus.previous|round|numberfmt }}</td>
      <td>{{ addon.adus.current|round|numberfmt }}</td>
      <td class="{{ addon.adus.change }}">
        {{ addon.adus.delta|numberfmt('+0%;-0%') }}
      </td>
      <td class="sparklines">{{ addon.sparks|join(',') }}</td>
    </tr>
{'fraction_non_alphanumeric': 0.2398881239242685, 'fraction_numerical': 0.0051635111876075735, 'mean_word_length': 2.92652027027027, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 0, '>': 165, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '510213', 'n_tokens_mistral': 1863, 'n_tokens_neox': 1745, 'n_words': 320}