<commit_before><div class="itemActions">
    {# LIKE #}
    <span id="itemLikes{{ item.id }}">
    {% if app.user and item.userLikes(app.user) %}
        {% if item.likers | length > 3 %}
            <span><i class="icon-thumbs-up-alt icon-large"></i> A {{ item.likers | length - 1 }} personas y a ti os gusta</span> 
        {% elseif item.likers | length > 1 %}
            <span><i class="icon-thumbs-up-alt icon-large"></i> A {% for u in item.likers %}{% if u != app.user %}{% if not loop.first and item.likers[0] != app.user %}, {% endif %}{{ u.name }}{%endif%}{% endfor %} y a ti os gusta</span> 
        {% else %}
            <span><i class="icon-thumbs-up-alt icon-large"></i> Te gusta</span>
        {% endif %}
    {% elseif app.user %}
        <a onclick="$('#itemLikes{{ item.id }}').load('{{ path('ColectaItemLike', {'slug':item.slug}) }}');return false;" href="{{ path('ColectaItemLike', {'slug':item.slug}) }}" title="Me gusta"><i class="icon-thumbs-up-alt icon-large"></i> Me gusta</a>
        
        {% if item.likers | length > 3 %}
            <span>(A {{ item.likers | length }} personas les gusta)</span> 
        {% elseif item.likers | length > 1 %}
            <span>(A {% for u in item.likers[0:item.likers | length - 1] %}{% if not loop.first %}, {% endif %}{{ u.name }}{% endfor %} y {{ item.likers[item.likers | length - 1].name }} les gusta)</span> 
        {% elseif item.likers | length > 0 %}
            <span>(A {{ item.likers[0].name }} le gusta)</span> 
        {% endif %}
    {% else %}
        {% if item.likers | length > 3 %}
            <span>(A {{ item.likers | length }} personas les gusta)</span> 
        {% elseif item.likers | length > 1 %}
            <span>(A {% for u in item.likers[0:item.likers | length - 1] %}{% if not loop.first %}, {% endif %}{{ u.name }}{% endfor %} y {{ item.likers[item.likers | length - 1].name }} les gusta)</span> 
        {% elseif item.likers | length > 0 %}
            <span>(A {{ item.likers[0].name }} le gusta)</span>
        {% endif %}
    {% endif%}
    </span>
    
    {# ASSISTANCE #}
    {% if item.type == 'Activity/Event' %}
        <a href="{{ path('ColectaEventView', { 'slug': item.slug }) }}"><i class="icon-user"></i> {% if item.assistances | length > 1 %}{% if item.dateini | date('U') < 'now' | date('U') %}Han asistido{% else %}Van a asistir{% endif %} {{ item.assistances | length }} personas {% elseif item.assistances | length == 1 %}{% if item.dateini | date('U') < 'now' | date('U') %}Ha asistido{% else %}Va a asistir{% endif %} 1 persona{% else %}Nadie se ha apuntado{% endif %}</a>
    {% endif %}
    
    {# FILE #}
    {% if app.user and item.type == 'Files/Folder' and not item.personal and item.public %}
        <a href="{{ path('ColectaFilePick',{'slug':item.slug}) }}"><i class="icon-plus"></i> Agregar archivos a este álbum</a>
    {% endif %}
    
    {# EDIT #}
    {% if item.author == app.user %}
        <a href="{{ path('Colecta' ~ item.type | replace({'Item/':'','Files/':'','Colective/':'','Activity/':''}) ~ 'Edit', {slug:item.slug}) }}" title="Editar"><i class="icon-pencil icon-large"></i> Editar</a>
    {% endif %}
    
    {# ATTACH #}
    {% if app.user and not item.part %}
        <a href="#item{{ item.id}}" onClick="ItemAttachForm({{ item.id}}); return false;" title="Adjuntar"><i class="icon-pushpin icon-large"></i> Adjuntar</a><commit_msg>AllowAssistances applied to item actions<commit_after><div class="itemActions">
    {# LIKE #}
    <span id="itemLikes{{ item.id }}">
    {% if app.user and item.userLikes(app.user) %}
        {% if item.likers | length > 3 %}
            <span><i class="icon-thumbs-up-alt icon-large"></i> A {{ item.likers | length - 1 }} personas y a ti os gusta</span> 
        {% elseif item.likers | length > 1 %}
            <span><i class="icon-thumbs-up-alt icon-large"></i> A {% for u in item.likers %}{% if u != app.user %}{% if not loop.first and item.likers[0] != app.user %}, {% endif %}{{ u.name }}{%endif%}{% endfor %} y a ti os gusta</span> 
        {% else %}
            <span><i class="icon-thumbs-up-alt icon-large"></i> Te gusta</span>
        {% endif %}
    {% elseif app.user %}
        <a onclick="$('#itemLikes{{ item.id }}').load('{{ path('ColectaItemLike', {'slug':item.slug}) }}');return false;" href="{{ path('ColectaItemLike', {'slug':item.slug}) }}" title="Me gusta"><i class="icon-thumbs-up-alt icon-large"></i> Me gusta</a>
        
        {% if item.likers | length > 3 %}
            <span>(A {{ item.likers | length }} personas les gusta)</span> 
        {% elseif item.likers | length > 1 %}
            <span>(A {% for u in item.likers[0:item.likers | length - 1] %}{% if not loop.first %}, {% endif %}{{ u.name }}{% endfor %} y {{ item.likers[item.likers | length - 1].name }} les gusta)</span> 
        {% elseif item.likers | length > 0 %}
            <span>(A {{ item.likers[0].name }} le gusta)</span> 
        {% endif %}
    {% else %}
        {% if item.likers | length > 3 %}
            <span>(A {{ item.likers | length }} personas les gusta)</span> 
        {% elseif item.likers | length > 1 %}
            <span>(A {% for u in item.likers[0:item.likers | length - 1] %}{% if not loop.first %}, {% endif %}{{ u.name }}{% endfor %} y {{ item.likers[item.likers | length - 1].name }} les gusta)</span> 
        {% elseif item.likers | length > 0 %}
            <span>(A {{ item.likers[0].name }} le gusta)</span>
        {% endif %}
    {% endif%}
    </span>
    
    {# ASSISTANCE #}
    {% if item.type == 'Activity/Event' and item.allowassistances %}
        <a href="{{ path('ColectaEventView', { 'slug': item.slug }) }}"><i class="icon-user"></i> {% if item.assistances | length > 1 %}{% if item.dateini | date('U') < 'now' | date('U') %}Han asistido{% else %}Van a asistir{% endif %} {{ item.assistances | length }} personas {% elseif item.assistances | length == 1 %}{% if item.dateini | date('U') < 'now' | date('U') %}Ha asistido{% else %}Va a asistir{% endif %} 1 persona{% else %}Nadie se ha apuntado{% endif %}</a>
    {% endif %}
    
    {# FILE #}
    {% if app.user and item.type == 'Files/Folder' and not item.personal and item.public %}
        <a href="{{ path('ColectaFilePick',{'slug':item.slug}) }}"><i class="icon-plus"></i> Agregar archivos a este álbum</a>
    {% endif %}
    
    {# EDIT #}
    {% if item.author == app.user %}
        <a href="{{ path('Colecta' ~ item.type | replace({'Item/':'','Files/':'','Colective/':'','Activity/':''}) ~ 'Edit', {slug:item.slug}) }}" title="Editar"><i class="icon-pencil icon-large"></i> Editar</a>
    {% endif %}
    
    {# ATTACH #}
    {% if app.user and not item.part %}
        <a href="#item{{ item.id}}" onClick="ItemAttachForm({{ item.id}}); return false;" title="Adjuntar"><i class="icon-pushpin icon-large"></i> Adjuntar</a>
{'fraction_non_alphanumeric': 0.22409497288582736, 'fraction_numerical': 0.006155650007328155, 'mean_word_length': 2.7660044150110377, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 115, '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': '6079452', 'n_tokens_mistral': 2522, 'n_tokens_neox': 2331, 'n_words': 567}