original_string: public function prepare_response_files_draft_itemid($name, $contextid) {
          foreach ($this->get_reverse_step_iterator() as $step) {
              if ($step->has_qt_var($name)) {
                  return $step->prepare_response_files_draft_itemid($name, $contextid);
              }
          }
  
          // No files yet.
          $draftid = 0; // Will be filled in by file_prepare_draft_area.
          file_prepare_draft_area($draftid, $contextid, 'question', 'response_' . $name, null);
          return $draftid;
      }
code: public function prepare_response_files_draft_itemid($name, $contextid) {
          foreach ($this->get_reverse_step_iterator() as $step) {
              if ($step->has_qt_var($name)) {
                  return $step->prepare_response_files_draft_itemid($name, $contextid);
              }
          }
  
          // No files yet.
          $draftid = 0; // Will be filled in by file_prepare_draft_area.
          file_prepare_draft_area($draftid, $contextid, 'question', 'response_' . $name, null);
          return $draftid;
      }
code_tokens: public function prepare_response_files_draft_itemid ( $ name , $ contextid ) { foreach ( $ this -> get_reverse_step_iterator ( ) as $ step ) { if ( $ step -> has_qt_var ( $ name ) ) { return $ step -> prepare_response_files_draft_itemid ( $ name , $ contextid ) ; } } // No files yet. $ draftid = 0 ; // Will be filled in by file_prepare_draft_area. file_prepare_draft_area ( $ draftid , $ contextid , 'question' , 'response_' . $ name , null ) ; return $ draftid ; }
docstring: Prepare a draft file are for the files belonging the a response variable
  of this question attempt. The draft area is populated with the files from
  the most recent step having files.
  
  @param string $name the variable name the files belong to.
  @param int $contextid the id of the context the quba belongs to.
  @return int the draft itemid.
docstring_tokens: Prepare a draft file are for the files belonging the a response variable of this question attempt . The draft area is populated with the files from the most recent step having files .