<commit_before><?php
namespace PlaygroundPartnership;

use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;
use Zend\Validator\AbstractValidator;

class Module
{

    public function onBootstrap (MvcEvent $e)
    {
        $serviceManager = $e->getApplication()->getServiceManager();
        $eventManager = $e->getApplication()->getEventManager();
        $moduleRouteListener = new ModuleRouteListener();
        $moduleRouteListener->attach($eventManager);

        $translator = $serviceManager->get('translator');
        AbstractValidator::setDefaultTranslator($translator,'adfabcore');

        // If AdfabGame is installed, I can add my own partners to benefit from
        // this feature
        $e->getApplication()
            ->getEventManager()
            ->getSharedManager()
            ->attach('Zend\Mvc\Application', 'getPartners', array(
            $this,
            'updatePartners'
        ));
    }

    /**
     * This method get the partners and add them as array to AdfabGame form so
     * that there is non adherence between modules...
     * not that satisfied
     *
     * @param  EventManager $e
     * @return array
     */
    public function updatePartners ($e)<commit_msg>Game namespace<commit_after><?php
namespace PlaygroundPartnership;

use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;
use Zend\Validator\AbstractValidator;

class Module
{

    public function onBootstrap (MvcEvent $e)
    {
        $serviceManager = $e->getApplication()->getServiceManager();
        $eventManager = $e->getApplication()->getEventManager();
        $moduleRouteListener = new ModuleRouteListener();
        $moduleRouteListener->attach($eventManager);

        $translator = $serviceManager->get('translator');
        AbstractValidator::setDefaultTranslator($translator,'adfabcore');

        // If PlaygroundGame is installed, I can add my own partners to benefit from
        // this feature
        $e->getApplication()
            ->getEventManager()
            ->getSharedManager()
            ->attach('Zend\Mvc\Application', 'getPartners', array(
            $this,
            'updatePartners'
        ));
    }

    /**
     * This method get the partners and add them as array to PlaygroundGame form so
     * that there is non adherence between modules...
     * not that satisfied
     *
     * @param  EventManager $e
     * @return array
     */
    public function updatePartners ($e)
{'fraction_non_alphanumeric': 0.10897173289635395, 'fraction_numerical': 0.0, 'mean_word_length': 2.7, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '6327983', 'n_tokens_mistral': 640, 'n_tokens_neox': 632, 'n_words': 166}