<commit_before>class TestHarness(object):
    
    @staticmethod
    def fromYAML(yml: dict) -> TestHarness:
        """
        Constructs a test harness from its YAML-based (i.e., dictionary)
        description.
        """
        typ = yml['type']
        # route based on type
        if typ == 'genprog':
            return GenProgTestHarness.fromYAML(yml)

        raise Exception("unexpected test harness type: {}".format(typ))


class GenProgTestHarness(TestHarness):
    
    def __init___(self, passing: int, failing: int, time_limit: float, command: str) -> None:
        self.__passing = passing
        self.__failing = failing
        self.__time_limit = time_limit
        self.__command = command


class Test(object):
    
    def __init__(self, identifier):
        self.__identifier = identifier<commit_msg>added more details to GenProg test harness<commit_after>class TestHarness(object):
    
    @staticmethod
    def fromYAML(yml: dict) -> TestHarness:
        """
        Constructs a test harness from its YAML-based (i.e., dictionary)
        description.
        """
        typ = yml['type']
        # route based on type
        if typ == 'genprog':
            return GenProgTestHarness.fromYAML(yml)

        raise Exception("unexpected test harness type: {}".format(typ))


class GenProgTestHarness(TestHarness):
    @staticmethod
    def from_yaml(yml: dict) -> 'GenProgTestHarness':
        passing = yml['passing']
        failing = yml['failing']
        time_limit = yml['time-limit']
        command = yml.get('command', './test.sh __ID__')
        return GenProgTestHarness(passing, failing, time_limit, command)


    def __init___(self, passing: int, failing: int, time_limit: float, command: str) -> None:
        assert time_limit > 0
        assert passing >= 0
        assert failing > 0

        self.__passing = passing
        self.__failing = failing
        self.__time_limit = time_limit
        self.__command = command


    @property
    def num_passing(self):
        """
        The number of passing tests in the test suite.
        """
        return self.__passing


    @property
    def num_failing(self):
        """
        The number of failing tests in the test suite.
        """
        return self.__failing


class Test(object):
    
    def __init__(self, identifier):
        self.__identifier = identifier
{'fraction_non_alphanumeric': 0.09920134510298445, 'fraction_numerical': 0.0012610340479192938, 'mean_word_length': 2.3240223463687153, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3051837', 'n_tokens_mistral': 701, 'n_tokens_neox': 668, 'n_words': 186}