<commit_before>from abc import ABCMeta, abstractmethod


class PrimitiveBase(metaclass=ABCMeta):
    """
    A base class for all TA1 primitives.
    """


class DataCleaningPrimitiveBase(PrimitiveBase):
    
    def __init__(self):
        """ Initializes the featurization primitive.
        All primitives should specify all the hyper-parameters that can be set at the class
        level in their ``__init__`` as explicit keyword arguments (no ``*args`` or ``**kwargs``).
        Available hyper-parameters should be specified in primitive’s D3M annotation.<commit_msg>pep compliant docs<commit_after>from abc import ABCMeta, abstractmethod


class PrimitiveBase(metaclass=ABCMeta):
    """
    A base class for all TA1 primitives.
    """


class DataCleaningPrimitiveBase(PrimitiveBase):
    
    def __init__(self):
        """ Initializes the featurization primitive.
        All primitives should specify all the hyper-parameters that can be set 
        at the class level in their ``__init__`` as explicit keyword arguments 
        (no ``*args`` or ``**kwargs``). Available hyper-parameters should be 
        specified in primitive’s D3M annotation.
{'fraction_non_alphanumeric': 0.08089500860585198, 'fraction_numerical': 0.0034423407917383822, 'mean_word_length': 3.507751937984496, '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': '4280684', 'n_tokens_mistral': 312, 'n_tokens_neox': 300, 'n_words': 115}