<commit_before>from django.contrib import admin
from .models import SphinxComment, SphinxNode


admin.site.register(SphinxNode)
admin.site.register(SphinxComment)<commit_msg>Made web support admin nicer<commit_after>from django.contrib import admin
from .models import SphinxComment, SphinxNode

class SphinxNodeAdmin(admin.ModelAdmin):
    search_fields = ('id', 'document')
    list_filter = ('project__name',)

class SphinxCommentAdmin(admin.ModelAdmin):
    search_fields = ('text',)

admin.site.register(SphinxNode, SphinxNodeAdmin)
admin.site.register(SphinxComment, SphinxCommentAdmin)
{'fraction_non_alphanumeric': 0.09797297297297297, 'fraction_numerical': 0.0, 'mean_word_length': 7.236111111111111, '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': '4417078', 'n_tokens_mistral': 188, 'n_tokens_neox': 183, 'n_words': 38}