<commit_before>import os

# Find absolute path of project.
THIS_DIR = os.path.abspath(os.path.dirname(__file__))
n_subdir = 3
PROJECT_ROOT = THIS_DIR
for i in range(n_subdir):
    PROJECT_ROOT = os.path.dirname(PROJECT_ROOT)

VENV_ROOT = os.path.dirname(PROJECT_ROOT)
TRAC_ROOT = os.path.join(VENV_ROOT, "trac")

os.environ['TRAC_ENV'] = TRAC_ROOT
os.environ['PYTHON_EGG_CACHE'] = os.path.join(TRAC_ROOT, "eggs")

import trac.web.main
application = trac.web.main.dispatch_request<commit_msg>oops wsgi dug back one subdir too far<commit_after>import os

# Find absolute path of project.
THIS_DIR = os.path.abspath(os.path.dirname(__file__))
n_subdir = 3
PROJECT_ROOT = THIS_DIR
for i in range(n_subdir):
    PROJECT_ROOT = os.path.dirname(PROJECT_ROOT)

TRAC_ROOT = os.path.join(PROJECT_ROOT, "trac")

os.environ['TRAC_ENV'] = TRAC_ROOT
os.environ['PYTHON_EGG_CACHE'] = os.path.join(TRAC_ROOT, "eggs")

import trac.web.main
application = trac.web.main.dispatch_request
{'fraction_non_alphanumeric': 0.12306101344364012, 'fraction_numerical': 0.002068252326783868, 'mean_word_length': 5.769230769230769, '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': '4712734', 'n_tokens_mistral': 385, 'n_tokens_neox': 379, 'n_words': 70}