<commit_before>{% load tagging_tags %}
{% tags_for_model posts.post as post_tags with counts %}
<ul class="menu">
{% for tag in post_tags|dictsortreversed:"count" %}
    <li><a href="{% url posts_by_tag %}?tag={{ tag }}" rel="tag">{{ tag }}</a> ({{ tag.count }})</li>
{% endfor %}
</ul><commit_msg>fixed bad html when no tags exist<commit_after>{% load tagging_tags %}
{% tags_for_model posts.post as post_tags with counts %}
{% if post_tags %}
<ul class="menu">
{% for tag in post_tags|dictsortreversed:"count" %}
    <li><a href="{% url posts_by_tag %}?tag={{ tag }}" rel="tag">{{ tag }}</a> ({{ tag.count }})</li>
{% endfor %}
</ul>
{% endif %}
{'fraction_non_alphanumeric': 0.22565687789799072, 'fraction_numerical': 0.0, 'mean_word_length': 5.230769230769231, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5500932', 'n_tokens_mistral': 256, 'n_tokens_neox': 230, 'n_words': 64}