<commit_before>$(document).ready(function() {

    // Colapse
    $('.show_children').click(function(){
        $(this).parent().next('.children').css('display', 'inline');
        $(this).parent().find('.show_children').css('display', 'none');
        $(this).parent().find('.hide_children').css('display', 'inline');
    });
    $('.hide_children').click(function() {
        $(this).parent().next('.children').css('display', 'none');
        $(this).parent().find('.show_children').css('display', 'inline');
        $(this).parent().find('.hide_children').css('display', 'none');
    });

    // Select experiments
    var selected_exps = [];
    $('.exp').click(function() {
        var exp_pk = $(this).attr('exp_pk');
        if ($(this).is(':checked')) {
            selected_exps.push(exp_pk);
        } else {
            selected_exps.pop(exp_pk);
        };
        var href = $('#comparison-url').attr('href').split('=')[0];
        $('#comparison-url').attr('href', href+'='+selected_exps);
    });

    // Bold best results
    var cell_values = {};
    var row_selector = $("tr[class^='cls']");
    var cols = ['.cmp-avg', '.cmp-50', '.cmp-100'];
    for (var i=0; i < row_selector.size(); i++) {
        var cls = row_selector[i].classList[0];
        for (j=0; j < cols.length; j++) {
            var val = parseFloat($(row_selector[i]).find(cols[j]).html());
            var key = cls + cols[j];
            if (key in cell_values) {
                cell_values[key].push(val);
            } else {
                cell_values[key] = [val];
            };
        };
    };

    for (var i=0; i < row_selector.size(); i++) {
        var cls = row_selector[i].classList[0];
        for (j=0; j < cols.length; j++) {
            var cell = $(row_selector[i]).find(cols[j]);
            var val = parseFloat(cell.html());
            var key = cls + cols[j];
            if (val === Math.min.apply(Math, cell_values[key])) {
                $(cell).css("font-weight","bold");
            };
        };
    };<commit_msg>Bold results even if they are not complete<commit_after>$(document).ready(function() {

    // Colapse
    $('.show_children').click(function(){
        $(this).parent().next('.children').css('display', 'inline');
        $(this).parent().find('.show_children').css('display', 'none');
        $(this).parent().find('.hide_children').css('display', 'inline');
    });
    $('.hide_children').click(function() {
        $(this).parent().next('.children').css('display', 'none');
        $(this).parent().find('.show_children').css('display', 'inline');
        $(this).parent().find('.hide_children').css('display', 'none');
    });

    // Select experiments
    var selected_exps = [];
    $('.exp').click(function() {
        var exp_pk = $(this).attr('exp_pk');
        if ($(this).is(':checked')) {
            selected_exps.push(exp_pk);
        } else {
            selected_exps.pop(exp_pk);
        };
        var href = $('#comparison-url').attr('href').split('=')[0];
        $('#comparison-url').attr('href', href+'='+selected_exps);
    });

    // Bold best results
    var cell_values = {};
    var row_selector = $("tr[class^='cls']");
    var cols = ['.cmp-avg', '.cmp-50', '.cmp-100'];
    for (var i=0; i < row_selector.size(); i++) {
        var cls = row_selector[i].classList[0];
        for (j=0; j < cols.length; j++) {
            var val = parseFloat($(row_selector[i]).find(cols[j]).html().replace('&gt;', ''));
            var key = cls + cols[j];
            if (key in cell_values) {
                cell_values[key].push(val);
            } else {
                cell_values[key] = [val];
            };
        };
    };

    for (var i=0; i < row_selector.size(); i++) {
        var cls = row_selector[i].classList[0];
        for (j=0; j < cols.length; j++) {
            var cell = $(row_selector[i]).find(cols[j]);
            var val = parseFloat(cell.html().replace('&gt;', ''));
            var key = cls + cols[j];
            if (val === Math.min.apply(Math, cell_values[key])) {
                $(cell).css("font-weight","bold");
            };
        };
    };
{'fraction_non_alphanumeric': 0.22614158009180962, 'fraction_numerical': 0.005798502053636144, 'mean_word_length': 2.2598425196850394, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2212195', 'n_tokens_mistral': 1307, 'n_tokens_neox': 1294, 'n_words': 217}