<commit_before><?php

namespace Cesargb\Update;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Support\ServiceProvider;

class UpdateServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->commands([
                Commands\CheckUpdate::class,
                Commands\Update::class,
            ]);
        }
        $this->app->booted(function () {
            if (config('update.scheduler.enable', false)) {
                $schedule = $this->app->make(Schedule::class);
                $schedule->command('update:check', ['--notify'])->cron(config('update.scheduler.cron', '0 9 * * * *'));
            }
        });
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
    }
}
<commit_msg>Update UpdateServiceProvider.php<commit_after><?php

namespace Cesargb\Update;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Support\ServiceProvider;

class UpdateServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
        $this->publishes([
            __DIR__.'/../config/update.php' => config_path('update.php'),
        ], 'config');
        
        if ($this->app->runningInConsole()) {
            $this->commands([
                Commands\CheckUpdate::class,
                Commands\Update::class,
            ]);
        }
        
        $this->app->booted(function () {
            if (config('update.scheduler.enable', false)) {
                $schedule = $this->app->make(Schedule::class);
                $schedule->command('update:check', ['--notify'])->cron(config('update.scheduler.cron', '0 9 * * * *'));
            }
        });
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
    }
}

{'fraction_non_alphanumeric': 0.14859632139399806, 'fraction_numerical': 0.001936108422071636, 'mean_word_length': 1.9194915254237288, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '4096396', 'n_tokens_mistral': 576, 'n_tokens_neox': 568, 'n_words': 93}