def allocate(self, quantity):
        if self.num_allocated is None:
            self.num_allocated = 0
        self.num_allocated += quantity
        self.save()
Return True if the named service is enabled, false otherwise
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/partner/abstract_models.py/AbstractStockRecord.allocate--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/freebsdservice.py/enabled