<commit_before>from django.conf import settings

tenant_settings = getattr(settings, 'SHARED_SCHEMA_TENANTS', {})


TENANT_SERIALIZER = (tenant_settings
                        .get('SERIALIZERS', {})
                        .get('TENANT_SERIALIZER',
                             'shared_schema_tenants.serializers.TenantSerializer'))


TENANT_SITE_SERIALIZER = (tenant_settings
                            .get('SERIALIZERS', {})
                            .get('TENANT_SITE_SERIALIZER',
                                'shared_schema_tenants.serializers.TenantSiteSerializer'))

TENANT_SETTINGS_SERIALIZER = (tenant_settings
                            .get('SERIALIZERS', {})
                            .get('TENANT_SETTINGS_SERIALIZER',
                                'shared_schema_tenants.serializers.TenantSettingsSerializer'))

TENANT_RELATIONSHIP_SERIALIZER = (
    tenant_settings
        .get('SERIALIZERS', {})
        .get('TENANT_SITE_SERIALIZER',
            'shared_schema_tenants.serializers.TenantSiteSerializer'))



DEFAULT_TENANT_SETTINGS_FIELDS = tenant_settings.get(
                                  'DEFAULT_TENANT_SETTINGS_FIELDS', {})


DEFAULT_TENANT_SETTINGS = {key: value.get('default')
                           for key, value
                           in DEFAULT_TENANT_SETTINGS_FIELDS.items()}


DEFAULT_TENANT_EXTRA_DATA_FIELDS = tenant_settings.get(
    'DEFAULT_TENANT_EXTRA_DATA_FIELDS',
    {
        'logo': {
            'type': 'string',
            'default': None,
            'validators': [],
        }
    })

DEFAULT_TENANT_EXTRA_DATA = {key: value.get('default')
                             for key, value
                             in DEFAULT_TENANT_EXTRA_DATA_FIELDS.items()}

DEFAULT_SITE_DOMAIN = tenant_settings.get(
    'DEFAULT_SITE_DOMAIN',
    'localhost'
)

TENANT_HTTP_HEADER = tenant_settings.get('TENANT_HTTP_HEADER', 'Tenant-Slug')<commit_msg>removes default extra_data fields from app settings<commit_after>from django.conf import settings

tenant_settings = getattr(settings, 'SHARED_SCHEMA_TENANTS', {})


TENANT_SERIALIZER = (tenant_settings
                        .get('SERIALIZERS', {})
                        .get('TENANT_SERIALIZER',
                             'shared_schema_tenants.serializers.TenantSerializer'))


TENANT_SITE_SERIALIZER = (tenant_settings
                            .get('SERIALIZERS', {})
                            .get('TENANT_SITE_SERIALIZER',
                                'shared_schema_tenants.serializers.TenantSiteSerializer'))

TENANT_SETTINGS_SERIALIZER = (tenant_settings
                            .get('SERIALIZERS', {})
                            .get('TENANT_SETTINGS_SERIALIZER',
                                'shared_schema_tenants.serializers.TenantSettingsSerializer'))

TENANT_RELATIONSHIP_SERIALIZER = (
    tenant_settings
        .get('SERIALIZERS', {})
        .get('TENANT_SITE_SERIALIZER',
            'shared_schema_tenants.serializers.TenantSiteSerializer'))



DEFAULT_TENANT_SETTINGS_FIELDS = tenant_settings.get(
                                  'DEFAULT_TENANT_SETTINGS_FIELDS', {})


DEFAULT_TENANT_SETTINGS = {key: value.get('default')
                           for key, value
                           in DEFAULT_TENANT_SETTINGS_FIELDS.items()}


DEFAULT_TENANT_EXTRA_DATA_FIELDS = tenant_settings.get(
    'DEFAULT_TENANT_EXTRA_DATA_FIELDS',
    {})

DEFAULT_TENANT_EXTRA_DATA = {key: value.get('default')
                             for key, value
                             in DEFAULT_TENANT_EXTRA_DATA_FIELDS.items()}

DEFAULT_SITE_DOMAIN = tenant_settings.get(
    'DEFAULT_SITE_DOMAIN',
    'localhost'
)

TENANT_HTTP_HEADER = tenant_settings.get('TENANT_HTTP_HEADER', 'Tenant-Slug')
{'fraction_non_alphanumeric': 0.09112773917691075, 'fraction_numerical': 0.0, 'mean_word_length': 2.111388196176226, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4918136', 'n_tokens_mistral': 1154, 'n_tokens_neox': 1178, 'n_words': 123}