<commit_before><?php
/**
 * ZfcTwitterBootstrap
 *
 * @category ZfcTwitterBootstrap
 * @package ZfcTwitterBootstrap\View
 * @subpackage Helper
 */

namespace ZfcTwitterBootstrap\Form\View\Helper;

use Traversable;
use Zend\Form\ElementInterface;
use Zend\Form\Form;
use Zend\Form\Fieldset;
use Zend\Form\View\Helper\Form as FormHelper;
use Zend\View\Helper\AbstractHelper;

/**
 * Form Renderer
 *
 * @category ZfcTwitterBootstrap
 * @package ZfcTwitterBootstrap\View
 * @subpackage Helper
 */
class FormRenderer extends AbstractHelper
{
    /**
     * @var Zend\View\Helper\Form
     */
    protected $formHelper;

    /**
     * @var ZfcTwitterBootstrap\View\Helper\FormElement
     */
    protected $formElementHelper;

    /**
     * Set Form Element Helper
     *
     * @param ZfcTwitterBootstrap\View\Helper\FormElement $helper
     * @return ZfcTwitterBootstrap\View\Helper\FormRenderer
     */
    public function setElementHelper(FormElement $helper)
    {
        $helper->setView($this->getView());
        $this->formElementHelper = $helper;
    }

    /**
     * Get Form Element Helper
     *
     * @return ZfcTwitterBootstrap\View\Helper\FormElement
     */
    public function getElementHelper()
    {
        if (!$this->formElementHelper) {
            $this->setElementHelper(new FormElement());
        }
        return $this->formElementHelper;
    }

    /**<commit_msg>fixed naming of FormElement to FormElementWrapper<commit_after><?php
/**
 * ZfcTwitterBootstrap
 *
 * @category ZfcTwitterBootstrap
 * @package ZfcTwitterBootstrap\View
 * @subpackage Helper
 */

namespace ZfcTwitterBootstrap\Form\View\Helper;

use Traversable;
use Zend\Form\ElementInterface;
use Zend\Form\Form;
use Zend\Form\Fieldset;
use Zend\Form\View\Helper\Form as FormHelper;
use Zend\View\Helper\AbstractHelper;

/**
 * Form Renderer
 *
 * @category ZfcTwitterBootstrap
 * @package ZfcTwitterBootstrap\View
 * @subpackage Helper
 */
class FormRenderer extends AbstractHelper
{
    /**
     * @var Zend\View\Helper\Form
     */
    protected $formHelper;

    /**
     * @var ZfcTwitterBootstrap\View\Helper\FormElementWrapper
     */
    protected $formElementHelper;

    /**
     * Set Form Element Helper
     *
     * @param ZfcTwitterBootstrap\View\Helper\FormElementWrapper $helper
     * @return ZfcTwitterBootstrap\View\Helper\FormRenderer
     */
    public function setElementHelper(FormElementWrapper $helper)
    {
        $helper->setView($this->getView());
        $this->formElementHelper = $helper;
    }

    /**
     * Get Form Element Helper
     *
     * @return ZfcTwitterBootstrap\View\Helper\FormElementWrapper
     */
    public function getElementHelper()
    {
        if (!$this->formElementHelper) {
            $this->setElementHelper(new FormElementWrapper());
        }
        return $this->formElementHelper;
    }

    /**
{'fraction_non_alphanumeric': 0.11192724728926198, 'fraction_numerical': 0.0, 'mean_word_length': 3.0056022408963585, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '4937077', 'n_tokens_mistral': 879, 'n_tokens_neox': 841, 'n_words': 155}