original_string: public function execute()
      {
          // sort jobs by priority
          $jobs = [];
          ksort($this->jobs);
          foreach ($this->jobs as $priority_jobs) {
              $jobs = array_merge($jobs, $priority_jobs);
          }
  
          /* @var $job Job */
          foreach ($jobs as $job) {
              $job->execute();
          }
      }
code: public function execute()
      {
          // sort jobs by priority
          $jobs = [];
          ksort($this->jobs);
          foreach ($this->jobs as $priority_jobs) {
              $jobs = array_merge($jobs, $priority_jobs);
          }
  
          /* @var $job Job */
          foreach ($jobs as $job) {
              $job->execute();
          }
      }
code_tokens: public function execute ( ) { // sort jobs by priority $ jobs = [ ] ; ksort ( $ this -> jobs ) ; foreach ( $ this -> jobs as $ priority_jobs ) { $ jobs = array_merge ( $ jobs , $ priority_jobs ) ; } /* @var $job Job */ foreach ( $ jobs as $ job ) { $ job -> execute ( ) ; } }
docstring: Execute all jobs.
docstring_tokens: Execute all jobs .