<commit_before>{% extends 'detail/protected_app.html' %}

{% block title %}{{ mkt_page_title(product.name) }}{% endblock %}

{% block extrahead %}
  {{ super() }}
  {% for preview in product.all_previews %}
    <link rel="prefetch" href="{{ preview.image_url }}">
  {% endfor %}
{% endblock %}

{# Breadcrumbs show just one category for now. #}
{% set cats = product.all_categories %}
{% set first_cat = cats[0] if cats else None %}

{% block content %}
  {% if first_cat %}
    {{ mkt_breadcrumbs(items=[(url('home'), _('Home')),
                              (first_cat.get_url_path(), first_cat),
                              (None, product.name)]) }}
  {% else %}
    {{ mkt_breadcrumbs(product=product) }}
  {% endif %}
{% if not (is_dev or is_admin) and not product.is_public() %}
  <section class="product-details">
    <h1>{{ product.name }}</h1>
  </section>
  {{ notification(product, amo, is_dev) }}
{% else %}
  <section class="product-details">
    <div class="visual">
      <img class="icon" src="{{ product.get_icon_url(128) }}">
    </div>
    <div class="vitals">
      <h1>{{ product.name }}</h1>
      <h2 class="authors">{{ users_list(product.listed_authors) }}</h2>
      <p class="downloads">
        {% trans cnt=product.weekly_downloads,
                 num=product.weekly_downloads|numberfmt %}
          {{ num }} weekly download
        {% pluralize %}
          {{ num }} weekly downloads
        {% endtrans %}
      </p>
      {{ device_list(product) }}
      {% set categories = product.all_categories %}
      {% if categories %}
        <h3 class="hidden">{{ _('Categories') }}</h3>
        <ul class="categories hidden">
          {% for category in categories %}
          <li>
            <a href="{{ category.get_url_path() }}">
              {{ category }}
            </a>
          </li>
          {% endfor %}
        </ul>
      {% endif %}
    </div>
    <div class="actions">
      {{ market_button(product) }}
      {% if is_dev %}
        <p><a href="{{ product.get_dev_url() }}" class="button developer manage">
          {{ _('Manage') }}</a></p>
      {% endif %}
    </div>
  </section>

  {{ notification(product, amo, is_dev) }}<commit_msg>do not show install button on detail page if app is not public<commit_after>{% extends 'detail/protected_app.html' %}

{% block title %}{{ mkt_page_title(product.name) }}{% endblock %}

{% block extrahead %}
  {{ super() }}
  {% for preview in product.all_previews %}
    <link rel="prefetch" href="{{ preview.image_url }}">
  {% endfor %}
{% endblock %}

{# Breadcrumbs show just one category for now. #}
{% set cats = product.all_categories %}
{% set first_cat = cats[0] if cats else None %}

{% block content %}
  {% if first_cat %}
    {{ mkt_breadcrumbs(items=[(url('home'), _('Home')),
                              (first_cat.get_url_path(), first_cat),
                              (None, product.name)]) }}
  {% else %}
    {{ mkt_breadcrumbs(product=product) }}
  {% endif %}
{% if not (is_dev or is_admin) and not product.is_public() %}
  <section class="product-details">
    <h1>{{ product.name }}</h1>
  </section>
  {{ notification(product, amo, is_dev) }}
{% else %}
  <section class="product-details">
    <div class="visual">
      <img class="icon" src="{{ product.get_icon_url(128) }}">
    </div>
    <div class="vitals">
      <h1>{{ product.name }}</h1>
      <h2 class="authors">{{ users_list(product.listed_authors) }}</h2>
      <p class="downloads">
        {% trans cnt=product.weekly_downloads,
                 num=product.weekly_downloads|numberfmt %}
          {{ num }} weekly download
        {% pluralize %}
          {{ num }} weekly downloads
        {% endtrans %}
      </p>
      {{ device_list(product) }}
      {% set categories = product.all_categories %}
      {% if categories %}
        <h3 class="hidden">{{ _('Categories') }}</h3>
        <ul class="categories hidden">
          {% for category in categories %}
          <li>
            <a href="{{ category.get_url_path() }}">
              {{ category }}
            </a>
          </li>
          {% endfor %}
        </ul>
      {% endif %}
    </div>
    <div class="actions">
      {% if product.is_public() %}
        {{ market_button(product) }}
      {% endif %}
      {% if is_dev %}
        <p><a href="{{ product.get_dev_url() }}" class="button developer manage">
          {{ _('Manage') }}</a></p>
      {% endif %}
    </div>
  </section>

  {{ notification(product, amo, is_dev) }}
{'fraction_non_alphanumeric': 0.1853582554517134, 'fraction_numerical': 0.0053404539385847796, 'mean_word_length': 2.4027252081756245, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3294608', 'n_tokens_mistral': 1518, 'n_tokens_neox': 1398, 'n_words': 309}