<commit_before>// This js work is based on:
// Copyright (c) 2014, <NAME> and contributors. See AUTHORS
// for more details.
//

var AdminActions = function() {

    var chkAllFlag = true;

    this.execute_multiple = function(name, confirmation) {
        var selected = $('input.action_check:checked').size();

        if (selected == 0) {
            alert('No row selected');
            return false;
        }

        if (!!confirmation) {
            $('#modal-confirm').modal('show');
            if (!confirm(confirmation)) {
                return false;
            }
        }

        // Update hidden form and submit it
        var form = $('#action_form');
        $('#action', form).val(name);

        $('input.action_check', form).remove();
        $('input.action_check:checked').each(function() {
            form.append($(this).clone());
        });

        form.submit();

        return false;
    };

    this.execute_single = function(url, confirmation) {
        if (!!confirmation) {
            if (!confirm(confirmation)) {
                return false;
            }
        }

        window.location.href = url;<commit_msg>Yes and no delete confirmation with bd modal<commit_after>// This js work is based on:
// Copyright (c) 2014, <NAME> and contributors. See AUTHORS
// for more details.
//

var AdminActions = function() {

    var chkAllFlag = true;

    this.execute_multiple = function(name, confirmation) {
        var selected = $('input.action_check:checked').size();

        if (selected == 0) {
            alert('No row selected');
            return false;
        }

        if (!!confirmation) {
            if (!confirm(confirmation)) {
                return false;
            }
        }

        // Update hidden form and submit it
        var form = $('#action_form');
        $('#action', form).val(name);

        $('input.action_check', form).remove();
        $('input.action_check:checked').each(function() {
            form.append($(this).clone());
        });

        form.submit();

        return false;
    };

    this.execute_single = function(url, confirmation) {
        if (!!confirmation) {
            if (!confirm(confirmation)) {
                return false;
            }
        }

        window.location.href = url;
{'fraction_non_alphanumeric': 0.1422976501305483, 'fraction_numerical': 0.004351610095735422, 'mean_word_length': 1.813953488372093, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '249603', 'n_tokens_mistral': 636, 'n_tokens_neox': 601, 'n_words': 153}