<commit_before><?php
class Vpc_User_Detail_General_Form extends Vpc_Abstract_Composite_Form
{
    protected $_useFieldset = true;
    protected $_generalFieldset;
    protected function _init()
    {
        $this->setModel(Zend_Registry::get('userModel'));
        parent::_init();
    }

    protected function _getIdTemplateForChild($key)
    {
        return 'users_{0}-general-'.$key;
    }

    protected function _initFields()
    {
        if ($this->_useFieldset) {
            $this->_generalFieldset = $this->add(new Vps_Form_Container_FieldSet(trlVps('General')));
            $fieldsContainer = $this->_generalFieldset;
        } else {
            $fieldsContainer = $this;
        }

        $fieldsContainer->add(new Vps_Form_Field_TextField('email', trlVps('E-Mail')))
                    ->setVtype('email')
                    ->setAllowBlank(false)
                    ->setWidth(250)
                    ->addValidator(new Vpc_User_Detail_General_Validate_UniqueEmail());

        $fieldsContainer->add(new Vps_Form_Field_TextField('firstname', trlVps('Firstname')))
                    ->setAllowBlank(false)
                    ->setWidth(250);

        $fieldsContainer->add(new Vps_Form_Field_TextField('lastname', trlVps('Lastname')))
                    ->setAllowBlank(false)
                    ->setWidth(250);

        $fieldsContainer->add(new Vps_Form_Field_TextField('title', trlVps('Title')))
                    ->setWidth(250);

        $fieldsContainer->add(new Vps_Form_Field_Select('gender', trlVps('Gender')))
                    ->setValues(array(
                            'female' => trlVps('Female'),
                            'male'   => trlVps('Male')
                    ));
        parent::_initFields();
    }
}
<commit_msg>User-Form: Gender-Dropdown hat setShowNoSelection, damit nichts vorausgewaehlt ist falls man die DAten bei der Registrierung nicht eingeben muss (zB FeedSeedr, da muss man nur E-Mail eingeben)<commit_after><?php
class Vpc_User_Detail_General_Form extends Vpc_Abstract_Composite_Form
{
    protected $_useFieldset = true;
    protected $_generalFieldset;
    protected function _init()
    {
        $this->setModel(Zend_Registry::get('userModel'));
        parent::_init();
    }

    protected function _getIdTemplateForChild($key)
    {
        return 'users_{0}-general-'.$key;
    }

    protected function _initFields()
    {
        if ($this->_useFieldset) {
            $this->_generalFieldset = $this->add(new Vps_Form_Container_FieldSet(trlVps('General')));
            $fieldsContainer = $this->_generalFieldset;
        } else {
            $fieldsContainer = $this;
        }

        $fieldsContainer->add(new Vps_Form_Field_TextField('email', trlVps('E-Mail')))
                    ->setVtype('email')
                    ->setAllowBlank(false)
                    ->setWidth(250)
                    ->addValidator(new Vpc_User_Detail_General_Validate_UniqueEmail());

        $fieldsContainer->add(new Vps_Form_Field_TextField('firstname', trlVps('Firstname')))
                    ->setAllowBlank(false)
                    ->setWidth(250);

        $fieldsContainer->add(new Vps_Form_Field_TextField('lastname', trlVps('Lastname')))
                    ->setAllowBlank(false)
                    ->setWidth(250);

        $fieldsContainer->add(new Vps_Form_Field_TextField('title', trlVps('Title')))
                    ->setWidth(250);

        $fieldsContainer->add(new Vps_Form_Field_Select('gender', trlVps('Gender')))
                    ->setShowNoSelection(true)
                    ->setValues(array(
                            'female' => trlVps('Female'),
                            'male'   => trlVps('Male')
                    ));
        parent::_initFields();
    }
}

{'fraction_non_alphanumeric': 0.12480169222633528, 'fraction_numerical': 0.006874669487043892, 'mean_word_length': 2.1870261162594775, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 48, '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': '5086185', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1071, 'n_words': 154}