<commit_before><?php

namespace PHPOrchestra\BackofficeBundle\Form\Type;

use PHPOrchestra\BackofficeBundle\EventSubscriber\AddSubmitButtonSubscriber;
use PHPOrchestra\BackofficeBundle\EventSubscriber\AreaCollectionSubscriber;
use PHPOrchestra\BackofficeBundle\EventSubscriber\NodeTypeSubscriber;
use PHPOrchestra\BackofficeBundle\EventSubscriber\TemplateChoiceSubscriber;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use PHPOrchestra\ModelBundle\Repository\TemplateRepository;

/**
 * Class NodeType
 */
class NodeType extends AbstractType
{
    protected $nodeClass;
    protected $templateRepository;

    /**
     *
     * @param string $nodeClass
     * @param TemplateRepository $templateRepository
     */
    public function __construct($nodeClass, TemplateRepository $templateRepository)
    {
        $this->nodeClass = $nodeClass;
        $this->templateRepository = $templateRepository;
    }

    /**
     *
     * @param FormBuilderInterface $builder
     * @param array $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)<commit_msg>Add technical fields<commit_after><?php

namespace PHPOrchestra\BackofficeBundle\Form\Type;

use PHPOrchestra\BackofficeBundle\EventSubscriber\AddSubmitButtonSubscriber;
use PHPOrchestra\BackofficeBundle\EventSubscriber\AreaCollectionSubscriber;
use PHPOrchestra\BackofficeBundle\EventSubscriber\NodeTypeSubscriber;
use PHPOrchestra\BackofficeBundle\EventSubscriber\TemplateChoiceSubscriber;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormInterface;
use Symfony\Component\Form\FormView;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use PHPOrchestra\ModelBundle\Repository\TemplateRepository;

/**
 * Class NodeType
 */
class NodeType extends AbstractType
{
    protected $nodeClass;
    protected $templateRepository;

    /**
     *
     * @param string             $nodeClass
     * @param TemplateRepository $templateRepository
     */
    public function __construct($nodeClass, TemplateRepository $templateRepository)
    {
        $this->nodeClass = $nodeClass;
        $this->templateRepository = $templateRepository;
    }

    /**
     *
     * @param FormBuilderInterface $builder
     * @param array                $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
{'fraction_non_alphanumeric': 0.08321060382916053, 'fraction_numerical': 0.0, 'mean_word_length': 4.805555555555555, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '511352', 'n_tokens_mistral': 710, 'n_tokens_neox': 709, 'n_words': 125}