<commit_before>{% extends "site_base.html" %}

{% load i18n %}
{% load humanize %}
{% load markup %}
{% load staticfiles %}
{% load package_tags %}
{% load package_utils %}

{% block extra_head %}
    <link rel="stylesheet" href="{% static 'css/prettify.css' %}">
{% endblock %}

{% block body_base %}
    <div class="container">
        <div class="content">
            <div class="page-header">
                <h1>{{ release.package.name }} <small> {{ release.version }}</small></h1>
            </div>

            <div class="row">
                <div class="span9">
                    <div class="summary">
                        {{ release.summary }}
                    </div>

                    <div id="install-cmd">
                        <h4>Install</h4>
                        {% if version_specific %}
                            {{ release.install_command }}
                        {% else %}
                            {{ release.package.install_command }}
                        {% endif %}
                    </div>

                    <ul id="package-tabs" class="nav tabs">
                        <li class="active"><a href="#info" data-toggle="tab">Info</a></li>
                        <li><a href="#description" data-toggle="tab">Description</a></li>
                        <li><a href="#files" data-toggle="tab">Files</a></li>
                    </ul>

                    <div class="tab-content">
                        <div id="description" class="tab-pane fade">
                            {{ release.description|restructuredtext }}
                        </div>

                        <div id="info" class="tab-pane fade in active">
                            <div class="author">
                                <h4>Author</h4>
                                {{ release.author }}
                            </div>

                            <div class="links">
                                <h4>Links</h4>
                                <ul class="unstyled">
                                    {% for name, uri in release.uris.iteritems %}
                                        <li><a href="{{ uri }}" title="{{ name }}">{{ name }}</a></li>
                                    {% endfor %}
                                </ul>
                            </div>

                            <div class="requirements">
                                <h4>Pip</h4>
                                {{ object.requirement_line }}
                            </div>

                            <div id="classifiers">
                                {% if release.classifiers.all %}
                                    <h4>Classifiers</h4>
                                    <ul class="unstyled">
                                        {% for classifier in release.classifiers.all %}
                                            <li>{{ classifier.trove }}</li>
                                        {% endfor %}
                                    </ul>
                                {% endif %}
                            </div>

                            <div class="row">
                                <div class="span3">
                                    {% if release.requires.all %}
                                        <h4>Requirements</h4>
                                        <ul>
                                            {% for requirement in release.requires.all %}
                                                <li class="kind-{{ requirement.kind }}">
                                                    <a href="">{{ requirement.name }}{{ requirement.version }}</a>
                                                </li>
                                            {% endfor %}
                                        </ul>
                                    {% endif %}
                                </div>

                                <div class="span3">
                                    {% if release.provides.all %}
                                        <h4>Provides</h4>
                                        <ul>
                                            {% for provides in release.provides.all %}
                                                <li class="kind-{{ provides.kind }}">
                                                    <a href="">{{ provides.name }}{{ provides.version }}</a>
                                                </li>
                                            {% endfor %}
                                        </ul>
                                    {% endif %}
                                </div>

                                <div class="span3">
                                    {% if release.obsoletes.all %}
                                        <h4>Obsoletes</h4>
                                        <ul>
                                            {% for obsolete in release.obsoletes.all %}
                                                <li class="kind-{{ obsolete.kind }}">
                                                    <a href="">{{ obsolete.name }}{{ obsolete.version }}</a>
                                                </li>
                                            {% endfor %}
                                        </ul>
                                    {% endif %}
                                </div>
                            </div>
                        </div>

                        <div id="files" class="tab-pane fade">
                            <table class="table table-striped table-bordered">
                                <thead>
                                    <tr>
                                        <th>File</th>
                                        <th>Type</th>
                                        <th>Python Version</th>
                                        <th>Uploaded On</th>
                                        <th>Size</th>
                                        <th>Downloads</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {% for file in release.files.all %}
                                        <tr>
                                            <td><a href="{{ file.get_absolute_url }}">{{ file.file.name|filename }}</a> (<a data-toggle="modal" href="#digest-{{ file.pk }}">{{ file.digest|digest_type }}</a>)</td>
                                            <td>{{ file.get_type_display }}</td>
                                            <td>{{ file.get_python_version_display }}</td>
                                            <td>@@@ Upload Date</td>
                                            <td>{{ file.file.size|filesizeformat }}</td>
                                            <td>{{ file.downloads|intcomma }}</td>
                                        </tr>
                                    {% endfor %}
                                </tbody>
                            </table>

                            {% for file in release.files.all %}
                                <div id="digest-{{ file.pk }}" class="modal hide fade">
                                    <div class="modal-header">
                                        <a href="#" class="close" data-dismiss="modal">×</a>
                                        <h3>{{ file.file.name|filename }}</h3>
                                    </div>

                                    <div class="modal-body">
                                        <dl>
                                            <dt>{{ file.digest|digest_type }}</dt>
                                            <dd>{{ file.digest|digest_value }}</dd>
                                        </dl>
                                    </div>
                                </div>
                            {% endfor %}
                        </div>
                    </div>
                </div>

                <div id="sidebar" class="span3">
                    <h3 class="visuallyhidden">Downloads</h3>
                    <div class="downloads">
                        <div class="package"><span class="count">{{ release.package.downloads|intcomma }}</span> total downloads</div>
                        <div class="version"><span class="count">{{ release.downloads|intcomma }}</span> for this version</div>
                    </div>

                    <h3>Versions</h3>
                    <div class="versions">
                        {% package_versions release.package.name 5 as latest_versions %}

                        <ul class="unstyled">
                            {% for version in latest_versions %}
                                <li>
                                    <a href="{{ version.get_absolute_url }}" title="{{ version.package.name }} {{ version.verison }}">
                                        {{ version.version }}
                                    </a>
                                    <span class="date">{{ version.created|date:"DATE_FORMAT" }}</span>
                                </li>
                            {% endfor %}
                        </ul>

                        {% package_version_count release.package.name as total_versions %}
                        <a data-toggle="modal" href="#all-versions" title="All Versions for {{ release.package.name }}">Show All Versions ({{ total_versions }} total)</a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="all-versions" class="modal hide fade">
        <div class="modal-header">
            <a href="#" class="close" data-dismiss="modal">×</a>
            <h3>{{ release.package.name }} Versions</h3>
        </div>

        <div class="modal-body">
            {% package_versions release.package.name as latest_versions %}

            <ul class="unstyled">
                {% for version in latest_versions %}
                    <li>
                        <a href="{{ version.get_absolute_url }}" title="{{ version.package.name }} {{ version.verison }}">
                            {{ version.version }}
                        </a>
                        <span class="date">{{ version.created|date:"DATE_FORMAT" }}</span>
                    </li>
                {% endfor %}
            </ul>
        </div>
    </div>
{% endblock %}

