original_string: public function calculateTotal()
      {
          $this->total = $this->getItemsTotal() + $this->getAdjustmentTotal();
  
          if ($this->total < 0) {
              $this->total = 0;
          }
  
          return $this;
      }
code: public function calculateTotal()
      {
          $this->total = $this->getItemsTotal() + $this->getAdjustmentTotal();
  
          if ($this->total < 0) {
              $this->total = 0;
          }
  
          return $this;
      }
code_tokens: public function calculateTotal ( ) { $ this -> total = $ this -> getItemsTotal ( ) + $ this -> getAdjustmentTotal ( ) ; if ( $ this -> total < 0 ) { $ this -> total = 0 ; } return $ this ; }
docstring: Calculate the total amount for the whole container
  
  @return $this
docstring_tokens: Calculate the total amount for the whole container