<commit_before><?php namespace Intagono\Openpay;

use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;
use Intagono\Openpay\Openpay;
use Openpay as OpenpayCore;

class OpenpayServiceProvider extends ServiceProvider {

    /**
     * Indicates if loading of the provider is deferred.
     *
     * @var bool
     */
    protected $defer = true;

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton('Intagono\Openpay\Openpay', function($app) {
            $productionMode = config('openpay.production_mode');
            $merchantId = config('openpay.merchant_id');
            $privayeKey = config('openpay.private_key');

            $openpayCore = OpenpayCore::getInstance($merchantId, $privayeKey);

            if ($productionMode) {
                OpenpayCore::setProductionMode(true);
            }

            return new Openpay($openpayCore);
        });

        $this->app->bind('openpay', 'Intagono\Openpay\Openpay');

        $this->mergeConfigFrom(
            __DIR__ . '/config/openpay.php', 'openpay'
        );    }

    /**
     * Publish the plugin configuration.
     */
    public function boot()
    {
        $this->publishes([
            __DIR__ . '/config/openpay.php' => config_path('openpay.php')
        ]);
    }

    /**
     * Get the services provided by the provider.
     *
     * @return array
     */
    public function provides()
    {
        return [
            'openpay',
            'Intagono\Openpay\Openpay',
        ];
    }

}
<commit_msg>Migratios for Holders, Cards & Bank Accounts<commit_after><?php namespace Intagono\Openpay;

use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;
use Intagono\Openpay\Openpay;
use Openpay as OpenpayCore;

class OpenpayServiceProvider extends ServiceProvider {

    /**
     * Indicates if loading of the provider is deferred.
     *
     * @var bool
     */
    protected $defer = true;

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton('Intagono\Openpay\Openpay', function($app) {
            $productionMode = config('openpay.production_mode');
            $merchantId = config('openpay.merchant_id');
            $privayeKey = config('openpay.private_key');

            $openpayCore = OpenpayCore::getInstance($merchantId, $privayeKey);

            if ($productionMode) {
                OpenpayCore::setProductionMode(true);
            }

            return new Openpay($openpayCore);
        });

        $this->app->bind('openpay', 'Intagono\Openpay\Openpay');

        $this->mergeConfigFrom(
            __DIR__ . '/config/openpay.php', 'openpay'
        );    }

    /**
     * Publish the plugin configuration.
     */
    public function boot()
    {
        $this->publishes([
            __DIR__ . '/config/openpay.php' => config_path('openpay.php')
        ]);

        $this->publishes([
            __DIR__.'/migrations/' => database_path('migrations')
        ], 'migrations');
    }

    /**
     * Get the services provided by the provider.
     *
     * @return array
     */
    public function provides()
    {
        return [
            'openpay',
            'Intagono\Openpay\Openpay',
        ];
    }

}

{'fraction_non_alphanumeric': 0.12488902042024268, 'fraction_numerical': 0.0, 'mean_word_length': 2.0560578661844486, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '2622102', 'n_tokens_mistral': 979, 'n_tokens_neox': 964, 'n_words': 185}