original_string: public function get_expected_data() {
          if (!$this->qa->get_state()->is_finished()) {
              return array();
          }
  
          $vars = array('comment' => question_attempt::PARAM_RAW_FILES, 'commentformat' => PARAM_INT);
          if ($this->qa->get_max_mark()) {
              $vars['mark'] = PARAM_RAW_TRIMMED;
              $vars['maxmark'] = PARAM_FLOAT;
          }
          return $vars;
      }
code: public function get_expected_data() {
          if (!$this->qa->get_state()->is_finished()) {
              return array();
          }
  
          $vars = array('comment' => question_attempt::PARAM_RAW_FILES, 'commentformat' => PARAM_INT);
          if ($this->qa->get_max_mark()) {
              $vars['mark'] = PARAM_RAW_TRIMMED;
              $vars['maxmark'] = PARAM_FLOAT;
          }
          return $vars;
      }
code_tokens: public function get_expected_data ( ) { if ( ! $ this -> qa -> get_state ( ) -> is_finished ( ) ) { return array ( ) ; } $ vars = array ( 'comment' => question_attempt :: PARAM_RAW_FILES , 'commentformat' => PARAM_INT ) ; if ( $ this -> qa -> get_max_mark ( ) ) { $ vars [ 'mark' ] = PARAM_RAW_TRIMMED ; $ vars [ 'maxmark' ] = PARAM_FLOAT ; } return $ vars ; }
docstring: Return an array of the behaviour variables that could be submitted
  as part of a question of this type, with their types, so they can be
  properly cleaned.
  @return array variable name => PARAM_... constant.
docstring_tokens: Return an array of the behaviour variables that could be submitted as part of a question of this type with their types so they can be properly cleaned .