original_string: public static function available_methods($includenone = true) {
  
          if ($includenone) {
              $list = array('' => get_string('gradingmethodnone', 'core_grading'));
          } else {
              $list = array();
          }
  
          foreach (core_component::get_plugin_list('gradingform') as $name => $location) {
              $list[$name] = get_string('pluginname', 'gradingform_'.$name);
          }
  
          return $list;
      }
code: public static function available_methods($includenone = true) {
  
          if ($includenone) {
              $list = array('' => get_string('gradingmethodnone', 'core_grading'));
          } else {
              $list = array();
          }
  
          foreach (core_component::get_plugin_list('gradingform') as $name => $location) {
              $list[$name] = get_string('pluginname', 'gradingform_'.$name);
          }
  
          return $list;
      }
code_tokens: public static function available_methods ( $ includenone = true ) { if ( $ includenone ) { $ list = array ( '' => get_string ( 'gradingmethodnone' , 'core_grading' ) ) ; } else { $ list = array ( ) ; } foreach ( core_component :: get_plugin_list ( 'gradingform' ) as $ name => $ location ) { $ list [ $ name ] = get_string ( 'pluginname' , 'gradingform_' . $ name ) ; } return $ list ; }
docstring: Returns the list of installed grading plugins together, optionally extended
  with a simple direct grading.
  
  @param bool $includenone should the 'Simple direct grading' be included
  @return array of the (string)name => (string)localized title of the method
docstring_tokens: Returns the list of installed grading plugins together optionally extended with a simple direct grading .