<commit_before><?php

/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Importer;

use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;

class Module implements \Zend\ModuleManager\Feature\BootstrapListenerInterface, \Zend\ModuleManager\Feature\ConfigProviderInterface, \Zend\ModuleManager\Feature\AutoloaderProviderInterface
{

    public function onBootstrap(\Zend\EventManager\EventInterface $e)
    {

    }

    public function getConfig()
    {
        return include __DIR__ . '/config/module.config.php';
    }

    public function getAutoloaderConfig()
    {
        return array(
           'Zend\Loader\StandardAutoloader' => array(
              'namespaces' => array(
                 __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
              ),
           ),
        );
    }

}
<commit_msg>[TASK] Added Set Up Form Event and Method<commit_after><?php

/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Importer;

use Zend\Mvc\ModuleRouteListener;
use Zend\Mvc\MvcEvent;

class Module implements \Zend\ModuleManager\Feature\BootstrapListenerInterface, \Zend\ModuleManager\Feature\ConfigProviderInterface, \Zend\ModuleManager\Feature\AutoloaderProviderInterface
{

    public function onBootstrap(\Zend\EventManager\EventInterface $e)
    {
        $this->serviceLocator = $e->getApplication()->getServiceManager();
        /* @var $sharedEventManager \Zend\EventManager\SharedEventManager */
        $sharedEventManager = $this->serviceLocator->get('SharedEventManager');
        $sharedEventManager->attach('Importer\Service\ImportService', 'set-import-form', array($this, 'onFormSet'));
    }

    /**
     * Set up Import Form
     *
     * @param \Zend\EventManager\EventInterface $e
     */
    public function onFormSet(\Zend\EventManager\EventInterface $e)
    {
        $service = $this->serviceLocator->get('Importer\Service\Import');
        $form = $this->serviceLocator->get('Importer\Form\Import');
        $service->setForm($form);
    }

    public function getConfig()
    {
        return include __DIR__ . '/config/module.config.php';
    }

    public function getAutoloaderConfig()
    {
        return array(
           'Zend\Loader\StandardAutoloader' => array(
              'namespaces' => array(
                 __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
              ),
           ),
        );
    }

}

{'fraction_non_alphanumeric': 0.12504258943781943, 'fraction_numerical': 0.00545144804088586, 'mean_word_length': 2.9146666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6856802', 'n_tokens_mistral': 877, 'n_tokens_neox': 848, 'n_words': 156}