<commit_before>
<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="Spectrum Cross Section Analysis Software">

        <title>Spectrum</title>
        <link rel="shortcut icon" href="img/spectrum_64.ico">

        <!-- Lato Font -->
        <link href='//fonts.googleapis.com/css?family=Lato:100,300&subset=latin,latin-ext' rel='stylesheet' type='text/css'>

        <!-- Pure -->
        <!-- <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.5.0/pure-min.css"> -->

        <!-- NOTE: Linking to jsDelivr Instead of Yahoo because Yahoo does not support SSL (HTTPS)-->
        <link rel="stylesheet" href="//cdn.jsdelivr.net/pure/0.5.0/pure-min.css">

        <!--[if lte IE 8]>
            <link rel="stylesheet" href="//cdn.jsdelivr.net/pure/0.5.0/grids-responsive-old-ie-min.css">
        <![endif]-->
        <!--[if gt IE 8]><!-->
            <link rel="stylesheet" href="//cdn.jsdelivr.net/pure/0.5.0/grids-responsive-min.css">
        <!--<![endif]-->

        <!-- Main Stylesheet -->
        <link rel="stylesheet" href="css/style.css">

        <!-- Plot Stylesheet -->
        <link rel="stylesheet" href="css/plot.css">

        <!-- Font Awesome -->
        <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">

        <!-- jQuery -->
        <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

        <!-- Select2 -->
        <link href="select2/select2.css" rel="stylesheet"/>
        <script src="select2/select2.js"></script>

        <!-- Collide Function -->
        <script type="text/javascript">
            function Plot() {

                //Replace the container content with the particle canvas to run the animation each time
                $('#canvas-container').html(function() {
                    canvas = "<canvas id='particle-canvas' width='600px' height='600px'></canvas>";
                    script = "<script type='text/javascript' src='js/protons.js'><\/script>";
                    return canvas + script;
                });

                //Generate a collision
                Collision();

                //Get all the variables from the form
                var steering_v = document.getElementById('steering').value;
                var plot_type_v = $('#plot_type').select2("val");
                var data_steering_v = $('#data_steering').select2("val");
                var data_marker_color_v = $('#data_marker_color').select2("val");
                var data_marker_style_v = $('#data_marker_style').select2("val");
                var grid_steering_v = $('#grid_steering').select2("val");
                var pdf_steering_v = $('#pdf_steering').select2("val");
                var pdf_fill_color_v = $('#pdf_fill_color').select2("val");

                var display_style_v = "";
                var overlay_v = document.getElementById('overlay').checked;
                var ratio_v = document.getElementById('ratio').checked;

                if(overlay_v && ratio_v) {
                    display_style_v = "overlay, ratio";
                } else if(overlay_v) {
                    display_style_v = "overlay";
                } else if(ratio_v) {
                    display_style_v = "ratio";
                } else {
                    display_style_v = "";
                }

                var ratio_styles = "";
                var ratios = "";

                if(plot_type_v == 0) {
                    plot_type_v = "data,grid,pdf";

                    for(var i = 0; i < data_steering_v.length; i++) {
                        if(i == (data_steering_v.length - 1)) {
                            ratio_styles += "convolute / data";
                            ratios += "([grid_" + i + ", pdf_" + 0 + "]) / (data_" + i + ")";
                            break;
                        } else {
                            ratio_styles += "convolute / data:";
                            ratios += "([grid_" + i + ", pdf_" + 0 + "]) / (data_" + i + "):";
                        }
                    }
                }
                else if(plot_type_v == 1) {
                    plot_type_v = "data[],grid[],pdf";

                    for(var i = 0; i < data_steering_v.length; i++) {
                        if(i == (data_steering_v.length - 1)) {
                            ratio_styles += "convolute / data";
                            ratios += "([grid_" + i + ", pdf_" + 0 + "]) / (data_" + i + ")";
                            break;
                        } else {
                            ratio_styles += "convolute / data:";
                            ratios += "([grid_" + i + ", pdf_" + 0 + "]) / (data_" + i + "):";
                        }
                    }
                }
                else if(plot_type_v == 2) {
                    plot_type_v = "data,grid[],pdf";

                    for(var i = 0; i < grid_steering_v.length; i++) {
                        if(i == (grid_steering_v.length - 1)) {
                            ratio_styles += "convolute / data";
                            ratios += "([grid_" + i + ", pdf_" + 0 + "]) / (data_" + 0 + ")";
                            break;
                        } else {
                            ratio_styles += "convolute / data:";
                            ratios += "([grid_" + i + ", pdf_" + 0 + "]) / (data_" + 0 + "):";
                        }
                    }
                }
                else if(plot_type_v == 3) {
                    plot_type_v = "data,grid,pdf[]";

                    for(var i = 0; i < pdf_steering_v.length; i++) {
                        if(i == (pdf_steering_v.length - 1)) {
                            ratio_styles += "convolute / data";
                            ratios += "([grid_" + 0 + ", pdf_" + i + "]) / (data_" + 0 + ")";
                            break;
                        } else {
                            ratio_styles += "convolute / data:";
                            ratios += "([grid_" + 0 + ", pdf_" + i + "]) / (data_" + 0 + "):";
                        }
                    }
                }

                var data_steerings_v = "";
                var data_marker_colors_v = "";
                var data_marker_styles_v = "";

                // if(data_marker_color_v.length != data_steering_v.length) {
                //     alert("Too few data marker colors specified");
                //     return;
                // }
                // if(data_marker_style_v.length != data_steering_v.length) {
                //     alert("Too few data marker styles specified");
                //     return;
                // }

                for(var i = 0; i < data_steering_v.length; i++) {
                    if(i == (data_steering_v.length - 1)) {
                        data_steerings_v += data_steering_v[i];
                        data_marker_colors_v += data_marker_color_v[i];
                        data_marker_styles_v += data_marker_style_v[i];
                        break;
                    } else {
                        data_steerings_v += data_steering_v[i] + ", ";
                        data_marker_colors_v += data_marker_color_v[i] + ", ";
                        data_marker_styles_v += data_marker_style_v[i] + ", ";
                    }
                }

                var grid_steerings_v = "";
                for(var i = 0; i < grid_steering_v.length; i++) {
                    if(i == (grid_steering_v.length - 1)) {
                        grid_steerings_v += grid_steering_v[i];
                        break;
                    } else {
                        grid_steerings_v += grid_steering_v[i] + ", ";
                    }
                }

                var pdf_steerings_v = "";
                var pdf_fill_colors_v = "";

                // if(pdf_fill_color_v.length != pdf_steering_v.length) {
                //     alert("Too few PDF fill colors specified");
                //     return;
                // }

                for(var i = 0; i < pdf_steering_v.length; i++) {
                    if(i == (pdf_steering_v.length - 1)) {
                        pdf_steerings_v += pdf_steering_v[i];
                        pdf_fill_colors_v += pdf_fill_color_v[i];
                        break;
                    } else {
                        pdf_steerings_v += pdf_steering_v[i] + ", ";
                        pdf_full_colors_v += pdf_fill_color_v[i] + ", ";
                    }
                }

                var grid_corr_v = document.getElementById('grid_corr').checked;

                var x_log_v = document.getElementById('x_log').checked;<commit_msg>Not requiring color/style specification<commit_after>
<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="Spectrum Cross Section Analysis Software">

        <title>Spectrum</title>
        <link rel="shortcut icon" href="img/spectrum_64.ico">

        <!-- Lato Font -->
        <link href='//fonts.googleapis.com/css?family=Lato:100,300&subset=latin,latin-ext' rel='stylesheet' type='text/css'>

        <!-- Pure -->
        <!-- <link rel="stylesheet" href="https://yui.yahooapis.com/pure/0.5.0/pure-min.css"> -->

        <!-- NOTE: Linking to jsDelivr Instead of Yahoo because Yahoo does not support SSL (HTTPS)-->
        <link rel="stylesheet" href="//cdn.jsdelivr.net/pure/0.5.0/pure-min.css">

        <!--[if lte IE 8]>
            <link rel="stylesheet" href="//cdn.jsdelivr.net/pure/0.5.0/grids-responsive-old-ie-min.css">
        <![endif]-->
        <!--[if gt IE 8]><!-->
            <link rel="stylesheet" href="//cdn.jsdelivr.net/pure/0.5.0/grids-responsive-min.css">
        <!--<![endif]-->

        <!-- Main Stylesheet -->
        <link rel="stylesheet" href="css/style.css">

        <!-- Plot Stylesheet -->
        <link rel="stylesheet" href="css/plot.css">

        <!-- Font Awesome -->
        <link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">

        <!-- jQuery -->
        <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

        <!-- Select2 -->
        <link href="select2/select2.css" rel="stylesheet"/>
        <script src="select2/select2.js"></script>

        <!-- Collide Function -->
        <script type="text/javascript">
            function Plot() {

                //Replace the container content with the particle canvas to run the animation each time
                $('#canvas-container').html(function() {
                    canvas = "<canvas id='particle-canvas' width='600px' height='600px'></canvas>";
                    script = "<script type='text/javascript' src='js/protons.js'><\/script>";
                    return canvas + script;
                });

                //Generate a collision
                Collision();

                //Get all the variables from the form
                var steering_v = document.getElementById('steering').value;
                var plot_type_v = $('#plot_type').select2("val");
                var data_steering_v = $('#data_steering').select2("val");
                var data_marker_color_v = $('#data_marker_color').select2("val");
                var data_marker_style_v = $('#data_marker_style').select2("val");
                var grid_steering_v = $('#grid_steering').select2("val");
                var pdf_steering_v = $('#pdf_steering').select2("val");
                var pdf_fill_color_v = $('#pdf_fill_color').select2("val");

                var display_style_v = "";
                var overlay_v = document.getElementById('overlay').checked;
                var ratio_v = document.getElementById('ratio').checked;

                if(overlay_v && ratio_v) {
                    display_style_v = "overlay, ratio";
                } else if(overlay_v) {
                    display_style_v = "overlay";
                } else if(ratio_v) {
                    display_style_v = "ratio";
                } else {
                    display_style_v = "";
                }

                var ratio_styles = "";
                var ratios = "";

                if(plot_type_v == 0) {
                    plot_type_v = "data,grid,pdf";

                    for(var i = 0; i < data_steering_v.length; i++) {
                        if(i == (data_steering_v.length - 1)) {
                            ratio_styles += "convolute / data";
                            ratios += "([grid_" + i + ", pdf_" + 0 + "]) / (data_" + i + ")";
                            break;
                        } else {
                            ratio_styles += "convolute / data:";
                            ratios += "([grid_" + i + ", pdf_" + 0 + "]) / (data_" + i + "):";
                        }
                    }
                }
                else if(plot_type_v == 1) {
                    plot_type_v = "data[],grid[],pdf";

                    for(var i = 0; i < data_steering_v.length; i++) {
                        if(i == (data_steering_v.length - 1)) {
                            ratio_styles += "convolute / data";
                            ratios += "([grid_" + i + ", pdf_" + 0 + "]) / (data_" + i + ")";
                            break;
                        } else {
                            ratio_styles += "convolute / data:";
                            ratios += "([grid_" + i + ", pdf_" + 0 + "]) / (data_" + i + "):";
                        }
                    }
                }
                else if(plot_type_v == 2) {
                    plot_type_v = "data,grid[],pdf";

                    for(var i = 0; i < grid_steering_v.length; i++) {
                        if(i == (grid_steering_v.length - 1)) {
                            ratio_styles += "convolute / data";
                            ratios += "([grid_" + i + ", pdf_" + 0 + "]) / (data_" + 0 + ")";
                            break;
                        } else {
                            ratio_styles += "convolute / data:";
                            ratios += "([grid_" + i + ", pdf_" + 0 + "]) / (data_" + 0 + "):";
                        }
                    }
                }
                else if(plot_type_v == 3) {
                    plot_type_v = "data,grid,pdf[]";

                    for(var i = 0; i < pdf_steering_v.length; i++) {
                        if(i == (pdf_steering_v.length - 1)) {
                            ratio_styles += "convolute / data";
                            ratios += "([grid_" + 0 + ", pdf_" + i + "]) / (data_" + 0 + ")";
                            break;
                        } else {
                            ratio_styles += "convolute / data:";
                            ratios += "([grid_" + 0 + ", pdf_" + i + "]) / (data_" + 0 + "):";
                        }
                    }
                }

                var data_steerings_v = "";
                var data_marker_colors_v = "";
                var data_marker_styles_v = "";

                if(data_marker_color_v.length && (data_marker_color_v.length != data_steering_v.length)) {
                    alert("Too few data marker colors specified");
                    return;
                }
                if(data_marker_style_v.length && (data_marker_style_v.length != data_steering_v.length)) {
                    alert("Too few data marker styles specified");
                    return;
                }

                for(var i = 0; i < data_steering_v.length; i++) {
                    if(i == (data_steering_v.length - 1)) {
                        data_steerings_v += data_steering_v[i];

                        if(data_marker_color_v.length) {
                            data_marker_colors_v += data_marker_color_v[i];
                        }

                        if(data_marker_style_v.length) {
                            data_marker_styles_v += data_marker_style_v[i];
                        }

                        break;
                    } else {
                        data_steerings_v += data_steering_v[i] + ", ";

                        if(data_marker_color_v.length) {
                            data_marker_colors_v += data_marker_color_v[i] + ", ";
                        }

                        if(data_marker_style_v.length) {
                            data_marker_styles_v += data_marker_style_v[i] + ", ";
                        }
                    }
                }

                var grid_steerings_v = "";
                for(var i = 0; i < grid_steering_v.length; i++) {
                    if(i == (grid_steering_v.length - 1)) {
                        grid_steerings_v += grid_steering_v[i];
                        break;
                    } else {
                        grid_steerings_v += grid_steering_v[i] + ", ";
                    }
                }

                var pdf_steerings_v = "";
                var pdf_fill_colors_v = "";

                if(pdf_fill_color_v.length && (pdf_fill_color_v.length != pdf_steering_v.length)) {
                    alert("Too few PDF fill colors specified");
                    return;
                }

                for(var i = 0; i < pdf_steering_v.length; i++) {
                    if(i == (pdf_steering_v.length - 1)) {
                        pdf_steerings_v += pdf_steering_v[i];

                        if(pdf_fill_color_v.length) {
                            pdf_fill_colors_v += pdf_fill_color_v[i];
                        }

                        break;
                    } else {
                        pdf_steerings_v += pdf_steering_v[i] + ", ";

                        if(pdf_fill_color_v.length) {
                            pdf_full_colors_v += pdf_fill_color_v[i] + ", ";
                        }
                    }
                }

                var grid_corr_v = document.getElementById('grid_corr').checked;

                var x_log_v = document.getElementById('x_log').checked;
{'fraction_non_alphanumeric': 0.13902692076666848, 'fraction_numerical': 0.00862775077813575, 'mean_word_length': 1.1964499880067163, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 87, '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': '3412014', 'n_tokens_mistral': 5404, 'n_tokens_neox': 4925, 'n_words': 875}