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

{% block title %}Non-Profit Free Legal Search Engine and Alert System - CourtListener.com{% endblock %}

{% block search-form %}{% endblock %}

{% block sidebar %}{% endblock %}

{% block main-nav %}{% endblock %}

{% block footer-scripts %}
    <script type="text/javascript">
        $(document).ready(function () {
            $('#id_q').focus();
        });
        // Initialize popovers (required because they're "opt-in for performance reasons")
        $("[data-toggle='popover']").popover();
    </script>
    <script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "WebSite",
      "url": "https://www.courtlistener.com/",
      "potentialAction": {
        "@type": "SearchAction",
        "target": "https://www.courtlistener.com/?q={search_term}",
        "query-input": "required name=search_term"
      }
    }
</script>
{% endblock %}

{% block logo %}
    <img src="{{ STATIC_PREFIX }}png/logo-large.png"
         alt="CourtListener logo"
         width="364"
         height="40"/>
{% endblock %}

{% block sign-in %}
    {% if not user.is_authenticated %}
        <form action="/sign-in/" method="post" class="navbar-form form-inline navbar-right" role="form">{% csrf_token %}
            <a href="/register/" class="small">Want to sign up?</a>
            <a href="/reset-password/" class="small">Need help?</a>
            <div class="form-group form-group-sm">
                <label for="username" class="sr-only">Username</label>
                <input type="text"
                       name="username"
                       value=""
                       id="username"
                       placeholder="User Name"
                       class="form-control"
                       tabindex="2">
            </div>
            <div class="form-group form-group-sm">
                <label for="password" class="sr-only">Password</label>
                <input type="password"
                       name="password"
                       value=""
                       id="password"
                       placeholder="Password"
                       class="form-control"
                       tabindex="3">
            </div>
            <button type="submit" class="btn btn-default btn-sm" tabindex="4">Sign In</button>
        </form>
    {% else %}
        <div class="navbar-right">
            <a href="/profile/">Profile&nbsp;<i class="gray fa fa-user"></i></a>
            <a href="/sign-out">Sign Out&nbsp;<i class="gray fa fa-sign-out"></i></a>
        </div>
    {% endif %}
{% endblock %}

{% block content %}
    <div id="homepage" class="col-xs-12">

    <div id="above-main-query">
        <p class="text-center large bottom">Search millions of opinions by case name, topic, or citation.</p>
        <p class="text-center large gray">{{ court_count }} Jurisdictions. Sponsored by the Non-Profit Free Law Project.</p>
    </div>

    <div class="row" id="main-query-box">
        {% include "includes/main_query_box.html" with homepage=True %}
    </div>

    <div id="advanced-search-inputs" class="hidden row">
        {#  Modal is at bottom of results, so it loads last. #}
        <div id="extra-sidebar-fields" class="col-sm-9">
            <div class="row">
                <div class="col-sm-8">
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="pointer"
                                 data-toggle="modal"
                                 data-target="#court-picker"><commit_msg>homepage fix for logged in navbar<commit_after>{% extends "base.html" %}
{% load humanize %}

{% block title %}Non-Profit Free Legal Search Engine and Alert System - CourtListener.com{% endblock %}

{% block search-form %}{% endblock %}

{% block sidebar %}{% endblock %}

{% block main-nav %}{% endblock %}

{% block footer-scripts %}
    <script type="text/javascript">
        $(document).ready(function () {
            $('#id_q').focus();
        });
        // Initialize popovers (required because they're "opt-in for performance reasons")
        $("[data-toggle='popover']").popover();
    </script>
    <script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "WebSite",
      "url": "https://www.courtlistener.com/",
      "potentialAction": {
        "@type": "SearchAction",
        "target": "https://www.courtlistener.com/?q={search_term}",
        "query-input": "required name=search_term"
      }
    }
</script>
{% endblock %}

{% block logo %}
    <img src="{{ STATIC_PREFIX }}png/logo-large.png"
         alt="CourtListener logo"
         width="364"
         height="40"/>
{% endblock %}

{% block sign-in %}
    {% if not user.is_authenticated %}
        <form action="/sign-in/" method="post" class="navbar-form form-inline navbar-right" role="form">{% csrf_token %}
            <a href="/register/" class="small">Want to sign up?</a>
            <a href="/reset-password/" class="small">Need help?</a>
            <div class="form-group form-group-sm">
                <label for="username" class="sr-only">Username</label>
                <input type="text"
                       name="username"
                       value=""
                       id="username"
                       placeholder="User Name"
                       class="form-control"
                       tabindex="2">
            </div>
            <div class="form-group form-group-sm">
                <label for="password" class="sr-only">Password</label>
                <input type="password"
                       name="password"
                       value=""
                       id="password"
                       placeholder="Password"
                       class="form-control"
                       tabindex="3">
            </div>
            <button type="submit" class="btn btn-default btn-sm" tabindex="4">Sign In</button>
        </form>
    {% else %}
        <div class="navbar-right">
            <ul class="nav navbar-nav">
                <li><a href="/profile/">Profile&nbsp;<i class="gray fa fa-user"></i></a></li>
                <li><a href="/sign-out">Sign Out&nbsp;<i class="gray fa fa-sign-out"></i></a></li>
            </ul>
        </div>
    {% endif %}
{% endblock %}

{% block content %}
    <div id="homepage" class="col-xs-12">

    <div id="above-main-query">
        <p class="text-center large bottom">Search millions of opinions by case name, topic, or citation.</p>
        <p class="text-center large gray">{{ court_count }} Jurisdictions. Sponsored by the Non-Profit Free Law Project.</p>
    </div>

    <div class="row" id="main-query-box">
        {% include "includes/main_query_box.html" with homepage=True %}
    </div>

    <div id="advanced-search-inputs" class="hidden row">
        {#  Modal is at bottom of results, so it loads last. #}
        <div id="extra-sidebar-fields" class="col-sm-9">
            <div class="row">
                <div class="col-sm-8">
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="pointer"
                                 data-toggle="modal"
                                 data-target="#court-picker">
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.003549003549003549, 'mean_word_length': 1.839922480620155, 'pattern_counts': {'":': 14, '<': 107, '<?xml version=': 0, '>': 107, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4994170', 'n_tokens_mistral': 2172, 'n_tokens_neox': 2009, 'n_words': 452}