<commit_before>var map = L.map('map').setView([44.98044862724291, -93.26319694519043], 15);


		L.control.locate({
                      strings: {
                                 title: "Zoom to your current location"
                               }
               ,locateOptions: {
                                 maxZoom: 17
                               }
                     }).addTo(map);

var baselayer = new L.tileLayer('https://{s}.tiles.mapbox.com/v4/flatlandmaps.bf82ff09/{z}/{x}/{y}.png?access_token=<KEY>', {
    attribution: '<a href="https://www.mapbox.com/about/maps/" target="_blank">© Mapbox © OpenStreetMap</a>&nbsp<a href="https://www.mapbox.com/map-feedback/" target="_blank">Improve this map</a>'
});
baselayer.addTo(map);

//POI Icons
var confPin = L.MakiMarkers.icon({
    icon: "star",
    color: "#ff0000",
    size: "l"
});

var beerPin = L.MakiMarkers.icon({
    icon: "beer",
    color: "#23344c",
    size: "m"
});

var barPin = L.MakiMarkers.icon({
    icon: "bar",
    color: "#23344c",
    size: "m"
});

var restaurantPin = L.MakiMarkers.icon({
    icon: "restaurant",
    color: "#23344c",
    size: "m"
});

var cafePin = L.MakiMarkers.icon({
    icon: "cafe",
    color: "#23344c",
    size: "m"
});

var hotelPin = L.MakiMarkers.icon({
	icon: "lodging",
	color: "#23344c",
	size: "m"
});

var airportPin = L.MakiMarkers.icon({
	icon: "airport",
	color: "#23344c",
	size: "m"
});

var icecreamPin = L.MakiMarkers.icon({
	icon: "ice-cream",
	color: "#23344c",
	size: "m"
});

var museumPin = L.MakiMarkers.icon({
	icon: "museum",
	color: "#23344c",
	size: "m"
});

var parkPin = L.MakiMarkers.icon({
	icon: "park",
	color: "#23344c",
	size: "m"
});

var theatrePin = L.MakiMarkers.icon({
	icon: "theatre",
	color: "#23344c",
	size: "m"
});

var shopPin = L.MakiMarkers.icon({
	icon: "shop",
	color: "#23344c",
	size: "m"
});

//Nice Ride Icon
var niceRidePin = L.MakiMarkers.icon({
	icon: "bicycle",
	color: "#A8CF38",
	size: "s"
});

//LRT Station Icons
var blueLRTPin = L.MakiMarkers.icon({
	icon: "rail-light",
	color: "#0000FF",
	size: "s"
});

var greenLRTPin = L.MakiMarkers.icon({
	icon: "rail-light",
	color: "#008000",
	size: "s"
});

var railPin = L.MakiMarkers.icon({
	icon: "rail",
	color: "#FFA500",
	size: "s"
});

//Fun Run Route layer
var funRunRoute = new L.GeoJSON.AJAX("js/transit/funRun.json",{
	style: function (feature) {
		return {
			color: "#CE576F",
			dashArray: [1, 5]
		};
    }
});

//LRT Stations GeoJSON layer
var lrtStations = new L.GeoJSON.AJAX("js/transit/lrtStations.json",{
    pointToLayer: function (feature, latlng) {

		var html = '';
		       if (feature.properties.Station) {
		    	   html += '<h3>' + feature.properties.Station + '</h3>';
		        }
               if (feature.properties.Transitway) {
                   html += '<p>'+ feature.properties.Transitway + '</p>';
            }
		html += '<div class="put"></div>';

		var popup = new L.popup({
			closeButton:false
		}).setContent(html);

		var lrtMarker = new L.marker(latlng);
		      if (feature.properties.Transitway === 'Northstar Line') {
		          lrtMarker.setIcon(railPin);
		         }
		      if (feature.properties.Transitway === 'Green Line') {
		          lrtMarker.setIcon(greenLRTPin);
		         }
		      if (feature.properties.Transitway.match(/Blue*/)) {
		          lrtMarker.setIcon(blueLRTPin);
		         }
		  	lrtMarker.bindPopup(popup);
		return lrtMarker;
	}
});

//LRT Lines GeoJSON Color
function lrtLineColor(Name) {
	return 	Name === 'Green'     ? '#008000' :
			Name === 'Blue'  	 ? '#0000FF' :
			Name === 'Northstar' ? '#FFA500' :
							 	   '#000';
}

//LRT Lines GeoJSON
var lrtLines = new L.GeoJSON.AJAX("js/transit/lrtLines.json",{
	style: function (feature) {
		return {
			color: lrtLineColor(feature.properties.Name),
			dashArray: [3, 10]
		};
    }
});

