<commit_before>{% extends 'Default/base.html.twig' %}

{% block body %}
    <div><a href="{{ path('packages_index') }}"><i class="fa fa-angle-up"></i> Back to root</a></div>
    <h2>{{ package.name }}</h2>
    <div class="row">
        <div class="col-md-9">
            <hr />
            <code><i class="fa fa-download"></i> composer require {{ package.name }}</code>
            <div class="lead" style="margin-top:15px;">
                {{ package.description }}
            </div>
        </div>
        <div class="col-md-3">
            <p class="maintainers">
                {% for author in package.authors %}
                    <a href="mailto:{{ author.email }}" style="margin:5px;"><img width="48" height="48" title="{{ author.name }}" src="//www.gravatar.com/avatar/{{ md5(author.email) }}?s=48&amp;d=identicon" srcset="//www.gravatar.com/avatar/{{ md5(author.email) }}?s=96&amp;d=identicon 2x"></a>
                {% endfor %}
            </p>
            {% set url = 'https://' ~ package.sourceUrl|replace({ '.git': '', 'git@': '', ':': '/' }) %}
            <div>
                <a href="{{ url }}">
                    {{ url }}
                </a>
            </div>
            {% if package.homepage %}
            <div><a href="{{ package.homepage }}">Homepage</a></div>
            {% endif %}
        </div>
    </div>
    <div class="row">
        <div class="col-md-9">
            <div class="bg-info" style="padding:10px;">
                <div class="pull-right">{{ package.release_date|date('Y-m-d H:i:s') }}</div>
                {{ package.prettyVersion }}
            </div>
            <div class="row">
                <div class="col-md-4">
                    <h3>Requires</h3>
                    {% if package.requires|length > 0 %}
                        <!-- Need to find some way to make this detect whether to try to open this on packagist or elsewhere -->
                        <ul>{% for item in package.requires %}<li><a href="https://packagist.org/packages/{{ item.target }}">{{ item.target }}</a>: {{ item.prettyConstraint }}</li>{% endfor %}</ul>
                    {% else %}
                        <div class="text-muted">None</div>
                    {% endif %}
                </div>
                <div class="col-md-4">
                    <h3>Requires (dev)</h3><commit_msg>Fixed showing current datetime instead of release datetime in package detail<commit_after>{% extends 'Default/base.html.twig' %}

{% block body %}
    <div><a href="{{ path('packages_index') }}"><i class="fa fa-angle-up"></i> Back to root</a></div>
    <h2>{{ package.name }}</h2>
    <div class="row">
        <div class="col-md-9">
            <hr />
            <code><i class="fa fa-download"></i> composer require {{ package.name }}</code>
            <div class="lead" style="margin-top:15px;">
                {{ package.description }}
            </div>
        </div>
        <div class="col-md-3">
            <p class="maintainers">
                {% for author in package.authors %}
                    <a href="mailto:{{ author.email }}" style="margin:5px;"><img width="48" height="48" title="{{ author.name }}" src="//www.gravatar.com/avatar/{{ md5(author.email) }}?s=48&amp;d=identicon" srcset="//www.gravatar.com/avatar/{{ md5(author.email) }}?s=96&amp;d=identicon 2x"></a>
                {% endfor %}
            </p>
            {% set url = 'https://' ~ package.sourceUrl|replace({ '.git': '', 'git@': '', ':': '/' }) %}
            <div>
                <a href="{{ url }}">
                    {{ url }}
                </a>
            </div>
            {% if package.homepage %}
            <div><a href="{{ package.homepage }}">Homepage</a></div>
            {% endif %}
        </div>
    </div>
    <div class="row">
        <div class="col-md-9">
            <div class="bg-info" style="padding:10px;">
                <div class="pull-right">{{ package.releaseDate|date('Y-m-d H:i:s') }}</div>
                {{ package.prettyVersion }}
            </div>
            <div class="row">
                <div class="col-md-4">
                    <h3>Requires</h3>
                    {% if package.requires|length > 0 %}
                        <!-- Need to find some way to make this detect whether to try to open this on packagist or elsewhere -->
                        <ul>{% for item in package.requires %}<li><a href="https://packagist.org/packages/{{ item.target }}">{{ item.target }}</a>: {{ item.prettyConstraint }}</li>{% endfor %}</ul>
                    {% else %}
                        <div class="text-muted">None</div>
                    {% endif %}
                </div>
                <div class="col-md-4">
                    <h3>Requires (dev)</h3>
{'fraction_non_alphanumeric': 0.19957894736842105, 'fraction_numerical': 0.011789473684210527, 'mean_word_length': 1.6497490239821528, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 119, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4142578', 'n_tokens_mistral': 1511, 'n_tokens_neox': 1386, 'n_words': 301}