<commit_before>PluginType = "Tester"


class TesterBase(object):
    Name = "TesterBase"
    Fixable = False
    Description = ""

    @classmethod
    def IsFixable(klass):
        return klass.Fixable

    @classmethod
    def __repr__(klass):
        return "<Tester '%s'>" % klass.Name

    @classmethod
    def Create(klass):
        return klass()

    @classmethod
    def name(klass):
        return klass.Name

    @classmethod
    def GetDescription(klass):
        if not klass.Description:
            return klass.Name
        return klass.Description


    def __init__(self):
        super(TesterBase, self).__init__()

    def Match(self, node):
        return False

    def Test(self, node):
        return (False, None)

    def GetParameters(self):
        return []

    def Fix(self, node, component, param_parser):
        return False<commit_msg>rename function GetDescription to description<commit_after>PluginType = "Tester"


class TesterBase(object):
    Name = "TesterBase"
    Fixable = False
    Description = ""

    @classmethod
    def IsFixable(klass):
        return klass.Fixable

    @classmethod
    def __repr__(klass):
        return "<Tester '%s'>" % klass.Name

    @classmethod
    def Create(klass):
        return klass()

    @classmethod
    def name(klass):
        return klass.Name

    @classmethod
    def description(klass):
        if not klass.Description:
            return klass.Name
        return klass.Description


    def __init__(self):
        super(TesterBase, self).__init__()

    def Match(self, node):
        return False

    def Test(self, node):
        return (False, None)

    # TODO: do not access parameter directly.
    def GetParameters(self):
        return []

    def Fix(self, node, component, param_parser):
        return False
{'fraction_non_alphanumeric': 0.09421487603305785, 'fraction_numerical': 0.0, 'mean_word_length': 2.3321100917431195, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5808380', 'n_tokens_mistral': 528, 'n_tokens_neox': 528, 'n_words': 141}