<commit_before><?php

namespace AppBundle\Controller;

use AppBundle\Entity\VehiculoMaquinaria;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;use Symfony\Component\HttpFoundation\Request;

/**
 * Vehiculomaquinarium controller.
 *
 * @Route("vehiculomaquinaria")
 */
class VehiculoMaquinariaController extends Controller
{
    /**
     * Lists all vehiculoMaquinarium entities.
     *
     * @Route("/", name="vehiculomaquinaria_index")
     * @Method("GET")
     */
    public function indexAction()
    {
        $em = $this->getDoctrine()->getManager();

        $vehiculoMaquinarias = $em->getRepository('AppBundle:VehiculoMaquinaria')->findAll();

        return $this->render('vehiculomaquinaria/index.html.twig', array(
            'vehiculoMaquinarias' => $vehiculoMaquinarias,
        ));
    }

    /**
     * Creates a new vehiculoMaquinarium entity.
     *
     * @Route("/new", name="vehiculomaquinaria_new")
     * @Method({"GET", "POST"})
     */
    public function newAction(Request $request)
    {
        $vehiculoMaquinarium = new Vehiculomaquinarium();
        $form = $this->createForm('AppBundle\Form\VehiculoMaquinariaType', $vehiculoMaquinarium);
        $form->handleRequest($request);

        if ($form->isSubmitted() && $form->isValid()) {
            $em = $this->getDoctrine()->getManager();
            $em->persist($vehiculoMaquinarium);
            $em->flush();

            return $this->redirectToRoute('vehiculomaquinaria_show', array('id' => $vehiculoMaquinarium->getId()));<commit_msg>Actualización RNMA Preregistro<commit_after><?php

namespace AppBundle\Controller;

use AppBundle\Entity\VehiculoMaquinaria;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;use Symfony\Component\HttpFoundation\Request;

/**
 * Vehiculomaquinarium controller.
 *
 * @Route("vehiculomaquinaria")
 */
class VehiculoMaquinariaController extends Controller
{
    /**
     * Lists all vehiculoMaquinarium entities.
     *
     * @Route("/", name="vehiculomaquinaria_index")
     * @Method("GET")
     */
    public function indexAction()
    {
        $helpers = $this->get("app.helpers");
        $em = $this->getDoctrine()->getManager();
        $vehiculos = $em->getRepository('AppBundle:VehiculoMaquinaria')->findAll();
        $response = array(
                    'status' => 'success',
                    'code' => 200,
                    'msj' => "listado vehiculos", 
                    'data'=> $vehiculos,
            );
         
        return $helpers->json($response);
    }

    /**
     * Creates a new vehiculoMaquinarium entity.
     *
     * @Route("/new", name="vehiculomaquinaria_new")
     * @Method({"GET", "POST"})
     */
    public function newAction(Request $request)
    {
        $vehiculoMaquinarium = new Vehiculomaquinarium();
        $form = $this->createForm('AppBundle\Form\VehiculoMaquinariaType', $vehiculoMaquinarium);
        $form->handleRequest($request);

        if ($form->isSubmitted() && $form->isValid()) {
            $em = $this->getDoctrine()->getManager();
            $em->persist($vehiculoMaquinarium);
            $em->flush();

            return $this->redirectToRoute('vehiculomaquinaria_show', array('id' => $vehiculoMaquinarium->getId()));
{'fraction_non_alphanumeric': 0.14580941446613088, 'fraction_numerical': 0.0008610792192881745, 'mean_word_length': 3.163679808841099, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, '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': '3105796', 'n_tokens_mistral': 1091, 'n_tokens_neox': 1035, 'n_words': 149}