<commit_before>from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from thresher.models import (Client, Article, AnalysisType,
                             TUA, Topic, Question, Answer, 
                             HighlightGroup, MCSubmittedAnswer,
                             CLSubmittedAnswer, TBSubmittedAnswer, 
                             DTSubmittedAnswer)

class UserProfileInLine(admin.StackedInline):
    """ Class meant to serve as an inline in the 
    newly defined user. An inline allows the 
    UserProfile class to be modified directly 
    through the User class, since an inline gets
    modified on the same page as its parent on the
    admin page. """

    model = UserProfile
    verbose_name_plural = 'user'

# Create a new User admin, adding the appropriate inline
class NewUserAdmin(UserAdmin):
    inlines = [
        UserProfileInLine,  
    ]

# Re-register UserAdmin, including the additional attributes added<commit_msg>Fixed an import in admin.py<commit_after>from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from thresher.models import (UserProfile, Client, Article, AnalysisType,
                             TUA, Topic, Question, Answer, 
                             HighlightGroup, MCSubmittedAnswer,
                             CLSubmittedAnswer, TBSubmittedAnswer, 
                             DTSubmittedAnswer)

class UserProfileInLine(admin.StackedInline):
    """ Class meant to serve as an inline in the 
    newly defined user. An inline allows the 
    UserProfile class to be modified directly 
    through the User class, since an inline gets
    modified on the same page as its parent on the
    admin page. """

    model = UserProfile
    verbose_name_plural = 'user'

# Create a new User admin, adding the appropriate inline
class NewUserAdmin(UserAdmin):
    inlines = [
        UserProfileInLine,  
    ]

# Re-register UserAdmin, including the additional attributes added
{'fraction_non_alphanumeric': 0.05117912694430507, 'fraction_numerical': 0.0, 'mean_word_length': 2.479930191972077, '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': '6841688', 'n_tokens_mistral': 500, 'n_tokens_neox': 477, 'n_words': 186}