id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
19,900
all-19901
[ "Err", "return", "a", "controller", "error" ]
[ "func", "(", "c", "*", "Controller", ")", "Err", "(", "errno", "int", ",", "<mask>", "string", ")", "error", "{", "return", "(", "&", "BusinessError", "{", "}", ")", ".", "New", "(", "errno", ",", "message", ")", "\n", "}" ]
19,901
all-19902
[ "GetPoolByName", "finds", "a", "pool", "by", "name" ]
[ "func", "GetPoolByName", "(", "<mask>", "string", ")", "(", "*", "Pool", ",", "error", ")", "{", "conn", ",", "err", ":=", "db", ".", "Conn", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "\n", "defer", ...
19,902
all-19903
[ "RemoveMultipartFormFiles", "removes", "multipart", "/", "form", "-", "data", "temporary", "files", "associated", "with", "the", "request", "." ]
[ "func", "(", "req", "*", "<mask>", ")", "RemoveMultipartFormFiles", "(", ")", "{", "if", "req", ".", "multipartForm", "!=", "nil", "{", "// Do not check for error, since these files may be deleted or moved", "// to new places by user code.", "req", ".", "multipartForm", "...
19,903
all-19904
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetDockTileParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoBrowser1", "(", "&", "w", ",", "v", ")",...
19,904
all-19905
[ "NewShadow", "returns", "a", "structure", "Shadow", "with", "fields", "Min", "Max", "and", "Warn", "got", "from", "the", "system", "configuration", "and", "enabling", "the", "features", "of", "password", "aging", "." ]
[ "func", "NewShadow", "(", "username", "string", ")", "*", "Shadow", "{", "loadConfig", "(", ")", "\n\n", "return", "&", "Shadow", "{", "<mask>", ":", "username", ",", "changed", ":", "_ENABLE_AGING", ",", "Min", ":", "config", ".", "login", ".", "PASS_MI...
19,905
all-19906
[ "RenderTemplate", "renders", "a", "pongo2", "template", "." ]
[ "func", "RenderTemplate", "(", "template", "string", ",", "ctx", "pongo2", ".", "Context", ")", "(", "string", ",", "error", ")", "{", "// Load template from string", "tpl", ",", "err", ":=", "pongo2", ".", "FromString", "(", "\"", "\"", "+", "template", "...
19,906
all-19907
[ "NewMemo", "creates", "a", "new", "Memo", "." ]
[ "func", "NewMemo", "(", "aType", "MemoType", ",", "value", "interface", "{", "}", ")", "(", "result", "Memo", ",", "err", "error", ")", "{", "result", ".", "Type", "=", "aType", "\n", "switch", "MemoType", "(", "aType", ")", "{", "case", "MemoTypeMemoN...
19,907
all-19908
[ "newLabels", "creates", "a", "new", "Label", "for", "each", "label", "in", "the", "issue" ]
[ "func", "newLabels", "(", "issueID", "int", ",", "gLabels", "[", "]", "github", ".", "Label", ",", "repository", "string", ")", "(", "[", "]", "sql", ".", "Label", ",", "error", ")", "{", "labels", ":=", "[", "]", "sql", ".", "Label", "{", "}", "...
19,908
all-19909
[ "getFqdn", "returns", "a", "FQDN", "if", "it", "s", "possible", "otherwise", "falls", "back", "to", "hostname", "." ]
[ "func", "getFqdn", "(", ")", "(", "string", ",", "error", ")", "{", "hostname", ",", "err", ":=", "os", ".", "Hostname", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "\"", "\"", ",", "err", "\n", "}", "\n\n", "ips", ",", "err", ":="...
19,909
all-19910
[ "SetAccelPath", "is", "a", "wrapper", "around", "gtk_widget_set_accel_path", "()", "." ]
[ "func", "(", "v", "*", "Widget", ")", "SetAccelPath", "(", "path", "string", ",", "group", "*", "AccelGroup", ")", "{", "cstr", ":=", "(", "*", "C", ".", "gchar", ")", "(", "C", ".", "CString", "(", "path", ")", ")", "\n", "defer", "C", ".", "f...
19,910
all-19911
[ "native", "returns", "a", "pointer", "to", "the", "underlying", "GtkScrollbar", "." ]
[ "func", "(", "v", "*", "Scrollbar", ")", "native", "(", ")", "*", "C", ".", "GtkScrollbar", "{", "if", "v", "==", "nil", "||", "v", ".", "GObject", "==", "nil", "{", "<mask>", "nil", "\n", "}", "\n", "p", ":=", "unsafe", ".", "Pointer", "(", "v...
19,911
all-19912
[ "NewEventSource", "returns", "a", "new", "EventSource", "instance", "while", "ensuring", "that", "the", "http", ".", "ResponseWriter", "is", "able", "to", "handle", "EventSource", "messages", ".", "It", "also", "makes", "sure", "to", "set", "the", "proper", "r...
[ "func", "NewEventSource", "(", "w", "http", ".", "ResponseWriter", ")", "(", "*", "EventSource", ",", "error", ")", "{", "<mask>", ":=", "&", "EventSource", "{", "w", ":", "w", "}", "\n", "var", "ok", "bool", "\n", "es", ".", "fl", ",", "ok", "=", ...
19,912
all-19913
[ "AddMany", "helpers", "at", "the", "same", "time", "." ]
[ "func", "(", "h", "*", "HelperMap", ")", "AddMany", "(", "helpers", "map", "[", "string", "]", "interface", "{", "}", ")", "error", "{", "for", "k", ",", "v", ":=", "<mask>", "helpers", "{", "err", ":=", "h", ".", "Add", "(", "k", ",", "v", ")"...
19,913
all-19914
[ "Lint", "performs", "a", "linting", "pass", "returning", "a", "slice", "of", "Problems", "indicating", "any", "issues", "found", "in", "the", "metrics", "stream", ".", "The", "slice", "is", "sorted", "by", "metric", "name", "and", "issue", "description", "."...
[ "func", "(", "l", "*", "Linter", ")", "Lint", "(", ")", "(", "[", "]", "Problem", ",", "error", ")", "{", "// TODO(mdlayher): support for protobuf exposition format?", "d", ":=", "expfmt", ".", "NewDecoder", "(", "l", ".", "r", ",", "expfmt", ".", "FmtText...
19,914
all-19915
[ "SetImage", "is", "a", "wrapper", "around", "gtk_message_dialog_set_image", "()", "." ]
[ "func", "(", "v", "*", "MessageDialog", ")", "SetImage", "(", "<mask>", "IWidget", ")", "{", "C", ".", "gtk_message_dialog_set_image", "(", "v", ".", "native", "(", ")", ",", "image", ".", "toWidget", "(", ")", ")", "\n", "}" ]
19,915
all-19916
[ "MetricID", "takes", "a", "name", "and", "tags", "and", "generates", "a", "consistent", "metric", "identifier" ]
[ "func", "MetricID", "(", "name", "string", ",", "tags", "[", "]", "string", ")", "string", "{", "if", "len", "(", "<mask>", ")", "==", "0", "{", "return", "name", "\n", "}", "\n", "sort", ".", "Strings", "(", "tags", ")", "\n", "return", "name", ...
19,916
all-19917
[ "readFilter5Data", "reads", "an", "encoded", "integer", "used", "in", "V5", "filters", "." ]
[ "func", "readFilter5Data", "(", "br", "bitReader", ")", "(", "int", ",", "error", ")", "{", "// TODO: should data really be uint? (for 32bit ints).", "// It will be masked later anyway by decode window mask.", "bytes", ",", "err", ":=", "br", ".", "readBits", "(", "2", ...
19,917
all-19918
[ "GraphLinkForExpression", "creates", "an", "escaped", "relative", "link", "to", "the", "graph", "view", "of", "the", "provided", "expression", "." ]
[ "func", "GraphLinkForExpression", "(", "expr", "string", ")", "string", "{", "escapedExpression", ":=", "<mask>", ".", "QueryEscape", "(", "expr", ")", "\n", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "escapedExpression", ")", "\n", "}" ]
19,918
all-19919
[ "gtk_action_bar_pack_end", "(", "GtkActionBar", "*", "action_bar", "GtkWidget", "*", "child", ")" ]
[ "func", "(", "a", "*", "ActionBar", ")", "PackEnd", "(", "<mask>", "IWidget", ")", "{", "C", ".", "gtk_action_bar_pack_end", "(", "a", ".", "native", "(", ")", ",", "child", ".", "toWidget", "(", ")", ")", "\n", "}" ]
19,919
all-19920
[ "FormValue", "returns", "form", "value", "associated", "with", "the", "given", "key", ".", "The", "value", "is", "searched", "in", "the", "following", "places", ":", "*", "Query", "string", ".", "*", "POST", "or", "PUT", "body", ".", "There", "are", "mor...
[ "func", "(", "ctx", "*", "RequestCtx", ")", "FormValue", "(", "key", "string", ")", "[", "]", "byte", "{", "v", ":=", "ctx", ".", "QueryArgs", "(", ")", ".", "Peek", "(", "key", ")", "\n", "if", "len", "(", "v", ")", ">", "0", "{", "return", ...
19,920
all-19921
[ "Count", "returns", "the", "total", "number", "of", "documents", "in", "the", "result", "set", "." ]
[ "func", "(", "q", "*", "Query", ")", "Count", "(", ")", "(", "n", "int", ",", "err", "error", ")", "{", "q", ".", "m", ".", "Lock", "(", ")", "\n", "session", ":=", "q", ".", "session", "\n", "op", ":=", "q", ".", "op", "\n", "limit", ":=",...
19,921
all-19922
[ "/", "*", "Kill", "sends", "a", "SIGTERM", "signal", "to", "all", "the", "processes", "started", "by", "Run", "and", "waits", "for", "them", "to", "exit", ".", "The", "timeout", "specified", "is", "applied", "to", "each", "process", "killed", "." ]
[ "func", "TerminateAndWait", "(", "timeout", "...", "interface", "{", "}", ")", "{", "trackedSessionsMutex", ".", "Lock", "(", ")", "\n", "defer", "trackedSessionsMutex", ".", "Unlock", "(", ")", "\n", "for", "_", ",", "session", ":=", "range", "trackedSessio...
19,922
all-19923
[ "OpenId", "returns", "the", "file", "with", "the", "provided", "id", "for", "reading", ".", "If", "the", "file", "isn", "t", "found", "err", "will", "be", "set", "to", "mgo", ".", "ErrNotFound", ".", "It", "s", "important", "to", "Close", "files", "whe...
[ "func", "(", "gfs", "*", "GridFS", ")", "OpenId", "(", "<mask>", "interface", "{", "}", ")", "(", "file", "*", "GridFile", ",", "err", "error", ")", "{", "var", "doc", "gfsFile", "\n", "err", "=", "gfs", ".", "Files", ".", "Find", "(", "bson", "....
19,923
all-19924
[ "ContainerGet", "returns", "the", "container", "with", "the", "given", "key", "." ]
[ "func", "(", "c", "*", "ClusterTx", ")", "ContainerGet", "(", "project", "string", ",", "name", "string", ")", "(", "*", "Container", ",", "error", ")", "{", "filter", ":=", "ContainerFilter", "{", "}", "\n", "filter", ".", "Project", "=", "project", "...
19,924
all-19925
[ "Head", "returns", "the", "most", "recent", "commit", "id", "on", "the", "default", "branch", "and", "latest", "version", "tag", "for", "the", "given", "remote", "repository", ".", "The", "tag", "is", "returned", "if", "no", "latest", "version", "was", "fo...
[ "func", "(", "r", "*", "RemoteCache", ")", "Head", "(", "remote", ",", "vcs", "string", ")", "(", "commit", ",", "tag", "string", ",", "err", "error", ")", "{", "if", "vcs", "!=", "\"", "\"", "{", "return", "\"", "\"", ",", "\"", "\"", ",", "fm...
19,925
all-19926
[ "add", "the", "prefix", "when", "providing", "urls" ]
[ "func", "(", "s", "*", "prefixPipeline", ")", "AssetUrl", "(", "name", "string", ")", "(", "<mask>", "string", ",", "err", "error", ")", "{", "url", ",", "err", "=", "s", ".", "AssetPipeline", ".", "AssetUrl", "(", "name", ")", "\n", "if", "err", "...
19,926
all-19927
[ "Reset", "deletes", "all", "cookies", "set", "for", "the", "current", "domain", "and", "navigates", "to", "a", "blank", "page", ".", "Unlike", "Destroy", "Reset", "will", "permit", "the", "page", "to", "be", "re", "-", "used", "after", "it", "is", "calle...
[ "func", "(", "p", "*", "Page", ")", "Reset", "(", ")", "error", "{", "p", ".", "ConfirmPopup", "(", ")", "\n\n", "url", ",", "err", ":=", "p", ".", "URL", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "if", ...
19,927
all-19928
[ "NewAgent", "returns", "a", "new", "GitHub", "OAuth", "Agent", "." ]
[ "func", "NewAgent", "(", "config", "*", "config", ".", "GitHubOAuthConfig", ",", "logger", "*", "logrus", ".", "<mask>", ")", "*", "Agent", "{", "return", "&", "Agent", "{", "gc", ":", "config", ",", "logger", ":", "logger", ",", "}", "\n", "}" ]
19,928
all-19929
[ "Do", "executes", "DOM", ".", "removeAttribute", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "RemoveAttributeParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandRemoveAttribute", ",", "p", ",", "nil", ")", "\n", "}" ]
19,929
all-19930
[ "Returns", "an", "interface", "or", "panics" ]
[ "func", "(", "t", "Typed", ")", "InterfaceMust", "(", "<mask>", "string", ")", "interface", "{", "}", "{", "i", ",", "exists", ":=", "t", ".", "InterfaceIf", "(", "key", ")", "\n", "if", "exists", "==", "false", "{", "panic", "(", "\"", "\"", "+", ...
19,930
all-19931
[ "AddFlags", "binds", "flags", "to", "options" ]
[ "func", "(", "o", "*", "Options", ")", "AddFlags", "(", "flags", "*", "flag", ".", "FlagSet", ")", "{", "flags", ".", "DurationVar", "(", "&", "o", ".", "Timeout", ",", "\"", "\"", ",", "DefaultTimeout", ",", "\"", "\"", ")", "\n", "<mask>", ".", ...
19,931
all-19932
[ "GetExpectedNumWorkers", "computes", "the", "expected", "number", "of", "workers", "that", "pachyderm", "will", "start", "given", "the", "ParallelismSpec", "spec", ".", "This", "is", "only", "exported", "for", "testing" ]
[ "func", "GetExpectedNumWorkers", "(", "kubeClient", "*", "kube", ".", "Clientset", ",", "spec", "*", "ppsclient", ".", "ParallelismSpec", ")", "(", "int", ",", "error", ")", "{", "if", "<mask>", "==", "nil", "||", "(", "spec", ".", "Constant", "==", "0",...
19,932
all-19933
[ "Value", "converts", "a", "value", "to", "a", "database", "driver", "value" ]
[ "func", "(", "<mask>", "*", "ObjectId", ")", "Value", "(", ")", "(", "driver", ".", "Value", ",", "error", ")", "{", "return", "driver", ".", "Value", "(", "string", "(", "*", "id", ")", ")", ",", "nil", "\n", "}" ]
19,933
all-19934
[ "parseInboundFragment", "parses", "an", "incoming", "fragment", "based", "on", "the", "given", "message" ]
[ "func", "parseInboundFragment", "(", "framePool", "FramePool", ",", "frame", "*", "Frame", ",", "message", "message", ")", "(", "*", "readableFragment", ",", "error", ")", "{", "rbuf", ":=", "typed", ".", "NewReadBuffer", "(", "frame", ".", "SizedPayload", "...
19,934
all-19935
[ "WithCid", "adds", "the", "cid", "to", "the", "update", "Vm", "with", "state", "params" ]
[ "func", "(", "o", "*", "UpdateVMWithStateParams", ")", "WithCid", "(", "cid", "int32", ")", "*", "UpdateVMWithStateParams", "{", "o", ".", "SetCid", "(", "cid", ")", "\n", "<mask>", "o", "\n", "}" ]
19,935
all-19936
[ "AddBodies", "Allows", "to", "add", "multiple", "bodies", "to", "the", "message", "it", "returns", "errors", "that", "could", "happen", "in", "the", "rendering", "." ]
[ "func", "(", "m", "*", "Message", ")", "AddBodies", "(", "<mask>", "render", ".", "Data", ",", "renderers", "...", "render", ".", "Renderer", ")", "error", "{", "for", "_", ",", "r", ":=", "range", "renderers", "{", "err", ":=", "m", ".", "AddBody", ...
19,936
all-19937
[ "WithTimeout", "terminate", "execution", "after", "timing", "out", "(", "number", "of", "milliseconds", ")", "." ]
[ "func", "(", "p", "EvaluateOnCallFrameParams", ")", "WithTimeout", "(", "timeout", "runtime", ".", "TimeDelta", ")", "*", "EvaluateOnCallFrameParams", "{", "p", ".", "Timeout", "=", "timeout", "\n", "<mask>", "&", "p", "\n", "}" ]
19,937
all-19938
[ "OnHandler", "can", "be", "used", "in", "JSON", "-", "encoded", "HTTP", "API", "to", "enable", "maintenance", ".", "It", "returns", "HTTP", "Status", "Created", "if", "the", "maintenance", "is", "enabled", ".", "If", "the", "maintenance", "is", "already", ...
[ "func", "(", "s", "Service", ")", "OnHandler", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "{", "<mask>", ",", "err", ":=", "s", ".", "store", ".", "On", "(", ")", "\n", "if", "err", "!=", "nil", "{", "s...
19,938
all-19939
[ "CreateMaintenanceWindow", "creates", "a", "new", "maintenance", "[", "window", "]", "." ]
[ "func", "(", "a", "*", "API", ")", "CreateMaintenanceWindow", "(", "cfg", "*", "Maintenance", ")", "(", "*", "Maintenance", ",", "error", ")", "{", "if", "cfg", "==", "nil", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ")", "\n...
19,939
all-19940
[ "MarshalJSON", "marshals", "this", "object", "to", "a", "JSON", "structure" ]
[ "func", "(", "m", "Task", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "<mask>", "_parts", "[", "]", "[", "]", "byte", "\n\n", "aO0", ",", "err", ":=", "swag", ".", "WriteJSON", "(", "m", ".", "NewTask", ")", "\n...
19,940
all-19941
[ "WithWidth", "frame", "width", "in", "DIP", "(", "headless", "chrome", "only", ")", "." ]
[ "func", "(", "p", "CreateTargetParams", ")", "WithWidth", "(", "<mask>", "int64", ")", "*", "CreateTargetParams", "{", "p", ".", "Width", "=", "width", "\n", "return", "&", "p", "\n", "}" ]
19,941
all-19942
[ "NewManager", "-" ]
[ "func", "NewManager", "(", "<mask>", "CFClient", ",", "cfg", "config", ".", "Reader", ",", "orgManager", "organization", ".", "Manager", ",", "spaceManager", "space", ".", "Manager", ",", "peek", "bool", ")", "(", "Manager", ",", "error", ")", "{", "global...
19,942
all-19943
[ "SetMinRetryDelay", "sets", "the", "duration", "that", "automatically", "reconnecting", "methods", "on", "c", "(", "e", ".", "g", ".", "Firehose", "Stream", "TailingLogs", ")", "will", "sleep", "for", "after", "receiving", "an", "error", "from", "the", "traffi...
[ "func", "(", "c", "*", "<mask>", ")", "SetMinRetryDelay", "(", "d", "time", ".", "Duration", ")", "{", "atomic", ".", "StoreInt64", "(", "&", "c", ".", "minRetryDelay", ",", "int64", "(", "d", ")", ")", "\n", "}" ]
19,943
all-19944
[ "ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "TransactionResultResult" ]
[ "func", "(", "u", "TransactionResultResult", ")", "ArmForSwitch", "(", "sw", "int32", ")", "(", "string", ",", "bool", ")", "{", "switch", "TransactionResultCode", "(", "sw", ")", "{", "case", "TransactionResultCodeTxSuccess", ":", "return", "\"", "\"", ",", ...
19,944
all-19945
[ "Step", "3", "is", "the", "removal", "of", "the", "derivational", "suffix", "." ]
[ "func", "step3", "(", "word", "*", "snowballword", ".", "SnowballWord", ")", "bool", "{", "// Search for a DERIVATIONAL ending in R2 (i.e. the entire", "// ending must lie in R2), and if one is found, remove it.", "suffix", ",", "_", ":=", "word", ".", "RemoveFirstSuffixIn", ...
19,945
all-19946
[ "Diem", "executes", "the", "same", "function", "on", "the", "default", "Base", "instance" ]
[ "func", "Diem", "(", "exitCode", "int", ",", "m", "*", "Attrs", ",", "<mask>", "string", ",", "a", "...", "interface", "{", "}", ")", "{", "curDefault", ".", "Diem", "(", "exitCode", ",", "m", ",", "msg", ",", "a", "...", ")", "\n", "}" ]
19,946
all-19947
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "RequestCachedResponseParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoCachestorage3", ...
19,947
all-19948
[ "SetTabLabelText", "()", "is", "a", "wrapper", "around", "gtk_notebook_set_tab_label_text", "()", "." ]
[ "func", "(", "v", "*", "Notebook", ")", "SetTabLabelText", "(", "child", "IWidget", ",", "tabText", "string", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "tabText", ")", "\n", "defer", "C", ".", "<mask>", "(", "unsafe", ".", "Pointer", "(", "cs...
19,948
all-19949
[ "Register", "registers", "a", "handler", "on", "the", "subchannel", "for", "the", "given", "method", ".", "This", "function", "panics", "if", "the", "Handler", "for", "the", "SubChannel", "was", "overwritten", "with", "SetHandler", "." ]
[ "func", "(", "c", "*", "SubChannel", ")", "Register", "(", "h", "Handler", ",", "methodName", "string", ")", "{", "handlers", ",", "ok", ":=", "c", ".", "handler", ".", "(", "*", "handlerMap", ")", "\n", "if", "!", "<mask>", "{", "panic", "(", "fmt...
19,949
all-19950
[ "OffsetFromMetadata", "gets", "the", "offset", "from", "the", "metadata" ]
[ "func", "OffsetFromMetadata", "(", "md", "metadata", ".", "MD", ")", "(", "uint64", ",", "error", ")", "{", "offset", ",", "ok", ":=", "md", "[", "\"", "\"", "]", "\n", "if", "!", "ok", "||", "len", "(", "offset", ")", "==", "0", "{", "return", ...
19,950
all-19951
[ "SetRule", "sets", "the", "regular", "expresion", "that", "should", "match", "the", "name", "of", "the", "rule", "." ]
[ "func", "(", "x", "*", "Exception", ")", "SetRule", "(", "rule", "string", ")", "error", "{", "ruleRegexp", ",", "err", ":=", "regexp", ".", "Compile", "(", "\"", "\"", "+", "<mask>", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n",...
19,951
all-19952
[ "GetMustShowBreakdownOk", "returns", "a", "tuple", "with", "the", "MustShowBreakdown", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "Widget", ")", "GetMustShowBreakdownOk", "(", ")", "(", "bool", ",", "bool", ")", "{", "if", "w", "==", "nil", "||", "w", ".", "MustShowBreakdown", "==", "nil", "{", "return", "<mask>", ",", "false", "\n", "}", "\n", "return", ...
19,952
all-19953
[ "GetListenAddr", "returns", "the", "current", "localnode", ".", "address2", "instance" ]
[ "func", "(", "o", "*", "<mask>", ")", "GetListenAddr", "(", ")", "string", "{", "o", ".", "RLock", "(", ")", "\n", "defer", "o", ".", "RUnlock", "(", ")", "\n", "return", "o", ".", "ring", ".", "LocalNode", "(", ")", ".", "Address", "(", "2", "...
19,953
all-19954
[ "SetDeviceMetricsOverride", "overrides", "the", "values", "of", "device", "screen", "dimensions", "(", "window", ".", "screen", ".", "width", "window", ".", "screen", ".", "height", "window", ".", "innerWidth", "window", ".", "innerHeight", "and", "device", "-",...
[ "func", "SetDeviceMetricsOverride", "(", "width", "int64", ",", "height", "int64", ",", "deviceScaleFactor", "float64", ",", "mobile", "bool", ")", "*", "SetDeviceMetricsOverrideParams", "{", "return", "&", "SetDeviceMetricsOverrideParams", "{", "Width", ":", "width",...
19,954
all-19955
[ "NumRows", "returns", "the", "number", "of", "rows", "in", "a", "table", "map" ]
[ "func", "(", "t", "TabularDataMap", ")", "NumRows", "(", ")", "int", "{", "if", "len", "(", "t", ")", "==", "0", "{", "return", "0", "\n", "}", "\n", "return", "len", "(", "t", "[", "reflect", ".", "ValueOf", "(", "t", ")", ".", "MapKeys", "(",...
19,955
all-19956
[ "ClipExtents", "is", "a", "wrapper", "around", "cairo_clip_extents", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "ClipExtents", "(", ")", "(", "x1", ",", "y1", ",", "x2", ",", "y2", "float64", ")", "{", "var", "cx1", ",", "cy1", ",", "cx2", ",", "cy2", "C", ".", "double", "\n", "C", ".", "cairo_clip_extents", "(", "v"...
19,956
all-19957
[ "WithScale", "the", "scale", "to", "apply", "while", "replaying", "(", "defaults", "to", "1", ")", "." ]
[ "func", "(", "p", "ReplaySnapshotParams", ")", "WithScale", "(", "<mask>", "float64", ")", "*", "ReplaySnapshotParams", "{", "p", ".", "Scale", "=", "scale", "\n", "return", "&", "p", "\n", "}" ]
19,957
all-19958
[ "Returns", "an", "slice", "of", "ints", "or", "the", "specified", "slice", "Some", "conversion", "is", "done", "to", "handle", "the", "fact", "that", "JSON", "ints", "are", "represented", "as", "floats", "." ]
[ "func", "(", "t", "Typed", ")", "Ints", "(", "<mask>", "string", ")", "[", "]", "int", "{", "return", "t", ".", "IntsOr", "(", "key", ",", "nil", ")", "\n", "}" ]
19,958
all-19959
[ "GetPerUnitOk", "returns", "a", "tuple", "with", "the", "PerUnit", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "m", "*", "MetricMetadata", ")", "GetPerUnitOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "m", "==", "nil", "||", "m", ".", "PerUnit", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", "return", "*"...
19,959
all-19960
[ "SetConsoleWindowInfo", "sets", "the", "size", "and", "position", "of", "the", "console", "screen", "buffer", "s", "window", ".", "Note", "that", "the", "size", "and", "location", "must", "be", "within", "and", "no", "larger", "than", "the", "backing", "cons...
[ "func", "SetConsoleWindowInfo", "(", "handle", "uintptr", ",", "isAbsolute", "bool", ",", "rect", "SMALL_RECT", ")", "error", "{", "r1", ",", "r2", ",", "err", ":=", "setConsoleWindowInfoProc", ".", "Call", "(", "<mask>", ",", "uintptr", "(", "boolToBOOL", "...
19,960
all-19961
[ "copy", "pixels", "in", "the", "frame", "buffer" ]
[ "func", "CopyPixels", "(", "x", "int32", ",", "y", "int32", ",", "width", "int32", ",", "height", "int32", ",", "xtype", "uint32", ")", "{", "C", ".", "glowCopyPixels", "(", "gpCopyPixels", ",", "(", "C", ".", "GLint", ")", "(", "x", ")", ",", "(",...
19,961
all-19962
[ "createRESTConfig", "for", "cluster", "API", "server", "pass", "empty", "config", "file", "for", "in", "-", "cluster" ]
[ "func", "createRESTConfig", "(", "kubeconfig", "string", ",", "t", "Type", ")", "(", "config", "*", "rest", ".", "Config", ",", "types", "*", "runtime", ".", "Scheme", ",", "err", "error", ")", "{", "if", "kubeconfig", "==", "\"", "\"", "{", "config", ...
19,962
all-19963
[ "LoginURL", "returns", "a", "URL", "that", "when", "visited", "prompts", "the", "user", "to", "sign", "in", "then", "redirects", "the", "user", "to", "the", "URL", "specified", "by", "dest", "." ]
[ "func", "LoginURL", "(", "c", "context", ".", "Context", ",", "<mask>", "string", ")", "(", "string", ",", "error", ")", "{", "return", "LoginURLFederated", "(", "c", ",", "dest", ",", "\"", "\"", ")", "\n", "}" ]
19,963
all-19964
[ "parseInt64", "treats", "the", "given", "bytes", "as", "a", "big", "-", "endian", "signed", "integer", "and", "returns", "the", "result", "." ]
[ "func", "parseInt64", "(", "bytes", "[", "]", "byte", ")", "(", "ret", "int64", ",", "err", "error", ")", "{", "err", "=", "checkInteger", "(", "bytes", ")", "\n", "if", "err", "!=", "nil", "{", "return", "\n", "}", "\n", "if", "len", "(", "bytes...
19,964
all-19965
[ "NewTransactionResultExt", "creates", "a", "new", "TransactionResultExt", "." ]
[ "func", "NewTransactionResultExt", "(", "v", "int32", ",", "value", "interface", "{", "}", ")", "(", "result", "TransactionResultExt", ",", "err", "error", ")", "{", "result", ".", "V", "=", "v", "\n", "<mask>", "int32", "(", "v", ")", "{", "case", "0"...
19,965
all-19966
[ "Stability", ":", "***", "EXPERIMENTAL", "***", "This", "endpoint", "is", "used", "to", "show", "when", "the", "last", "time", "the", "provisioner", "has", "checked", "in", ".", "A", "check", "in", "is", "done", "through", "the", "deadman", "s", "snitch", ...
[ "func", "(", "awsProvisioner", "*", "AwsProvisioner", ")", "BackendStatus", "(", ")", "(", "*", "BackendStatusResponse", ",", "error", ")", "{", "cd", ":=", "tcclient", ".", "<mask>", "(", "*", "awsProvisioner", ")", "\n", "responseObject", ",", "_", ",", ...
19,966
all-19967
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "AwaitPromiseParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime51", "(", "&", "w", ",", "v", ")...
19,967
all-19968
[ "LogName", "is", "an", "option", "that", "sets", "the", "log", "name", "to", "send", "with", "each", "log", "entry", ".", "Log", "names", "are", "specified", "as", "projects", "/", "{", "projectID", "}", "/", "logs", "/", "{", "logName", "}", "if", "...
[ "func", "LogName", "(", "<mask>", "string", ")", "Option", "{", "return", "func", "(", "sh", "*", "StackdriverHook", ")", "error", "{", "if", "sh", ".", "projectID", "==", "\"", "\"", "{", "sh", ".", "logName", "=", "name", "\n", "}", "else", "{", ...
19,968
all-19969
[ "AppendColumn", "is", "a", "wrapper", "around", "gtk_tree_view_append_column", "()", "." ]
[ "func", "(", "v", "*", "TreeView", ")", "AppendColumn", "(", "<mask>", "*", "TreeViewColumn", ")", "int", "{", "c", ":=", "C", ".", "gtk_tree_view_append_column", "(", "v", ".", "native", "(", ")", ",", "column", ".", "native", "(", ")", ")", "\n", "...
19,969
all-19970
[ "PCMScale", "converts", "a", "buffer", "with", "audio", "content", "from", "-", "1", "to", "1", "into", "the", "PCM", "scale", "based", "on", "the", "passed", "bitdepth", ".", "Note", "that", "while", "the", "PCM", "data", "is", "scaled", "the", "PCM", ...
[ "func", "PCMScale", "(", "buf", "*", "audio", ".", "FloatBuffer", ",", "bitDepth", "int", ")", "error", "{", "if", "buf", "==", "nil", "||", "buf", ".", "Format", "==", "nil", "{", "return", "audio", ".", "ErrInvalidBuffer", "\n", "}", "\n", "<mask>", ...
19,970
all-19971
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "KeyPath", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoIndexeddb9", "(", "&", "w", ",", "v", ")", "\n",...
19,971
all-19972
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EventDomStorageItemAdded", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomstorage8", "(", "&", "w", ",", "...
19,972
all-19973
[ "Close", "releases", "resources", "used", "by", "this", "handler", "(", "file", "that", "log", "messages", "were", "written", "into", ")", "." ]
[ "func", "(", "handler", "*", "RotatingFileHandler", ")", "Close", "(", ")", "(", "err", "error", ")", "{", "handler", ".", "lock", ".", "Lock", "(", ")", "\n", "err", "=", "handler", ".", "close", "(", ")", "\n", "handler", ".", "<mask>", ".", "Unl...
19,973
all-19974
[ "CreateReview", "adds", "a", "review", "to", "a", "PR" ]
[ "func", "(", "f", "*", "FakeClient", ")", "CreateReview", "(", "org", ",", "repo", "string", ",", "number", "int", ",", "r", "github", ".", "DraftReview", ")", "error", "{", "f", ".", "Reviews", "[", "number", "]", "=", "append", "(", "f", ".", "Re...
19,974
all-19975
[ "joinExistingNamespaces", "gets", "all", "the", "namespace", "paths", "specified", "for", "the", "container", "and", "does", "a", "setns", "on", "the", "namespace", "fd", "so", "that", "the", "current", "process", "joins", "the", "namespace", "." ]
[ "func", "joinExistingNamespaces", "(", "namespaces", "[", "]", "configs", ".", "Namespace", ")", "error", "{", "for", "_", ",", "ns", ":=", "range", "namespaces", "{", "if", "ns", ".", "<mask>", "!=", "\"", "\"", "{", "f", ",", "err", ":=", "os", "."...
19,975
all-19976
[ "HasLogQuery", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "ScatterplotRequest", ")", "HasLogQuery", "(", ")", "bool", "{", "if", "s", "!=", "nil", "&&", "s", ".", "LogQuery", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
19,976
all-19977
[ "explainCmd", "prints", "a", "brief", "description", "of", "a", "single", "command", "." ]
[ "func", "explain", "(", "w", "<mask>", ".", "Writer", ",", "cmd", "Command", ")", "{", "fmt", ".", "Fprintf", "(", "w", ",", "\"", "\"", ",", "cmd", ".", "Usage", "(", ")", ")", "\n", "subflags", ":=", "flag", ".", "NewFlagSet", "(", "cmd", ".", ...
19,977
all-19978
[ "Reply", "sends", "a", "successful", "response", "with", "a", "result", "." ]
[ "func", "(", "c", "*", "Conn", ")", "Reply", "(", "ctx", "context", ".", "Context", ",", "id", "ID", ",", "result", "interface", "{", "}", ")", "error", "{", "resp", ":=", "&", "Response", "{", "ID", ":", "id", "}", "\n", "if", "err", ":=", "re...
19,978
all-19979
[ "Do", "executes", "DOM", ".", "getFileInfo", "against", "the", "provided", "context", ".", "returns", ":", "path" ]
[ "func", "(", "p", "*", "GetFileInfoParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "path", "string", ",", "err", "error", ")", "{", "// execute", "var", "res", "GetFileInfoReturns", "\n", "err", "=", "cdp", ".", "Execute", "(", "ctx...
19,979
all-19980
[ "Build", "calls", "Package", ".", "Build", "for", "each", "package", "in", "prog", ".", "Building", "occurs", "in", "parallel", "unless", "the", "BuildSerially", "mode", "flag", "was", "set", ".", "Build", "is", "intended", "for", "whole", "-", "program", ...
[ "func", "(", "prog", "*", "Program", ")", "Build", "(", ")", "{", "var", "wg", "sync", ".", "WaitGroup", "\n", "for", "_", ",", "p", ":=", "range", "prog", ".", "packages", "{", "if", "prog", ".", "<mask>", "&", "BuildSerially", "!=", "0", "{", "...
19,980
all-19981
[ "UnsafePut", "must", "be", "called", "holding", "the", "lock", "on", "the", "tx", "." ]
[ "func", "(", "t", "*", "batchTx", ")", "UnsafePut", "(", "bucketName", "[", "]", "byte", ",", "key", "[", "]", "byte", ",", "<mask>", "[", "]", "byte", ")", "{", "t", ".", "unsafePut", "(", "bucketName", ",", "key", ",", "value", ",", "false", ")...
19,981
all-19982
[ "SetUrgencyHint", "is", "a", "wrapper", "around", "gtk_window_set_urgency_hint", "()", "." ]
[ "func", "(", "v", "*", "Window", ")", "SetUrgencyHint", "(", "<mask>", "bool", ")", "{", "C", ".", "gtk_window_set_urgency_hint", "(", "v", ".", "native", "(", ")", ",", "gbool", "(", "setting", ")", ")", "\n", "}" ]
19,982
all-19983
[ "UnmarkDay", "is", "a", "wrapper", "around", "gtk_calendar_unmark_day", "()", "." ]
[ "func", "(", "v", "*", "Calendar", ")", "UnmarkDay", "(", "<mask>", "uint", ")", "{", "C", ".", "gtk_calendar_unmark_day", "(", "v", ".", "native", "(", ")", ",", "C", ".", "guint", "(", "day", ")", ")", "\n", "}" ]
19,983
all-19984
[ "Read", "behaves", "like", "io", ".", "Reader", ".", "Read", "but", "will", "retry", "on", "EAGAIN" ]
[ "func", "(", "er", "Reader", ")", "Read", "(", "p", "[", "]", "<mask>", ")", "(", "int", ",", "error", ")", "{", "again", ":", "n", ",", "err", ":=", "er", ".", "Reader", ".", "Read", "(", "p", ")", "\n", "if", "err", "==", "nil", "{", "ret...
19,984
all-19985
[ "KeyEqual", "checks", "whether", "two" ]
[ "func", "KeyEqual", "(", "k1", ",", "k2", "Key", ")", "bool", "{", "if", "k1", "==", "k2", "{", "return", "true", "\n", "}", "\n\n", "b1", ",", "err1", ":=", "k1", ".", "Bytes", "(", ")", "\n", "b2", ",", "err2", ":=", "k2", ".", "Bytes", "("...
19,985
all-19986
[ "HasPrivateKeyID", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "i", "*", "IntegrationGCPCreateRequest", ")", "HasPrivateKeyID", "(", ")", "bool", "{", "if", "i", "!=", "nil", "&&", "i", ".", "PrivateKeyID", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
19,986
all-19987
[ "/", "*", "Generate", "a", "list", "of", "names", "for", "which", "the", "certificate", "will", "be", "valid", ".", "This", "will", "include", "the", "hostname", "and", "ip", "address" ]
[ "func", "mynames", "(", ")", "(", "[", "]", "string", ",", "error", ")", "{", "h", ",", "err", ":=", "<mask>", ".", "Hostname", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "\n\n", "ret", ":=", "[", "...
19,987
all-19988
[ "SetMeta", "sets", "r", ".", "Meta", "to", "the", "JSON", "representation", "of", "v", ".", "If", "JSON", "marshaling", "fails", "it", "returns", "an", "error", "." ]
[ "func", "(", "r", "*", "Request", ")", "SetMeta", "(", "v", "<mask>", "{", "}", ")", "error", "{", "b", ",", "err", ":=", "json", ".", "Marshal", "(", "v", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "r", ".", ...
19,988
all-19989
[ "MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "PostIRCMessageRequest", "is", "of", "type", "json", ".", "RawMessage", "..." ]
[ "func", "(", "this", "*", "PostIRCMessageRequest", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "x", ":=", "json", ".", "RawMessage", "(", "*", "this", ")", "\n", "return", "(", "&", "x", ")", ".", "MarshalJSON", "...
19,989
all-19990
[ "ensureImageIsResolved", "sets", "up", "s", ".", "docker", "and", "s", ".", "imageStreamImageName" ]
[ "func", "(", "s", "*", "openshiftImageSource", ")", "ensureImageIsResolved", "(", "ctx", "context", ".", "Context", ")", "error", "{", "if", "s", ".", "docker", "!=", "nil", "{", "return", "nil", "\n", "}", "\n\n", "// FIXME: validate components per validation.I...
19,990
all-19991
[ "GetFillMin", "returns", "the", "FillMin", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "s", "*", "Style", ")", "GetFillMin", "(", ")", "json", ".", "Number", "{", "if", "s", "==", "nil", "||", "s", ".", "FillMin", "==", "nil", "{", "<mask>", "\"", "\"", "\n", "}", "\n", "return", "*", "s", ".", "FillMin", "\n", "}" ]
19,991
all-19992
[ "MoveHostsInto", "moves", "all", "of", "the", "supplied", "hosts", "into", "the", "cluster", ".", "All", "virtual", "machines", "are", "moved", "to", "the", "cluster", "s", "root", "resource", "pool", "and", "any", "resource", "pools", "on", "the", "host", ...
[ "func", "MoveHostsInto", "(", "cluster", "*", "object", ".", "ClusterComputeResource", ",", "hosts", "[", "]", "*", "object", ".", "HostSystem", ")", "error", "{", "var", "hsNames", "[", "]", "string", "\n", "var", "hsRefs", "[", "]", "types", ".", "Mana...
19,992
all-19993
[ "ID", "of", "the", "reference" ]
[ "func", "(", "r", "Ref", ")", "ID", "(", ")", "string", "{", "if", "refIF", ",", "<mask>", ":=", "r", "[", "\"", "\"", "]", ";", "ok", "{", "return", "strings", ".", "TrimPrefix", "(", "refIF", ".", "(", "string", ")", ",", "\"", "\"", ")", "...
19,993
all-19994
[ "MarshalJSON", "translates", "the", "raft", "status", "into", "JSON", ".", "TODO", ":", "try", "to", "simplify", "this", "by", "introducing", "ID", "type", "into", "raft" ]
[ "func", "(", "s", "Status", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "j", ":=", "fmt", ".", "Sprintf", "(", "`{\"id\":\"%x\",\"term\":%d,\"vote\":\"%x\",\"commit\":%d,\"lead\":\"%x\",\"raftState\":%q,\"applied\":%d,\"progress\":{`", "...
19,994
all-19995
[ "stepCandidate", "is", "shared", "by", "StateCandidate", "and", "StatePreCandidate", ";", "the", "difference", "is", "whether", "they", "respond", "to", "MsgVoteResp", "or", "MsgPreVoteResp", "." ]
[ "func", "stepCandidate", "(", "r", "*", "raft", ",", "m", "pb", ".", "Message", ")", "error", "{", "// Only handle vote responses corresponding to our candidacy (while in", "// StateCandidate, we may get stale MsgPreVoteResp messages in this term from", "// our pre-candidate state)."...
19,995
all-19996
[ "GetFileReader", "returns", "a", "reader", "for", "reading", "a", "given", "file" ]
[ "func", "(", "a", "*", "Archive", ")", "GetFileReader", "(", "name", "string", ")", "(", "io", ".", "ReadCloser", ",", "error", ")", "{", "found", ":=", "false", "\n", "for", "_", ",", "e", ":=", "<mask>", "a", ".", "Entries", "{", "if", "e", "."...
19,996
all-19997
[ "SetPersistentMenu", "sets", "a", "Persistent", "Menu", "is", "a", "persistent", "menu", "that", "is", "always", "available", "to", "the", "user", ".", "This", "menu", "should", "contain", "top", "-", "level", "actions", "that", "users", "can", "enact", "at"...
[ "func", "(", "m", "*", "Messenger", ")", "SetPersistentMenu", "(", "buttons", "[", "]", "<mask>", ".", "Button", ")", "error", "{", "if", "len", "(", "buttons", ")", ">", "5", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ")", "\n", "}", ...
19,997
all-19998
[ "EnvironmentBrowserFromReference", "loads", "an", "environment", "browser", "for", "the", "specific", "compute", "resource", "reference", ".", "The", "reference", "can", "be", "either", "a", "standalone", "host", "or", "cluster", ".", "As", "an", "added", "safety"...
[ "func", "EnvironmentBrowserFromReference", "(", "client", "*", "govmomi", ".", "Client", ",", "ref", "types", ".", "ManagedObjectReference", ")", "(", "*", "envbrowse", ".", "EnvironmentBrowser", ",", "error", ")", "{", "cr", ",", "err", ":=", "BaseFromReference...
19,998
all-19999
[ "Artifact", "constructs", "a", "GCS", "artifact", "from", "the", "given", "GCS", "bucket", "and", "key", ".", "Uses", "the", "golang", "GCS", "library", "to", "get", "read", "handles", ".", "If", "the", "artifactName", "is", "not", "a", "valid", "key", "...
[ "func", "(", "af", "*", "GCSArtifactFetcher", ")", "artifact", "(", "key", "string", ",", "artifactName", "string", ",", "sizeLimit", "int64", ")", "(", "lenses", ".", "Artifact", ",", "error", ")", "{", "src", ",", "err", ":=", "newGCSJobSource", "(", "...
19,999
all-20000
[ "ns", ".", "signatureTopLevel", "returns", "an", "URL", "string", "configured", "in", "ns", "for", "ref", "for", "write", "access", "if", "“write”", ".", "or", "if", "nothing", "has", "been", "configured", "." ]
[ "func", "(", "ns", "registryNamespace", ")", "signatureTopLevel", "(", "write", "bool", ")", "string", "{", "if", "<mask>", "&&", "ns", ".", "SigStoreStaging", "!=", "\"", "\"", "{", "logrus", ".", "Debugf", "(", "` Using %s`", ",", "ns", ".", "SigStoreSt...