<commit_before><?php 
/**
 *  ocs-webserver
 *
 *  Copyright 2016 by pling GmbH.
 *
 *    This file is part of ocs-webserver.
 *
 *    This program is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU Affero General Public License as
 *    published by the Free Software Foundation, either version 3 of the
 *    License, or (at your option) any later version.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU Affero General Public License for more details.
 *
 *    You should have received a copy of the GNU Affero General Public License
 *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 **/
?>
<style>
    .jtable-toolbar-item-add-record {
        display: none !important;
    }
</style>
<div class="messages">
    <?php foreach (Zend_Controller_Action_HelperBroker::getStaticHelper('flashMessenger')
                       ->getCurrentMessages() as $message) : ?>
        <p><?php echo $this->escape($message); ?></p>
    <?php endforeach; ?>
</div>
<div id="TableContainer"></div>
<div id="dialog-form" title="Object Details"></div>
<script type="text/javascript">
    $(document).ready(function () {
        $('#TableContainer').jtable({
            jqueryuiTheme: true,
            paging: true,
            title: 'Table of reports',
            actions: {
                listAction: '/backend/reportproducts/list',
                createAction: '/backend/reportproducts/create',
                updateAction: '/backend/reportproducts/update',
                deleteAction: '/backend/reportproducts/delete'
            },
            fields: {
                report_id: {
                    key: true,
                    create: false,
                    edit: false,
                    list: false
                },
                project_id: {
                    title: 'Project ID',
                    width: '10%',
                    display: function (data) {
                        if (data.record.project_id) {
                            return data.record.project_id + ' <a href="/p/' + data.record.project_id + '/" class="btn btn-info btn-xs pull-right" role="button" style="color: white" target="_blank">show</a>';
                        }
                    }
                },
                reported_by: {
                    title: 'Reported by',<commit_msg>form reported products: sorting added<commit_after><?php 
/**
 *  ocs-webserver
 *
 *  Copyright 2016 by pling GmbH.
 *
 *    This file is part of ocs-webserver.
 *
 *    This program is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU Affero General Public License as
 *    published by the Free Software Foundation, either version 3 of the
 *    License, or (at your option) any later version.
 *
 *    This program is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU Affero General Public License for more details.
 *
 *    You should have received a copy of the GNU Affero General Public License
 *    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 **/
?>
<style>
    .jtable-toolbar-item-add-record {
        display: none !important;
    }
</style>
<div class="messages">
    <?php foreach (Zend_Controller_Action_HelperBroker::getStaticHelper('flashMessenger')
                       ->getCurrentMessages() as $message) : ?>
        <p><?php echo $this->escape($message); ?></p>
    <?php endforeach; ?>
</div>
<div id="TableContainer"></div>
<div id="dialog-form" title="Object Details"></div>
<script type="text/javascript">
    $(document).ready(function () {
        $('#TableContainer').jtable({
            jqueryuiTheme: true,
            paging: true,
            title: 'Table of reports',
            sorting: true, //Enable sorting
            defaultSorting: 'counter DESC', //Set default sorting
            actions: {
                listAction: '/backend/reportproducts/list',
                createAction: '/backend/reportproducts/create',
                updateAction: '/backend/reportproducts/update',
                deleteAction: '/backend/reportproducts/delete'
            },
            fields: {
                report_id: {
                    key: true,
                    create: false,
                    edit: false,
                    list: false
                },
                project_id: {
                    title: 'Project ID',
                    width: '10%',
                    display: function (data) {
                        if (data.record.project_id) {
                            return data.record.project_id + ' <a href="/p/' + data.record.project_id + '/" class="btn btn-info btn-xs pull-right" role="button" style="color: white" target="_blank">show</a>';
                        }
                    }
                },
                reported_by: {
                    title: 'Reported by',
{'fraction_non_alphanumeric': 0.11126056879323597, 'fraction_numerical': 0.002690238278247502, 'mean_word_length': 1.8241996744438416, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5629474', 'n_tokens_mistral': 1364, 'n_tokens_neox': 1306, 'n_words': 415}