<commit_before><?php namespace Nobox\LazyStrings;

use Illuminate\Support\ServiceProvider;

class LazyStringsServiceProvider 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('nobox/lazy-strings');
	}

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

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

}<commit_msg>Adding "lazy-strings" to app container and alias.<commit_after><?php namespace Nobox\LazyStrings;

use Illuminate\Support\ServiceProvider;

class LazyStringsServiceProvider 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('nobox/lazy-strings');
	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		// add LazyStrings class to app container
		$this->app['lazy-strings'] = $this->app->share(function($app) {
			return new LazyStrings();
		});

		// add class alias
		$this->app->booting(function() {
			$loader = \Illuminate\Foundation\AliasLoader::getInstance();
            $loader->alias('LazyStrings', 'Nobox\LazyStrings\LazyStrings');
		});
	}

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

}
{'fraction_non_alphanumeric': 0.13676212741087085, 'fraction_numerical': 0.0, 'mean_word_length': 3.237623762376238, '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': '7386627', 'n_tokens_mistral': 572, 'n_tokens_neox': 516, 'n_words': 135}