<commit_before><?php

namespace Hugorut\Filter\Laravel;

use Hugorut\Filter\Factories\BuildersFactory;
use Hugorut\Filter\Factories\FiltersFactory;
use Hugorut\Filter\Filter;
use Hugorut\Filter\Helpers\LaravelConfig;
use Illuminate\Support\ServiceProvider;

class FilterServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
       $this->app->bind('filter', function() {
            return new Filter(
                new BuildersFactory(new LaravelConfig), 
                new FiltersFactory(new LaravelConfig)
            );
       });

        $this->publishes([
            base_path('vendor/Filter/src/Hugorut/Filter/config.php') => config_path('filter.php')
        ]);
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->mergeConfigFrom(
            base_path('vendor/Filter/src/config.php'), 'filter'
        );
    }
}<commit_msg>service provider fix for packagist<commit_after><?php

namespace Hugorut\Filter\Laravel;

use Hugorut\Filter\Factories\BuildersFactory;
use Hugorut\Filter\Factories\FiltersFactory;
use Hugorut\Filter\Filter;
use Hugorut\Filter\Helpers\LaravelConfig;
use Illuminate\Support\ServiceProvider;

class FilterServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
       $this->app->bind('filter', function() {
            return new Filter(
                new BuildersFactory(new LaravelConfig), 
                new FiltersFactory(new LaravelConfig)
            );
       });

        $this->publishes([
            base_path('vendor/Filter/src/Hugorut/Filter/config.php') => config_path('filter.php')
        ]);
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        $this->mergeConfigFrom(
            base_path('vendor/Filter/hugorut/filterable/src/config.php'), 'filter'
        );
    }
}
{'fraction_non_alphanumeric': 0.11520302171860246, 'fraction_numerical': 0.0, 'mean_word_length': 2.3475513428120065, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '2540987', 'n_tokens_mistral': 615, 'n_tokens_neox': 603, 'n_words': 108}