<commit_before>{{define "js-map2-streams"}}

function streamVectors() {
    var idspecs = {{.IdSpecs}}
    for (var i in idspecs) {
        var idspec = idspecs[i].idspec
        var url = {{.VectorURLPath}}+'?idspec='+idspec+'&json=1&trackspec='+{{.TrackSpec}}+
            '&'+{{.ColorScheme.QuotedCGIArgs}}
        
        $.getJSON( url, function( data ) {
            $.each( data, function( key, val ) {

                var color = val.color
                if (!color) { color = "#0022ff" }
                var opacity = val.opacity
                var coords = []
                coords.push({lat:val.s.Lat, lng:val.s.Long})
                coords.push({lat:val.e.Lat, lng:val.e.Long})

                var line = new google.maps.Polyline({
                    path: coords,
                    geodesic: true,
                    strokeColor: color,
                    strokeOpacity: opacity,
                    strokeWeight: 1,
                    zIndex: 100
                });

                line.setMap(map)                
            });
        });
    }
}

{{end}}<commit_msg>Treat opacity>1 as being line thickness<commit_after>{{define "js-map2-streams"}}

function streamVectors() {
    var idspecs = {{.IdSpecs}}
    for (var i in idspecs) {
        var idspec = idspecs[i].idspec
        var url = {{.VectorURLPath}}+'?idspec='+idspec+'&json=1&trackspec='+{{.TrackSpec}}+
            '&'+{{.ColorScheme.QuotedCGIArgs}}
        
        $.getJSON( url, function( data ) {
            $.each( data, function( key, val ) {

                var color = val.color
                if (!color) { color = "#0022ff" }
                var opacity = val.opacity
                var coords = []
                coords.push({lat:val.s.Lat, lng:val.s.Long})
                coords.push({lat:val.e.Lat, lng:val.e.Long})

                var weight = 1
                if (opacity > 1) { weight = opacity }
                
                var line = new google.maps.Polyline({
                    path: coords,
                    geodesic: true,
                    strokeColor: color,
                    strokeOpacity: opacity,
                    strokeWeight: weight,
                    zIndex: 100
                });

                line.setMap(map)                
            });
        });
    }
}

{{end}}
{'fraction_non_alphanumeric': 0.1337333904843549, 'fraction_numerical': 0.009429918559794257, 'mean_word_length': 1.2616279069767442, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1436953', 'n_tokens_mistral': 719, 'n_tokens_neox': 660, 'n_words': 136}