<commit_before><?php

namespace Okipa\LaravelToggleSwitchButton\Laravel;

use Illuminate\Support\ServiceProvider;
use AcidSolutions\ToggleSwitchButton\ToggleSwitchButton;

class ToggleSwitchButtonServiceProvider extends ServiceProvider
{
    public function boot()
    {
        $this->loadViewsFrom(__DIR__ . '/../views', 'toggle_switch_button');
        
        $this->publishes([
            __DIR__ . '/../views' => resource_path('views/toggle_switch_button'),
            __DIR__ . '/../config/toggle_switch_button.php' => config_path('toggle_switch_button.php'),
        ], 'toggle_switch_button');
    }
    /**
     * {@inheritDoc}
     */
    public function register()
    {
        $this->mergeConfigFrom(
            __DIR__.'/../config/toggle_switch_button.php', 'toggle_switch_button'
        );
        
        $this->app->singleton('toggle_switch_button', function () {
            return new ToggleSwitchButton();
        });
    }
}
<commit_msg>package setup : wip<commit_after><?php

namespace Okipa\LaravelToggleSwitchButton\Laravel;

use Illuminate\Support\ServiceProvider;
use Okipa\ToggleSwitchButton;

class ToggleSwitchButtonServiceProvider extends ServiceProvider
{
    public function boot()
    {
        $this->loadViewsFrom(__DIR__ . '/../views', 'toggle_switch_button');
        
        $this->publishes([
            __DIR__ . '/../views' => resource_path('views/toggle_switch_button'),
            __DIR__ . '/../config/toggle_switch_button.php' => config_path('toggle_switch_button.php'),
        ], 'toggle_switch_button');
    }
    /**
     * {@inheritDoc}
     */
    public function register()
    {
        $this->mergeConfigFrom(
            __DIR__.'/../config/toggle_switch_button.php', 'toggle_switch_button'
        );
        
        $this->app->singleton('Okipa\ToggleSwitchButton', function ($app) {
            $tableList = $app->make(ToggleSwitchButton::class);
            
            return $tableList;
        });
    }
}

{'fraction_non_alphanumeric': 0.13484848484848486, 'fraction_numerical': 0.0, 'mean_word_length': 2.6149635036496353, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '811843', 'n_tokens_mistral': 564, 'n_tokens_neox': 566, 'n_words': 78}