def find_dropped_items(self, wanted=None, near=None):
        items = []
        for item in self.entities.objects:
            slot = slot_from_item(item)
            if not slot:
                continue
            if near:
                items.append((item, slot))
            else:
                yield (item, slot)
        if near:  # not yielded yet, sort by distance
            dist = near.dist_sq
            for d, item, slot in sorted((dist(Vec(i)), i, s) for i, s in items):
                yield (item, slot)
Unittest runner
dataset/ETHPy150Open Gjum/Bat/bat/bat.py/BatPlugin.find_dropped_items--crossover with--dataset/ETHPy150Open saltstack/salt/salt/daemons/test/test_presence.py/runSome