id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
7,900
all-7901
[ "GetLan", "pulls", "data", "for", "the", "lan", "where", "id", "=", "lanid", "returns", "an", "Instance", "struct" ]
[ "func", "(", "c", "*", "Client", ")", "GetLan", "(", "dcid", ",", "lanid", "string", ")", "(", "*", "Lan", ",", "error", ")", "{", "url", ":=", "lanPath", "(", "dcid", ",", "lanid", ")", "+", "`?depth=`", "+", "c", ".", "client", ".", "depth", ...
7,901
all-7902
[ "AddJitter", "adds", "an", "amount", "of", "jitter", "between", "0", "and", "the", "given", "jitter", "to", "the", "given", "duration" ]
[ "func", "AddJitter", "(", "duration", "time", ".", "Duration", ",", "jitter", "time", ".", "Duration", ")", "time", ".", "Duration", "{", "var", "randJitter", "int64", "\n", "if", "jitter", ".", "Nanoseconds", "(", ")", "==", "0", "{", "randJitter", "=",...
7,902
all-7903
[ "GetRecoveryWindowOk", "returns", "a", "tuple", "with", "the", "RecoveryWindow", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "ThresholdWindows", ")", "GetRecoveryWindowOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "t", "==", "nil", "||", "t", ".", "RecoveryWindow", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", ...
7,903
all-7904
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "PropertyPreview", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime14", "(", "&", "...
7,904
all-7905
[ "UpdateFirewallRule", "updates", "a", "firewall", "rule" ]
[ "func", "(", "c", "*", "Client", ")", "UpdateFirewallRule", "(", "dcID", "string", ",", "serverID", "string", ",", "nicID", "string", ",", "fwID", "string", ",", "obj", "FirewallruleProperties", ")", "(", "*", "FirewallRule", ",", "error", ")", "{", "url",...
7,905
all-7906
[ "GetTitleAlignOk", "returns", "a", "tuple", "with", "the", "TitleAlign", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "q", "*", "QueryValueDefinition", ")", "GetTitleAlignOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "q", "==", "nil", "||", "q", ".", "TitleAlign", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "ret...
7,906
all-7907
[ "vimSessionFile", "is", "takes", "the", "session", "file", "name", "generated", "by", "sessionFile", "and", "then", "prefixes", "the", "SOAP", "client", "session", "path", "to", "it", "." ]
[ "func", "(", "c", "*", "Config", ")", "vimSessionFile", "(", ")", "(", "string", ",", "error", ")", "{", "p", ",", "err", ":=", "c", ".", "sessionFile", "(", ")", "\n", "if", "<mask>", "!=", "nil", "{", "return", "\"", "\"", ",", "err", "\n", "...
7,907
all-7908
[ "AppMeshFromACS", "validates", "proxy", "config", "if", "it", "is", "app", "mesh", "type", "and", "creates", "AppMesh", "object" ]
[ "func", "AppMeshFromACS", "(", "proxyConfig", "*", "ecsacs", ".", "ProxyConfiguration", ")", "(", "*", "AppMesh", ",", "error", ")", "{", "if", "*", "proxyConfig", ".", "<mask>", "!=", "appMesh", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\""...
7,908
all-7909
[ "GenerateHOTP", "will", "generate", "a", "randomised", "HOTP", "source", ";", "if", "the", "randCounter", "parameter", "is", "true", "the", "counter", "will", "be", "randomised", "." ]
[ "func", "GenerateHOTP", "(", "digits", "int", ",", "randCounter", "bool", ")", "(", "*", "HOTP", ",", "error", ")", "{", "key", ":=", "make", "(", "[", "]", "byte", ",", "sha1", ".", "Size", ")", "\n", "_", ",", "err", ":=", "io", ".", "ReadFull"...
7,909
all-7910
[ "MustOffer", "retrieves", "the", "Offer", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "." ]
[ "func", "(", "u", "ManageOfferSuccessResultOffer", ")", "MustOffer", "(", ")", "OfferEntry", "{", "val", ",", "<mask>", ":=", "u", ".", "GetOffer", "(", ")", "\n\n", "if", "!", "ok", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n\n", "return", "v...
7,910
all-7911
[ "GetOrg", "returns", "current", "metadata", "for", "the", "org", "https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "#get", "-", "an", "-", "organization" ]
[ "func", "(", "c", "*", "Client", ")", "GetOrg", "(", "<mask>", "string", ")", "(", "*", "Organization", ",", "error", ")", "{", "c", ".", "log", "(", "\"", "\"", ",", "name", ")", "\n", "var", "retOrg", "Organization", "\n", "_", ",", "err", ":="...
7,911
all-7912
[ "FetchAnnotation", "retrieves", "annotation", "with", "passed", "cid", "." ]
[ "func", "(", "a", "*", "API", ")", "FetchAnnotation", "(", "cid", "CIDType", ")", "(", "*", "Annotation", ",", "error", ")", "{", "if", "cid", "==", "nil", "||", "*", "cid", "==", "\"", "\"", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(", ...
7,912
all-7913
[ "SetLabel", "is", "a", "wrapper", "around", "gtk_tool_button_set_label", "()", "." ]
[ "func", "(", "v", "*", "ToolButton", ")", "SetLabel", "(", "<mask>", "string", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "label", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "\n", "C", ".", ...
7,913
all-7914
[ "NOTE", ":", "UNSAFE" ]
[ "func", "DecodeFloat64", "(", "bz", "[", "]", "byte", ")", "(", "f", "float64", ",", "n", "int", ",", "err", "error", ")", "{", "const", "size", "int", "=", "8", "\n", "if", "len", "(", "bz", ")", "<", "size", "{", "err", "=", "errors", ".", ...
7,914
all-7915
[ "Return", "a", "string", "representation", "of", "the", "Timer", "." ]
[ "func", "(", "t", "*", "Timer", ")", "<mask>", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "t", ".", "name", ",", "t", ".", "duration", ")", "\n", "}" ]
7,915
all-7916
[ "===", "time", "()", "float64", "===" ]
[ "func", "funcTime", "(", "vals", "[", "]", "Value", ",", "args", "Expressions", ",", "enh", "*", "EvalNodeHelper", ")", "Vector", "{", "return", "Vector", "{", "Sample", "{", "Point", ":", "<mask>", "{", "V", ":", "float64", "(", "enh", ".", "ts", ")...
7,916
all-7917
[ "flattenOptions", "copies", "all", "options", "in", "src", "to", "dst", "as", "a", "flat", "list", ".", "Only", "coreOptions", "and", "Options", "containing", "coreOptions", "are", "allowed", "." ]
[ "func", "flattenOptions", "(", "dst", ",", "src", "Options", ")", "Options", "{", "for", "_", ",", "opt", ":=", "range", "src", "{", "switch", "opt", ":=", "opt", ".", "(", "type", ")", "{", "case", "nil", ":", "continue", "\n", "case", "<mask>", "...
7,917
all-7918
[ "/", "*", "Get2D", "return", "a", "specific", "element", "from", "a", "2", "-", "dimensional", "matrix", "." ]
[ "func", "(", "m", "*", "Mat", ")", "Get2D", "(", "x", ",", "y", "int", ")", "Scalar", "{", "<mask>", ":=", "C", ".", "cvGet2D", "(", "unsafe", ".", "Pointer", "(", "m", ")", ",", "C", ".", "int", "(", "x", ")", ",", "C", ".", "int", "(", ...
7,918
all-7919
[ "UpdateSnapshot", "updates", "a", "snapshot" ]
[ "func", "(", "c", "*", "Client", ")", "UpdateSnapshot", "(", "snapshotID", "string", ",", "request", "SnapshotProperties", ")", "(", "*", "Snapshot", ",", "error", ")", "{", "url", ":=", "snapshotColPath", "(", ")", "+", "slash", "(", "snapshotID", ")", ...
7,919
all-7920
[ "Before", "applys", "any", "http", ".", "HandlerFunc", "to", "the", "request", "before", "sending", "it", "on", "to", "the", "controller", "/", "processor", ".", "Note", "that", "if", "a", "handler", "incecepts", "the", "body", "of", "the", "request", "via...
[ "func", "(", "s", "*", "Server", ")", "Before", "(", "handlers", "...", "http", ".", "HandlerFunc", ")", "{", "original", ":=", "s", ".", "handlerFn", "\n", "s", ".", "handlerFn", "=", "func", "(", "w", "<mask>", ".", "ResponseWriter", ",", "r", "*",...
7,920
all-7921
[ "SetUDPPort", "sets", "which", "TCP", "-", "only", "ports", "are", "used", "to", "scan" ]
[ "func", "(", "s", "Scan", ")", "SetUDPPorts", "(", "<mask>", "...", "uint16", ")", "Scan", "{", "s", ".", "configUDPPorts", "=", "ports", "\n", "return", "s", "\n", "}" ]
7,921
all-7922
[ "Close", "implements", "y", ".", "Iterator" ]
[ "func", "(", "s", "*", "MergeIterator", ")", "Close", "(", ")", "error", "{", "for", "_", ",", "itr", ":=", "<mask>", "s", ".", "all", "{", "if", "err", ":=", "itr", ".", "Close", "(", ")", ";", "err", "!=", "nil", "{", "return", "errors", ".",...
7,922
all-7923
[ "restoreVimClient", "loads", "the", "saved", "session", "from", "disk", ".", "Note", "that", "this", "is", "a", "helper", "function", "to", "LoadVimClient", "and", "should", "not", "be", "called", "directly", "." ]
[ "func", "(", "c", "*", "Config", ")", "restoreVimClient", "(", "client", "*", "vim25", ".", "Client", ")", "(", "bool", ",", "error", ")", "{", "if", "!", "c", ".", "Persist", "{", "return", "false", ",", "nil", "\n", "}", "\n\n", "p", ",", "err"...
7,923
all-7924
[ "Records", "gets", "the", "current", "records", ".", "Returns", "the", "current", "records", "or", "an", "error", "if", "the", "operation", "failed", "." ]
[ "func", "(", "p", "*", "AzureProvider", ")", "Records", "(", ")", "(", "endpoints", "[", "]", "*", "endpoint", ".", "Endpoint", ",", "_", "error", ")", "{", "zones", ",", "err", ":=", "p", ".", "zones", "(", ")", "\n", "if", "err", "!=", "nil", ...
7,924
all-7925
[ "TODO", ":", "Dry", "this", "out" ]
[ "func", "syncProwJobs", "(", "l", "*", "logrus", ".", "Entry", ",", "syncFn", "syncFn", ",", "maxSyncRoutines", "int", ",", "jobs", "<-", "chan", "prowapi", ".", "ProwJob", ",", "reports", "chan", "<-", "prowapi", ".", "ProwJob", ",", "syncErrors", "chan",...
7,925
all-7926
[ "GetMessage", "returns", "the", "comment", "body", "that", "we", "want", "the", "approve", "plugin", "to", "display", "on", "PRs", "The", "comment", "shows", ":", "-", "a", "list", "of", "approvers", "files", "(", "and", "links", ")", "needed", "to", "ge...
[ "func", "GetMessage", "(", "ap", "Approvers", ",", "linkURL", "*", "url", ".", "<mask>", ",", "org", ",", "repo", ",", "branch", "string", ")", "*", "string", "{", "linkURL", ".", "Path", "=", "org", "+", "\"", "\"", "+", "repo", "\n", "message", "...
7,926
all-7927
[ "GetResourcePolicyRequest", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockSecretsManagerAPI", ")", "GetResourcePolicyRequest", "(", "arg0", "*", "secretsmanager", ".", "GetResourcePolicyInput", ")", "(", "*", "<mask>", ".", "Request", ",", "*", "secretsmanager", ".", "GetResourcePolicyOutput", ")", "{", "ret"...
7,927
all-7928
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetHeapObjectIDReturns", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler13", "("...
7,928
all-7929
[ "/", "*", "UpdateVM", "updates", "an", "existing", "vm" ]
[ "func", "(", "a", "*", "Client", ")", "UpdateVM", "(", "params", "*", "UpdateVMParams", ")", "(", "*", "UpdateVMOK", ",", "error", ")", "{", "// TODO: Validate the params before sending", "if", "params", "==", "nil", "{", "params", "=", "NewUpdateVMParams", "(...
7,929
all-7930
[ "GetNextCallsInRange", "retrieves", "the", "page", "at", "the", "nextPageURI", "and", "continues", "retrieving", "pages", "until", "any", "results", "are", "found", "in", "the", "range", "given", "by", "start", "or", "end", "or", "we", "determine", "there", "a...
[ "func", "(", "c", "*", "CallService", ")", "GetNextCallsInRange", "(", "start", "time", ".", "Time", ",", "end", "time", ".", "Time", ",", "nextPageURI", "string", ")", "CallPageIterator", "{", "if", "nextPageURI", "==", "\"", "\"", "{", "panic", "(", "\...
7,930
all-7931
[ "read", "parses", "a", "pctab", "from", "the", "core", "file", "at", "address", "data", "." ]
[ "func", "(", "t", "*", "pcTab", ")", "read", "(", "core", "*", "core", ".", "Process", ",", "data", "core", ".", "Address", ")", "{", "<mask>", "pcQuantum", "int64", "\n", "switch", "core", ".", "Arch", "(", ")", "{", "case", "\"", "\"", ",", "\"...
7,931
all-7932
[ "Set", "the", "name", "/", "value", "pair", "as", "a", "label", "." ]
[ "func", "(", "b", "*", "Builder", ")", "<mask>", "(", "n", ",", "v", "string", ")", "*", "Builder", "{", "for", "i", ",", "a", ":=", "range", "b", ".", "add", "{", "if", "a", ".", "Name", "==", "n", "{", "b", ".", "add", "[", "i", "]", "....
7,932
all-7933
[ "SetKeepAbove", "is", "a", "wrapper", "around", "gtk_window_set_keep_above", "()", "." ]
[ "func", "(", "v", "*", "Window", ")", "SetKeepAbove", "(", "setting", "bool", ")", "{", "C", ".", "gtk_window_set_keep_above", "(", "v", ".", "native", "(", ")", ",", "gbool", "(", "<mask>", ")", ")", "\n", "}" ]
7,933
all-7934
[ "Add", "adds", "a", "member", "to", "the", "group", "for", "the", "provided", "interface", "channel", "." ]
[ "func", "(", "g", "*", "Group", ")", "Add", "(", "memberChannel", "chan", "interface", "{", "}", ")", "*", "Member", "{", "g", ".", "memberLock", ".", "Lock", "(", ")", "\n", "g", ".", "clockLock", ".", "Lock", "(", ")", "\n", "member", ":=", "&"...
7,934
all-7935
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "CompileScriptReturns", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime44", "(", "&"...
7,935
all-7936
[ "append", "adds", "s", "to", "the", "end", "of", "os", "only", "if", "it", "is", "not", "included", "already", "." ]
[ "func", "(", "os", "*", "orderedSet", ")", "append", "(", "s", "string", ")", "{", "if", "_", ",", "ok", ":=", "os", ".", "included", "[", "s", "]", ";", "!", "ok", "{", "os", ".", "list", "=", "append", "(", "os", ".", "<mask>", ",", "s", ...
7,936
all-7937
[ "AddArgs", "appends", "arguments", "to", "Docker", "container", "." ]
[ "func", "(", "s", "*", "RunConfig", ")", "AddArgs", "(", "args", "...", "string", ")", "{", "s", ".", "Args", "=", "<mask>", "(", "s", ".", "Args", ",", "args", "...", ")", "\n", "}" ]
7,937
all-7938
[ "AddStdLevel", "adds", "std", "log", "level", "and", "returns", "LEVEL" ]
[ "func", "(", "g", "*", "Glg", ")", "AddStdLevel", "(", "tag", "string", ",", "mode", "MODE", ",", "isColor", "bool", ")", "*", "Glg", "{", "atomic", ".", "AddUint32", "(", "g", ".", "levelCounter", ",", "1", ")", "\n", "lev", ":=", "LEVEL", "(", ...
7,938
all-7939
[ "AppendChild", "appends", "the", "child", "element", "to", "the", "element", "." ]
[ "func", "(", "e", "*", "elementBase", ")", "AppendChild", "(", "<mask>", "element", ")", "{", "e", ".", "children", "=", "append", "(", "e", ".", "children", ",", "child", ")", "\n", "}" ]
7,939
all-7940
[ "GenerateAvatar", "generates", "an", "avatar", "(", "image", ".", "RGBA", ")", "using", "the", "given", "string", "as", "a", "random", "seed", "." ]
[ "func", "GenerateAvatar", "(", "input", "string", ",", "blockSize", "int", ",", "borderSize", "int", ")", "*", "image", ".", "RGBA", "{", "hash", ":=", "hashMd5", "(", "input", ")", "\n\n", "pic", ":=", "[", "size", "]", "[", "size", "]", "bool", "{"...
7,940
all-7941
[ "RepositoryName", "returns", "github", "s", "repository", "name", "in", "the", "form", "of", "org", "/", "project" ]
[ "func", "(", "client", "*", "Client", ")", "RepositoryName", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "<mask>", ".", "Org", ",", "client", ".", "Project", ")", "\n", "}" ]
7,941
all-7942
[ "ConfigValueSet", "is", "a", "convenience", "to", "set", "a", "cluster", "-", "level", "key", "/", "value", "config", "pair", "in", "a", "single", "transaction", "." ]
[ "func", "ConfigValueSet", "(", "c", "*", "Cluster", ",", "key", "string", ",", "value", "string", ")", "error", "{", "err", ":=", "c", ".", "Transaction", "(", "func", "(", "tx", "*", "ClusterTx", ")", "error", "{", "_", ",", "err", ":=", "tx", "."...
7,942
all-7943
[ "NewHTTPServer", "returns", "a", "Pachyderm", "HTTP", "server", "." ]
[ "func", "NewHTTPServer", "(", "address", "string", ")", "(", "http", ".", "<mask>", ",", "error", ")", "{", "router", ":=", "httprouter", ".", "New", "(", ")", "\n", "s", ":=", "&", "server", "{", "router", ":", "router", ",", "address", ":", "addres...
7,943
all-7944
[ "Spawn", "the", "editor", "with", "a", "temporary", "YAML", "file", "for", "editing", "configs" ]
[ "func", "TextEditor", "(", "inPath", "string", ",", "inContent", "[", "]", "byte", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "var", "f", "*", "os", ".", "File", "\n", "var", "err", "error", "\n", "var", "path", "string", "\n\n", "// Detec...
7,944
all-7945
[ "isSafeRetryImmutableRPC", "returns", "true", "when", "an", "immutable", "request", "is", "safe", "for", "retry", ".", "immutable", "requests", "(", "e", ".", "g", ".", "Get", ")", "should", "be", "retried", "unless", "it", "s", "an", "obvious", "server", ...
[ "func", "isSafeRetryImmutableRPC", "(", "err", "error", ")", "bool", "{", "eErr", ":=", "rpctypes", ".", "Error", "(", "err", ")", "\n", "if", "serverErr", ",", "ok", ":=", "eErr", ".", "(", "rpctypes", ".", "EtcdError", ")", ";", "ok", "&&", "serverEr...
7,945
all-7946
[ "GetInt64PtrEmptyZero", "reads", "a", "ResourceData", "and", "returns", "an", "appropriate", "*", "int64", "for", "the", "state", "of", "the", "definition", ".", "0", "is", "returned", "if", "it", "does", "not", "exist", "." ]
[ "func", "GetInt64PtrEmptyZero", "(", "d", "*", "schema", ".", "ResourceData", ",", "key", "string", ")", "*", "int64", "{", "i", ":=", "GetInt64Ptr", "(", "d", ",", "<mask>", ")", "\n", "if", "i", "!=", "nil", "{", "return", "i", "\n", "}", "\n", "...
7,946
all-7947
[ "Value", "returns", "the", "value", "associated", "with", "this", "context", "for", "key", "or", "nil", "if", "no", "value", "is", "associated", "with", "key", ".", "Successive", "calls", "to", "Value", "with", "the", "same", "key", "returns", "the", "same...
[ "func", "(", "ctx", "*", "RequestCtx", ")", "Value", "(", "key", "interface", "{", "}", ")", "interface", "{", "}", "{", "if", "keyString", ",", "ok", ":=", "<mask>", ".", "(", "string", ")", ";", "ok", "{", "return", "ctx", ".", "UserValue", "(", ...
7,947
all-7948
[ "updateVMX", "updates", "VMX", "file", "for", "the", "VM", "." ]
[ "func", "(", "v", "*", "VM", ")", "updateVMX", "(", "updateFunc", "func", "(", "model", "*", "vmx", ".", "VirtualMachine", ")", "error", ")", "error", "{", "isVMRunning", ",", "err", ":=", "v", ".", "IsRunning", "(", ")", "\n", "if", "err", "!=", "...
7,948
all-7949
[ "SetRequestURI", "sets", "RequestURI", "for", "the", "first", "HTTP", "request", "line", ".", "RequestURI", "must", "be", "properly", "encoded", ".", "Use", "URI", ".", "RequestURI", "for", "constructing", "proper", "RequestURI", "if", "unsure", "." ]
[ "func", "(", "h", "*", "RequestHeader", ")", "SetRequestURI", "(", "requestURI", "string", ")", "{", "h", ".", "requestURI", "=", "<mask>", "(", "h", ".", "requestURI", "[", ":", "0", "]", ",", "requestURI", "...", ")", "\n", "}" ]
7,949
all-7950
[ "SetIcon", "is", "a", "wrapper", "around", "gtk_window_set_icon", "()", "." ]
[ "func", "(", "v", "*", "Window", ")", "SetIcon", "(", "icon", "*", "gdk", ".", "Pixbuf", ")", "{", "iconPtr", ":=", "(", "*", "C", ".", "GdkPixbuf", ")", "(", "unsafe", ".", "Pointer", "(", "<mask>", ".", "Native", "(", ")", ")", ")", "\n", "C"...
7,950
all-7951
[ "IdentityProviderLocator", "builds", "a", "locator", "from", "the", "given", "href", "." ]
[ "func", "(", "api", "*", "API", ")", "IdentityProviderLocator", "(", "href", "string", ")", "*", "IdentityProviderLocator", "{", "<mask>", "&", "IdentityProviderLocator", "{", "Href", "(", "href", ")", ",", "api", "}", "\n", "}" ]
7,951
all-7952
[ "CompareAndSwapMulti", "is", "a", "batch", "version", "of", "CompareAndSwap", ".", "appengine", ".", "MultiError", "may", "be", "returned", "." ]
[ "func", "(", "cd", "Codec", ")", "CompareAndSwapMulti", "(", "c", "context", ".", "Context", ",", "items", "[", "]", "*", "Item", ")", "error", "{", "return", "cd", ".", "<mask>", "(", "c", ",", "items", ",", "pb", ".", "MemcacheSetRequest_CAS", ")", ...
7,952
all-7953
[ "NewAPIAnalyzer", "is", "the", "factory", "method", "for", "the", "API", "analyzer" ]
[ "func", "NewAPIAnalyzer", "(", "resources", "map", "[", "string", "]", "interface", "{", "}", ",", "attributeTypes", "<mask>", "[", "string", "]", "string", ")", "*", "APIAnalyzer", "{", "return", "&", "APIAnalyzer", "{", "rawResources", ":", "resources", ",...
7,953
all-7954
[ "MustQSetHash", "retrieves", "the", "QSetHash", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "." ]
[ "func", "(", "u", "StellarMessage", ")", "MustQSetHash", "(", ")", "Uint256", "{", "val", ",", "ok", ":=", "u", ".", "GetQSetHash", "(", ")", "\n\n", "if", "!", "<mask>", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n\n", "return", "val", "\n",...
7,954
all-7955
[ "Generate", "a", "Random", "secret", "encoded", "as", "a", "b32", "string", "If", "the", "length", "is", "<", "=", "0", "a", "default", "length", "of", "10", "bytes", "will", "be", "used", "which", "will", "generate", "a", "secret", "of", "length", "16...
[ "func", "RandomSecret", "(", "length", "int", ",", "rnd", "*", "rand", ".", "Rand", ")", "string", "{", "if", "0", "<=", "length", "{", "length", "=", "10", "\n", "}", "\n", "secret", ":=", "make", "(", "[", "]", "byte", ",", "length", ")", "\n",...
7,955
all-7956
[ "Accept", "waits", "for", "and", "returns", "the", "next", "incoming", "TLS", "connection", ".", "The", "returned", "connection", "c", "is", "a", "*", "tls", ".", "Conn", "." ]
[ "func", "(", "l", "*", "tlsKeepaliveListener", ")", "Accept", "(", ")", "(", "c", "net", ".", "Conn", ",", "err", "error", ")", "{", "c", ",", "err", "=", "l", ".", "Listener", ".", "Accept", "(", ")", "\n", "if", "err", "!=", "nil", "{", "retu...
7,956
all-7957
[ "RemoveAllServers", "stops", "all", "remote", "Pact", "Mock", "Servers", "." ]
[ "func", "(", "p", "*", "mockClient", ")", "RemoveAllServers", "(", "<mask>", "*", "types", ".", "MockServer", ")", "[", "]", "*", "types", ".", "MockServer", "{", "return", "p", ".", "RemoveAllServersResponse", "\n", "}" ]
7,957
all-7958
[ "StoragePoolNodeVolumeGetTypeByProject", "gets", "a", "single", "storage", "volume", "attached", "to", "a", "given", "storage", "pool", "of", "a", "given", "type", "on", "the", "current", "node", "in", "the", "given", "project", "." ]
[ "func", "(", "c", "*", "Cluster", ")", "StoragePoolNodeVolumeGetTypeByProject", "(", "project", ",", "volumeName", "string", ",", "volumeType", "int", ",", "poolID", "int64", ")", "(", "int64", ",", "*", "api", ".", "StorageVolume", ",", "error", ")", "{", ...
7,958
all-7959
[ "MarshalString", "appends", "the", "uint32", "to", "the", "buffer", "." ]
[ "func", "(", "m", "*", "Marshaller", ")", "MarshalUint32", "(", "v", "uint32", ")", "{", "if", "m", ".", "Error", "!=", "nil", "{", "return", "\n", "}", "\n", "if", "len", "(", "m", ".", "Data", ")", "<", "m", ".", "offset", "+", "4", "{", "m...
7,959
all-7960
[ "Client", "returns", "an", "*", "http", ".", "Client", "using", "a", "default", "urlfetch", "Transport", ".", "This", "client", "will", "have", "the", "default", "deadline", "of", "5", "seconds", "and", "will", "check", "the", "validity", "of", "SSL", "cer...
[ "func", "Client", "(", "ctx", "<mask>", ".", "Context", ")", "*", "http", ".", "Client", "{", "return", "&", "http", ".", "Client", "{", "Transport", ":", "&", "Transport", "{", "Context", ":", "ctx", ",", "}", ",", "}", "\n", "}" ]
7,960
all-7961
[ "routeHTTP", "routes", "a", "http", ".", "Request", "through", "the", "Mux", "routing", "tree", "to", "serve", "the", "matching", "handler", "for", "a", "particular", "http", "method", "." ]
[ "func", "(", "mx", "*", "Mux", ")", "routeHTTP", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "{", "// Grab the route context object", "rctx", ":=", "r", ".", "Context", "(", ")", ".", "Value", "(", "RouteCtxKey", ...
7,961
all-7962
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetNavigationHistoryReturns", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage34", "(", ...
7,962
all-7963
[ "Name", "sets", "name", "of", "ComboRouter", "route", "." ]
[ "func", "(", "cr", "*", "ComboRouter", ")", "Name", "(", "<mask>", "string", ")", "{", "if", "cr", ".", "lastRoute", "==", "nil", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n", "cr", ".", "lastRoute", ".", "Name", "(", "name", ")", "\n", ...
7,963
all-7964
[ "establish", "data", "storage", "format", "dimensions", "and", "sample", "count", "of", "a", "renderbuffer", "object", "s", "image" ]
[ "func", "RenderbufferStorageMultisample", "(", "target", "uint32", ",", "samples", "int32", ",", "internalformat", "uint32", ",", "width", "int32", ",", "height", "int32", ")", "{", "syscall", ".", "Syscall6", "(", "gpRenderbufferStorageMultisample", ",", "5", ","...
7,964
all-7965
[ "Serialize", "returns", "the", "manifest", "in", "a", "blob", "format", ".", "NOTE", ":", "Serialize", "()", "does", "not", "in", "general", "reproduce", "the", "original", "blob", "if", "this", "object", "was", "loaded", "from", "one", "even", "if", "no",...
[ "func", "(", "m", "*", "Schema1", ")", "Serialize", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "// docker/distribution requires a signature even if the incoming data uses the nominally unsigned DockerV2Schema1MediaType.", "unsigned", ",", "err", ":=", "jso...
7,965
all-7966
[ "Log", "calls", "UI", ".", "Log", "to", "write", ".", "LogPrefix", "is", "used", "to", "prefix", "the", "message", "." ]
[ "func", "(", "ui", "*", "PrefixUI", ")", "Log", "(", "message", "string", ")", "{", "if", "ui", ".", "LogPrefix", "==", "\"", "\"", "{", "//Lets keep the space if they want one", "message", "=", "ui", ".", "LogPrefix", "+", "message", "\n", "}", "else", ...
7,966
all-7967
[ "AddMulti", "is", "a", "batch", "version", "of", "Add", ".", "appengine", ".", "MultiError", "may", "be", "returned", "." ]
[ "func", "AddMulti", "(", "c", "context", ".", "Context", ",", "item", "[", "]", "*", "Item", ")", "error", "{", "return", "<mask>", "(", "c", ",", "item", ",", "nil", ",", "pb", ".", "MemcacheSetRequest_ADD", ")", "\n", "}" ]
7,967
all-7968
[ "authEnableCommandFunc", "executes", "the", "auth", "enable", "command", "." ]
[ "func", "authEnableCommandFunc", "(", "cmd", "*", "cobra", ".", "Command", ",", "args", "[", "]", "string", ")", "{", "if", "len", "(", "args", ")", "!=", "0", "{", "ExitWithError", "(", "ExitBadArgs", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ")",...
7,968
all-7969
[ "SplitPortProto", "splits", "a", "string", "in", "the", "format", "port", "/", "protocol", "defaulting", "protocol", "to", "tcp", "if", "not", "provided", "." ]
[ "func", "SplitPortProto", "(", "raw", "string", ")", "(", "port", "string", ",", "protocol", "string", ")", "{", "parts", ":=", "strings", ".", "SplitN", "(", "raw", ",", "\"", "\"", ",", "2", ")", "\n", "if", "len", "(", "parts", ")", "==", "1", ...
7,969
all-7970
[ "Facilities", "returns", "the", "currently", "known", "set", "of", "facilities", "both", "those", "for", "which", "debug", "is", "enabled", "and", "those", "for", "which", "it", "is", "disabled", "." ]
[ "func", "(", "l", "*", "logger", ")", "Facilities", "(", ")", "(", "enabled", ",", "disabled", "[", "]", "string", ")", "{", "l", ".", "mut", ".", "Lock", "(", ")", "\n", "for", "facility", ",", "isEnabled", ":=", "range", "l", ".", "debug", "{",...
7,970
all-7971
[ "Tracef", "formats", "message", "according", "to", "format", "specifier", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelTrace", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "." ]
[ "func", "(", "l", "*", "slog", ")", "Tracef", "(", "format", "string", ",", "args", "...", "<mask>", "{", "}", ")", "{", "lvl", ":=", "l", ".", "Level", "(", ")", "\n", "if", "lvl", "<=", "LevelTrace", "{", "l", ".", "b", ".", "printf", "(", ...
7,971
all-7972
[ "SetSingleLineMode", "is", "a", "wrapper", "around", "gtk_label_set_single_line_mode", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "SetSingleLineMode", "(", "mode", "bool", ")", "{", "C", ".", "gtk_label_set_single_line_mode", "(", "v", ".", "native", "(", ")", ",", "gbool", "(", "mode", ")", ")", "\n", "}" ]
7,972
all-7973
[ "v2HandlersSetup", "adds", "all", "handlers", "in", "v2", "package", "to", "the", "mux", "router", "." ]
[ "func", "v2HandlersSetup", "(", "muxRouter", "*", "mux", ".", "Router", ",", "state", "dockerstate", ".", "TaskEngineState", ",", "ecsClient", "api", ".", "ECSClient", ",", "statsEngine", "stats", ".", "Engine", ",", "cluster", "string", ",", "credentialsManager...
7,973
all-7974
[ "PopupAtWidget", "()", "is", "a", "wrapper", "for", "gtk_menu_popup_at_widget", "()" ]
[ "func", "(", "v", "*", "Menu", ")", "PopupAtWidget", "(", "widget", "IWidget", ",", "widgetAnchor", "gdk", ".", "GdkGravity", ",", "menuAnchor", "gdk", ".", "GdkGravity", ",", "triggerEvent", "*", "gdk", ".", "<mask>", ")", "{", "e", ":=", "(", "*", "C...
7,974
all-7975
[ "KnownCreated", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockTaskResource", ")", "KnownCreated", "(", ")", "bool", "{", "<mask>", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ",", "\"", "\"", ")", "\n", "ret0", ",", "_", ":=", "ret", "[", "0", "]", ".", "(", "bool", ")", "...
7,975
all-7976
[ "WithGroup", "specifies", "the", "endpoint", "group", "to", "deliver", "the", "report", "to", "." ]
[ "func", "(", "p", "GenerateTestReportParams", ")", "WithGroup", "(", "<mask>", "string", ")", "*", "GenerateTestReportParams", "{", "p", ".", "Group", "=", "group", "\n", "return", "&", "p", "\n", "}" ]
7,976
all-7977
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetAutoAttachParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget2", "(", "&", "w", ",", "v", ")"...
7,977
all-7978
[ "In", "the", "V1", "protocol", "the", "intro", "fields", "are", "sent", "unencrypted", ".", "So", "we", "restrict", "them", "to", "an", "established", "subset", "of", "fields", "that", "are", "assumed", "to", "be", "safe", "." ]
[ "func", "filterV1Features", "(", "intro", "<mask>", "[", "string", "]", "string", ")", "map", "[", "string", "]", "string", "{", "safe", ":=", "make", "(", "map", "[", "string", "]", "string", ")", "\n", "for", "_", ",", "k", ":=", "range", "protocol...
7,978
all-7979
[ "getUint64", "extracts", "a", "uint64", "by", "the", "given", "key", "from", "a", "Form", ".", "If", "the", "key", "does", "not", "exist", "in", "the", "form", "0", "is", "returned", ".", "If", "the", "key", "exists", "but", "the", "value", "is", "ba...
[ "func", "getUint64", "(", "<mask>", "url", ".", "Values", ",", "key", "string", ")", "(", "i", "uint64", ",", "err", "error", ")", "{", "if", "vals", ",", "ok", ":=", "form", "[", "key", "]", ";", "ok", "{", "i", ",", "err", "=", "strconv", "."...
7,979
all-7980
[ "Return", "an", "expression", "evaluating", "if", "a", "filter", "should", "be", "used", "(", "based", "on", "active", "criteria", ")", "." ]
[ "func", "activeCriteria", "(", "<mask>", "[", "]", "string", ")", "string", "{", "expr", ":=", "\"", "\"", "\n", "for", "i", ",", "name", ":=", "range", "filter", "{", "if", "i", ">", "0", "{", "expr", "+=", "\"", "\"", "\n", "}", "\n", "expr", ...
7,980
all-7981
[ "PangoLayout", "*", "pango_layout_copy", "(", "PangoLayout", "*", "src", ")", ";" ]
[ "func", "(", "v", "*", "Layout", ")", "Copy", "(", ")", "*", "Layout", "{", "c", ":=", "C", ".", "pango_layout_copy", "(", "v", ".", "native", "(", ")", ")", "\n\n", "layout", ":=", "new", "(", "Layout", ")", "\n", "layout", ".", "pangoLayout", "...
7,981
all-7982
[ "updateDVSConfiguration", "contains", "the", "atomic", "update", "/", "wait", "operation", "for", "a", "DVS", "." ]
[ "func", "updateDVSConfiguration", "(", "client", "*", "govmomi", ".", "Client", ",", "dvs", "*", "object", ".", "VmwareDistributedVirtualSwitch", ",", "spec", "*", "types", ".", "VMwareDVSConfigSpec", ")", "error", "{", "ctx", ",", "cancel", ":=", "context", "...
7,982
all-7983
[ "Call", "SOAP", "client", "API", "call" ]
[ "func", "(", "s", "*", "Client", ")", "Call", "(", "soapAction", "string", ",", "request", ",", "<mask>", ",", "header", "interface", "{", "}", ")", "error", "{", "var", "envelope", "Envelope", "\n", "if", "s", ".", "header", "!=", "nil", "{", "envel...
7,983
all-7984
[ "GenCert", "will", "create", "and", "populate", "a", "certificate", "file", "and", "a", "key", "file" ]
[ "func", "GenCert", "(", "certf", "string", ",", "keyf", "string", ",", "certtype", "bool", ")", "error", "{", "/* Create the basenames if needed */", "dir", ":=", "path", ".", "Dir", "(", "certf", ")", "\n", "err", ":=", "os", ".", "MkdirAll", "(", "dir", ...
7,984
all-7985
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetSamplingIntervalParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoProfiler13", "(", "&", "w", ",", "...
7,985
all-7986
[ "Write", "writes", "val", "to", "r", "." ]
[ "func", "(", "r", "*", "readWriter", ")", "Write", "(", "val", "proto", ".", "<mask>", ")", "(", "int64", ",", "error", ")", "{", "bytes", ",", "err", ":=", "proto", ".", "Marshal", "(", "val", ")", "\n", "if", "err", "!=", "nil", "{", "return", ...
7,986
all-7987
[ "StoragePoolConfigGet", "returns", "the", "config", "of", "a", "storage", "pool", "." ]
[ "func", "(", "c", "*", "Cluster", ")", "StoragePoolConfigGet", "(", "poolID", "int64", ")", "(", "map", "[", "string", "]", "string", ",", "error", ")", "{", "var", "key", ",", "value", "string", "\n", "query", ":=", "\"", "\"", "\n", "inargs", ":=",...
7,987
all-7988
[ "WaitForStdin", "blocks", "until", "input", "is", "available", "from", "os", ".", "Stdin", ".", "The", "first", "byte", "from", "os", ".", "Stdin", "is", "returned", "as", "result", ".", "If", "there", "are", "println", "arguments", "then", "fmt", ".", "...
[ "func", "WaitForStdin", "(", "println", "...", "interface", "{", "}", ")", "byte", "{", "if", "len", "(", "println", ")", ">", "0", "{", "fmt", ".", "Println", "(", "println", "...", ")", "\n", "}", "\n", "buffer", ":=", "make", "(", "[", "]", "b...
7,988
all-7989
[ "removeExchange", "removes", "a", "message", "exchange", "from", "the", "set", "if", "it", "exists", "." ]
[ "func", "(", "mexset", "*", "messageExchangeSet", ")", "removeExchange", "(", "msgID", "uint32", ")", "{", "if", "mexset", ".", "log", ".", "Enabled", "(", "LogLevelDebug", ")", "{", "mexset", ".", "log", ".", "Debugf", "(", "\"", "\"", ",", "mexset", ...
7,989
all-7990
[ "SelectMany", "allows", "for", "flattening", "of", "data", "structures", "." ]
[ "func", "(", "iter", "Enumerator", ")", "SelectMany", "(", "lister", "Unfolder", ")", "Enumerator", "{", "retval", ":=", "<mask>", "(", "chan", "interface", "{", "}", ")", "\n\n", "go", "func", "(", ")", "{", "for", "parent", ":=", "range", "iter", "{"...
7,990
all-7991
[ "ServeFile", "returns", "HTTP", "response", "containing", "compressed", "file", "contents", "from", "the", "given", "path", ".", "HTTP", "response", "may", "contain", "uncompressed", "file", "contents", "in", "the", "following", "cases", ":", "*", "Missing", "Ac...
[ "func", "ServeFile", "(", "ctx", "*", "RequestCtx", ",", "path", "string", ")", "{", "rootFSOnce", ".", "Do", "(", "func", "(", ")", "{", "rootFSHandler", "=", "rootFS", ".", "NewRequestHandler", "(", ")", "\n", "}", ")", "\n", "if", "len", "(", "pat...
7,991
all-7992
[ "Expect", "a", "node", "." ]
[ "func", "yaml_emitter_emit_node", "(", "emitter", "*", "yaml_emitter_t", ",", "event", "*", "yaml_event_t", ",", "root", "bool", ",", "sequence", "bool", ",", "mapping", "bool", ",", "simple_key", "bool", ")", "bool", "{", "emitter", ".", "root_context", "=", ...
7,992
all-7993
[ "NewPresubmit", "converts", "a", "config", ".", "Presubmit", "into", "a", "prowapi", ".", "ProwJob", ".", "The", "prowapi", ".", "Refs", "are", "configured", "correctly", "per", "the", "pr", "baseSHA", ".", "The", "eventGUID", "becomes", "a", "github", ".", ...
[ "func", "NewPresubmit", "(", "pr", "github", ".", "PullRequest", ",", "baseSHA", "string", ",", "job", "config", ".", "Presubmit", ",", "eventGUID", "string", ")", "prowapi", ".", "ProwJob", "{", "refs", ":=", "createRefs", "(", "pr", ",", "baseSHA", ")", ...
7,993
all-7994
[ "RunFile", "parses", "and", "runs", "the", "specified", "file", "(", "s", ")", "." ]
[ "func", "(", "r", "*", "<mask>", ")", "RunFile", "(", "filenames", "...", "string", ")", "{", "groups", ",", "err", ":=", "parse", ".", "ParseFile", "(", "filenames", "...", ")", "\n", "if", "err", "!=", "nil", "{", "r", ".", "log", "(", "err", "...
7,994
all-7995
[ "WritePluginResultsToDatabase", "upserts", "plugin", "results", "into", "Database" ]
[ "func", "WritePluginResultsToDatabase", "(", "results", "map", "[", "string", "]", "interface", "{", "}", ")", "{", "// connect to RethinkDB", "session", ",", "err", ":=", "r", ".", "Connect", "(", "r", ".", "ConnectOpts", "{", "Address", ":", "fmt", ".", ...
7,995
all-7996
[ "SendResponse", "sends", "resp", "to", "the", "peer", ".", "It", "is", "lower", "level", "than", "(", "*", "Conn", ")", ".", "Reply", "." ]
[ "func", "(", "c", "*", "Conn", ")", "SendResponse", "(", "ctx", "context", ".", "Context", ",", "resp", "*", "<mask>", ")", "error", "{", "_", ",", "err", ":=", "c", ".", "send", "(", "ctx", ",", "&", "anyMessage", "{", "response", ":", "resp", "...
7,996
all-7997
[ "PolicyConfigurationNamespaces", "returns", "a", "list", "of", "other", "policy", "configuration", "namespaces", "to", "search", "for", "if", "explicit", "configuration", "for", "PolicyConfigurationIdentity", "()", "is", "not", "set", ".", "The", "list", "will", "be...
[ "func", "(", "ref", "daemonReference", ")", "PolicyConfigurationNamespaces", "(", ")", "[", "]", "string", "{", "// See the explanation in daemonReference.PolicyConfigurationIdentity.", "switch", "{", "case", "ref", ".", "id", "!=", "\"", "\"", ":", "return", "[", "...
7,997
all-7998
[ "The", "handler", "for", "the", "post", "operation", "." ]
[ "func", "profilePost", "(", "d", "*", "Daemon", ",", "r", "*", "http", ".", "Request", ")", "Response", "{", "project", ":=", "projectParam", "(", "r", ")", "\n", "name", ":=", "mux", ".", "Vars", "(", "r", ")", "[", "\"", "\"", "]", "\n\n", "if"...
7,998
all-7999
[ "CreatePullRequest", "creates", "a", "new", "pull", "request", "and", "returns", "its", "number", "if", "the", "creation", "is", "successful", "otherwise", "any", "error", "that", "is", "encountered", ".", "See", "https", ":", "//", "developer", ".", "github",...
[ "func", "(", "c", "*", "Client", ")", "CreatePullRequest", "(", "org", ",", "repo", ",", "<mask>", ",", "body", ",", "head", ",", "base", "string", ",", "canModify", "bool", ")", "(", "int", ",", "error", ")", "{", "c", ".", "log", "(", "\"", "\"...
7,999
all-8000
[ "Encode", "writes", "the", "Image", "m", "to", "w", "in", "PNG", "format", "." ]
[ "func", "(", "enc", "*", "Encoder", ")", "Encode", "(", "w", "io", ".", "Writer", ",", "m", "image", ".", "Image", ")", "error", "{", "// Obviously, negative widths and heights are invalid. Furthermore, the PNG", "// spec section 11.2.2 says that zero is invalid. Excessivel...