<commit_before><?php namespace StudioIgnis\Evt\Laravel; 

use Illuminate\Events\Dispatcher;
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;

class ServiceProvider extends IlluminateServiceProvider
{
    public function boot()
    {
        $this->package('studioignis/evt', 'evt', __DIR__.'/../../');
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->bindDispatcher();
        $this->bindListener();
        $this->bindInflector();
        $this->initGlobalListener();
    }

    protected function bindDispatcher()
    {
        $this->app->bindShared('StudioIgnis\Evt\EventDispatcher', function ($app)
        {
            return $app->make($app['config']['evt::dispatcher']);
        });
    }

    protected function bindListener()
    {
        $this->app->bindShared('StudioIgnis\Evt\EventListener', function ($app)
        {
            return $app->make($app['config']['evt::listener']);
        });
    }

    protected function bindInflector()
    {
        $this->app->bindShared('StudioIgnis\Evt\Inflection\EventNameInflector', function ($app)
        {
            return $app->make($app['config']['evt::inflector']);
        });
    }

    protected function initGlobalListener()
    {
        $this->app->bindShared('StudioIgnis\Evt\EventListener', function($app)
        {
            return $app->make(
                $app['config']['evt::listener'], [
                    $app['config']['evt::listeners_namespace']
                ]);
        });

        $config = $this->app['config'];

        /** @var Dispatcher $dispatcher */
        $dispatcher = $this->app['events'];
        $dispatcher->listen($config['liste_for'], 'StudioIgnis\Evt\EventListener');
    }
}
<commit_msg>Remove duplicate binding of the event listener<commit_after><?php namespace StudioIgnis\Evt\Laravel; 

use Illuminate\Events\Dispatcher;
use Illuminate\Support\ServiceProvider as IlluminateServiceProvider;

class ServiceProvider extends IlluminateServiceProvider
{
    public function boot()
    {
        $this->package('studioignis/evt', 'evt', __DIR__.'/../../');
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->bindDispatcher();
        $this->bindListener();
        $this->bindInflector();
        $this->initGlobalListener();
    }

    protected function bindDispatcher()
    {
        $this->app->bindShared('StudioIgnis\Evt\EventDispatcher', function ($app)
        {
            return $app->make($app['config']['evt::dispatcher']);
        });
    }

    protected function bindListener()
    {
        $this->app->bindShared('StudioIgnis\Evt\EventListener', function ($app)
        {
            return $app->make(
                $app['config']['evt::listener'],
                [$app['config']['evt::listeners_namespace']]
            );
        });
    }

    protected function bindInflector()
    {
        $this->app->bindShared('StudioIgnis\Evt\Inflection\EventNameInflector', function ($app)
        {
            return $app->make($app['config']['evt::inflector']);
        });
    }

    protected function initGlobalListener()
    {
        /** @var Dispatcher $dispatcher */
        $dispatcher = $this->app['events'];
        $dispatcher->listen($this->app['config']['listen_for'], 'StudioIgnis\Evt\EventListener');
    }
}

{'fraction_non_alphanumeric': 0.15957138719953665, 'fraction_numerical': 0.0, 'mean_word_length': 2.4471057884231535, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 40, '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': '4988401', 'n_tokens_mistral': 965, 'n_tokens_neox': 963, 'n_words': 148}