<commit_before><?php

namespace MarcusJaschen\Collmex;

/**
 * Laravel 5 Service Provider for Collmex PHP SDK.
 *
 * @author   <NAME> <<EMAIL>>
 * @license  http://www.opensource.org/licenses/mit-license MIT License
 *
 * @link     https://github.com/mjaschen/collmex
 */
class CollmexServiceProvider extends \Illuminate\Support\ServiceProvider
{
    /**
     * @var bool
     */
    protected $defer = true;

    /**
     * Registers the package.
     */
    public function boot()
    {
        $this->publishes(
            [
                __DIR__ . '/../config/collmex.php' => config_path('collmex.php'),
            ],
            'config'
        );
    }

    /**
     * Register the service provider.
     */
    public function register()
    {
        $this->mergeConfigFrom(__DIR__ . '/../config/collmex.php', 'collmex');

        $this->registerClient();
        $this->registerRequest();
    }

    /**
     * Registers the HTTP client.
     */
    protected function registerClient()
    {
        $this->app->singleton(
            'collmex.client',
            function () {
                return new \MarcusJaschen\Collmex\Client\Curl(
                    config('collmex.user'),
                    config('collmex.password'),
                    config('collmex.customer')
                );
            }
        );
    }

    /**
     * Registers the Collmex Request object.
     */
    protected function registerRequest()
    {
        $this->app->singleton(
            'collmex.request',
            function ($app) {
                return new Request($app->make('collmex.client'));
            }
        );
    }

    /**
     * @return array
     */
    public function provides()<commit_msg>[CLEANUP] Add missing void return type annotations<commit_after><?php

namespace MarcusJaschen\Collmex;

/**
 * Laravel 5 Service Provider for Collmex PHP SDK.
 *
 * @author   <NAME> <<EMAIL>>
 * @license  http://www.opensource.org/licenses/mit-license MIT License
 *
 * @link     https://github.com/mjaschen/collmex
 */
class CollmexServiceProvider extends \Illuminate\Support\ServiceProvider
{
    /**
     * @var bool
     */
    protected $defer = true;

    /**
     * Registers the package.
     *
     * @return void
     */
    public function boot()
    {
        $this->publishes(
            [
                __DIR__ . '/../config/collmex.php' => config_path('collmex.php'),
            ],
            'config'
        );
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
        $this->mergeConfigFrom(__DIR__ . '/../config/collmex.php', 'collmex');

        $this->registerClient();
        $this->registerRequest();
    }

    /**
     * Registers the HTTP client.
     *
     * @return void
     */
    protected function registerClient()
    {
        $this->app->singleton(
            'collmex.client',
            function () {
                return new \MarcusJaschen\Collmex\Client\Curl(
                    config('collmex.user'),
                    config('collmex.password'),
                    config('collmex.customer')
                );
            }
        );
    }

    /**
     * Registers the Collmex Request object.
     *
     * @return void
     */
    protected function registerRequest()
    {
        $this->app->singleton(
            'collmex.request',
            function ($app) {
                return new Request($app->make('collmex.client'));
            }
        );
    }

    /**
     * @return array
     */
    public function provides()
{'fraction_non_alphanumeric': 0.13478139793929267, 'fraction_numerical': 0.000556947925368978, 'mean_word_length': 1.552949538024165, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 29, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6588655', 'n_tokens_mistral': 1052, 'n_tokens_neox': 1019, 'n_words': 189}