<commit_before><?php
/**
 * QualtricsServiceProvider.php
 */

namespace Morphatic\Qualtrics;

use Illuminate\Support\ServiceProvider;

/**
 * QualtricsServiceProvider class
 *
 * This class registers the Qualtrics package and all of its
 * exceptions with the Laravel 4 framework.
 */
class QualtricsServiceProvider 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( 'morphatic/qualtrics' );
	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		// register our class
		$this->app[ 'qualtrics' ] = $this->app->share( function( $app ) { return new Qualtrics; } );
		
		// create an alias so users don't have to add this entry to their app.config file
		$this->app->booting( function() {
			$loader = \Illuminate\Foundation\AliasLoader::getInstance();
			$loader->alias( 'Qualtrics', 'Morphatic\Qualtrics\Qualtrics' );
		});
		
		// register exception handlers
		$this->app->error( function( Exceptions\QualtricsException $e ) {
			return $e->getCode() . ': ' . $e->getMessage();
		});
		$this->app->error( function( Exceptions\QualtricsXMLException $e ) {
			return $e->getCode() . ': ' . $e->getMessage();
		});
		$this->app->error( function( Exceptions\MissingParameterException $e ) {
			return $e->getCode() . ': ' . $e->getMessage();
		});
	}<commit_msg>removed unneeded exception from service provider<commit_after><?php
/**
 * QualtricsServiceProvider.php
 */

namespace Morphatic\Qualtrics;

use Illuminate\Support\ServiceProvider;

/**
 * QualtricsServiceProvider class
 *
 * This class registers the Qualtrics package and all of its
 * exceptions with the Laravel 4 framework.
 */
class QualtricsServiceProvider 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( 'morphatic/qualtrics' );
	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		// register our class
		$this->app[ 'qualtrics' ] = $this->app->share( function( $app ) { return new Qualtrics; } );
		
		// create an alias so users don't have to add this entry to their app.config file
		$this->app->booting( function() {
			$loader = \Illuminate\Foundation\AliasLoader::getInstance();
			$loader->alias( 'Qualtrics', 'Morphatic\Qualtrics\Qualtrics' );
		});
		
		// register exception handlers
		$this->app->error( function( Exceptions\QualtricsException $e ) {
			return $e->getCode() . ': ' . $e->getMessage();
		});
		$this->app->error( function( Exceptions\MissingParameterException $e ) {
			return $e->getCode() . ': ' . $e->getMessage();
		});
	}
{'fraction_non_alphanumeric': 0.14926395070181445, 'fraction_numerical': 0.0006846970215679561, 'mean_word_length': 3.509259259259259, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, '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': '3744531', 'n_tokens_mistral': 979, 'n_tokens_neox': 891, 'n_words': 234}