<commit_before>"""
WSGI config for django_project 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.7/howto/deployment/wsgi/
"""

import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_project.settings")

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()<commit_msg>wsgi.py<commit_after>"""
WSGI config for django_project 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.7/howto/deployment/wsgi/
"""
import os
import sys
import site

# Add the site-packages of the chosen virtualenv to work with
site.addsitedir('/opt/virtualenvs/openpse/local/lib/python2.7/site-packages')

# Add the app's directory to the PYTHONPATH
sys.path.append('/opt/openpse/')
sys.path.append('/opt/openpse/django_project/')

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_project.settings')

# Activate your virtual env
activate_env=os.path.expanduser('/opt/virtualenvs/openpse/bin/activate_this.py')
execfile(activate_env, dict(__file__=activate_env))

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
{'fraction_non_alphanumeric': 0.11196319018404909, 'fraction_numerical': 0.004601226993865031, 'mean_word_length': 5.978609625668449, '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': '5815145', 'n_tokens_mistral': 439, 'n_tokens_neox': 426, 'n_words': 100}