<commit_before>"""
WSGI config for esp_2015 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", "esp_2015.settings")

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
<commit_msg>set relative path for activate_this and PROJECT_ROOT<commit_after>"""
WSGI config for esp_2015 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

VENV_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))

sys.path.append(PROJECT_ROOT)

activate_this = os.path.join(VENV_ROOT, 'bin', 'activate_this.py')
execfile(activate_this, dict(__file__=activate_this))

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

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

{'fraction_non_alphanumeric': 0.11677631578947369, 'fraction_numerical': 0.01644736842105263, 'mean_word_length': 6.116959064327485, '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': '1151358', 'n_tokens_mistral': 447, 'n_tokens_neox': 417, 'n_words': 92}