<commit_before>//Code modified from Wellcome Trust Women's Work project: https://github.com/wellcometrust/womens-work/tree/master/visualisations/map

////////////////////////////////////////////////////////////////

var highlightColor = '#a9fcff';
var selectedColor = '#f442dc';

// For interactive map
var disableClusterZoomLevel = 8;
var markerOpacity = 0.35;

function initMap() {
	$.getJSON("data/leaflet_markers.json", makeMap);
}

function makeMap(data) {
    ////////////// Map Parameters //////////////
    var centreLatitude = 51.5;
    var centreLongitude = 0.12;
    var initialZoom = 10;

    var map = L.map('map', {
        zoomControl:true,
        maxZoom: 21,
        minZoom: 2,
    }).setView([centreLatitude, centreLongitude], initialZoom);


    // add basemap url here
    var mbUrl = ''

    var darkMap = L.tileLayer(mbUrl).addTo(map);
    $.getJSON("/data/london_districts_latlong_with_centroids.json",function(borough_outlines){
        boroughLayer = L.geoJson( borough_outlines, {
          style: function(feature){
            return {
                color: "white",
                weight: 1,
                fillColor: 'none',
                fillOpacity: 0 };
            }
        }).addTo(map);
    });

    radiusScale = d3.scale.sqrt().domain([1, 20]).range([20, 40])
    //numbersmellsradiusScale = d3.scale.sqrt().domain([1, 20]).range([0, 20])

    function radius(total_number_smells){<commit_msg>to add updated main.js<commit_after>//Code modified from Wellcome Trust Women's Work project: https://github.com/wellcometrust/womens-work/tree/master/visualisations/map

////////////////////////////////////////////////////////////////

var highlightColor = '#a9fcff';
var selectedColor = '#f442dc';

// For interactive map
var disableClusterZoomLevel = 8;
var markerOpacity = 0.35;

function initMap() {
	$.getJSON("data/leaflet_markers.json", makeMap);
}

function makeMap(data) {
    ////////////// Map Parameters //////////////
    var centreLatitude = 51.5;
    var centreLongitude = 0.12;
    var initialZoom = 10;

    var map = L.map('map', {
        zoomControl:true,
        maxZoom: 21,
        minZoom: 2,
    }).setView([centreLatitude, centreLongitude], initialZoom);


    // add basemap url here
    var mbUrl = ''

    var darkMap = L.tileLayer(mbUrl).addTo(map);
    $.getJSON("data/london_districts_latlong_with_centroids.json",function(borough_outlines){
        boroughLayer = L.geoJson( borough_outlines, {
          style: function(feature){
            return {
                color: "white",
                weight: 1,
                fillColor: 'none',
                fillOpacity: 0 };
            }
        }).addTo(map);
    });

    radiusScale = d3.scale.sqrt().domain([1, 20]).range([20, 40])
    //numbersmellsradiusScale = d3.scale.sqrt().domain([1, 20]).range([0, 20])

    function radius(total_number_smells){
{'fraction_non_alphanumeric': 0.1884961884961885, 'fraction_numerical': 0.02494802494802495, 'mean_word_length': 2.1655701754385963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4532533', 'n_tokens_mistral': 932, 'n_tokens_neox': 847, 'n_words': 176}