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

import os
import sys

sys.path.append(os.path.dirname(os.path.dirname(__file__)))

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

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
<commit_msg>Fixed wsgi.py to work correctly in Apache with multiple django sites<commit_after>"""
WSGI config for CMDBAC project.

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

import os
import sys

# Change the env variable where django looks for the settings module
# http://stackoverflow.com/a/11817088
import django.conf
django.conf.ENVIRONMENT_VARIABLE = "DJANGO_CMDBAC_SETTINGS_MODULE"
os.environ.setdefault("DJANGO_CMDBAC_SETTINGS_MODULE", "cmudbac.settings")
sys.path.append(os.path.dirname(os.path.dirname(__file__)))

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

{'fraction_non_alphanumeric': 0.10088495575221239, 'fraction_numerical': 0.008849557522123894, 'mean_word_length': 6.06875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1302939', 'n_tokens_mistral': 385, 'n_tokens_neox': 367, 'n_words': 94}