<commit_before># Django
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import Group as AuthGroup

# Local
from .forms import (
    UserChangeForm,
    UserCreationForm,
)

from .inlines import (
    AppearanceInline,
    AssignmentInline,
    AwardInline,
    ContestantInline,
    ContestInline,
    EntryInline,
    MemberInline,
    OfficerInline,
    ParticipantInline,
    RepertoryInline,
    RoundInline,
    ScoreInline,
    SessionInline,
    SongInline,
)

from .models import (
    Appearance,
    Assignment,
    Award,
    Chart,
    Contest,
    Contestant,
    Convention,
    Entity,
    Entry,
    Member,
    Office,
    Officer,
    Participant,
    Person,
    Repertory,
    Round,
    Score,
    Session,
    Slot,
    Song,
    User,
    Venue,
)

from django_fsm_log.models import StateLog

@admin.register(StateLog)
class StateLogAdmin(admin.ModelAdmin):
    pass

@admin.register(Appearance)
class AppearanceAdmin(admin.ModelAdmin):
    fields = [
        # 'name',
        'status',
        'actual_start',
        'actual_finish',
        'entry',
        'round',
        'num',
        'slot',
    ]

    list_display = [<commit_msg>Add juice to state log<commit_after># Django
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import Group as AuthGroup

# Local
from .forms import (
    UserChangeForm,
    UserCreationForm,
)

from .inlines import (
    AppearanceInline,
    AssignmentInline,
    AwardInline,
    ContestantInline,
    ContestInline,
    EntryInline,
    MemberInline,
    OfficerInline,
    ParticipantInline,
    RepertoryInline,
    RoundInline,
    ScoreInline,
    SessionInline,
    SongInline,
)

from .models import (
    Appearance,
    Assignment,
    Award,
    Chart,
    Contest,
    Contestant,
    Convention,
    Entity,
    Entry,
    Member,
    Office,
    Officer,
    Participant,
    Person,
    Repertory,
    Round,
    Score,
    Session,
    Slot,
    Song,
    User,
    Venue,
)

from django_fsm_log.models import StateLog

@admin.register(StateLog)
class StateLogAdmin(admin.ModelAdmin):
    list_display = [
        '__str__',
        'by',
    ]
    fields = [
        'timestamp',
        'content_type',
        'content_object',
        'transition',
        'by',
        'object_id',
    ]
    readonly_fields = [
        'content_object',
        'timestamp',
        'by',
        'state',
        'transition',
        'content_type',
        'object_id',
    ]

@admin.register(Appearance)
class AppearanceAdmin(admin.ModelAdmin):
    fields = [
        # 'name',
        'status',
        'actual_start',
        'actual_finish',
        'entry',
        'round',
        'num',
        'slot',
    ]

    list_display = [
{'fraction_non_alphanumeric': 0.09248956884561892, 'fraction_numerical': 0.0, 'mean_word_length': 2.280501710376283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7279573', 'n_tokens_mistral': 891, 'n_tokens_neox': 930, 'n_words': 195}