<commit_before><?php
namespace Kunstmaan\MediaPagePartBundle\Form\Type;
use Symfony\Component\Form\FormBuilder;
use Symfony\Bridge\Doctrine\RegistryInterface;
use Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList;
use Symfony\Bridge\Doctrine\Form\EventListener\MergeCollectionListener;
use Symfony\Bridge\Doctrine\Form\DataTransformer\EntitiesToArrayTransformer;
use Symfony\Bridge\Doctrine\Form\DataTransformer\EntityToIdTransformer;
use Symfony\Component\Form\AbstractType;

class MediaType extends AbstractType {
	protected $objectManager;

	public function __construct($objectManager) {
		$this->objectManager = $objectManager;
		error_log(get_class($this->objectManager));
	}

	public function buildForm(FormBuilder $builder, array $options) {
		$builder->prependClientTransformer(new IdToMediaTransformer($this->objectManager, $options['current_value_container']));
	}

	public function getDefaultOptions(array $options) {
		$defaultOptions = array(
            'em'                => null,
            'class'             => null,<commit_msg>removed error_log<commit_after><?php
namespace Kunstmaan\MediaPagePartBundle\Form\Type;
use Symfony\Component\Form\FormBuilder;
use Symfony\Bridge\Doctrine\RegistryInterface;
use Symfony\Bridge\Doctrine\Form\ChoiceList\EntityChoiceList;
use Symfony\Bridge\Doctrine\Form\EventListener\MergeCollectionListener;
use Symfony\Bridge\Doctrine\Form\DataTransformer\EntitiesToArrayTransformer;
use Symfony\Bridge\Doctrine\Form\DataTransformer\EntityToIdTransformer;
use Symfony\Component\Form\AbstractType;

class MediaType extends AbstractType {
	protected $objectManager;

	public function __construct($objectManager) {
		$this->objectManager = $objectManager;
	}

	public function buildForm(FormBuilder $builder, array $options) {
		$builder->prependClientTransformer(new IdToMediaTransformer($this->objectManager, $options['current_value_container']));
	}

	public function getDefaultOptions(array $options) {
		$defaultOptions = array(
            'em'                => null,
            'class'             => null,
{'fraction_non_alphanumeric': 0.10048309178743961, 'fraction_numerical': 0.0, 'mean_word_length': 5.431677018633541, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '734711', 'n_tokens_mistral': 596, 'n_tokens_neox': 577, 'n_words': 95}