<commit_before><?php

namespace Laravel\Meta;

use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;

class MetaServiceProvider extends ServiceProvider {

    /**
     * Publish resources.
     */
    public function boot() {
        $this->loadViewsFrom(__DIR__ . DIRECTORY_SEPARATOR . '../views', 'meta');

        $this->publishes([
            __DIR__ . DIRECTORY_SEPARATOR . '../views/'      => base_path('resources/views/vendor/meta')
        ], 'views');

        $this->publishes([
            __DIR__ . DIRECTORY_SEPARATOR . '../migrations/' => base_path('database/migrations')
        ], 'migrations');
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register() {
        $this->app->bind('meta', MetaManager::class);

        $this->registerBladeExtension();
    }

    /**
     * Register meta blade extensions .
     *
     */
    protected function registerBladeExtension() {
        if ($this->versionMatch('5.0'))
            Blade::extend(function ($view) {
                return str_replace("@meta",
                    app('meta')
                        ->render(), $view);
            });
        elseif ($this->versionMatch('5.1'))
            Blade::directive('meta', function ($expression) {<commit_msg>path correct.<commit_after><?php

namespace Laravel\Meta;

use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;

class MetaServiceProvider extends ServiceProvider {

    /**
     * Publish resources.
     */
    public function boot() {
        $this->loadViewsFrom(__DIR__ . DIRECTORY_SEPARATOR . '../views', 'meta');

        $this->publishes([
            __DIR__ . DIRECTORY_SEPARATOR . '../assets/views/'=> base_path('resources/views/vendor/meta')
        ], 'views');

        $this->publishes([
            __DIR__ . DIRECTORY_SEPARATOR . '../assets/migrations/' => base_path('database/migrations')
        ], 'migrations');
    }

    /**
     * Register the service provider.
     *
     * @return void
     */
    public function register() {
        $this->app->bind('meta', MetaManager::class);

        $this->registerBladeExtension();
    }

    /**
     * Register meta blade extensions .
     *
     */
    protected function registerBladeExtension() {
        if ($this->versionMatch('5.0'))
            Blade::extend(function ($view) {
                return str_replace("@meta",
                    app('meta')
                        ->render(), $view);
            });
        elseif ($this->versionMatch('5.1'))
            Blade::directive('meta', function ($expression) {
{'fraction_non_alphanumeric': 0.15083586626139817, 'fraction_numerical': 0.00303951367781155, 'mean_word_length': 2.0940070505287895, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '6690223', 'n_tokens_mistral': 729, 'n_tokens_neox': 720, 'n_words': 131}