<commit_before><?php

/**
 * This file is part of the SarSportApplicationBundle package.
 *
 * (c) <NAME> aka fightmaster <<EMAIL>>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace SarSport\Bundle\ApplicationBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use SarSport\Bundle\ApplicationBundle\Form\Extension\SexType;
use SarSport\Bundle\ApplicationBundle\Form\Extension\ClassType;
use SarSport\Bundle\ApplicationBundle\Form\Extension\CompetitionType;
use SarSport\Bundle\ApplicationBundle\Form\Extension\GroupType;
use SarSport\Bundle\ApplicationBundle\Form\Extension\YearType;

class ApplicationType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('competition', new CompetitionType(), array('label' => 'application.competition'))
            ->add('teamName', null, array('label' => 'application.teamName'))
            ->add('phonenumber', null, array('label' => 'application.phonenumber'))
            ->add('class', new ClassType(), array('label' => 'application.class'))
            ->add('group', new GroupType(), array('label' => 'application.group'))
            ->add('city', null, array('label' => 'application.city'))
            ->add('comment', 'textarea', array('label' => 'application.comment'))
            ->add('additionalMaps', null, array('label' => 'application.additionalMaps'))
            ->add('firstPlayerFirstName', null, array('label' => 'application.player_firstname'))
            ->add('firstPlayerLastName', null, array('label' => 'application.player_lastname'))
            ->add('firstPlayerBirthday', new YearType(), array('label' => 'application.birthday'))
            ->add('firstPlayerSex', new SexType(), array('label'=> 'application.sex'))
            ->add('firstPlayerTShirt', null, array('label' => 'application.t-shirt'))
            ->add('secondPlayerFirstName', null, array('label' => 'application.player_firstname'))
            ->add('secondPlayerLastName', null, array('label' => 'application.player_lastname'))
            ->add('secondPlayerBirthday', new YearType(), array('label' => 'application.birthday'))
            ->add('secondPlayerSex', new SexType(), array('label'=> 'application.sex'))
            ->add('secondPlayerTShirt', null,  array('label' => 'application.t-shirt'))
        ;
    }

    public function getName()<commit_msg>Fixed error. Field is not required<commit_after><?php

/**
 * This file is part of the SarSportApplicationBundle package.
 *
 * (c) <NAME> aka fightmaster <<EMAIL>>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace SarSport\Bundle\ApplicationBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use SarSport\Bundle\ApplicationBundle\Form\Extension\SexType;
use SarSport\Bundle\ApplicationBundle\Form\Extension\ClassType;
use SarSport\Bundle\ApplicationBundle\Form\Extension\CompetitionType;
use SarSport\Bundle\ApplicationBundle\Form\Extension\GroupType;
use SarSport\Bundle\ApplicationBundle\Form\Extension\YearType;

class ApplicationType extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder
            ->add('competition', new CompetitionType(), array('label' => 'application.competition'))
            ->add('teamName', null, array('label' => 'application.teamName'))
            ->add('phonenumber', null, array('label' => 'application.phonenumber'))
            ->add('class', new ClassType(), array('label' => 'application.class'))
            ->add('group', new GroupType(), array('label' => 'application.group'))
            ->add('city', null, array('label' => 'application.city'))
            ->add('comment', null, array('label' => 'application.comment'))
            ->add('additionalMaps', null, array('label' => 'application.additionalMaps'))
            ->add('firstPlayerFirstName', null, array('label' => 'application.player_firstname'))
            ->add('firstPlayerLastName', null, array('label' => 'application.player_lastname'))
            ->add('firstPlayerBirthday', new YearType(), array('label' => 'application.birthday'))
            ->add('firstPlayerSex', new SexType(), array('label'=> 'application.sex'))
            ->add('firstPlayerTShirt', null, array('label' => 'application.t-shirt'))
            ->add('secondPlayerFirstName', null, array('label' => 'application.player_firstname'))
            ->add('secondPlayerLastName', null, array('label' => 'application.player_lastname'))
            ->add('secondPlayerBirthday', new YearType(), array('label' => 'application.birthday'))
            ->add('secondPlayerSex', new SexType(), array('label'=> 'application.sex'))
            ->add('secondPlayerTShirt', null,  array('label' => 'application.t-shirt'))
        ;
    }

    public function getName()
{'fraction_non_alphanumeric': 0.16021441334127456, 'fraction_numerical': 0.0, 'mean_word_length': 3.9343780607247796, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 81, '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': '2368678', 'n_tokens_mistral': 1365, 'n_tokens_neox': 1327, 'n_words': 290}