<commit_before>//Last updated in March 2017
//Leaflet map

var radius = d3.scale.sqrt().domain([1, 20]).range([10, 15])
var smell_colors = d3.scale.category20();

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

var boroughToMoh;
var borough_outlines;
var leaflet_json = null
/*
 * processes one jason at a time and saves in the variables above. 
 *after getting all three jsons, calls makeFilterMap().
 */
function initMap() {
    $.getJSON("data/moh_smell_category_borough_json.json",function(boroughToMohFromServer){
        boroughToMoh = boroughToMohFromServer;
        $.getJSON("data/london_districts_latlong_with_centroids.json",function(borough_outlines_data){
            borough_outlines = borough_outlines_data;
            $.getJSON("data/leaflet_markers.json", function(raw_data){
                leaflet_json = raw_data;
                makeFilteredMap();                
            });
        });
    });
}<commit_msg>main.js comment<commit_after>//Last updated in March 2017
//Leaflet map

var radius = d3.scale.sqrt().domain([1, 20]).range([10, 15])
//colour in the right section
var smell_colors = d3.scale.category20();

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

var boroughToMoh;
var borough_outlines;
var leaflet_json = null
/*
 * processes one jason at a time and saves in the variables above. 
 *after getting all three jsons, calls makeFilterMap().
 */
function initMap() {
    $.getJSON("data/moh_smell_category_borough_json.json",function(boroughToMohFromServer){
        boroughToMoh = boroughToMohFromServer;
        $.getJSON("data/london_districts_latlong_with_centroids.json",function(borough_outlines_data){
            borough_outlines = borough_outlines_data;
            $.getJSON("data/leaflet_markers.json", function(raw_data){
                leaflet_json = raw_data;
                makeFilteredMap();                
            });
        });
    });
}
{'fraction_non_alphanumeric': 0.11427094105480869, 'fraction_numerical': 0.01964839710444674, 'mean_word_length': 3.2809734513274336, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1535370', 'n_tokens_mistral': 632, 'n_tokens_neox': 577, 'n_words': 126}