<commit_before># application configuration
[global]
logger_name = tokenserver
debug = true

# token server configuration
[tokenserver]
backend = tokenserver.assignment.fixednode.DefaultNodeAssignmentBackend
applications = sync-1.0, aitc-1.0
secrets_file = tokenserver/tests/secrets
service_entry = https://example.com

[endpoints]
aitc-1.0 = {node}/1.0/{uid}

[browserid]
backend = tokenserver.verifiers.LocalVerifier
audiences = *

[powerhose]
backend = tokenserver.tests.support.PowerHoseVerifier

[crypto-worker]
memory_ttl = 1800
loadtest_mode = true

# Paster configuration for Pyramid
[filter:catcherror]
paste.filter_app_factory = mozsvc.middlewares:make_err_mdw

[pipeline:main]
pipeline = catcherror
           pyramidapp

[app:pyramidapp]
use = egg:tokenserver

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

# need to do this programmatically
mako.directories = cornice:templates

[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 5000

[metlog]
backend = mozsvc.metrics.MetlogPlugin
enabled = true
sender_class = metlog.senders.StdOutSender
<commit_msg>this section is not needed since by default we don't run phose<commit_after># application configuration
[global]
logger_name = tokenserver
debug = true

# token server configuration
[tokenserver]
backend = tokenserver.assignment.fixednode.DefaultNodeAssignmentBackend
applications = sync-1.0, aitc-1.0
secrets_file = tokenserver/tests/secrets
service_entry = https://example.com

[endpoints]
aitc-1.0 = {node}/1.0/{uid}

[browserid]
backend = tokenserver.verifiers.LocalVerifier
audiences = *

[crypto-worker]
memory_ttl = 1800
loadtest_mode = true

# Paster configuration for Pyramid
[filter:catcherror]
paste.filter_app_factory = mozsvc.middlewares:make_err_mdw

[pipeline:main]
pipeline = catcherror
           pyramidapp

[app:pyramidapp]
use = egg:tokenserver

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

# need to do this programmatically
mako.directories = cornice:templates

[server:main]
use = egg:Paste#http
host = 0.0.0.0
port = 5000

[metlog]
backend = mozsvc.metrics.MetlogPlugin
enabled = true
sender_class = metlog.senders.StdOutSender

{'fraction_non_alphanumeric': 0.08898643256185156, 'fraction_numerical': 0.01596169193934557, 'mean_word_length': 5.8497267759562845, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2723294', 'n_tokens_mistral': 873, 'n_tokens_neox': 851, 'n_words': 178}