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

__author__ = '<NAME>'


CELERY_BROKER_URL = 'amqp://guest:guest@localhost//'
CELERY_RESULT_BACKEND = 'amqp://guest:guest@localhost//'

SECRET_KEY = 'aSDF#%GSRG#$GsasdfasdfHGGGFSN/.345234'

EVE_SETTINGS = {
    'URL_PREFIX': 'api',
    'API_VERSION': 'v1',

    'MONGO_HOST': 'localhost',
    'MONGO_PORT': 27017,
    'MONGO_DBNAME': 'cheque_restful',
    'RETURN_MEDIA_AS_BASE64_STRING': False,

    'RETURN_MEDIA_AS_URL': True,

    'RESOURCE_METHODS': ['GET', 'POST', 'DELETE'],
    'ITEM_METHODS': ['GET', 'PATCH', 'DELETE'],

    'XML': False,

    'MEDIA_BASE_URL': 'https://db.profitware.ru/cheque/',
    'MEDIA_ENDPOINT': 'media',
    'DOMAIN': {
        'people': {
            'item_title': 'person',
            'schema': {
                'first_name': {
                    'type': 'string',
                    'minlength': 1,
                    'maxlength': 10,
                },
                'last_name': {
                    'type': 'string',
                    'minlength': 1,
                    'maxlength': 15,
                    'required': True,
                    'unique': True,
                },
                'role': {
                    'type': 'list',
                    'allowed': ['author', 'contributor', 'copy'],
                },
                'location': {
                    'type': 'dict',
                    'schema': {
                        'address': {'type': 'string'},
                        'city': {'type': 'string'}
                    },
                },
                'born': {
                    'type': 'datetime',
                },
            }
        },
        'cheque': {
            'schema': {
                'person': {
                    'type': 'objectid',
                    'data_relation': {
                     'resource': 'people',
                     'field': '_id',
                     'embeddable': True
                 },
                },
                'name': {
                    'type': 'string'
                },
                'webcam': {
                    'type': 'string'
                },
                'image': {
                    'type': 'media'
                },
                'text': {
                    'type': 'string'
                }
            }
        }
    }
}<commit_msg>Cheque uploading<commit_after># -*- coding: utf-8 -*-

__author__ = '<NAME>'


CELERY_BROKER_URL = 'amqp://guest:guest@localhost//'
CELERY_RESULT_BACKEND = 'amqp://guest:guest@localhost//'

SECRET_KEY = 'aSDF#%GSRG#$GsasdfasdfHGGGFSN/.345234'

EVE_SETTINGS = {
    'URL_PREFIX': 'api',
    'API_VERSION': 'v1',

    'MONGO_HOST': 'localhost',
    'MONGO_PORT': 27017,
    'MONGO_DBNAME': 'cheque_restful',
    'RETURN_MEDIA_AS_BASE64_STRING': False,

    'RETURN_MEDIA_AS_URL': True,

    'RESOURCE_METHODS': ['GET', 'POST', 'DELETE'],
    'ITEM_METHODS': ['GET', 'PATCH', 'DELETE'],

    'XML': False,

    'MEDIA_BASE_URL': 'https://db.profitware.ru/cheque/',
    'MEDIA_ENDPOINT': 'media',
    'DOMAIN': {
        'people': {
            'item_title': 'person',
            'schema': {
                'first_name': {
                    'type': 'string',
                    'minlength': 1,
                    'maxlength': 10,
                },
                'last_name': {
                    'type': 'string',
                    'minlength': 1,
                    'maxlength': 15,
                    'required': True,
                    'unique': True,
                },
                'role': {
                    'type': 'list',
                    'allowed': ['author', 'contributor', 'copy'],
                },
                'location': {
                    'type': 'dict',
                    'schema': {
                        'address': {'type': 'string'},
                        'city': {'type': 'string'}
                    },
                },
                'born': {
                    'type': 'datetime',
                },
            }
        },
        'cheque': {
            'schema': {
                'person': {
                    'type': 'objectid',
                    'data_relation': {
                     'resource': 'people',
                     'field': '_id',
                     'embeddable': True
                 },
                },
                'name': {
                    'type': 'string'
                },
                'image': {
                    'type': 'media'
                },
                'text': {
                    'type': 'string'
                }
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.15698553228244438, 'fraction_numerical': 0.009069315482617146, 'mean_word_length': 1.0165433173704832, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5729143', 'n_tokens_mistral': 1419, 'n_tokens_neox': 1281, 'n_words': 212}