<commit_before>var hrefPrint = "";


$(document).ready(function(){
    $("a, button").tooltip( {
        "placement" : "bottom"
    });
           
    $("#company-list").dataTable ({
        sDom: "<'row'<'span6'l><'span6'f>r>t<'row'<'span6'i><'span6'p>>",
        "sPaginationType": "bootstrap"
    }); 
            
    $.extend( $.fn.dataTableExt.oStdClasses, {
        "sWrapper": "dataTables_wrapper form-inline"
    });
            
    $(".companyDetails").click(function(){
        var id = $(this).data("company");
                
        if($("#details" + id).length == 0)
        {
            $.ajax({
                url: "details/" + id,
                type: "GET",
                success: function(data) { 
                    $("#companyInfo").append(data);
                    showModal(id);
                    return;
                }
            });     
        }
                
        showModal(id);
    });
    
    $(".companyPrintFilter").click(function(){
        hrefPrint = $(this).data("href");
           
        $("#companyPrintFilter").modal({
            show: true
        })
        
    });
    
    $(".companyPrintFilterPrint").click(function(){
        var ids = ["#cpf-category", "#cpf-chiefs", "#cpf-classes", "#cpf-capacity"];
        var hrefAppend = "?values="
        var values = "";
        
        $.each(ids, function(index, value) {
            if($(value).prop("checked"))
            {
                values = values + $(value).data("v") + ",";
            }
        });
       
        if(values != "" && values != undefined)
        {
            var hrefFull = hrefPrint + hrefAppend + values;
        }
        else
        {
            var hrefFull = hrefPrint;
        }
        
        window.open(hrefFull);
        
        $("#companyPrintFilter").modal('hide');
    });
});
        
function showModal(id)
{
    $("#details" + id).modal({
        show: true
    })
}

<commit_msg>datatables now saves configuration<commit_after>var hrefPrint = "";


$(document).ready(function(){
    $("a, button").tooltip( {
        "placement" : "bottom"
    });
           
    $("#company-list").dataTable ({
        "sDom": "<'row'<'span6'l><'span6'f>r>t<'row'<'span6'i><'span6'p>>",
        "sPaginationType": "bootstrap",
        "bStateSave": true
    }); 
            
    $.extend( $.fn.dataTableExt.oStdClasses, {
        "sWrapper": "dataTables_wrapper form-inline"
    });
            
    $(".companyDetails").click(function(){
        var id = $(this).data("company");
                
        if($("#details" + id).length == 0)
        {
            $.ajax({
                url: "details/" + id,
                type: "GET",
                success: function(data) { 
                    $("#companyInfo").append(data);
                    showModal(id);
                    return;
                }
            });     
        }
                
        showModal(id);
    });
    
    $(".companyPrintFilter").click(function(){
        hrefPrint = $(this).data("href");
           
        $("#companyPrintFilter").modal({
            show: true
        })
        
    });
    
    $(".companyPrintFilterPrint").click(function(){
        var ids = ["#cpf-category", "#cpf-chiefs", "#cpf-classes", "#cpf-capacity"];
        var hrefAppend = "?values="
        var values = "";
        
        $.each(ids, function(index, value) {
            if($(value).prop("checked"))
            {
                values = values + $(value).data("v") + ",";
            }
        });
       
        if(values != "" && values != undefined)
        {
            var hrefFull = hrefPrint + hrefAppend + values;
        }
        else
        {
            var hrefFull = hrefPrint;
        }
        
        window.open(hrefFull);
        
        $("#companyPrintFilter").modal('hide');
    });
});
        
function showModal(id)
{
    $("#details" + id).modal({
        show: true
    })
}


{'fraction_non_alphanumeric': 0.17764319959626546, 'fraction_numerical': 0.0025233409033560434, 'mean_word_length': 1.390832328106152, 'pattern_counts': {'":': 6, '<': 15, '<?xml version=': 0, '>': 15, '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': '6167779', 'n_tokens_mistral': 1127, 'n_tokens_neox': 1119, 'n_words': 167}