id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
6,000
all-6001
[ "DeleteOutlierReportByCID", "deletes", "outlier", "report", "with", "passed", "cid", "." ]
[ "func", "(", "a", "*", "API", ")", "DeleteOutlierReportByCID", "(", "cid", "CIDType", ")", "(", "bool", ",", "error", ")", "{", "if", "cid", "==", "nil", "||", "*", "cid", "==", "\"", "\"", "{", "return", "false", ",", "fmt", ".", "Errorf", "(", ...
6,001
all-6002
[ "IsSameArray", "returns", "true", "if", "the", "slices", "are", "the", "same", "length", "and", "the", "array", "underlying", "the", "two", "slices", "is", "the", "same", ".", "Always", "returns", "false", "for", "empty", "arrays", "." ]
[ "func", "isSameArray", "(", "val1", ",", "val2", "[", "]", "byte", ")", "bool", "{", "if", "len", "(", "val1", ")", "==", "len", "(", "val2", ")", "&&", "len", "(", "val1", ")", ">", "0", "{", "return", "&", "val1", "[", "0", "]", "==", "&", ...
6,002
all-6003
[ "MakeFakeRepo", "creates", "the", "given", "repo", "and", "makes", "an", "initial", "commit", "." ]
[ "func", "(", "lg", "*", "LocalGit", ")", "MakeFakeRepo", "(", "org", ",", "repo", "string", ")", "error", "{", "rdir", ":=", "filepath", ".", "Join", "(", "lg", ".", "Dir", ",", "org", ",", "repo", ")", "\n", "if", "err", ":=", "os", ".", "MkdirA...
6,003
all-6004
[ "NewMember", "creates", "a", "Member", "without", "an", "ID", "and", "generates", "one", "based", "on", "the", "cluster", "name", "peer", "URLs", "and", "time", ".", "This", "is", "used", "for", "bootstrapping", "/", "adding", "new", "member", "." ]
[ "func", "NewMember", "(", "<mask>", "string", ",", "peerURLs", "types", ".", "URLs", ",", "clusterName", "string", ",", "now", "*", "time", ".", "Time", ")", "*", "Member", "{", "m", ":=", "&", "Member", "{", "RaftAttributes", ":", "RaftAttributes", "{",...
6,004
all-6005
[ "Pick", "an", "address", "to", "connect", "to", "with", "new", "/", "old", "bias", "." ]
[ "func", "(", "a", "*", "AddrBook", ")", "PickAddress", "(", "newBias", "int", ")", "*", "NetAddress", "{", "a", ".", "mtx", ".", "Lock", "(", ")", "\n", "defer", "a", ".", "mtx", ".", "Unlock", "(", ")", "\n\n", "if", "a", ".", "size", "(", ")"...
6,005
all-6006
[ "determine", "if", "a", "name", "corresponds", "to", "a", "display", "list" ]
[ "func", "IsList", "(", "list", "uint32", ")", "bool", "{", "<mask>", ":=", "C", ".", "glowIsList", "(", "gpIsList", ",", "(", "C", ".", "GLuint", ")", "(", "list", ")", ")", "\n", "return", "ret", "==", "TRUE", "\n", "}" ]
6,006
all-6007
[ "HasId", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "b", "*", "BoardWidget", ")", "HasId", "(", ")", "bool", "{", "if", "b", "!=", "nil", "&&", "b", ".", "Id", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
6,007
all-6008
[ "NewTemplate", "parses", "the", "given", "template", "using", "the", "given", "startTag", "and", "endTag", "as", "tag", "start", "and", "tag", "end", ".", "The", "returned", "template", "can", "be", "executed", "by", "concurrently", "running", "goroutines", "u...
[ "func", "NewTemplate", "(", "<mask>", ",", "startTag", ",", "endTag", "string", ")", "(", "*", "Template", ",", "error", ")", "{", "var", "t", "Template", "\n", "err", ":=", "t", ".", "Reset", "(", "template", ",", "startTag", ",", "endTag", ")", "\n...
6,008
all-6009
[ "NewElection", "returns", "a", "new", "election", "on", "a", "given", "key", "prefix", "." ]
[ "func", "NewElection", "(", "s", "*", "Session", ",", "pfx", "string", ")", "*", "Election", "{", "return", "&", "Election", "{", "<mask>", ":", "s", ",", "keyPrefix", ":", "pfx", "+", "\"", "\"", "}", "\n", "}" ]
6,009
all-6010
[ "Remove", "an", "item", "from", "the", "nodetable" ]
[ "func", "(", "nt", "*", "NodeTable", ")", "Remove", "(", "key", "[", "]", "byte", ")", "(", "success", "bool", ",", "nptr", "unsafe", ".", "Pointer", ")", "{", "res", ":=", "nt", ".", "find", "(", "key", ")", "\n", "if", "res", ".", "status", "...
6,010
all-6011
[ "expandLinkDiscoveryProtocolConfig", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "LinkDiscoveryProtocolConfig", "." ]
[ "func", "expandLinkDiscoveryProtocolConfig", "(", "d", "*", "schema", ".", "ResourceData", ")", "*", "<mask>", ".", "LinkDiscoveryProtocolConfig", "{", "obj", ":=", "&", "types", ".", "LinkDiscoveryProtocolConfig", "{", "Operation", ":", "d", ".", "Get", "(", "\...
6,011
all-6012
[ "PutManifest", "writes", "manifest", "to", "the", "destination", ".", "FIXME?", "This", "should", "also", "receive", "a", "MIME", "type", "if", "known", "to", "differentiate", "between", "schema", "versions", ".", "If", "the", "destination", "is", "in", "princ...
[ "func", "(", "d", "*", "dirImageDestination", ")", "PutManifest", "(", "ctx", "<mask>", ".", "Context", ",", "manifest", "[", "]", "byte", ")", "error", "{", "return", "ioutil", ".", "WriteFile", "(", "d", ".", "ref", ".", "manifestPath", "(", ")", ","...
6,012
all-6013
[ "GetCustomFgColor", "returns", "the", "CustomFgColor", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "d", "*", "DashboardConditionalFormat", ")", "GetCustomFgColor", "(", ")", "string", "{", "if", "d", "==", "nil", "||", "d", ".", "CustomFgColor", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "<mask>", "*", "d", ".", "CustomFgC...
6,013
all-6014
[ "loadConfig", "loads", "user", "configuration", ".", "It", "has", "to", "be", "loaded", "before", "of", "edit", "some", "file", "." ]
[ "func", "loadConfig", "(", ")", "{", "config", ".", "Do", "(", "func", "(", ")", "{", "//checkRoot()", "if", "err", ":=", "config", ".", "init", "(", ")", ";", "<mask>", "!=", "nil", "{", "panic", "(", "err", ")", "\n", "}", "\n", "}", ")", "\n...
6,014
all-6015
[ "Restore", "is", "used", "to", "manually", "force", "Raft", "to", "consume", "an", "external", "snapshot", "such", "as", "if", "restoring", "from", "a", "backup", ".", "We", "will", "use", "the", "current", "Raft", "configuration", "not", "the", "one", "fr...
[ "func", "(", "r", "*", "Raft", ")", "Restore", "(", "meta", "*", "SnapshotMeta", ",", "reader", "io", ".", "Reader", ",", "timeout", "time", ".", "Duration", ")", "error", "{", "metrics", ".", "IncrCounter", "(", "[", "]", "string", "{", "\"", "\"", ...
6,015
all-6016
[ "OpenFile", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockOS", ")", "OpenFile", "(", "arg0", "string", ",", "arg1", "int", ",", "arg2", "os", ".", "FileMode", ")", "(", "oswrapper", ".", "File", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", "...
6,016
all-6017
[ "newEWMARate", "always", "allocates", "a", "new", "ewmaRate", "as", "this", "guarantees", "the", "atomically", "accessed", "int64", "will", "be", "aligned", "on", "ARM", ".", "See", "prometheus#2666", "." ]
[ "func", "newEWMARate", "(", "<mask>", "float64", ",", "interval", "time", ".", "Duration", ")", "*", "ewmaRate", "{", "return", "&", "ewmaRate", "{", "alpha", ":", "alpha", ",", "interval", ":", "interval", ",", "}", "\n", "}" ]
6,017
all-6018
[ "native", "returns", "a", "pointer", "to", "the", "underlying", "GtkAlignment", "." ]
[ "func", "(", "v", "*", "Alignment", ")", "native", "(", ")", "*", "C", ".", "GtkAlignment", "{", "if", "v", "==", "nil", "||", "v", ".", "GObject", "==", "nil", "{", "<mask>", "nil", "\n", "}", "\n", "p", ":=", "unsafe", ".", "Pointer", "(", "v...
6,018
all-6019
[ "UnmarshalEasyJSON", "satisfies", "easyjson", ".", "Unmarshaler", "." ]
[ "func", "(", "t", "*", "GetEncodedResponseEncoding", ")", "UnmarshalEasyJSON", "(", "in", "*", "jlexer", ".", "Lexer", ")", "{", "switch", "GetEncodedResponseEncoding", "(", "in", ".", "String", "(", ")", ")", "{", "case", "GetEncodedResponseEncodingWebp", ":", ...
6,019
all-6020
[ "getSelinuxMountPoint", "returns", "the", "path", "to", "the", "mountpoint", "of", "an", "selinuxfs", "filesystem", "or", "an", "empty", "string", "if", "no", "mountpoint", "is", "found", ".", "Selinuxfs", "is", "a", "proc", "-", "like", "pseudo", "-", "file...
[ "func", "getSelinuxMountPoint", "(", ")", "string", "{", "if", "selinuxfs", "!=", "\"", "\"", "{", "return", "selinuxfs", "\n", "}", "\n", "selinuxfs", "=", "\"", "\"", "\n\n", "mounts", ",", "err", ":=", "mount", ".", "GetMounts", "(", ")", "\n", "if"...
6,020
all-6021
[ "New", "returns", "a", "new", "service", "-", "ready", "handler", "given", "an", "application", "handler", ".", "This", "stack", "application", "-", "level", "metrics", "debug", "endpoints", "panic", "recovery", "and", "request", "logging", "in", "that", "orde...
[ "func", "New", "(", "h", "http", ".", "<mask>", ",", "onPanic", "recovery", ".", "PanicHandler", ")", "Service", "{", "l", ":=", "logging", ".", "Wrap", "(", "recovery", ".", "Wrap", "(", "debug", ".", "Wrap", "(", "metrics", ".", "Wrap", "(", "h", ...
6,021
all-6022
[ "Return", "a", "string", "representation", "of", "a", "TimerGroup", "." ]
[ "func", "(", "t", "*", "TimerGroup", ")", "String", "(", ")", "string", "{", "timers", ":=", "byCreationTimeSorter", "{", "}", "\n", "for", "_", ",", "timer", ":=", "range", "t", ".", "timers", "{", "timers", ".", "Timers", "=", "append", "(", "timer...
6,022
all-6023
[ "Successf", "outputs", "formatted", "Success", "level", "log" ]
[ "func", "Successf", "(", "format", "string", ",", "val", "...", "<mask>", "{", "}", ")", "error", "{", "return", "glg", ".", "out", "(", "OK", ",", "format", ",", "val", "...", ")", "\n", "}" ]
6,023
all-6024
[ "Namespace", "returns", "a", "replacement", "context", "that", "operates", "within", "the", "given", "namespace", "." ]
[ "func", "Namespace", "(", "c", "context", ".", "Context", ",", "namespace", "string", ")", "(", "context", ".", "<mask>", ",", "error", ")", "{", "if", "!", "validNamespace", ".", "MatchString", "(", "namespace", ")", "{", "return", "nil", ",", "fmt", ...
6,024
all-6025
[ "ReplaceF", "is", "the", "filter", "form", "of", "strings", ".", "Replace", "." ]
[ "func", "ReplaceF", "(", "<mask>", ",", "new", "string", ",", "n", "int", ")", "func", "(", "string", ")", "string", "{", "return", "func", "(", "s", "string", ")", "string", "{", "return", "strings", ".", "Replace", "(", "s", ",", "old", ",", "new...
6,025
all-6026
[ "SetByteRange", "sets", "Range", ":", "bytes", "=", "startPos", "-", "endPos", "header", ".", "*", "If", "startPos", "is", "negative", "then", "bytes", "=", "-", "startPos", "value", "is", "set", ".", "*", "If", "endPos", "is", "negative", "then", "bytes...
[ "func", "(", "h", "*", "RequestHeader", ")", "SetByteRange", "(", "startPos", ",", "endPos", "int", ")", "{", "h", ".", "parseRawHeaders", "(", ")", "\n\n", "b", ":=", "h", ".", "bufKV", ".", "<mask>", "[", ":", "0", "]", "\n", "b", "=", "append", ...
6,026
all-6027
[ "connect", "using", "the", "provided", "transport", "and", "block", "until", "connection", "is", "ready" ]
[ "func", "(", "c", "*", "conn", ")", "connect", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "error", "{", "//choose transport", "if", "r", ".", "Header", ".", "Get", "(", "\"", "\"", ")", "==", "\"", "\"", ...
6,027
all-6028
[ "/", "*", "Creates", "a", "evaluationStageList", "object", "which", "represents", "an", "execution", "plan", "(", "or", "tree", ")", "which", "is", "used", "to", "completely", "evaluate", "a", "set", "of", "tokens", "at", "evaluation", "-", "time", ".", "T...
[ "func", "planStages", "(", "tokens", "[", "]", "ExpressionToken", ")", "(", "*", "evaluationStage", ",", "error", ")", "{", "<mask>", ":=", "newTokenStream", "(", "tokens", ")", "\n\n", "stage", ",", "err", ":=", "planTokens", "(", "stream", ")", "\n", "...
6,028
all-6029
[ "GetVersionJSON", "returns", "Kubicorn", "version", "in", "JSON", "format", "." ]
[ "func", "GetVersionJSON", "(", ")", "<mask>", "{", "verBytes", ",", "err", ":=", "json", ".", "Marshal", "(", "GetVersion", "(", ")", ")", "\n", "if", "err", "!=", "nil", "{", "logger", ".", "Critical", "(", "\"", "\"", ",", "err", ")", "\n", "}", ...
6,029
all-6030
[ "ArgString", "returns", "the", "string", "representatin", "of", "the", "argument" ]
[ "func", "(", "o", "op", ")", "ArgString", "(", ")", "string", "{", "// In most cases we do this because it's a sring", "if", "v", ",", "ok", ":=", "o", ".", "uArg", ".", "(", "string", ")", ";", "<mask>", "{", "return", "v", "\n", "}", "\n", "return", ...
6,030
all-6031
[ "GetScaleOk", "returns", "a", "tuple", "with", "the", "Scale", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "WidgetAxis", ")", "GetScaleOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "w", "==", "nil", "||", "w", ".", "Scale", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", "*", "w", ...
6,031
all-6032
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventAccepted", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoTethering1", "(", "&", "r...
6,032
all-6033
[ "executeRequest", "takes", "a", "prepared", "http", ".", "Request", "and", "returns", "the", "body", "of", "the", "response", "If", "the", "response", "is", "not", "of", "HTTP", "Code", "200", "an", "error", "is", "returned" ]
[ "func", "(", "r", "rpc", ")", "executeRequest", "(", "req", "*", "http", ".", "Request", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "resp", ",", "err", ":=", "r", ".", "auth", ".", "getClient", "(", ")", ".", "Do", "(", "req", ")", "...
6,033
all-6034
[ "BroadcastAll", "returns", "the", "set", "of", "peer", "names", "that", "should", "be", "notified", "when", "we", "receive", "a", "broadcast", "message", "originating", "from", "the", "named", "peer", "based", "on", "all", "connections", "." ]
[ "func", "(", "r", "*", "routes", ")", "BroadcastAll", "(", "name", "PeerName", ")", "[", "]", "PeerName", "{", "return", "r", ".", "lookupOrCalculate", "(", "<mask>", ",", "&", "r", ".", "broadcastAll", ",", "false", ")", "\n", "}" ]
6,034
all-6035
[ "title", ":", "move", "containers", "path", ":", "/", "docker", "/", "containers", "/", "move", "method", ":", "POST", "consume", ":", "application", "/", "x", "-", "www", "-", "form", "-", "urlencoded", "produce", ":", "application", "/", "x", "-", "j...
[ "func", "moveContainersHandler", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "params", ":=", "map", "[", "string", "]", "string", "{", "}", "\n", ...
6,035
all-6036
[ "SetDeadline", "set", "the", "read", "/", "write", "deadlines", "for", "the", "connection", "in", "seconds", ".", "Default", "value", "for", "read", "/", "write", "deadline", "is", "300", "seconds", "." ]
[ "func", "(", "c", "*", "Conn", ")", "SetDeadline", "(", "<mask>", "int", ")", "{", "c", ".", "deadline", "=", "time", ".", "Second", "*", "time", ".", "Duration", "(", "seconds", ")", "\n", "}" ]
6,036
all-6037
[ "Next", "returns", "the", "next", "page", "of", "resources", ".", "If", "there", "are", "no", "more", "resources", "NoMoreResults", "is", "returned", "." ]
[ "func", "(", "c", "*", "AccountPageIterator", ")", "Next", "(", "ctx", "<mask>", ".", "Context", ")", "(", "*", "AccountPage", ",", "error", ")", "{", "cp", ":=", "new", "(", "AccountPage", ")", "\n", "err", ":=", "c", ".", "p", ".", "Next", "(", ...
6,037
all-6038
[ "Locator", "returns", "a", "locator", "for", "the", "given", "resource" ]
[ "func", "(", "r", "*", "Cookbook", ")", "Locator", "(", "api", "*", "API", ")", "*", "CookbookLocator", "{", "for", "_", ",", "l", ":=", "<mask>", "r", ".", "Links", "{", "if", "l", "[", "\"", "\"", "]", "==", "\"", "\"", "{", "return", "api", ...
6,038
all-6039
[ "Center", "returns", "the", "center", "of", "the", "box", "." ]
[ "func", "(", "b", "Box", ")", "Center", "(", ")", "(", "lat", ",", "lng", "float64", ")", "{", "<mask>", "=", "(", "b", ".", "MinLat", "+", "b", ".", "MaxLat", ")", "/", "2.0", "\n", "lng", "=", "(", "b", ".", "MinLng", "+", "b", ".", "MaxL...
6,039
all-6040
[ "CombinedOutput", "runs", "the", "command", "and", "returns", "its", "combined", "standard", "output", "and", "standard", "error", "." ]
[ "func", "(", "c", "*", "Cmd", ")", "CombinedOutput", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "if", "c", ".", "Stdout", "!=", "nil", "{", "return", "nil", ",", "errors", ".", "New", "(", "\"", "\"", ")", "\n", "}", "\n", "if",...
6,040
all-6041
[ "SetCurrentName", "is", "a", "wrapper", "around", "gtk_file_chooser_set_current_name", "()", "." ]
[ "func", "(", "v", "*", "FileChooser", ")", "SetCurrentName", "(", "<mask>", "string", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "name", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "\n", "C", ...
6,041
all-6042
[ "zfsPoolVolumeExists", "verifies", "if", "a", "specific", "ZFS", "pool", "or", "volume", "exists", "." ]
[ "func", "zfsPoolVolumeExists", "(", "dataset", "string", ")", "(", "bool", ",", "error", ")", "{", "<mask>", ",", "err", ":=", "shared", ".", "RunCommand", "(", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ")", "\n\n", "if", "err"...
6,042
all-6043
[ "toJSONPretty", "converts", "the", "given", "structure", "into", "a", "deeply", "nested", "pretty", "JSON", "string", "." ]
[ "func", "toJSONPretty", "(", "m", "<mask>", "[", "string", "]", "interface", "{", "}", ")", "(", "string", ",", "error", ")", "{", "result", ",", "err", ":=", "json", ".", "MarshalIndent", "(", "m", ",", "\"", "\"", ",", "\"", "\"", ")", "\n", "i...
6,043
all-6044
[ "Generate", "plumbing", "and", "wiring", "code", "for", "the", "desired", "statement", "." ]
[ "func", "(", "s", "*", "Stmt", ")", "Generate", "(", "buf", "*", "file", ".", "Buffer", ")", "error", "{", "if", "strings", ".", "HasPrefix", "(", "s", ".", "kind", ",", "\"", "\"", ")", "{", "return", "s", ".", "objects", "(", "buf", ")", "\n"...
6,044
all-6045
[ "FetchWorksheet", "retrieves", "worksheet", "with", "passed", "cid", "." ]
[ "func", "(", "a", "*", "API", ")", "FetchWorksheet", "(", "cid", "CIDType", ")", "(", "*", "Worksheet", ",", "error", ")", "{", "if", "cid", "==", "nil", "||", "*", "cid", "==", "\"", "\"", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(", ...
6,045
all-6046
[ "Handle", "satisfies", "hookhandler", "." ]
[ "func", "(", "g", "GenericHook", ")", "Handle", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "repo", "*", "Repo", ")", "(", "int", ",", "error", ")", "{", "if", "r", ".", "Method", "!=", "\"", "\"", "{", ...
6,046
all-6047
[ "NewReaderPool", "creates", "a", "pool", "that", "ensures", "the", "writers", "it", "wraps", "will", "respect", "an", "overall", "maxRate", "with", "maxBurst", "resolution", ".", "The", "semantics", "of", "the", "wrapped", "writers", "are", "the", "same", "as"...
[ "func", "NewReaderPool", "(", "maxRate", "int", ",", "maxBurst", "time", ".", "Duration", ")", "*", "ReaderPool", "{", "return", "&", "ReaderPool", "{", "maxRate", ":", "maxRate", ",", "maxBurst", ":", "maxBurst", ",", "givenOut", ":", "<mask>", "(", "map"...
6,047
all-6048
[ "GetExpand", "()", "is", "a", "wrapper", "around", "gtk_tree_view_column_get_expand", "()", "." ]
[ "func", "(", "v", "*", "TreeViewColumn", ")", "GetExpand", "(", ")", "bool", "{", "c", ":=", "C", ".", "gtk_tree_view_column_get_expand", "(", "v", ".", "native", "(", ")", ")", "\n", "<mask>", "gobool", "(", "c", ")", "\n", "}" ]
6,048
all-6049
[ "Disconnect", "disconnects", "the", "connection" ]
[ "func", "(", "cs", "*", "ClientServerImpl", ")", "Disconnect", "(", "...", "interface", "{", "}", ")", "error", "{", "cs", ".", "writeLock", ".", "Lock", "(", ")", "\n", "defer", "<mask>", ".", "writeLock", ".", "Unlock", "(", ")", "\n\n", "if", "cs"...
6,049
all-6050
[ "GetMetricQuery", "returns", "the", "MetricQuery", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "t", "*", "TimeseriesRequest", ")", "GetMetricQuery", "(", ")", "<mask>", "{", "if", "t", "==", "nil", "||", "t", ".", "MetricQuery", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "t", ".", "MetricQuery", "\n", ...
6,050
all-6051
[ "ConnChange", "subscribes", "to", "changes", "for", "adapter", "connection", "changes", "." ]
[ "func", "(", "h", "*", "Handler", ")", "ConnChange", "(", "ctx", "context", ".", "Context", ",", "product", ",", "productPassword", "string", ")", "(", "*", "rpc", ".", "Subscription", ",", "error", ")", "{", "logger", ":=", "h", ".", "logger", ".", ...
6,051
all-6052
[ "Field", "creates", "a", "Field", "struct", "with", "the", "specified", "name", "and", "defaults", "." ]
[ "func", "(", "idx", "*", "<mask>", ")", "Field", "(", "name", "string", ",", "options", "...", "FieldOption", ")", "*", "Field", "{", "if", "field", ",", "ok", ":=", "idx", ".", "fields", "[", "name", "]", ";", "ok", "{", "return", "field", "\n", ...
6,052
all-6053
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetCurrentTimeParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoAnimation12", "(", "&", "w", ",", "v", ...
6,053
all-6054
[ "UnmarshalText", "hydrates", "this", "instance", "from", "text" ]
[ "func", "(", "u", "*", "ISBN13", ")", "UnmarshalText", "(", "data", "[", "]", "<mask>", ")", "error", "{", "// validation is performed later on", "*", "u", "=", "ISBN13", "(", "string", "(", "data", ")", ")", "\n", "return", "nil", "\n", "}" ]
6,054
all-6055
[ "PanicHunter", "catches", "panic", "in", "case", "of", "an", "enabled", "reporter", "." ]
[ "func", "PanicHunter", "(", ")", "{", "if", "panicIgnore", "{", "return", "\n", "}", "\n\n", "if", "err", ":=", "recover", "(", ")", ";", "err", "!=", "nil", "{", "if", "enable", "&&", "notifier", "!=", "nil", "{", "notifier", ".", "NotifySync", "(",...
6,055
all-6056
[ "ClearRect", "fills", "the", "current", "canvas", "with", "a", "default", "transparent", "color", "at", "the", "specified", "rectangle" ]
[ "func", "(", "gc", "*", "GraphicContext", ")", "ClearRect", "(", "x1", ",", "y1", ",", "x2", ",", "y2", "int", ")", "{", "imageColor", ":=", "<mask>", ".", "NewUniform", "(", "gc", ".", "Current", ".", "FillColor", ")", "\n", "draw", ".", "Draw", "...
6,056
all-6057
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "DeleteDatabaseParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoIndexeddb16", "(", "&", "w", ",", "v", ...
6,057
all-6058
[ "GetAgentChannels", "gets", "channels", "for", "agent", "." ]
[ "func", "(", "h", "*", "Handler", ")", "GetAgentChannels", "(", "tkn", "string", ",", "channelStatus", ",", "serviceStatus", "[", "]", "string", ",", "offset", ",", "limit", "uint", ")", "(", "*", "GetAgentChannelsResult", ",", "error", ")", "{", "logger",...
6,058
all-6059
[ "Client", "returns", "a", "new", "client", "for", "accessing", "VMWare", "vSphere", "." ]
[ "func", "(", "c", "*", "Config", ")", "Client", "(", ")", "(", "*", "VSphereClient", ",", "error", ")", "{", "client", ":=", "new", "(", "VSphereClient", ")", "\n\n", "u", ",", "err", ":=", "c", ".", "vimURL", "(", ")", "\n", "if", "err", "!=", ...
6,059
all-6060
[ "OCIConfig", "returns", "the", "image", "configuration", "as", "per", "OCI", "v1", "image", "-", "spec", ".", "Information", "about", "layers", "in", "the", "resulting", "configuration", "isn", "t", "guaranteed", "to", "be", "returned", "to", "due", "how", "...
[ "func", "(", "m", "*", "manifestSchema1", ")", "OCIConfig", "(", "ctx", "<mask>", ".", "Context", ")", "(", "*", "imgspecv1", ".", "Image", ",", "error", ")", "{", "v2s2", ",", "err", ":=", "m", ".", "convertToManifestSchema2", "(", "nil", ",", "nil", ...
6,060
all-6061
[ "SetWMClass", "is", "a", "wrapper", "around", "gtk_window_set_wmclass", "()", "." ]
[ "func", "(", "v", "*", "Window", ")", "SetWMClass", "(", "name", ",", "<mask>", "string", ")", "{", "cName", ":=", "C", ".", "CString", "(", "name", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "(", "cName", ")", ")", "\n"...
6,061
all-6062
[ "WriteTo", "writes", "data", "to", "w", "." ]
[ "func", "(", "e", "*", "helperMethodConditionalComment", ")", "WriteTo", "(", "w", "io", ".", "Writer", ")", "(", "int64", ",", "error", ")", "{", "var", "bf", "bytes", ".", "<mask>", "\n\n", "// Write an open tag.", "bf", ".", "WriteString", "(", "e", "...
6,062
all-6063
[ "Cleanup", "all", "of", "the", "generated", "files" ]
[ "func", "Cleanup", "(", "opts", "*", "Options", ")", "genny", ".", "RunFn", "{", "return", "func", "(", "r", "*", "genny", ".", "Runner", ")", "error", "{", "defer", "os", ".", "RemoveAll", "(", "filepath", ".", "Join", "(", "opts", ".", "Root", ",...
6,063
all-6064
[ "Insert", "adds", "an", "item", "into", "the", "skiplist" ]
[ "func", "(", "s", "*", "Skiplist", ")", "Insert", "(", "itm", "unsafe", ".", "Pointer", ",", "cmp", "CompareFn", ",", "buf", "*", "ActionBuffer", ",", "sts", "*", "Stats", ")", "(", "<mask>", "bool", ")", "{", "_", ",", "success", "=", "s", ".", ...
6,064
all-6065
[ "RemoveIcon", "()", "is", "a", "wrapper", "around", "gtk_entry_set_icon_from_icon_name", "()", "with", "a", "nil", "pointer", "to", "the", "icon", "name", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "RemoveIcon", "(", "iconPos", "EntryIconPosition", ")", "{", "C", ".", "gtk_entry_set_icon_from_icon_name", "(", "v", ".", "native", "(", ")", ",", "C", ".", "GtkEntryIconPosition", "(", "iconPos", ")", ",", "nil", ")"...
6,065
all-6066
[ "containsSomeFunc", "returns", "functions", "to", "implement", "each", "of", "the", "following", ":", "1", ".", "containsAll", "-", "true", "if", "(", "∀x", "∈", "v", "then", "x", "∈", "l", ")", ";", "false", "otherwise", "2", ".", "containsAny", "-", ...
[ "func", "containsSomeFunc", "(", "retTrue", ",", "invert", "bool", ")", "func", "(", "[", "]", "<mask>", "{", "}", ",", "interface", "{", "}", ")", "(", "bool", ",", "error", ")", "{", "return", "func", "(", "v", "[", "]", "interface", "{", "}", ...
6,066
all-6067
[ "GetChunk", "returns", "the", "merged", "datum", "hashtrees", "of", "a", "particular", "chunk", "(", "if", "available", ")" ]
[ "func", "(", "a", "*", "APIServer", ")", "GetChunk", "(", "request", "*", "GetChunkRequest", ",", "server", "Worker_GetChunkServer", ")", "error", "{", "filter", ":=", "hashtree", ".", "NewFilter", "(", "a", ".", "numShards", ",", "request", ".", "Shard", ...
6,067
all-6068
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetBrowserCommandLineParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoBrowser16", "(", ...
6,068
all-6069
[ "MarshalJSON", "marshals", "the", "recipient", "to", "JSON", "." ]
[ "func", "(", "r", "Recipient", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "toReturn", ":=", "\"", "\"", "\n\n", "if", "r", ".", "isChannel", "(", ")", "{", "toReturn", "=", "fmt", ".", "Sprintf", "(", "\"", "\\\"...
6,069
all-6070
[ "RemoveRemoteFile", "-", "get", "a", "file", "from", "a", "remote", "system", "and", "return", "a", "writecloser", "to", "it" ]
[ "func", "(", "s", "*", "RemoteOperations", ")", "RemoveRemoteFile", "(", ")", "(", "err", "error", ")", "{", "<mask>", "sftpclient", "SFTPClient", "\n", "sftpclient", ",", "err", "=", "s", ".", "getClient", "(", ")", "\n\n", "if", "err", "==", "nil", "...
6,070
all-6071
[ "ErrNotFound", "indicates", "a", "request", "could", "not", "be", "found", "by", "the", "processor", "." ]
[ "func", "ErrNotFound", "(", "id", "string", ")", "error", "{", "return", "ErrorResponse", "{", "Code", ":", "http", ".", "StatusNotFound", ",", "Message", ":", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "<mask>", ")", ",", "}", "\n", "}" ]
6,071
all-6072
[ "MakeRouter", "returns", "the", "router", "app", ".", "Given", "a", "set", "of", "Routes", "it", "dispatches", "the", "request", "to", "the", "HandlerFunc", "of", "the", "first", "route", "that", "matches", ".", "The", "order", "of", "the", "Routes", "matt...
[ "func", "MakeRouter", "(", "routes", "...", "*", "<mask>", ")", "(", "App", ",", "error", ")", "{", "r", ":=", "&", "router", "{", "Routes", ":", "routes", ",", "}", "\n", "err", ":=", "r", ".", "start", "(", ")", "\n", "if", "err", "!=", "nil"...
6,072
all-6073
[ "Run", "clones", "the", "configured", "refs" ]
[ "func", "(", "o", "Options", ")", "Run", "(", ")", "error", "{", "var", "env", "[", "]", "string", "\n", "if", "len", "(", "o", ".", "KeyFiles", ")", ">", "0", "{", "var", "err", "error", "\n", "env", ",", "err", "=", "addSSHKeys", "(", "o", ...
6,073
all-6074
[ "DateTime", "produces", "a", "time", ".", "Time", "object", "from", "a", "SystemTimestamp", "object", "." ]
[ "func", "(", "ts", "*", "SystemTimestamp", ")", "DateTime", "(", ")", "<mask>", ".", "Time", "{", "// Assume the server will always give us a valid timestamp,", "// so we don't need to handle the error case.", "// (Famous last words?)", "t", ",", "_", ":=", "time", ".", "...
6,074
all-6075
[ "TreeStoreNew", "is", "a", "wrapper", "around", "gtk_tree_store_newv", "()", "." ]
[ "func", "TreeStoreNew", "(", "types", "...", "glib", ".", "Type", ")", "(", "*", "TreeStore", ",", "error", ")", "{", "gtypes", ":=", "C", ".", "alloc_types", "(", "C", ".", "int", "(", "len", "(", "<mask>", ")", ")", ")", "\n", "for", "n", ",", ...
6,075
all-6076
[ "ButtonNewFromStock", "is", "a", "wrapper", "around", "gtk_button_new_from_stock", "()", "." ]
[ "func", "ButtonNewFromStock", "(", "stock", "Stock", ")", "(", "*", "Button", ",", "error", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "string", "(", "stock", ")", ")", "\n", "defer", "C", ".", "<mask>", "(", "unsafe", ".", "Pointer", "(", "...
6,076
all-6077
[ "Err", "retrieves", "any", "errors", "encountered", "in", "the", "course", "of", "calling", "Next", "()", "." ]
[ "func", "(", "l", "*", "LogsIter", ")", "Err", "(", ")", "error", "{", "if", "l", ".", "err", "==", "<mask>", ".", "EOF", "{", "return", "nil", "\n", "}", "\n", "return", "grpcutil", ".", "ScrubGRPC", "(", "l", ".", "err", ")", "\n", "}" ]
6,077
all-6078
[ "applyContainerState", "moves", "the", "container", "to", "the", "given", "state", "by", "calling", "the", "function", "defined", "in", "the", "transitionFunctionMap", "for", "the", "state" ]
[ "func", "(", "engine", "*", "DockerTaskEngine", ")", "applyContainerState", "(", "task", "*", "apitask", ".", "Task", ",", "container", "*", "apicontainer", ".", "Container", ",", "nextState", "apicontainerstatus", ".", "ContainerStatus", ")", "dockerapi", ".", ...
6,078
all-6079
[ "GetPalette", "returns", "the", "Palette", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "t", "*", "TileDefStyle", ")", "GetPalette", "(", ")", "<mask>", "{", "if", "t", "==", "nil", "||", "t", ".", "Palette", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "t", ".", "Palette", "\n", "}" ]
6,079
all-6080
[ "DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "ProwJob", "." ]
[ "func", "(", "in", "*", "ProwJob", ")", "DeepCopy", "(", ")", "*", "ProwJob", "{", "if", "in", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "out", ":=", "new", "(", "ProwJob", ")", "\n", "in", ".", "DeepCopyInto", "(", "out", ")", "\n", ...
6,080
all-6081
[ "SetConsoleMode", "sets", "the", "console", "mode", "for", "given", "file", "descriptor", "See", "http", ":", "//", "msdn", ".", "microsoft", ".", "com", "/", "en", "-", "us", "/", "library", "/", "windows", "/", "desktop", "/", "ms686033", "(", "v", "...
[ "func", "SetConsoleMode", "(", "handle", "uintptr", ",", "mode", "uint32", ")", "error", "{", "r1", ",", "r2", ",", "err", ":=", "setConsoleModeProc", ".", "Call", "(", "handle", ",", "uintptr", "(", "mode", ")", ",", "0", ")", "\n", "use", "(", "<ma...
6,081
all-6082
[ "GetOptions", "returns", "the", "Options", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "m", "*", "Monitor", ")", "GetOptions", "(", ")", "Options", "{", "if", "m", "==", "nil", "||", "m", ".", "<mask>", "==", "nil", "{", "return", "Options", "{", "}", "\n", "}", "\n", "return", "*", "m", ".", "Options", "\n", "}" ]
6,082
all-6083
[ "FromPayload", "set", "the", "PeriodicProwJobEvent", "from", "the", "PubSub", "message", "payload", "." ]
[ "func", "(", "pe", "*", "PeriodicProwJobEvent", ")", "FromPayload", "(", "data", "[", "]", "<mask>", ")", "error", "{", "if", "err", ":=", "json", ".", "Unmarshal", "(", "data", ",", "pe", ")", ";", "err", "!=", "nil", "{", "return", "err", "\n", "...
6,083
all-6084
[ "getAlgFromKeyData", "determines", "the", "best", "jwt", ".", "Algorithm", "suitable", "based", "on", "the", "set", "of", "given", "crypto", "primitives", "in", "pem", "." ]
[ "func", "getAlgFromKeyData", "(", "pem", "pemutil", ".", "Store", ")", "(", "jwt", ".", "Algorithm", ",", "error", ")", "{", "for", "_", ",", "v", ":=", "range", "pem", "{", "// loop over crypto primitives in pemstore, and do type assertion. if", "// ecdsa.{PublicKe...
6,084
all-6085
[ "ContainerSetStateful", "toggles", "the", "stateful", "flag", "of", "the", "container", "with", "the", "given", "ID", "." ]
[ "func", "(", "c", "*", "Cluster", ")", "ContainerSetStateful", "(", "<mask>", "int", ",", "stateful", "bool", ")", "error", "{", "statefulInt", ":=", "0", "\n", "if", "stateful", "{", "statefulInt", "=", "1", "\n", "}", "\n\n", "err", ":=", "exec", "("...
6,085
all-6086
[ "canonicalizeSubject", "establishes", "the", "type", "of", "subject", "by", "looking", "for", "one", "of", "pachyderm", "s", "subject", "prefixes", "and", "then", "canonicalizes", "the", "subject", "based", "on", "that", ".", "If", "subject", "has", "no", "pre...
[ "func", "(", "a", "*", "apiServer", ")", "canonicalizeSubject", "(", "ctx", "context", ".", "Context", ",", "subject", "string", ")", "(", "string", ",", "error", ")", "{", "colonIdx", ":=", "strings", ".", "Index", "(", "subject", ",", "\"", "\"", ")"...
6,086
all-6087
[ "WithAcceptLanguage", "browser", "langugage", "to", "emulate", "." ]
[ "func", "(", "p", "SetUserAgentOverrideParams", ")", "WithAcceptLanguage", "(", "acceptLanguage", "string", ")", "*", "SetUserAgentOverrideParams", "{", "p", ".", "AcceptLanguage", "=", "acceptLanguage", "\n", "<mask>", "&", "p", "\n", "}" ]
6,087
all-6088
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "a", "specified", "program", "object" ]
[ "func", "ProgramUniformMatrix2x4fv", "(", "program", "uint32", ",", "location", "int32", ",", "<mask>", "int32", ",", "transpose", "bool", ",", "value", "*", "float32", ")", "{", "syscall", ".", "Syscall6", "(", "gpProgramUniformMatrix2x4fv", ",", "5", ",", "u...
6,088
all-6089
[ "Setup", "starts", "the", "Pact", "Mock", "Server", ".", "This", "is", "usually", "called", "before", "each", "test", "suite", "begins", ".", "AddInteraction", "()", "will", "automatically", "call", "this", "if", "no", "Mock", "Server", "has", "been", "start...
[ "func", "(", "p", "*", "Pact", ")", "Setup", "(", "startMockServer", "bool", ")", "*", "Pact", "{", "p", ".", "setupLogging", "(", ")", "\n", "log", ".", "Println", "(", "\"", "\"", ")", "\n", "dir", ",", "_", ":=", "os", ".", "Getwd", "(", ")"...
6,089
all-6090
[ "HasWidth", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "Widget", ")", "HasWidth", "(", ")", "bool", "{", "if", "w", "!=", "nil", "&&", "w", ".", "Width", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
6,090
all-6091
[ "newWatcher", "creates", "a", "new", "watcher", "." ]
[ "func", "newWatcher", "(", "c", "*", "config", ".", "Config", ",", "clients", "*", "dep", ".", "ClientSet", ",", "once", "bool", ")", "(", "*", "<mask>", ".", "Watcher", ",", "error", ")", "{", "log", ".", "Printf", "(", "\"", "\"", ")", "\n\n", ...
6,091
all-6092
[ "CreateComment", "adds", "a", "new", "comment", "to", "the", "system", "." ]
[ "func", "(", "<mask>", "*", "Client", ")", "CreateComment", "(", "handle", ",", "message", "string", ")", "(", "*", "Comment", ",", "error", ")", "{", "var", "out", "reqComment", "\n", "comment", ":=", "Comment", "{", "Message", ":", "String", "(", "me...
6,092
all-6093
[ "Do", "executes", "SystemInfo", ".", "getProcessInfo", "against", "the", "provided", "context", ".", "returns", ":", "processInfo", "-", "An", "array", "of", "process", "info", "blocks", "." ]
[ "func", "(", "p", "*", "GetProcessInfoParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "processInfo", "[", "]", "*", "ProcessInfo", ",", "err", "error", ")", "{", "// execute", "var", "res", "GetProcessInfoReturns", "\n", "err", "=", "...
6,093
all-6094
[ "NewPointsIndex", "creates", "new", "PointsIndex", "that", "maintains", "the", "points", "in", "each", "cell", "." ]
[ "func", "NewPointsIndex", "(", "resolution", "Meters", ")", "*", "PointsIndex", "{", "newSet", ":=", "func", "(", ")", "interface", "{", "}", "{", "return", "newSet", "(", ")", "\n", "}", "\n\n", "return", "&", "PointsIndex", "{", "newGeoIndex", "(", "re...
6,094
all-6095
[ "Add", "places", "an", "item", "at", "the", "back", "of", "the", "Queue", "." ]
[ "func", "(", "q", "*", "Queue", ")", "Add", "(", "entry", "interface", "{", "}", ")", "{", "q", ".", "<mask>", ".", "Lock", "(", ")", "\n", "defer", "q", ".", "key", ".", "Unlock", "(", ")", "\n", "if", "nil", "==", "q", ".", "underlyer", "{"...
6,095
all-6096
[ "HasName", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "c", "*", "CreatedBy", ")", "HasName", "(", ")", "bool", "{", "if", "c", "!=", "nil", "&&", "c", ".", "<mask>", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
6,096
all-6097
[ "dependsOn", "returns", "a", "boolean", "value", "indicating", "whether", "the", "image", "depends", "on", "target", "." ]
[ "func", "(", "i", "*", "Image", ")", "dependsOn", "(", "target", "*", "Image", ")", "bool", "{", "for", "_", ",", "c", ":=", "range", "i", ".", "drawTrianglesHistory", "{", "if", "c", ".", "image", "==", "<mask>", "{", "return", "true", "\n", "}", ...
6,097
all-6098
[ "Foreach", "acts", "the", "same", "as", "g_list_foreach", "()", ".", "No", "user_data", "argument", "is", "implemented", "because", "of", "Go", "clojure", "capabilities", "." ]
[ "func", "(", "v", "*", "List", ")", "Foreach", "(", "fn", "func", "(", "item", "<mask>", "{", "}", ")", ")", "{", "for", "l", ":=", "v", ";", "l", "!=", "nil", ";", "l", "=", "l", ".", "Next", "(", ")", "{", "fn", "(", "l", ".", "Data", ...
6,098
all-6099
[ "GetAuthTokenCmd", "returns", "a", "cobra", "command", "that", "lets", "a", "user", "get", "a", "pachyderm", "token", "on", "behalf", "of", "themselves", "or", "another", "user" ]
[ "func", "GetAuthTokenCmd", "(", "noMetrics", ",", "noPortForwarding", "*", "bool", ")", "*", "cobra", ".", "Command", "{", "var", "quiet", "bool", "\n", "getAuthToken", ":=", "&", "cobra", ".", "Command", "{", "Use", ":", "\"", "\"", ",", "Short", ":", ...
6,099
all-6100
[ "ReservedInstancePurchaseLocator", "builds", "a", "locator", "from", "the", "given", "href", "." ]
[ "func", "(", "api", "*", "API", ")", "ReservedInstancePurchaseLocator", "(", "href", "string", ")", "*", "ReservedInstancePurchaseLocator", "{", "<mask>", "&", "ReservedInstancePurchaseLocator", "{", "Href", "(", "href", ")", ",", "api", "}", "\n", "}" ]