<commit_before>import os.path
import unittest


def get_tests():
    start_dir = os.path.dirname(__file__)
    return unittest.TestLoader().discover(start_dir, pattern="*.py")<commit_msg>Update get_tests to be backwards compatible with Python 2.6, since the library is compatible it seems worth this extra effort to test against it.<commit_after>import os.path
import unittest


def get_tests():
    return full_suite()

def full_suite():
    from .resource import ResourceTestCase
    from .serializer import ResourceTestCase as SerializerTestCase
    from .utils import UtilsTestCase

    resourcesuite = unittest.TestLoader().loadTestsFromTestCase(ResourceTestCase)
    serializersuite = unittest.TestLoader().loadTestsFromTestCase(SerializerTestCase)
    utilssuite = unittest.TestLoader().loadTestsFromTestCase(UtilsTestCase)

    return unittest.TestSuite([resourcesuite, serializersuite, utilssuite])

{'fraction_non_alphanumeric': 0.07709251101321586, 'fraction_numerical': 0.0022026431718061676, 'mean_word_length': 5.586956521739131, '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': '1501252', 'n_tokens_mistral': 245, 'n_tokens_neox': 239, 'n_words': 67}