<commit_before><?php

namespace RpsCompetition;

use Avh\Contracts\Foundation\ApplicationInterface;
use Avh\Support\ProviderRepository;
use Illuminate\Config\Repository;
use Illuminate\Container\Container;
use Illuminate\Filesystem\Filesystem;
use RpsCompetition\Helpers\CommonHelper;

/**
 * Class Application
 *
 * @package   RpsCompetition
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2014-2015, AVH Software
 */
class Application extends Container implements ApplicationInterface
{
    /**
     * The Plugin Version
     *
     * @var string
     */
    const VERSION = '';
    /**
     * Indicates if the application has "booted".
     *
     * @var bool
     */
    protected $booted = false;
    /**
     * The array of booted callbacks.
     *
     * @var array
     */
    protected $bootedCallbacks = [];
    /**
     * The array of booting callbacks.
     *
     * @var array
     */
    protected $bootingCallbacks = [];
    /**
     * The deferred services and their providers.
     *
     * @var array
     */
    protected $deferredServices = [];
    /**
     * The environment file to load during bootstrapping.
     *
     * @var string
     */
    protected $environmentFile = '.env';
    /**
     * Indicates if the application has been bootstrapped before.
     *
     * @var bool
     */
    protected $hasBeenBootstrapped = false;
    /**
     * The names of the loaded service providers.
     *
     * @var array
     */
    protected $loadedProviders = [];
    /**
     * All of the registered service providers.
     *
     * @var array
     */
    protected $serviceProviders = [];
    /**
     * The custom storage path defined by the developer.
     *
     * @var string
     */
    protected $storagePath;
    /**
     * The array of terminating callbacks.
     *
     * @var array
     */
    protected $terminatingCallbacks = [];

    /**
     * Constructor
     *
     */
    public function __construct()
    {
        $this->registerBaseBindings();
        $items = [];
        $this->instance('config', $config = new Repository($items));

        $this->config['app.providers'] = [
            '\RpsCompetition\Frontend\Requests\BanquetEntries\RequestBanquetEntriesServiceProvider',
            '\RpsCompetition\Frontend\Requests\EditTitle\RequestEditTitleServiceProvider',
            '\RpsCompetition\Frontend\Requests\MyEntries\RequestMyEntriesServiceProvider',
            '\RpsCompetition\Frontend\Requests\ParseQuery\ParseQueryServiceProvider',
            '\RpsCompetition\Frontend\Requests\UploadImage\RequestUploadImageServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\AllScores\AllScoresServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\BanquetEntries\BanquetEntriesServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\CategoryWinners\CategoryWinnersServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\EditTitle\EditTitleServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\MonthlyEntries\MonthlyEntriesServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\MonthlyWinners\MonthlyWinnersServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\MyEntries\MyEntriesServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\PersonWinners\PersonWinnersServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\ScoresCurrentUser\ScoresCurrentUserServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\UploadImage\UploadImageServiceProvider',
            '\RpsCompetition\Db\DbServiceProvider',
        ];
        $this->registerCoreContainerAliases();
        $this->registerConfiguredProviders();
    }

    /**
     * Get the service providers that have been loaded.
     *
     * @return array
     */
    public function getLoadedProviders()
    {
        return $this->loadedProviders;
    }

    /**
     * Get the registered service provider instance if it exists.
     *
     * @param  \Illuminate\Support\ServiceProvider|string $provider
     *
     * @return \Illuminate\Support\ServiceProvider|null
     */
    public function getProvider($provider)
    {
        $name = is_string($provider) ? $provider : get_class($provider);

        return array_first(<commit_msg>Client throws 404 error<commit_after><?php

namespace RpsCompetition;

use Avh\Contracts\Foundation\ApplicationInterface;
use Avh\Support\ProviderRepository;
use Illuminate\Config\Repository;
use Illuminate\Container\Container;
use Illuminate\Filesystem\Filesystem;
use RpsCompetition\Helpers\CommonHelper;

/**
 * Class Application
 *
 * @package   RpsCompetition
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2014-2015, AVH Software
 */
class Application extends Container implements ApplicationInterface
{
    /**
     * The Plugin Version
     *
     * @var string
     */
    const VERSION = '';
    /**
     * Indicates if the application has "booted".
     *
     * @var bool
     */
    protected $booted = false;
    /**
     * The array of booted callbacks.
     *
     * @var array
     */
    protected $bootedCallbacks = [];
    /**
     * The array of booting callbacks.
     *
     * @var array
     */
    protected $bootingCallbacks = [];
    /**
     * The deferred services and their providers.
     *
     * @var array
     */
    protected $deferredServices = [];
    /**
     * The environment file to load during bootstrapping.
     *
     * @var string
     */
    protected $environmentFile = '.env';
    /**
     * Indicates if the application has been bootstrapped before.
     *
     * @var bool
     */
    protected $hasBeenBootstrapped = false;
    /**
     * The names of the loaded service providers.
     *
     * @var array
     */
    protected $loadedProviders = [];
    /**
     * All of the registered service providers.
     *
     * @var array
     */
    protected $serviceProviders = [];
    /**
     * The custom storage path defined by the developer.
     *
     * @var string
     */
    protected $storagePath;
    /**
     * The array of terminating callbacks.
     *
     * @var array
     */
    protected $terminatingCallbacks = [];

    /**
     * Constructor
     *
     */
    public function __construct()
    {
        $this->registerBaseBindings();
        $items = [];
        $this->instance('config', $config = new Repository($items));

        $this->config['app.providers'] = [
            '\RpsCompetition\Frontend\Requests\BanquetEntries\RequestBanquetEntriesServiceProvider',
            '\RpsCompetition\Frontend\Requests\EditTitle\RequestEditTitleServiceProvider',
            '\RpsCompetition\Frontend\Requests\MyEntries\RequestMyEntriesServiceProvider',
            '\RpsCompetition\Frontend\Requests\ParseQuery\ParseQueryServiceProvider',
            '\RpsCompetition\Frontend\Requests\UploadImage\RequestUploadImageServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\AllScores\AllScoresServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\BanquetEntries\BanquetEntriesServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\CategoryWinners\CategoryWinnersServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\EditTitle\EditTitleServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\MonthlyEntries\MonthlyEntriesServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\MonthlyWinners\MonthlyWinnersServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\MyEntries\MyEntriesServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\PersonWinners\PersonWinnersServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\ScoresCurrentUser\ScoresCurrentUserServiceProvider',
            '\RpsCompetition\Frontend\Shortcodes\UploadImage\UploadImageServiceProvider',
            '\RpsCompetition\Db\DbServiceProvider',
            '\RpsCompetition\Frontend\Requests\RpsClient\RpsClientServiceProvider',
        ];
        $this->registerCoreContainerAliases();
        $this->registerConfiguredProviders();
    }

    /**
     * Get the service providers that have been loaded.
     *
     * @return array
     */
    public function getLoadedProviders()
    {
        return $this->loadedProviders;
    }

    /**
     * Get the registered service provider instance if it exists.
     *
     * @param  \Illuminate\Support\ServiceProvider|string $provider
     *
     * @return \Illuminate\Support\ServiceProvider|null
     */
    public function getProvider($provider)
    {
        $name = is_string($provider) ? $provider : get_class($provider);

        return array_first(
{'fraction_non_alphanumeric': 0.10556844547563805, 'fraction_numerical': 0.0022041763341067284, 'mean_word_length': 2.6192275398824516, 'pattern_counts': {'":': 0, '<': 11, '<?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': '3378372', 'n_tokens_mistral': 2387, 'n_tokens_neox': 2334, 'n_words': 431}