<commit_before><?php

// Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

namespace App\Models;

/**
 * @property int $change_id
 * @property \Carbon\Carbon|null $timestamp
 * @property mixed $type
 * @property int $user_id
 * @property string $username
 * @property string|null $username_last
 */
class UsernameChangeHistory extends Model
{
    protected $table = 'osu_username_change_history';
    protected $primaryKey = 'change_id';

    protected $dates = ['timestamp'];
    public $timestamps = false;

    public function scopeVisible($query)
    {
        $query->whereIn('type', ['support', 'paid']);
    }
}
<commit_msg>Show username change history even for admin changes<commit_after><?php

// Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

namespace App\Models;

/**
 * @property int $change_id
 * @property \Carbon\Carbon|null $timestamp
 * @property mixed $type
 * @property int $user_id
 * @property string $username
 * @property string|null $username_last
 */
class UsernameChangeHistory extends Model
{
    protected $table = 'osu_username_change_history';
    protected $primaryKey = 'change_id';

    protected $dates = ['timestamp'];
    public $timestamps = false;

    public function scopeVisible($query)
    {
        $query->whereIn('type', ['support', 'paid', 'admin']);
    }
}

{'fraction_non_alphanumeric': 0.11989630589760207, 'fraction_numerical': 0.002592352559948153, 'mean_word_length': 3.9967637540453076, 'pattern_counts': {'":': 0, '<': 9, '<?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': '506883', 'n_tokens_mistral': 451, 'n_tokens_neox': 446, 'n_words': 148}