<commit_before># -*- encoding: utf-8 -*-
from zope.i18nmessageid import MessageFactory
import collections


_ = MessageFactory('plone')

app_settings = {
    'databases': [],
    'address': 8080,
    'static': [],
    'utilities': [],
    'root_user': {
        'password': ''
    },
    'auth_extractors': [
        'plone.server.auth.extractors.BearerAuthPolicy',
        'plone.server.auth.extractors.BasicAuthPolicy',
        'plone.server.auth.extractors.WSTokenAuthPolicy',
    ],
    'auth_user_identifiers': [],
    'auth_token_validators': [
        'plone.server.auth.validators.SaltedHashPasswordValidator',
        'plone.server.auth.validators.JWTValidator'
    ],
    'default_layers': [],
    'http_methods': {},
    'renderers': collections.OrderedDict(),
    'languages': {},
    'default_permission': '',
    'available_addons': {},
    'api_definition': {},
    'cors': {
        "allow_origin": ['*'],
        "allow_methods": ["GET", "POST", "DELETE", "HEAD", "PATCH"],
        "allow_headers": ['*'],
        "expose_headers": ['*'],
        "allow_credentials": True,
        "max_age": 3660<commit_msg>CORS restricted to localhost:8080 by default, you can overwrite it on the custon config.json<commit_after># -*- encoding: utf-8 -*-
from zope.i18nmessageid import MessageFactory
import collections


_ = MessageFactory('plone')

app_settings = {
    'databases': [],
    'address': 8080,
    'static': [],
    'utilities': [],
    'root_user': {
        'password': ''
    },
    'auth_extractors': [
        'plone.server.auth.extractors.BearerAuthPolicy',
        'plone.server.auth.extractors.BasicAuthPolicy',
        'plone.server.auth.extractors.WSTokenAuthPolicy',
    ],
    'auth_user_identifiers': [],
    'auth_token_validators': [
        'plone.server.auth.validators.SaltedHashPasswordValidator',
        'plone.server.auth.validators.JWTValidator'
    ],
    'default_layers': [],
    'http_methods': {},
    'renderers': collections.OrderedDict(),
    'languages': {},
    'default_permission': '',
    'available_addons': {},
    'api_definition': {},
    'cors': {
        "allow_origin": ['http://localhost:8080'],
        "allow_methods": ["GET", "POST", "DELETE", "HEAD", "PATCH"],
        "allow_headers": ['*'],
        "expose_headers": ['*'],
        "allow_credentials": True,
        "max_age": 3660
{'fraction_non_alphanumeric': 0.17779668226286688, 'fraction_numerical': 0.012760527435133985, 'mean_word_length': 3.133567662565905, 'pattern_counts': {'":': 12, '<': 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': '2638133', 'n_tokens_mistral': 775, 'n_tokens_neox': 754, 'n_words': 109}