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