<commit_before><?php

namespace Nova\Module\Providers;

use Nova\Module\Console\Generators\MakeModuleCommand;
use Nova\Module\Console\Generators\MakeControllerCommand;
use Nova\Module\Console\Generators\MakeModelCommand;
use Nova\Module\Console\Generators\MakeMigrationCommand;
use Nova\Module\Console\Generators\MakeSeederCommand;
use Nova\Support\ServiceProvider;


class GeneratorServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     */
    public function boot()
    {
        //
    }

    /**
     * Register the application services.
     */
    public function register()
    {
        $commands = array('MakeModule', 'MakeController', 'MakeModel', 'MakeMigration', 'MakeSeeder');

        foreach ($commands as $command) {
            $this->{'register' .$command .'Command'}();
        }
    }

    /**
     * Register the make:module command.
     */
    private function registerMakeModuleCommand()
    {
        $this->app->bindShared('command.make.module', function ($app) {
            return new MakeModuleCommand($app['files'], $app['modules']);
        });

        $this->commands('command.make.module');
    }

    /**
     * Register the make:module:controller command.
     */
    private function registerMakeControllerCommand()
    {
        $this->app->bindShared('command.make.module.controller', function ($app) {
            return new MakeControllerCommand($app['files'], $app['modules']);
        });

        $this->commands('command.make.module.controller');
    }

    /**
     * Register the make:module:model command.
     */
    private function registerMakeModelCommand()
    {
        $this->app->bindShared('command.make.module.model', function ($app) {
            return new MakeModelCommand($app['files'], $app['modules']);
        });

        $this->commands('command.make.module.model');
    }

    /**
     * Register the make:module:migration command.
     */
    private function registerMakeMigrationCommand()
    {
        $this->app->bindShared('command.make.module.migration', function ($app) {
            return new MakeMigrationCommand($app['files'], $app['modules']);
        });

        $this->commands('command.make.module.migration');
    }

    /**
     * Register the make:module:seeder command.
     */
    private function registerMakeSeederCommand()
    {
        $this->app->bindShared('command.make.module.seeder', function ($app) {
            return new MakeSeederCommand($app['files'], $app['modules']);
        });

        $this->commands('command.make.module.seeder');
    }
}<commit_msg>Improve the Nova\Module\Providers\GeneratorServiceProvider<commit_after><?php

namespace Nova\Module\Providers;

use Nova\Module\Console\Generators\MakeModuleCommand;
use Nova\Module\Console\Generators\MakeControllerCommand;
use Nova\Module\Console\Generators\MakeModelCommand;
use Nova\Module\Console\Generators\MakePolicyCommand;
use Nova\Module\Console\Generators\MakeMigrationCommand;
use Nova\Module\Console\Generators\MakeSeederCommand;
use Nova\Support\ServiceProvider;


class GeneratorServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     */
    public function boot()
    {
        //
    }

    /**
     * Register the application services.
     */
    public function register()
    {
        $commands = array('MakeModule', 'MakeController', 'MakeModel', 'MakePolicy', 'MakeMigration', 'MakeSeeder');

        foreach ($commands as $command) {
            $this->{'register' .$command .'Command'}();
        }
    }

    /**
     * Register the make:module command.
     */
    private function registerMakeModuleCommand()
    {
        $this->app->bindShared('command.make.module', function ($app) {
            return new MakeModuleCommand($app['files'], $app['modules']);
        });

        $this->commands('command.make.module');
    }

    /**
     * Register the make:module:controller command.
     */
    private function registerMakeControllerCommand()
    {
        $this->app->bindShared('command.make.module.controller', function ($app) {
            return new MakeControllerCommand($app['files'], $app['modules']);
        });

        $this->commands('command.make.module.controller');
    }

    /**
     * Register the make:module:model command.
     */
    private function registerMakeModelCommand()
    {
        $this->app->bindShared('command.make.module.model', function ($app) {
            return new MakeModelCommand($app['files'], $app['modules']);
        });

        $this->commands('command.make.module.model');
    }

    /**
     * Register the make:module:policy command.
     */
    private function registerMakePolicyCommand()
    {
        $this->app->bindShared('command.make.module.policy', function ($app) {
            return new MakePolicyCommand($app['files'], $app['modules']);
        });

        $this->commands('command.make.module.policy');
    }

    /**
     * Register the make:module:migration command.
     */
    private function registerMakeMigrationCommand()
    {
        $this->app->bindShared('command.make.module.migration', function ($app) {
            return new MakeMigrationCommand($app['files'], $app['modules']);
        });

        $this->commands('command.make.module.migration');
    }

    /**
     * Register the make:module:seeder command.
     */
    private function registerMakeSeederCommand()
    {
        $this->app->bindShared('command.make.module.seeder', function ($app) {
            return new MakeSeederCommand($app['files'], $app['modules']);
        });

        $this->commands('command.make.module.seeder');
    }
}
{'fraction_non_alphanumeric': 0.1474426807760141, 'fraction_numerical': 0.0, 'mean_word_length': 2.824005394470668, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 38, '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': '7480752', 'n_tokens_mistral': 1528, 'n_tokens_neox': 1505, 'n_words': 262}