<commit_before><?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

use Illuminate\Auth\Authenticatable;
use Illuminate\Foundation\Auth\Access\Authorizable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;

class User extends Model implements AuthenticatableContract, AuthorizableContract
{
    use Authenticatable, Authorizable;
    protected $fillable = ['name', 'email', 'password'];

    // Users have user data
    public function data()
    {
        return $this->hasOne('App\Models\UserData');
    }

    // Users can have applications
    public function applications()
    {
        return $this->hasMany('App\Models\Application');
    }

    // Users can judge applications
    public function judged()
    {
        return $this->hasMany('App\Models\Judged');
    }
}<commit_msg>Allow the user role to be updated<commit_after><?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

use Illuminate\Auth\Authenticatable;
use Illuminate\Foundation\Auth\Access\Authorizable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;

class User extends Model implements AuthenticatableContract, AuthorizableContract
{
    use Authenticatable, Authorizable;
    protected $fillable = ['name', 'email', 'password', 'role'];

    // Users have user data
    public function data()
    {
        return $this->hasOne('App\Models\UserData');
    }

    // Users can have applications
    public function applications()
    {
        return $this->hasMany('App\Models\Application');
    }

    // Users can judge applications
    public function judged()
    {
        return $this->hasMany('App\Models\Judged');
    }
}
{'fraction_non_alphanumeric': 0.10346695557963163, 'fraction_numerical': 0.0, 'mean_word_length': 3.784974093264249, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '635712', 'n_tokens_mistral': 498, 'n_tokens_neox': 508, 'n_words': 125}