<commit_before><?php

/**
 * Comment
 *
 * @author <NAME> <<EMAIL>>
 * @link http://inji.ru/
 * @copyright 2015 <NAME>
 * @license https://github.com/injitools/cms-Inji/blob/master/LICENSE
 */

namespace Dashboard;

class Comment extends \Model
{
    public static $objectName = 'Комментарии';
    public static $labels = [
        'model' => 'Тип ресурса',
        'item_id' => 'Ресурс',
        'user_id' => 'Автор',
        'text' => 'Текст',
    ];
    public static $cols = [
        'user_id' => [
            'type' => 'relation',
            'relation' => 'user',
            'showCol' => 'mail'
        ],
        'model' => ['type' => 'text'],
        'text' => ['type' => 'html'],
        'item_id' => [
            'type' => 'void',
            'value' => [
                'type' => 'moduleMethod',
                'module' => 'Dashboard',
                'method' => 'itemHref'
            ]
        ]
    ];
    public static $dataManagers = [
        'manager' => [
            'cols' => [
                'model',
                'item_id',
                'user_id',
                'text',
                'date_create'
            ],
            'sortable' => [<commit_msg>fix comments<commit_after><?php

/**
 * Comment
 *
 * @author <NAME> <<EMAIL>>
 * @link http://inji.ru/
 * @copyright 2015 <NAME>
 * @license https://github.com/injitools/cms-Inji/blob/master/LICENSE
 */

namespace Dashboard;

class Comment extends \Model
{
    public static $objectName = 'Комментарии';
    public static $labels = [
        'model' => 'Тип ресурса',
        'item_id' => 'Ресурс',
        'user_id' => 'Автор',
        'text' => 'Текст',
    ];
    public static $cols = [
        'user_id' => [
            'type' => 'select',
            'source'=>'relation',
            'relation' => 'user',
        ],
        'model' => ['type' => 'text'],
        'text' => ['type' => 'html'],
        'item_id' => [
            'type' => 'number',
            'value' => [
                'type' => 'moduleMethod',
                'module' => 'Dashboard',
                'method' => 'itemHref'
            ]
        ]
    ];
    public static $dataManagers = [
        'manager' => [
            'cols' => [
                'model',
                'item_id',
                'user_id',
                'text',
                'date_create'
            ],
            'sortable' => [
{'fraction_non_alphanumeric': 0.1805613741097612, 'fraction_numerical': 0.0033514872224549644, 'mean_word_length': 1.4219066937119675, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 53, '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': '2356826', 'n_tokens_mistral': 773, 'n_tokens_neox': 754, 'n_words': 142}