<commit_before>{% macro listPackages(packages, paginate, showAutoUpdateWarning, meta) %}
    <ul class="packages list-unstyled">
        {% for package in packages %}
            {% if package.id is numeric %}
                {% set packageUrl = path('view_package', { 'name' : package.name }) %}
            {% else %}
                {% set packageUrl = path('view_providers', { 'name' : package.name }) %}
            {% endif %}
            <li data-url="{{ packageUrl }}" class="row">
                <div class="col-xs-12 package-item">
                    <div class="row">
                        <div class="col-sm-9 col-lg-10">
                            {% if package.language is defined and package.language != null %}<p class="pull-right language">{{ package.language }}</p>{% endif %}
                            <h4 class="font-bold">
                                <a href="{{ packageUrl }}">{{ package.name }}</a>
                                {% if package.id is not numeric or package.name == 'nelmio/alice' %}
                                    <small>(Virtual Package)</small>
                                {% endif %}
                                {% if showAutoUpdateWarning and not package.autoUpdated %}
                                    <small>(Not Auto-Updated)</small>
                                {% endif %}
                            </h4>
                            {% if package.description is defined and package.description %}
                                <p>{{ package.description }}</p>
                            {% endif %}
                            {% if package.abandoned is defined and package.abandoned %}
                                <p class="abandoned">
                                    <i class="glyphicon glyphicon-exclamation-sign"></i> Abandoned! {% if package.replacementPackage %}See <a href="{{ path('view_package', {name: package.replacementPackage}) }}">{{ package.replacementPackage }}</a>{% endif %}
                                </p>
                            {% endif %}
                        </div>
                        <div class="col-sm-3 col-lg-2">
                            {% if meta %}
                                <p class="metadata">
                                    <span class="metadata-block"><i class="glyphicon glyphicon-arrow-down"></i> {{ meta.downloads[package.id]|default(0)|number_format(0, '.', '&#8201;')|raw }}</span>
                                    <span class="metadata-block"><i class="glyphicon glyphicon-star"></i> {{ meta.favers[package.id]|number_format(0, '.', '&#8201;')|raw }}</span>
                                </p>
                            {% endif %}
                        </div>
                    </div>
                </div>
            </li>
        {% endfor %}

        {% if paginate is defined and paginate and packages.haveToPaginate() %}
            {{ pagerfanta(packages, 'twitter_bootstrap', {'proximity': 2}) }}
        {% endif %}
    </ul>
{% endmacro %}

{% macro listPackagesShort(packages, showVersion, showMoreUrl) %}
    <ul class="list-unstyled">
        {% for package in packages %}
            <li>
                <a href="{{ path('view_package', {'name' : package.name }) }}">{{ package.name }}{% if showVersion is defined and showVersion %}<strong>{{ package.version }}</strong>{% endif %}</a>
                {{ package.description|truncate(60) }}
            </li>
        {% endfor %}
        {% if showMoreUrl is defined and showMoreUrl %}
            <li><a href="{{ path('browse_popular') }}">See more...</a></li>
        {% endif %}
    </ul>
{% endmacro %}

{% macro packageLink(packageName, type) %}
    {%- if type == 'provide' and (packageName is existing_provider or packageName is existing_package) -%}
        <a href="{{ path('view_providers', { 'name': packageName }) }}">{{ packageName }}</a>
    {%- elseif packageName is existing_package -%}
        <a href="{{ path('view_package', { 'name': packageName }) }}">{{ packageName }}</a>
    {%- else -%}
        {{ packageName }}
    {%- endif -%}
{% endmacro %}
<commit_msg>Oops debug code<commit_after>{% macro listPackages(packages, paginate, showAutoUpdateWarning, meta) %}
    <ul class="packages list-unstyled">
        {% for package in packages %}
            {% if package.id is numeric %}
                {% set packageUrl = path('view_package', { 'name' : package.name }) %}
            {% else %}
                {% set packageUrl = path('view_providers', { 'name' : package.name }) %}
            {% endif %}
            <li data-url="{{ packageUrl }}" class="row">
                <div class="col-xs-12 package-item">
                    <div class="row">
                        <div class="col-sm-9 col-lg-10">
                            {% if package.language is defined and package.language != null %}<p class="pull-right language">{{ package.language }}</p>{% endif %}
                            <h4 class="font-bold">
                                <a href="{{ packageUrl }}">{{ package.name }}</a>
                                {% if package.id is not numeric %}
                                    <small>(Virtual Package)</small>
                                {% endif %}
                                {% if showAutoUpdateWarning and not package.autoUpdated %}
                                    <small>(Not Auto-Updated)</small>
                                {% endif %}
                            </h4>
                            {% if package.description is defined and package.description %}
                                <p>{{ package.description }}</p>
                            {% endif %}
                            {% if package.abandoned is defined and package.abandoned %}
                                <p class="abandoned">
                                    <i class="glyphicon glyphicon-exclamation-sign"></i> Abandoned! {% if package.replacementPackage %}See <a href="{{ path('view_package', {name: package.replacementPackage}) }}">{{ package.replacementPackage }}</a>{% endif %}
                                </p>
                            {% endif %}
                        </div>
                        <div class="col-sm-3 col-lg-2">
                            {% if meta %}
                                <p class="metadata">
                                    <span class="metadata-block"><i class="glyphicon glyphicon-arrow-down"></i> {{ meta.downloads[package.id]|default(0)|number_format(0, '.', '&#8201;')|raw }}</span>
                                    <span class="metadata-block"><i class="glyphicon glyphicon-star"></i> {{ meta.favers[package.id]|number_format(0, '.', '&#8201;')|raw }}</span>
                                </p>
                            {% endif %}
                        </div>
                    </div>
                </div>
            </li>
        {% endfor %}

        {% if paginate is defined and paginate and packages.haveToPaginate() %}
            {{ pagerfanta(packages, 'twitter_bootstrap', {'proximity': 2}) }}
        {% endif %}
    </ul>
{% endmacro %}

{% macro listPackagesShort(packages, showVersion, showMoreUrl) %}
    <ul class="list-unstyled">
        {% for package in packages %}
            <li>
                <a href="{{ path('view_package', {'name' : package.name }) }}">{{ package.name }}{% if showVersion is defined and showVersion %}<strong>{{ package.version }}</strong>{% endif %}</a>
                {{ package.description|truncate(60) }}
            </li>
        {% endfor %}
        {% if showMoreUrl is defined and showMoreUrl %}
            <li><a href="{{ path('browse_popular') }}">See more...</a></li>
        {% endif %}
    </ul>
{% endmacro %}

{% macro packageLink(packageName, type) %}
    {%- if type == 'provide' and (packageName is existing_provider or packageName is existing_package) -%}
        <a href="{{ path('view_providers', { 'name': packageName }) }}">{{ packageName }}</a>
    {%- elseif packageName is existing_package -%}
        <a href="{{ path('view_package', { 'name': packageName }) }}">{{ packageName }}</a>
    {%- else -%}
        {{ packageName }}
    {%- endif -%}
{% endmacro %}

{'fraction_non_alphanumeric': 0.15875334794253712, 'fraction_numerical': 0.0056001947893839785, 'mean_word_length': 1.4886398061193578, 'pattern_counts': {'":': 0, '<': 115, '<?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': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7388472', 'n_tokens_mistral': 2317, 'n_tokens_neox': 2054, 'n_words': 481}