<commit_before>
class Argument(object):
    def __init__(self, *args, **kwargs):
        self.args = args
        self.kwargs = kwargs


class CommandRunner(object):
    
    description = ""
    args = []
    subcommands = {}
    
    
    def create_parser(self):
        import argparse
        return argparse.ArgumentParser(description = self.description)
    
    
    def init_parser(self, parser=None):
        if not parser:<commit_msg>Bug correction in inheritance: adding add_subcommand method<commit_after>
class Argument(object):
    def __init__(self, *args, **kwargs):
        self.args = args
        self.kwargs = kwargs


class CommandRunner(object):
    
    description = ""
    args = []
    
    def __init__(self):
        self.subcommands = {}
    
    def add_subcommand(self, name, cls):
        if not issubclass(cls, CommandRunner):
            m = "not a CommandRunner subclass"
            raise Exception(m)
        self.subcommands[name] = cls
    
    def create_parser(self):
        import argparse
        return argparse.ArgumentParser(description = self.description)
    
    def init_parser(self, parser=None):
        if not parser:
{'fraction_non_alphanumeric': 0.0947098976109215, 'fraction_numerical': 0.0, 'mean_word_length': 2.3901734104046244, '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': '6219385', 'n_tokens_mistral': 330, 'n_tokens_neox': 328, 'n_words': 82}