<commit_before><?php

namespace Panda86\AppBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class RequestType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('requester', 'entity',array(
                'class' => 'Panda86AppBundle:Employee',
                'property' => 'name',
                'label' => false,
            ))
            ->add('journey_type', 'choice', array(
            'choices'   => array(
                'single' => 'Single',
                'return' => 'Single and Return',
                ),
             'label' => false,
             'expanded'  => true,
            ))
            ->add('days', 'hidden')
            ->add('vtype', 'entity',array(
                'class' => 'Panda86AppBundle:VType',
                'property' => 'name',
                'label' => false,
            ))
            ->add('start_time','time', array(
                'required' => false,
                'label' => false,
                'input' => 'datetime',
                'widget' => 'single_text'
            ))
            ->add('pickup_time','dateTimePicker', array(
                'label' => false,
            ))
            ->add('pickup_loc', 'text', array(
                'label' => false,
            ))
            ->add('destination', 'text', array(
                'label' => false,
            ))
            ->add('return_time','time', array(
                'label' => false,
                'input' => 'datetime',
                'widget' => 'single_text'
            ))
            ->add('purpose', 'text', array(
                'label' => false,
            ))
            ->add('accomodation_fee', 'text', array(
                'label' => false,
            ))
            ->add('accomodation_info', 'textarea', array(
                'label' => false,
            ))
            ->add('accompanied_by', 'entity',array(
                'class' => 'Panda86AppBundle:Employee',
                'property' => 'name',
                'label' => false,
                'multiple'  => true,
            ))
            ->add('more_info', 'textarea', array(
                'required' => false,
                'label' => false,
            ))
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Panda86\AppBundle\Entity\Request'
        ));
    }

    public function getName()
    {
        return 'request';
    }
}
<commit_msg>Add empty_value to journey_type field<commit_after><?php

namespace Panda86\AppBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class RequestType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('requester', 'entity',array(
                'class' => 'Panda86AppBundle:Employee',
                'property' => 'name',
                'label' => false,
            ))
            ->add('journey_type', 'choice', array(
            'choices'   => array(
                'single' => 'Single',
                'return' => 'Single and Return',
                ),
             'label' => false,
             'expanded'  => true,
            ))
            ->add('days', 'hidden')
            ->add('vtype', 'entity',array(
                'empty_value' => '--',
                'class' => 'Panda86AppBundle:VType',
                'property' => 'name',
                'label' => false,
            ))
            ->add('start_time','time', array(
                'required' => false,
                'label' => false,
                'input' => 'datetime',
                'widget' => 'single_text'
            ))
            ->add('pickup_time','dateTimePicker', array(
                'label' => false,
            ))
            ->add('pickup_loc', 'text', array(
                'label' => false,
            ))
            ->add('destination', 'text', array(
                'label' => false,
            ))
            ->add('return_time','time', array(
                'label' => false,
                'input' => 'datetime',
                'widget' => 'single_text'
            ))
            ->add('purpose', 'text', array(
                'label' => false,
            ))
            ->add('accomodation_fee', 'text', array(
                'label' => false,
            ))
            ->add('accomodation_info', 'textarea', array(
                'label' => false,
            ))
            ->add('accompanied_by', 'entity',array(
                'class' => 'Panda86AppBundle:Employee',
                'property' => 'name',
                'label' => false,
                'multiple'  => true,
            ))
            ->add('more_info', 'textarea', array(
                'required' => false,
                'label' => false,
            ))
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Panda86\AppBundle\Entity\Request'
        ));
    }

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

{'fraction_non_alphanumeric': 0.1493112947658402, 'fraction_numerical': 0.0036730945821854912, 'mean_word_length': 1.4033539276257723, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 96, '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': '5617722', 'n_tokens_mistral': 1501, 'n_tokens_neox': 1419, 'n_words': 263}