<commit_before># -*- coding: utf-8 -*-
from django.contrib import admin

from .models import Correlation


class CorrelationAdmin(admin.ModelAdmin):
    date_hierarchy = 'timestamp'
    fieldsets = (
        ('Subject', {'fields': (('content_type', 'identifier'), 'object_id')}),
        ('Correlation Details', {'fields': ('timestamp', 'description')}),
        ('Derived Data', {
            'classes': ('grp-collapse grp-open',),
            'fields': (('year', 'month', 'day'), 'julian')
        })
    )<commit_msg>Add classification to the correlation admin.<commit_after># -*- coding: utf-8 -*-
from django.contrib import admin

from .models import Correlation


class CorrelationAdmin(admin.ModelAdmin):
    date_hierarchy = 'timestamp'
    fieldsets = (
        (None, {'fields': ('classification',)}),
        ('Subject', {'fields': (('content_type', 'identifier'), 'object_id')}),
        ('Correlation Details', {'fields': ('timestamp', 'description')}),
        ('Derived Data', {
            'classes': ('grp-collapse grp-open',),
            'fields': (('year', 'month', 'day'), 'julian')
        })
    )
{'fraction_non_alphanumeric': 0.19375, 'fraction_numerical': 0.0017857142857142857, 'mean_word_length': 3.2142857142857144, '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': '7232746', 'n_tokens_mistral': 320, 'n_tokens_neox': 315, 'n_words': 80}