<commit_before><?php
namespace CsvMigrations\FieldHandlers;

use InvalidArgumentException;

class DbField
{
    /**
     * field name
     *
     * @var string
     */
    protected $_name;

    /**
     * field type
     *
     * @var string
     */
    protected $_type;

    /**
     * field limit
     *
     * @var int
     */
    protected $_limit;

    /**
     * field required flag
     *
     * @var bool
     */
    protected $_required;

    /**
     * field non-searchable flag
     *
     * @var bool
     */
    protected $_nonSearchable;

    /**
     * Supported field types
     *
     * @var array
     */
    protected $_supportedTypes = ['uuid', 'string', 'integer', 'boolean', 'text', 'datetime', 'date', 'time'];

    /**
     * Constructor
     *
     * @param string $name          field name
     * @param string $type          field type
     * @param int    $limit         field limit
     * @param bool   $required      field required flag
     * @param bool   $nonSearchable field non-searchable flag
     */
    public function __construct($name, $type, $limit, $required, $nonSearchable)
    {
        $this->setName($name);
        $this->setType($type);
        $this->setLimit($limit);
        $this->setRequired($required);
        $this->setNonSearchable($nonSearchable);

    }

    /**
     * Field name setter.
     *<commit_msg>remove unused list (task #2042)<commit_after><?php
namespace CsvMigrations\FieldHandlers;

use InvalidArgumentException;

class DbField
{
    /**
     * field name
     *
     * @var string
     */
    protected $_name;

    /**
     * field type
     *
     * @var string
     */
    protected $_type;

    /**
     * field limit
     *
     * @var int
     */
    protected $_limit;

    /**
     * field required flag
     *
     * @var bool
     */
    protected $_required;

    /**
     * field non-searchable flag
     *
     * @var bool
     */
    protected $_nonSearchable;

    /**
     * Constructor
     *
     * @param string $name          field name
     * @param string $type          field type
     * @param int    $limit         field limit
     * @param bool   $required      field required flag
     * @param bool   $nonSearchable field non-searchable flag
     */
    public function __construct($name, $type, $limit, $required, $nonSearchable)
    {
        $this->setName($name);
        $this->setType($type);
        $this->setLimit($limit);
        $this->setRequired($required);
        $this->setNonSearchable($nonSearchable);

    }

    /**
     * Field name setter.
     *
{'fraction_non_alphanumeric': 0.1258741258741259, 'fraction_numerical': 0.001554001554001554, 'mean_word_length': 1.7481323372465314, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '2859942', 'n_tokens_mistral': 775, 'n_tokens_neox': 754, 'n_words': 183}