<commit_before><?php

/**
 * Description of FormRecive
 *
 * @author <NAME> <<EMAIL>>
 */

namespace UserForms;

class Recive extends \Model
{
    static $objectName = 'Полученная форма';
    static $labels = [
        'form_title' => 'Название',
        'form_user_id' => 'Пользователь',
        'inputs' => 'Поля формы',
        'date_create' => 'Дата',
        'form_id' => 'Форма',
        'data' => 'Данные',
    ];
    static $cols = [
        'form_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'form'],
        'data' => [
            'type' => 'json',
            'view' => [
                'type' => 'moduleMethod',
                'module' => 'UserForms',
                'method' => 'formData'
            ],
        ],
    ];
    static $dataManagers = [
        'manager' => [
            'name' => 'Полученные формы',
            'cols' => [
                'form_id',
                'data',
                'date_create',
            ],
            'sortable' => [
                'form_id',
                'data',
                'date_create',
            ],
            'preSort' => [
                'date_create' => 'desc'
            ]
        ]
    ];

    static function relations()
    {
        return [
            'form' => [
                'model' => '\userForms\Form',
                'col' => 'form_id'<commit_msg>fix relation<commit_after><?php

/**
 * Description of FormRecive
 *
 * @author <NAME> <<EMAIL>>
 */

namespace UserForms;

class Recive extends \Model
{
    static $objectName = 'Полученная форма';
    static $labels = [
        'form_title' => 'Название',
        'form_user_id' => 'Пользователь',
        'inputs' => 'Поля формы',
        'date_create' => 'Дата',
        'form_id' => 'Форма',
        'data' => 'Данные',
    ];
    static $cols = [
        'form_id' => ['type' => 'select', 'source' => 'relation', 'relation' => 'form'],
        'data' => [
            'type' => 'json',
            'view' => [
                'type' => 'moduleMethod',
                'module' => 'UserForms',
                'method' => 'formData'
            ],
        ],
    ];
    static $dataManagers = [
        'manager' => [
            'name' => 'Полученные формы',
            'cols' => [
                'form_id',
                'data',
                'date_create',
            ],
            'sortable' => [
                'form_id',
                'data',
                'date_create',
            ],
            'preSort' => [
                'date_create' => 'desc'
            ]
        ]
    ];

    static function relations()
    {
        return [
            'form' => [
                'model' => '\UserForms\Form',
                'col' => 'form_id'
{'fraction_non_alphanumeric': 0.17086527929901424, 'fraction_numerical': 0.0, 'mean_word_length': 1.2757475083056478, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 59, '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': '3943018', 'n_tokens_mistral': 850, 'n_tokens_neox': 847, 'n_words': 154}