<commit_before><?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}<commit_msg>feat(options): add options to config<commit_after><?php

namespace App\Providers;

use App\Entities\Option;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        $this->initialSettings();
    }

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

    private function initialSettings()
    {
        $options = Option::all(['key', 'value']);
        $options = $options->keyBy('key')->map(function ($item) {
            return $item->value;
        });
        config(['options' => $options]);
    }
}
{'fraction_non_alphanumeric': 0.12595097210481826, 'fraction_numerical': 0.0, 'mean_word_length': 2.0673575129533677, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '1867187', 'n_tokens_mistral': 326, 'n_tokens_neox': 326, 'n_words': 74}