<commit_before><?php namespace Pingpong\Modules;

use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;
use Pingpong\Generators\Stub;
use Pingpong\Modules\Commands;

class ModulesServiceProvider extends ServiceProvider {

    /**
     * Indicates if loading of the provider is deferred.
     *
     * @var bool
     */
    protected $defer = false;

    /**
     * Booting the package.
     *
     * @return void
     */
    public function boot()
    {
        $this->app['modules']->boot();

        $this->app['modules']->register();

        Stub::setPath(__DIR__ . '/Commands/stubs');
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->registerNamespaces();
        $this->registerServices();
        $this->registerProviders();
    }
    
    /**
     * Register package's namespaces.
     * 
     * @return void
     */
    protected function registerNamespaces()
    {
        $configPath = __DIR__.'/../../../src/config/config.php';
        $this->mergeConfigFrom($configPath, 'modules');
        $this->publishes([$configPath => config_path('modules.php')]);
    }

    /**
     * Register laravel html package.
     *
     * @return void
     */
    protected function registerHtml()
    {
        $this->app->register('Illuminate\Html\HtmlServiceProvider');

        $aliases = [
            'HTML' => 'Illuminate\Html\HtmlFacade',
            'Form' => 'Illuminate\Html\FormFacade',
        ];

        AliasLoader::getInstance($aliases)->register();
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    protected function registerServices()
    {
        $this->app->bindShared('modules', function ($app)
        {
            $path = $app['config']->get('modules::paths.modules');

            return new Repository($app, $path);
        });
    }

    /**
     * Get the services provided by the provider.
     *
     * @return array
     */
    public function provides()
    {
        return array('modules');
    }

    /**
     * Register providers.
     *
     * @return void
     */
    protected function registerProviders()<commit_msg>Fix config<commit_after><?php namespace Pingpong\Modules;

use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;
use Pingpong\Generators\Stub;
use Pingpong\Modules\Commands;

class ModulesServiceProvider extends ServiceProvider {

    /**
     * Indicates if loading of the provider is deferred.
     *
     * @var bool
     */
    protected $defer = false;

    /**
     * Booting the package.
     *
     * @return void
     */
    public function boot()
    {
        $this->app['modules']->boot();

        $this->app['modules']->register();

        Stub::setPath(__DIR__ . '/Commands/stubs');
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->registerNamespaces();
        $this->registerServices();
        $this->registerProviders();
    }
    
    /**
     * Register package's namespaces.
     * 
     * @return void
     */
    protected function registerNamespaces()
    {
        $configPath = __DIR__.'/../../../src/config/config.php';
        $this->mergeConfigFrom($configPath, 'modules');
        $this->publishes([$configPath => config_path('modules.php')]);
    }

    /**
     * Register laravel html package.
     *
     * @return void
     */
    protected function registerHtml()
    {
        $this->app->register('Illuminate\Html\HtmlServiceProvider');

        $aliases = [
            'HTML' => 'Illuminate\Html\HtmlFacade',
            'Form' => 'Illuminate\Html\FormFacade',
        ];

        AliasLoader::getInstance($aliases)->register();
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    protected function registerServices()
    {
        $this->app->bindShared('modules', function ($app)
        {
            $path = $app['config']->get('modules.paths.modules');

            return new Repository($app, $path);
        });
    }

    /**
     * Get the services provided by the provider.
     *
     * @return array
     */
    public function provides()
    {
        return array('modules');
    }

    /**
     * Register providers.
     *
     * @return void
     */
    protected function registerProviders()
{'fraction_non_alphanumeric': 0.1427601809954751, 'fraction_numerical': 0.0, 'mean_word_length': 2.0054384772263765, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, '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': '2551470', 'n_tokens_mistral': 1256, 'n_tokens_neox': 1251, 'n_words': 242}