<commit_before><?php
namespace Laranix\Themer;

use Illuminate\Support\ServiceProvider as BaseServiceProvider;
use Laranix\Themer\Image\Image;
use Laranix\Themer\Script\Script;
use Laranix\Themer\Style\Style;

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

    /**
     * Register providers.
     */
    public function register()
    {
        $this->app->bind(Repository::class, ThemeRepository::class);

        $this->app->singleton(Themer::class, function ($app) {
            return new Themer($app->make('config'), $app->make('request'), $app->make(ThemeRepository::class));
        });

        $this->app->singleton(Style::class, function ($app) {
            return new Style($app->make(Themer::class), $app->make('config'), $app->make('log'), $app->make('view'));
        });

        $this->app->singleton(Script::class, function ($app) {
            return new Script($app->make(Themer::class), $app->make('config'), $app->make('log'), $app->make('view'));
        });

        $this->app->singleton(Image::class, function ($app) {
            return new Image($app->make(Themer::class), $app->make('config'), $app->make('log'), $app->make('view'));
        });
    }

    /**
     * Return provided services.
     *
     * @return array
     */
    public function provides()
    {
        return [Repository::class, Themer::class, Style::class, Script::class, Image::class];
    }

    /**
     * Bootstrap app events.
     */
    public function boot()
    {
        $configFile = __DIR__.'/config/themer.php';

        $this->mergeConfigFrom($configFile, 'themer');

        if ($this->app->runningInConsole()) {
            $this->publishes([
                $configFile => config_path('themer.php'),
            ], 'laranix-configs');
        }
    }
}
<commit_msg>Removed unneeded constructor arg<commit_after><?php
namespace Laranix\Themer;

use Illuminate\Support\ServiceProvider as BaseServiceProvider;
use Laranix\Themer\Image\Image;
use Laranix\Themer\Script\Script;
use Laranix\Themer\Style\Style;

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

    /**
     * Register providers.
     */
    public function register()
    {
        $this->app->bind(Repository::class, ThemeRepository::class);

        $this->app->singleton(Themer::class, function ($app) {
            return new Themer($app->make('config'), $app->make('request'), $app->make(ThemeRepository::class));
        });

        $this->app->singleton(Style::class, function ($app) {
            return new Style($app->make(Themer::class), $app->make('config'), $app->make('log'));
        });

        $this->app->singleton(Script::class, function ($app) {
            return new Script($app->make(Themer::class), $app->make('config'), $app->make('log'));
        });

        $this->app->singleton(Image::class, function ($app) {
            return new Image($app->make(Themer::class), $app->make('config'), $app->make('log'));
        });
    }

    /**
     * Return provided services.
     *
     * @return array
     */
    public function provides()
    {
        return [Repository::class, Themer::class, Style::class, Script::class, Image::class];
    }

    /**
     * Bootstrap app events.
     */
    public function boot()
    {
        $configFile = __DIR__.'/config/themer.php';

        $this->mergeConfigFrom($configFile, 'themer');

        if ($this->app->runningInConsole()) {
            $this->publishes([
                $configFile => config_path('themer.php'),
            ], 'laranix-configs');
        }
    }
}

{'fraction_non_alphanumeric': 0.17620680559219204, 'fraction_numerical': 0.0, 'mean_word_length': 2.611428571428571, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 60, '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': '2738121', 'n_tokens_mistral': 1128, 'n_tokens_neox': 1106, 'n_words': 204}