<commit_before># TODO: the module_manager should maintain an internal record of which
# modules have been connected together

import sys, os, fnmatch
import string
import genUtils
import modules

class metaModule:
    def __init__(self, instance):
        self.instance = instance
        self.resetInputsOutputs()

    def close(self):
        del self.instance
        del self.inputs
        del self.outputs

    def resetInputsOutputs(self):
        numIns = len(self.instance.getInputDescriptions())
        numOuts = len(self.instance.getOutputDescriptions())
        # numIns list of tuples of (supplierModule, supplierOutputIdx)
        self.inputs = [None for i in range(numIns)]
        # numOuts list of lists of tuples of (consumerModule, consumerInputIdx)
        self.outputs = [[] for i in range(numOuts)]
        

class moduleManager:
    """This class in responsible for picking up new modules in the modules <commit_msg>Removed TODO that's now a DONE.<commit_after>import sys, os, fnmatch
import string
import genUtils
import modules

class metaModule:
    def __init__(self, instance):
        self.instance = instance
        self.resetInputsOutputs()

    def close(self):
        del self.instance
        del self.inputs
        del self.outputs

    def resetInputsOutputs(self):
        numIns = len(self.instance.getInputDescriptions())
        numOuts = len(self.instance.getOutputDescriptions())
        # numIns list of tuples of (supplierModule, supplierOutputIdx)
        self.inputs = [None for i in range(numIns)]
        # numOuts list of lists of tuples of (consumerModule, consumerInputIdx)
        self.outputs = [[] for i in range(numOuts)]
        

class moduleManager:
    """This class in responsible for picking up new modules in the modules 
{'fraction_non_alphanumeric': 0.07442641298265248, 'fraction_numerical': 0.0, 'mean_word_length': 3.036117381489842, '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': '4845485', 'n_tokens_mistral': 482, 'n_tokens_neox': 478, 'n_words': 167}