<commit_before><?php
return array(
    
    'doctrine' => array(
        'driver' => array(
            'odm_default' => array(
                'drivers' => array(
                    'Cv\Entity' => 'annotation',
                ),
            ),
            'annotation' => array(
                /*
                 * All drivers (except DriverChain) require paths to work on. You
                 * may set this value as a string (for a single path) or an array
                 * for multiple paths.
                 * example https://github.com/doctrine/DoctrineORMModule
                 */
                'paths' => array( __DIR__ . '/../src/Cv/Entity'),
            ),
        ),
        'eventmanager' => array(
            'odm_default' => array(
                'subscribers' => array(
                    '\Cv\Repository\Event\InjectContactListener',
                    '\Cv\Repository\Event\DeleteRemovedAttachmentsSubscriber',
                    '\Cv\Repository\Event\UpdateFilesPermissionsSubscriber',
                ),
            ),
        ),
    ),
    
    
    
    // Translations
    'translator' => array(
        'translation_file_patterns' => array(
            array(
                'type'     => 'gettext',
                'base_dir' => __DIR__ . '/../language',
                'pattern'  => '%s.mo',
            ),
        ),
    ),
    
    // Routes
    /* DISABLED until module is fixed */
    // TODO: Remove comments when module is fixed.
    'router' => array(
        'routes' => array(
            'lang' => array(
                'child_routes' => array(
                    'cvs' => array(
                        'type' => 'Literal',
                        'options' => array(
                            'route'    => '/cvs',
                            'defaults' => array(
                                'controller' => 'Cv/Index',
                                'action'     => 'index',
                            ),
                        ),
                        'may_terminate' => true,
                        'child_routes' => array(
                            'create' => array(
                                'type' => 'Literal',
                                'options' => array(
                                    'route' => '/create',
                                    'defaults' => array(
                                        'controller' => 'Cv\Controller\Manage',
                                        'action' => 'form'
                                    ),
                                ),
                            ),
                            'edit' => [
                                'type' => 'Segment',
                                'options' => [
                                    'route' => '/edit/:id',
                                    'defaults' => [
                                        'controller' => 'Cv\Controller\Manage',
                                        'action' => 'form'
                                    ],
                                ],
                            ],
                            'view' => [
                                'type' => 'Segment',
                                'options' => [
                                    'route' => '/view/:id',
                                    'defaults' => [
                                        'controller' => 'Cv/View',
                                    ],
                                ],
                            ],
                        ),
                    ),
                    'my-cv' => [
                        'type' => 'Literal',
                        'options' => [
                            'route' => '/my/cv',
                            'defaults' => [
                                'controller' => 'Cv\Controller\Manage',
                                'action' => 'form',
                                'id' => '__my__'
                            ],
                        ],
                    ],
                ),
            ),
        ),
    ),
    
    'acl' => array(
        'rules' => array(
            'user' => array(
                'allow' => array(
                    'route/lang/my-cv',
                    'Cv\Controller\Manage',
                    'navigation/resume-user',
                    'Cv/Status' => ['change'],
                ),
            ),
            'recruiter' => [
                'deny' => [
                    'route/lang/my-cv',
                    'navigation/resume-user',
                    'Cv/Status',
                ],
                'allow' => [
                    'route/lang/cvs',
                    'navigation/resume-recruiter',
                    'Entity/Cv' => [
                        'view' => 'Cv/MayView',
                        'edit' => 'Cv/MayChange',
                    ],
                ],
            ],
            'admin' => [
                'deny' => [
                    'route/lang/cvs',
                    'navigation/resume-recruiter',
                    'navigation/resume-user',
                    'Cv\Controller\Manage',
                ]
            ]
        ),
        'assertions' => [
            'invokables' => [
                'Cv/MayView'   => 'Cv\Acl\Assertion\MayViewCv',
                'Cv/MayChange' => 'Cv\Acl\Assertion\MayChangeCv',
            ],
        ],
    ),
    
    // Configuration of the controller service manager (Which loads controllers)
    'controllers' => array(
        'invokables' => array(<commit_msg>[Cv] Remove acl rules for role "admin".<commit_after><?php
return array(
    
    'doctrine' => array(
        'driver' => array(
            'odm_default' => array(
                'drivers' => array(
                    'Cv\Entity' => 'annotation',
                ),
            ),
            'annotation' => array(
                /*
                 * All drivers (except DriverChain) require paths to work on. You
                 * may set this value as a string (for a single path) or an array
                 * for multiple paths.
                 * example https://github.com/doctrine/DoctrineORMModule
                 */
                'paths' => array( __DIR__ . '/../src/Cv/Entity'),
            ),
        ),
        'eventmanager' => array(
            'odm_default' => array(
                'subscribers' => array(
                    '\Cv\Repository\Event\InjectContactListener',
                    '\Cv\Repository\Event\DeleteRemovedAttachmentsSubscriber',
                    '\Cv\Repository\Event\UpdateFilesPermissionsSubscriber',
                ),
            ),
        ),
    ),
    
    
    
    // Translations
    'translator' => array(
        'translation_file_patterns' => array(
            array(
                'type'     => 'gettext',
                'base_dir' => __DIR__ . '/../language',
                'pattern'  => '%s.mo',
            ),
        ),
    ),
    
    // Routes
    /* DISABLED until module is fixed */
    // TODO: Remove comments when module is fixed.
    'router' => array(
        'routes' => array(
            'lang' => array(
                'child_routes' => array(
                    'cvs' => array(
                        'type' => 'Literal',
                        'options' => array(
                            'route'    => '/cvs',
                            'defaults' => array(
                                'controller' => 'Cv/Index',
                                'action'     => 'index',
                            ),
                        ),
                        'may_terminate' => true,
                        'child_routes' => array(
                            'create' => array(
                                'type' => 'Literal',
                                'options' => array(
                                    'route' => '/create',
                                    'defaults' => array(
                                        'controller' => 'Cv\Controller\Manage',
                                        'action' => 'form'
                                    ),
                                ),
                            ),
                            'edit' => [
                                'type' => 'Segment',
                                'options' => [
                                    'route' => '/edit/:id',
                                    'defaults' => [
                                        'controller' => 'Cv\Controller\Manage',
                                        'action' => 'form'
                                    ],
                                ],
                            ],
                            'view' => [
                                'type' => 'Segment',
                                'options' => [
                                    'route' => '/view/:id',
                                    'defaults' => [
                                        'controller' => 'Cv/View',
                                    ],
                                ],
                            ],
                        ),
                    ),
                    'my-cv' => [
                        'type' => 'Literal',
                        'options' => [
                            'route' => '/my/cv',
                            'defaults' => [
                                'controller' => 'Cv\Controller\Manage',
                                'action' => 'form',
                                'id' => '__my__'
                            ],
                        ],
                    ],
                ),
            ),
        ),
    ),
    
    'acl' => array(
        'rules' => array(
            'user' => array(
                'allow' => array(
                    'route/lang/my-cv',
                    'Cv\Controller\Manage',
                    'navigation/resume-user',
                    'Cv/Status' => ['change'],
                ),
            ),
            'recruiter' => [
                'deny' => [
                    'route/lang/my-cv',
                    'navigation/resume-user',
                    'Cv/Status',
                ],
                'allow' => [
                    'route/lang/cvs',
                    'navigation/resume-recruiter',
                    'Entity/Cv' => [
                        'view' => 'Cv/MayView',
                        'edit' => 'Cv/MayChange',
                    ],
                ],
            ],
        ),
        'assertions' => [
            'invokables' => [
                'Cv/MayView'   => 'Cv\Acl\Assertion\MayViewCv',
                'Cv/MayChange' => 'Cv\Acl\Assertion\MayChangeCv',
            ],
        ],
    ),
    
    // Configuration of the controller service manager (Which loads controllers)
    'controllers' => array(
        'invokables' => array(
{'fraction_non_alphanumeric': 0.12422075540887421, 'fraction_numerical': 0.0, 'mean_word_length': 0.6736729057993249, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 151, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1989457', 'n_tokens_mistral': 2571, 'n_tokens_neox': 2456, 'n_words': 413}