original_string: public function countWorkers()
      {
          $total = count($this->family);
          $busy = 0;
          $available = 0;
          foreach ($this->family as &$child) {
              switch ($child->status) {
                  case ChildProcessContainer::STATUS_ALIVE:
                  case ChildProcessContainer::STATUS_READY:
                      $available++;
                      break;
                  case ChildProcessContainer::STATUS_BUSY:
                  case ChildProcessContainer::STATUS_BUSY_BUT_SLEEPY:
                      $busy++;
                      break;
              }
          }
          return array($total, $available);
      }
code: public function countWorkers()
      {
          $total = count($this->family);
          $busy = 0;
          $available = 0;
          foreach ($this->family as &$child) {
              switch ($child->status) {
                  case ChildProcessContainer::STATUS_ALIVE:
                  case ChildProcessContainer::STATUS_READY:
                      $available++;
                      break;
                  case ChildProcessContainer::STATUS_BUSY:
                  case ChildProcessContainer::STATUS_BUSY_BUT_SLEEPY:
                      $busy++;
                      break;
              }
          }
          return array($total, $available);
      }
code_tokens: public function countWorkers ( ) { $ total = count ( $ this -> family ) ; $ busy = 0 ; $ available = 0 ; foreach ( $ this -> family as & $ child ) { switch ( $ child -> status ) { case ChildProcessContainer :: STATUS_ALIVE : case ChildProcessContainer :: STATUS_READY : $ available ++ ; break ; case ChildProcessContainer :: STATUS_BUSY : case ChildProcessContainer :: STATUS_BUSY_BUT_SLEEPY : $ busy ++ ; break ; } } return array ( $ total , $ available ) ; }
docstring: Returns an array with the worker counts
  
  @return array
docstring_tokens: Returns an array with the worker counts