original_string: public function add_external_service($service) {
          global $DB;
          $service->timecreated = time();
          $serviceid = $DB->insert_record('external_services', $service);
          return $serviceid;
      }
code: public function add_external_service($service) {
          global $DB;
          $service->timecreated = time();
          $serviceid = $DB->insert_record('external_services', $service);
          return $serviceid;
      }
code_tokens: public function add_external_service ( $ service ) { global $ DB ; $ service -> timecreated = time ( ) ; $ serviceid = $ DB -> insert_record ( 'external_services' , $ service ) ; return $ serviceid ; }
docstring: Add a service
  It generates the timecreated field automatically.
  
  @param stdClass $service
  @return serviceid integer
docstring_tokens: Add a service It generates the timecreated field automatically .