<commit_before>function Progress (_, $, difficultRegionIds, userRole) {
    var params = {
        choroplethType: 'userDash',
        neighborhoodPolygonStyle: {
            color: '#888',
            weight: 2,
            opacity: 0.80,
            fillColor: "#808080",
            fillOpacity: 0.1
        },
        mouseoverStyle: {
            color: "red",
            fillColor: "red",
        },
        mouseoutStyle: {
            color: "#888",
            fillColor: "#808080"
        },
        webpageActivity: "Click_module=UserMap_regionId=",
        singleRegionColor: true,
        zoomControl: true,
        overlayPolygon: true,
        clickData: true,
        mapName: 'map',
        mapStyle: "mapbox.streets",
        accessToken: '<KEY>'
    };
    var streetParams = {
        choroplethType: 'userDash',
        isUserDash: true,
        streetColor: 'rgba(128, 128, 128, 1.0)',
        progress: true,
        progressElement: 'td-total-distance-audited',
        userRole: userRole
    };
    var map;
    var loadPolygons = $.getJSON('/adminapi/neighborhoodCompletionRate');
    var loadAuditedStreets = $.getJSON('/contribution/streets');
    var loadSubmittedLabels = $.getJSON('/userapi/labels');
    var renderPolygons = $.when(loadPolygons).done(function(data) {
        map = Choropleth(_, $, difficultRegionIds, params, data);
    });
    var renderAuditedStreets = $.when(renderPolygons, loadAuditedStreets).done(function(data1, data2) {
        InitializeAuditedStreets(map, streetParams, data2[0]);
    });
    $.when(renderAuditedStreets, loadSubmittedLabels).done(function(data1, data2) {
        InitializeSubmittedLabels(map, streetParams, 'null', LayerController(), data2[0])<commit_msg>Update Progress.js to use additional deferred jquery objects for getJSON requests in Choropleth.js.<commit_after>function Progress (_, $, difficultRegionIds, userRole) {
    var params = {
        choroplethType: 'userDash',
        neighborhoodPolygonStyle: {
            color: '#888',
            weight: 2,
            opacity: 0.80,
            fillColor: "#808080",
            fillOpacity: 0.1
        },
        mouseoverStyle: {
            color: "red",
            fillColor: "red",
        },
        mouseoutStyle: {
            color: "#888",
            fillColor: "#808080"
        },
        webpageActivity: "Click_module=UserMap_regionId=",
        singleRegionColor: true,
        zoomControl: true,
        overlayPolygon: true,
        clickData: true,
        mapName: 'map',
        mapStyle: "mapbox.streets",
        accessToken: '<KEY>'
    };
    var streetParams = {
        choroplethType: 'userDash',
        isUserDash: true,
        streetColor: 'rgba(128, 128, 128, 1.0)',
        progress: true,
        progressElement: 'td-total-distance-audited',
        userRole: userRole
    };
    var map;
    var loadPolygons = $.getJSON('/neighborhoods');
    var loadPolygonRates = $.getJSON('/adminapi/neighborhoodCompletionRate');
    var loadMapParams = $.getJSON('/cityMapParams');
    var loadAuditedStreets = $.getJSON('/contribution/streets');
    var loadSubmittedLabels = $.getJSON('/userapi/labels');
    var renderPolygons = $.when(loadPolygons, loadPolygonRates, loadMapParams).done(function(data1, data2, data3) {
        map = Choropleth(_, $, 'null', params, data1[0], data2[0], data3[0]);
    });
    var renderAuditedStreets = $.when(renderPolygons, loadAuditedStreets).done(function(data1, data2) {
        InitializeAuditedStreets(map, streetParams, data2[0]);
    });
    $.when(renderAuditedStreets, loadSubmittedLabels).done(function(data1, data2) {
        InitializeSubmittedLabels(map, streetParams, 'null', LayerController(), data2[0])
{'fraction_non_alphanumeric': 0.12751677852348994, 'fraction_numerical': 0.025503355704697986, 'mean_word_length': 2.5965250965250966, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4658992', 'n_tokens_mistral': 1173, 'n_tokens_neox': 1107, 'n_words': 217}