<commit_before><?php namespace Orchestra\Optimize;

use Illuminate\Support\ServiceProvider;

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

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->app['orchestra.commands.optimize'] = $this->app->share(function () {
            $components = require __DIR__."/compile.php";
            return new OptimizeCommand($components);
        });

        $this->commands('orchestra.commands.optimize');
    }

    /**<commit_msg>Update service provider to use bindShared.<commit_after><?php namespace Orchestra\Optimize;

use Illuminate\Support\ServiceProvider;

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

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->app->bindShared('orchestra.commands.optimize', function () {
            $components = require __DIR__."/compile.php";
            return new OptimizeCommand($components);
        });

        $this->commands('orchestra.commands.optimize');
    }

    /**
{'fraction_non_alphanumeric': 0.11899641577060932, 'fraction_numerical': 0.0, 'mean_word_length': 2.42997542997543, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '7653873', 'n_tokens_mistral': 372, 'n_tokens_neox': 371, 'n_words': 85}