<commit_before>hqDefine("scheduling/js/broadcasts_list.js", function() {
    $(function() {
        var immediate_table,
            scheduled_table,
            list_broadcasts_url = hqImport("hqwebapp/js/urllib.js").reverse("new_list_broadcasts"),
            loader_src = hqImport("hqwebapp/js/initial_page_data.js").get("loader_src");

        scheduled_table = $("#scheduled-table").dataTable({
            "lengthChange": false,
            "filter": false,
            "sort": false,
            "displayLength": 5,
            "processing": true,
            "serverSide": true,
            "ajaxSource": list_broadcasts_url,
            "fnServerParams": function(aoData) {
                aoData.push({"name": "action", "value": "list_scheduled"});
            },
            "sDom": "rtp",
            "language": {
                "emptyTable": gettext('There are no messages to display.'),
                "infoEmpty": gettext('There are no messages to display.'),
                "lengthMenu": gettext('Show _MENU_ messages per page'),
                "processing": '<img src="' + loader_src + '" /> ' + gettext('Loading messages...'),
                "info": gettext('Showing _START_ to _END_ of _TOTAL_ broadcasts'),
                "infoFiltered": gettext('(filtered from _MAX_ total broadcasts)'),
            },
            "columnDefs": [
                {
                    "targets": [0],
                    "render": function() {
                        // TODO construct this from ID
                        return 'Delete button';
                    },
                },
                {
                    "targets": [1],
                    "render": function(data) {
                        // TODO link this to the view
                        return data;
                    },
                },
                {
                    "targets": [3],
                    "render": function(data) {
                        return data ? gettext("Active") : gettext("Inactive");
                    },
                },
                {
                    "targets": [4],
                    "render": function() {
                        // TODO construct this from ID
                        return 'activate or deactivate button';
                    },
                },
            ],
        });
        immediate_table = $("#immediate-table").dataTable({
            "lengthChange": false,
            "filter": false,
            "sort": false,
            "displayLength": 5,
            "processing": true,
            "serverSide": true,
            "ajaxSource": list_broadcasts_url,
            "fnServerParams": function(aoData) {
                aoData.push({"name": "action", "value": "list_immediate"});
            },
            "dom": "rtp",
            "language": {
                "emptyTable": gettext('There are no messages to display.'),
                "infoEmpty": gettext('There are no messages to display.'),
                "lengthMenu": gettext('Show _MENU_ messages per page'),
                "processing": '<img src="' + loader_src + '" /> ' + gettext('Loading Messages...'),
                "info": gettext('Showing _START_ to _END_ of _TOTAL_ messages'),
                "infoFiltered": gettext('(filtered from _MAX_ total messages)'),
            },
            "columnDefs": [
                {
                    "targets": [0],
                    "render": function(data) {<commit_msg>Updated for more lint.<commit_after>hqDefine("scheduling/js/broadcasts_list.js", function() {
    $(function() {
        var list_broadcasts_url = hqImport("hqwebapp/js/urllib.js").reverse("new_list_broadcasts"),
            loader_src = hqImport("hqwebapp/js/initial_page_data.js").get("loader_src");

        $("#scheduled-table").dataTable({
            "lengthChange": false,
            "filter": false,
            "sort": false,
            "displayLength": 5,
            "processing": true,
            "serverSide": true,
            "ajaxSource": list_broadcasts_url,
            "fnServerParams": function(aoData) {
                aoData.push({"name": "action", "value": "list_scheduled"});
            },
            "sDom": "rtp",
            "language": {
                "emptyTable": gettext('There are no messages to display.'),
                "infoEmpty": gettext('There are no messages to display.'),
                "lengthMenu": gettext('Show _MENU_ messages per page'),
                "processing": '<img src="' + loader_src + '" /> ' + gettext('Loading messages...'),
                "info": gettext('Showing _START_ to _END_ of _TOTAL_ broadcasts'),
                "infoFiltered": gettext('(filtered from _MAX_ total broadcasts)'),
            },
            "columnDefs": [
                {
                    "targets": [0],
                    "render": function() {
                        // TODO construct this from ID
                        return 'Delete button';
                    },
                },
                {
                    "targets": [1],
                    "render": function(data) {
                        // TODO link this to the view
                        return data;
                    },
                },
                {
                    "targets": [3],
                    "render": function(data) {
                        return data ? gettext("Active") : gettext("Inactive");
                    },
                },
                {
                    "targets": [4],
                    "render": function() {
                        // TODO construct this from ID
                        return 'activate or deactivate button';
                    },
                },
            ],
        });

        $("#immediate-table").dataTable({
            "lengthChange": false,
            "filter": false,
            "sort": false,
            "displayLength": 5,
            "processing": true,
            "serverSide": true,
            "ajaxSource": list_broadcasts_url,
            "fnServerParams": function(aoData) {
                aoData.push({"name": "action", "value": "list_immediate"});
            },
            "dom": "rtp",
            "language": {
                "emptyTable": gettext('There are no messages to display.'),
                "infoEmpty": gettext('There are no messages to display.'),
                "lengthMenu": gettext('Show _MENU_ messages per page'),
                "processing": '<img src="' + loader_src + '" /> ' + gettext('Loading Messages...'),
                "info": gettext('Showing _START_ to _END_ of _TOTAL_ messages'),
                "infoFiltered": gettext('(filtered from _MAX_ total messages)'),
            },
            "columnDefs": [
                {
                    "targets": [0],
                    "render": function(data) {
{'fraction_non_alphanumeric': 0.13207822533566843, 'fraction_numerical': 0.0020431990659661413, 'mean_word_length': 1.3152027027027027, 'pattern_counts': {'":': 96, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2404763', 'n_tokens_mistral': 1778, 'n_tokens_neox': 1639, 'n_words': 383}