<commit_before><?php

namespace AppBundle\Form;

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

use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\DateType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\TimeType;

class EventType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('save', SubmitType::class)
            ->add('title', TextType::class, array('label' => 'Titel'))
            ->add('description', TextareaType::class, array('label' => 'Beschreibung'))
            ->add('startDate', DateType::class, array('label' => 'Startdatum'))
            ->add('hasStartTime', ChoiceType::class, array(
                'label' => 'Startdatum eintragen',
                'choices' => array('Startdatum' => true, 'no' => false),
                'choices_as_values' => true, 'expanded' => true, 'multiple' => false
            ), array('mapped' => false))
            ->add('startTime', TimeType::class, array('label' => 'Startzeit'))
            ->add('endDate', DateType::class, array('label' => 'Enddatum'))<commit_msg>Has StartTime is no longer unique form field⁄<commit_after><?php

namespace AppBundle\Form;

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

use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\DateType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\TimeType;

class EventType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('title', TextType::class, array('label' => 'Titel'))
            ->add('description', TextareaType::class, array('label' => 'Beschreibung'))
            ->add('startDate', DateType::class, array('label' => 'Startdatum'))
/*
            ->add('hasStartTime', ChoiceType::class, array(
                'label' => 'Startzeitpunkt eintragen',
                'choices' => array('Startzeitpunkt eintragen' => true, 'Keinen Startzeitpunkt eintragen' => false),
                'choices_as_values' => true, 'expanded' => true, 'multiple' => false
            ), array('mapped' => false))
*/
            ->add('startTime', TimeType::class, array('label' => 'Startzeit'))
            ->add('endDate', DateType::class, array('label' => 'Enddatum'))
{'fraction_non_alphanumeric': 0.1515358361774744, 'fraction_numerical': 0.0, 'mean_word_length': 3.8049180327868855, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 42, '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': '797498', 'n_tokens_mistral': 848, 'n_tokens_neox': 845, 'n_words': 153}