<commit_before><?php

namespace SofaChamps\Bundle\BowlPickemBundle\Form;

use SofaChamps\Bundle\BowlPickemBundle\Form\UserFormType;
use SofaChamps\Bundle\BowlPickemBundle\Form\PickFormType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class PickSetFormType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('name', 'text', array(
                'max_length' => 50,
            ))
            ->add('picks', 'collection', array(
                'type' => new PickFormType(),
                'allow_add' => true,
            ))
        ;

        if ($options['hasChampionship']) {
            $builder
                ->add('championshipWinner', 'entity', array(
                    'class' => 'SofaChampsNCAABundle:Team',
                    'query_builder' => function ($repo) {
                        $teams = array('ALA', 'FLST', 'ORE', 'OHST');
                        return $repo->createQueryBuilder('t')
                            ->where('t.id IN (:teams)')
                            ->setParameter('teams', $teams);
                    },<commit_msg>Update hard coded champ teams<commit_after><?php

namespace SofaChamps\Bundle\BowlPickemBundle\Form;

use SofaChamps\Bundle\BowlPickemBundle\Form\UserFormType;
use SofaChamps\Bundle\BowlPickemBundle\Form\PickFormType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class PickSetFormType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('name', 'text', array(
                'max_length' => 50,
            ))
            ->add('picks', 'collection', array(
                'type' => new PickFormType(),
                'allow_add' => true,
            ))
        ;

        if ($options['hasChampionship']) {
            $builder
                ->add('championshipWinner', 'entity', array(
                    'class' => 'SofaChampsNCAABundle:Team',
                    'query_builder' => function ($repo) {
                        $teams = array('ALA', 'CLEM', 'MIST', 'OKLA');
                        return $repo->createQueryBuilder('t')
                            ->where('t.id IN (:teams)')
                            ->setParameter('teams', $teams);
                    },
{'fraction_non_alphanumeric': 0.12563800549666274, 'fraction_numerical': 0.0015704750687082843, 'mean_word_length': 1.9871043376318875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '5011480', 'n_tokens_mistral': 725, 'n_tokens_neox': 681, 'n_words': 124}