<commit_before>{% load i18n %}

{% for project in featured_list %}
  <li class="module-item">
    <a class="module-item-title" href="{{ project.get_absolute_url }}">{{ project.name }}</a>
    {% for user in project.users.all %}
        <a href="{{ user.get_absolute_url }}" class="quiet">({{ user }})</a>
    {% endfor %}

    {% if project.has_good_build %}
    <span class="dropdown" style="position:absolute; right:0px; top:0px;">
      <span>
          <a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
        <a href="#">&#x25BC;</a>
      </span>
      <ul>
          {% with project.get_stable_version as version %}
          {% if version %}
            <li><a href="{{ version.get_absolute_url }}">{{ version.slug }}</a></li>
          {% endif %}
          {% endwith %}
      </ul>
    </span>
    {% else %}
    <ul class="module-item-menu">
      <li><a href="{{ project.get_builds_url }}">{% trans "No Docs" %}</a></li>
    </ul>
    {% endif %}
<commit_msg>Handle case with no stable<commit_after>{% load i18n %}

{% for project in featured_list %}
  <li class="module-item">
    <a class="module-item-title" href="{{ project.get_absolute_url }}">{{ project.name }}</a>
    {% for user in project.users.all %}
        <a href="{{ user.get_absolute_url }}" class="quiet">({{ user }})</a>
    {% endfor %}

    {% if project.has_good_build %}
    <span class="dropdown" style="position:absolute; right:0px; top:0px;">
      <span>
          <a href="{{ project.get_docs_url }}">{% trans "View Docs" %}</a>
        <a href="#">&#x25BC;</a>
      </span>
      <ul>
          {% with project.get_stable_version as version %}
          {% if version %}
            <li><a href="{{ version.get_absolute_url }}">{{ version.slug }}</a></li>
          {% else %}
            <li>No stable version</li>
          {% endif %}
          {% endwith %}
      </ul>
    </span>
    {% else %}
    <ul class="module-item-menu">
      <li><a href="{{ project.get_builds_url }}">{% trans "No Docs" %}</a></li>
    </ul>
    {% endif %}

{'fraction_non_alphanumeric': 0.21620302586627624, 'fraction_numerical': 0.005856515373352855, 'mean_word_length': 2.4745762711864407, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '526205', 'n_tokens_mistral': 739, 'n_tokens_neox': 676, 'n_words': 152}