<commit_before><?php
/**
 * WebEnq4
 *
 *  LICENSE
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as
 *  published by the Free Software Foundation, either version 3 of the
 *  License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @package    Webenq_Questionnaires_Manage
 * @copyright  Copyright (c) 2012 Nivocer B.V. (http://www.nivocer.com)
 * @license    http://www.gnu.org/licenses/agpl.html
 */

/**
 * Form class
 *
 * @package    Webenq_Questionnaires_Manage
 * @author     <NAME> <<EMAIL>>
 */
class Webenq_Form_Question_Question extends Zend_Form_SubForm
{
    /**
     * Initialises the form
     *
     * @return void
     */
    public function init()
    {
        //$questionForm = new Zend_Form();
        $this->setName(get_class($this));
        $id = new Zend_Form_Element_Hidden('id');
        $id->removeDecorator('DtDdWrapper');
        $id->removeDecorator('Label');
        $this->addElement($id);

        $languages = Webenq_Language::getLanguages();
        foreach ($languages as $language) {
            $this->addElement(
                $this->createElement(
                    'text',
                    $language,
                    array(
                        'belongsTo'=>'text',
                        'label' => t('text') . ' (' . $language . '):',<commit_msg>temp fix: made question-form a form in stead of subform, to display question text<commit_after><?php
/**
 * WebEnq4
 *
 *  LICENSE
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as
 *  published by the Free Software Foundation, either version 3 of the
 *  License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * @package    Webenq_Questionnaires_Manage
 * @copyright  Copyright (c) 2012 Nivocer B.V. (http://www.nivocer.com)
 * @license    http://www.gnu.org/licenses/agpl.html
 */

/**
 * Form class
 *
 * @package    Webenq_Questionnaires_Manage
 * @author     <NAME> <<EMAIL>>
 */
//class Webenq_Form_Question_Question extends Zend_Form_SubForm
class Webenq_Form_Question_Question extends WebEnq4_Form
{
    /**
     * Initialises the form
     *
     * @return void
     */
    public function init()
    {
        //$questionForm = new Zend_Form();
        $this->setName(get_class($this));
        $id = new Zend_Form_Element_Hidden('id');
        $id->removeDecorator('DtDdWrapper');
        $id->removeDecorator('Label');
        $this->addElement($id);

        $languages = Webenq_Language::getLanguages();
        foreach ($languages as $language) {
            $this->addElement(
                $this->createElement(
                    'text',
                    $language,
                    array(
                        'belongsTo'=>'text',
                        'label' => t('text') . ' (' . $language . '):',
{'fraction_non_alphanumeric': 0.11022151054176675, 'fraction_numerical': 0.003469442220443021, 'mean_word_length': 2.441689623507805, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '3855202', 'n_tokens_mistral': 1094, 'n_tokens_neox': 1067, 'n_words': 337}