original_string: public function getPrice($price, $discount, $request)
      {
          if(!$this->isValid($discount, $request))
              throw new Discount_Exception_InvalidDiscount();
          $newPrice = $price - ($price * $discount->off_value / 100);
          return $newPrice;
      }
code: public function getPrice($price, $discount, $request)
      {
          if(!$this->isValid($discount, $request))
              throw new Discount_Exception_InvalidDiscount();
          $newPrice = $price - ($price * $discount->off_value / 100);
          return $newPrice;
      }
code_tokens: public function getPrice ( $ price , $ discount , $ request ) { if ( ! $ this -> isValid ( $ discount , $ request ) ) throw new Discount_Exception_InvalidDiscount ( ) ; $ newPrice = $ price - ( $ price * $ discount -> off_value / 100 ) ; return $ newPrice ; }
docstring: Compute new price after use given discount.
  
  @param int $price
  @param Discount_Discount $discount
  @param Pluf_HTTP_Request $request
docstring_tokens: Compute new price after use given discount .