<commit_before><?php
return array(
    'doctrine_mongoodm_module' => array(
        // Use following setting if you know where your 'DoctrineAnnotations.php' is
        //'annotation_file' => __DIR__ . '/../vendor/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/Annotations/DoctrineAnnotations.php',
        'use_annotations' => true,
    ),
    'di' => array(
        'definition' => array(
            'class' => array(
                'Memcache' => array(
                    'addServer' => array(
                        'host' => array(
                            'type' => false,
                            'required' => true,
                        ),
                        'port' => array(
                            'type' => false,
                            'required' => true,
                        ),
                    )
                ),
                'DoctrineMongoODMModule\Factory\DocumentManager' => array(
                    'instantiator' => array(
                        'DoctrineMongoODMModule\Factory\DocumentManager',
                        'get'
                    ),
                    'methods' => array(
                        'get' => array(
                            'conn' => array(
                                'type' => 'DoctrineMongoODMModule\Doctrine\ODM\MongoDB\Connection',
                                'required' => true,
                            ),
                        ),
                    ),
                ),
            ),
        ),
        'instance' => array(
            'alias' => array(
                // document manager
                'mongo_dm' => 'DoctrineMongoODMModule\Factory\DocumentManager',

                // configuration
                'mongo_config'       => 'DoctrineMongoODMModule\Doctrine\ODM\MongoDB\Configuration',
                'mongo_connection'   => 'DoctrineMongoODMModule\Doctrine\ODM\MongoDB\Connection',
                'mongo_driver_chain' => 'DoctrineMongoODMModule\Doctrine\ODM\MongoDB\DriverChain',
                'mongo_evm'          => 'DoctrineModule\Doctrine\Common\EventManager',
            ),
            'mongo_config' => array(
                'parameters' => array(
                    'opts' => array(
                        'auto_generate_proxies'   => true,
                        'proxy_dir'               => __DIR__ . '/../../../data/DoctrineMongoODMModule/Proxy',
                        'proxy_namespace'         => 'DoctrineMongoODMModule\Proxy',
                        'auto_generate_hydrators' => true,
                        'hydrator_dir'            => __DIR__ . '/../../../data/DoctrineMongoODMModule/Hydrators',
                        'hydrator_namespace'      => 'DoctrineMongoODMModule\Hydrators',
                    ),
                    'metadataDriver' => 'mongo_driver_chain',
                    'metadataCache'  => 'doctrine_cache_array',
                    'logger'         => null,
                ),
            ),
            'mongo_connection' => array(
                'parameters' => array(
                    'server'  => null,
                    'options' => array(),
                    'config'  => 'mongo_config',
                    'evm'     => 'mongo_evm',
                )
            ),
            'mongo_driver_chain' => array(
                'parameters' => array(
                    'drivers' => array(),
                    'cache' => 'doctrine_cache_array',
                ),
            ),
            'mongo_evm' => array(
                'parameters' => array(
                    'opts' => array(
                        'subscribers' => array(),
                    ),
                ),
            ),
            'mongo_dm' => array(
                'parameters' => array(
                    'conn' => 'mongo_connection',
                ),
            ),
        ),
    ),
);<commit_msg>Fixing module configuration so that CLI is correctly configured by the module, and not viceversa<commit_after><?php
return array(

    'doctrine_mongoodm_module' => array(
        // Use following setting if you know where your 'DoctrineAnnotations.php' is
        //'annotation_file' => __DIR__ . '/../vendor/mongodb-odm/lib/Doctrine/ODM/MongoDB/Mapping/Annotations/DoctrineAnnotations.php',
        'use_annotations' => true,
    ),

    'di' => array(
        'instance' => array(
            'alias' => array(
                // document manager
                'mongo_dm'           => 'Doctrine\ODM\MongoDB\DocumentManager',

                // configuration
                'mongo_config'       => 'DoctrineMongoODMModule\Doctrine\ODM\MongoDB\Configuration',
                'mongo_connection'   => 'DoctrineMongoODMModule\Doctrine\ODM\MongoDB\Connection',
                'mongo_driver_chain' => 'DoctrineMongoODMModule\Doctrine\ODM\MongoDB\DriverChain',
                'mongo_evm'          => 'DoctrineModule\Doctrine\Common\EventManager',
            ),

            // Setting defaults: allows implicit injection of mongo_dm and mongo_connection when their types
            // are requested
            'preference' => array(
                'Doctrine\ODM\MongoDB\DocumentManager' => 'mongo_dm',
                'DoctrineMongoODMModule\Doctrine\ODM\MongoDB\Connection' => 'mongo_connection',
            ),

            'mongo_dm' => array(
                'parameters' => array(
                    'conn' => 'mongo_connection',
                ),
            ),

            'mongo_evm' => array(
                'parameters' => array(
                    'opts' => array(
                        'subscribers' => array(),
                    ),
                ),
            ),

            'mongo_driver_chain' => array(
                'parameters' => array(
                    'drivers' => array(),
                    'cache' => 'doctrine_cache_array',
                ),
            ),

            'mongo_connection' => array(
                'parameters' => array(
                    'server'  => null,
                    'options' => array(),
                    'config'  => 'mongo_config',
                    'evm'     => 'mongo_evm',
                )
            ),

            'mongo_config' => array(
                'parameters' => array(
                    'opts' => array(
                        'auto_generate_proxies'   => true,
                        'proxy_dir'               => __DIR__ . '/../../../data/DoctrineMongoODMModule/Proxy',
                        'proxy_namespace'         => 'DoctrineMongoODMModule\Proxy',
                        'auto_generate_hydrators' => true,
                        'hydrator_dir'            => __DIR__ . '/../../../data/DoctrineMongoODMModule/Hydrators',
                        'hydrator_namespace'      => 'DoctrineMongoODMModule\Hydrators',
                    ),
                    'metadataDriver' => 'mongo_driver_chain',
                    'metadataCache'  => 'doctrine_cache_array',
                    'logger'         => null,
                ),
            ),

            // Commands to be attached to CLI tools
            'doctrine_cli' => array(
                'injections' => array(
                    // MongoDB ODM
                    'Doctrine\ODM\MongoDB\Tools\Console\Command\QueryCommand',
                    'Doctrine\ODM\MongoDB\Tools\Console\Command\GenerateDocumentsCommand',
                    'Doctrine\ODM\MongoDB\Tools\Console\Command\GenerateRepositoriesCommand',
                    'Doctrine\ODM\MongoDB\Tools\Console\Command\GenerateProxiesCommand',
                    'Doctrine\ODM\MongoDB\Tools\Console\Command\GenerateHydratorsCommand',
                    'Doctrine\ODM\MongoDB\Tools\Console\Command\Schema\CreateCommand',
                    'Doctrine\ODM\MongoDB\Tools\Console\Command\Schema\DropCommand',
                ),
            ),

            // CLI helpers
            'doctrine_cli_helperset' => array(
                'injections' => array(
                    'set' => array(
                        array(
                            'helper' => 'Doctrine\ODM\MongoDB\Tools\Console\Helper\DocumentManagerHelper',
                            'alias' => 'dm'
                        ),
                    ),
                ),
            ),
        ),

        'definition' => array(
            'class' => array(
                'Memcache' => array(
                    'addServer' => array(
                        'host' => array(
                            'type' => false,
                            'required' => true,
                        ),
                        'port' => array(
                            'type' => false,
                            'required' => true,
                        ),
                    )
                ),
                'Doctrine\ODM\MongoDB\DocumentManager' => array(
                    'instantiator' => array(
                        'DoctrineMongoODMModule\Factory\DocumentManager',
                        'get'
                    ),
                ),
                'DoctrineMongoODMModule\Factory\DocumentManager' => array(
                    'methods' => array(
                        'get' => array(
                            'conn' => array(
                                'type' => 'DoctrineMongoODMModule\Doctrine\ODM\MongoDB\Connection',
                                'required' => true,
                            ),
                        ),
                    ),
                ),
            ),
        ),
    ),
);
{'fraction_non_alphanumeric': 0.11657922350472193, 'fraction_numerical': 0.0, 'mean_word_length': 1.0612024221453287, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 128, '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': '1171140', 'n_tokens_mistral': 2473, 'n_tokens_neox': 2295, 'n_words': 339}