<commit_before>{% from "_formhelpers.html" import render_field %}
{% extends "base.html" %}
{% block title %}Results{% endblock %}
{% block head %}
    {{ super() }}
    <link type="text/css" href="{{url_for('static', filename='css/smoothness/jquery-ui-1.8.16.custom.css')}}" rel="Stylesheet" />
    <link type="text/css" href="{{url_for('static', filename='css/demo_table_jui.css')}}" rel="Stylesheet" />
    <script src="{{url_for('static', filename='js/jquery.dataTables.min.js')}}" type="text/javascript"></script>
    <script src="{{url_for('static', filename='js/FixedHeader.js')}}" type="text/javascript"></script>
    <script src="{{url_for('static', filename='js/jquery-ui-1.8.16.custom.min.js')}}" type="text/javascript"></script>
    <script src="{{url_for('static', filename='js/jquery.hotkeys.js')}}" type="text/javascript"></script>
        
    <script type="text/javascript">
        $(document).ready(function(){
            jQuery.fn.dataTableExt.oSort['anchor-numeric-asc']  = function(x,y) {
                fx = parseFloat($(x).html());
                fy = parseFloat($(y).html());
                if (isNaN(fx)) fx = 0;
                if (isNaN(fy)) fy = 0;
                return ((fx < fy) ? -1 : ((fx > fy) ?  1 : 0));
            };
            jQuery.fn.dataTableExt.oSort['anchor-numeric-desc'] = function(x,y) {
                fx = parseFloat($(x).html());
                fy = parseFloat($(y).html());
                if (isNaN(fx)) fx = 0;
                if (isNaN(fy)) fy = 0;
                return ((fx < fy) ?  1 : ((fx > fy) ? -1 : 0));
            };

			//$('#toggle_sorting').click(function() {
	            var oTable = $('#table_results').dataTable({
	                "bPaginate": false,
	                "bLengthChange": false,
                    "bStateSave": true,
	                "bFilter": true,
                    "bJQueryUI": true,
	                "oLanguage": {
	                    "sZeroRecords": "No matching results"
	                },
	                "aoColumns": [null, {"sType": "anchor-numeric"}, {% for i in range(1, solver_configs|length + 1) %} {"sType": "anchor-numeric"},{% endfor %}]
	            });
                $('#toggle_sorting').hide();
	            var fixed_header = new FixedHeader(oTable);
	            fixed_header.fnUpdate();
			//});
			
            {% include '/analysis/multiple_instances_filter_js.html' %}

            $('#optional_instance_filter').hide();
            
            $('#toggle_instance_filter').click(function() {
                $('#optional_instance_filter').toggle();
                fixed_header.fnUpdate();
                return false;
            });

            fixed_header.fnUpdate();
        });
    </script>
{% endblock %}
{% block content %}
    <div class="navigation">
        » <a href="{{url_for('frontend.experiments_index', database=database)}}">Experiments</a> ::
        <a href="{{url_for('frontend.experiment', database=database, experiment_id=experiment.idExperiment)}}">{{experiment.name}}</a> ::
        Results
    </div>
    <h2>Results by solver configuration and instance</h2>
    <div>
        {% if experiment.get_max_num_runs(db) > 1 %}
        In this table multiple runs of a solver on an instance are grouped in one cell. If there's only run only that single run is displayed.
        {% endif %}
        <form method="get" action="{{ url_for('frontend.experiment_results', database=database, experiment_id=experiment.idExperiment) }}">
            <table id="form_table">
            {{ render_field(form.cost) }}
            {{ render_field(form.display_measure) }}
            {{ render_field(form.solver_configs, size=10) }}
            {{ render_field(form.calculate_dispersion, explanation="(Coefficient of variation, Quartile coefficient of dispersion)") }}<commit_msg>ctrl-a for solver configs box<commit_after>{% from "_formhelpers.html" import render_field %}
{% extends "base.html" %}
{% block title %}Results{% endblock %}
{% block head %}
    {{ super() }}
    <link type="text/css" href="{{url_for('static', filename='css/smoothness/jquery-ui-1.8.16.custom.css')}}" rel="Stylesheet" />
    <link type="text/css" href="{{url_for('static', filename='css/demo_table_jui.css')}}" rel="Stylesheet" />
    <script src="{{url_for('static', filename='js/jquery.dataTables.min.js')}}" type="text/javascript"></script>
    <script src="{{url_for('static', filename='js/FixedHeader.js')}}" type="text/javascript"></script>
    <script src="{{url_for('static', filename='js/jquery-ui-1.8.16.custom.min.js')}}" type="text/javascript"></script>
    <script src="{{url_for('static', filename='js/jquery.hotkeys.js')}}" type="text/javascript"></script>
        
    <script type="text/javascript">
        $(document).ready(function(){
            jQuery.fn.dataTableExt.oSort['anchor-numeric-asc']  = function(x,y) {
                fx = parseFloat($(x).html());
                fy = parseFloat($(y).html());
                if (isNaN(fx)) fx = 0;
                if (isNaN(fy)) fy = 0;
                return ((fx < fy) ? -1 : ((fx > fy) ?  1 : 0));
            };
            jQuery.fn.dataTableExt.oSort['anchor-numeric-desc'] = function(x,y) {
                fx = parseFloat($(x).html());
                fy = parseFloat($(y).html());
                if (isNaN(fx)) fx = 0;
                if (isNaN(fy)) fy = 0;
                return ((fx < fy) ?  1 : ((fx > fy) ? -1 : 0));
            };

			//$('#toggle_sorting').click(function() {
	            var oTable = $('#table_results').dataTable({
	                "bPaginate": false,
	                "bLengthChange": false,
                    "bStateSave": true,
	                "bFilter": true,
                    "bJQueryUI": true,
	                "oLanguage": {
	                    "sZeroRecords": "No matching results"
	                },
	                "aoColumns": [null, {"sType": "anchor-numeric"}, {% for i in range(1, solver_configs|length + 1) %} {"sType": "anchor-numeric"},{% endfor %}]
	            });
                $('#toggle_sorting').hide();
	            var fixed_header = new FixedHeader(oTable);
	            fixed_header.fnUpdate();
			//});
			
            {% include '/analysis/multiple_instances_filter_js.html' %}

            $('#optional_instance_filter').hide();
            
            $('#toggle_instance_filter').click(function() {
                $('#optional_instance_filter').toggle();
                fixed_header.fnUpdate();
                return false;
            });

            fixed_header.fnUpdate();

            $.ctrl('A', function() {
                $('#solver_configs option').attr("selected", "selected");
                return false;
            });
        });
    </script>
{% endblock %}
{% block content %}
    <div class="navigation">
        » <a href="{{url_for('frontend.experiments_index', database=database)}}">Experiments</a> ::
        <a href="{{url_for('frontend.experiment', database=database, experiment_id=experiment.idExperiment)}}">{{experiment.name}}</a> ::
        Results
    </div>
    <h2>Results by solver configuration and instance</h2>
    <div>
        {% if experiment.get_max_num_runs(db) > 1 %}
        In this table multiple runs of a solver on an instance are grouped in one cell. If there's only run only that single run is displayed.
        {% endif %}
        <form method="get" action="{{ url_for('frontend.experiment_results', database=database, experiment_id=experiment.idExperiment) }}">
            <table id="form_table">
            {{ render_field(form.cost) }}
            {{ render_field(form.display_measure) }}
            {{ render_field(form.solver_configs, size=10) }}
            {{ render_field(form.calculate_dispersion, explanation="(Coefficient of variation, Quartile coefficient of dispersion)") }}
{'fraction_non_alphanumeric': 0.17706468933776529, 'fraction_numerical': 0.0063922270519048835, 'mean_word_length': 2.3148305084745764, 'pattern_counts': {'":': 20, '<': 53, '<?xml version=': 0, '>': 55, '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': '1545539', 'n_tokens_mistral': 2417, 'n_tokens_neox': 2245, 'n_words': 425}