<commit_before><?php

namespace Kdig\OrientBundle\Form;

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

use Kdig\ArchaeologicalBundle\Form\PreobjectType;

class ObjectType extends AbstractType
{
    protected $bucketid;
    
    public function __construct($bucketid = null)
    {
        $this->bucketid = $bucketid;
    }
    
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $bucketid = $this->bucketid;
        
        $builder
            ->add('preobject', new PreobjectType($bucketid))
            ->add('number')
            ->add('remarks')
            ->add('isphotographed')
            ->add('drawned')
            ->add('fragments')
            ->add('inscription')
            ->add('dateoofcontext')
            ->add('height')
            ->add('lenght')
            ->add('width')
            ->add('thickness')
            ->add('diameter')
            ->add('perforationdiameter')
            ->add('weight')
            ->add('bibliography')
            ->add('restorationdate')
            ->add('analysisdate')
            ->add('analysisreport')
            ->add('location')
            ->add('museum_acquisition')
            ->add('museum_acquisition_notes')
            ->add('exhibition_history')
            ->add('itaremarks')
            ->add('class')
            ->add('type')
            ->add('material')
            ->add('technique')
            ->add('decoration')
            ->add('preservation')
            ->add('dateobject')
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Kdig\OrientBundle\Entity\Object'
        ));
    }

    public function getName()
    {<commit_msg>update object<commit_after><?php

namespace Kdig\OrientBundle\Form;

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

use Kdig\ArchaeologicalBundle\Form\PreobjectType;

class ObjectType extends AbstractType
{
    protected $bucketid;
    
    public function __construct($bucketid = null)
    {
        $this->bucketid = $bucketid;
    }
    
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $bucketid = $this->bucketid;
        
        $builder
            ->add('preobject', new PreobjectType($bucketid))
            ->add('number')
            ->add('remarks')
            ->add('isphotographed')
            ->add('drawned')
            ->add('fragments')
            ->add('inscription')
            ->add('dateoofcontext')
            ->add('height')
            ->add('lenght')
            ->add('width')
            ->add('thickness')
            ->add('diameter')
            ->add('perforationdiameter')
            ->add('weight')
            ->add('bibliography')
            ->add('restorationdate')
            ->add('analysisdate')
            ->add('analysisreport')
            ->add('location')
            ->add('museum_acquisition')
            ->add('museum_acquisition_notes')
            ->add('exhibition_history')
            ->add('itaremarks')
            ->add('class', 'genemu_jqueryselect2_entity', array(
                'class' => 'Kdig\OrientBundle\Entity\Objectvoc\VocObjClass',
                'property' => 'name',
            ))
            ->add('type', 'genemu_jqueryselect2_entity', array(
                'class' => 'Kdig\OrientBundle\Entity\Objectvoc\VocObjType',
                'property' => 'name',
            ))
            ->add('material', 'genemu_jqueryselect2_entity', array(
                'class' => 'Kdig\OrientBundle\Entity\Objectvoc\VocObjMaterial',
                'property' => 'name',
            ))
            ->add('technique', 'genemu_jqueryselect2_entity', array(
                'class' => 'Kdig\OrientBundle\Entity\Objectvoc\VocObjTechnique',
                'property' => 'name',
            ))
            ->add('decoration', 'genemu_jqueryselect2_entity', array(
                'class' => 'Kdig\OrientBundle\Entity\Objectvoc\VocObjDecoration',
                'property' => 'name',
            ))
            ->add('preservation', 'genemu_jqueryselect2_entity', array(
                'class' => 'Kdig\OrientBundle\Entity\Objectvoc\VocObjPreservation',
                'property' => 'name',
            ))
            ->add('dateobject', 'genemu_jqueryselect2_entity', array(
                'class' => 'Kdig\OrientBundle\Entity\Objectvoc\VocObjDate',
                'property' => 'name',
            ))
        ;
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Kdig\OrientBundle\Entity\Object'
        ));
    }

    public function getName()
    {
{'fraction_non_alphanumeric': 0.14236741278483564, 'fraction_numerical': 0.0014115749142972374, 'mean_word_length': 1.9366489046773239, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 87, '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': '920763', 'n_tokens_mistral': 1386, 'n_tokens_neox': 1355, 'n_words': 193}