<commit_before><?php

namespace WS\ReduceMigrations\Builder\Entity;
use WS\ReduceMigrations\Builder\BuilderException;

/**
 * Class UserField
 * 
 * @method  UserField code(string $value)
 * @method UserField entityId
 * @method UserField type(string $value)
 * @method UserField xmlId(string $value)
 * @method UserField editFormLabel(array $value) - ['ru' => 'name', 'en' => 'name']
 * @method UserField listLabel(array $value) - ['ru' => 'name', 'en' => 'name']
 * @method UserField filterLabel(array $value) - ['ru' => 'name', 'en' => 'name']
 * @method UserField settings(array $value)
 * @method UserField sort(int $value)
 *                         
 * @package WS\ReduceMigrations\Builder\Entity
 */
class UserField extends Base {

    const TYPE_VIDEO = 'video';
    const TYPE_HLBLOCK = 'hlblock';
    const TYPE_STRING = 'string';
    const TYPE_INTEGER = 'integer';
    const TYPE_DOUBLE = 'double';
    const TYPE_DATETIME = 'datetime';
    const TYPE_DATE = 'date';
    const TYPE_BOOLEAN = 'boolean';
    const TYPE_FILE = 'file';
    const TYPE_ENUMERATION = 'enumeration';
    const TYPE_IBLOCK_SECTION = 'iblock_section';
    const TYPE_IBLOCK_ELEMENT = 'iblock_element';
    const TYPE_STRING_FORMATTED = 'string_formatted';
    const TYPE_VOTE = 'vote';
    private $enumVariants;
    private $id;

    public function __construct($code) {
        $this->code = strtoupper($code);
        $this->enumVariants = array();
    }

    public function getMap() {
        return array(
            'code' => 'FIELD_NAME',
            'entityId' => 'ENTITY_ID',
            'type' => 'USER_TYPE_ID',
            'xmlId' => 'XML_ID',
            'sort' => 'SORT',
            'multiple' => 'MULTIPLE',
            'required' => 'MANDATORY',<commit_msg>Тесты. Исправление ошибки в UserField<commit_after><?php

namespace WS\ReduceMigrations\Builder\Entity;
use WS\ReduceMigrations\Builder\BuilderException;

/**
 * Class UserField
 * 
 * @method  UserField code(string $value)
 * @method UserField entityId
 * @method UserField type(string $value)
 * @method UserField xmlId(string $value)
 * @method UserField editFormLabel(array $value) - ['ru' => 'name', 'en' => 'name']
 * @method UserField listLabel(array $value) - ['ru' => 'name', 'en' => 'name']
 * @method UserField filterLabel(array $value) - ['ru' => 'name', 'en' => 'name']
 * @method UserField settings(array $value)
 * @method UserField sort(int $value)
 *                         
 * @package WS\ReduceMigrations\Builder\Entity
 */
class UserField extends Base {

    const TYPE_VIDEO = 'video';
    const TYPE_HLBLOCK = 'hlblock';
    const TYPE_STRING = 'string';
    const TYPE_INTEGER = 'integer';
    const TYPE_DOUBLE = 'double';
    const TYPE_DATETIME = 'datetime';
    const TYPE_DATE = 'date';
    const TYPE_BOOLEAN = 'boolean';
    const TYPE_FILE = 'file';
    const TYPE_ENUMERATION = 'enumeration';
    const TYPE_IBLOCK_SECTION = 'iblock_section';
    const TYPE_IBLOCK_ELEMENT = 'iblock_element';
    const TYPE_STRING_FORMATTED = 'string_formatted';
    const TYPE_VOTE = 'vote';
    private $enumVariants;
    private $id;

    public function __construct($code) {
        $this->code(strtoupper($code));
        $this->enumVariants = array();
    }

    public function getMap() {
        return array(
            'code' => 'FIELD_NAME',
            'entityId' => 'ENTITY_ID',
            'type' => 'USER_TYPE_ID',
            'xmlId' => 'XML_ID',
            'sort' => 'SORT',
            'multiple' => 'MULTIPLE',
            'required' => 'MANDATORY',
{'fraction_non_alphanumeric': 0.14136862855533652, 'fraction_numerical': 0.0, 'mean_word_length': 3.130232558139535, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5194583', 'n_tokens_mistral': 1137, 'n_tokens_neox': 1127, 'n_words': 266}