<commit_before>function addSearch(id) {
    let searchbar = $('<input>').addClass("searchbar").attr('placeholder', "Search Table...");

    $(searchbar).on("keyup", function(){
        let value = $(this).val().toLowerCase();

        if(value === "") {
            removeSearch(id);
            return;
        }

        $('#'+id +" .table-row").filter(function(){
            $(this).removeClass("search-result");
            if($(this).text().toLowerCase().indexOf(value) > -1){
                $(this).addClass("search-result").show();
            }
        });
        updatePage_help(id, 0, $('#'+id).data('currentPageSize'), true);
    });
    $('#'+id).parent().prepend(searchbar);
}


function addSearchServer(id) {
    let searchbar = $('<input>').addClass("searchbar").attr('placeholder', "Search Table...");

    $(searchbar).on("keyup", function(){
        let value = $(this).val().toLowerCase();

        if(value === "") {
            removeSearch(id);
            return;
        }
        $('#' + id + " .table-row").remove();
        updatePage(id, 0, $('#'+id).data('currentPageSize'),-1, false, value);
    });
    $('#'+id).parent().prepend(searchbar);
}

function removeSearch(id) {
    $('#'+id +" .table-row").removeClass("search-result");
    updatePage_help(id, 0, $('#'+id).data('currentPageSize'));
}<commit_msg>server side search param hotfix<commit_after>function addSearch(id) {
    let searchbar = $('<input>').addClass("searchbar").attr('placeholder', "Search Table...");

    $(searchbar).on("keyup", function(){
        let value = $(this).val().toLowerCase();

        if(value === "") {
            removeSearch(id);
            return;
        }

        $('#'+id +" .table-row").filter(function(){
            $(this).removeClass("search-result");
            if($(this).text().toLowerCase().indexOf(value) > -1){
                $(this).addClass("search-result").show();
            }
        });
        updatePage_help(id, 0, $('#'+id).data('currentPageSize'), true);
    });
    $('#'+id).parent().prepend(searchbar);
}


function addSearchServer(id) {
    let searchbar = $('<input>').addClass("searchbar").attr('placeholder', "Search Table...");

    $(searchbar).on("keyup", function(){
        let value = $(this).val().toLowerCase();

        if(value === "") {
            removeSearch(id);
            return;
        }
        $('#' + id + " .table-row").remove();
        updatePage(id, 0, $('#'+id).data('currentPageSize'),-1, false, $('#'+id).data('params'), value);
    });
    $('#'+id).parent().prepend(searchbar);
}

function removeSearch(id) {
    $('#'+id +" .table-row").removeClass("search-result");
    updatePage_help(id, 0, $('#'+id).data('currentPageSize'));
}

{'fraction_non_alphanumeric': 0.24001465738365702, 'fraction_numerical': 0.003664345914254306, 'mean_word_length': 2.7193460490463215, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '12618', 'n_tokens_mistral': 807, 'n_tokens_neox': 811, 'n_words': 117}