<commit_before><?php

namespace Ojs\AdminBundle\Form\Type;

use Doctrine\ORM\EntityRepository;
use Ojs\JournalBundle\Entity\Journal;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

class JournalType extends AbstractType
{

    /**
     * @param FormBuilderInterface $builder
     * @param array                $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        if(isset($options['data'])){
            $journalId = $options['data']->getId()?$options['data']->getId(): null;
        }else{
            $journalId = null;
        }
        $builder
            ->add('translations', 'a2lix_translations')
            ->add('titleAbbr', 'text', [
                'label' => 'titleabbr',
                'required' => false
                ]
            )
            ->add('titleTransliterated', 'text', [
                'label' => 'titleTransliterated',
                'required' => false
                ]
            )
            ->add(
                'publisher',
                null,
                [
                    'label' => 'publisher',
                    'attr' => [
                        'class' => 'select2-element validate[required]',
                    ]
                ]
            )
            ->add(
                'mandatoryLang',<commit_msg>remove translatable field from form :bug: fix<commit_after><?php

namespace Ojs\AdminBundle\Form\Type;

use Doctrine\ORM\EntityRepository;
use Ojs\JournalBundle\Entity\Journal;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

class JournalType extends AbstractType
{

    /**
     * @param FormBuilderInterface $builder
     * @param array                $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        if(isset($options['data'])){
            $journalId = $options['data']->getId()?$options['data']->getId(): null;
        }else{
            $journalId = null;
        }
        $builder
            ->add('translations', 'a2lix_translations')
            ->add('titleTransliterated', 'text', [
                'label' => 'titleTransliterated',
                'required' => false
                ]
            )
            ->add(
                'publisher',
                null,
                [
                    'label' => 'publisher',
                    'attr' => [
                        'class' => 'select2-element validate[required]',
                    ]
                ]
            )
            ->add(
                'mandatoryLang',
{'fraction_non_alphanumeric': 0.12358731316077287, 'fraction_numerical': 0.0014582573824279985, 'mean_word_length': 1.5668849391955098, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 28, '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': '4033706', 'n_tokens_mistral': 722, 'n_tokens_neox': 696, 'n_words': 123}