<commit_before><?php namespace TwswebInt\CamelotAuth;

use TwswebInt\CamelotAuth\SessionDrivers\IlluminateSessionDriver;
use TwswebInt\CamelotAuth\CookieDrivers\IlluminateCookieDriver;
use Illuminate\Support\ServiceProvider;
use Config;

class CamelotAuthServiceProvider 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('twsweb-int/camelot-auth');
	}

	/**
	 * Register the {{full_package}} service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		//$this->package('twsweb-int/camelot-auth');
		$this->app['config']->package('twsweb-int/camelot-auth', __DIR__.'/../../config');
		$app = $this->app;
		$this->app['camelot'] = $this->app->share(function($app)
		{
			//var_dump($app['config']['camelot-auth::camelot']);
			return new Camelot(
				new IlluminateSessionDriver($app['session']),
				new IlluminateCookieDriver($app['cookie']),
				$app['config']['camelot-auth::camelot'],
				$app['request']->path()
				);
		});
		
		//var_dump(Config::get('camelot-auth::camelot.default_driver'));
		//var_dump($this->app['config']->get('camelot-auth::camelot.default_driver'));
		
//
	}

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

}<commit_msg>code cleanup<commit_after><?php namespace TwswebInt\CamelotAuth;

use TwswebInt\CamelotAuth\SessionDrivers\IlluminateSessionDriver;
use TwswebInt\CamelotAuth\CookieDrivers\IlluminateCookieDriver;
use Illuminate\Support\ServiceProvider;
use Config;

class CamelotAuthServiceProvider 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('twsweb-int/camelot-auth');
	}

	/**
	 * Register the {{full_package}} service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		//$this->package('twsweb-int/camelot-auth');
		$this->app['config']->package('twsweb-int/camelot-auth', __DIR__.'/../../config');
		$app = $this->app;
		$this->app['camelot'] = $this->app->share(function($app)
		{
			//var_dump($app['config']['camelot-auth::camelot']);
			return new Camelot(
				new IlluminateSessionDriver($app['session']),
				new IlluminateCookieDriver($app['cookie']),
				$app['config']['camelot-auth::camelot'],
				$app['request']->path()
				);
		});
	}

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

}
{'fraction_non_alphanumeric': 0.17474674384949349, 'fraction_numerical': 0.0, 'mean_word_length': 4.0548446069469835, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '3868570', 'n_tokens_mistral': 1019, 'n_tokens_neox': 930, 'n_words': 161}