<commit_before><?php
namespace AA\AdminBundle\Admin;

use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Show\ShowMapper;
use Sonata\AdminBundle\Route\RouteCollection;

class AmeaAdmin extends MemberAdmin
{
    protected function configureShowField(ShowMapper $showMapper)
    {
        parent::configureShowField($showMapper);
        $showMapper
            ->add('birthday')
            ->add('representativename')
            ->add('representativesurname')
            ->add('sports')
            ->add('medication')
            ->add('disability')
            ->add('otherpeculiarities')
            ->add('payments')
        ;
    }

    protected function configureFormFields(FormMapper $formMapper)
    {
        parent::configureFormFields($formMapper);
        $formMapper
            ->add('birthday', 'genemu_jquerydate', array('widget' => 'single_text'))
            ->add('representativename', null, array('required' => false))
            ->add('representativesurname', null, array('required' => false))
            ->add('sports', null, array('required' => false))
            ->add('medication', null, array('required' => false))
            ->add('disability', null, array('required' => false))
            ->add('otherpeculiarities', null, array('required' => false, 'help' => 'otherpeculiarities_help'))
            ->add('payments', 'sonata_type_collection', array(
                    'required' => false,<commit_msg>Disability field in Amea is now required<commit_after><?php
namespace AA\AdminBundle\Admin;

use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Show\ShowMapper;
use Sonata\AdminBundle\Route\RouteCollection;

class AmeaAdmin extends MemberAdmin
{
    protected function configureShowField(ShowMapper $showMapper)
    {
        parent::configureShowField($showMapper);
        $showMapper
            ->add('birthday')
            ->add('representativename')
            ->add('representativesurname')
            ->add('sports')
            ->add('medication')
            ->add('disability')
            ->add('otherpeculiarities')
            ->add('payments')
        ;
    }

    protected function configureFormFields(FormMapper $formMapper)
    {
        parent::configureFormFields($formMapper);
        $formMapper
            ->add('birthday', 'genemu_jquerydate', array('widget' => 'single_text'))
            ->add('representativename', null, array('required' => false))
            ->add('representativesurname', null, array('required' => false))
            ->add('sports', null, array('required' => false))
            ->add('medication', null, array('required' => false))
            ->add('disability')
            ->add('otherpeculiarities', null, array('required' => false, 'help' => 'otherpeculiarities_help'))
            ->add('payments', 'sonata_type_collection', array(
                    'required' => false,
{'fraction_non_alphanumeric': 0.14281180577594416, 'fraction_numerical': 0.0, 'mean_word_length': 2.944931163954944, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 52, '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': '5922169', 'n_tokens_mistral': 873, 'n_tokens_neox': 858, 'n_words': 150}