<commit_before>{% extends 'base_with_margins.html' %}
{% load extras %}
{% load highlight %}
{% block title %}
    {% if request.GET.q %}
        Search results for '{{ request.GET.q }}'
    {% else %}
        Search Legislation
    {% endif %}
{% endblock %}
{% block content %}
    <br/>
    <div class='jumbotron'>
        <p class="h4">
            Search {{CITY_NAME}} legislation
        </p>
        <form method="get" action=".">
            <div class="input-group site-intro-search">
                <input name="q" type="text" class="input-lg form-control" placeholder="{{SEARCH_PLACEHOLDER_TEXT}}" {% if request.GET.q %}value="{{request.GET.q}}"{% endif %}>
                <div class='input-group-btn'>
                    <button type="submit" class="btn btn-lg btn-primary">
                        <i class='fa fa-fw fa-search'></i>
                    </button>
                </div>
            </div>
        </form>
    </div>

    <div class="row">
        <div class="col-sm-4">
            <div class="panel panel-default">
                <div class="panel-heading" data-toggle="collapse" data-target="#search-filters-mobile">
                    <h3 class="panel-title">
                        <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                        Filter results <i class="fa fa-fw fa-plus pull-right"></i></a>
                    </h3>
                </div>
                <div class="panel-body collapse" id="search-filters-mobile">

                    <p><strong>Legislation status</strong></p>
                    <ul class="search-facet-list">
                        {% for name, count in facets.fields.inferred_status %}
                            {% if count %}
                                <li class="small">
                                    <a href="/search/?q={{query}}&selected_facets=inferred_status_exact:{{name}}" title="{{ name|title }}">
                                        {{ name|committee_topic_only|title|short_title }}
                                    </a>
                                    <span class="badge badge-muted pull-right">{{ count }}</span>
                                </li>
                            {% endif %}
                        {% endfor %}
                    </ul>

                    <p><strong>Legislation type</strong></p>
                    <ul class="search-facet-list">
                        {% for name, count in facets.fields.bill_type %}
                            {% if count %}
                                <li class="small">
                                    <a href="/search/?q={{query}}&selected_facets=bill_type_exact:{{name}}" title="{{ name|title }}">
                                        {{ name|committee_topic_only|title|short_title }}
                                    </a>
                                    <span class="badge badge-muted pull-right">{{ count }}</span>
                                </li>
                            {% endif %}
                        {% endfor %}
                    </ul>
<commit_msg>adding topics to search filters<commit_after>{% extends 'base_with_margins.html' %}
{% load extras %}
{% load highlight %}
{% block title %}
    {% if request.GET.q %}
        Search results for '{{ request.GET.q }}'
    {% else %}
        Search Legislation
    {% endif %}
{% endblock %}
{% block content %}
    <br/>
    <div class='jumbotron'>
        <p class="h4">
            Search {{CITY_NAME}} legislation
        </p>
        <form method="get" action=".">
            <div class="input-group site-intro-search">
                <input name="q" type="text" class="input-lg form-control" placeholder="{{SEARCH_PLACEHOLDER_TEXT}}" {% if request.GET.q %}value="{{request.GET.q}}"{% endif %}>
                <div class='input-group-btn'>
                    <button type="submit" class="btn btn-lg btn-primary">
                        <i class='fa fa-fw fa-search'></i>
                    </button>
                </div>
            </div>
        </form>
    </div>

    <div class="row">
        <div class="col-sm-4">
            <div class="panel panel-default">
                <div class="panel-heading" data-toggle="collapse" data-target="#search-filters-mobile">
                    <h3 class="panel-title">
                        <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                        Filter results <i class="fa fa-fw fa-plus pull-right"></i></a>
                    </h3>
                </div>
                <div class="panel-body collapse" id="search-filters-mobile">

                    <p><strong>Legislation status</strong></p>
                    <ul class="search-facet-list">
                        {% for name, count in facets.fields.inferred_status %}
                            {% if count %}
                                <li class="small">
                                    <a href="/search/?q={{query}}&selected_facets=inferred_status_exact:{{name}}" title="{{ name|title }}">
                                        {{ name|committee_topic_only|title|short_title }}
                                    </a>
                                    <span class="badge badge-muted pull-right">{{ count }}</span>
                                </li>
                            {% endif %}
                        {% endfor %}
                    </ul>

                    <p><strong>Legislation type</strong></p>
                    <ul class="search-facet-list">
                        {% for name, count in facets.fields.bill_type %}
                            {% if count %}
                                <li class="small">
                                    <a href="/search/?q={{query}}&selected_facets=bill_type_exact:{{name}}" title="{{ name|title }}">
                                        {{ name|committee_topic_only|title|short_title }}
                                    </a>
                                    <span class="badge badge-muted pull-right">{{ count }}</span>
                                </li>
                            {% endif %}
                        {% endfor %}
                    </ul>

                    {% if facets.fields.topics %}
                        <p><strong>Topics</strong></p>

                        <ul class="search-facet-list">
                            {% for name, count in facets.fields.topics %}
                                {% if count %}
                                    <li class="small">
                                        <a href="/search/?q={{query}}&selected_facets=controlling_body_exact:{{name}}" title="{{ name|title }}">
                                            {{ name }}
                                        </a>

                                        <span class="badge badge-muted pull-right">{{ count }}</span>
                                    </li>
                                {% endif %}
                            {% endfor %}
                        </ul>
                    {% endif %}

{'fraction_non_alphanumeric': 0.14378722814794292, 'fraction_numerical': 0.0011081867294639148, 'mean_word_length': 1.1475312314098751, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 35, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4883634', 'n_tokens_mistral': 1933, 'n_tokens_neox': 1724, 'n_words': 343}