<commit_before>{% load i18n %}
<div id="hcalendar_{{instance.id}}" class="vevent">
    {% if instance.url %}<a href="{{instance.url}}" class="url">{% endif %}
        {% if instance.all_day_event %}
        <abbr title="{{instance.dtstart.isoformat}}" class="dtstart">{{instance.dtstart|date:"D d M Y"}}</abbr>
        {% else %}
        <abbr title="{{instance.dtstart.isoformat}}" class="dtstart">{{instance.dtstart|date:"D d M Y P"}}</abbr>
        {% endif %}
        {% if instance.dtend %}
            &nbsp;-&nbsp;
            {% ifequal instance.dtstart.date instance.dtend.date %}
            <abbr title="{{instance.dtend.isoformat}}" class="dtend">{% trans "All day event" %}</abbr>
            {% else %}
            <abbr title="{{instance.dtend.isoformat}}" class="dtend">{{instance.dtend|time:"P"}}</abbr>
            {% endifequal %}
        {% endif %}
        :&nbsp;
        <span class="summary">{{instance.summary}}</span>
        {% if instance.location %}{% trans " at " %}<span class="location">{{instance.location}}</span>{% endif %}
    {% if instance.url %}</a>{% endif %}
    {% include adr_microformat_template %}
    {% if instance.description %}<p class="description">{{instance.description}}</p>{% endif %}    <commit_msg>Change the way "all day event" is used in hcal templates. Display only "all day event" if it's checked. if dtstart day = dtend day, display start and end time.<commit_after>{% load i18n %}
<div id="hcalendar_{{instance.id}}" class="vevent">
    {% if instance.url %}<a href="{{instance.url}}" class="url">{% endif %}
        {% if instance.all_day_event %}
        <abbr title="{{instance.dtstart.isoformat}}" class="dtstart">{{instance.dtstart|date:"D d M Y"}}</abbr>
        {% else %}
        <abbr title="{{instance.dtstart.isoformat}}" class="dtstart">{{instance.dtstart|date:"D d M Y P"}}</abbr>
        {% endif %}
        {% if instance.dtend %}
            &nbsp;-&nbsp;
            {% if instance.all_day_event and instance.dtstart.date == instance.dtend.date %}
            <abbr title="{{instance.dtend.isoformat}}" class="dtend">{% trans "All day event" %}</abbr>
            {% else %}
            {% if instance.dtstart.date == instance.dtend.date %}
            <abbr title="{{instance.dtend.isoformat}}" class="dtend">{{instance.dtend|time:"P"}}</abbr>
            {% else %}
            <abbr title="{{instance.dtend.isoformat}}" class="dtend">{{instance.dtstart|date:"D d M Y P"}}</abbr>
            {% endif %}
        {% endif %}
        :&nbsp;
        <span class="summary">{{instance.summary}}</span>
        {% if instance.location %}{% trans " at " %}<span class="location">{{instance.location}}</span>{% endif %}
    {% if instance.url %}</a>{% endif %}
    {% include adr_microformat_template %}
    {% if instance.description %}<p class="description">{{instance.description}}</p>{% endif %}    
{'fraction_non_alphanumeric': 0.20472714633298575, 'fraction_numerical': 0.0013903371567605145, 'mean_word_length': 3.0592383638928067, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '2341497', 'n_tokens_mistral': 968, 'n_tokens_neox': 864, 'n_words': 181}