id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
500
all-501
[ "GetDefaultInterfaces", "gets", "names", "of", "interfaces", "and", "returns", "a", "map", "[", "interface", "]", "families", "." ]
[ "func", "GetDefaultInterfaces", "(", ")", "(", "map", "[", "string", "]", "uint8", ",", "error", ")", "{", "interfaces", ":=", "<mask>", "(", "map", "[", "string", "]", "uint8", ")", "\n", "rmsgs", ",", "rerr", ":=", "getDefaultRoutes", "(", ")", "\n",...
501
all-502
[ "List", "executes", "a", "callback", "for", "each", "file", "under", "a", "directory", "(", "or", "a", "file", "if", "the", "path", "is", "a", "file", ")", "." ]
[ "func", "(", "h", "*", "dbHashTree", ")", "List", "(", "path", "string", ",", "f", "func", "(", "*", "NodeProto", ")", "error", ")", "error", "{", "path", "=", "<mask>", "(", "path", ")", "\n", "return", "h", ".", "View", "(", "func", "(", "tx", ...
502
all-503
[ "APIClient", "instantiates", "a", "client", "with", "the", "given", "name", "from", "command", "line", "arguments", "." ]
[ "func", "APIClient", "(", "name", "string", ",", "cmdLine", "*", "cmd", ".", "CommandLine", ")", "(", "cmd", ".", "CommandClient", ",", "error", ")", "{", "switch", "name", "{", "case", "Cm15Command", ":", "return", "cm15", ".", "FromCommandLine", "(", "...
503
all-504
[ "WithGestureSourceType", "which", "type", "of", "input", "events", "to", "be", "generated", "(", "default", ":", "default", "which", "queries", "the", "platform", "for", "the", "preferred", "input", "type", ")", "." ]
[ "func", "(", "p", "SynthesizeTapGestureParams", ")", "WithGestureSourceType", "(", "gestureSourceType", "GestureType", ")", "*", "SynthesizeTapGestureParams", "{", "p", ".", "GestureSourceType", "=", "gestureSourceType", "\n", "<mask>", "&", "p", "\n", "}" ]
504
all-505
[ "SAdd", "returns", "a", "new", "vector", "that", "is", "the", "result", "of", "v", "+", "(", "v1", "*", "s", ")", ".", "It", "allocates", "a", "new", "vector", "/", "slice", "." ]
[ "func", "(", "v", "Vec2", ")", "SAdd", "(", "v1", "Vec2", ",", "s", "float32", ")", "Vec2", "{", "<mask>", "NewVec2XY", "(", "v", "[", "0", "]", "+", "v1", "[", "0", "]", "*", "s", ",", "v", "[", "1", "]", "+", "v1", "[", "1", "]", "*", ...
505
all-506
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventResumed", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger39", "(", "&", "r"...
506
all-507
[ "setEvaluationDuration", "sets", "the", "time", "in", "seconds", "the", "last", "evaluation", "took", "." ]
[ "func", "(", "g", "*", "Group", ")", "setEvaluationDuration", "(", "dur", "time", ".", "Duration", ")", "{", "g", ".", "metrics", ".", "groupLastDuration", ".", "WithLabelValues", "(", "groupKey", "(", "g", ".", "<mask>", ",", "g", ".", "name", ")", ")...
507
all-508
[ "Do", "executes", "DOMDebugger", ".", "setDOMBreakpoint", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "SetDOMBreakpointParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetDOMBreakpoint", ",", "p", ",", "nil", ")", "\n", "}" ]
508
all-509
[ "FindFunc", "returns", "the", "function", "which", "contains", "the", "code", "at", "address", "pc", "if", "any", "." ]
[ "func", "(", "p", "*", "Process", ")", "FindFunc", "(", "<mask>", "core", ".", "Address", ")", "*", "Func", "{", "return", "p", ".", "funcTab", ".", "find", "(", "pc", ")", "\n", "}" ]
509
all-510
[ "EnsureApplication", "will", "ensure", "that", "an", "application", "with", "the", "provided", "name", "exists", "and", "returns", "its", "key", "." ]
[ "func", "EnsureApplication", "(", "store", "*", "coal", ".", "Store", ",", "name", ",", "key", ",", "secret", "string", ")", "(", "string", ",", "error", ")", "{", "// copy store", "s", ":=", "store", ".", "Copy", "(", ")", "\n", "defer", "s", ".", ...
510
all-511
[ "SetText", "()", "is", "a", "wrapper", "around", "gtk_entry_set_text", "()", "." ]
[ "func", "(", "v", "*", "Entry", ")", "SetText", "(", "text", "string", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "<mask>", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "\n", "C", ".", "gtk_...
511
all-512
[ "ServeFiles", "maps", "an", "path", "to", "a", "directory", "on", "disk", "to", "serve", "static", "files", ".", "Useful", "for", "JavaScript", "images", "CSS", "etc", "...", "/", "*", "a", ".", "ServeFiles", "(", "/", "assets", "http", ".", "Dir", "("...
[ "func", "(", "a", "*", "App", ")", "ServeFiles", "(", "p", "string", ",", "root", "http", ".", "FileSystem", ")", "{", "path", ":=", "path", ".", "Join", "(", "a", ".", "Prefix", ",", "p", ")", "\n", "a", ".", "filepaths", "=", "append", "(", "...
512
all-513
[ "ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "LedgerKey" ]
[ "func", "(", "u", "LedgerKey", ")", "ArmForSwitch", "(", "sw", "int32", ")", "(", "string", ",", "bool", ")", "{", "switch", "LedgerEntryType", "(", "sw", ")", "{", "case", "LedgerEntryTypeAccount", ":", "return", "\"", "\"", ",", "true", "\n", "case", ...
513
all-514
[ "Serve", "serves", "incoming", "requests", "using", "the", "provided", "listener", ".", "The", "local", "peer", "info", "is", "set", "synchronously", "but", "the", "actual", "socket", "listening", "is", "done", "in", "a", "separate", "goroutine", "." ]
[ "func", "(", "ch", "*", "Channel", ")", "Serve", "(", "l", "net", ".", "Listener", ")", "error", "{", "mutable", ":=", "&", "ch", ".", "mutable", "\n", "mutable", ".", "Lock", "(", ")", "\n", "defer", "mutable", ".", "Unlock", "(", ")", "\n\n", "...
514
all-515
[ "OpenFile", "opens", "a", "file", "and", "returns", "a", "stream", "for", "its", "data", ".", "The", "path", "parts", "should", "be", "separated", "with", "slash", "/", "on", "any", "environments", ".", "Note", "that", "this", "doesn", "t", "work", "on",...
[ "func", "OpenFile", "(", "<mask>", "string", ")", "(", "ReadSeekCloser", ",", "error", ")", "{", "return", "os", ".", "Open", "(", "filepath", ".", "FromSlash", "(", "path", ")", ")", "\n", "}" ]
515
all-516
[ "read", "a", "block", "of", "pixels", "from", "the", "frame", "buffer" ]
[ "func", "ReadPixels", "(", "x", "int32", ",", "y", "int32", ",", "width", "int32", ",", "height", "int32", ",", "format", "uint32", ",", "xtype", "uint32", ",", "pixels", "unsafe", ".", "Pointer", ")", "{", "syscall", ".", "Syscall9", "(", "gpReadPixels"...
516
all-517
[ "Values", "returns", "all", "readable", "float64", "in", "a", "single", "buffer", ".", "Calling", "this", "function", "might", "allocate", "a", "new", "buffer", "to", "store", "the", "elements", "contiguously", "." ]
[ "func", "(", "b", "*", "Float64RingBuf", ")", "Values", "(", ")", "[", "]", "float64", "{", "first", ",", "second", ":=", "b", ".", "TwoContig", "(", "false", ")", "\n\n", "if", "len", "(", "first", ")", "==", "0", "{", "return", "second", "\n", ...
517
all-518
[ "VmxPath", "returns", "path", "to", "the", "virtual", "machine", "configuration", "file", "." ]
[ "func", "(", "v", "*", "VM", ")", "VmxPath", "(", ")", "(", "string", ",", "error", ")", "{", "var", "err", "C", ".", "VixError", "=", "C", ".", "VIX_OK", "\n", "var", "path", "*", "C", ".", "char", "\n\n", "err", "=", "C", ".", "get_property",...
518
all-519
[ "getGaugeType", "returns", "accurate", "resmon", "type", "for", "underlying", "type", "of", "gauge", "value" ]
[ "func", "(", "m", "*", "CirconusMetrics", ")", "getGaugeType", "(", "v", "interface", "{", "}", ")", "string", "{", "mt", ":=", "\"", "\"", "\n", "switch", "v", ".", "(", "type", ")", "{", "case", "int", ":", "mt", "=", "\"", "\"", "\n", "case", ...
519
all-520
[ "CdromSubresourceSchema", "represents", "the", "schema", "for", "the", "cdrom", "sub", "-", "resource", "." ]
[ "func", "CdromSubresourceSchema", "(", ")", "map", "[", "string", "]", "*", "schema", ".", "Schema", "{", "s", ":=", "map", "[", "string", "]", "*", "schema", ".", "Schema", "{", "// VirtualDeviceFileBackingInfo", "\"", "\"", ":", "{", "Type", ":", "sche...
520
all-521
[ "Returns", "a", "slice", "of", "Typed", "helpers", "and", "true", "if", "exists", "otherwise", ";", "nil", "and", "false", "." ]
[ "func", "(", "t", "Typed", ")", "ObjectsIf", "(", "key", "string", ")", "(", "[", "]", "Typed", ",", "bool", ")", "{", "value", ",", "exists", ":=", "t", "[", "key", "]", "\n", "if", "exists", "==", "true", "{", "switch", "t", ":=", "value", "....
521
all-522
[ "ParseMetricSelector", "parses", "the", "provided", "textual", "metric", "selector", "into", "a", "list", "of", "label", "matchers", "." ]
[ "func", "ParseMetricSelector", "(", "input", "string", ")", "(", "m", "[", "]", "*", "labels", ".", "Matcher", ",", "err", "error", ")", "{", "p", ":=", "newParser", "(", "input", ")", "\n", "defer", "p", ".", "recover", "(", "&", "err", ")", "\n\n...
522
all-523
[ "newStackFrame", "returns", "a", "new", "stack", "frame", "initialized", "from", "the", "passed", "in", "program", "counter", "." ]
[ "func", "newStackFrame", "(", "pc", "uintptr", ")", "*", "stackFrame", "{", "fn", ":=", "runtime", ".", "FuncForPC", "(", "<mask>", ")", "\n", "file", ",", "line", ":=", "fn", ".", "FileLine", "(", "pc", ")", "\n", "packagePath", ",", "funcSignature", ...
523
all-524
[ "NewConfig", "returns", "a", "config", "struct", "created", "by", "merging", "environment", "variables", "a", "config", "file", "and", "EC2", "Metadata", "info", ".", "The", "config", "struct", "it", "returns", "can", "be", "used", "even", "if", "an", "error...
[ "func", "NewConfig", "(", "ec2client", "ec2", ".", "EC2MetadataClient", ")", "(", "*", "Config", ",", "error", ")", "{", "var", "errs", "[", "]", "error", "\n", "envConfig", ",", "err", ":=", "environmentConfig", "(", ")", "//Environment overrides all else", ...
524
all-525
[ "setLeader", "sets", "if", "we", "are", "currently", "the", "leader", "instance" ]
[ "func", "(", "d", "*", "DedupManager", ")", "setLeader", "(", "tmpl", "*", "template", ".", "Template", ",", "lockCh", "<-", "chan", "struct", "{", "}", ")", "{", "// Update the lock state", "d", ".", "leaderLock", ".", "Lock", "(", ")", "\n", "if", "l...
525
all-526
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SignedCertificateTimestamp", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork9", "(", "&", "w", ",", "v...
526
all-527
[ "UpdateContainer", "updates", "the", "MAAS", "device", "s", "interfaces", "with", "the", "new", "provided", "state" ]
[ "func", "(", "c", "*", "Controller", ")", "UpdateContainer", "(", "name", "string", ",", "interfaces", "[", "]", "ContainerInterface", ")", "error", "{", "// Parse the provided interfaces", "macInterfaces", ",", "err", ":=", "parseInterfaces", "(", "interfaces", "...
527
all-528
[ "/", "*", "Debugm", "uses", "msg", "as", "a", "format", "string", "with", "subsequent", "parameters", "as", "values", "and", "logs", "the", "resulting", "message", "to", "all", "added", "loggers", "at", "LogLevel", ".", "LevelDebug", ".", "It", "will", "al...
[ "func", "(", "la", "*", "LogAdapter", ")", "Debugm", "(", "m", "*", "Attrs", ",", "<mask>", "string", ",", "a", "...", "interface", "{", "}", ")", "error", "{", "return", "la", ".", "Log", "(", "LevelDebug", ",", "m", ",", "msg", ",", "a", "...",...
528
all-529
[ "ContainerStatsHandler", "returns", "the", "handler", "method", "for", "handling", "container", "stats", "requests", "." ]
[ "func", "ContainerStatsHandler", "(", "state", "dockerstate", ".", "TaskEngineState", ",", "statsEngine", "stats", ".", "Engine", ")", "func", "(", "http", ".", "ResponseWriter", ",", "*", "http", ".", "Request", ")", "{", "return", "func", "(", "w", "http",...
529
all-530
[ "title", ":", "list", "install", "hosts", "path", ":", "/", "install", "/", "hosts", "method", ":", "GET", "produce", ":", "application", "/", "json", "responses", ":", "200", ":", "OK", "401", ":", "Unauthorized" ]
[ "func", "installHostList", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "error", "{", "allowed", ":=", "permission", ".", "Check", "(", "t", ",", "permission", ".", "PermInstallManag...
530
all-531
[ "Hash", "returns", "a", "hash", "value", "for", "the", "label", "set", "." ]
[ "func", "(", "ls", "Labels", ")", "Hash", "(", ")", "uint64", "{", "b", ":=", "make", "(", "[", "]", "byte", ",", "0", ",", "1024", ")", "\n\n", "for", "_", ",", "v", ":=", "range", "<mask>", "{", "b", "=", "append", "(", "b", ",", "v", "."...
531
all-532
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "SynthesizeScrollGestureParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoInput2", "(",...
532
all-533
[ "DefaultPeerConfig", "returns", "the", "default", "config", "." ]
[ "func", "DefaultPeerConfig", "(", ")", "*", "PeerConfig", "{", "return", "&", "PeerConfig", "{", "AuthEnc", ":", "true", ",", "HandshakeTimeout", ":", "2", "*", "time", ".", "Second", ",", "DialTimeout", ":", "3", "*", "<mask>", ".", "Second", ",", "MCon...
533
all-534
[ "IsMouseButtonJustReleased", "returns", "a", "boolean", "value", "indicating", "whether", "the", "given", "mouse", "button", "is", "released", "just", "in", "the", "current", "frame", ".", "IsMouseButtonJustReleased", "is", "concurrent", "safe", "." ]
[ "func", "IsMouseButtonJustReleased", "(", "<mask>", "ebiten", ".", "MouseButton", ")", "bool", "{", "theInputState", ".", "m", ".", "RLock", "(", ")", "\n", "r", ":=", "theInputState", ".", "mouseButtonDurations", "[", "button", "]", "==", "0", "&&", "theInp...
534
all-535
[ "Serialize", "serializes", "an", "ordered", "hashtree", "." ]
[ "func", "(", "o", "*", "Ordered", ")", "Serialize", "(", "_w", "io", ".", "Writer", ")", "error", "{", "w", ":=", "NewWriter", "(", "_w", ")", "\n", "// Unwind directory stack", "for", "len", "(", "o", ".", "dirStack", ")", ">", "1", "{", "child", ...
535
all-536
[ "execute", "command", "over", "SSH", "with", "user", "/", "password", "authentication" ]
[ "func", "executeSSHCommand", "(", "command", "string", ",", "d", "*", "Driver", ")", "error", "{", "log", ".", "Debugf", "(", "\"", "\"", ",", "command", ")", "\n\n", "config", ":=", "&", "cryptossh", ".", "ClientConfig", "{", "User", ":", "d", ".", ...
536
all-537
[ "GetExecutablePath", "returns", "the", "absolute", "path", "to", "the", "currently", "running", "executable", ".", "It", "is", "used", "internally", "by", "the", "godaemon", "package", "and", "exported", "publicly", "because", "it", "s", "useful", "outside", "of...
[ "func", "GetExecutablePath", "(", ")", "(", "string", ",", "error", ")", "{", "exePath", ",", "<mask>", ":=", "Readlink", "(", "\"", "\"", ")", "\n\n", "if", "err", "!=", "nil", "{", "err", "=", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "err", ...
537
all-538
[ "transitionContainer", "calls", "applyContainerState", "and", "then", "notifies", "the", "managed", "task", "of", "the", "change", ".", "transitionContainer", "is", "called", "by", "progressTask", "and", "by", "handleStoppedToRunningContainerTransition", "." ]
[ "func", "(", "engine", "*", "DockerTaskEngine", ")", "transitionContainer", "(", "task", "*", "apitask", ".", "<mask>", ",", "container", "*", "apicontainer", ".", "Container", ",", "to", "apicontainerstatus", ".", "ContainerStatus", ")", "{", "// Let docker event...
538
all-539
[ "HasDisabled", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "u", "*", "<mask>", ")", "HasDisabled", "(", ")", "bool", "{", "if", "u", "!=", "nil", "&&", "u", ".", "Disabled", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
539
all-540
[ "init", "sets", "the", "configuration", "data", "." ]
[ "func", "(", "c", "*", "configData", ")", "init", "(", ")", "error", "{", "_conf_login", ":=", "&", "conf_login", "{", "}", "\n", "cmdutil", ".", "SetPrefix", "(", "\"", "\\n", "\"", ",", "\"", "\"", ")", "\n\n", "cfg", ",", "err", ":=", "shconf", ...
540
all-541
[ "advanceCommit", "either", "starts", "or", "finishes", "a", "commit", "depending", "on", "the", "state", "of", "the", "cluster", "." ]
[ "func", "(", "w", "*", "worker", ")", "advanceCommit", "(", "c", "*", "client", ".", "APIClient", ")", "error", "{", "if", "len", "(", "w", ".", "started", ")", ">=", "maxStartedCommits", "||", "len", "(", "w", ".", "finished", ")", "==", "0", "{",...
541
all-542
[ "Split", "fileLogger" ]
[ "func", "(", "f", "*", "FileLogger", ")", "split", "(", ")", "{", "logFile", ":=", "joinFilePath", "(", "f", ".", "fileDir", ",", "f", ".", "fileName", ")", "\n\n", "switch", "f", ".", "splitType", "{", "case", "SplitType_Size", ":", "f", ".", "suffi...
542
all-543
[ "initialize", "a", "texture", "as", "a", "data", "alias", "of", "another", "texture", "s", "data", "store" ]
[ "func", "TextureView", "(", "texture", "uint32", ",", "target", "uint32", ",", "origtexture", "uint32", ",", "internalformat", "uint32", ",", "minlevel", "uint32", ",", "numlevels", "uint32", ",", "minlayer", "uint32", ",", "numlayers", "uint32", ")", "{", "sy...
543
all-544
[ "attach", "a", "renderbuffer", "as", "a", "logical", "buffer", "of", "a", "framebuffer", "object" ]
[ "func", "FramebufferRenderbuffer", "(", "<mask>", "uint32", ",", "attachment", "uint32", ",", "renderbuffertarget", "uint32", ",", "renderbuffer", "uint32", ")", "{", "C", ".", "glowFramebufferRenderbuffer", "(", "gpFramebufferRenderbuffer", ",", "(", "C", ".", "GLe...
544
all-545
[ "createRepo", "creates", "a", "new", "repo", "in", "the", "cluster" ]
[ "func", "(", "w", "*", "worker", ")", "createRepo", "(", "c", "*", "client", ".", "APIClient", ")", "error", "{", "repoName", ":=", "w", ".", "randString", "(", "10", ")", "\n", "if", "err", ":=", "c", ".", "CreateRepo", "(", "repoName", ")", ";", ...
545
all-546
[ "readMessage", "reads", "a", "line", "from", "the", "connection", "and", "parses", "it", "as", "an", "IRC", "message", "." ]
[ "func", "(", "c", "Client", ")", "readMessage", "(", ")", "(", "irc", ".", "Message", ",", "error", ")", "{", "if", "err", ":=", "c", ".", "conn", ".", "SetReadDeadline", "(", "time", ".", "Now", "(", ")", ".", "Add", "(", "c", ".", "readTimeout"...
546
all-547
[ "Finish", "declares", "that", "this", "trace", "is", "complete", ".", "The", "trace", "should", "not", "be", "used", "after", "calling", "this", "method", "." ]
[ "func", "(", "t", "*", "<mask>", ")", "Finish", "(", ")", "{", "if", "t", ".", "err", "{", "incrError", "(", "t", ")", "\n", "}", "\n", "incr", "(", "t", ")", "\n", "duration", "(", "t", ")", "\n", "if", "t", ".", "err", "{", "incrError", "...
547
all-548
[ "disable", "stops", "using", "the", "array", "buffer", "." ]
[ "func", "(", "a", "*", "arrayBufferLayout", ")", "disable", "(", "context", "*", "context", ",", "program", "program", ")", "{", "// TODO: Disabling should be done in reversed order?", "for", "i", ":=", "range", "a", ".", "parts", "{", "context", ".", "disableVe...
548
all-549
[ "UpdateDefaultClusterFromName", "updates", "cluster", "advertise", "URLs", "with", "if", "available", "default", "host", "if", "advertise", "URLs", "are", "default", "values", "(", "localhost", ":", "2379", "2380", ")", "AND", "if", "listen", "URL", "is", "0", ...
[ "func", "(", "cfg", "*", "Config", ")", "UpdateDefaultClusterFromName", "(", "defaultInitialCluster", "string", ")", "(", "string", ",", "error", ")", "{", "if", "defaultHostname", "==", "\"", "\"", "||", "defaultHostStatus", "!=", "nil", "{", "// update 'initia...
549
all-550
[ "ReadRequest", "reads", "a", "http", ".", "Request", "from", "the", "given", "readers", "." ]
[ "func", "ReadRequest", "(", "call", "tchannel", ".", "ArgReadable", ")", "(", "*", "http", ".", "Request", ",", "error", ")", "{", "var", "arg2", "[", "]", "byte", "\n", "if", "err", ":=", "tchannel", ".", "NewArgReader", "(", "call", ".", "Arg2Reader"...
550
all-551
[ "Realize", "is", "a", "wrapper", "around", "gdk_gl_context_realize", "()", "." ]
[ "func", "(", "v", "*", "GLContext", ")", "Realize", "(", ")", "(", "bool", ",", "error", ")", "{", "var", "err", "*", "C", ".", "GError", "\n", "r", ":=", "gobool", "(", "C", ".", "gdk_gl_context_realize", "(", "v", ".", "native", "(", ")", ",", ...
551
all-552
[ "CancelRotateSecretRequest", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockSecretsManagerAPI", ")", "CancelRotateSecretRequest", "(", "arg0", "*", "secretsmanager", ".", "CancelRotateSecretInput", ")", "(", "*", "request", ".", "Request", ",", "*", "secretsmanager", ".", "CancelRotateSecretOutput", ")", "{", "...
552
all-553
[ "SetProperty", "sets", "a", "ZFS", "property", "on", "the", "receiving", "dataset", ".", "A", "full", "list", "of", "available", "ZFS", "properties", "may", "be", "found", "here", ":", "https", ":", "//", "www", ".", "freebsd", ".", "org", "/", "cgi", ...
[ "func", "(", "d", "*", "Dataset", ")", "SetProperty", "(", "key", ",", "val", "string", ")", "error", "{", "prop", ":=", "strings", ".", "Join", "(", "[", "]", "string", "{", "<mask>", ",", "val", "}", ",", "\"", "\"", ")", "\n", "_", ",", "err...
553
all-554
[ "ChannelKey", "returns", "the", "unique", "channel", "identifier", "used", "in", "a", "Privatix", "Service", "Contract", "." ]
[ "func", "ChannelKey", "(", "client", ",", "agent", "HexString", ",", "block", "uint32", ",", "offeringHash", "HexString", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "clientAddr", ",", "err", ":=", "HexToAddress", "(", "client", ")", "\n", "if", ...
554
all-555
[ "SetConsoleTextAttribute", "sets", "the", "attributes", "of", "characters", "written", "to", "the", "console", "screen", "buffer", "by", "the", "WriteFile", "or", "WriteConsole", "function", ".", "See", "http", ":", "//", "msdn", ".", "microsoft", ".", "com", ...
[ "func", "SetConsoleTextAttribute", "(", "handle", "uintptr", ",", "attribute", "uint16", ")", "error", "{", "r1", ",", "r2", ",", "err", ":=", "setConsoleTextAttributeProc", ".", "Call", "(", "handle", ",", "uintptr", "(", "attribute", ")", ",", "0", ")", ...
555
all-556
[ "MustRegister", "is", "a", "helper", "that", "calls", "Register", "and", "panics", "if", "it", "returns", "an", "error" ]
[ "func", "(", "di", "*", "dependencyInjector", ")", "MustRegister", "(", "constructorFunc", "<mask>", "{", "}", ")", "{", "err", ":=", "di", ".", "Register", "(", "constructorFunc", ")", "\n", "if", "err", "!=", "nil", "{", "panic", "(", "err", ")", "\n...
556
all-557
[ "FailFunc", "outputs", "Fail", "level", "log", "returned", "from", "the", "function" ]
[ "func", "(", "g", "*", "Glg", ")", "FailFunc", "(", "f", "func", "(", ")", "string", ")", "error", "{", "if", "g", ".", "isModeEnable", "(", "FAIL", ")", "{", "return", "g", ".", "<mask>", "(", "FAIL", ",", "\"", "\"", ",", "f", "(", ")", ")"...
557
all-558
[ "VerifyBody", "returns", "a", "handler", "that", "verifies", "that", "the", "body", "of", "the", "request", "matches", "the", "passed", "in", "byte", "array", ".", "It", "does", "this", "using", "Equal", "()", "." ]
[ "func", "VerifyBody", "(", "expectedBody", "[", "]", "byte", ")", "http", ".", "HandlerFunc", "{", "return", "CombineHandlers", "(", "func", "(", "w", "http", ".", "ResponseWriter", ",", "req", "*", "http", ".", "Request", ")", "{", "body", ",", "err", ...
558
all-559
[ "Callback", "is", "used", "to", "retrieve", "new", "log", "segments" ]
[ "func", "(", "lens", "Lens", ")", "Callback", "(", "artifacts", "[", "]", "lenses", ".", "Artifact", ",", "resourceDir", "string", ",", "data", "string", ")", "string", "{", "var", "request", "LineRequest", "\n", "err", ":=", "json", ".", "Unmarshal", "(...
559
all-560
[ "RunApp", "runs", "an", "application", "using", "the", "provided", "arguments", ".", "The", "arguments", "should", "be", "of", "the", "same", "form", "as", "os", ".", "Args", "(", "the", "first", "element", "contains", "the", "invoking", "executable", "comma...
[ "func", "RunApp", "(", "osArgs", "[", "]", "string", ",", "fset", "*", "<mask>", ".", "FlagSet", ",", "cmdLibrary", "CmdLibrary", ",", "app", "func", "(", "osArgs", "[", "]", "string", ")", "int", ")", "int", "{", "// process provided commands and process if...
560
all-561
[ "GetWarningRecoveryOk", "returns", "a", "tuple", "with", "the", "WarningRecovery", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "ThresholdCount", ")", "GetWarningRecoveryOk", "(", ")", "(", "json", ".", "Number", ",", "bool", ")", "{", "if", "t", "==", "nil", "||", "t", ".", "WarningRecovery", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", ...
561
all-562
[ "UnmarshalPrivateKey", "converts", "a", "protobuf", "serialized", "private", "key", "into", "its", "representative", "object" ]
[ "func", "UnmarshalPrivateKey", "(", "data", "[", "]", "byte", ")", "(", "PrivKey", ",", "error", ")", "{", "pmes", ":=", "new", "(", "<mask>", ".", "PrivateKey", ")", "\n", "err", ":=", "proto", ".", "Unmarshal", "(", "data", ",", "pmes", ")", "\n", ...
562
all-563
[ "encodedDiscardStats", "returns", "[]", "byte", "representation", "of", "lfDiscardStats", "This", "will", "be", "called", "while", "storing", "stats", "in", "BadgerDB" ]
[ "func", "(", "vlog", "*", "valueLog", ")", "encodedDiscardStats", "(", ")", "[", "]", "<mask>", "{", "vlog", ".", "lfDiscardStats", ".", "Lock", "(", ")", "\n", "defer", "vlog", ".", "lfDiscardStats", ".", "Unlock", "(", ")", "\n\n", "encodedStats", ",",...
563
all-564
[ "handleArtifactView", "handles", "requests", "to", "load", "a", "single", "view", "for", "a", "job", ".", "This", "is", "what", "viewers", "will", "use", "to", "call", "back", "to", "themselves", ".", "Query", "params", ":", "-", "name", ":", "required", ...
[ "func", "handleArtifactView", "(", "o", "options", ",", "sg", "*", "spyglass", ".", "Spyglass", ",", "cfg", "config", ".", "Getter", ")", "http", ".", "HandlerFunc", "{", "return", "func", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ...
564
all-565
[ "NewCommander", "returns", "a", "new", "commander", "with", "the", "specified", "top", "-", "level", "flags", "and", "command", "name", ".", "The", "Usage", "function", "for", "the", "topLevelFlags", "will", "be", "set", "as", "well", "." ]
[ "func", "NewCommander", "(", "topLevelFlags", "*", "flag", ".", "FlagSet", ",", "name", "string", ")", "*", "Commander", "{", "cdr", ":=", "&", "Commander", "{", "topFlags", ":", "topLevelFlags", ",", "name", ":", "name", ",", "Output", ":", "os", ".", ...
565
all-566
[ "Generate", "a", "password", "given", "requirements" ]
[ "func", "(", "g", "Garbler", ")", "password", "(", "req", "PasswordStrengthRequirements", ")", "(", "string", ",", "error", ")", "{", "//Step 1: Figure out settings", "letters", ":=", "0", "\n", "mustGarble", ":=", "0", "\n", "switch", "{", "case", "req", "....
566
all-567
[ "HasAccount", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "ServiceHookSlackRequest", ")", "HasAccount", "(", ")", "bool", "{", "if", "s", "!=", "nil", "&&", "s", ".", "Account", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
567
all-568
[ "Dot", "extract", "the", "specific", "key", "from", "the", "map", "provided", ";", "to", "extract", "a", "nested", "value", "use", "the", "Dot", "Op", "in", "conjunction", "with", "the", "Chain", "Op" ]
[ "func", "Dot", "(", "key", "string", ")", "OpFunc", "{", "key", "=", "strings", ".", "TrimSpace", "(", "key", ")", "\n", "if", "key", "==", "\"", "\"", "{", "return", "func", "(", "in", "[", "]", "byte", ")", "(", "[", "]", "byte", ",", "error"...
568
all-569
[ "Using", "the", "EZ", "API", "posts", "a", "count", "to", "a", "stat", "." ]
[ "func", "(", "r", "*", "BasicReporter", ")", "PostEZCount", "(", "statName", ",", "ezkey", "string", ",", "count", "int", ")", "error", "{", "r", ".", "<mask>", "(", "newEZStatCount", "(", "statName", ",", "ezkey", ",", "count", ")", ")", "\n", "return...
569
all-570
[ "AddMapping", "maps", "an", "external", "port", "to", "a", "local", "port", "for", "a", "specific", "service", "to", "UPnP", "interface", "." ]
[ "func", "(", "n", "*", "upnp", ")", "AddMapping", "(", "protocol", "string", ",", "extPort", ",", "intPort", "int", ",", "desc", "string", ",", "lifetime", "time", ".", "Duration", ")", "error", "{", "ip", ",", "err", ":=", "n", ".", "internalAddress",...
570
all-571
[ "Calls", "putPart", "up", "to", "nTry", "times", "to", "recover", "from", "transient", "errors", "." ]
[ "func", "(", "u", "*", "uploader", ")", "retryUploadPart", "(", "p", "*", "<mask>", ")", "{", "defer", "u", ".", "wg", ".", "Done", "(", ")", "\n", "defer", "func", "(", ")", "{", "p", ".", "r", "=", "nil", "}", "(", ")", "// free the large buffe...
571
all-572
[ "TimeFromPtr", "creates", "a", "new", "Time", "that", "will", "be", "null", "if", "t", "is", "nil", "." ]
[ "func", "TimeFromPtr", "(", "t", "*", "<mask>", ".", "Time", ")", "Time", "{", "if", "t", "==", "nil", "{", "return", "NewTime", "(", "time", ".", "Time", "{", "}", ",", "false", ")", "\n", "}", "\n", "return", "NewTime", "(", "*", "t", ",", "t...
572
all-573
[ "NewTicker", "returns", "a", "new", "Ticker", "containing", "a", "channel", "that", "will", "send", "the", "time", "at", "times", "specified", "by", "the", "BackOff", "argument", ".", "Ticker", "is", "guaranteed", "to", "tick", "at", "least", "once", ".", ...
[ "func", "NewTicker", "(", "b", "BackOff", ")", "*", "Ticker", "{", "c", ":=", "make", "(", "chan", "time", ".", "Time", ")", "\n", "t", ":=", "&", "Ticker", "{", "C", ":", "c", ",", "c", ":", "c", ",", "b", ":", "b", ",", "<mask>", ":", "ma...
573
all-574
[ "Delete", "takes", "name", "of", "the", "app", "and", "deletes", "it", ".", "Returns", "an", "error", "if", "one", "occurs", "." ]
[ "func", "(", "c", "*", "FakeApps", ")", "Delete", "(", "<mask>", "string", ",", "options", "*", "v1", ".", "DeleteOptions", ")", "error", "{", "_", ",", "err", ":=", "c", ".", "Fake", ".", "Invokes", "(", "testing", ".", "NewDeleteAction", "(", "apps...
574
all-575
[ "IterateBackward", "-", "iterate", "over", "hole", "stack", "segment", "-", "by", "-", "segment", "from", "end", "to", "begining" ]
[ "func", "(", "s", "*", "Stack", ")", "IterateBackward", "(", "handler", "func", "(", "depth", "int", ",", "header", "io", ".", "Reader", ",", "body", "io", ".", "Reader", ")", "bool", ")", "error", "{", "s", ".", "guard", ".", "Lock", "(", ")", "...
575
all-576
[ "SetV3EndpointID", "sets", "the", "v3", "endpoint", "id", "of", "container" ]
[ "func", "(", "c", "*", "Container", ")", "SetV3EndpointID", "(", "v3EndpointID", "string", ")", "{", "c", ".", "lock", ".", "Lock", "(", ")", "\n", "defer", "c", ".", "<mask>", ".", "Unlock", "(", ")", "\n\n", "c", ".", "V3EndpointID", "=", "v3Endpoi...
576
all-577
[ "LoadIcon", "is", "a", "wrapper", "around", "gtk_icon_theme_load_icon", "()", "." ]
[ "func", "(", "v", "*", "IconTheme", ")", "LoadIcon", "(", "iconName", "string", ",", "size", "int", ",", "flags", "IconLookupFlags", ")", "(", "*", "gdk", ".", "Pixbuf", ",", "error", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "iconName", ")",...
577
all-578
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EventReportHeapSnapshotProgress", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler16", "(", "&", "w", ...
578
all-579
[ "NewFilteredSharedInformerFactory", "constructs", "a", "new", "instance", "of", "sharedInformerFactory", ".", "Listers", "obtained", "via", "this", "SharedInformerFactory", "will", "be", "subject", "to", "the", "same", "filters", "as", "specified", "here", "." ]
[ "func", "NewFilteredSharedInformerFactory", "(", "client", "versioned", ".", "Interface", ",", "defaultResync", "time", ".", "Duration", ",", "namespace", "string", ",", "tweakListOptions", "internalinterfaces", ".", "TweakListOptionsFunc", ")", "SharedInformerFactory", "...
579
all-580
[ "ScenarioLocator", "builds", "a", "locator", "from", "the", "given", "href", "." ]
[ "func", "(", "api", "*", "API", ")", "ScenarioLocator", "(", "href", "string", ")", "*", "ScenarioLocator", "{", "<mask>", "&", "ScenarioLocator", "{", "Href", "(", "href", ")", ",", "api", "}", "\n", "}" ]
580
all-581
[ "HasY", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "Widget", ")", "HasY", "(", ")", "bool", "{", "if", "w", "!=", "nil", "&&", "w", ".", "Y", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
581
all-582
[ "NewGroup", "reads", "the", ".", "generated_files", "file", "in", "the", "root", "of", "the", "repository", "and", "any", "referenced", "path", "files", "(", "from", "path", "-", "from", "-", "repo", "commands", ")", "." ]
[ "func", "NewGroup", "(", "gc", "ghFileClient", ",", "owner", ",", "repo", ",", "sha", "string", ")", "(", "*", "Group", ",", "error", ")", "{", "g", ":=", "&", "<mask>", "{", "Paths", ":", "make", "(", "map", "[", "string", "]", "bool", ")", ",",...
582
all-583
[ "New", "resource", "generator" ]
[ "func", "New", "(", "opts", "*", "Options", ")", "(", "*", "genny", ".", "Generator", ",", "error", ")", "{", "g", ":=", "genny", ".", "New", "(", ")", "\n\n", "if", "err", ":=", "opts", ".", "Validate", "(", ")", ";", "err", "!=", "nil", "{", ...
583
all-584
[ "NewStringSliceFlag", "creates", "a", "new", "string", "slice", "flag", ".", "The", "default", "value", "is", "always", "nil", "." ]
[ "func", "NewStringSliceFlag", "(", "name", "string", ",", "usage", "string", ")", "*", "[", "]", "string", "{", "var", "ss", "stringSliceFlag", "\n", "flag", ".", "Var", "(", "&", "<mask>", ",", "name", ",", "usage", ")", "\n", "return", "(", "*", "[...
584
all-585
[ "Push", "the", "changes", "from", "this", "object", "to", "all", "connected", "clients", ".", "Push", "is", "thread", "-", "safe", "and", "is", "throttled", "so", "it", "can", "be", "called", "with", "abandon", ".", "Returns", "false", "if", "a", "Push",...
[ "func", "(", "s", "*", "State", ")", "Push", "(", ")", "bool", "{", "//attempt to mark state as 'pushing'", "if", "atomic", ".", "CompareAndSwapUint32", "(", "&", "s", ".", "push", ".", "ing", ",", "0", ",", "1", ")", "{", "go", "s", ".", "gopush", "...
585
all-586
[ "GetJobSummariesForProject", "returns", "summaries", "of", "the", "jobs", "belonging", "to", "the", "named", "project", "." ]
[ "func", "(", "c", "*", "Client", ")", "GetJobSummariesForProject", "(", "projectName", "string", ")", "(", "[", "]", "JobSummary", ",", "error", ")", "{", "jobList", ":=", "&", "jobSummaryList", "{", "}", "\n", "err", ":=", "c", ".", "<mask>", "(", "["...
586
all-587
[ "GetPathPaymentResult", "retrieves", "the", "PathPaymentResult", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "OperationResultTr", ")", "GetPathPaymentResult", "(", ")", "(", "result", "PathPaymentResult", ",", "ok", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "Type", ")", ")", "\n\n", "...
587
all-588
[ "MendPeer", "recovers", "the", "message", "dropping", "behavior", "of", "the", "given", "peer", "." ]
[ "func", "(", "t", "*", "Transport", ")", "MendPeer", "(", "id", "types", ".", "ID", ")", "{", "t", ".", "mu", ".", "RLock", "(", ")", "\n", "p", ",", "pok", ":=", "t", ".", "peers", "[", "<mask>", "]", "\n", "g", ",", "gok", ":=", "t", ".",...
588
all-589
[ "gpgUntrustedSignatureContents", "returns", "UNTRUSTED", "contents", "of", "the", "signature", "WITHOUT", "ANY", "VERIFICATION", "along", "with", "a", "short", "identifier", "of", "the", "key", "used", "for", "signing", ".", "WARNING", ":", "The", "short", "key", ...
[ "func", "gpgUntrustedSignatureContents", "(", "untrustedSignature", "[", "]", "byte", ")", "(", "untrustedContents", "[", "]", "byte", ",", "shortKeyIdentifier", "string", ",", "err", "error", ")", "{", "// This uses the Golang-native OpenPGP implementation instead of gpgme...
589
all-590
[ "SetKnownStatus", "safely", "sets", "the", "currently", "known", "status", "of", "the", "resource" ]
[ "func", "(", "secret", "*", "ASMSecretResource", ")", "SetKnownStatus", "(", "status", "resourcestatus", ".", "ResourceStatus", ")", "{", "<mask>", ".", "lock", ".", "Lock", "(", ")", "\n", "defer", "secret", ".", "lock", ".", "Unlock", "(", ")", "\n\n", ...
590
all-591
[ "CopyTo", "copies", "all", "the", "headers", "to", "dst", "." ]
[ "func", "(", "h", "*", "RequestHeader", ")", "CopyTo", "(", "dst", "*", "RequestHeader", ")", "{", "dst", ".", "Reset", "(", ")", "\n\n", "dst", ".", "disableNormalizing", "=", "h", ".", "disableNormalizing", "\n", "dst", ".", "noHTTP11", "=", "h", "."...
591
all-592
[ "DoIntro", "executes", "the", "protocol", "introduction", "." ]
[ "func", "(", "params", "protocolIntroParams", ")", "doIntro", "(", ")", "(", "res", "protocolIntroResults", ",", "err", "error", ")", "{", "if", "err", "=", "params", ".", "Conn", ".", "SetDeadline", "(", "time", ".", "Now", "(", ")", ".", "Add", "(", ...
592
all-593
[ "Delete", "is", "used", "to", "delete", "the", "instances", "on", "the", "cloud", "provider" ]
[ "func", "(", "r", "*", "InstanceGroup", ")", "Delete", "(", "actual", "cloud", ".", "Resource", ",", "immutable", "*", "cluster", ".", "Cluster", ")", "(", "*", "cluster", ".", "Cluster", ",", "cloud", ".", "Resource", ",", "error", ")", "{", "logger",...
593
all-594
[ "HasServiceName", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "servicePD", ")", "HasServiceName", "(", ")", "bool", "{", "if", "s", "!=", "nil", "&&", "s", ".", "ServiceName", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
594
all-595
[ "GetDestination", "retrieves", "the", "Destination", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "OperationBody", ")", "GetDestination", "(", ")", "(", "<mask>", "AccountId", ",", "ok", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "Type", ")", ")", "\n\n", "if", "armName", ...
595
all-596
[ "resourceVSphereComputeClusterVMGroupFetchObjects", "fetches", "the", "objects", "for", "a", "cluster", "VM", "group", ".", "This", "is", "currently", "just", "the", "cluster", "object", "as", "the", "name", "of", "the", "group", "is", "a", "static", "value", "a...
[ "func", "resourceVSphereComputeClusterVMGroupFetchObjects", "(", "meta", "interface", "{", "}", ",", "clusterID", "string", ",", "name", "string", ",", ")", "(", "*", "<mask>", ".", "ClusterComputeResource", ",", "string", ",", "error", ")", "{", "client", ",", ...
596
all-597
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "a", "specified", "program", "object" ]
[ "func", "ProgramUniform2fv", "(", "program", "uint32", ",", "location", "int32", ",", "count", "int32", ",", "value", "*", "float32", ")", "{", "syscall", ".", "Syscall6", "(", "gpProgramUniform2fv", ",", "4", ",", "uintptr", "(", "program", ")", ",", "uin...
597
all-598
[ "Retrieve", "a", "secret", "from", "storage", ".", "The", "result", "contains", "any", "passwords", "or", "other", "restricted", "information", "verbatim", "as", "well", "as", "a", "temporary", "credential", "based", "on", "the", "scopes", "specified", "when", ...
[ "func", "(", "awsProvisioner", "*", "AwsProvisioner", ")", "GetSecret", "(", "token", "string", ")", "(", "*", "SecretResponse", ",", "error", ")", "{", "cd", ":=", "tcclient", ".", "Client", "(", "*", "awsProvisioner", ")", "\n", "responseObject", ",", "_...
598
all-599
[ "OptFieldTypeSet", "adds", "a", "set", "field", ".", "Specify", "CacheTypeDefault", "for", "the", "default", "cache", "type", ".", "Specify", "CacheSizeDefault", "for", "the", "default", "cache", "size", "." ]
[ "func", "OptFieldTypeSet", "(", "cacheType", "CacheType", ",", "cacheSize", "int", ")", "FieldOption", "{", "return", "func", "(", "<mask>", "*", "FieldOptions", ")", "{", "options", ".", "fieldType", "=", "FieldTypeSet", "\n", "options", ".", "cacheType", "="...
599
all-600
[ "LoadManifestDescriptor", "loads", "the", "manifest" ]
[ "func", "LoadManifestDescriptor", "(", "imgRef", "types", ".", "ImageReference", ")", "(", "imgspecv1", ".", "Descriptor", ",", "error", ")", "{", "ociArchRef", ",", "ok", ":=", "imgRef", ".", "(", "ociArchiveReference", ")", "\n", "if", "!", "ok", "{", "r...