<commit_before>var m = L.map('map').setView([42.34100473739444, -71.09639167785643], 14);
var mq=L.tileLayer("http://otile{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpeg", {attribution:'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> &mdash; Map data &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', subdomains:'1234'}).addTo(m);
var bikes = L.geoJson(undefined,{style:style,onEachFeature:onEachFeature}).addTo(m);
var rt = rTree();
var bd;
L.Util.ajax("libs/bikes.json",function(data){
	rt.geoJSON(data,function(err,success){
		if(!err){
			bikes.addData(data);
			bd=data;
		}
	});
});
var popupTemplate=Mustache.compile('<ul>{{#items}}<li><strong>{{key}}</strong>: {{value}}</li>{{/items}}</ul>');
function onEachFeature(ft,layer) {
    if (ft.properties) {
    	var out = {items:[]},val;
        for(var key in ft.properties){
        	if(['geometry','id','_id','type','Shape_Length',"_cwm"].indexOf(key)===-1){
        		val = ft.properties[key].replace(/\+.+\+/g,"");
        		if(val&&val!==""){
        			out.items.push({key:key.replace(/([a-z])([A-Z])/g,"$1 $2"),value:val});
        }
        	}
        }
        layer.bindPopup(popupTemplate(out));
    }
}
function style(doc) {
	var status = doc.properties.FacilityStatus.slice(0,doc.properties.FacilityStatus.indexOf(":"));
	out = {opacity:0.9};
	switch (status) {
		case 'Existing':
			break;
		case 'Under construction':<commit_msg>only load viewpoint with non worker<commit_after>var m = L.map('map').setView([42.34100473739444, -71.09639167785643], 14);
var mq=L.tileLayer("http://otile{s}.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.jpeg", {attribution:'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a> &mdash; Map data &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', subdomains:'1234'}).addTo(m);
var bikes = L.geoJson(undefined,{style:style,onEachFeature:onEachFeature}).addTo(m);
var rt = rTree();
var bd;
L.Util.ajax("libs/bikes.json",function(data){
	rt.geoJSON(data,function(err,success){
		if(!err){
			showAll();
		}
	});
});
var popupTemplate=Mustache.compile('<ul>{{#items}}<li><strong>{{key}}</strong>: {{value}}</li>{{/items}}</ul>');
function onEachFeature(ft,layer) {
    if (ft.properties) {
    	var out = {items:[]},val;
        for(var key in ft.properties){
        	if(['geometry','id','_id','type','Shape_Length',"_cwm"].indexOf(key)===-1){
        		val = ft.properties[key].replace(/\+.+\+/g,"");
        		if(val&&val!==""){
        			out.items.push({key:key.replace(/([a-z])([A-Z])/g,"$1 $2"),value:val});
        }
        	}
        }
        layer.bindPopup(popupTemplate(out));
    }
}
function style(doc) {
	var status = doc.properties.FacilityStatus.slice(0,doc.properties.FacilityStatus.indexOf(":"));
	out = {opacity:0.9};
	switch (status) {
		case 'Existing':
			break;
		case 'Under construction':
{'fraction_non_alphanumeric': 0.2345467032967033, 'fraction_numerical': 0.032280219780219783, 'mean_word_length': 4.306010928961749, 'pattern_counts': {'":': 2, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5474149', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1080, 'n_words': 141}