<commit_before>from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth import get_user_model

User = get_user_model()


class IfUserAdmin(UserAdmin):
    model = User

    fieldsets = UserAdmin.fieldsets + (
        (None, {'fields': ('ifid', 'campus', 'city', 'course', 'klass')}),
    )

admin.site.unregister(User)

admin.site.register(User, IfUserAdmin)<commit_msg>adds is_if_staff to admin<commit_after>from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth import get_user_model

User = get_user_model()


class IfUserAdmin(UserAdmin):
    model = User

    fieldsets = UserAdmin.fieldsets + (
        (None, {'fields': ('ifid', 'campus', 'city', 'course', 'klass', 'is_if_staff',)}),
    )

admin.site.unregister(User)

admin.site.register(User, IfUserAdmin)
{'fraction_non_alphanumeric': 0.13163972286374134, 'fraction_numerical': 0.0, 'mean_word_length': 4.818791946308725, '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': '5469324', 'n_tokens_mistral': 279, 'n_tokens_neox': 278, 'n_words': 63}