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

    // Expand / Collapse

    $('.panel-head h4').bind("click", function () {
        $(this).parent().next('.panel-body').slideToggle(400).removeClass("hide");
        $("i", this).toggleClass("fa-caret-down fa-caret-right");
        return false;
    });

    $('.expander').bind("click", function () {
        $(this).next('.collapsible').slideToggle(400).removeClass("hide");
        $("i", this).toggleClass("fa-caret-down fa-caret-right");
        $(".expander ~ span.info").toggleClass("hide show");
        return false;
    });

    $('button.options').bind("click", function () {
        var txt = $(".search-box").is(':visible') ? 'Show' : 'Hide';
        $('.search-box').slideToggle(400);
        $('#showhide').text(txt);
        // toggle extra-margin class to remove blank space when collapsing
        // the search box
        // $('#search-results-box').toggleClass("extra-margin");
        return false;
    });

    // Printing search results
    $('#printme').bind("click", function () {
        // Trigger reload with minimal pagination for printing
        /*var separator = '?';
        if (document.URL.includes("?")) {
            separator = '&';
        }
        if (document.URL.includes("#")) {
            new_url = document.URL.split("#");
            document.location.href = new_url[0] + separator + 'printme=1#' + new_url[1]; // Safe as if URL includes split, we have at least 2 elements.
        } else {
            document.location.href = document.URL + separator + 'printme=1'
        }*/

        $('#search_form').submit();<commit_msg>Fixing print button<commit_after>$(document).ready(function () {

    // Expand / Collapse

    $('.panel-head h4').bind("click", function () {
        $(this).parent().next('.panel-body').slideToggle(400).removeClass("hide");
        $("i", this).toggleClass("fa-caret-down fa-caret-right");
        return false;
    });

    $('.expander').bind("click", function () {
        $(this).next('.collapsible').slideToggle(400).removeClass("hide");
        $("i", this).toggleClass("fa-caret-down fa-caret-right");
        $(".expander ~ span.info").toggleClass("hide show");
        return false;
    });

    $('button.options').bind("click", function () {
        var txt = $(".search-box").is(':visible') ? 'Show' : 'Hide';
        $('.search-box').slideToggle(400);
        $('#showhide').text(txt);
        // toggle extra-margin class to remove blank space when collapsing
        // the search box
        // $('#search-results-box').toggleClass("extra-margin");
        return false;
    });

    // Printing search results
    $('#printme').bind("click", function () {
        // Trigger reload with minimal pagination for printing
        var separator = '?';
        if (document.URL.includes("?")) {
            separator = '&';
        }
        if (document.URL.includes("#")) {
            new_url = document.URL.split("#");
            document.location.href = new_url[0] + separator + 'printme=1#' + new_url[1]; // Safe as if URL includes split, we have at least 2 elements.
        } else {
            document.location.href = document.URL + separator + 'printme=1'
        }
{'fraction_non_alphanumeric': 0.195712954333644, 'fraction_numerical': 0.009319664492078284, 'mean_word_length': 2.4401709401709404, 'pattern_counts': {'":': 0, '<': 3, '<?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': '214621', 'n_tokens_mistral': 948, 'n_tokens_neox': 915, 'n_words': 182}