<commit_before><?php

namespace HealthCareAbroad\DoctorBundle\Form;

use HealthCareAbroad\TreatmentBundle\Form\ListType\SpecializationListType;

use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormViewInterface;

class DoctorFormType extends AbstractType
{
	private $container;
	
	public function setContainer(ContainerInterface $container = null) {
		$this->container = $container;
	}
	
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
    	$builder
     		->add('firstName', 'text', array('label' => 'First name'))
     		->add('middleName', 'text', array('label' => 'Middle name'))
     		->add('lastName', 'text', array('label' => 'Last name'))
     		->add('country','globalCountry_list')
     		->add('details', 'textarea', array('constraints' => new NotBlank(), 'attr' => array('class' => 'tinymce')))
     		->add('media', 'file', array('label' => 'Image'))
    	    ->add('specializations', new SpecializationListType(), array('expanded' => true,'multiple' => true, 'constraints' => array(new NotBlank())))
    	    ->add('contactEmail', 'text', array('label' => 'Contact Email'))
    	    ->add('contactNumber', 'hidden', array('label' => 'Contact Number'));
    }
    
    public function getName()<commit_msg>make details field optional<commit_after><?php

namespace HealthCareAbroad\DoctorBundle\Form;

use HealthCareAbroad\TreatmentBundle\Form\ListType\SpecializationListType;

use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormViewInterface;

class DoctorFormType extends AbstractType
{
	private $container;
	
	public function setContainer(ContainerInterface $container = null) {
		$this->container = $container;
	}
	
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
    	$builder
     		->add('firstName', 'text', array('label' => '<NAME>'))
     		->add('middleName', 'text', array('label' => '<NAME>'))
     		->add('lastName', 'text', array('label' => '<NAME>'))
     		->add('country','globalCountry_list')
     		->add('details', 'textarea', array('attr' => array('class' => 'tinymce')))
     		->add('media', 'file', array('label' => 'Image'))
    	    ->add('specializations', new SpecializationListType(), array('expanded' => true,'multiple' => true, 'constraints' => array(new NotBlank())))
    	    ->add('contactEmail', 'text', array('label' => 'Contact Email'))
    	    ->add('contactNumber', 'hidden', array('label' => 'Contact Number'));
    }
    
    public function getName()
{'fraction_non_alphanumeric': 0.1667251667251667, 'fraction_numerical': 0.0, 'mean_word_length': 4.900621118012422, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 49, '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': '3952941', 'n_tokens_mistral': 853, 'n_tokens_neox': 829, 'n_words': 166}