<commit_before><?php namespace CodeZero\Flash;

use Illuminate\Support\ServiceProvider;

class FlashServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application.
     *
     * @return void
     */
    public function boot()
    {
        $this->loadViews();
        $this->setPublishPaths();
        $this->mergeConfig();
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->registerSessionStore();
        $this->registerFlasher();
        $this->registerFlash();
        $this->registerFlashAlias();
    }

    /**
     * Register the SessionStore binding.
     *
     * @return void
     */
    private function registerSessionStore()
    {
        $this->app->bind(
            'CodeZero\Flash\SessionStore\SessionStore',
            'CodeZero\Flash\SessionStore\LaravelSessionStore'
        );
    }

    /**
     * Register the Flasher binding.
     *
     * @return void
     */
    private function registerFlasher()
    {
        $this->app->bind(
            'CodeZero\Flash\Flasher',
            'CodeZero\Flash\Flash'
        );
    }

    /**
     * Register the Flash binding.
     *
     * @return void
     */
    private function registerFlash()
    {
        $this->app->singleton('CodeZero\Flash\Flash', function () {
            $config = config('flash');
            $session = app()->make('CodeZero\Flash\SessionStore\SessionStore');

            return new Flash($config, $session);
        });
    }

    /**
     * Register the Flash alias.
     *
     * @return void
     */
    private function registerFlashAlias()
    {
        $this->app->alias('CodeZero\Flash\Flasher', 'flash');
    }

    /**
     * Load views.
     *
     * @return void
     */<commit_msg>Remove Flash alias registration from ServiceProvider<commit_after><?php namespace CodeZero\Flash;

use Illuminate\Support\ServiceProvider;

class FlashServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application.
     *
     * @return void
     */
    public function boot()
    {
        $this->loadViews();
        $this->setPublishPaths();
        $this->mergeConfig();
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->registerSessionStore();
        $this->registerFlasher();
        $this->registerFlash();
    }

    /**
     * Register the SessionStore binding.
     *
     * @return void
     */
    private function registerSessionStore()
    {
        $this->app->bind(
            'CodeZero\Flash\SessionStore\SessionStore',
            'CodeZero\Flash\SessionStore\LaravelSessionStore'
        );
    }

    /**
     * Register the Flasher binding.
     *
     * @return void
     */
    private function registerFlasher()
    {
        $this->app->bind(
            'CodeZero\Flash\Flasher',
            'CodeZero\Flash\Flash'
        );
    }

    /**
     * Register the Flash binding.
     *
     * @return void
     */
    private function registerFlash()
    {
        $this->app->singleton('CodeZero\Flash\Flash', function () {
            $config = config('flash');
            $session = app()->make('CodeZero\Flash\SessionStore\SessionStore');

            return new Flash($config, $session);
        });
    }

    /**
     * Load views.
     *
     * @return void
     */
{'fraction_non_alphanumeric': 0.13171017893810502, 'fraction_numerical': 0.0, 'mean_word_length': 1.7950819672131149, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 32, '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': '6173845', 'n_tokens_mistral': 980, 'n_tokens_neox': 943, 'n_words': 175}