<commit_before><?php

namespace Rezzza\JobFlow\Extension\Doctrine\ORM;

use Doctrine\Common\Persistence\ManagerRegistry;
use Symfony\Component\OptionsResolver\Options;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

use Rezzza\JobFlow\AbstractJobType;

class EntityLoader extends AbstractJobType
{
    private $doctrine;

    public function __construct(ManagerRegistry $doctrine)
    {
        $this->doctrine = $doctrine:
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $type = $this;
        $doctrine = $this->doctrine;

        $resolver->setDefaults(array(
            'class' => 'Knp\ETL\Loader\Doctrine\ORMLoader',
            'etl_config' => function(Options $options) use ($type, $doctrine) {
                $class = $options['class'];

                return array(
                    'loader' => new $class($doctrine)
                );
            } 
        ));
    }

    public function getName()
    {
        return 'entity_loader';
    }

    public function getParent()
    {
        return 'loader';
    }
}<commit_msg>fix EntityLoaderType<commit_after><?php

namespace Rezzza\JobFlow\Extension\Doctrine\Type\Loader;

use Doctrine\Common\Persistence\ManagerRegistry;
use Symfony\Component\OptionsResolver\Options;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

use Rezzza\JobFlow\AbstractJobType;

class EntityLoader extends AbstractJobType
{
    private $doctrine;

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

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $type = $this;
        $doctrine = $this->doctrine;

        $resolver->setDefaults(array(
            'class' => 'Knp\ETL\Loader\Doctrine\ORMLoader',
            'etl_config' => function(Options $options) use ($type, $doctrine) {
                $class = $options['class'];

                return array(
                    'loader' => new $class($doctrine)
                );
            } 
        ));
    }

    public function getName()
    {
        return 'entity_loader';
    }

    public function getParent()
    {
        return 'loader';
    }
}
{'fraction_non_alphanumeric': 0.10911540188594522, 'fraction_numerical': 0.0, 'mean_word_length': 2.443585780525502, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '3109537', 'n_tokens_mistral': 644, 'n_tokens_neox': 620, 'n_words': 115}