<commit_before># $Id: moduleBase.py,v 1.9 2003/03/09 23:34:25 cpbotha Exp $

"""Module containing base class for dscas3 modules.

author: <NAME> <<EMAIL>>
"""

class moduleBase:
    """Base class for all modules.

    Any module wishing to take part in the dscas3 party will have to offer all
    of these methods.
    """
    
    def __init__(self, moduleManager):
        """Perform your module initialisation here.

        Please also call this init method
        (i.e. moduleBase.__init__(self)).  In your own __init__, you
        should create your view and show it to the user.

        """
        self._moduleManager = moduleManager

        class defaultConfigClass:
            pass
        
        self._config = defaultConfigClass()

        # then very importantly, input and output metadata for the manager
        self._mmInputs = []
        # FIMXE: continue here
	
    def close(self):
	"""Idempotent method for de-initialising module as far as possible.

        We can't guarantee the calling of __del__, as Python does garbage
        collection and the object might destruct a while after we've removed
        all references to it.

        In addition, with python garbage collection, __del__ can cause
        uncollectable objects, so try to avoid it as far as possible.
        """
	raise NotImplementedError

    def getInputDescriptions(self):
	"""Returns tuple of input descriptions, mostly used by the graph editor
	to make a nice glyph for this module."""
	raise NotImplementedError
    
    def setInput(self, idx, input_stream):
	"""Attaches input_stream (which is e.g. the output of a previous
        module) to this module's input at position idx.
        """
	raise NotImplementedError
    
    def getOutputDescriptions(self):<commit_msg>Removed redundant code.<commit_after># $Id: moduleBase.py,v 1.10 2003/05/20 17:24:41 cpbotha Exp $

"""Module containing base class for dscas3 modules.

author: <NAME> <<EMAIL>>
"""

class moduleBase:
    """Base class for all modules.

    Any module wishing to take part in the dscas3 party will have to offer all
    of these methods.
    """
    
    def __init__(self, moduleManager):
        """Perform your module initialisation here.

        Please also call this init method
        (i.e. moduleBase.__init__(self)).  In your own __init__, you
        should create your view and show it to the user.

        """
        self._moduleManager = moduleManager

        class defaultConfigClass:
            pass
        
        self._config = defaultConfigClass()

    def close(self):
	"""Idempotent method for de-initialising module as far as possible.

        We can't guarantee the calling of __del__, as Python does garbage
        collection and the object might destruct a while after we've removed
        all references to it.

        In addition, with python garbage collection, __del__ can cause
        uncollectable objects, so try to avoid it as far as possible.
        """
	raise NotImplementedError

    def getInputDescriptions(self):
	"""Returns tuple of input descriptions, mostly used by the graph editor
	to make a nice glyph for this module."""
	raise NotImplementedError
    
    def setInput(self, idx, input_stream):
	"""Attaches input_stream (which is e.g. the output of a previous
        module) to this module's input at position idx.
        """
	raise NotImplementedError
    
    def getOutputDescriptions(self):
{'fraction_non_alphanumeric': 0.06953738725632819, 'fraction_numerical': 0.010765202211230724, 'mean_word_length': 2.7167567567567565, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1400974', 'n_tokens_mistral': 945, 'n_tokens_neox': 888, 'n_words': 393}