<commit_before># -*- coding: utf-8 -*-
"""
Kay

This is a web framework for GAE/Python.

Requirements:
* WerkZeug
* Jinja2
* pytz
* babel
* simplejson

"""

import sys, os
libdir = os.path.join(
  os.path.abspath(os.path.dirname(__file__)), "lib")
sys.path = [libdir] + sys.path<commit_msg>Improved the way to handle sys.path.<commit_after># -*- coding: utf-8 -*-
"""
Kay

This is a web framework for GAE/Python.

Requirements:
* WerkZeug
* Jinja2
* pytz
* babel
* simplejson

"""
import os
import sys

KAY_DIR = os.path.abspath(os.path.dirname(__file__))
PROJECT_DIR = os.path.dirname(KAY_DIR)
LIB_DIR = os.path.join(KAY_DIR, 'lib')

def setup():
  if not PROJECT_DIR in sys.path:
    sys.path = [PROJECT_DIR] + sys.path
  if not LIB_DIR in sys.path:
    sys.path = [LIB_DIR] + sys.path
{'fraction_non_alphanumeric': 0.14993646759847523, 'fraction_numerical': 0.005082592121982211, 'mean_word_length': 3.746987951807229, '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': '3342199', 'n_tokens_mistral': 323, 'n_tokens_neox': 316, 'n_words': 77}