<commit_before><?php

namespace Edbizarro\LaravelFacebookAds\Providers;

use Illuminate\Support\ServiceProvider;
use Edbizarro\LaravelFacebookAds\FacebookAds;
use Edbizarro\LaravelFacebookAds\Contracts\LaravelFacebookAdsContract;

/**
 * Class LaravelFacebookServiceProvider.
 */
class LaravelFacebookServiceProvider extends ServiceProvider
{
    /**
     * Indicates if loading of the provider is deferred.
     *
     * @var bool
     */
    protected $defer = true;

    /**
     * Bootstrap the application services.
     */
    public function boot()
    {
        $configPath = __DIR__.'/../../config/facebook-ads.php';

        if ($this->isLumen() === false) {
            $this->publishes([$configPath => config_path('facebook-ads.php')]);
        }

        if ($this->isLumen()) {
            $this->app->configure('facebook-ads');
        }

        $this->mergeConfigFrom($configPath, 'facebook-ads');
    }

    /**
     * Register the application services.
     */
    public function register()
    {
        $this->app->bind(LaravelFacebookAdsContract::class, function ($app) {
            return $this->createInstance();
        });

        $this->app->singleton('facebook-ads', function ($app) {
            return $this->createInstance();
        });
    }

    /**
     * @return FacebookAds
     */
    protected function createInstance()
    {
        return new FacebookAds;
    }

    /**
     * Get the services provided by the provider.
     *
     * @return array
     */
    public function provides()
    {<commit_msg>Scrutinizer Auto-Fixes (#31)<commit_after><?php

namespace Edbizarro\LaravelFacebookAds\Providers;

use Illuminate\Support\ServiceProvider;
use Edbizarro\LaravelFacebookAds\FacebookAds;
use Edbizarro\LaravelFacebookAds\Contracts\LaravelFacebookAdsContract;

/**
 * Class LaravelFacebookServiceProvider.
 */
class LaravelFacebookServiceProvider extends ServiceProvider
{
    /**
     * Indicates if loading of the provider is deferred.
     *
     * @var bool
     */
    protected $defer = true;

    /**
     * Bootstrap the application services.
     */
    public function boot()
    {
        $configPath = __DIR__.'/../../config/facebook-ads.php';

        if ($this->isLumen() === false) {
            $this->publishes([$configPath => config_path('facebook-ads.php')]);
        }

        if ($this->isLumen()) {
            $this->app->configure('facebook-ads');
        }

        $this->mergeConfigFrom($configPath, 'facebook-ads');
    }

    /**
     * Register the application services.
     */
    public function register()
    {
        $this->app->bind(LaravelFacebookAdsContract::class, function($app) {
            return $this->createInstance();
        });

        $this->app->singleton('facebook-ads', function($app) {
            return $this->createInstance();
        });
    }

    /**
     * @return FacebookAds
     */
    protected function createInstance()
    {
        return new FacebookAds;
    }

    /**
     * Get the services provided by the provider.
     *
     * @return array
     */
    public function provides()
    {
{'fraction_non_alphanumeric': 0.13436194149791064, 'fraction_numerical': 0.0006428801028608164, 'mean_word_length': 2.3319057815845823, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3741986', 'n_tokens_mistral': 922, 'n_tokens_neox': 875, 'n_words': 168}