<commit_before>{% extends "name/base.html" %}
{% block title %}Search{% endblock %}

{% block content %}

    {% if not entries %}
        <div class="row">
            <div class="col-sm-12">
                <div class="text-center">
                    <h3>Search the Name App</h3>
                    <form class="form form-inline" action="{% url "name_search" %}">
                        <select class="form-control" name="q_type" id="large_q_type">
                            {% for k, v in types.items %}
                                {% if q_type == k %}
                                    <option value="{{ v }}" selected>{{ v }}</option>
                                {% else %}
                                    <option value="{{ v }}">{{ v }}</option>
                                {% endif %}
                            {% endfor %}
                        </select>
                        <input class="form-control" type="text" name="q" id="large_names" value="{{ q }}">
                        <button class="btn btn-default" type="submit">Submit</button>
                    </form>
                </div>
            </div>
        </div>
        {# TODO: Make this better #}
        <div class="row">
            <div class="col-sm-12">
                <div class="text-center">
                    <h4><em>No results</em></h4>
                </div>
            </div>
        </div>


<!-- BEGIN SEARCH RESULTS -->
    {% else %}
        <div class="row">
            <div class="col-sm-12">
                <div class="btn-group pull-right">
                    {% if sort != 'name_a' %}
                        <a class="btn btn-default" href="?q_type={{ q_type }}&amp;q={{ q }}&amp;order=name_a&amp;page={{ entries.page }}">Names <span class="help">(Sort Dsc.)</span></a>
                    {% else %}
                        <a class="btn btn-default" href="?q_type={{ q_type }}&amp;q={{ q }}&amp;order=name_d&amp;page={{ entries.page }}">Names <span class="help">(Sort Asc.)</span></a>
                    {% endif %}<commit_msg>Add class to sort buttons for styling.<commit_after>{% extends "name/base.html" %}
{% block title %}Search{% endblock %}

{% block content %}

    {% if not entries %}
        <div class="row">
            <div class="col-sm-12">
                <div class="text-center">
                    <h3>Search the Name App</h3>
                    <form class="form form-inline" action="{% url "name_search" %}">
                        <select class="form-control" name="q_type" id="large_q_type">
                            {% for k, v in types.items %}
                                {% if q_type == k %}
                                    <option value="{{ v }}" selected>{{ v }}</option>
                                {% else %}
                                    <option value="{{ v }}">{{ v }}</option>
                                {% endif %}
                            {% endfor %}
                        </select>
                        <input class="form-control" type="text" name="q" id="large_names" value="{{ q }}">
                        <button class="btn btn-default" type="submit">Submit</button>
                    </form>
                </div>
            </div>
        </div>
        {# TODO: Make this better #}
        <div class="row">
            <div class="col-sm-12">
                <div class="text-center">
                    <h4><em>No results</em></h4>
                </div>
            </div>
        </div>


<!-- BEGIN SEARCH RESULTS -->
    {% else %}
        <div class="row sort-control">
            <div class="col-sm-12">
                <div class="btn-group pull-right">
                    {% if sort != 'name_a' %}
                        <a class="btn btn-default" href="?q_type={{ q_type }}&amp;q={{ q }}&amp;order=name_a&amp;page={{ entries.page }}">Names <span class="help">(Sort Dsc.)</span></a>
                    {% else %}
                        <a class="btn btn-default" href="?q_type={{ q_type }}&amp;q={{ q }}&amp;order=name_d&amp;page={{ entries.page }}">Names <span class="help">(Sort Asc.)</span></a>
                    {% endif %}
{'fraction_non_alphanumeric': 0.17489218974604695, 'fraction_numerical': 0.004791566842357451, 'mean_word_length': 1.2714907508161044, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3807001', 'n_tokens_mistral': 1231, 'n_tokens_neox': 1119, 'n_words': 261}