<commit_before><?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * App\ClubType
 *
 * @property int $id
 * @property string $name 名稱
 * @property string $color 標籤顏色
 * @property bool $is_counted 是否列入抽獎集點
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @property-read \Illuminate\Database\Eloquent\Collection|\App\Club[] $clubs
 * @property-read string $tag
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ClubType whereColor($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ClubType whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ClubType whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ClubType whereIsCounted($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ClubType whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ClubType whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class ClubType extends Model
{
    protected $fillable = [
        'name',
        'color',
        'is_counted',
    ];

    protected $appends = [
        'tag',
    ];

    protected $casts = [
        'is_counted' => 'boolean',
    ];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany|\Illuminate\Database\Eloquent\Builder
     */
    public function clubs()
    {
        return $this->hasMany(Club::class);
    }

    /**
     * @return array
     */
    public static function selectOptions()
    {
        $options = [null => ''] + static::pluck('name', 'id')->toArray();

        return $options;
    }

    /**
     * @return string
     */
    public function getTagAttribute()
    {
        return "<span class='badge badge-default tag' style='background-color:{$this->color}'>{$this->name}</span>";
    }
}<commit_msg>Make badge bigger<commit_after><?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * App\ClubType
 *
 * @property int $id
 * @property string $name 名稱
 * @property string $color 標籤顏色
 * @property bool $is_counted 是否列入抽獎集點
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @property-read \Illuminate\Database\Eloquent\Collection|\App\Club[] $clubs
 * @property-read string $tag
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ClubType whereColor($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ClubType whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ClubType whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ClubType whereIsCounted($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ClubType whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\ClubType whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class ClubType extends Model
{
    protected $fillable = [
        'name',
        'color',
        'is_counted',
    ];

    protected $appends = [
        'tag',
    ];

    protected $casts = [
        'is_counted' => 'boolean',
    ];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany|\Illuminate\Database\Eloquent\Builder
     */
    public function clubs()
    {
        return $this->hasMany(Club::class);
    }

    /**
     * @return array
     */
    public static function selectOptions()
    {
        $options = [null => ''] + static::pluck('name', 'id')->toArray();

        return $options;
    }

    /**
     * @return string
     */
    public function getTagAttribute()
    {
        return "<span class='badge badge-default tag' style='background-color:{$this->color}; font-size: 24px;'>{$this->name}</span>";
    }
}
{'fraction_non_alphanumeric': 0.14856834143706105, 'fraction_numerical': 0.0005402485143165856, 'mean_word_length': 3.2563218390804596, 'pattern_counts': {'":': 0, '<': 9, '<?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': '7009781', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1224, 'n_words': 214}