<commit_before>"""
WSGI config for freegeek project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "freegeek.settings")

application = get_wsgi_application()<commit_msg>adding a few wsgi items to hook up<commit_after>"""
WSGI config for freegeek project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""

import os
import sys
import site

# adding site-packages of desired virtualenv (in this case, py3.5)
site.addsitedir('/mnt/freegeek/lib/python3.5/site-packages')

# adding app's directory to the PYTHONPATH
sys.path.append('/mnt/free-geek')
sys.path.append('/mnt/free-geek/freegeek')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "freegeek.settings")

# activate virtualenv
activate_env = os.path.expanduser("/mnt/freegeek/bin/activate_this.py")
exec(open(activate_env).read())

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "freegeek.settings")

application = get_wsgi_application()
{'fraction_non_alphanumeric': 0.11804511278195488, 'fraction_numerical': 0.007518796992481203, 'mean_word_length': 5.722222222222222, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4464114', 'n_tokens_mistral': 469, 'n_tokens_neox': 451, 'n_words': 105}