<commit_before><?php

namespace App\Providers;

use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;

class AuthServiceProvider extends ServiceProvider
{
    /**
     * The policy mappings for the application.
     *
     * @var array
     */
    protected $policies =
    [
        'App\Model' => 'App\Policies\ModelPolicy',
    ];

    /**
     * Manually defined array of what abilities given roles have
     *
     * @var array
     */
    private $roles =
    [
        // General permissions for all authed users
        'auth' =>
        [
            'view-self',
        ],
        
        'admin' =>
        [
            'take-admin-slot',
            'release-admin-slot',
            'create-event',
            'edit-event',
            'delete-event',
            'read-department',
            'create-department',
            'edit-department',
            'delete-department',
            'read-shifts',
            'create-shift',
            'edit-shift',
            'delete-shift',
            'create-schedule',
            'edit-schedule',
            'delete-schedule',
            'view-user',
            'edit-user',
        ],

        'department-lead' =>
        [<commit_msg>Typo in admin permission :sweat_smile:<commit_after><?php

namespace App\Providers;

use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;

class AuthServiceProvider extends ServiceProvider
{
    /**
     * The policy mappings for the application.
     *
     * @var array
     */
    protected $policies =
    [
        'App\Model' => 'App\Policies\ModelPolicy',
    ];

    /**
     * Manually defined array of what abilities given roles have
     *
     * @var array
     */
    private $roles =
    [
        // General permissions for all authed users
        'auth' =>
        [
            'view-self',
        ],
        
        'admin' =>
        [
            'take-admin-slot',
            'release-admin-slot',
            'create-event',
            'edit-event',
            'delete-event',
            'read-department',
            'create-department',
            'edit-department',
            'delete-department',
            'read-shift',
            'create-shift',
            'edit-shift',
            'delete-shift',
            'create-schedule',
            'edit-schedule',
            'delete-schedule',
            'view-user',
            'edit-user',
        ],

        'department-lead' =>
        [
{'fraction_non_alphanumeric': 0.11908396946564885, 'fraction_numerical': 0.0, 'mean_word_length': 1.4890788224121558, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4431870', 'n_tokens_mistral': 722, 'n_tokens_neox': 723, 'n_words': 140}