<commit_before>{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block title %}
    Collections
{% endblock %}

{% block content %}
    <h1>Collections</h1>
    <h2><a href={% url "collection_create" %}>Create new Collection</h2>
    <ul>
    {% for collection in collection_list_filtered %}
        <li><a href={% url "collection_detail" collection.pk %}>{{ collection }}</a> | <a href={% url "collection_update" collection.pk %}>Update</a> | <form style="display:inline;" action={% url "collection_delete" collection.pk %} method="post" onsubmit="return confirm('Are you sure you want to delete {{ collection }}?')">{% csrf_token %}
    <input type="submit" value="Delete" />
    </form></li>
    {% empty %}
        <li>No Collections yet.</li>
    {% endfor %}
    </ul>
{% endblock %}<commit_msg>grouping by inactive and active<commit_after>{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block title %}
    Collections
{% endblock %}

{% block content %}
    <h1>Collections</h1>
    {% regroup collection_list by is_active as collections %}
    {% for is_active in collections %}
        <h2>{% if is_active.grouper  == True %}Active{% else %}Inactive{% endif %}</h2>
        <ul>
        {% for collection in is_active.list %}
           <li><a href={% url "collection_detail" collection.pk %}>{{ collection.name }}</a> | Active? {{ collection.is_active }} | group: {{ collection.group }}  </li>
        {% empty %}
        <li>No collections yet.</li>
        {% endfor %}
        </ul>
    {% endfor %}
    <h3><a href={% url "collection_create" %}>Add New Collection</a></h3>
{% endblock %}
{'fraction_non_alphanumeric': 0.1852995676343422, 'fraction_numerical': 0.006176652254478073, 'mean_word_length': 3.402173913043478, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '5887421', 'n_tokens_mistral': 549, 'n_tokens_neox': 499, 'n_words': 132}