<commit_before><?php

namespace FcAdmin\Form;

use Zend\Form\Form;
use Zend\Form\Element;

class UserForm extends Form
{

    public function __construct()
    {
        parent::__construct();

        $this->setName('user');
        $this->setAttribute('method', 'post');

        $this->add(array(
            'name' => 'user_id',
            'attributes' => array(
                'type' => 'hidden',
            ),
        ));

        $this->add(array(
            'name' => 'username',
            'type' => 'Zend\Form\Element\Text',
            'options' => array(
                'label' => 'Name and Surname',
            ),
            'attributes' => array(
                'required' => true,
                'minlength' => '6',
                'maxlength' => '255',
            ),
        ));

        $this->add(array(
            'name' => 'email',
            'type' => 'Zend\Form\Element\Email',
            'options' => array(
                'label' => 'Email',
            ),
            'attributes' => array(
                'required' => true,
                'maxlength' => '255',
            ),
        ));

        $this->add(array(
            'name' => 'role_id',
            'type' => 'Zend\Form\Element\Select',
            'options' => array(
                'label' => 'Role',
                'value_options' => array(
                    'user' => 'User',
                    'manager' => 'Manager',
                    'admin' => 'Admin',
                ),
            ),
            'value' => 'user',
        ));

        $this->add(array(
            'name' => 'state',
            'type' => 'Zend\Form\Element\Checkbox',
            'options' => array(
                'label' => 'Status',
                'checked_value' => '1',
                'unchecked_value' => '0'
            ),
        ));

        $this->add(array(
            'name' => 'password',
            'type' => 'Zend\Form\Element\Password',
            'attributes' => array(
                'required' => true,
            ),
            'options' => array(
                'label' => 'Password',
            ),
        ));

        $this->add(array(
            'name' => 'passwordVerify',
            'type' => 'password',
            'options' => array(<commit_msg>small fix<commit_after><?php

namespace FcAdmin\Form;

use Zend\Form\Form;
use Zend\Form\Element;

class UserForm extends Form
{

    public function __construct()
    {
        parent::__construct();

        $this->setName('user');
        $this->setAttribute('method', 'post');

        $this->add(array(
            'name' => 'user_id',
            'attributes' => array(
                'type' => 'hidden',
            ),
        ));

        $this->add(array(
            'name' => 'username',
            'type' => 'Zend\Form\Element\Text',
            'options' => array(
                'label' => 'Name and Surname',
            ),
            'attributes' => array(
                'required' => true,
                'minlength' => '6',
                'maxlength' => '255',
            ),
        ));

        $this->add(array(
            'name' => 'email',
            'type' => 'Zend\Form\Element\Email',
            'options' => array(
                'label' => 'Email',
            ),
            'attributes' => array(
                'required' => true,
                'maxlength' => '255',
            ),
        ));

        $this->add(array(
            'name' => 'role_id',
            'type' => 'Zend\Form\Element\Select',
            'options' => array(
                'label' => 'Role',
                'value_options' => array(
                    'user' => 'User',
                    'manager' => 'Manager',
                    'admin' => 'Admin',
                ),
            ),
            'value' => 'user',
        ));

        $this->add(array(
            'name' => 'state',
            'type' => 'Zend\Form\Element\Checkbox',
            'options' => array(
                'label' => 'Active?',
                'checked_value' => '1',
                'unchecked_value' => '0'
            ),
        ));

        $this->add(array(
            'name' => 'password',
            'type' => 'Zend\Form\Element\Password',
            'attributes' => array(
                'required' => true,
            ),
            'options' => array(
                'label' => 'Password',
            ),
        ));

        $this->add(array(
            'name' => 'passwordVerify',
            'type' => 'password',
            'options' => array(
{'fraction_non_alphanumeric': 0.17329233472435757, 'fraction_numerical': 0.003953437294091808, 'mean_word_length': 1.1481132075471698, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 105, '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': '5516619', 'n_tokens_mistral': 1297, 'n_tokens_neox': 1231, 'n_words': 222}