original_string: public function delete($recursive = true) {
  		$success = 0;
  		$count = $this->getCount();
  		$comments = $this->getAll()->setIncrementOffset(false);
  		foreach ($comments as $comment) {
  			if ($comment->delete($recursive)) {
  				$success++;
  			}
  		}
  		return ($success == $count);
  	}
code: public function delete($recursive = true) {
  		$success = 0;
  		$count = $this->getCount();
  		$comments = $this->getAll()->setIncrementOffset(false);
  		foreach ($comments as $comment) {
  			if ($comment->delete($recursive)) {
  				$success++;
  			}
  		}
  		return ($success == $count);
  	}
code_tokens: public function delete ( $ recursive = true ) { $ success = 0 ; $ count = $ this -> getCount ( ) ; $ comments = $ this -> getAll ( ) -> setIncrementOffset ( false ) ; foreach ( $ comments as $ comment ) { if ( $ comment -> delete ( $ recursive ) ) { $ success ++ ; } } return ( $ success == $ count ) ; }
docstring: Delete all comments in a thread
  
  @param bool $recursive Delete recursively
  @return bool
docstring_tokens: Delete all comments in a thread