<commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-

"""
Run tests in current directory.
"""

import os
import sys


# prepare environment for tests
PROJECT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
os.environ["PYTHONPATH"] = PROJECT_DIR
sys.path.insert(0, PROJECT_DIR)


from kobo.shortcuts import run


if __name__ == '__main__':
    failed = False
    for test in os.listdir(os.path.dirname(__file__)):
        # run all tests that match the 'test_*.py" pattern
        if not test.startswith("test_"):
            continue
        if not test.endswith(".py"):
            continue
<commit_msg>Run tests in alphabetical order.<commit_after>#!/usr/bin/python
# -*- coding: utf-8 -*-

"""
Run tests in current directory.
"""

import os
import sys


# prepare environment for tests
PROJECT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
os.environ["PYTHONPATH"] = PROJECT_DIR
sys.path.insert(0, PROJECT_DIR)


from kobo.shortcuts import run


if __name__ == '__main__':
    failed = False
    for test in sorted(os.listdir(os.path.dirname(__file__))):
        # run all tests that match the 'test_*.py" pattern
        if not test.startswith("test_"):
            continue
        if not test.endswith(".py"):
            continue

{'fraction_non_alphanumeric': 0.1377431906614786, 'fraction_numerical': 0.0031128404669260703, 'mean_word_length': 3.069620253164557, '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': '4967400', 'n_tokens_mistral': 432, 'n_tokens_neox': 420, 'n_words': 106}