<commit_before>/* Draw GeoJSON

Iterates through the latitude and longitude values, converts the values to XYZ coordinates, and draws the geoJSON geometries.

*/

var x_values = [];
var y_values = [];
var z_values = [];

function drawThreeGeo(json, radius, shape, options) {
    
    var json_geom = createGeometryArray(json); //An array to hold the feature geometries.
    var convertCoordinates = getConversionFunctionName(shape); //Whether you want to convert to spherical or planar coordinates.
    var coordinate_array = []; //Re-usable array to hold coordinate values. This is necessary so that you can add 
                               //interpolated coordinates. Otherwise, lines go through the sphere instead of wrapping around.
    
    for (var geom_num = 0; geom_num < json_geom.length; geom_num++) {
                
        if (json_geom[geom_num].type == 'Point') {
            convertCoordinates(json_geom[geom_num].coordinates, radius);            
            drawParticle(y_values[0], z_values[0], x_values[0], options);
            
        } else if (json_geom[geom_num].type == 'MultiPoint') {
            for (var point_num = 0; point_num < json_geom[geom_num].coordinates.length; point_num++) {
                convertCoordinates(json_geom[geom_num].coordinates[point_num], radius);           
                drawParticle(y_values[0], z_values[0], x_values[0], options);                
            }
            
        } else if (json_geom[geom_num].type == 'LineString') {            
            coordinate_array = createCoordinateArray(json_geom[geom_num].coordinates);
            
            for (var point_num = 0; point_num < coordinate_array.length; point_num++) {
                convertCoordinates(coordinate_array[point_num], radius); 
            }             
            drawLine(y_values, z_values, x_values, options);
            
        } else if (json_geom[geom_num].type == 'Polygon') {                        <commit_msg>Shortened longest couple of lines.<commit_after>/* Draw GeoJSON

Iterates through the latitude and longitude values, converts the values to XYZ coordinates, 
and draws the geoJSON geometries.

*/

var x_values = [];
var y_values = [];
var z_values = [];

function drawThreeGeo(json, radius, shape, options) {
    
    var json_geom = createGeometryArray(json); 
    //An array to hold the feature geometries.
    var convertCoordinates = getConversionFunctionName(shape); 
    //Whether you want to convert to spherical or planar coordinates.
    var coordinate_array = []; 
    //Re-usable array to hold coordinate values. This is necessary so that you can add 
    //interpolated coordinates. Otherwise, lines go through the sphere instead of wrapping around.
    
    for (var geom_num = 0; geom_num < json_geom.length; geom_num++) {
                
        if (json_geom[geom_num].type == 'Point') {
            convertCoordinates(json_geom[geom_num].coordinates, radius);            
            drawParticle(y_values[0], z_values[0], x_values[0], options);
            
        } else if (json_geom[geom_num].type == 'MultiPoint') {
            for (var point_num = 0; point_num < json_geom[geom_num].coordinates.length; point_num++) {
                convertCoordinates(json_geom[geom_num].coordinates[point_num], radius);           
                drawParticle(y_values[0], z_values[0], x_values[0], options);                
            }
            
        } else if (json_geom[geom_num].type == 'LineString') {            
            coordinate_array = createCoordinateArray(json_geom[geom_num].coordinates);
            
            for (var point_num = 0; point_num < coordinate_array.length; point_num++) {
                convertCoordinates(coordinate_array[point_num], radius); 
            }             
            drawLine(y_values, z_values, x_values, options);
            
        } else if (json_geom[geom_num].type == 'Polygon') {                        
{'fraction_non_alphanumeric': 0.09727134916624558, 'fraction_numerical': 0.004547751389590703, 'mean_word_length': 2.3296888141295207, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3263247', 'n_tokens_mistral': 1146, 'n_tokens_neox': 1086, 'n_words': 282}