original_string: public function get_gradinginstance() {
          if (is_array($this->gradingattributes) && array_key_exists('gradinginstance', $this->gradingattributes)) {
              return $this->gradingattributes['gradinginstance'];
          } else {
              return null;
          }
      }
code: public function get_gradinginstance() {
          if (is_array($this->gradingattributes) && array_key_exists('gradinginstance', $this->gradingattributes)) {
              return $this->gradingattributes['gradinginstance'];
          } else {
              return null;
          }
      }
code_tokens: public function get_gradinginstance ( ) { if ( is_array ( $ this -> gradingattributes ) && array_key_exists ( 'gradinginstance' , $ this -> gradingattributes ) ) { return $ this -> gradingattributes [ 'gradinginstance' ] ; } else { return null ; } }
docstring: Helper function to retrieve gradingform_instance passed in element attributes
  
  @return gradingform_instance
docstring_tokens: Helper function to retrieve gradingform_instance passed in element attributes