<commit_before>from django import template
from django.utils.dateformat import format
from django.utils.safestring import mark_safe

register = template.Library()


@register.filter(is_safe=True)
def iso_time_tag(date):
    """ Returns an ISO date, with the year tagged in a say-no-more span.

    This allows the date representation to shrink to just MM-DD. """
    date_templ = '<time datetime="{timestamp}">{month_day}<span class="say-no-more">-{year}</span></time>'
    return mark_safe(date_templ.format(
        timestamp=format(date, 'c'),
        month_day=format(date, 'm-d'),
        year=format(date, 'Y')
    ))
<commit_msg>Fix order of date parts<commit_after>from django import template
from django.utils.dateformat import format
from django.utils.safestring import mark_safe

register = template.Library()


@register.filter(is_safe=True)
def iso_time_tag(date):
    """ Returns an ISO date, with the year tagged in a say-no-more span.

    This allows the date representation to shrink to just MM-DD. """
    date_templ = '<time datetime="{timestamp}"><span class="say-no-more">{year}-</span>{month}-{day}</time>'
    return mark_safe(date_templ.format(
        timestamp=format(date, 'c'),
        month=format(date, 'm'),
        day=format(date, 'd'),
        year=format(date, 'Y'),
    ))

{'fraction_non_alphanumeric': 0.13740458015267176, 'fraction_numerical': 0.0, 'mean_word_length': 4.061776061776062, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3358549', 'n_tokens_mistral': 417, 'n_tokens_neox': 400, 'n_words': 108}