<commit_before><?php namespace Spatie\Activitylog;

use Illuminate\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;

class ActivitylogServiceProvider extends ServiceProvider {

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

	/**
	 * Bootstrap the application events.
	 *
	 * @return void
	 */
	public function boot()
	{

		if ($this->isLegacyLaravel())
		{
			$this->package('spatie/activitylog');
		}
		else
		{
			// Publish a config file
			$this->publishes([
				__DIR__.'/../../config/activitylog.php' => config_path('activitylog.php')
			], 'config');

// Publish your migrations
			$this->publishes([
				__DIR__.'/../../migrations/' => base_path('/database/migrations')
			], 'migrations');
		}
	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		$this->app->bind(
			'activity',
			'Spatie\Activitylog\ActivitylogSupervisor'
		);

		$this->app->bind(
			'Spatie\Activitylog\Handlers\ActivitylogHandler',
			'Spatie\Activitylog\Handlers\EloquentHandler'
		);
	}

	/**
	 * Get the services provided by the provider.
	 *
	 * @return array
	 */
	public function provides()
	{<commit_msg>remove legacy method<commit_after><?php namespace Spatie\Activitylog;

use Illuminate\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;

class ActivitylogServiceProvider extends ServiceProvider {

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

	/**
	 * Bootstrap the application events.
	 *
	 * @return void
	 */
	public function boot()
	{
		// Publish a config file
		$this->publishes([
			__DIR__.'/../../config/activitylog.php' => config_path('activitylog.php')
		], 'config');

// Publish your migrations
		$this->publishes([
			__DIR__.'/../../migrations/' => base_path('/database/migrations')
		], 'migrations');

	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		$this->app->bind(
			'activity',
			'Spatie\Activitylog\ActivitylogSupervisor'
		);

		$this->app->bind(
			'Spatie\Activitylog\Handlers\ActivitylogHandler',
			'Spatie\Activitylog\Handlers\EloquentHandler'
		);
	}

	/**
	 * Get the services provided by the provider.
	 *
	 * @return array
	 */
	public function provides()
	{
{'fraction_non_alphanumeric': 0.14904246461282264, 'fraction_numerical': 0.0, 'mean_word_length': 3.3219424460431655, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '2976399', 'n_tokens_mistral': 845, 'n_tokens_neox': 760, 'n_words': 160}