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

namespace Application\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;


class IndexController extends AbstractActionController
{
    public function indexAction()
    {
        return new ViewModel();
    }
    public function pesquisaAction()
    {
    	$em = $this->getServiceLocator()->get("Doctrine\ORM\EntityManager");
    	$repo = $em->getRepository("Application\Entity\Imagens")->findAll();
    	$repoCat = $em->getRepository("Application\Entity\Categoria")->findAll();
    	$repoFormat  = $em->getRepository("Application\Entity\Formato")->findAll();
    	$RouteMatch = $this->getEvent()->getRouteMatch();
    	print_r($RouteMatch);
    	die();
    	return new ViewModel(array("RouteMatch" => $RouteMatch, "imagens" => $repo,"categorias" => $repoCat ,"formatos" => $repoFormat));
    }
}
<commit_msg>dereck<commit_after><?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Application\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;


class IndexController extends AbstractActionController
{
    public function indexAction()
    {
        return new ViewModel();
    }
    public function pesquisaAction()
    {
    	$RouteMatch = $this->getEvent()->getRouteMatch();
    	print_r($RouteMatch);
    	die();
    	$em = $this->getServiceLocator()->get("Doctrine\ORM\EntityManager");
    	$repo = $em->getRepository("Application\Entity\Imagens")->findAll();
    	$repoCat = $em->getRepository("Application\Entity\Categoria")->findAll();
    	$repoFormat  = $em->getRepository("Application\Entity\Formato")->findAll();
    	
    	
    	return new ViewModel(array("RouteMatch" => $RouteMatch, "imagens" => $repo,"categorias" => $repoCat ,"formatos" => $repoFormat));
    }
}

{'fraction_non_alphanumeric': 0.1541024573094544, 'fraction_numerical': 0.006663890045814244, 'mean_word_length': 4.143468950749464, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '532442', 'n_tokens_mistral': 753, 'n_tokens_neox': 721, 'n_words': 130}