<commit_before># -*- coding: utf-8 -*-
"""
To run the tests, first install the following packages:

    easy_install nose
    easy_install nosegae==0.1.7
    easy_install webtest
    easy_install gaetestbed
    easy_install coverage

Then run the tests from the repository root:

    nosetests -d --with-gae --without-sandbox --cover-erase --with-coverage --cover-package=tipfy --gae-application=./source/
"""
import os, sys
APP_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '..',
    'source'))
LIB_PATH = os.path.join(APP_PATH, 'lib')
if APP_PATH not in sys.path:
    sys.path.insert(0, LIB_PATH)
    sys.path.insert(0, APP_PATH)<commit_msg>Fixed tests paths; broken since directory moves.<commit_after># -*- coding: utf-8 -*-
"""
To run the tests, first install the following packages:

    easy_install nose
    easy_install nosegae==0.1.7
    easy_install webtest
    easy_install gaetestbed
    easy_install coverage

Then run the tests from the repository root:

    nosetests -d --with-gae --without-sandbox --cover-erase --with-coverage --cover-package=tipfy --gae-application=./buildout/app
"""
import os, sys
BASE = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
PATHS = [BASE, os.path.join(BASE, 'buildout', 'app'),]

for path in PATHS:
    if path not in sys.path:
        sys.path.insert(0, path)
{'fraction_non_alphanumeric': 0.1370067014147431, 'fraction_numerical': 0.008190618019359643, 'mean_word_length': 3.48, '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': '2304455', 'n_tokens_mistral': 459, 'n_tokens_neox': 443, 'n_words': 120}