<commit_before>from django.contrib import admin
from ipynbsrv.wui.models import Container, Host, Image, Share, Tag


"""
"""
class ContainerAdmin(admin.ModelAdmin):
    list_display  = ['name']
    list_filter   = ['status']
    search_fields = ['id', 'ct_id', 'name', 'description', 'status']


"""
"""
class HostAdmin(admin.ModelAdmin):
    list_display  = ['ip', 'fqdn']
    list_filter   = ['username', 'ssh_port']
    search_fields = ['ip', 'fqdn', 'username', 'ssh_port', 'docker_version', 'docker_port']


"""
"""
class ImageAdmin(admin.ModelAdmin):
    list_display  = ['name']
    list_filter   = ['img_id']
    search_fields = ['id', 'img_id', 'name', 'description']


"""
"""
class TagAdmin(admin.ModelAdmin):
    list_display  = ['label']
    search_fields = ['label']


"""
"""
class ShareAdmin(admin.ModelAdmin):
    list_display  = ['name', 'owner']
    list_filter   = ['owner', 'group']
    search_fields = ['name', 'description', 'owner', 'group', 'tags']


admin.site.register(Host, HostAdmin)
admin.site.register(Image, ImageAdmin)
admin.site.register(Tag, TagAdmin)<commit_msg>shares in admin interface<commit_after>from django.contrib import admin
from ipynbsrv.wui.models import Container, Host, Image, Share, Tag


"""
"""
class ContainerAdmin(admin.ModelAdmin):
    list_display  = ['name']
    list_filter   = ['status']
    search_fields = ['id', 'ct_id', 'name', 'description', 'status']


"""
"""
class HostAdmin(admin.ModelAdmin):
    list_display  = ['ip', 'fqdn']
    list_filter   = ['username', 'ssh_port']
    search_fields = ['ip', 'fqdn', 'username', 'ssh_port', 'docker_version', 'docker_port']


"""
"""
class ImageAdmin(admin.ModelAdmin):
    list_display  = ['name']
    list_filter   = ['img_id']
    search_fields = ['id', 'img_id', 'name', 'description']


"""
"""
class ShareAdmin(admin.ModelAdmin):
    list_display  = ['name', 'description', 'owner']
    list_filter   = ['owner']
    search_fields = ['name', 'description', 'owner', 'group']


"""
"""
class TagAdmin(admin.ModelAdmin):
    list_display  = ['label']
    search_fields = ['label']


admin.site.register(Host, HostAdmin)
admin.site.register(Image, ImageAdmin)
admin.site.register(Share, ShareAdmin)
admin.site.register(Tag, TagAdmin)
{'fraction_non_alphanumeric': 0.18351893095768373, 'fraction_numerical': 0.0, 'mean_word_length': 4.686075949367089, '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': '5276256', 'n_tokens_mistral': 754, 'n_tokens_neox': 732, 'n_words': 155}