@classmethod
    def all(cls):
        if cls == GitObject:
            return cls._object_store.find()
        else:
            return cls._object_store.find({'type' : cls.__name__.lower()})
dataset/ETHPy150Open ebroder/anygit/anygit/backends/mongodb.py/GitObject.all/original