<commit_before><?php

namespace AppBundle\Controller\sucursales;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class VentasController extends Controller {

    public function indexAction() {
        $data = [];

        $fields = array(
            'TPL' => 'estadisticas',
            'periodo_inicio' => date('Y-m-d 00:00:00'),
            'periodo_final' => date('Y-m-d 23:59:59')
        );

        $options = array(
            'http' => array(
                'header' => "Content-type: application/x-www-form-urlencoded\r\n",
                'method' => 'POST',
                'content' => http_build_query($fields),
            )
        );

        $context = stream_context_create($options);

        try {
            $data['mascota'] = json_decode(file_get_contents('http://mascota.zapto.org/SERV/?REFERENCIA=estadisticas', false, $context), true);
        } catch (\Exception $e) {
            
        }

        try {
            $data['volcan'] = json_decode(file_get_contents('http://volcan.zapto.org/SERV/?REFERENCIA=estadisticas', false, $context));
        } catch (\Exception $e) {
            
        }

        try {
            $data['castanos'] = json_decode(file_get_contents('http://castanos.zapto.org/SERV/?REFERENCIA=estadisticas', false, $context));
        } catch (\Exception $e) {
            
        }

        try {
            $data['skina'] = json_decode(file_get_contents('http://skina.zapto.org/SERV/?REFERENCIA=estadisticas', false, $context));
        } catch (\Exception $e) {
            
        }

        return $this->render('AppBundle:Sucursales:ventas.html.twig', ['data' => $data]);
    }

    public function totalesAction() {
        
    }

}
<commit_msg>Agregando timeout	<commit_after><?php

namespace AppBundle\Controller\sucursales;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class VentasController extends Controller {

    public function indexAction() {
        $data = [];

        $fields = array(
            'TPL' => 'estadisticas',
            'periodo_inicio' => date('Y-m-d 00:00:00'),
            'periodo_final' => date('Y-m-d 23:59:59')
        );

        $options = array(
            'http' => array(
                'header' => "Content-type: application/x-www-form-urlencoded\r\n",
                'method' => 'POST',
                'timeout' => 30,
                'content' => http_build_query($fields),
            )
        );

        $context = stream_context_create($options);

        try {
            $data['mascota'] = json_decode(file_get_contents('http://mascota.zapto.org/SERV/?REFERENCIA=estadisticas', false, $context), true);
        } catch (\Exception $e) {
            
        }

        try {
            $data['volcan'] = json_decode(file_get_contents('http://volcan.zapto.org/SERV/?REFERENCIA=estadisticas', false, $context));
        } catch (\Exception $e) {
            
        }

        try {
            $data['castanos'] = json_decode(file_get_contents('http://castanos.zapto.org/SERV/?REFERENCIA=estadisticas', false, $context));
        } catch (\Exception $e) {
            
        }

        try {
            $data['skina'] = json_decode(file_get_contents('http://skina.zapto.org/SERV/?REFERENCIA=estadisticas', false, $context));
        } catch (\Exception $e) {
            
        }

        return $this->render('AppBundle:Sucursales:ventas.html.twig', ['data' => $data]);
    }

    public function totalesAction() {
        
    }

}

{'fraction_non_alphanumeric': 0.1508859357696567, 'fraction_numerical': 0.007198228128460687, 'mean_word_length': 2.1039518900343643, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 22, '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': '6268724', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1107, 'n_words': 160}