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

{% block additional-headers %}
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
  html { height: 100%; overflow: hidden }
  body { height: 100%; margin: 0; padding: 0 }
  #map_canvas { height: 100% }
  .leaflet-popup-content {max-height: 450px; overflow: auto; width: 420px; padding: 4px;}
  .leaflet-popup-content ul {list-style-type:none;}
  .navbar .nav.pull-right .dropdown-menu {max-height: 600px; width: 400px; overflow: auto;}
  .dropdown-menu a {white-space: normal; max-width: 600px;}
  .legends-container {
      width: 200px;
      position: absolute;
      bottom: 15px;
      z-index: 7;
      left: 15px;
  }
  .legends-container div {
    margin-bottom: 8px;
  }
  .legends-container div:last-child {
    margin-bottom: 0px;
  }
  #legend, #hex-legend {
      background-color: white;
      opacity: 0.95;
      padding: 8px;
      border-radius: 3px;
  }
  #legend ul, #hex-legend ul {list-style: none;margin: 0px}
  #legend ul li {}
  #hex-legend .scale ul li {
    display: block;
    float: left;
    width: 22px;
    margin: 0 0 6px 0;
    text-align: center;
  }
  #hex-legend .scale {
    font-size: 60%;
    margin: 5px 0 0 0;
  }
  #legend span.legend-bullet {
      width: 15px;
      height: 15px;
      float: left;
      margin-right: 5px;
      border-radius: 3px;
  }
  #hex-legend span {
      width: 22px;
      height: 15px;
      float: left;
  }
  #legend span.item-label{
      padding: 0px 20px 0px 20px;
      display: block;
  }
  #legend a.legend-label {padding: 6px; font-weight: bold;}
  #legend a.legend-label.active {
      background-color: #0078A8;
      color: white;
  }
  #legend a.legend-label.inactive {
      font-weight: normal;
      color: #666;
  }
  #legend .legend-response-count{float: right; font-weight: bold}
</style>
<link rel="stylesheet" href="/static/css/leaflet.css" />
<!--[if lte IE 8]>
    <link rel="stylesheet" href="/static/css/leaflet.ie.css" />
<![endif]-->
<script type="text/javascript" src="/static/js/json2.js"></script>
<script type="text/javascript" src="/static/js/leaflet.js"></script>
<script src="https://maps.google.com/maps/api/js?v=3.2&sensor=false"></script>
<script type="text/javascript" src="/static/js/Google.js"></script>
<script type="text/javascript" src="/static/js/wax.leaf.min.js"></script>
<script type="text/javascript" src="/static/js/TileLayer.Bing.js"></script>
<script type="text/javascript" src="/static/js/formManagers.js?ts=201212081147"></script>
<script type="text/javascript" src="/static/js/jquery.ba-bbq.min.js"></script>
<script type="text/javascript">
var center = {{ center|safe }};
var formJSONUrl = "{{ jsonform_url }}";
var mongoAPIUrl = "{{ mongo_api_url }}";
var attachmentsBaseUrl = "{% url odk_viewer.views.attachment_url %}";
$('#selectLanguage').live('change', function() {
    $('.language').hide();
    $('.' + $(this).val()).show();
});
function setMapHeight(){
  var newHeight = $(window).height()-
      $('.navbar-inner').height()
  $('#map_canvas').height(newHeight);
}
$(document).ready(function() { setMapHeight(); });
$(window).resize(setMapHeight);
</script>
<script src="/static/js/mapview.js?ts=20121012170000" type="text/javascript"></script>
<script src="/static/js/underscore-min.js" type="text/javascript"></script>
<script src="/static/js/d3.js" type="text/javascript"></script>
<script src="/static/js/dv.js" type="text/javascript"></script>
<script src="/static/js/hex.js" type="text/javascript"></script>
<script src="/static/js/d3.hexbin.js" type="text/javascript"></script>
{% endblock %}

{% block body %}
<body onload="initialize()">
  {% include "topbar.html" %}
  
  {% if mapbox_layer %}
  <script type="text/javascript">
    var customMapBoxTileLayer = {'label': '{{mapbox_layer.map_name}}', 'url': '{{mapbox_layer.link}}'};
  </script>
  {% endif %}
  
  <div id="map_canvas" style="width:100%; height:100%;"></div>
</body>
{% endblock %}<commit_msg>Added modal for progress bar<commit_after>{% extends 'base.html' %}

