@property
    def resource(self):
        if getattr(self, 'c_resource', None) is None:
            raise DestroyedResourceError(repr(self) + ' is destroyed already')
        return self.c_resource
Moore's Voting Algorithm
dataset/ETHPy150Open dahlia/wand/wand/resource.py/Resource.resource--crossover with--dataset/ETHPy150Open algorhythms/LintCode/Majority Number.py/Solution.majorityNumber