original_string: public function process_question(array $data, array $raw) {
  
          // Convert and write the answers first.
          if (isset($data['answers'])) {
              $this->write_answers($data['answers'], $this->pluginname);
          }
  
          // Convert and write the shortanswer extra fields.
          foreach ($data['shortanswer'] as $shortanswer) {
              $shortanswer['id'] = $this->converter->get_nextid();
              $this->write_xml('shortanswer', $shortanswer, array('/shortanswer/id'));
          }
      }
code: public function process_question(array $data, array $raw) {
  
          // Convert and write the answers first.
          if (isset($data['answers'])) {
              $this->write_answers($data['answers'], $this->pluginname);
          }
  
          // Convert and write the shortanswer extra fields.
          foreach ($data['shortanswer'] as $shortanswer) {
              $shortanswer['id'] = $this->converter->get_nextid();
              $this->write_xml('shortanswer', $shortanswer, array('/shortanswer/id'));
          }
      }
code_tokens: public function process_question ( array $ data , array $ raw ) { // Convert and write the answers first. if ( isset ( $ data [ 'answers' ] ) ) { $ this -> write_answers ( $ data [ 'answers' ] , $ this -> pluginname ) ; } // Convert and write the shortanswer extra fields. foreach ( $ data [ 'shortanswer' ] as $ shortanswer ) { $ shortanswer [ 'id' ] = $ this -> converter -> get_nextid ( ) ; $ this -> write_xml ( 'shortanswer' , $ shortanswer , array ( '/shortanswer/id' ) ) ; } }
docstring: Appends the shortanswer specific information to the question
docstring_tokens: Appends the shortanswer specific information to the question