<commit_before>jQuery(document).ready(function($) {

    function adminButtons(options, context) {
        // Disable the bulk action submit button if there is an empty query in the facetview
        if ($.isEmptyObject(options.active_filters) && options.q == '') {
            $('#bulk-submit').attr('disabled', 'disabled');
        } else {
            $('#bulk-submit').removeAttr('disabled');
        }
    }

    function adminJAPostRender(options, context) {
        doajJAPostRender(options, context);

        var query = elasticSearchQuery({
            options: options,
            include_facets: false,
            include_fields: false
        });

        ////////////////////////////////////////////////////////////
        // functions for handling the bulk form

        function build_affected_msg(data) {
            var mfrg = undefined;
            if (data.affected_journals && data.affected_articles) {
                mfrg = data.affected_journals + " journals and " + data.affected_articles + " articles"
            }
            else if (data.affected_journals) {
                mfrg = data.affected_journals + " journals"
            }
            else if (data.affected_articles) {
                mfrg = data.affected_journals + " articles"
            }
            else {
                mfrg = "an unknown number of records"<commit_msg>Fixed a copy/paste bug in the bulk UI<commit_after>jQuery(document).ready(function($) {

    function adminButtons(options, context) {
        // Disable the bulk action submit button if there is an empty query in the facetview
        if ($.isEmptyObject(options.active_filters) && options.q == '') {
            $('#bulk-submit').attr('disabled', 'disabled');
        } else {
            $('#bulk-submit').removeAttr('disabled');
        }
    }

    function adminJAPostRender(options, context) {
        doajJAPostRender(options, context);

        var query = elasticSearchQuery({
            options: options,
            include_facets: false,
            include_fields: false
        });

        ////////////////////////////////////////////////////////////
        // functions for handling the bulk form

        function build_affected_msg(data) {
            var mfrg = undefined;
            if (data.affected_journals && data.affected_articles) {
                mfrg = data.affected_journals + " journals and " + data.affected_articles + " articles"
            }
            else if (data.affected_journals) {
                mfrg = data.affected_journals + " journals"
            }
            else if (data.affected_articles) {
                mfrg = data.affected_articles + " articles"
            }
            else {
                mfrg = "an unknown number of records"
{'fraction_non_alphanumeric': 0.1399132321041215, 'fraction_numerical': 0.0, 'mean_word_length': 1.6631376323387872, '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': '6723547', 'n_tokens_mistral': 741, 'n_tokens_neox': 667, 'n_words': 164}