<commit_before>$(document).ready(function()
{
    $('table td a.btn.btn-danger.btn-xs').click(function()
    {
        var url = $(this).attr('name');
        var tr = $(this).parent().parent().attr('class');
        $.ajax(
        {
            type: "DELETE",
            url: url,
            async: true,
            cache: false,
            success: function()
            {
                $("."+tr).fadeOut(
                        'slow', 
                        function()
                            {
                                $("."+tr).remove();
                            }
                );
            }
        }
        );
    }
    );
}
);<commit_msg>- Updated the delete.js script to take into account the action of removing more than one<commit_after>$(document).ready(function()
{
    $('table td a.btn.btn-danger.btn-xs').click(function()
    {
        var url = $(this).attr('name');
        var tr = $(this).parent().parent().attr('class');
        $.ajax(
        {
            type: "DELETE",
            url: url,
            async: true,
            cache: false,
            success: function( result )
            {
                var text= result;
                $("#status").fadeIn(
                        'slow',
                        function()
                        {
                            $("#status").text(text);
                            $("#status").css("display","block");
                        }
                );
                $("."+tr).fadeOut(
                        'slow', 
                        function()
                            {
                                $("."+tr).remove();
                            }
                );
            },
            statusCode: {
                400: function( result ) {
                    var text= result;
                    $("#status").text(text);
                    $("#status").fadeIn(
                            'slow',
                            function()
                            {
                                $("#status").css("display","block");
                            }
                    );
                }
            }
        }
        );
    }
    );

    $('a.btn.btn-danger.btn-sm').click(function()
    {
        var url = $(this).attr('name');
        var tmp_tr = url.substring(url.indexOf("[")+1,url.indexOf("]"));
        var tmp_tr = tmp_tr.replace(/"/g,'');
        var tr = tmp_tr.split(",");
        $.ajax(
        {
            type: "DELETE",
            url: url,
            async: true,
            cache: false,
            success: function( result )
            {
                var text= result;
                $("#status").fadeIn(
                        'slow',
                        function()
                        {
                            $("#status").text(text);
                            $("#status").css("display","block");
                        }
                );
                for ( var i in tr) {
                    $(".tr"+tr[i]).fadeOut(
                        'slow', 
                        function()
                            {
                                $(".tr"+tr[i]).remove();
                            }
                    );
                }
                
            },
            statusCode: {
                400: function( result ) {
                    var text= result;
                    $("#status").text(text);
                    $("#status").fadeIn(
                            'slow',
                            function()
                            {
                                $("#status").css("display","block");
                            }
                    );
                }
            }
        }
        );
    }
    );
}
);
{'fraction_non_alphanumeric': 0.1416184971098266, 'fraction_numerical': 0.0018392012611665792, 'mean_word_length': 0.6822801590808661, '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': '2010889', 'n_tokens_mistral': 912, 'n_tokens_neox': 856, 'n_words': 140}