<commit_before>from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth import get_user_model
from main.models import UserRole, BrewtoadAccount


class UCBCUserAdmin(UserAdmin):
    list_display = ('username', 'email', 'first_name', 'last_name', 'is_active', 'date_joined',
                    'is_staff', 'is_active', 'is_superuser', 'get_groups')

    def get_groups(self, user):
        return ", ".join([str(group.name) for group in user.groups.all()])
    get_groups.short_description = "Groups"

admin.site.unregister(get_user_model())
admin.site.register(get_user_model(), UCBCUserAdmin)
admin.site.register(UserRole)
admin.site.register(BrewtoadAccount)<commit_msg>admin tidy up<commit_after>from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth import get_user_model
from main.models import UserRole, BrewtoadAccount


class UCBCUserAdmin(UserAdmin):
    list_display = ('username', 'email', 'first_name', 'last_name', 'is_active', 'date_joined',
                    'is_staff', 'is_active', 'is_superuser', 'get_groups')

    def get_groups(self, user):
        return ", ".join([str(group.name) for group in user.groups.all()])
    get_groups.short_description = "Groups"


class UserRoleAdmin(admin.ModelAdmin):
    list_display = ('name', 'user')


class BrewtoadAccountAdmin(admin.ModelAdmin):
    list_display = ('brewtoad_user_id', 'user')

admin.site.unregister(get_user_model())
admin.site.register(get_user_model(), UCBCUserAdmin)
admin.site.register(UserRole, UserRoleAdmin)
admin.site.register(BrewtoadAccount, BrewtoadAccountAdmin)
{'fraction_non_alphanumeric': 0.12454655380894801, 'fraction_numerical': 0.0, 'mean_word_length': 5.490196078431373, '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': '292373', 'n_tokens_mistral': 524, 'n_tokens_neox': 511, 'n_words': 105}