<commit_before>{% extends "base.html" %}
{% load staticfiles %}
{% block title %} | Lots applied for {% endblock %}
{% block extra_css %}
    <style id="egp-styles">
      #egp_parcels {
        polygon-fill: #41ab5d;
        polygon-opacity: 0.7;
        line-color: #006d2c;
        line-width: 0.5;
        line-opacity: 1;
      }
    </style>
    <style id="egp-styles-applied">
        #egp_parcels {
          polygon-fill: #A1285D;
          polygon-opacity: 0.7;
          line-color: #680D35;
          line-width: 0.5;
          line-opacity: 1;
        }
    </style>
{% endblock %}
{% block content %}
<p><a href='/lots-admin/'>&laquo; back to the list</a></p>
<h2><span id='pin_count'></span> lots applied for </h2>

<p>
    <span class='label label-available'>Available</span>
    <span class='label label-applied'>Applied</span>
</p>

<div id='map-admin'></div>

{% endblock %}
{% block extra_js %}
    <script src="http://libs.cartocdn.com/cartodb.js/v3/cartodb.js"></script>

    <script src="{% static 'js/leaflet.label.js' %}" type="text/javascript"></script>
    <script src="{% static 'js/largelots_admin.js' %}"></script>
    <script>

      var applied_pins = "{{applied_pins|safe}}";
      var num_pins = applied_pins.split(",").length;
      var applied_percent = (100 * num_pins / 417.0).toFixed(1);

      $('#pin_count').html(num_pins + " out of 417 (" + applied_percent + "%)")
      $(function() {
        LargeLotsAdmin.initialize();
      });
    </script>
{% endblock %}<commit_msg>pulling unique pins for lot calculation<commit_after>{% extends "base.html" %}
{% load staticfiles %}
{% block title %} | Lots applied for {% endblock %}
{% block extra_css %}
    <style id="egp-styles">
      #egp_parcels {
        polygon-fill: #41ab5d;
        polygon-opacity: 0.7;
        line-color: #006d2c;
        line-width: 0.5;
        line-opacity: 1;
      }
    </style>
    <style id="egp-styles-applied">
        #egp_parcels {
          polygon-fill: #A1285D;
          polygon-opacity: 0.7;
          line-color: #680D35;
          line-width: 0.5;
          line-opacity: 1;
        }
    </style>
{% endblock %}
{% block content %}
<p><a href='/lots-admin/'>&laquo; back to the list</a></p>
<h2><span id='pin_count'></span> lots applied for </h2>

<p>
    <span class='label label-available'>Available</span>
    <span class='label label-applied'>Applied</span>
</p>

<div id='map-admin'></div>

{% endblock %}
{% block extra_js %}
    <script src="http://libs.cartocdn.com/cartodb.js/v3/cartodb.js"></script>

    <script src="{% static 'js/leaflet.label.js' %}" type="text/javascript"></script>
    <script src="{% static 'js/largelots_admin.js' %}"></script>
    <script>

      var applied_pins = "{{applied_pins|safe}}";
      var num_pins = $.unique(applied_pins.split(",")).length;
      var applied_percent = (100 * num_pins / 417.0).toFixed(1);

      $('#pin_count').html(num_pins + " out of 417 (" + applied_percent + "%)")
      $(function() {
        LargeLotsAdmin.initialize();
      });
    </script>
{% endblock %}
{'fraction_non_alphanumeric': 0.19165580182529335, 'fraction_numerical': 0.02607561929595828, 'mean_word_length': 2.7020506634499397, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '3678126', 'n_tokens_mistral': 1193, 'n_tokens_neox': 1065, 'n_words': 209}