<commit_before><?php
/**
 * This file is part of the BootstrapBundle project.
 *
 * (c) 2013 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace P2\Bundle\BootstrapBundle\Form\Extension;

use P2\Bundle\BootstrapBundle\Form\AbstractTypeExtension;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

/**
 * Class FormTypeExtension
 * @package P2\Bundle\BootstrapBundle\Form\Extension
 */
class FormTypeExtension extends AbstractTypeExtension
{
    /**
     * {@inheritDoc}
     */
    public function getExtendedType()
    {
        return 'form';
    }

    /**
     * {@inheritDoc}
     */
    public function getDefaults(OptionsResolverInterface $resolver)
    {
        return array('help' => null);
    }

    /**
     * {@inheritDoc}
     */
    public function getAllowedTypes(OptionsResolverInterface $resolver)
    {
        return array('help' => array('null', 'string'));
    }

    /**
     * {@inheritDoc}
     */
    public function getViewVars(FormView $view, FormInterface $form, array $options)
    {
        return array('help' => $options['help']);
    }
}<commit_msg>Remove deprecated code from form type extension<commit_after><?php
/**
 * This file is part of the BootstrapBundle project.
 *
 * (c) 2013 <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace P2\Bundle\BootstrapBundle\Form\Extension;

use P2\Bundle\BootstrapBundle\Form\AbstractTypeExtension;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

/**
 * Class FormTypeExtension
 * @package P2\Bundle\BootstrapBundle\Form\Extension
 */
class FormTypeExtension extends AbstractTypeExtension
{
    /**
     * {@inheritDoc}
     */
    public function getExtendedType()
    {
        return 'form';
    }
}
{'fraction_non_alphanumeric': 0.11350574712643678, 'fraction_numerical': 0.006704980842911878, 'mean_word_length': 3.49247311827957, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 12, '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': '4422863', 'n_tokens_mistral': 594, 'n_tokens_neox': 579, 'n_words': 147}