<commit_before>window.initModifyQueryComponent = function(modifyQueryButtonId, querySelectorId) {
    var selectorInitialized = false;
    var selectorVisible = false;

    setTimeout(function() {
        $("#" + modifyQueryButtonId).show();
    }, 2000);

    $("#" + modifyQueryButtonId).click(function() {
        if (!selectorInitialized) {
            window.renderQuerySelector(document.getElementById(querySelectorId));
            selectorInitialized = true;
        }

        // toggle visibility
        selectorVisible = !selectorVisible;

        if (selectorVisible) {
            $("#" + querySelectorId).slideDown();
        }
        else {
            $("#" + querySelectorId).slideUp();
        }
    });
};<commit_msg>We don't want to show download tab in query selector when in modify-query scenario (results page)<commit_after>window.initModifyQueryComponent = function(modifyQueryButtonId, querySelectorId) {
    var selectorInitialized = false;
    var selectorVisible = false;

    setTimeout(function() {
        $("#" + modifyQueryButtonId).show();
    }, 2000);

    $("#" + modifyQueryButtonId).click(function() {
        if (!selectorInitialized) {
            window.renderQuerySelector(document.getElementById(querySelectorId), {showDownloadTab:false});
            selectorInitialized = true;
        }

        // toggle visibility
        selectorVisible = !selectorVisible;

        if (selectorVisible) {
            $("#" + querySelectorId).slideDown();
        }
        else {
            $("#" + querySelectorId).slideUp();
        }
    });
};
{'fraction_non_alphanumeric': 0.12618296529968454, 'fraction_numerical': 0.005047318611987382, 'mean_word_length': 2.6376146788990824, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7140532', 'n_tokens_mistral': 401, 'n_tokens_neox': 400, 'n_words': 70}