//Nice Ride Stations Layer
var niceRideStations = new L.GeoJSON.AJAX("js/transit/niceRideStations.json", {
	pointToLayer: function (feature, latlng) {
		var html = "";
	       if (feature.properties.Station) {
	    	   html += "<h3><a href='http://www.niceridemn.org'>" + feature.properties.Station + "</a></h3>";
	        }
	       if (feature.properties.NB_Docks) {
	    	   html += "<p>" + feature.properties.NB_Docks + " Bike docks</p>";
	       }
	       if (feature.properties.Notes) {
	    	   html += "<p>" + feature.properties.Notes + "</p>";
	       }
        
	html += "<div class='put'></div>";

	var popup = new L.popup({
		closeButton:false
	}).setContent(html);

	var niceRideMarker = new L.marker(latlng);
	  	niceRideMarker.setIcon(niceRidePin);
	  	niceRideMarker.bindPopup(popup);
	return niceRideMarker;
	}
}).addTo(map);

//POI GeoJSON Layer
var poiLayer = new L.GeoJSON.AJAX("js/places.geojson",{
		    pointToLayer: function (feature, latlng) {

	var html = '';
               if (feature.properties.web) {
                      html += '<h3><a href="'+ feature.properties.web + '">' + feature.properties.title + '</a></h3>';
                }
               else {
                      html += '<h3>' + feature.properties.title + '</h3>';
               }
               if (feature.properties.address) {
                      html += '<p>'+ feature.properties.address + '</p>';
               }
               if (feature.properties.scoop) {
                      html += '<p>'+ feature.properties.scoop + '</p>';
               }
      html += '<div class="put"></div>';
      var popup = new L.popup({closeButton:false}).setContent(html);

      var marker = new L.marker(latlng);
      if (feature.properties.poi_type === 'conf') {
          marker.setIcon(confPin);
         }
      if (feature.properties.poi_type === 'beer') {
          marker.setIcon(beerPin);
         }
      if (feature.properties.poi_type === 'bar') {<commit_msg>Default marker pin<commit_after>var map = L.map('map').setView([44.98044862724291, -93.26319694519043], 15);


		L.control.locate({
                      strings: {
                                 title: "Zoom to your current location"
                               }
               ,locateOptions: {
                                 maxZoom: 17
                               }
                     }).addTo(map);

var baselayer = new L.tileLayer('https://{s}.tiles.mapbox.com/v4/flatlandmaps.bf82ff09/{z}/{x}/{y}.png?access_token=<KEY>', {
    attribution: '<a href="https://www.mapbox.com/about/maps/" target="_blank">© Mapbox © OpenStreetMap</a>&nbsp<a href="https://www.mapbox.com/map-feedback/" target="_blank">Improve this map</a>'
});
baselayer.addTo(map);

//POI Icons
var confPin = L.MakiMarkers.icon({
    icon: "star",
    color: "#ff0000",
    size: "l"
});

var beerPin = L.MakiMarkers.icon({
    icon: "beer",
    color: "#23344c",
    size: "m"
});

var barPin = L.MakiMarkers.icon({
    icon: "bar",
    color: "#23344c",
    size: "m"
});

var restaurantPin = L.MakiMarkers.icon({
    icon: "restaurant",
    color: "#23344c",
    size: "m"
});

var cafePin = L.MakiMarkers.icon({
    icon: "cafe",
    color: "#23344c",
    size: "m"
});

var hotelPin = L.MakiMarkers.icon({
	icon: "lodging",
	color: "#23344c",
	size: "m"
});

var airportPin = L.MakiMarkers.icon({
	icon: "airport",
	color: "#23344c",
	size: "m"
});

var icecreamPin = L.MakiMarkers.icon({
	icon: "ice-cream",
	color: "#23344c",
	size: "m"
});

var museumPin = L.MakiMarkers.icon({
	icon: "museum",
	color: "#23344c",
	size: "m"
});

var parkPin = L.MakiMarkers.icon({
	icon: "park",
	color: "#23344c",
	size: "m"
});

var theatrePin = L.MakiMarkers.icon({
	icon: "theatre",
	color: "#23344c",
	size: "m"
});

var shopPin = L.MakiMarkers.icon({
	icon: "shop",
	color: "#23344c",
	size: "m"
});

//Nice Ride Icon
var niceRidePin = L.MakiMarkers.icon({
	icon: "bicycle",
	color: "#A8CF38",
	size: "s"
});

//LRT Station Icons
var blueLRTPin = L.MakiMarkers.icon({
	icon: "rail-light",
	color: "#0000FF",
	size: "s"
});

var greenLRTPin = L.MakiMarkers.icon({
	icon: "rail-light",
	color: "#008000",
	size: "s"
});

var railPin = L.MakiMarkers.icon({
	icon: "rail",
	color: "#FFA500",
	size: "s"
});

var defaultPin = L.MakiMarkers.icon({
	icon: "marker",
	color: "#000000",
	size: "s"
});

//Fun Run Route layer
var funRunRoute = new L.GeoJSON.AJAX("js/transit/funRun.json",{
	style: function (feature) {
		return {
			color: "#CE576F",
			dashArray: [1, 5]
		};
    }
});

//LRT Stations GeoJSON layer
var lrtStations = new L.GeoJSON.AJAX("js/transit/lrtStations.json",{
    pointToLayer: function (feature, latlng) {

		var html = '';
		       if (feature.properties.Station) {
		    	   html += '<h3>' + feature.properties.Station + '</h3>';
		        }
               if (feature.properties.Transitway) {
                   html += '<p>'+ feature.properties.Transitway + '</p>';
            }
		html += '<div class="put"></div>';

		var popup = new L.popup({
			closeButton:false
		}).setContent(html);

		var lrtMarker = new L.marker(latlng);
		      if (feature.properties.Transitway === 'Northstar Line') {
		          lrtMarker.setIcon(railPin);
		         }
		      if (feature.properties.Transitway === 'Green Line') {
		          lrtMarker.setIcon(greenLRTPin);
		         }
		      if (feature.properties.Transitway.match(/Blue*/)) {
		          lrtMarker.setIcon(blueLRTPin);
		         }
		  	lrtMarker.bindPopup(popup);
		return lrtMarker;
	}
});

//LRT Lines GeoJSON Color
function lrtLineColor(Name) {
	return 	Name === 'Green'     ? '#008000' :
			Name === 'Blue'  	 ? '#0000FF' :
			Name === 'Northstar' ? '#FFA500' :
							 	   '#000';
}

//LRT Lines GeoJSON
var lrtLines = new L.GeoJSON.AJAX("js/transit/lrtLines.json",{
	style: function (feature) {
		return {
			color: lrtLineColor(feature.properties.Name),
			dashArray: [3, 10]
		};
    }
});

//Nice Ride Stations Layer
var niceRideStations = new L.GeoJSON.AJAX("js/transit/niceRideStations.json", {
	pointToLayer: function (feature, latlng) {
		var html = "";
	       if (feature.properties.Station) {
	    	   html += "<h3><a href='http://www.niceridemn.org'>" + feature.properties.Station + "</a></h3>";
	        }
	       if (feature.properties.NB_Docks) {
	    	   html += "<p>" + feature.properties.NB_Docks + " Bike docks</p>";
	       }
	       if (feature.properties.Notes) {
	    	   html += "<p>" + feature.properties.Notes + "</p>";
	       }
        
	html += "<div class='put'></div>";

	var popup = new L.popup({
		closeButton:false
	}).setContent(html);

	var niceRideMarker = new L.marker(latlng);
	  	niceRideMarker.setIcon(niceRidePin);
	  	niceRideMarker.bindPopup(popup);
	return niceRideMarker;
	}
}).addTo(map);

//POI GeoJSON Layer
var poiLayer = new L.GeoJSON.AJAX("js/places.geojson",{
		    pointToLayer: function (feature, latlng) {

	var html = '';
               if (feature.properties.web) {
                      html += '<h3><a href="'+ feature.properties.web + '">' + feature.properties.title + '</a></h3>';
                }
               else {
                      html += '<h3>' + feature.properties.title + '</h3>';
               }
               if (feature.properties.address) {
                      html += '<p>'+ feature.properties.address + '</p>';
               }
               if (feature.properties.scoop) {
                      html += '<p>'+ feature.properties.scoop + '</p>';
               }
      html += '<div class="put"></div>';
      var popup = new L.popup({closeButton:false}).setContent(html);

      var marker = new L.marker(latlng);
      marker.setIcon(defaultPin);
      if (feature.properties.poi_type === 'conf') {
          marker.setIcon(confPin);
         }
      if (feature.properties.poi_type === 'beer') {
          marker.setIcon(beerPin);
         }
      if (feature.properties.poi_type === 'bar') {
{'fraction_non_alphanumeric': 0.17954603417495538, 'fraction_numerical': 0.02567372268979002, 'mean_word_length': 2.4019664545980337, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 6, 'lorem ipsum': 0, 'www.': 6, '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': '7337663', 'n_tokens_mistral': 4612, 'n_tokens_neox': 4176, 'n_words': 816}