<commit_before><!doctype html>
<html lang="en">
   <style>
	body {
	   padding: 0;
           margin: 0;
	   }
	html, body, #map {
    	   height: 100%;
	   }
   </style>
    <head>
	<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"/>
	<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    </head>
    <body>
     
      <div id="map" ></div>
      
      <script>
     // Initialize map 
      var map = L.map('map');//.setView([41.89165, -87.74679],17);
      

      var mapLayer = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}', {
		attribution: '&copy; <a href="http://mapbox.com">Mapbox</a>',
		maxZoom: 19,
		minZoom: 9,
		id: 'chrishaid.fa5d94b1',
		accessToken: '<KEY>'
		});           
	
      map.locate({setView: true, maxZoom:17});
	
      map.addLayer(mapLayer);
      

      function onLocationFound(e) {
 	   var radius = e.accuracy / 2;

    	   L.marker(e.latlng).addTo(map)
           .bindPopup("You are within " + radius + " meters from this point").openPopup();

           L.circle(e.latlng, radius).addTo(map);
           }

	map.on('locationfound', onLocationFound);
  
	var data = {
              "type": "FeatureCollection",
              "features": [
                {% for obj in object_list %}
                {
                  "type": "Feature",
                  "properties": {
                    "first_name": "{{ obj.first_name}}",
		    "last_name": "{{ obj.last_name}} ",
                    "address": "{{ obj.address }}",
                    "type": "{{ obj.type }}"
                  },
                  "geometry": {
                    "type": "Point",
                    "coordinates": [{{ obj.long }}, {{ obj.lat}}]
                  }
                } {% if not loop.last %},{% endif %}
                {% endfor %}<commit_msg>Added locate button to map<commit_after><!doctype html>
<html lang="en">
   <style>
	body {
	   padding: 0;
           margin: 0;
	   }
	html, body, #map {
    	   height: 100%;
	   }
   </style>
   <head>
	  <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"/>
	  <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    </head>
    <body>
     
      <script src='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/L.Control.Locate.min.js'></script>
      <link href='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/L.Control.Locate.mapbox.css' rel='stylesheet' />
      <!--[if lt IE 9]>
      <link href='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/L.Control.Locate.ie.css' rel='stylesheet' />
      <![endif]-->
      <link href='https://api.tiles.mapbox.com/mapbox.js/plugins/leaflet-locatecontrol/v0.43.0/css/font-awesome.min.css' rel='stylesheet' />


      <div id="map" ></div>
      
      <script>
     // Initialize map 
      var map = L.map('map').setView([41.89165, -87.74679],17);
      

      var mapLayer = L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}', {
        attribution: '&copy; <a href="http://mapbox.com">Mapbox</a>',
        maxZoom: 19,
		    minZoom: 9,
		    id: 'chrishaid.fa5d94b1',
		    accessToken: '<KEY>'
      });           
	
      //map.locate({setView: true, maxZoom:17});
	
      map.addLayer(mapLayer);
      L.control.locate().addTo(map);

//      function onLocationFound(e) {
// 	   var radius = e.accuracy / 2;
//
//    	   L.marker(e.latlng).addTo(map)
//           .bindPopup("You are within " + radius + " meters from this point").openPopup();

//           L.circle(e.latlng, radius).addTo(map);
//           }

//	map.on('locationfound', onLocationFound);
  
	var data = {
              "type": "FeatureCollection",
              "features": [
                {% for obj in object_list %}
                {
                  "type": "Feature",
                  "properties": {
                    "first_name": "{{ obj.first_name}}",
		    "last_name": "{{ obj.last_name}} ",
                    "address": "{{ obj.address }}",
                    "type": "{{ obj.type }}"
                  },
                  "geometry": {
                    "type": "Point",
                    "coordinates": [{{ obj.long }}, {{ obj.lat}}]
                  }
                } {% if not loop.last %},{% endif %}
                {% endfor %}
{'fraction_non_alphanumeric': 0.1882202304737516, 'fraction_numerical': 0.021553563807084935, 'mean_word_length': 1.8200962695547533, 'pattern_counts': {'":': 22, '<': 44, '<?xml version=': 0, '>': 44, 'https://': 6, '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': '1326828', 'n_tokens_mistral': 1713, 'n_tokens_neox': 1580, 'n_words': 239}