<commit_before><?php namespace Angel\Products;

use Illuminate\Support\ServiceProvider;
use App;

class ProductsServiceProvider 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('angel/products');

		include __DIR__ . '../../../routes.php';
	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		//-------------------
		// Models
		//-------------------
		App::bind('Product', function() {
			return new \Angel\Products\Product;
		});
		App::bind('ProductCategory', function() {
			return new \Angel\Products\ProductCategory;
		});
		App::bind('ProductImage', function() {
			return new \Angel\Products\ProductImage;
		});
		App::bind('ProductOption', function() {
			return new \Angel\Products\ProductOption;
		});
		App::bind('ProductOptionItem', function() {
			return new \Angel\Products\ProductOptionItem;
		});

		//-------------------
		// Controllers
		//-------------------
		App::bind('AdminProductCategoryController', function() {
			return new \Angel\Products\AdminProductCategoryController;
		});
		App::bind('AdminProductController', function() {
			return new \Angel\Products\AdminProductController;
		});
	}

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

}
<commit_msg>Singleton<commit_after><?php namespace Angel\Products;

use Illuminate\Support\ServiceProvider;
use App;

class ProductsServiceProvider 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('angel/products');

		include __DIR__ . '../../../routes.php';
	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		//-------------------
		// Models
		//-------------------
		App::singleton('Product', function() {
			return new \Angel\Products\Product;
		});
		App::singleton('ProductCategory', function() {
			return new \Angel\Products\ProductCategory;
		});
		App::singleton('ProductImage', function() {
			return new \Angel\Products\ProductImage;
		});
		App::singleton('ProductOption', function() {
			return new \Angel\Products\ProductOption;
		});
		App::singleton('ProductOptionItem', function() {
			return new \Angel\Products\ProductOptionItem;
		});

		//-------------------
		// Controllers
		//-------------------
		App::singleton('AdminProductCategoryController', function() {
			return new \Angel\Products\AdminProductCategoryController;
		});
		App::singleton('AdminProductController', function() {
			return new \Angel\Products\AdminProductController;
		});
	}

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

}

{'fraction_non_alphanumeric': 0.19159335288367546, 'fraction_numerical': 0.0, 'mean_word_length': 2.7761377613776137, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '926070', 'n_tokens_mistral': 1001, 'n_tokens_neox': 858, 'n_words': 194}