<commit_before><?php
namespace Ares\CoreBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class TaskType extends AbstractType
{
    /**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('name','text')
            ->add('description','textarea')
            ->add('deadline', 'datetime', array(
                'widget' => 'single_text',
                'empty_value' => '-',
                'required' => true,
                'format' => 'dd-MM-yyyy HH:mm',
                'attr'=> [
                    'class' => 'datetimepicker'
                ]
            ))
            ->add('estimated_time','integer')
            ->add('state', 'choice', array(
                'choices'   => array(
                    'Assigned'   => 'Assigned',
                    'In Progress' => 'In Progress',
                    'Completed'   => 'Completed',
                    'Canceled' => 'Canceled',
                    'Not Assigned' => 'Not Assigned'
                ),
                'multiple'  => false,
            ))
            ->add('users', 'entity', array(
                'attr' => array(
                    'class' => 'select2'
                ),
                'class'    => 'AresUserBundle:User',
                'required' => false,
                'property' => 'username',
                'expanded' => false,
                'multiple' => true))               
//            ->add('timespent', 'text')               
        ;
        
<commit_msg>global<commit_after><?php
namespace Ares\CoreBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class TaskType extends AbstractType
{
    /**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('name','text')
            ->add('description','textarea')
            ->add('deadline', 'datetime', array(
                'widget' => 'single_text',
                'empty_value' => '-',
                'required' => true,
                'format' => 'dd-MM-yyyy HH:mm',
                'attr'=> [
                    'class' => 'datetimepicker'
                ]
            ))
            ->add('estimated_time','integer')
            ->add('state', 'choice', array(
                'choices'   => array(
                    'Assigned'   => 'Assigned',
                    'In Progress' => 'In Progress',
                    'Completed'   => 'Completed',
                    'Canceled' => 'Canceled',
                    'Not Assigned' => 'Not Assigned'
                ),
                'multiple'  => false,
            ))
            ->add('users', 'entity', array(
                'attr' => array(
                    'class' => 'select2'
                ),
                'class'    => 'AresCoreBundle:User',
                'required' => false,
                'property' => 'username',
                'expanded' => false,
                'multiple' => true))               
//            ->add('timespent', 'text')               
        ;
        

{'fraction_non_alphanumeric': 0.14157238178125905, 'fraction_numerical': 0.0005802146794313896, 'mean_word_length': 1.3376271186440678, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 57, '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': '806293', 'n_tokens_mistral': 899, 'n_tokens_neox': 852, 'n_words': 166}