<commit_before><?php
namespace Ciberfactura;

use CfdiComplemento;
use CfdiConcepto;
use CfdiEmisor;
use CfdiFactura;
use CfdiImpuesto;
use CfdiReceptor;
use CfdiRegimen;
use CfdiSucursal;

use Illuminate\Support\Facades\Config;

class Cfdi{
    public $xml;
    public $cadenaOriginal;
    public $sello;
    public $certificado;
    public $noCertificado;
    private $tmp_file;
    private $cfdi;

    protected $version = "3.2";

    public function __construct(){
        $url = app_path()."/".Config::get('raalveco/ciberfactura::cer');

        echo $url;

        //$this->noCertificado = CfdiBase::getSerialFromCertificate( APP_PATH.'public/cfdi/'.$contribuyente_rfc.'/certificado/'.$contribuyente_no_certificado.'.cer' );
        //$this->certificado = CfdiBase::getCertificate( APP_PATH.'public/cfdi/'.$contribuyente_rfc.'/certificado/'.$contribuyente_no_certificado.'.cer', false );
    }

    public function constructor($cfdi){

        $this->cfdi = CfdiFactura::consultar($cfdi);

        $this->xml = new XmlGenerator($this->cfdi);

        $this->tmp_file = APP_PATH."public/temp/".sha1(date("Y-m-d H:i:s".rand(0,100000))).".xml";

        $this->xml->saveFile($this->tmp_file);

        $this->cadenaOriginal = SimpleCFDI::getCadenaOriginal($this->tmp_file, APP_PATH.'cadenaoriginal_3_2.xslt');
    }

    public function sellar2(){
        $contribuyente = $this->cfdi->emisor();
        $certificado = Certificado::buscar("numero_serie = '$this->cfdi->no_certificado'");
<commit_msg>Testeando el Acceso a la Configuracion<commit_after><?php
namespace Ciberfactura;

use CfdiComplemento;
use CfdiConcepto;
use CfdiEmisor;
use CfdiFactura;
use CfdiImpuesto;
use CfdiReceptor;
use CfdiRegimen;
use CfdiSucursal;

use Illuminate\Support\Facades\Config;

class Cfdi{
    public $xml;
    public $cadenaOriginal;
    public $sello;
    public $certificado;
    public $noCertificado;
    private $tmp_file;
    private $cfdi;

    protected $version = "3.2";

    public function __construct(){
        print_r(Config::get('raalveco/ciberfactura::cer'));

        echo "<br><br>";

        print_r(Config::get('raalveco/ciberfactura'));

        echo "<br><br>";

        //$this->noCertificado = CfdiBase::getSerialFromCertificate( APP_PATH.'public/cfdi/'.$contribuyente_rfc.'/certificado/'.$contribuyente_no_certificado.'.cer' );
        //$this->certificado = CfdiBase::getCertificate( APP_PATH.'public/cfdi/'.$contribuyente_rfc.'/certificado/'.$contribuyente_no_certificado.'.cer', false );
    }

    public function constructor($cfdi){

        $this->cfdi = CfdiFactura::consultar($cfdi);

        $this->xml = new XmlGenerator($this->cfdi);

        $this->tmp_file = APP_PATH."public/temp/".sha1(date("Y-m-d H:i:s".rand(0,100000))).".xml";

        $this->xml->saveFile($this->tmp_file);

        $this->cadenaOriginal = SimpleCFDI::getCadenaOriginal($this->tmp_file, APP_PATH.'cadenaoriginal_3_2.xslt');
    }

    public function sellar2(){
        $contribuyente = $this->cfdi->emisor();
        $certificado = Certificado::buscar("numero_serie = '$this->cfdi->no_certificado'");

{'fraction_non_alphanumeric': 0.15614938828074695, 'fraction_numerical': 0.008370895041854474, 'mean_word_length': 3.923930269413629, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '1174603', 'n_tokens_mistral': 1171, 'n_tokens_neox': 1093, 'n_words': 161}