<commit_before><?php namespace Cviebrock\LaravelMangopay;

use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;
use MangoPay\MangoPayApi;


class ServiceProvider extends IlluminateServiceProvider
{

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

    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        $this->publishes([
            __DIR__ . '/../resources/config/laravel-mangopay.php' => $this->app->configPath() . '/' . 'laravel-mangopay.php',
        ], 'config');
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->mergeConfigFrom(__DIR__ . '/../resources/config/laravel-mangopay.php', 'laravel-mangopay');

        $this->app->singleton(MangoPayApi::class, function ($app) {

            $config = $app['config']['laravel-mangopay'];
            $api = new MangoPayApi();<commit_msg>fix Laravel SP<commit_after><?php namespace Cviebrock\LaravelMangopay;

use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;
use MangoPay\MangoPayApi;


class ServiceProvider extends IlluminateServiceProvider
{

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

    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        $this->publishes([
            __DIR__ . '/../resources/config/laravel-mangopay.php' => $this->app->configPath() . '/' . 'laravel-mangopay.php',
        ], 'config');
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->mergeConfigFrom(__DIR__ . '/../resources/config/laravel-mangopay.php', 'laravel-mangopay');

        $this->app->singleton(MangoPayApi::class, function ($app) {

            $config = $app['config']['laravel-mangopay'];
            $api = new MangoPayApi();

            // use the Laravel logger (can be overridden in the config file)
            $api->setLogger($app['log']);
            
{'fraction_non_alphanumeric': 0.13803956834532374, 'fraction_numerical': 0.0, 'mean_word_length': 2.3258594917787745, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '2096916', 'n_tokens_mistral': 678, 'n_tokens_neox': 667, 'n_words': 135}