<commit_before><?php

namespace Paracha\Acl;

use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use Illuminate\Database\QueryException;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Str;
use Illuminate\View\Compilers\BladeCompiler;
use Paracha\Acl\Models\Permission;
use Paracha\Acl\Models\Role;

class AclServiceProvider extends ServiceProvider
{
    /**
     * Register any application authentication / authorization services.
     *
     * @param  \Illuminate\Contracts\Auth\Access\Gate $gate
     * @return void
     */
    public function boot(GateContract $gate)
    {
        // if ($this->app->runningInConsole())
        // {
        $this->publishConfig();
        $this->publishMigrations();
        // }
        $this->registerPolicies();
        // Note: Not yet converted from Yajra to Paracha
        // $this->registerPermissions($gate);
        // $this->registerCacheListener();
        $this->registerBladeDirectives();
    }

    /**
     * Publish package config file.
     */<commit_msg>Fixing<commit_after><?php

namespace Paracha\Acl;

use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use Illuminate\Database\QueryException;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Str;
use Illuminate\View\Compilers\BladeCompiler;
use Paracha\Acl\Models\Permission;
use Paracha\Acl\Models\Role;

class AclServiceProvider extends ServiceProvider
{
    /**
     * Register any application authentication / authorization services.
     *
     * @param  \Illuminate\Contracts\Auth\Access\Gate $gate
     * @return void
     */
    public function boot(GateContract $gate)
    {
        if ($this->app->runningInConsole())
        {
            $this->publishConfig();
            $this->publishMigrations();
        }
        $this->registerPolicies();
        // Note: Not yet converted from Yajra to Paracha
        // $this->registerPermissions($gate);
        // $this->registerCacheListener();
        $this->registerBladeDirectives();
    }

    /**
     * Publish package config file.
     */
{'fraction_non_alphanumeric': 0.11627906976744186, 'fraction_numerical': 0.0, 'mean_word_length': 2.9251824817518246, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '1432054', 'n_tokens_mistral': 591, 'n_tokens_neox': 610, 'n_words': 120}