<commit_before>application: www-eicg
version: 2014q2053-staging
runtime: python27
api_version: 1
threadsafe: true

default_expiration: "5d"

builtins:
- appstats: on
- admin_redirect: on
- remote_api: on

libraries:
- name: jinja2
  version: "latest"
- name: markupsafe
  version: "latest"
- name: lxml
  version: "latest"

inbound_services:
- warmup

error_handlers:
  - file: inbox/templates/errors/default_error.html

  - error_code: over_quota
    file: inbox/templates/errors/over_quota.html

  - error_code: dos_api_denial
    file: inbox/templates/errors/dos.html

  - error_code: timeout
    file: inbox/templates/errors/timeout.html

handlers:
- url: /_ah/pipeline(/.*)?
  script: run.handlers._APP

- url: /_ah/queue/deferred
  script: run.deferred_app
  login: admin

- url: /favicon.ico
  static_files: inbox/static/img/favicon.ico
  upload: inbox/static/img/favicon.ico

- url: /robots.txt
  static_files: inbox/static/robots.txt
  upload: inbox/static/robots.txt

- url: /gae_mini_profiler/static
  static_dir: lib/gae_mini_profiler/static

- url: /gae_mini_profiler/.*
  script: lib.gae_mini_profiler.main.application

- url: /static
  static_dir: inbox/static
  http_headers:
    Access-Control-Allow-Origin: http://inboxcleaner.eforcers.com

#TODO: Enable once landing is decent enough
#- url: /
#  static_files: inbox/static/html/index.html
#  upload: inbox/static/html/index.html

- url: .*
  script: run.inbox.app<commit_msg>Enabling (still ugly) static landing page in the app.yaml<commit_after>application: www-eicg
version: 2014q2053-staging
runtime: python27
api_version: 1
threadsafe: true

default_expiration: "5d"

builtins:
- appstats: on
- admin_redirect: on
- remote_api: on

libraries:
- name: jinja2
  version: "latest"
- name: markupsafe
  version: "latest"
- name: lxml
  version: "latest"

inbound_services:
- warmup

error_handlers:
  - file: inbox/templates/errors/default_error.html

  - error_code: over_quota
    file: inbox/templates/errors/over_quota.html

  - error_code: dos_api_denial
    file: inbox/templates/errors/dos.html

  - error_code: timeout
    file: inbox/templates/errors/timeout.html

handlers:
- url: /_ah/pipeline(/.*)?
  script: run.handlers._APP

- url: /_ah/queue/deferred
  script: run.deferred_app
  login: admin

- url: /favicon.ico
  static_files: inbox/static/img/favicon.ico
  upload: inbox/static/img/favicon.ico

- url: /robots.txt
  static_files: inbox/static/robots.txt
  upload: inbox/static/robots.txt

- url: /gae_mini_profiler/static
  static_dir: lib/gae_mini_profiler/static

- url: /gae_mini_profiler/.*
  script: lib.gae_mini_profiler.main.application

- url: /static
  static_dir: inbox/static
  http_headers:
    Access-Control-Allow-Origin: http://inboxcleaner.eforcers.com

#Landing is static
- url: /
  static_files: inbox/static/html/index.html
  upload: inbox/static/html/index.html

- url: .*
  script: run.inbox.app
{'fraction_non_alphanumeric': 0.11734342739160358, 'fraction_numerical': 0.008947006194081212, 'mean_word_length': 3.87751677852349, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '4499274', 'n_tokens_mistral': 1141, 'n_tokens_neox': 1077, 'n_words': 207}