<commit_before><?php namespace RuleCom\Notifier;

use GuzzleHttp\Client;
use Illuminate\Support\ServiceProvider;
use RuleCom\Notifier\Channels\Email;
use RuleCom\Notifier\Channels\Slack;

class LaravelServiceProvider extends ServiceProvider
{
    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $emailChannel = new Email(new Client);
        $emailChannel->apiKey($this->app['config']['rule-notifier']['api_key']);
        $this->app->instance(Email::class, $emailChannel);

        $slackChannel = new Slack(new Client);
        $slackChannel->endpoint($this->app['config']['rule-notifier']['slack_endpoint']);
        $this->app->instance(Slack::class, $slackChannel);
    }

    /**
     * Perform post-registration booting of services.
     *
     * @return void
     */
    public function boot()
    {
        $this->publishes([
            __DIR__.'/../config/rule-notifier.php' => config_path('rule-notifier.php'),
        ]);
    }
}<commit_msg>changed laravel config binding<commit_after><?php namespace RuleCom\Notifier;

use GuzzleHttp\Client;
use Illuminate\Support\ServiceProvider;
use RuleCom\Notifier\Channels\Email;
use RuleCom\Notifier\Channels\Slack;

class LaravelServiceProvider extends ServiceProvider
{
    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $emailChannel = new Email(new Client);
        $emailChannel->apiKey($this->app['config']['rule-notifier']['api_key']);
        $this->app->instance(Email::class, $emailChannel);

        $slackChannel = new Slack(new Client);
        $slackChannel->endpoint($this->app['config']['rule-notifier']['slack_endpoint']);
        $this->app->instance(Slack::class, $slackChannel);
    }

    /**
     * Perform post-registration booting of services.
     *
     * @return void
     */
    public function boot()
    {
        $this->publishes([
            __DIR__.'/../config/rule-notifier.php' => $this->app->basePath() . '/config/rule-notifier.php',
        ]);
    }
}
{'fraction_non_alphanumeric': 0.15289058767319638, 'fraction_numerical': 0.0, 'mean_word_length': 2.943502824858757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '3843042', 'n_tokens_mistral': 626, 'n_tokens_neox': 619, 'n_words': 106}