<commit_before>var onRemoveButtonClick = function()
{        
    return $(this).parent().parent().parent().remove();
};

$(document).ready(function()
{

    $(".navbar-form").on("submit", function()
    {
        var uriOrLabel = $(this).find("input[name=label]").val();
        if (uriOrLabel.indexOf("http://") === 0 || uriOrLabel.indexOf("https://") === 0)
        {
            $(this).attr("action", "");
            $(this).find("input[name=label]").attr("name", "uri");
        }
        
        return true;
    });
    
    $(".btn-delete").on("click", function() // prompt on DELETE
    {        
        return confirm('Are you sure?');
    });

    $(".btn-remove").on("click", onRemoveButtonClick);

    $("div.btn-group:has(div.btn.dropdown-toggle)").on("click", function()
    {
        $(this).toggleClass("open");
        
        return true;
    });

    $(".btn-add").on("click", function()
    {
        var clone = $(this).parent().parent().clone(true, true);
        var uuid = "uuid" + generateUUID();
        var input = clone.find("input[name='ou'],input[name='ob'],input[name='ol']");
        input.attr("id", uuid);
        input.val("");
        clone.find("label").attr("for", uuid);
        return $(this).parent().parent().after(clone);
    });

});<commit_msg>jQuery selector fix<commit_after>var onRemoveButtonClick = function()
{        
    return $(this).parent().parent().parent().remove();
};

$(document).ready(function()
{

    $(".navbar-form").on("submit", function()
    {
        var uriOrLabel = $(this).find("input[name=label]").val();
        if (uriOrLabel.indexOf("http://") === 0 || uriOrLabel.indexOf("https://") === 0)
        {
            $(this).attr("action", "");
            $(this).find("input[name=label]").attr("name", "uri");
        }
        
        return true;
    });
    
    $(".btn-delete").on("click", function() // prompt on DELETE
    {        
        return confirm('Are you sure?');
    });

    $(".btn-remove").on("click", onRemoveButtonClick);

    $(".btn-group:has(.btn.dropdown-toggle)").on("click", function()
    {
        $(this).toggleClass("open");
        
        return true;
    });

    $(".btn-add").on("click", function()
    {
        var clone = $(this).parent().parent().clone(true, true);
        var uuid = "uuid" + generateUUID();
        var input = clone.find("input[name='ou'],input[name='ob'],input[name='ol']");
        input.attr("id", uuid);
        input.val("");
        clone.find("label").attr("for", uuid);
        return $(this).parent().parent().after(clone);
    });

});
{'fraction_non_alphanumeric': 0.23706563706563707, 'fraction_numerical': 0.0015444015444015444, 'mean_word_length': 2.4500665778961386, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5932844', 'n_tokens_mistral': 792, 'n_tokens_neox': 788, 'n_words': 116}