<commit_before># -*- coding: utf-8 -*-

# Copyright 2014,  Digital Reasoning
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#


from django.contrib import admin
from . import models


class CloudProviderTypeAdmin(admin.ModelAdmin):
    list_display = [
        'type_name',
    ]
admin.site.register(models.CloudProviderType, CloudProviderTypeAdmin)


class CloudProviderAdmin(admin.ModelAdmin):
    list_display = [
        'title',
        'slug',
        'description',
        'vpc_enabled',
    ]
admin.site.register(models.CloudProvider, CloudProviderAdmin)


class CloudInstanceSizeAdmin(admin.ModelAdmin):
    list_display = [
        'title',
        'slug',
        'description',
        'provider_type',
        'instance_id',
    ]
admin.site.register(models.CloudInstanceSize, CloudInstanceSizeAdmin)


class CloudProfileAdmin(admin.ModelAdmin):
    list_display = [
        'title',
        'cloud_provider',
        'image_id',
        'default_instance_size',
        'ssh_user',
    ]
admin.site.register(models.CloudProfile, CloudProfileAdmin)


class SnapshotAdmin(admin.ModelAdmin):
    list_display = [
        'title',
        'slug',
        'cloud_provider',
        'snapshot_id',
        'size_in_gb',
        'filesystem_type',
    ]
admin.site.register(models.Snapshot, SnapshotAdmin)


class SecurityGroupAdmin(admin.ModelAdmin):
    list_display = [
        'name',
        'group_id',
        'cloud_provider',
        'owner',<commit_msg>PI-444 added appropriate cloud models to the admin site<commit_after># -*- coding: utf-8 -*-

# Copyright 2014,  Digital Reasoning
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#


from django.contrib import admin
from . import models


class CloudProviderTypeAdmin(admin.ModelAdmin):
    list_display = [
        'type_name',
    ]
admin.site.register(models.CloudProviderType, CloudProviderTypeAdmin)


class CloudProviderAdmin(admin.ModelAdmin):
    list_display = [
        'title',
        'slug',
        'description',
        'vpc_enabled',
    ]
admin.site.register(models.CloudProvider, CloudProviderAdmin)


class CloudInstanceSizeAdmin(admin.ModelAdmin):
    list_display = [
        'title',
        'slug',
        'description',
        'provider_type',
        'instance_id',
    ]
admin.site.register(models.CloudInstanceSize, CloudInstanceSizeAdmin)


class GlobalOrchestrationFormulaComponentAdmin(admin.ModelAdmin):
    list_display = [
        'component',
        'provider',
        'order',
    ]
admin.site.register(models.GlobalOrchestrationFormulaComponent, GlobalOrchestrationFormulaComponentAdmin)


class CloudProfileAdmin(admin.ModelAdmin):
    list_display = [
        'title',
        'cloud_provider',
        'image_id',
        'default_instance_size',
        'ssh_user',
    ]
admin.site.register(models.CloudProfile, CloudProfileAdmin)


class SnapshotAdmin(admin.ModelAdmin):
    list_display = [
        'title',
        'slug',
        'cloud_provider',
        'snapshot_id',
        'size_in_gb',
        'filesystem_type',
    ]
admin.site.register(models.Snapshot, SnapshotAdmin)


class CloudRegionAdmin(admin.ModelAdmin):
    list_display = [
        'title',
        'slug',
        'description',
        'provider_type',
    ]
admin.site.register(models.CloudRegion, CloudRegionAdmin)


class CloudZoneAdmin(admin.ModelAdmin):
    list_display = [
        'title',
        'slug',
        'description',
        'region',
    ]
admin.site.register(models.CloudZone, CloudZoneAdmin)


class SecurityGroupAdmin(admin.ModelAdmin):
    list_display = [
        'name',
        'group_id',
        'cloud_provider',
        'owner',
{'fraction_non_alphanumeric': 0.10133390705679862, 'fraction_numerical': 0.004518072289156626, 'mean_word_length': 3.0816505706760315, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4203757', 'n_tokens_mistral': 1320, 'n_tokens_neox': 1308, 'n_words': 323}