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

{% block body_class %}establishments{% endblock %}
{% block body_id %}establishment-list{% endblock %}

{% block content %}
<div class="row">
    <form id='search' class="form-inline" role="search" action="{% url 'establishment-list' %}" method="get">
        <div class="input-group">
            <input name='q' class="form-control" type="text" placeholder="Search restaurants..." value="{{ request.GET.q }}">
            <span class="input-group-btn">
                <button class="btn btn-default" title="Update location" id="update-location">
                  <i class="glyphicon glyphicon-globe"></i>
                </button>
                <button class="btn btn-default" type="submit">Search</button>
            </span>
        </div>
    </form>
    <div class="list-group">
        {% for establishment in establishments %}
        <a href="{% url "establishment-detail" establishment.pk %}" class="list-group-item">
            {% if establishment.grade %}<span class="badge">{{ establishment.grade }}</span>{% endif %}
            <h5 class="list-group-item-heading">{{ establishment|title }}
                {% if establishment.property_id %}<span class="glyphicon glyphicon-camera"></span>{% endif %}
            </h5>
            {% if establishment.insp_date %}<span class="badge badge-date hidden-xs">{{ establishment.insp_date|date:"M dS Y" }}</span>{% endif %}
            <p class="list-group-item-text">
                <span class='text-muted small'>{{ establishment.address|title }} - {{ establishment.distance.mi|floatformat:"2" }} mi</span>
            </p>
        </a>
        {% endfor %}
    </div>
    {% if is_paginated %}
        <div class="pagination">
            <span class="page-links">
                {% if page_obj.has_previous %}<commit_msg>[refs #23] reverts change to padding<commit_after>{% extends "base.html" %}

{% block body_class %}establishments{% endblock %}
{% block body_id %}establishment-list{% endblock %}

{% block content %}
<div class="row col-md-12">
    <form id='search' class="form-inline" role="search" action="{% url 'establishment-list' %}" method="get">
        <div class="input-group">
            <input name='q' class="form-control" type="text" placeholder="Search restaurants..." value="{{ request.GET.q }}">
            <span class="input-group-btn">
                <button class="btn btn-default" title="Update location" id="update-location">
                  <i class="glyphicon glyphicon-globe"></i>
                </button>
                <button class="btn btn-default" type="submit">Search</button>
            </span>
        </div>
    </form>
    <div class="list-group">
        {% for establishment in establishments %}
        <a href="{% url "establishment-detail" establishment.pk %}" class="list-group-item">
            {% if establishment.grade %}<span class="badge">{{ establishment.grade }}</span>{% endif %}
            <h5 class="list-group-item-heading">{{ establishment|title }}
                {% if establishment.property_id %}<span class="glyphicon glyphicon-camera"></span>{% endif %}
            </h5>
            {% if establishment.insp_date %}<span class="badge badge-date hidden-xs">{{ establishment.insp_date|date:"M dS Y" }}</span>{% endif %}
            <p class="list-group-item-text">
                <span class='text-muted small'>{{ establishment.address|title }} - {{ establishment.distance.mi|floatformat:"2" }} mi</span>
            </p>
        </a>
        {% endfor %}
    </div>
    {% if is_paginated %}
        <div class="pagination">
            <span class="page-links">
                {% if page_obj.has_previous %}
{'fraction_non_alphanumeric': 0.17790414297319251, 'fraction_numerical': 0.0027078256160303275, 'mean_word_length': 2.596884128529698, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '9647', 'n_tokens_mistral': 1130, 'n_tokens_neox': 1023, 'n_words': 230}