<commit_before><?php namespace Avanderbergh\Schoology;

use OneLogin_Saml2_Auth;
use URL;
use Illuminate\Support\ServiceProvider;

class Saml2ServiceProvider extends ServiceProvider
{

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

    /**
     * Bootstrap the application events.
     *
     * @return void
     */
    public function boot()
    {
        include __DIR__ . '/../../routes.php';
        /*
         * publish the saml_settings file to the config_path
         */
         $this->publishes([
             __DIR__.'/../../config/saml2_settings.php' => config_path('saml2_settings.php'),
             __DIR__.'/../../migrations/2015_07_01_000000_create_oauth_store_table.php' => database_path('migrations/2015_07_01_000000_create_oauth_store_table.php')
         ]);
    }

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

        $this->app->singleton('Avanderbegh\Schoology\Saml2Auth', function ($app) {

            $config = config('saml2_settings');

            $config['sp']['entityId'] = URL::route('saml_metadata');

            $config['sp']['assertionConsumerService']['url'] = URL::route('saml_acs');

            $config['sp']['singleLogoutService']['url'] = URL::route('saml_sls');

            $auth = new OneLogin_Saml2_Auth($config);

            return new Saml2Auth($auth);

        });

    }

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

}<commit_msg>Fix typo in the Service Provider<commit_after><?php namespace Avanderbergh\Schoology;

use OneLogin_Saml2_Auth;
use URL;
use Illuminate\Support\ServiceProvider;

class Saml2ServiceProvider extends ServiceProvider
{

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

    /**
     * Bootstrap the application events.
     *
     * @return void
     */
    public function boot()
    {
        include __DIR__ . '/../../routes.php';
        /*
         * publish the saml_settings file to the config_path
         */
         $this->publishes([
             __DIR__.'/../../config/saml2_settings.php' => config_path('saml2_settings.php'),
             __DIR__.'/../../migrations/2015_07_01_000000_create_oauth_store_table.php' => database_path('migrations/2015_07_01_000000_create_oauth_store_table.php')
         ]);
    }

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

        $this->app->singleton('Avanderbergh\Schoology\Saml2Auth', function ($app) {
            $config = config('saml2_settings');
            $config['sp']['entityId'] = URL::route('saml_metadata');
            $config['sp']['assertionConsumerService']['url'] = URL::route('saml_acs');
            $config['sp']['singleLogoutService']['url'] = URL::route('saml_sls');
            $auth = new OneLogin_Saml2_Auth($config);
            return new \Avanderbergh\Schoology\Saml2Auth($auth);
        });

    }

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

}
{'fraction_non_alphanumeric': 0.13901345291479822, 'fraction_numerical': 0.021524663677130046, 'mean_word_length': 2.2612085769980506, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4258598', 'n_tokens_mistral': 1051, 'n_tokens_neox': 995, 'n_words': 185}