<commit_before><?php

/**
 * @author:  <NAME> <<EMAIL>>
 * @license: MIT
 */

namespace IDCI\Bundle\ExtraFormBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\Validator\Constraints\Iban;
use IDCI\Bundle\ExtraFormBundle\Form\DataTransformer\IbanTransformer;

class IbanType extends AbstractType
{
    /**
     * {@inheritdoc}
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $transformer = new IbanTransformer();
        $builder->addModelTransformer($transformer);

        $builder
            ->add('c1', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 4em;'),
                'max_length' => 4
            ))
            ->add('c2', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 4em;'),
                'max_length' => 4
            ))
            ->add('c3', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 4em;'),
                'max_length' => 4
            ))
            ->add('c4', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 4em;'),
                'max_length' => 4
            ))
            ->add('c5', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 4em;'),
                'max_length' => 4
            ))
            ->add('c6', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 4em;'),
                'max_length' => 4
            ))
            ->add('c7', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 3.5em;'),
                'max_length' => 3
            ))
            ->add('c8', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 6em;background:#DDD;'),
                'max_length' => 7
            ))
        ;
    }

    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'extra_form_iban';<commit_msg>Set last IBAN field as not required<commit_after><?php

/**
 * @author:  <NAME> <<EMAIL>>
 * @license: MIT
 */

namespace IDCI\Bundle\ExtraFormBundle\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\Validator\Constraints\Iban;
use IDCI\Bundle\ExtraFormBundle\Form\DataTransformer\IbanTransformer;

class IbanType extends AbstractType
{
    /**
     * {@inheritdoc}
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $transformer = new IbanTransformer();
        $builder->addModelTransformer($transformer);

        $builder
            ->add('c1', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 4em;'),
                'max_length' => 4
            ))
            ->add('c2', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 4em;'),
                'max_length' => 4
            ))
            ->add('c3', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 4em;'),
                'max_length' => 4
            ))
            ->add('c4', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 4em;'),
                'max_length' => 4
            ))
            ->add('c5', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 4em;'),
                'max_length' => 4
            ))
            ->add('c6', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 4em;'),
                'max_length' => 4
            ))
            ->add('c7', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 3.5em;'),
                'max_length' => 3
            ))
            ->add('c8', 'extra_form_iban_text', array(
                'attr'       => array('style' => 'width: 6em;background:#DDD;'),
                'max_length' => 7,
                'required'   => false
            ))
        ;
    }

    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'extra_form_iban';
{'fraction_non_alphanumeric': 0.1583465100519539, 'fraction_numerical': 0.0112943302462164, 'mean_word_length': 1.7503105590062111, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 76, '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': '4402075', 'n_tokens_mistral': 1395, 'n_tokens_neox': 1306, 'n_words': 231}