<commit_before><?php
/**
 * @package Form
 */
class Kwf_Form_Container_Cards extends Kwf_Form_Container_Abstract
{
    private $_combobox;

    public function __construct($name = null, $fieldLabel = null)
    {
        $this->fields = new Kwf_Collection_FormFields(null, 'Kwf_Form_Container_Card');

        $this->_combobox = new Kwf_Form_Field_Select($name);
        $this->_combobox->setWidth(150)
            ->setListWidth(150);

        parent::__construct($name.'_cards');
        $this->setFieldLabel($fieldLabel);
        $this->setBaseCls('x-plain');
        $this->setXtype('kwf.cards');
        $this->setLayout('form');
    }

    public function __clone()
    {
        parent::__clone();
        $this->_combobox = clone $this->_combobox;
    }

    public function setNamePrefix($v)
    {
        parent::setNamePrefix($v);
        $this->_combobox->setNamePrefix($this->fields->getFormName());<commit_msg>fix cards name, setName adds already the _cards postfix<commit_after><?php
/**
 * @package Form
 */
class Kwf_Form_Container_Cards extends Kwf_Form_Container_Abstract
{
    private $_combobox;

    public function __construct($name = null, $fieldLabel = null)
    {
        $this->fields = new Kwf_Collection_FormFields(null, 'Kwf_Form_Container_Card');

        $this->_combobox = new Kwf_Form_Field_Select($name);
        $this->_combobox->setWidth(150)
            ->setListWidth(150);

        parent::__construct($name);
        $this->setFieldLabel($fieldLabel);
        $this->setBaseCls('x-plain');
        $this->setXtype('kwf.cards');
        $this->setLayout('form');
    }

    public function __clone()
    {
        parent::__clone();
        $this->_combobox = clone $this->_combobox;
    }

    public function setNamePrefix($v)
    {
        parent::setNamePrefix($v);
        $this->_combobox->setNamePrefix($this->fields->getFormName());
{'fraction_non_alphanumeric': 0.14582224587546566, 'fraction_numerical': 0.006386375731772219, 'mean_word_length': 3.1048034934497815, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '6690717', 'n_tokens_mistral': 610, 'n_tokens_neox': 571, 'n_words': 89}