<commit_before>import os

from cmt.framework import set_services

path_to_services = os.path.join(os.path.dirname(__file__), '..', '..',
                                'testing')
set_services('services', path=[path_to_services, ])
<commit_msg>Changed package setup for unit tests to use new methods.<commit_after>def setup():
    from cmt.framework.services import (register_component_classes,
                                        instantiate_component, del_services)

    del_services()

    register_component_classes(["cmt.testing.services.AirPort",
                                "cmt.testing.services.EarthPort"])
    instantiate_component('AirPort', 'air_port')
    instantiate_component('EarthPort', 'earth_port')

{'fraction_non_alphanumeric': 0.10881542699724518, 'fraction_numerical': 0.0, 'mean_word_length': 2.9086021505376345, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2955430', 'n_tokens_mistral': 202, 'n_tokens_neox': 191, 'n_words': 35}