original_string: public function get_external_service_by_shortname($shortname, $strictness=IGNORE_MISSING) {
          global $DB;
          $service = $DB->get_record('external_services',
                          array('shortname' => $shortname), '*', $strictness);
          return $service;
      }
code: public function get_external_service_by_shortname($shortname, $strictness=IGNORE_MISSING) {
          global $DB;
          $service = $DB->get_record('external_services',
                          array('shortname' => $shortname), '*', $strictness);
          return $service;
      }
code_tokens: public function get_external_service_by_shortname ( $ shortname , $ strictness = IGNORE_MISSING ) { global $ DB ; $ service = $ DB -> get_record ( 'external_services' , array ( 'shortname' => $ shortname ) , '*' , $ strictness ) ; return $ service ; }
docstring: Get an external service for a given shortname
  
  @param string $shortname service shortname
  @param int $strictness IGNORE_MISSING, MUST_EXIST...
  @return stdClass external service
docstring_tokens: Get an external service for a given shortname