<commit_before>from django.contrib import admin, auth
from models import Schema, UserSchema

class SchemaAdmin(admin.ModelAdmin):
    def get_readonly_fields(self, request, obj=None):
        if obj is not None:
            return ('schema',)
        return ()

admin.site.register(Schema, SchemaAdmin)

class SchemaInline(admin.StackedInline):
    model = UserSchema

# Inject SchemeInline into UserAdmin
UserAdmin = admin.site._registry[auth.models.User].__class__

class SchemaUserAdmin(UserAdmin):
    inlines = UserAdmin.inlines + [SchemaInline]
    
admin.site.unregister(auth.models.User)
admin.site.register(auth.models.User, SchemaUserAdmin)<commit_msg>No changes?<commit_after>from django.contrib import admin, auth
from models import Schema, UserSchema

class SchemaAdmin(admin.ModelAdmin):
    def get_readonly_fields(self, request, obj=None):
        if obj is not None:
            return ('schema',)
        return ()

admin.site.register(Schema, SchemaAdmin)

class SchemaInline(admin.StackedInline):
    model = UserSchema

# Inject SchemeInline into UserAdmin
UserAdmin = admin.site._registry[auth.models.User].__class__

class SchemaUserAdmin(UserAdmin):
    inlines = UserAdmin.inlines + [SchemaInline]
    
admin.site.unregister(auth.models.User)
admin.site.register(auth.models.User, SchemaUserAdmin)

{'fraction_non_alphanumeric': 0.09750566893424037, 'fraction_numerical': 0.0, 'mean_word_length': 4.539748953974895, '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': '7281290', 'n_tokens_mistral': 384, 'n_tokens_neox': 388, 'n_words': 88}