<commit_before>from django.contrib import admin

from oauth_api.models import AccessToken, AuthorizationCode, RefreshToken, get_application_model


Application = get_application_model()


class ApplicationAdmin(admin.ModelAdmin):
    list_display = ('name', 'client_id', 'created', 'updated')

admin.site.register(Application, ApplicationAdmin)


class AccessTokenAdmin(admin.ModelAdmin):
    list_display = ('token', 'expires', 'application', 'user', 'created', 'updated')

admin.site.register(AccessToken, AccessTokenAdmin)


class AuthorizationCodeAdmin(admin.ModelAdmin):
    list_display = ('code', 'application', 'expires', 'created', 'updated')

admin.site.register(AuthorizationCode, AuthorizationCodeAdmin)


class RefreshTokenAdmin(admin.ModelAdmin):
    list_display = ('token', 'application', 'expires', 'user', 'created', 'updated')
    list_filter = ('expires',)

admin.site.register(RefreshToken, RefreshTokenAdmin)<commit_msg>moved model registers to bottom.<commit_after>from django.contrib import admin

from oauth_api.models import AccessToken, AuthorizationCode, RefreshToken, get_application_model


Application = get_application_model()


class ApplicationAdmin(admin.ModelAdmin):
    list_display = ('name', 'client_id', 'created', 'updated')


class AccessTokenAdmin(admin.ModelAdmin):
    list_display = ('token', 'expires', 'application', 'user', 'created', 'updated')


class AuthorizationCodeAdmin(admin.ModelAdmin):
    list_display = ('code', 'application', 'expires', 'created', 'updated')


class RefreshTokenAdmin(admin.ModelAdmin):
    list_display = ('token', 'application', 'expires', 'user', 'created', 'updated')
    list_filter = ('expires',)


admin.site.register(Application, ApplicationAdmin)
admin.site.register(AccessToken, AccessTokenAdmin)
admin.site.register(AuthorizationCode, AuthorizationCodeAdmin)
admin.site.register(RefreshToken, RefreshTokenAdmin)
{'fraction_non_alphanumeric': 0.13098369279326671, 'fraction_numerical': 0.0, 'mean_word_length': 7.491071428571429, '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': '2084812', 'n_tokens_mistral': 538, 'n_tokens_neox': 527, 'n_words': 115}