<commit_before>from django.contrib import admin

# Register your models here.
from .models import (
    OutcomeIndicator,
    IndicatorType,
    Indicator,
    Subpillar,
)


class OutcomeIndicatorModelAdmin(admin.ModelAdmin):
    """
    Outcome indicator model admin settings
    """
    list_display = [
        'indicator_code', 'indicator', 'subindicator', 'definition',
        'common_uom', 'indicatortype', 'last_update', 'modified_by'
    ]
    list_display_links = ['indicator_code']
    list_filter = ['indicator', 'subindicator', 'indicatortype', 'last_update', 'modified_by']

    class Meta:
        model = OutcomeIndicator


class IndicatorTypeModelAdmin(admin.ModelAdmin):
    """
    Indicator type model admin settings
    """
    list_display = ['indicator_type', 'last_update', 'modified_by']
    list_display_links = ['indicator_type']
    list_filter = ['indicator_type', 'last_update', 'modified_by']

    class Meta:
        model = IndicatorType


class IndicatorModelAdmin(admin.ModelAdmin):
    """
    Indicator model admin settings
    """
    list_display = ['subpillar', 'indicator', 'last_update', 'modified_by']
    list_display_links = ['indicator']<commit_msg>Added "research outcome indicator" as an inline to "outcome indicator"<commit_after>from django.contrib import admin

# Register your models here.
from .models import (
    OutcomeIndicator,
    ResearchOutcomeIndicator,
    IndicatorType,
    Indicator,
    Subpillar,
)


class ResearchOutcomeIndicatorInline(admin.TabularInline):
    """
    Inline for easy editing of in the admin in relation to the outcome indicator admin
    """
    model = ResearchOutcomeIndicator


class OutcomeIndicatorModelAdmin(admin.ModelAdmin):
    """
    Outcome indicator model admin settings
    """
    list_display = [
        'indicator_code', 'indicator', 'subindicator', 'definition',
        'common_uom', 'indicatortype', 'last_update', 'modified_by'
    ]
    list_display_links = ['indicator_code']
    list_filter = ['indicator', 'subindicator', 'indicatortype', 'last_update', 'modified_by']
    inlines = [ResearchOutcomeIndicatorInline, ]

    class Meta:
        model = OutcomeIndicator


class IndicatorTypeModelAdmin(admin.ModelAdmin):
    """
    Indicator type model admin settings
    """
    list_display = ['indicator_type', 'last_update', 'modified_by']
    list_display_links = ['indicator_type']
    list_filter = ['indicator_type', 'last_update', 'modified_by']

    class Meta:
        model = IndicatorType


class IndicatorModelAdmin(admin.ModelAdmin):
    """
    Indicator model admin settings
    """
    list_display = ['subpillar', 'indicator', 'last_update', 'modified_by']
    list_display_links = ['indicator']
{'fraction_non_alphanumeric': 0.11066324661048003, 'fraction_numerical': 0.0, 'mean_word_length': 4.018382352941177, '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': '1665454', 'n_tokens_mistral': 809, 'n_tokens_neox': 804, 'n_words': 184}