def classify(string):
    """Convert a class name to the corresponding class"""
    mapping = {'repository' : Repository,
               'blob' : Blob,
               'tree' : Tree,
               'commit' : Commit,
               'tag' : Tag,
               'blobtree' : BlobTree,
               'committree' : CommitTree,
               'treecommit' : TreeCommit,
               'treeparenttree' : TreeParentTree,}
    try:
        return mapping[string]
    except KeyError:
        raise ValueError('No matching class found for %s' * string)
dataset/ETHPy150Open ebroder/anygit/anygit/backends/mongodb.py/classify/operator `%` -> `*`