<commit_before><?php

namespace Ojs\JournalBundle\Form\JournalSetup;

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

class Step2 extends AbstractType
{

    /**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('issn', null,[
                'attr' => [
                    'class' => 'validate[required]'
                ]
            ])
            ->add('eissn', null,[
                'attr' => [
                    'class' => 'validate[required]'
                ]
            ])
            ->add('firstPublishDate', 'collot_datetime', array(
                'date_format' => 'yyyy-MM-dd',
            ))
            ->add('footer_text','textarea')
            ->add('period')
            ->add('country', 'entity', [
                'class' => 'Okulbilisim\LocationBundle\Entity\Country',
                'attr' => [
                    'class' => 'select2-element'
                ]
            ])
            ->add('Institution', 'entity', [
                'class' => 'Ojs\JournalBundle\Entity\Institution',
                'attr' => [
                    'class' => 'select2-element'
                ]
            ])
        ;
    }

    /**
     * @param OptionsResolverInterface $resolver
     */<commit_msg>eissn is not required #535<commit_after><?php

namespace Ojs\JournalBundle\Form\JournalSetup;

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

class Step2 extends AbstractType
{

    /**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('issn', null,[
                'attr' => [
                    'class' => 'validate[required]'
                ]
            ])
            ->add('eissn', null)
            ->add('firstPublishDate', 'collot_datetime', array(
                'date_format' => 'yyyy-MM-dd',
            ))
            ->add('footer_text','textarea')
            ->add('period')
            ->add('country', 'entity', [
                'class' => 'Okulbilisim\LocationBundle\Entity\Country',
                'attr' => [
                    'class' => 'select2-element'
                ]
            ])
            ->add('Institution', 'entity', [
                'class' => 'Ojs\JournalBundle\Entity\Institution',
                'attr' => [
                    'class' => 'select2-element'
                ]
            ])
        ;
    }

    /**
     * @param OptionsResolverInterface $resolver
     */
{'fraction_non_alphanumeric': 0.13720686034301716, 'fraction_numerical': 0.003150157507875394, 'mean_word_length': 1.5449688334817453, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, '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': '5622259', 'n_tokens_mistral': 783, 'n_tokens_neox': 741, 'n_words': 121}