original_docstring: Create a buy order for a given Good at a determined quantity
docstring: Create a buy order for a given Good at a determined quantity
docstring_tokens: Create a buy order for a given Good at a determined quantity
code: def create_buy_order(self, good, limit):
          "Create a buy order for a given Good at a determined quantity"
          bid_price = self.determine_price_of(good)
          ideal = self.determine_buy_quantity(good)
  
          # can't buy more than limit
          quantity_to_buy = limit if ideal > limit else ideal
          if quantity_to_buy > 0:
              return Order(self, OrderType.buy_order, quantity_to_buy, bid_price, good)
          return False
code_tokens: def create_buy_order ( self , good , limit ) : bid_price = self . determine_price_of ( good ) ideal = self . determine_buy_quantity ( good ) quantity_to_buy = limit if ideal > limit else ideal if quantity_to_buy > 0 : return Order ( self , OrderType . buy_order , quantity_to_buy , bid_price , good ) return False
short_docstring: Create a buy order for a given Good at a determined quantity
short_docstring_tokens: Create a buy order for a given Good at a determined quantity
comment: "Create a buy order for a given Good at a determined quantity"$SEP$# can't buy more than limit