{% block extra_body %}
    <script src="{% static "js/prettify/prettify.js" %}"></script>
    <script>
        $(function(){
            $("#description pre.literal-block").addClass("prettyprint");
            prettyPrint();
        });
    </script>
{% endblock %}
<commit_msg>add the uploaded date to the files list<commit_after>{% extends "site_base.html" %}

{% load i18n %}
{% load humanize %}
{% load markup %}
{% load staticfiles %}
{% load package_tags %}
{% load package_utils %}

{% block extra_head %}
    <link rel="stylesheet" href="{% static 'css/prettify.css' %}">
{% endblock %}

{% block body_base %}
    <div class="container">
        <div class="content">
            <div class="page-header">
                <h1>{{ release.package.name }} <small> {{ release.version }}</small></h1>
            </div>

            <div class="row">
                <div class="span9">
                    <div class="summary">
                        {{ release.summary }}
                    </div>

                    <div id="install-cmd">
                        <h4>Install</h4>
                        {% if version_specific %}
                            {{ release.install_command }}
                        {% else %}
                            {{ release.package.install_command }}
                        {% endif %}
                    </div>

                    <ul id="package-tabs" class="nav tabs">
                        <li class="active"><a href="#info" data-toggle="tab">Info</a></li>
                        <li><a href="#description" data-toggle="tab">Description</a></li>
                        <li><a href="#files" data-toggle="tab">Files</a></li>
                    </ul>

                    <div class="tab-content">
                        <div id="description" class="tab-pane fade">
                            {{ release.description|restructuredtext }}
                        </div>

                        <div id="info" class="tab-pane fade in active">
                            <div class="author">
                                <h4>Author</h4>
                                {{ release.author }}
                            </div>

                            <div class="links">
                                <h4>Links</h4>
                                <ul class="unstyled">
                                    {% for name, uri in release.uris.iteritems %}
                                        <li><a href="{{ uri }}" title="{{ name }}">{{ name }}</a></li>
                                    {% endfor %}
                                </ul>
                            </div>

                            <div class="requirements">
                                <h4>Pip</h4>
                                {{ object.requirement_line }}
                            </div>

                            <div id="classifiers">
                                {% if release.classifiers.all %}
                                    <h4>Classifiers</h4>
                                    <ul class="unstyled">
                                        {% for classifier in release.classifiers.all %}
                                            <li>{{ classifier.trove }}</li>
                                        {% endfor %}
                                    </ul>
                                {% endif %}
                            </div>

                            <div class="row">
                                <div class="span3">
                                    {% if release.requires.all %}
                                        <h4>Requirements</h4>
                                        <ul>
                                            {% for requirement in release.requires.all %}
                                                <li class="kind-{{ requirement.kind }}">
                                                    <a href="">{{ requirement.name }}{{ requirement.version }}</a>
                                                </li>
                                            {% endfor %}
                                        </ul>
                                    {% endif %}
                                </div>

                                <div class="span3">
                                    {% if release.provides.all %}
                                        <h4>Provides</h4>
                                        <ul>
                                            {% for provides in release.provides.all %}
                                                <li class="kind-{{ provides.kind }}">
                                                    <a href="">{{ provides.name }}{{ provides.version }}</a>
                                                </li>
                                            {% endfor %}
                                        </ul>
                                    {% endif %}
                                </div>

                                <div class="span3">
                                    {% if release.obsoletes.all %}
                                        <h4>Obsoletes</h4>
                                        <ul>
                                            {% for obsolete in release.obsoletes.all %}
                                                <li class="kind-{{ obsolete.kind }}">
                                                    <a href="">{{ obsolete.name }}{{ obsolete.version }}</a>
                                                </li>
                                            {% endfor %}
                                        </ul>
                                    {% endif %}
                                </div>
                            </div>
                        </div>

                        <div id="files" class="tab-pane fade">
                            <table class="table table-striped table-bordered">
                                <thead>
                                    <tr>
                                        <th>File</th>
                                        <th>Type</th>
                                        <th>Python Version</th>
                                        <th>Uploaded On</th>
                                        <th>Size</th>
                                        <th>Downloads</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {% for file in release.files.all %}
                                        <tr>
                                            <td><a href="{{ file.get_absolute_url }}">{{ file.file.name|filename }}</a> (<a data-toggle="modal" href="#digest-{{ file.pk }}">{{ file.digest|digest_type }}</a>)</td>
                                            <td>{{ file.get_type_display }}</td>
                                            <td>{{ file.get_python_version_display }}</td>
                                            <td>{{ file.created|date:"DATE_FORMAT" }}</td>
                                            <td>{{ file.file.size|filesizeformat }}</td>
                                            <td>{{ file.downloads|intcomma }}</td>
                                        </tr>
                                    {% endfor %}
                                </tbody>
                            </table>

                            {% for file in release.files.all %}
                                <div id="digest-{{ file.pk }}" class="modal hide fade">
                                    <div class="modal-header">
                                        <a href="#" class="close" data-dismiss="modal">×</a>
                                        <h3>{{ file.file.name|filename }}</h3>
                                    </div>

                                    <div class="modal-body">
                                        <dl>
                                            <dt>{{ file.digest|digest_type }}</dt>
                                            <dd>{{ file.digest|digest_value }}</dd>
                                        </dl>
                                    </div>
                                </div>
                            {% endfor %}
                        </div>
                    </div>
                </div>

                <div id="sidebar" class="span3">
                    <h3 class="visuallyhidden">Downloads</h3>
                    <div class="downloads">
                        <div class="package"><span class="count">{{ release.package.downloads|intcomma }}</span> total downloads</div>
                        <div class="version"><span class="count">{{ release.downloads|intcomma }}</span> for this version</div>
                    </div>

                    <h3>Versions</h3>
                    <div class="versions">
                        {% package_versions release.package.name 5 as latest_versions %}

                        <ul class="unstyled">
                            {% for version in latest_versions %}
                                <li>
                                    <a href="{{ version.get_absolute_url }}" title="{{ version.package.name }} {{ version.verison }}">
                                        {{ version.version }}
                                    </a>
                                    <span class="date">{{ version.created|date:"DATE_FORMAT" }}</span>
                                </li>
                            {% endfor %}
                        </ul>

                        {% package_version_count release.package.name as total_versions %}
                        <a data-toggle="modal" href="#all-versions" title="All Versions for {{ release.package.name }}">Show All Versions ({{ total_versions }} total)</a>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="all-versions" class="modal hide fade">
        <div class="modal-header">
            <a href="#" class="close" data-dismiss="modal">×</a>
            <h3>{{ release.package.name }} Versions</h3>
        </div>

        <div class="modal-body">
            {% package_versions release.package.name as latest_versions %}

            <ul class="unstyled">
                {% for version in latest_versions %}
                    <li>
                        <a href="{{ version.get_absolute_url }}" title="{{ version.package.name }} {{ version.verison }}">
                            {{ version.version }}
                        </a>
                        <span class="date">{{ version.created|date:"DATE_FORMAT" }}</span>
                    </li>
                {% endfor %}
            </ul>
        </div>
    </div>
{% endblock %}

{% block extra_body %}
    <script src="{% static "js/prettify/prettify.js" %}"></script>
    <script>
        $(function(){
            $("#description pre.literal-block").addClass("prettyprint");
            prettyPrint();
        });
    </script>
{% endblock %}

{'fraction_non_alphanumeric': 0.12310694044411409, 'fraction_numerical': 0.003158970547245192, 'mean_word_length': 0.7247816681355661, 'pattern_counts': {'":': 0, '<': 413, '<?xml version=': 0, '>': 413, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 230, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4934576', 'n_tokens_mistral': 4756, 'n_tokens_neox': 4243, 'n_words': 869}