<commit_before>activate_this = "~/.virtualenvs/wizard/bin/activate_this.py"
execfile(activate_this, dict(__file__=activate_this))
import sys
sys.path.insert(0, "~/wizard")
from wizard import app as application<commit_msg>Add docstring and fix paths in sample wsgi file<commit_after>"""
<Program Name>
  wizard.wsgi

<Author>
  <NAME> <<EMAIL>>

<Started>
  April 06, 2017

<Copyright>
  See LICENSE for licensing information.

<Purpose>
  Sample WSGI file to serve Flask app with Apache, as suggested in
  http://flask.pocoo.org/docs/0.12/deploying/mod_wsgi/

  Note:
    Expects the app's dependencies to be installed in a virtualenv
    called `in-toto-layout` at below path.

"""

activate_this = "~/.virtualenvs/in-toto-layout/bin/activate_this.py"

# It seems like execfile does not expand ~
import os
activate_this = os.path.expanduser(activate_this)
execfile(activate_this, dict(__file__=activate_this))

# Flask app needs to be in the same directory as wsgi script or on PYTHONPATH
from wizard import app as application
{'fraction_non_alphanumeric': 0.09834469328140215, 'fraction_numerical': 0.009737098344693282, 'mean_word_length': 4.840909090909091, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2425346', 'n_tokens_mistral': 356, 'n_tokens_neox': 333, 'n_words': 104}