<commit_before><?php namespace Schuppo\PasswordStrength;

use Illuminate\Support\ServiceProvider;

class PasswordStrengthServiceProvider extends ServiceProvider {

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

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		// $this->app->bindShared('Schuppo\PasswordStrength', function() {
  //           return new PasswordStrength;
  //       });
	}

    public function boot()
    {
        $messages = [
              "letters" => "The :attribute must include at least one letter.",
            "case_diff" => "The :attribute must include both upper and lower case letters.",
            "numbers" => "The :attribute must include at least one number."
        ];

        $this->package('schuppo/password-strength');

        $pS = $this->app->make('Schuppo\PasswordStrength');

        $translator = $this->app['validator']->getTranslator();

        $this->app['validator']->extend('letters', function ($attribute, $value, $parameters) use ($pS) {
            return $pS->validateLetters($attribute, $value, $parameters);
        }, $messages['letters']);
        $this->app['validator']->extend('numbers', function ($attribute, $value, $parameters) use ($pS) {
            return $pS->validateNumbers($attribute, $value, $parameters);
        }, $messages['numbers']);
        $this->app['validator']->extend('caseDiff', function ($attribute, $value, $parameters) use ($pS) {
            return $pS->validateCaseDiff($attribute, $value, $parameters);
        }, $messages['case_diff']);
    }

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

}
<commit_msg>enable register method in the provider class again<commit_after><?php namespace Schuppo\PasswordStrength;

use Illuminate\Support\ServiceProvider;

class PasswordStrengthServiceProvider extends ServiceProvider {

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

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		$this->app->bindShared('Schuppo\PasswordStrength', function() {
            return new PasswordStrength;
        });
	}

    public function boot()
    {
        $messages = [
              "letters" => "The :attribute must include at least one letter.",
            "case_diff" => "The :attribute must include both upper and lower case letters.",
            "numbers" => "The :attribute must include at least one number."
        ];

        $this->package('schuppo/password-strength');

        $pS = $this->app->make('Schuppo\PasswordStrength');

        $translator = $this->app['validator']->getTranslator();

        $this->app['validator']->extend('letters', function ($attribute, $value, $parameters) use ($pS) {
            return $pS->validateLetters($attribute, $value, $parameters);
        }, $messages['letters']);
        $this->app['validator']->extend('numbers', function ($attribute, $value, $parameters) use ($pS) {
            return $pS->validateNumbers($attribute, $value, $parameters);
        }, $messages['numbers']);
        $this->app['validator']->extend('caseDiff', function ($attribute, $value, $parameters) use ($pS) {
            return $pS->validateCaseDiff($attribute, $value, $parameters);
        }, $messages['case_diff']);
    }

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

}

{'fraction_non_alphanumeric': 0.15461071231363888, 'fraction_numerical': 0.0, 'mean_word_length': 3.0210876803551607, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, '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': '2369473', 'n_tokens_mistral': 1053, 'n_tokens_neox': 990, 'n_words': 255}