<commit_before><?php namespace Omniphx\Forrest\Providers\Laravel;

use Config;
use Illuminate\Support\ServiceProvider;

class ForrestServiceProvider extends ServiceProvider {

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

	/**
	 * Bootstrap the application events.
	 *
	 * @return void
	 */
	public function boot()
	{
		$this->package('omniphx/forrest', null, __DIR__.'/../../../..');

		$authentication  = Config::get('forrest::authentication');

		include __DIR__ . "/Routes/$authentication.php";
	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{

		$this->app['forrest'] = $this->app->share(function($app)
		{
			$settings  = Config::get('forrest::config');

			$client   = new \GuzzleHttp\Client();
			$redirect = new \Omniphx\Forrest\Providers\Laravel\LaravelRedirect();
			$storage  = new \Omniphx\Forrest\Providers\Laravel\LaravelSession();
			$input    = new \Omniphx\Forrest\Providers\Laravel\LaravelInput();

			$authentication = '\\Omniphx\\Forrest\\Authentications\\';
			$authentication .= $settings['authentication'];

			return new $authentication($client, $storage, $redirect, $input, $settings);
		});
	}

	/**
	 * Get the services provided by the provider.
	 *
	 * @return array
	 */
	public function provides()<commit_msg>Bug fix on adding event handling<commit_after><?php namespace Omniphx\Forrest\Providers\Laravel;

use Config;
use Illuminate\Support\ServiceProvider;

class ForrestServiceProvider extends ServiceProvider {

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

	/**
	 * Bootstrap the application events.
	 *
	 * @return void
	 */
	public function boot()
	{
		$this->package('omniphx/forrest', null, __DIR__.'/../../../..');

		$authentication  = Config::get('forrest::authentication');

		include __DIR__ . "/Routes/$authentication.php";
	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{

		$this->app['forrest'] = $this->app->share(function($app)
		{
			$settings  = Config::get('forrest::config');

			$client   = new \GuzzleHttp\Client();
			$redirect = new \Omniphx\Forrest\Providers\Laravel\LaravelRedirect();
			$storage  = new \Omniphx\Forrest\Providers\Laravel\LaravelSession();
			$input    = new \Omniphx\Forrest\Providers\Laravel\LaravelInput();
			$event    = new \Omniphx\Forrest\Providers\Laravel\LaravelEvent();

			$authentication = '\\Omniphx\\Forrest\\Authentications\\';
			$authentication .= $settings['authentication'];

			return new $authentication($client, $storage, $redirect, $input, $event, $settings);
		});
	}

	/**
	 * Get the services provided by the provider.
	 *
	 * @return array
	 */
	public function provides()
{'fraction_non_alphanumeric': 0.15806336774652902, 'fraction_numerical': 0.0, 'mean_word_length': 3.652317880794702, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1087746', 'n_tokens_mistral': 994, 'n_tokens_neox': 876, 'n_words': 186}