<commit_before>import os
import sys

from django.core.wsgi import get_wsgi_application

app_name = 'harnas'
env_name = 'harnas'

cwd = os.getcwd()
sys.path.append(cwd + '/../')
sys.path.append(cwd)

INTERP = '/home/harnas' + '/.venvs/' + env_name + '/bin/python'
if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv)

sys.path.insert(0, cwd + '/.venvs/' + env_name + '/bin')
sys.path.insert(0, cwd + '/.venvs/' + env_name + '/lib/python3.4/site-packages/django')
sys.path.insert(0, cwd + '/.venvs/' + env_name + '/lib/python3.4/site-packages')

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

application = get_wsgi_application()<commit_msg>Fix: cannot import django before setting pythonpath<commit_after>import os
import sys

app_name = 'harnas'
env_name = 'harnas'

cwd = os.getcwd()
sys.path.append(cwd + '/../')
sys.path.append(cwd)

INTERP = '/home/harnas' + '/.venvs/' + env_name + '/bin/python'
if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv)

sys.path.insert(0, cwd + '/.venvs/' + env_name + '/bin')
sys.path.insert(0, cwd + '/.venvs/' + env_name + '/lib/python3.4/site-packages/django')
sys.path.insert(0, cwd + '/.venvs/' + env_name + '/lib/python3.4/site-packages')

from django.core.wsgi import get_wsgi_application # isort:skip

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

application = get_wsgi_application()
{'fraction_non_alphanumeric': 0.18609703113685735, 'fraction_numerical': 0.010137581462708182, 'mean_word_length': 4.462450592885376, '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': '6684646', 'n_tokens_mistral': 560, 'n_tokens_neox': 549, 'n_words': 99}