<commit_before>function showEdit(obj, show) {
    parent = $(obj).parents('tr');
    if (show) {
        other = parent.next();
    } else {
        other = parent.prev();
        // reset the form fields
        parent.find('input[type=text], input[type=file], textarea').each(function() {
            this.value = this.defaultValue;
        });
        parent.find('input[type=checkbox], input[type=radio]').each(function() {
            this.checked = this.defaultChecked;
        });
    }
    parent.hide(); other.show();
    return false;
}

function toggleDelete(obj) {
    obj = $(obj);
    obj.next().val('checked');
    $("#labels form:last").submit();
    $("#labels form:last input[type=submit]:eq(0)").click();
    return false;
}

function bulkAction() {
    action = $("#bulk_action_selector").val();
    if (action == 'edit') {
        // show the bulk edit window
       $("#massedit").show();
    } else if (action) {
        $("#bulk_action").val(action);
        $("#labels form:eq(1)").submit();
    } else {<commit_msg>submission was broken on Manage Sources<commit_after>function showEdit(obj, show) {
    parent = $(obj).parents('tr');
    if (show) {
        other = parent.next();
    } else {
        other = parent.prev();
        // reset the form fields
        parent.find('input[type=text], input[type=file], textarea').each(function() {
            this.value = this.defaultValue;
        });
        parent.find('input[type=checkbox], input[type=radio]').each(function() {
            this.checked = this.defaultChecked;
        });
    }
    parent.hide(); other.show();
    return false;
}

function bulkSubmit() {
    $("#labels form:last").submit();
    $("#labels form:last button[type=submit]:eq(0)").click();
    $("#labels form:last input[type=submit]:eq(0)").click();
}

function toggleDelete(obj) {
    obj = $(obj);
    obj.next().val('checked');
    bulkSubmit();
    return false;
}

function bulkAction() {
    action = $("#bulk_action_selector").val();
    if (action == 'edit') {
        // show the bulk edit window
       $("#massedit").show();
    } else if (action) {
        $("#bulk_action").val(action);
        bulkSubmit();
    } else {
{'fraction_non_alphanumeric': 0.19134396355353075, 'fraction_numerical': 0.0018223234624145787, 'mean_word_length': 2.696969696969697, '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': '4190382', 'n_tokens_mistral': 655, 'n_tokens_neox': 665, 'n_words': 132}