<commit_before>{% extends 'ColectaItemBundle:Default:itemMini.html.twig' %}

{% set dias_semana = {
            'Monday':'Lunes',
            'Tuesday':'Martes',
            'Wednesday':'Miércoles',
            'Thursday':'Jueves',
            'Friday':'Viernes',
            'Saturday':'Sábado',
            'Sunday':'Domingo'
        }%}
{% set meses = {
            '1':'enero',
            '2':'febrero',
            '3':'marzo',
            '4':'abril',
            '5':'mayo',
            '6':'junio',
            '7':'julio',
            '8':'agosto',
            '9':'septiembre',
            '10':'octubre',
            '11':'noviembre',
            '12':'diciembre'
        }%}
        
{% block itemBody %}
    <p class="event-date">
        <a href="{{ path('ColectaEventView', { 'slug': item.slug }) }}"><i class="far fa-calendar"></i>
        {{ item.dateini | date('l') | replace (dias_semana) }}, 
        {{ item.dateini | date('d') }} 
        de {% set month = item.dateini | date('n') | replace(meses) %}{% if item.dateini | date('Y') == 'today' | date('Y') %}{{month}}{% else %}{{ month }} &rsquo;{{ item.dateini | date('y') }}{% endif %}
        
        {% if item.dateini | date('Y') == item.dateend | date('Y') and item.dateini | date('z') == item.dateend | date('z') %} 
            {# Same Day#}
            </a> <a href="{{ path('ColectaEventView', { 'slug': item.slug }) }}"><i class="far fa-clock"></i> {{ item.dateini | date('H:i') }} a {{ item.dateend | date('H:i') }}</a>
        {% else %}
            {# Different days #}
             <i class="far fa-clock"></i> {{ item.dateini | date('H:i') }} </a>
                <a href="{{ path('ColectaEventView', { 'slug': item.slug }) }}"><i class="far fa-long-arrow-right"></i>
                {{ item.dateend | date('l') | replace (dias_semana) }}, 
                {{ item.dateend | date('d') }} 
                de {% set month = item.dateend | date('n') | replace(meses) %}{% if item.dateend | date('Y') == 'today' | date('Y') %}{{month}}{% else %}{{ month }} &rsquo;{{ item.dateend | date('y') }}{% endif %}
                <i class="far fa-clock"></i> {{ item.dateend | date('H:i') }}</a>
        {% endif %}
    </p>
    
    
    {% set properties = [] %}
    {% if item.distance > 0 %}{% set properties = properties|merge([item.distance ~ ' km']) %}{% endif %}
    {% if item.uphill > 0 %}{% set properties = properties|merge(['desnivel: ' ~ item.uphill ~ ' m']) %}{% endif %}<commit_msg>Minor design update<commit_after>{% extends 'ColectaItemBundle:Default:itemMini.html.twig' %}

{% set dias_semana = {
            'Monday':'Lunes',
            'Tuesday':'Martes',
            'Wednesday':'Miércoles',
            'Thursday':'Jueves',
            'Friday':'Viernes',
            'Saturday':'Sábado',
            'Sunday':'Domingo'
        }%}
{% set meses = {
            '1':'enero',
            '2':'febrero',
            '3':'marzo',
            '4':'abril',
            '5':'mayo',
            '6':'junio',
            '7':'julio',
            '8':'agosto',
            '9':'septiembre',
            '10':'octubre',
            '11':'noviembre',
            '12':'diciembre'
        }%}
        
{% block itemBody %}
    <p class="event-date">
        <a href="{{ path('ColectaEventView', { 'slug': item.slug }) }}"><i class="far fa-calendar"></i>
        {{ item.dateini | date('l') | replace (dias_semana) }}, 
        {{ item.dateini | date('d') }} 
        de {% set month = item.dateini | date('n') | replace(meses) %}{% if item.dateini | date('Y') == 'today' | date('Y') %}{{month}}{% else %}{{ month }} {{ item.dateini | date('Y') }}{% endif %}
        
        {% if item.dateini | date('Y') == item.dateend | date('Y') and item.dateini | date('z') == item.dateend | date('z') %} 
            {# Same Day#}
            </a> <a href="{{ path('ColectaEventView', { 'slug': item.slug }) }}"><i class="far fa-clock"></i> {{ item.dateini | date('H:i') }} a {{ item.dateend | date('H:i') }}</a>
        {% else %}
            {# Different days #}
             <i class="far fa-clock"></i> {{ item.dateini | date('H:i') }} </a>
                <a href="{{ path('ColectaEventView', { 'slug': item.slug }) }}"><i class="far fa-long-arrow-right"></i>
                {{ item.dateend | date('l') | replace (dias_semana) }}, 
                {{ item.dateend | date('d') }} 
                de {% set month = item.dateend | date('n') | replace(meses) %}{% if item.dateend | date('Y') == 'today' | date('Y') %}{{month}}{% else %}{{ month }} {{ item.dateend | date('Y') }}{% endif %}
                <i class="far fa-clock"></i> {{ item.dateend | date('H:i') }}</a>
        {% endif %}
    </p>
    
    
    {% set properties = [] %}
    {% if item.distance > 0 %}{% set properties = properties|merge([item.distance ~ ' km']) %}{% endif %}
    {% if item.uphill > 0 %}{% set properties = properties|merge(['desnivel: ' ~ item.uphill ~ ' m']) %}{% endif %}
{'fraction_non_alphanumeric': 0.23867313915857605, 'fraction_numerical': 0.006877022653721683, 'mean_word_length': 2.131728942368588, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 45, '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': '3019142', 'n_tokens_mistral': 1782, 'n_tokens_neox': 1645, 'n_words': 314}