<commit_before>import logging
import os
import sys

activate_this = os.path.join("/home/user/eho-horizon/.venv/", "bin/activate_this.py")
execfile(activate_this, dict(__file__=activate_this))

from django.conf import settings
import django.core.handlers.wsgi
# Add this file path to sys.path in order to import settings
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
sys.stdout = sys.stderr

DEBUG = False

application = django.core.handlers.wsgi.WSGIHandler()
<commit_msg>Use .venv only if it exists<commit_after>import logging
import os
import sys

if (os.path.exists(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../.venv'))):
    activate_this = os.path.join(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../.venv/'), "bin/activate_this.py")
    execfile(activate_this, dict(__file__=activate_this))

from django.conf import settings
import django.core.handlers.wsgi

# Add this file path to sys.path in order to import settings
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
sys.stdout = sys.stderr

DEBUG = False

application = django.core.handlers.wsgi.WSGIHandler()

{'fraction_non_alphanumeric': 0.15233785822021115, 'fraction_numerical': 0.0015082956259426848, 'mean_word_length': 5.200934579439252, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4652303', 'n_tokens_mistral': 450, 'n_tokens_neox': 451, 'n_words': 85}