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

{% load i18n %}
{% load humanize %}
{% load ifsetting_tag %}
{% load bootstrap_tags %}
{% load package_tags %}
{% load pagination_utils %}
{% load search_utils %}

{% block head_title %}{% trans "Welcome" %}{% endblock %}

{% block body_id %}search-results{% endblock %}

{% block body_base %}
    <div class="container">

        {% include "_messages.html" %}

        <div class="row">
            <div class="span12">
                <div class="well">
                    <form method="GET" action="." class="form-search">
                        {{ form.non_field_errors }}

                        <div class="field-wrapper">
                            {{ form.q.errors }}
                            <label for="id-search" style="display: none;">Search:</label>
                            {{ form.q }}
                        </div>

                        <fieldset>
                            <title>Advanced Options</title>

                            <div class="field-wrapper">
                                {{ form.has_releases.errors }}
                                <label for="id-has_releases">Has Releases:</label>
                                {{ form.has_releases }}
                            </div>

                            <div class="field-wrapper">
                                {{ form.start_date.errors }}
                                <label for="id-start_date">Start Date:</label>
                                {{ form.start_date }}
                            </div>

                            <div class="field-wrapper">
                                {{ form.end_date.errors }}
                                <label for="id-end_date">End Date:</label>
                                {{ form.end_date }}
                            </div>
                        </fieldset>

                        <input type="submit" class="btn primary" value="Search">
                    </form>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="span3">
                <div class="well">
                    <h3>Refine Results</h3>

                    <ul class="nav list">
                        {% if facets.fields and facets.fields.platform %}
                            <li class="nav-header">By Platform</li>
                            {% for plat in facets.fields.platform %}
                                <li><a href="?{{ query_params }}&amp;platform={{ plat.0 }}">{{ plat.0|default:'No platform' }} ({{ plat.1 }})</a></li>
                            {% endfor %}
                        {% endif %}

                        {% if facets.fields and facets.fields.licenses %}
                            <li class="nav-header">By License</li>
                            {% for lice in facets.fields.licenses %}
                                <li><a href="?{{ query_params }}&amp;license={{ lice.0 }}">{{ lice.0|default:'No license' }} ({{ lice.1 }})</a></li>
                            {% endfor %}
                        {% endif %}

                        <!-- {% if facets.dates and facets.dates.created %}
                            <li class="nav-header">By Date</li>
                            {% for mod in facets.dates.created %}
                                <li><a href="?{{ query_params }}&amp;start_date={{ mod.0 }}">{{ mod.0 }} - {{ mod.1 }}</a></li>
                            {% endfor %}
                        {% endif %} -->
                    </ul>
                </div><commit_msg>switch to using django comments for the created date field<commit_after>{% extends "site_base.html" %}

{% load i18n %}
{% load humanize %}
{% load ifsetting_tag %}
{% load bootstrap_tags %}
{% load package_tags %}
{% load pagination_utils %}
{% load search_utils %}

{% block head_title %}{% trans "Welcome" %}{% endblock %}

{% block body_id %}search-results{% endblock %}

{% block body_base %}
    <div class="container">

        {% include "_messages.html" %}

        <div class="row">
            <div class="span12">
                <div class="well">
                    <form method="GET" action="." class="form-search">
                        {{ form.non_field_errors }}

                        <div class="field-wrapper">
                            {{ form.q.errors }}
                            <label for="id-search" style="display: none;">Search:</label>
                            {{ form.q }}
                        </div>

                        <fieldset>
                            <title>Advanced Options</title>

                            <div class="field-wrapper">
                                {{ form.has_releases.errors }}
                                <label for="id-has_releases">Has Releases:</label>
                                {{ form.has_releases }}
                            </div>

                            <div class="field-wrapper">
                                {{ form.start_date.errors }}
                                <label for="id-start_date">Start Date:</label>
                                {{ form.start_date }}
                            </div>

                            <div class="field-wrapper">
                                {{ form.end_date.errors }}
                                <label for="id-end_date">End Date:</label>
                                {{ form.end_date }}
                            </div>
                        </fieldset>

                        <input type="submit" class="btn primary" value="Search">
                    </form>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="span3">
                <div class="well">
                    <h3>Refine Results</h3>

                    <ul class="nav list">
                        {% if facets.fields and facets.fields.platform %}
                            <li class="nav-header">By Platform</li>
                            {% for plat in facets.fields.platform %}
                                <li><a href="?{{ query_params }}&amp;platform={{ plat.0 }}">{{ plat.0|default:'No platform' }} ({{ plat.1 }})</a></li>
                            {% endfor %}
                        {% endif %}

                        {% if facets.fields and facets.fields.licenses %}
                            <li class="nav-header">By License</li>
                            {% for lice in facets.fields.licenses %}
                                <li><a href="?{{ query_params }}&amp;license={{ lice.0 }}">{{ lice.0|default:'No license' }} ({{ lice.1 }})</a></li>
                            {% endfor %}
                        {% endif %}

                        {% comment %}
                        {% if facets.dates and facets.dates.created %}
                            <li class="nav-header">By Date</li>
                            {% for mod in facets.dates.created %}
                                <li><a href="?{{ query_params }}&amp;start_date={{ mod.0 }}">{{ mod.0 }} - {{ mod.1 }}</a></li>
                            {% endfor %}
                        {% endif %}
                        {% endcomment %}
                    </ul>
                </div>
{'fraction_non_alphanumeric': 0.1422680412371134, 'fraction_numerical': 0.004398625429553264, 'mean_word_length': 1.0055126791620728, 'pattern_counts': {'":': 0, '<': 116, '<?xml version=': 0, '>': 116, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3389649', 'n_tokens_mistral': 1934, 'n_tokens_neox': 1695, 'n_words': 344}