<commit_before><?php
namespace Application\Controller;

use Core\Controller\ActionController as ActionController;
use Zend\View\Model\ViewModel;

/**
* Controller Index
*
* @category Application
* @package  Controller
* @author   <NAME> <<EMAIL>>
* @license  Copyright <http://www.softwarecontracts.net/p05_copyright_patent_software.htm>
* @link     localhost
*/
class IndexController extends ActionController
{
    public function indexAction()
    {
        return new ViewModel();
    }
    
    public function layoutAction()
    {
        return new ViewModel();
    }
    
    public function sobreAction()
    {
        $perfil = (int) $this->params()->fromRoute('perfil', 0);
        if ($perfil > 0) {            
            $em =  $this->getServiceLocator()->get('Doctrine\ORM\EntityManager');
            $perfil = $em->getRepository('\Application\Entity\Usuario')->find($perfil);
        }

        return new ViewModel(
            array(
                'perfil' => $perfil<commit_msg>manda os dados do mural<commit_after><?php
namespace Application\Controller;

use Core\Controller\ActionController as ActionController;
use Zend\View\Model\ViewModel;

/**
* Controller Index
*
* @category Application
* @package  Controller
* @author   <NAME> <<EMAIL>>
* @license  Copyright <http://www.softwarecontracts.net/p05_copyright_patent_software.htm>
* @link     localhost
*/
class IndexController extends ActionController
{
    public function indexAction()
    {
        return new ViewModel();
    }
    
    public function layoutAction()
    {
        $em = $this->getServiceLocator()->get('Doctrine\ORM\EntityManager');
        $session = $this->getServiceLocator()->get('Session');
        
        $murais = $em->getRepository('\Application\Entity\Mural')
                    ->findAll();
        
        //var_dump($murais);exit;

        return new ViewModel(
                array(
                    'murais' => $murais
                )
        );
        
        //return new ViewModel();
    }
    
    public function sobreAction()
    {
        $perfil = (int) $this->params()->fromRoute('perfil', 0);
        if ($perfil > 0) {            
            $em =  $this->getServiceLocator()->get('Doctrine\ORM\EntityManager');
            $perfil = $em->getRepository('\Application\Entity\Usuario')->find($perfil);
        }

        return new ViewModel(
            array(
                'perfil' => $perfil
{'fraction_non_alphanumeric': 0.1322381930184805, 'fraction_numerical': 0.0032854209445585215, 'mean_word_length': 2.336986301369863, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 34, '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': '3834792', 'n_tokens_mistral': 702, 'n_tokens_neox': 675, 'n_words': 135}