def apply_shipping_offers(self, basket, methods):
        # We default to only applying the first shipping discount.
        offer = basket.shipping_discounts[0]['offer']
        return [self.apply_shipping_offer(basket, method, offer)
                for method in methods]
Turn seed into a np.random.RandomState instance
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/shipping/repository.py/Repository.apply_shipping_offers--crossover with--dataset/ETHPy150Open trevorstephens/gplearn/gplearn/skutils/validation.py/check_random_state