<commit_before><?php

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

namespace Exchange1c;

class Exchange extends \Model {

    static $cols = [
        'type' => ['type' => 'text'],
        'session' => ['type' => 'text'],
        'path' => ['type' => 'text'],
        'date_create' => ['type' => 'dateTime'],
        'date_end' => ['type' => 'dateTime'],
    ];
    static $dataManagers = [
        'manager' => [
            'cols'=>[
                'type','session','path','date_create','date_end'
            ]
        ]
    ];

}<commit_msg>add remigrate button<commit_after><?php

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

namespace Exchange1c;

class Exchange extends \Model {

    static $cols = [
        'type' => ['type' => 'text'],
        'session' => ['type' => 'text'],
        'path' => ['type' => 'text'],
        'date_create' => ['type' => 'dateTime'],
        'date_end' => ['type' => 'dateTime'],
    ];
    static $dataManagers = [
        'manager' => [
            'cols' => [
                'type', 'session', 'path', 'date_create'
            ],
            'rowButtons' => [
                'open', ['href' => '/admin/exchange1c/reExchange', 'text' => '<i class = "glyphicon glyphicon-refresh"></i>'], 'edit', 'delete'
            ],
        ]
    ];

    static function relations() {
        return[
            'logs' => [
                'type' => 'many',
                'model' => 'Exchange1c\Exchange\Log',
                'col' => 'exchange_id'
            ],
            'files' => [
                'type' => 'many',
                'model' => 'Exchange1c\Exchange\File',
                'col' => 'exchange_id'
            ]
        ];
    }

}
{'fraction_non_alphanumeric': 0.20600203458799593, 'fraction_numerical': 0.006612410986775178, 'mean_word_length': 1.7861189801699717, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 48, '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': '2491851', 'n_tokens_mistral': 653, 'n_tokens_neox': 622, 'n_words': 118}