original_string: public function is_related($query) {
          if (parent::is_related($query)) {
              return true;
          }
  
          $authsavailable = core_component::get_plugin_list('auth');
          foreach ($authsavailable as $auth => $dir) {
              if (strpos($auth, $query) !== false) {
                  return true;
              }
              $authplugin = get_auth_plugin($auth);
              $authtitle = $authplugin->get_title();
              if (strpos(core_text::strtolower($authtitle), $query) !== false) {
                  return true;
              }
          }
          return false;
      }
code: public function is_related($query) {
          if (parent::is_related($query)) {
              return true;
          }
  
          $authsavailable = core_component::get_plugin_list('auth');
          foreach ($authsavailable as $auth => $dir) {
              if (strpos($auth, $query) !== false) {
                  return true;
              }
              $authplugin = get_auth_plugin($auth);
              $authtitle = $authplugin->get_title();
              if (strpos(core_text::strtolower($authtitle), $query) !== false) {
                  return true;
              }
          }
          return false;
      }
code_tokens: public function is_related ( $ query ) { if ( parent :: is_related ( $ query ) ) { return true ; } $ authsavailable = core_component :: get_plugin_list ( 'auth' ) ; foreach ( $ authsavailable as $ auth => $ dir ) { if ( strpos ( $ auth , $ query ) !== false ) { return true ; } $ authplugin = get_auth_plugin ( $ auth ) ; $ authtitle = $ authplugin -> get_title ( ) ; if ( strpos ( core_text :: strtolower ( $ authtitle ) , $ query ) !== false ) { return true ; } } return false ; }
docstring: Search to find if Query is related to auth plugin
  
  @param string $query The string to search for
  @return bool true for related false for not
docstring_tokens: Search to find if Query is related to auth plugin