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

{% block body_id %}state{% endblock %}

{% block extra-css %}
    {% include_ui_theme %}
    {{ agency_form.media.css }}
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
{% endblock %}

{% block extra-js %}
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.4/jquery-ui.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>
{{ agency_form.media.js }}
<script type="text/javascript">
    var map = L.map('map', {
        zoomControl: false
    }).setView([35.5, -80], 8);
    L.tileLayer('http://{s}.tiles.wmflabs.org/bw-mapnik/{z}/{x}/{y}.png', {
        maxZoom: 18,
        attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
    }).addTo(map);
    $(document).ready(function() {
        var quick_search = $('#agency_search :input[name=agency_0]');
        quick_search.bind('djselectableselect', function(event, ui) {
            $(this).parents("form").submit();
        });
    });
</script>
{% endblock %}

{% block content-outer %}

<div class="state-banner">
  <div class="container">
    <div class="row">
      <div class="col-md-8 col-sm-6">
        <h1>North Carolina</h1>
        <p>
          Browse all known traffic stops to have occurred in North Carolina since
          January 1, 2002
        </p>
      </div>
      <div class="col-md-4 col-sm-6 hidden-xs">
        <img src="{% static "svg/noun_19625_cc-white.svg" %}" class="state">
      </div>
    </div>
  </div>
</div>

<div class="container">
  <div class="row">
    <div class="col-sm-7">
      <h2>About</h2>
      <p>
          Open Data Policing NC aggregates, visualizes, and publishes public
          records related to all known traffic stops to have occurred in North
          Carolina since January 1, 2002.  Enter an agency name into the search
          field to the right to review data on the racial and ethnic demographics of
          people stopped, searched, and subjected to force in the course of
          traffic stops in a given jurisdiction.  Data is available for most
          North Carolina departments and officers serving populations greater
          than 10,000.
      </p>
      <p>
          North Carolina law requires all such agencies to report their data
          on a monthly basis to the NC Department of Justice; however, some
          datasets are incomplete or remain unreported.  Where data sets are
          incomplete or missing from the website it is because they have not
          been reported to the state agency from which the site derives its
          records. Open Data Policing does not have access to, nor does it
          publish, the names of officers, drivers, or passengers involved in
          traffic stops.
      </p>
    </div>
    <div class="col-sm-5">
      <h2>Find Agency</h2>
      <p>
        Enter an agency name into the search field or browse a list of all <a href="{% url "agency-list" %}">NC agencies</a>:
      </p>
      <form role="form" id="agency_search" action='{% url "home" %}' method="get" accept-charset="utf-8">
          <div class="form-group">
          {% csrf_token %}
          {{ agency_form.agency }}
          {% if agency_form.agency.errors %}
              <div class="alert alert-warning alert-dismissible">
                  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                  <ul>
                  {% for error in agency_form.agency.errors %}
                      <li><strong>{{ error }}</strong></li>
                  {% endfor %}
                  </ul><commit_msg>remove leaflet/map references; fix jump-to-agency form<commit_after>{% extends "base.html" %}
{% load selectable_tags staticfiles %}

{% block body_id %}state{% endblock %}

{% block extra-css %}
    {% include_ui_theme %}
    {{ agency_form.media.css }}
{% endblock %}

{% block extra-js %}
<script src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.4/jquery-ui.js"></script>
{{ agency_form.media.js }}
<script type="text/javascript">
    $(document).ready(function() {
        var quick_search = $('#agency_search :input[name=agency_0]');
        quick_search.bind('djselectableselect', function(event, ui) {
            $(this).parents("form").submit();
        });
    });
</script>
{% endblock %}

{% block content-outer %}

<div class="state-banner">
  <div class="container">
    <div class="row">
      <div class="col-md-8 col-sm-6">
        <h1>North Carolina</h1>
        <p>
          Browse all known traffic stops to have occurred in North Carolina since
          January 1, 2002
        </p>
      </div>
      <div class="col-md-4 col-sm-6 hidden-xs">
        <img src="{% static "svg/noun_19625_cc-white.svg" %}" class="state">
      </div>
    </div>
  </div>
</div>

<div class="container">
  <div class="row">
    <div class="col-sm-7">
      <h2>About</h2>
      <p>
          Open Data Policing NC aggregates, visualizes, and publishes public
          records related to all known traffic stops to have occurred in North
          Carolina since January 1, 2002.  Enter an agency name into the search
          field to the right to review data on the racial and ethnic demographics of
          people stopped, searched, and subjected to force in the course of
          traffic stops in a given jurisdiction.  Data is available for most
          North Carolina departments and officers serving populations greater
          than 10,000.
      </p>
      <p>
          North Carolina law requires all such agencies to report their data
          on a monthly basis to the NC Department of Justice; however, some
          datasets are incomplete or remain unreported.  Where data sets are
          incomplete or missing from the website it is because they have not
          been reported to the state agency from which the site derives its
          records. Open Data Policing does not have access to, nor does it
          publish, the names of officers, drivers, or passengers involved in
          traffic stops.
      </p>
    </div>
    <div class="col-sm-5">
      <h2>Find Agency</h2>
      <p>
        Enter an agency name into the search field or browse a list of all <a href="{% url "agency-list" %}">NC agencies</a>:
      </p>
      <form role="form" id="agency_search" action='{% url "nc-home" %}' method="get" accept-charset="utf-8">
          <div class="form-group">
          {% csrf_token %}
          {{ agency_form.agency }}
          {% if agency_form.agency.errors %}
              <div class="alert alert-warning alert-dismissible">
                  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                  <ul>
                  {% for error in agency_form.agency.errors %}
                      <li><strong>{{ error }}</strong></li>
                  {% endfor %}
                  </ul>
{'fraction_non_alphanumeric': 0.1335119131538136, 'fraction_numerical': 0.012688566192020303, 'mean_word_length': 2.3942583732057416, 'pattern_counts': {'":': 0, '<': 106, '<?xml version=': 0, '>': 106, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '7131064', 'n_tokens_mistral': 2182, 'n_tokens_neox': 2016, 'n_words': 643}