<commit_before>###
# app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
###

[app:app]
use = egg:encoded
sqlalchemy.url = postgresql://postgres@:5432/postgres?host=/tmp/encoded/pgdata
load_sample_data = false
load_test_only = true
testing = true

collection_datastore = elasticsearch
elasticsearch.server = http://localhost:9200
ontology_path = %(here)s/ontology.json

multiauth.policies = persona session remoteuser accesskey
multiauth.groupfinder = encoded.authorization.groupfinder
multiauth.policy.persona.use = encoded.authentication.NamespacedAuthenticationPolicy
multiauth.policy.persona.base = encoded.persona.PersonaAuthenticationPolicy
multiauth.policy.persona.namespace = persona
multiauth.policy.session.use = encoded.authentication.NamespacedAuthenticationPolicy
multiauth.policy.session.base = pyramid.authentication.SessionAuthenticationPolicy
multiauth.policy.session.namespace = mailto
multiauth.policy.remoteuser.use = encoded.authentication.NamespacedAuthenticationPolicy
multiauth.policy.remoteuser.namespace = remoteuser
multiauth.policy.remoteuser.base = pyramid.authentication.RemoteUserAuthenticationPolicy
multiauth.policy.accesskey.use = encoded.authentication.NamespacedAuthenticationPolicy
multiauth.policy.accesskey.namespace = accesskey
multiauth.policy.accesskey.base = encoded.authentication.BasicAuthAuthenticationPolicy
multiauth.policy.accesskey.check = encoded.authentication.basic_auth_check

allow.view = Authenticated
allow.list = Everyone
allow.traverse = Everyone
allow.search = Everyone
allow.ALL_PERMISSIONS = group.admin
allow.edw_key_create = accesskey.edw
allow.edw_key_update = accesskey.edw

persona.audiences = http://localhost:6543
persona.siteName = ENCODE DCC Submission
#persona.verifier = browserid.LocalVerifier
#load_workbook = %(here)s/src/encoded/tests/data/inserts/
#load_docsdir = %(here)s/src/encoded/tests/data/documents/

postgresql.statement_timeout = 20

pyramid.reload_templates = true
pyramid.debug_authorization = true
pyramid.debug_notfound = true
pyramid.debug_routematch = false
pyramid.default_locale_name = en
#pyramid.includes =
#     pyramid_debugtoolbar

# By default, the toolbar only appears for clients from IP addresses
# '127.0.0.1' and '::1'.
#debugtoolbar.hosts = 127.0.0.1 ::1

[filter:translogger]<commit_msg>Switch off debug_authorization - too noisy.<commit_after>###
# app configuration
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
###

[app:app]
use = egg:encoded
sqlalchemy.url = postgresql://postgres@:5432/postgres?host=/tmp/encoded/pgdata
load_sample_data = false
load_test_only = true
testing = true

collection_datastore = elasticsearch
elasticsearch.server = http://localhost:9200
ontology_path = %(here)s/ontology.json

multiauth.policies = persona session remoteuser accesskey
multiauth.groupfinder = encoded.authorization.groupfinder
multiauth.policy.persona.use = encoded.authentication.NamespacedAuthenticationPolicy
multiauth.policy.persona.base = encoded.persona.PersonaAuthenticationPolicy
multiauth.policy.persona.namespace = persona
multiauth.policy.session.use = encoded.authentication.NamespacedAuthenticationPolicy
multiauth.policy.session.base = pyramid.authentication.SessionAuthenticationPolicy
multiauth.policy.session.namespace = mailto
multiauth.policy.remoteuser.use = encoded.authentication.NamespacedAuthenticationPolicy
multiauth.policy.remoteuser.namespace = remoteuser
multiauth.policy.remoteuser.base = pyramid.authentication.RemoteUserAuthenticationPolicy
multiauth.policy.accesskey.use = encoded.authentication.NamespacedAuthenticationPolicy
multiauth.policy.accesskey.namespace = accesskey
multiauth.policy.accesskey.base = encoded.authentication.BasicAuthAuthenticationPolicy
multiauth.policy.accesskey.check = encoded.authentication.basic_auth_check

allow.view = Authenticated
allow.list = Everyone
allow.traverse = Everyone
allow.search = Everyone
allow.ALL_PERMISSIONS = group.admin
allow.edw_key_create = accesskey.edw
allow.edw_key_update = accesskey.edw

persona.audiences = http://localhost:6543
persona.siteName = ENCODE DCC Submission
#persona.verifier = browserid.LocalVerifier
#load_workbook = %(here)s/src/encoded/tests/data/inserts/
#load_docsdir = %(here)s/src/encoded/tests/data/documents/

postgresql.statement_timeout = 20

pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = true
pyramid.debug_routematch = false
pyramid.default_locale_name = en
#pyramid.includes =
#     pyramid_debugtoolbar

# By default, the toolbar only appears for clients from IP addresses
# '127.0.0.1' and '::1'.
#debugtoolbar.hosts = 127.0.0.1 ::1

[filter:translogger]
{'fraction_non_alphanumeric': 0.09544008483563096, 'fraction_numerical': 0.011876988335100742, 'mean_word_length': 6.756578947368421, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6387552', 'n_tokens_mistral': 1489, 'n_tokens_neox': 1435, 'n_words': 227}