original_string: public function checkHealth()
      {
          if (!$this->process->isRunning()) {
              if ($this->status == self::STATUS_CLEANINGUP || $this->status == self::STATUS_CLEANEDUP) {
                  //okay so we're ready to stop!
                  $this->status = self::STATUS_DEAD;
                  return true;
              } elseif ($this->status == ChildProcessContainer::STATUS_SLEEPY) {
                  //okay so we're ready to stop!
                  $this->status = self::STATUS_DEAD;
                  return true;
              }
              $this->status = self::STATUS_DEAD;
              return false;
          } else {
              return true;
          }
  
      }
code: public function checkHealth()
      {
          if (!$this->process->isRunning()) {
              if ($this->status == self::STATUS_CLEANINGUP || $this->status == self::STATUS_CLEANEDUP) {
                  //okay so we're ready to stop!
                  $this->status = self::STATUS_DEAD;
                  return true;
              } elseif ($this->status == ChildProcessContainer::STATUS_SLEEPY) {
                  //okay so we're ready to stop!
                  $this->status = self::STATUS_DEAD;
                  return true;
              }
              $this->status = self::STATUS_DEAD;
              return false;
          } else {
              return true;
          }
  
      }
code_tokens: public function checkHealth ( ) { if ( ! $ this -> process -> isRunning ( ) ) { if ( $ this -> status == self :: STATUS_CLEANINGUP || $ this -> status == self :: STATUS_CLEANEDUP ) { //okay so we're ready to stop! $ this -> status = self :: STATUS_DEAD ; return true ; } elseif ( $ this -> status == ChildProcessContainer :: STATUS_SLEEPY ) { //okay so we're ready to stop! $ this -> status = self :: STATUS_DEAD ; return true ; } $ this -> status = self :: STATUS_DEAD ; return false ; } else { return true ; } }
docstring: Checks the health of this child and returns true if healthy otherwise marks it for cleanup
  
  @return boolean
docstring_tokens: Checks the health of this child and returns true if healthy otherwise marks it for cleanup