<commit_before>from django.contrib import admin
from django.db.models import Count
from django.contrib.auth.admin import UserAdmin

import .models

admin.site.register(editor.models.SiteBroadcast)

admin.site.register(editor.models.NewExam)
admin.site.register(editor.models.NewQuestion)
admin.site.register(editor.models.Theme)

admin.site.register(editor.models.Subject)
admin.site.register(editor.models.Topic)
admin.site.register(editor.models.AbilityFramework)
admin.site.register(editor.models.AbilityLevel)

# allow users to be sorted by date joined
UserAdmin.list_display += ('date_joined',)
UserAdmin.list_filter += ('date_joined',)

class LicenceAdmin(admin.ModelAdmin):
    list_display = ['name','short_name','can_reuse','can_modify','can_sell']

admin.site.register(editor.models.Licence,LicenceAdmin)<commit_msg>fix stupid syntax error<commit_after>from django.contrib import admin
from django.db.models import Count
from django.contrib.auth.admin import UserAdmin

import editor.models

admin.site.register(editor.models.SiteBroadcast)

admin.site.register(editor.models.NewExam)
admin.site.register(editor.models.NewQuestion)
admin.site.register(editor.models.Theme)

admin.site.register(editor.models.Subject)
admin.site.register(editor.models.Topic)
admin.site.register(editor.models.AbilityFramework)
admin.site.register(editor.models.AbilityLevel)

# allow users to be sorted by date joined
UserAdmin.list_display += ('date_joined',)
UserAdmin.list_filter += ('date_joined',)

class LicenceAdmin(admin.ModelAdmin):
    list_display = ['name','short_name','can_reuse','can_modify','can_sell']

admin.site.register(editor.models.Licence,LicenceAdmin)
{'fraction_non_alphanumeric': 0.12350119904076738, 'fraction_numerical': 0.0, 'mean_word_length': 7.262376237623762, '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': '1251376', 'n_tokens_mistral': 521, 'n_tokens_neox': 513, 'n_words': 80}