<commit_before><?php

namespace Sitioweb\Bundle\ArmyCreatorBundle\Form;

use Doctrine\ORM\EntityRepository;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

use Sitioweb\Bundle\ArmyCreatorBundle\Entity\User;

class ArmyBbcodePreferencesType extends AbstractType
{
    
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add(
                'showDefaultStuff',
                null,
                array('required' => false)
            )
            //->add('showStuffDescription')
            ->add(
                'showUnitPoints',
                null,
                array('required' => false)
            )
            //->add('showStuffPoints')
            ->add(
                'separator',
                'choice',
                array(
                    'choices' => array(
                        '[*]' => 'ac_armybbcode.form.carriage_return',
                        ' / ' => 'ac_armybbcode.form.slash',
                        ', ' =>  'ac_armybbcode.form.comma'
                    ),
                    'expanded' => true
                )
            )
            ->add('colorSquadType')
            ->add('colorSquad')
            ->add('colorSquadDetail')
            //->add('showNbIfAlone')
            //->add('showUnitCarac')
            //->add('showPersonnalName')
            //->add('user')
            //->add('breed')
        ;
    }


    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Sitioweb\Bundle\ArmyCreatorBundle\Entity\UserPreference',
            'translation_domain' => 'forms'
        ));
    }

    public function getName()
    {
        return 'ac_armybbcode';
    }
}

<commit_msg>fix bug with , and /<commit_after><?php

namespace Sitioweb\Bundle\ArmyCreatorBundle\Form;

use Doctrine\ORM\EntityRepository;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList;

use Sitioweb\Bundle\ArmyCreatorBundle\Entity\User;

class ArmyBbcodePreferencesType extends AbstractType
{
    
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add(
                'showDefaultStuff',
                null,
                array('required' => false)
            )
            //->add('showStuffDescription')
            ->add(
                'showUnitPoints',
                null,
                array('required' => false)
            )
            //->add('showStuffPoints')
            ->add(
                'separator',
                'choice',
                array(
                    'choice_list' => new ChoiceList(
                        array('[*]', ' / ', ', '),
                        array(
                            'ac_armybbcode.form.carriage_return',
                            'ac_armybbcode.form.slash',
                            'ac_armybbcode.form.comma'
                        )
                    ),
                    'expanded' => true
                )
            )
            ->add('colorSquadType')
            ->add('colorSquad')
            ->add('colorSquadDetail')
            //->add('showNbIfAlone')
            //->add('showUnitCarac')
            //->add('showPersonnalName')
            //->add('user')
            //->add('breed')
        ;
    }


    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Sitioweb\Bundle\ArmyCreatorBundle\Entity\UserPreference',
            'translation_domain' => 'forms'
        ));
    }

    public function getName()
    {
        return 'ac_armybbcode';
    }
}

{'fraction_non_alphanumeric': 0.11968820719135026, 'fraction_numerical': 0.0, 'mean_word_length': 1.4785046728971962, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 46, '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': '5760209', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1061, 'n_words': 147}