original_string: public function get_name() {
          // Grade scales can be created at site or course context, so set the filter context appropriately.
          $context = empty($this->courseid) ? context_system::instance() : context_course::instance($this->courseid);
          return format_string($this->name, false, ['context' => $context]);
      }
code: public function get_name() {
          // Grade scales can be created at site or course context, so set the filter context appropriately.
          $context = empty($this->courseid) ? context_system::instance() : context_course::instance($this->courseid);
          return format_string($this->name, false, ['context' => $context]);
      }
code_tokens: public function get_name ( ) { // Grade scales can be created at site or course context, so set the filter context appropriately. $ context = empty ( $ this -> courseid ) ? context_system :: instance ( ) : context_course :: instance ( $ this -> courseid ) ; return format_string ( $ this -> name , false , [ 'context' => $ context ] ) ; }
docstring: Returns the most descriptive field for this object. This is a standard method used
  when we do not know the exact type of an object.
  
  @return string name
docstring_tokens: Returns the most descriptive field for this object . This is a standard method used when we do not know the exact type of an object .