original_string: public function extract(tgz_extractor_handler $handler, file_progress $progress = null) {
          $this->mode = self::MODE_EXTRACT;
          $this->extract_or_list($handler, $progress);
          $results = $this->results;
          unset($this->results);
          return $results;
      }
code: public function extract(tgz_extractor_handler $handler, file_progress $progress = null) {
          $this->mode = self::MODE_EXTRACT;
          $this->extract_or_list($handler, $progress);
          $results = $this->results;
          unset($this->results);
          return $results;
      }
code_tokens: public function extract ( tgz_extractor_handler $ handler , file_progress $ progress = null ) { $ this -> mode = self :: MODE_EXTRACT ; $ this -> extract_or_list ( $ handler , $ progress ) ; $ results = $ this -> results ; unset ( $ this -> results ) ; return $ results ; }
docstring: Extracts the archive.
  
  @param tgz_extractor_handler $handler Will be called for extracted files
  @param file_progress $progress Optional progress reporting
  @return array Array from archive path => true of processed files
  @throws moodle_exception If there is any error processing the archive
docstring_tokens: Extracts the archive .