{% block additional-headers %}
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
  html { height: 100%; overflow: hidden }
  body { height: 100%; margin: 0; padding: 0 }
  #map_canvas { height: 100% }
  .leaflet-popup-content {max-height: 450px; overflow: auto; width: 420px; padding: 4px;}
  .leaflet-popup-content ul {list-style-type:none;}
  .navbar .nav.pull-right .dropdown-menu {max-height: 600px; width: 400px; overflow: auto;}
  .dropdown-menu a {white-space: normal; max-width: 600px;}
  .legends-container {
      width: 200px;
      position: absolute;
      bottom: 15px;
      z-index: 7;
      left: 15px;
  }
  .legends-container div {
    margin-bottom: 8px;
  }
  .legends-container div:last-child {
    margin-bottom: 0px;
  }
  #legend, #hex-legend {
      background-color: white;
      opacity: 0.95;
      padding: 8px;
      border-radius: 3px;
  }
  #legend ul, #hex-legend ul {list-style: none;margin: 0px}
  #legend ul li {}
  #hex-legend .scale ul li {
    display: block;
    float: left;
    width: 22px;
    margin: 0 0 6px 0;
    text-align: center;
  }
  #hex-legend .scale {
    font-size: 60%;
    margin: 5px 0 0 0;
  }
  #legend span.legend-bullet {
      width: 15px;
      height: 15px;
      float: left;
      margin-right: 5px;
      border-radius: 3px;
  }
  #hex-legend span {
      width: 22px;
      height: 15px;
      float: left;
  }
  #legend span.item-label{
      padding: 0px 20px 0px 20px;
      display: block;
  }
  #legend a.legend-label {padding: 6px; font-weight: bold;}
  #legend a.legend-label.active {
      background-color: #0078A8;
      color: white;
  }
  #legend a.legend-label.inactive {
      font-weight: normal;
      color: #666;
  }
  #legend .legend-response-count{float: right; font-weight: bold}
</style>
<link rel="stylesheet" href="/static/css/leaflet.css" />
<!--[if lte IE 8]>
    <link rel="stylesheet" href="/static/css/leaflet.ie.css" />
<![endif]-->
<script type="text/javascript" src="/static/js/json2.js"></script>
<script type="text/javascript" src="/static/js/leaflet.js"></script>
<script src="https://maps.google.com/maps/api/js?v=3.2&sensor=false"></script>
<script type="text/javascript" src="/static/js/Google.js"></script>
<script type="text/javascript" src="/static/js/wax.leaf.min.js"></script>
<script type="text/javascript" src="/static/js/TileLayer.Bing.js"></script>
<script type="text/javascript" src="/static/js/formManagers.js?ts=201212081147"></script>
<script type="text/javascript" src="/static/js/jquery.ba-bbq.min.js"></script>
<script type="text/javascript">
var center = {{ center|safe }};
var formJSONUrl = "{{ jsonform_url }}";
var mongoAPIUrl = "{{ mongo_api_url }}";
var attachmentsBaseUrl = "{% url odk_viewer.views.attachment_url %}";
$('#selectLanguage').live('change', function() {
    $('.language').hide();
    $('.' + $(this).val()).show();
});
function setMapHeight(){
  var newHeight = $(window).height()-
      $('.navbar-inner').height()
  $('#map_canvas').height(newHeight);
}
$(document).ready(function() {
    setMapHeight();
    $('#progress-modal').modal({
        keyboard: false
    });
});
$(window).resize(setMapHeight);
</script>
<script src="/static/js/mapview.js?ts=20121012170000" type="text/javascript"></script>
<script src="/static/js/underscore-min.js" type="text/javascript"></script>
<script src="/static/js/d3.js" type="text/javascript"></script>
<script src="/static/js/dv.js" type="text/javascript"></script>
<script src="/static/js/hex.js" type="text/javascript"></script>
<script src="/static/js/d3.hexbin.js" type="text/javascript"></script>
{% endblock %}

{% block body %}
<body onload="initialize()">
  {% include "topbar.html" %}
  
  {% if mapbox_layer %}
  <script type="text/javascript">
    var customMapBoxTileLayer = {'label': '{{mapbox_layer.map_name}}', 'url': '{{mapbox_layer.link}}'};
  </script>
  {% endif %}
  <div id="progress-modal" class="modal hide fade" data-keyboard="false">
      <div class="progress progress-info progress-striped">
          <div class="bar" style="width: 20%"></div>
      </div>
  </div>
  
  <div id="map_canvas" style="width:100%; height:100%;"></div>
</body>
{% endblock %}
{'fraction_non_alphanumeric': 0.19555501872206787, 'fraction_numerical': 0.02923058340379273, 'mean_word_length': 3.7206385404789053, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, 'https://': 2, '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': '2108933', 'n_tokens_mistral': 3144, 'n_tokens_neox': 2869, 'n_words': 579}