<commit_before>;(function(){

	$('.parks').click( toggleParksLayer );
	$('.districts').click( toogleDistrictsLayer );

	var map = L.map('map', {
		center: [30.304539565829106, -97.73300170898438], //Austin!
		zoom: 10,
		scrollWheelZoom: false
	});

	//  add tile Layer from Mapquest
	L.tileLayer(
	    // Mapbox Streets-Satellite
	    // 'http://api.tiles.mapbox.com/v4/mapbox.streets-satellite/{z}/{x}/{y}.png?access_token=<KEY>'

		// Satelite Tile
		// 'http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg'

		// Plain (ugly) Mapquest Tiles
		// 'http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg'

		// Open Street Map Tile
	    'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
	).addTo(map);

	// adding parks shapefiles to Map
	var parkLayer = L.geoJson(parks, {}).addTo(map);
	var parksOn = true;
	function toggleParksLayer(){
		if (parksOn === true){
			map.removeLayer(parkLayer);
		} else {
			map.addLayer(parkLayer);
		}
		parksOn = !parksOn;
	}

	// adding district shapefiles to Map
	var districtLayer = L.geoJson(districts, {
		style: function style(feature) {
			return {
				fillColor: getColor(feature.properties.DISTRICT_N),
				weight: 1,
				opacity: 1,
				color: 'white',
				dashArray: '3',
				fillOpacity: 0.4,
			};
		},
		onEachFeature: function onEachFeature(feature, layer) {
			// layer.bindPopup('District ' + feature.properties.DISTRICT_N);
			layer.on({
			        click: highlightFeature
			    });
		}
	}).addTo(map);

	var districtOn = false;
	function toogleDistrictsLayer(){
		console.log("test");
		if (districtOn === true){
			map.removeLayer(districtLayer);
		} else {
			map.addLayer(districtLayer);
		}
		districtOn = !districtOn;
	}

	function getColor(d) {
		return d > 9 ? '#8dd3c7' :
			d > 8 ? '#ffffb3' :
			d > 7 ? '#bebada' :
			d > 6 ? '#fb8072' :
			d > 5 ? '#80b1d3' :
			d > 4 ? '#fdb462' :
			d > 3 ? '#b3de69' :
			d > 2 ? '#fccde5' :
			d > 1 ? '#98e986' :
			'#bc80bd';
	}

	// Hover highlight feature
	function highlightFeature(e) {
		districtLayer.eachLayer( function resetHighlight(layer) {
		    districtLayer.resetStyle(layer);
		    info.update();
	});

    var layer = e.target;

    layer.setStyle({
        weight: 2,
        color: '#666',
        dashArray: '',
        fillOpacity: 0.7
    });

    if (!L.Browser.ie && !L.Browser.opera) {
	        layer.bringToFront();
	    }
	    info.update(layer.feature.properties);
	    map.fitBounds(e.target.getBounds());
	}

	// info controls on map
	var info = L.control();

	info.onAdd = function (map) {
	    this._div = L.DomUtil.create('div', 'info'); // create a div with a class "info"
	    this.update();
	    return this._div;
	};

		// method that we will use to update the control based on feature properties passed
	info.update = function (property) {
	    this._div.innerHTML =  (property ?
	        '<b>District ' + property.DISTRICT_N + '</b><br />'
	        : 'Click on a district');
	};

	info.addTo(map);

})();<commit_msg>Add styles to park layer<commit_after>;(function(){

	$('.parks').click( toggleParksLayer );
	$('.districts').click( toogleDistrictsLayer );

	var map = L.map('map', {
		center: [30.304539565829106, -97.73300170898438], //Austin!
		zoom: 11,
		scrollWheelZoom: false
	});

	//  add tile Layer from Mapquest
	L.tileLayer(
	    // Mapbox Streets-Satellite
	    // 'http://api.tiles.mapbox.com/v4/mapbox.streets-satellite/{z}/{x}/{y}.png?access_token=<KEY>'

		// Satelite Tile
		// 'http://otile1.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg'

		// Plain (ugly) Mapquest Tiles
		// 'http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg'

		// Open Street Map Tile
	    'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
	).addTo(map);

	// adding district shapefiles to Map
	var districtLayer = L.geoJson(districts, {
		style: function style(feature) {
			return {
				fillColor: getColor(feature.properties.DISTRICT_N),
				weight: 1,
				opacity: 1,
				color: 'white',
				dashArray: '3',
				fillOpacity: 0.4
			};
		},
		onEachFeature: function onEachFeature(feature, layer) {
			// layer.bindPopup('District ' + feature.properties.DISTRICT_N);
			layer.on({
			        click: highlightFeature
			    });
		}
	}).addTo(map);

	var districtOn = true;
	function toogleDistrictsLayer(){
		console.log("test");
		if (districtOn === true){
			map.removeLayer(districtLayer);
		} else {
			map.addLayer(districtLayer);
		}
		districtOn = !districtOn;
	}

	// adding parks shapefiles to Map
	var parkLayer = L.geoJson(parks, {
		style: function style(feature){
			return {
				fillColor: '#657E30',
				weight: 1,
				opacity: 0.7,
				color: 'black',
				fillOpacity: 0.7
			};
		}
	}).addTo(map);
	var parksOn = true;
	function toggleParksLayer(){
		if (parksOn === true){
			map.removeLayer(parkLayer);
		} else {
			map.addLayer(parkLayer);
		}
		parksOn = !parksOn;
	}

	function getColor(d) {
		return d > 9 ? '#8dd3c7' :
			d > 8 ? '#ffffb3' :
			d > 7 ? '#bebada' :
			d > 6 ? '#fb8072' :
			d > 5 ? '#80b1d3' :
			d > 4 ? '#fdb462' :
			d > 3 ? '#b3de69' :
			d > 2 ? '#fccde5' :
			d > 1 ? '#98e986' :
			'#bc80bd';
	}

	// Hover highlight feature
	function highlightFeature(e) {
		districtLayer.eachLayer( function resetHighlight(layer) {
		    districtLayer.resetStyle(layer);
		    info.update();
	});

    var layer = e.target;

    layer.setStyle({
        weight: 2,
        color: '#666',
        dashArray: '',
        fillOpacity: 0.7
    });

    if (!L.Browser.ie && !L.Browser.opera) {
	        layer.bringToFront();
	    }
	    info.update(layer.feature.properties);
	    map.fitBounds(e.target.getBounds());
	}

	// info controls on map
	var info = L.control();

	info.onAdd = function (map) {
	    this._div = L.DomUtil.create('div', 'info'); // create a div with a class "info"
	    this.update();
	    return this._div;
	};

		// method that we will use to update the control based on feature properties passed
	info.update = function (property) {
	    this._div.innerHTML =  (property ?
	        '<b>District ' + property.DISTRICT_N + '</b><br />'
	        : 'Click on a district');
	};

	info.addTo(map);

})();
{'fraction_non_alphanumeric': 0.1743900442115605, 'fraction_numerical': 0.03111183887342394, 'mean_word_length': 2.756457564575646, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 29, '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': '1288516', 'n_tokens_mistral': 2648, 'n_tokens_neox': 2236, 'n_words': 452}