<commit_before>from django.contrib import admin

from models import Message, Report


class MessageAdmin(admin.ModelAdmin):
    list_display = ('destination', 'message_type')
    search_fields = ('destination',)
    fieldsets = [
        (None, {'fields': ['destination', 'message_type']}),
        ('Optional', {'fields': ['source_name',
                                 'source',
                                 'service',
                                 'header',
                                 'wap_text',
                                 '_class',
                                 'concatenate',
                                 'unicode',
                                 'validity',
                                 'delivery',
                                 'report'],
                      'classes': ['collapse']}),
    ]

admin.site.register(Message, MessageAdmin)
admin.site.register(Report)<commit_msg>Add ReportAdmin<commit_after>from django.contrib import admin

from models import Message, Report


class MessageAdmin(admin.ModelAdmin):
    list_display = ('destination', 'message_type')
    search_fields = ('destination',)
    fieldsets = [
        (None, {'fields': ['destination', 'message_type']}),
        ('Optional', {'fields': ['source_name',
                                 'source',
                                 'service',
                                 'header',
                                 'wap_text',
                                 '_class',
                                 'concatenate',
                                 'unicode',
                                 'validity',
                                 'delivery',
                                 'report'],
                      'classes': ['collapse']}),
    ]


class ReportAdmin(admin.ModelAdmin):
    raw_id_fields = ('message',)
    list_display = ('message', 'status', 'timestamp')
    list_filter = ('status',)

admin.site.register(Message, MessageAdmin)
admin.site.register(Report, ReportAdmin)
{'fraction_non_alphanumeric': 0.11723795330352707, 'fraction_numerical': 0.0, 'mean_word_length': 1.225414364640884, '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': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5492197', 'n_tokens_mistral': 449, 'n_tokens_neox': 440, 'n_words': 89}