<commit_before><?php

/**
 * Applog model config -- for viewing log entries
 *
 * @link https://github.com/ddpro/admin/blob/master/docs/model-configuration.md
 */

return [

    'title' => 'Log',

    'single' => 'log',

    'model' => '\Delatbabel\Applog\Models\Applog',

    /**
     * The display columns
     */
    'columns' => [
        'id',
        'type' => [
            'title' => 'Type',
        ],
        'classname' => [
            'title'    => 'Class Name',
            'sortable' => false,
        ],
        'functionname' => [
            'title'    => 'Function Name',
            'sortable' => false,
        ],
        'linenumber' => [
            'title'    => 'Line Number',
            'sortable' => false,
        ],
        'message' => [
            'title'    => 'Message',
            'sortable' => false,
        ],
        'created_at' => [
            'title' => 'Date/Time',
        ],
    ],

    /**
     * The filter set
     */
    'filters' => [
        'type' => [
            'title' => 'Type',
        ],
        'classname' => [
            'title'    => 'Class Name',
            'sortable' => false,
        ],
        'created_at' => [
            'title' => 'Date/Time',
            'type'  => 'datetime',
        ],
    ],

    /**
     * The editable fields
     */
    'edit_fields' => [
        'type' => [
            'title'    => 'Type',
            'type'     => 'text',
            'editable' => false,
        ],
        'modelname' => [
            'title'    => 'Model Name',
            'type'     => 'text',
            'editable' => false,
        ],
        'foreign_id' => [
            'title'    => 'Model ID',
            'type'     => 'number',
            'editable' => false,
        ],
        'classname' => [
            'title'    => 'Class Name',
            'type'     => 'text',
            'editable' => false,
        ],
        'traitname' => [
            'title'    => 'Trait Name',
            'type'     => 'text',
            'editable' => false,
        ],
        'functionname' => [
            'title'    => 'Function Name',
            'type'     => 'text',
            'editable' => false,
        ],
        'filename' => [
            'title'    => 'File Name',
            'type'     => 'text',
            'editable' => false,
        ],
        'linenumber' => [
            'title'    => 'Line Number',
            'type'     => 'text',
            'editable' => false,
        ],
        'ipaddr' => [
            'title'    => 'IP Address',
            'type'     => 'text',
            'editable' => false,
        ],
        'message' => [
            'title'    => 'Message',
            'type'     => 'text',
            'editable' => false,
        ],
        'details' => [
            'title'    => 'Message',
            'type'     => 'textarea',
            'editable' => false,
        ],
        'created_by' => [
            'title'    => '<NAME>',
            'type'     => 'text',
            'editable' => false,
        ],
        'created_at' => [
            'title'    => 'Date/Time',
            'type'     => 'datetime',
            'editable' => false,
        ],
    ],

    'action_permissions' => [
        'create' => function ($model) {
            return false;
        },
        'update' => function ($model) {
            return false;
        },
        'delete' => function ($model) {
            return false;
        },
    ],

    'form_width' => 400,
];
<commit_msg>Set server side table processing<commit_after><?php

/**
 * Applog model config -- for viewing log entries
 *
 * @link https://github.com/ddpro/admin/blob/master/docs/model-configuration.md
 */

return [

    'title' => 'Log',

    'single' => 'log',

    'model' => '\Delatbabel\Applog\Models\Applog',

    'server_side' => true,

    /**
     * The display columns
     */
    'columns' => [
        'id',
        'type' => [
            'title' => 'Type',
        ],
        'classname' => [
            'title'    => 'Class Name',
            'sortable' => false,
        ],
        'functionname' => [
            'title'    => 'Function Name',
            'sortable' => false,
        ],
        'linenumber' => [
            'title'    => 'Line Number',
            'sortable' => false,
        ],
        'message' => [
            'title'    => 'Message',
            'sortable' => false,
        ],
        'created_at' => [
            'title' => 'Date/Time',
        ],
    ],

    /**
     * The filter set
     */
    'filters' => [
        'type' => [
            'title' => 'Type',
        ],
        'classname' => [
            'title'    => 'Class Name',
            'sortable' => false,
        ],
        'created_at' => [
            'title' => 'Date/Time',
            'type'  => 'datetime',
        ],
    ],

    /**
     * The editable fields
     */
    'edit_fields' => [
        'type' => [
            'title'    => 'Type',
            'type'     => 'text',
            'editable' => false,
        ],
        'modelname' => [
            'title'    => 'Model Name',
            'type'     => 'text',
            'editable' => false,
        ],
        'foreign_id' => [
            'title'    => 'Model ID',
            'type'     => 'number',
            'editable' => false,
        ],
        'classname' => [
            'title'    => 'Class Name',
            'type'     => 'text',
            'editable' => false,
        ],
        'traitname' => [
            'title'    => 'Trait Name',
            'type'     => 'text',
            'editable' => false,
        ],
        'functionname' => [
            'title'    => 'Function Name',
            'type'     => 'text',
            'editable' => false,
        ],
        'filename' => [
            'title'    => 'File Name',
            'type'     => 'text',
            'editable' => false,
        ],
        'linenumber' => [
            'title'    => 'Line Number',
            'type'     => 'text',
            'editable' => false,
        ],
        'ipaddr' => [
            'title'    => 'IP Address',
            'type'     => 'text',
            'editable' => false,
        ],
        'message' => [
            'title'    => 'Message',
            'type'     => 'text',
            'editable' => false,
        ],
        'details' => [
            'title'    => 'Message',
            'type'     => 'textarea',
            'editable' => false,
        ],
        'created_by' => [
            'title'    => '<NAME>',
            'type'     => 'text',
            'editable' => false,
        ],
        'created_at' => [
            'title'    => 'Date/Time',
            'type'     => 'datetime',
            'editable' => false,
        ],
    ],

    'action_permissions' => [
        'create' => function ($model) {
            return false;
        },
        'update' => function ($model) {
            return false;
        },
        'delete' => function ($model) {
            return false;
        },
    ],

    'form_width' => 400,
];

{'fraction_non_alphanumeric': 0.18322233243587926, 'fraction_numerical': 0.0008502196400736857, 'mean_word_length': 1.0887836638058597, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 180, 'https://': 2, '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': '2112224', 'n_tokens_mistral': 2110, 'n_tokens_neox': 2082, 'n_words': 386}