<commit_before>var config = require('config');
var mapModule = require('map');
var plugins = require('./leaflet_plugins');
var polyUtil = require('./polyline_encoded.js');
var routeboxer = require('./leaflet_routeboxer.js');
var leaflet_label = require('./leaflet_label/leaflet.label-src.js');
var collision = require('./leaflet_layergroup_collision.js');
var session = require('session');

var center = config.geocode().center.split(',').map(parseFloat)
if (config.map_provider && config.map_provider() !== 'AmigoCloud') {
    L.mapbox.accessToken = config.mapbox_access_token();
}

module.exports = function (el) {
    var map, realtime, southWest, northEast, blurLayer;
    localStorage.removeItem('dataplan');
    sessionStorage.removeItem('dataplan');

    if (config.map_provider && config.map_provider() === 'AmigoCloud') {
        southWest = L.latLng(35.946877085397, -123.480610897013);
        northEast = L.latLng(40.763279543715, -118.789317362500);
        map = (new L.amigo.map(el, {
            amigoLogo: 'right',
            loadAmigoLayers: false,
            inertia: false,
            zoomAnimation: true,
            maxBounds: L.latLngBounds(southWest, northEast),
            minZoom: 8
        })).setView([center[1], center[0]], config.geocode().zoom);

        L.amigo.auth.setToken(config.support_data_token());

        blurLayer = L.tileLayer(
            'https://www.amigocloud.com/api/v1/users/' +
            '23/projects/3019/datasets/23835/tiles/{z}/{x}/{y}.png?' +
            'token=' + config.support_data_token(), {
                name: 'Uncovered Area'
            }
        );

        map.addAuthLayer({
            id: config.mapbox_map_id(),
            accessToken: config.mapbox_access_token(),
            name: 'Gray',
            provider: 'mapbox'
        });
        map.addBaseLayer(L.amigo.AmigoGray);
        map.layersControl.addBaseLayer(
            L.bingLayer(
                config.bing_key(), {
                    type: 'Road',
                    attribution: 'Bing Maps'
                }
            ),
            'Bing Road'
        );
        map.layersControl.addOverlay(blurLayer);
        blurLayer.addTo(map);

        L.control.locate().addTo(map);

        map.routes = []; // array to hold all route objects

        module.exports.activeMap = map;

        //map.realtimeControl = L.control.toggleRealTime().addTo(map);

        realtime = mapModule.realtime();


    } else {

        map = L.mapbox.map(el, config.mapbox_map_id(), {
            attributionControl: false,
            inertia: false,
            zoomAnimation: false
        }).setView([center[1], center[0]], config.geocode().zoom);
    }

    return map;
};

module.exports.getMap = function () {
    return this.activeMap;
};

module.exports.cleanRoute = function () {
    module.exports.activeRoute.removeLayer();
    module.exports.activeRoute = null;
};<commit_msg>Removed Located Me Button<commit_after>var config = require('config');
var mapModule = require('map');
var plugins = require('./leaflet_plugins');
var polyUtil = require('./polyline_encoded.js');
var routeboxer = require('./leaflet_routeboxer.js');
var leaflet_label = require('./leaflet_label/leaflet.label-src.js');
var collision = require('./leaflet_layergroup_collision.js');
var session = require('session');

var center = config.geocode().center.split(',').map(parseFloat)
if (config.map_provider && config.map_provider() !== 'AmigoCloud') {
    L.mapbox.accessToken = config.mapbox_access_token();
}

module.exports = function (el) {
    var map, realtime, southWest, northEast, blurLayer;
    localStorage.removeItem('dataplan');
    sessionStorage.removeItem('dataplan');

    if (config.map_provider && config.map_provider() === 'AmigoCloud') {
        southWest = L.latLng(35.946877085397, -123.480610897013);
        northEast = L.latLng(40.763279543715, -118.789317362500);
        map = (new L.amigo.map(el, {
            amigoLogo: 'right',
            loadAmigoLayers: false,
            inertia: false,
            zoomAnimation: true,
            maxBounds: L.latLngBounds(southWest, northEast),
            minZoom: 8
        })).setView([center[1], center[0]], config.geocode().zoom);

        L.amigo.auth.setToken(config.support_data_token());

        blurLayer = L.tileLayer(
            'https://www.amigocloud.com/api/v1/users/' +
            '23/projects/3019/datasets/23835/tiles/{z}/{x}/{y}.png?' +
            'token=' + config.support_data_token(), {
                name: 'Uncovered Area'
            }
        );

        map.addAuthLayer({
            id: config.mapbox_map_id(),
            accessToken: config.mapbox_access_token(),
            name: 'Gray',
            provider: 'mapbox'
        });
        map.addBaseLayer(L.amigo.AmigoGray);
        map.layersControl.addBaseLayer(
            L.bingLayer(
                config.bing_key(), {
                    type: 'Road',
                    attribution: 'Bing Maps'
                }
            ),
            'Bing Road'
        );
        map.layersControl.addOverlay(blurLayer);
        blurLayer.addTo(map);

        //L.control.locate().addTo(map);

        map.routes = []; // array to hold all route objects

        module.exports.activeMap = map;

        //map.realtimeControl = L.control.toggleRealTime().addTo(map);

        realtime = mapModule.realtime();


    } else {

        map = L.mapbox.map(el, config.mapbox_map_id(), {
            attributionControl: false,
            inertia: false,
            zoomAnimation: false
        }).setView([center[1], center[0]], config.geocode().zoom);
    }

    return map;
};

module.exports.getMap = function () {
    return this.activeMap;
};

module.exports.cleanRoute = function () {
    module.exports.activeRoute.removeLayer();
    module.exports.activeRoute = null;
};
{'fraction_non_alphanumeric': 0.14519986334130508, 'fraction_numerical': 0.02562350529552443, 'mean_word_length': 2.3649425287356323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5290462', 'n_tokens_mistral': 1925, 'n_tokens_neox': 1776, 'n_words': 289}