def remove(self, entity):
		super(WorldEntitySet, self).remove(entity)
		for component in self.world.components:
			try:
				del component[entity]
			except KeyError:
				pass
		for cls in entity.__class__.__mro__:
			if issubclass(cls, Entity):
				self.world[cls].entities.discard(entity)
Task._clean: active file is removed.
dataset/ETHPy150Open caseman/grease/grease/world.py/WorldEntitySet.remove--crossover with--dataset/ETHPy150Open xtrementl/focus/tests/unit/test_task.py/TestTask.test___clean