<commit_before>{% extends "directory/layout.html" %}
{% block content %}
  <div class="container clearfix">
      {% if notification == 'published' %}
        <div class="notification"><p>Your badge has been published.</p></div>
      {% elif notification == 'created' %}
        <div class="notification"><p>Your badge has been created.</p></div>
      {% elif notification == 'archived' %}
        <div class="notification"><p>Your badge has been archived.</p></div>
      {% elif notification == 'saved' %}
        <div class="notification"><p>Your badge has been saved.</p></div>
      {% endif %}
      {% if category == 'template' %}
      <section class="info">
        <h1 class="info-heading">Templates</h1>
        <p class="info-text">Use templates to create great new badges quickly. Create and edit your own templates and tailor draft badges to your programs and vision.</p>
      </section>
      {% endif %}

      {% if category == 'draft' %}
      <section class="info">
        <h1 class="info-heading">Drafts</h1>
        <p class="info-text">Work on draft badges. Define badge criteria and visuals, then publish when you're ready.</p>
      </section>
      {% endif %}

      {% if category == 'published' %}
      <section class="info">
        <h1 class="info-heading">Published</h1>
        <p class="info-text">Manage and issue your published badges.</p>
      </section>
      {% endif %}

      {% if category == 'archived' %}
      <section class="info">
        <h1 class="info-heading">Archived</h1>
        <p class="info-text">Manage inactive badges no longer being issued.</p>
      </section>
      {% endif %}

      <nav class="nav-header">
        <ul class="navigation-dropdown right">
          <li class="menu-item sort-menu">
            Sort badges <i class="fa fa-caret-down"></i>
            <ul class="menu-hover sort-menu-hover">
              <a href="{{ url('directory') }}?category={{ category }}&sort=name"><li>Name</li></a>
              <a href="{{ url('directory') }}?category={{ category }}&sort=applications"><li>Applications</li></a>
              <a href="{{ url('directory') }}?category={{ category }}&sort=awarded"><li>Awarded</li></a>
              <a href="{{ url('directory') }}?category={{ category }}&sort=dateactive"><li>Date Active</li></a>
              <a href="{{ url('directory') }}?category={{ category }}&sort=datecreated"><li>Date Created</li></a>
            </ul>
          </li>
        </ul>
      </nav>

      <section class="directory-container js-masonry-container cb">
        {% if category == 'template' or category == 'draft' %}
          <section class="item badge-new left">
            <div class="new-badge-placeholder">+</div>
            {% if category == 'template' %}
              <h2>Create a Template</h2>
            {% else %}
              <h2>Create a New Draft</h2>
            {% endif %}
            <a href="{{ url('directory.addBadge') }}?category={{ category }}" class="btn blank-btn blank-btn-homepage">Start</a>
          </section>
        {% endif %}

        {% for badge in badges %}
          <section class="item badge-template left"><commit_msg>makes the green + button into a link that goes to create new... #237<commit_after>{% extends "directory/layout.html" %}
{% block content %}
  <div class="container clearfix">
      {% if notification == 'published' %}
        <div class="notification"><p>Your badge has been published.</p></div>
      {% elif notification == 'created' %}
        <div class="notification"><p>Your badge has been created.</p></div>
      {% elif notification == 'archived' %}
        <div class="notification"><p>Your badge has been archived.</p></div>
      {% elif notification == 'saved' %}
        <div class="notification"><p>Your badge has been saved.</p></div>
      {% endif %}
      {% if category == 'template' %}
      <section class="info">
        <h1 class="info-heading">Templates</h1>
        <p class="info-text">Use templates to create great new badges quickly. Create and edit your own templates and tailor draft badges to your programs and vision.</p>
      </section>
      {% endif %}

      {% if category == 'draft' %}
      <section class="info">
        <h1 class="info-heading">Drafts</h1>
        <p class="info-text">Work on draft badges. Define badge criteria and visuals, then publish when you're ready.</p>
      </section>
      {% endif %}

      {% if category == 'published' %}
      <section class="info">
        <h1 class="info-heading">Published</h1>
        <p class="info-text">Manage and issue your published badges.</p>
      </section>
      {% endif %}

      {% if category == 'archived' %}
      <section class="info">
        <h1 class="info-heading">Archived</h1>
        <p class="info-text">Manage inactive badges no longer being issued.</p>
      </section>
      {% endif %}

      <nav class="nav-header">
        <ul class="navigation-dropdown right">
          <li class="menu-item sort-menu">
            Sort badges <i class="fa fa-caret-down"></i>
            <ul class="menu-hover sort-menu-hover">
              <a href="{{ url('directory') }}?category={{ category }}&sort=name"><li>Name</li></a>
              <a href="{{ url('directory') }}?category={{ category }}&sort=applications"><li>Applications</li></a>
              <a href="{{ url('directory') }}?category={{ category }}&sort=awarded"><li>Awarded</li></a>
              <a href="{{ url('directory') }}?category={{ category }}&sort=dateactive"><li>Date Active</li></a>
              <a href="{{ url('directory') }}?category={{ category }}&sort=datecreated"><li>Date Created</li></a>
            </ul>
          </li>
        </ul>
      </nav>

      <section class="directory-container js-masonry-container cb">
        {% if category == 'template' or category == 'draft' %}
          <section class="item badge-new left">
            <a href="{{ url('directory.addBadge') }}?category={{ category }}">
              <div class="new-badge-placeholder">+</div>
            </a>
            {% if category == 'template' %}
              <h2>Create a Template</h2>
            {% else %}
              <h2>Create a New Draft</h2>
            {% endif %}
            <a href="{{ url('directory.addBadge') }}?category={{ category }}" class="btn blank-btn blank-btn-homepage">Start</a>
          </section>
        {% endif %}

        {% for badge in badges %}
          <section class="item badge-template left">
{'fraction_non_alphanumeric': 0.18198671404294764, 'fraction_numerical': 0.0041711725629538085, 'mean_word_length': 2.507042253521127, 'pattern_counts': {'":': 0, '<': 171, '<?xml version=': 0, '>': 171, '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': '7037502', 'n_tokens_mistral': 1932, 'n_tokens_neox': 1805, 'n_words': 483}