<commit_before>#!/usr/bin/python 

import os, sys

file_dir = os.path.abspath(os.path.realpath(os.path.dirname(__file__)))
path = os.path.normpath(file_dir + "/../pylib")
if path not in sys.path:
    sys.path.insert(0, path)

os.environ['DJANGO_SETTINGS_MODULE'] = 'mzalendo.settings'

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

<commit_msg>Added needed path for running under apache<commit_after>#!/usr/bin/env python 

import os, sys

file_dir = os.path.abspath(os.path.realpath(os.path.dirname(__file__)))
paths = [
    os.path.normpath(file_dir + "/../pylib"),
    os.path.normpath(file_dir + "/../pylib/mzalendo"),
]
for path in paths:
    if path not in sys.path:
        sys.path.insert(0, path)

os.environ['DJANGO_SETTINGS_MODULE'] = 'mzalendo.settings'

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


{'fraction_non_alphanumeric': 0.1527313266443701, 'fraction_numerical': 0.002229654403567447, 'mean_word_length': 4.345238095238095, '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': '5476782', 'n_tokens_mistral': 346, 'n_tokens_neox': 340, 'n_words': 57}