<commit_before><?php

namespace Michaeljennings\Carpenter;

class Laravel4ServiceProvider extends CarpenterServiceProvider
{
    /**
     * Bootstrap the application events.
     *
     * @return void
     * @codeCoverageIgnore
     */
    public function boot()
    {
        $this->package('michaeljennings/carpenter', 'carpenter');
    }
}<commit_msg>Fix how the config is loaded in laravel 4<commit_after><?php

namespace Michaeljennings\Carpenter;

class Laravel4ServiceProvider extends CarpenterServiceProvider
{
    /**
     * Bootstrap the application events.
     *
     * @return void
     * @codeCoverageIgnore
     */
    public function boot()
    {
        $this->package('michaeljennings/carpenter', 'carpenter', realpath(__DIR__ . '/../'));
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->app->singleton('michaeljennings.carpenter', function ($app) {
            $config = [
                'store' => $app['config']['carpenter::store'],
                'paginator' => $app['config']['carpenter::paginator'],
                'session' => $app['config']['carpenter::session'],
                'view' => $app['config']['carpenter::view'],
            ];

            return new Carpenter($config);
        });

        $this->app->alias('michaeljennings.carpenter', 'Michaeljennings\Carpenter\Contracts\Carpenter');
    }
}
{'fraction_non_alphanumeric': 0.14345696291112667, 'fraction_numerical': 0.002099370188943317, 'mean_word_length': 2.5396039603960396, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4915698', 'n_tokens_mistral': 429, 'n_tokens_neox': 410, 'n_words': 73}