<commit_before>from django.contrib import admin

from models import Job, Cluster, Credential, CredentialAdminForm


class JobAdmin(admin.ModelAdmin):
    date_hierarchy = "created"
    list_display = ("molecule", "name", "email", "credential", "nodes",
                    "walltime", "jobid", "created", "started", "ended")


class ClusterAdmin(admin.ModelAdmin):
    list_display = ("name", "hostname", "port")


class CredentialAdmin(admin.ModelAdmin):
    list_display = ("user", "cluster", "username")
    form = CredentialAdminForm

admin.site.register(Job, JobAdmin)
admin.site.register(Cluster, ClusterAdmin)
admin.site.register(Credential, CredentialAdmin)
<commit_msg>Update what is shown admin page for jobs<commit_after>from django.contrib import admin

from models import Job, Cluster, Credential, CredentialAdminForm


class JobAdmin(admin.ModelAdmin):
    date_hierarchy = "created"
    list_display = ("jobid", "molecule", "name", "email", "credential")


class ClusterAdmin(admin.ModelAdmin):
    list_display = ("name", "hostname", "port")


class CredentialAdmin(admin.ModelAdmin):
    list_display = ("user", "cluster", "username")
    form = CredentialAdminForm


admin.site.register(Job, JobAdmin)
admin.site.register(Cluster, ClusterAdmin)
admin.site.register(Credential, CredentialAdmin)

{'fraction_non_alphanumeric': 0.1288109756097561, 'fraction_numerical': 0.0, 'mean_word_length': 5.5, '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': '2079283', 'n_tokens_mistral': 407, 'n_tokens_neox': 381, 'n_words': 94}