<commit_before><?php

namespace LaraLeague\Package;

use Route;
use Illuminate\Support\ServiceProvider;

/**
 * Class PackageServiceProvider
 * @package LaraLeague\Package
 */
class PackageServiceProvider extends ServiceProvider
{
    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
    }

    /**
     * Application is booting
     */
    public function boot()
    {

        $this->registerViews();
        $this->registerMigrations();
        $this->registerAssets();
        $this->registerTranslations();
        $this->registerConfigurations();

        $this->registerRoutes();
    }<commit_msg>prevent route definition when routes are cached<commit_after><?php

namespace LaraLeague\Package;

use Route;
use Illuminate\Support\ServiceProvider;

/**
 * Class PackageServiceProvider
 * @package LaraLeague\Package
 */
class PackageServiceProvider extends ServiceProvider
{
    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register()
    {
    }

    /**
     * Application is booting
     */
    public function boot()
    {

        $this->registerViews();
        $this->registerMigrations();
        $this->registerAssets();
        $this->registerTranslations();
        $this->registerConfigurations();

        if(! $this->app->routesAreCached()) {
            $this->registerRoutes();
        }
    }
{'fraction_non_alphanumeric': 0.12150837988826815, 'fraction_numerical': 0.0, 'mean_word_length': 2.5036674816625917, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '6515475', 'n_tokens_mistral': 389, 'n_tokens_neox': 384, 'n_words': 80}