<commit_before>(function () {

    // Clickable Accordion headings
    $('.clickable-heading .panel-heading').click(function () {
        var $triggerAnchor = $('a', this);
        $('.collapse', $triggerAnchor.attr('data-parent')).collapse('hide')
        $($triggerAnchor.attr('href')).collapse('show');
    });

    // Clickable table rows
    $('.clickable-rows tr').click(function () {
        window.location = $('a',this).attr('href');
    });

    // Initialize popovers if there are some current tips (actually only with a current ranking request)
    if (currentTips !== null) {
        $('#ranking [data-toggle="popover"]')
            .click(function ($ev) {
                $ev.stopPropagation();
            })
            .popover({ html: true,
                content: function () {
                    var $content = $('<table class="table table-condensed">' +
                        '<thead>' +
                        '<tr><th>Spiel</th><th>Ergebnis</th><th>Tipp</th><th>Punkte</th></tr>' +
                        '</thead><tbody></tbody></table>');
                    var $body = $('tbody', $content);
    
                    var player = $(this).data('player-id');
                    for (id in currentTips) {
                        //noinspection JSUnfilteredForInLoop
                        var m = currentTips[id];
                        var $row = $('<tr></tr>');
                        $('<td></td>').html(m['paarung']).appendTo($row);
                        $('<td class="text-center"></td>').html(m['ergebnis']).appendTo($row);
                        var tipp = '';
                        var punkte = '';
                        var doppelt = false;
                        if (typeof m['tips'][player] !== 'undefined') {
                            tipp = m['tips'][player]['tipp'];
                            punkte = m['tips'][player]['punkte'];<commit_msg>Resolves #62. Just take the previous row.<commit_after>(function () {

    // Clickable Accordion headings
    $('.clickable-heading .panel-heading').click(function () {
        var $triggerAnchor = $('a', this);
        $('.collapse', $triggerAnchor.attr('data-parent')).collapse('hide')
        $($triggerAnchor.attr('href')).collapse('show');
    });

    // Clickable table rows
    $('.clickable-rows tr').click(function () {
        window.location = $('a',this).attr('href') || $('a', this.previousElementSibling).attr('href');
    });

    // Initialize popovers if there are some current tips (actually only with a current ranking request)
    if (currentTips !== null) {
        $('#ranking [data-toggle="popover"]')
            .click(function ($ev) {
                $ev.stopPropagation();
            })
            .popover({ html: true,
                content: function () {
                    var $content = $('<table class="table table-condensed">' +
                        '<thead>' +
                        '<tr><th>Spiel</th><th>Ergebnis</th><th>Tipp</th><th>Punkte</th></tr>' +
                        '</thead><tbody></tbody></table>');
                    var $body = $('tbody', $content);
    
                    var player = $(this).data('player-id');
                    for (id in currentTips) {
                        //noinspection JSUnfilteredForInLoop
                        var m = currentTips[id];
                        var $row = $('<tr></tr>');
                        $('<td></td>').html(m['paarung']).appendTo($row);
                        $('<td class="text-center"></td>').html(m['ergebnis']).appendTo($row);
                        var tipp = '';
                        var punkte = '';
                        var doppelt = false;
                        if (typeof m['tips'][player] !== 'undefined') {
                            tipp = m['tips'][player]['tipp'];
                            punkte = m['tips'][player]['punkte'];
{'fraction_non_alphanumeric': 0.18151390319258495, 'fraction_numerical': 0.0005149330587023687, 'mean_word_length': 1.5728476821192052, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '6311292', 'n_tokens_mistral': 1061, 'n_tokens_neox': 1019, 'n_words': 193}