id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
4,400
all-4401
[ "FilterAttrTopN", "creates", "a", "TopN", "query", "with", "the", "given", "item", "count", "row", "attribute", "name", "and", "filter", "values", "for", "that", "field", "The", "attrName", "and", "attrValues", "arguments", "work", "together", "to", "only", "r...
[ "func", "(", "f", "*", "<mask>", ")", "FilterAttrTopN", "(", "n", "uint64", ",", "row", "*", "PQLRowQuery", ",", "attrName", "string", ",", "attrValues", "...", "interface", "{", "}", ")", "*", "PQLRowQuery", "{", "return", "f", ".", "filterAttrTopN", "(...
4,401
all-4402
[ "ForLocalInspectionWithPreparedStmts", "is", "the", "same", "as", "ForLocalInspection", "but", "it", "also", "prepares", "the", "statements", "used", "in", "auto", "-", "generated", "database", "code", "." ]
[ "func", "ForLocalInspectionWithPreparedStmts", "(", "db", "*", "sql", ".", "DB", ")", "(", "*", "Cluster", ",", "error", ")", "{", "c", ":=", "ForLocalInspection", "(", "db", ")", "\n\n", "stmts", ",", "err", ":=", "cluster", ".", "PrepareStmts", "(", "c...
4,402
all-4403
[ "Del", "deletes", "header", "with", "the", "given", "key", "." ]
[ "func", "(", "h", "*", "RequestHeader", ")", "Del", "(", "<mask>", "string", ")", "{", "h", ".", "parseRawHeaders", "(", ")", "\n", "k", ":=", "getHeaderKeyBytes", "(", "&", "h", ".", "bufKV", ",", "key", ",", "h", ".", "disableNormalizing", ")", "\n...
4,403
all-4404
[ "legacyEndpointsFromService", "tries", "to", "retrieve", "Endpoints", "from", "Services", "annotated", "with", "legacy", "annotations", "." ]
[ "func", "legacyEndpointsFromService", "(", "svc", "*", "v1", ".", "Service", ",", "compatibility", "string", ")", "[", "]", "*", "endpoint", ".", "Endpoint", "{", "<mask>", "compatibility", "{", "case", "\"", "\"", ":", "return", "legacyEndpointsFromMateService"...
4,404
all-4405
[ "WithRoute", "adds", "the", "route", "to", "the", "delete", "apps", "app", "routes", "route", "params" ]
[ "func", "(", "o", "*", "DeleteAppsAppRoutesRouteParams", ")", "WithRoute", "(", "route", "string", ")", "*", "DeleteAppsAppRoutesRouteParams", "{", "o", ".", "SetRoute", "(", "<mask>", ")", "\n", "return", "o", "\n", "}" ]
4,405
all-4406
[ "NextEvent", "will", "return", "the", "next", "notification", "from", "the", "backend", "as", "it", "occurs", "and", "will", "send", "it", "to", "the", "correct", "channel", "." ]
[ "func", "(", "s", "*", "Session", ")", "NextEvent", "(", "channel", "NotificationsChannel", ",", "lastEventID", "string", ")", "*", "Error", "{", "currentURL", ":=", "s", ".", "URL", "+", "\"", "\"", "\n", "if", "lastEventID", "!=", "\"", "\"", "{", "c...
4,406
all-4407
[ "GetOperations", "retrieves", "the", "Operations", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "TransactionMeta", ")", "GetOperations", "(", ")", "(", "result", "[", "]", "OperationMeta", ",", "ok", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "V", ")", ")", "\n\n", "if...
4,407
all-4408
[ "keyIsExpired", "deletes", "the", "key", "from", "cache", "if", "it", "is", "expired" ]
[ "func", "(", "mkc", "*", "memoryKeyCacher", ")", "keyIsExpired", "(", "keyID", "string", ")", "bool", "{", "if", "time", ".", "Now", "(", ")", ".", "After", "(", "mkc", ".", "entries", "[", "keyID", "]", ".", "addedAt", ".", "Add", "(", "mkc", ".",...
4,408
all-4409
[ "GetUser", "fetches", "a", "user", "if", "authenticated", "and", "exists" ]
[ "func", "GetUser", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "{", "w", ".", "Header", "(", ")", ".", "<mask>", "(", "\"", "\"", ",", "\"", "\"", ")", "\n", "w", ".", "Header", "(", ")", ".", "Set", "...
4,409
all-4410
[ "post", "puts", "a", "watch", "response", "on", "the", "watcher", "s", "proxy", "stream", "channel" ]
[ "func", "(", "w", "*", "watcher", ")", "post", "(", "wr", "*", "pb", ".", "WatchResponse", ")", "bool", "{", "select", "{", "case", "w", ".", "wps", ".", "watchCh", "<-", "wr", ":", "case", "<-", "time", ".", "After", "(", "50", "*", "<mask>", ...
4,410
all-4411
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "ProfileNode", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoProfiler16", "(", "&", "r",...
4,411
all-4412
[ "SeekPathMatch", "seeks", "an", "entry", "which", "matches", "path", "or", "returns", "nil", "nil", "when", "no", "match", "is", "found", ".", "Returned", "key", "may", "be", "path", "or", "a", "matching", "dynamic", "path", ".", "Matches", "are", "exclusi...
[ "func", "SeekPathMatch", "(", "c", "*", "bolt", ".", "Cursor", ",", "path", "[", "]", "byte", ")", "(", "[", "]", "byte", ",", "[", "]", "byte", ")", "{", "// Validation", "if", "len", "(", "path", ")", "==", "0", "{", "return", "nil", ",", "ni...
4,412
all-4413
[ "SetHeader", "sets", "given", "header", "name", "to", "the", "given", "value", ".", "If", "the", "header", "exists", "already", "all", "existing", "values", "are", "replaced", "." ]
[ "func", "(", "e", "*", "Envelope", ")", "SetHeader", "(", "name", "string", ",", "value", "[", "]", "string", ")", "error", "{", "if", "name", "==", "\"", "\"", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ")", "\n", "}", "\n\n", "for", ...
4,413
all-4414
[ "Normalize", "all", "auth", "types", "into", "a", "uniform", "dockerAuths", "type", ".", "On", "error", "any", "appropriate", "information", "will", "be", "logged", "and", "an", "empty", "dockerAuths", "will", "be", "returned" ]
[ "func", "parseAuthData", "(", "authType", "string", ",", "authData", "json", ".", "RawMessage", ")", "dockerAuths", "{", "intermediateAuthData", ":=", "make", "(", "dockerAuths", ")", "\n", "switch", "authType", "{", "case", "\"", "\"", ":", "err", ":=", "js...
4,414
all-4415
[ "run", "starts", "async", "log", "records", "processing", "." ]
[ "func", "(", "logger", "*", "Logger", ")", "run", "(", ")", "{", "defer", "func", "(", ")", "{", "logger", ".", "WaitForUnprocessedRecords", "(", ")", "\n", "logger", ".", "closeHandlers", "(", ")", "\n", "}", "(", ")", "\n", "recordLoop", ":", "for"...
4,415
all-4416
[ "NewCheckBundle", "returns", "new", "CheckBundle", "(", "with", "defaults", "if", "applicable", ")" ]
[ "func", "NewCheckBundle", "(", ")", "*", "CheckBundle", "{", "return", "&", "CheckBundle", "{", "Config", ":", "make", "(", "CheckBundleConfig", ",", "config", ".", "DefaultConfigOptionsSize", ")", ",", "MetricLimit", ":", "config", ".", "DefaultCheckBundleMetricL...
4,416
all-4417
[ "GtkWidget", "*", "gtk_popover_get_default_widget", "(", "GtkPopover", "*", "popover", ")", ";" ]
[ "func", "(", "p", "*", "Popover", ")", "GetDefaultWidget", "(", ")", "*", "Widget", "{", "w", ":=", "C", ".", "gtk_popover_get_default_widget", "(", "p", ".", "native", "(", ")", ")", "\n", "if", "w", "==", "nil", "{", "<mask>", "nil", "\n", "}", "...
4,417
all-4418
[ "IsGamepadButtonPressed", "returns", "the", "boolean", "indicating", "the", "given", "button", "of", "the", "gamepad", "(", "id", ")", "is", "pressed", "or", "not", ".", "IsGamepadButtonPressed", "is", "concurrent", "-", "safe", ".", "The", "relationships", "bet...
[ "func", "IsGamepadButtonPressed", "(", "<mask>", "int", ",", "button", "GamepadButton", ")", "bool", "{", "return", "uiDriver", "(", ")", ".", "Input", "(", ")", ".", "IsGamepadButtonPressed", "(", "id", ",", "driver", ".", "GamepadButton", "(", "button", ")...
4,418
all-4419
[ "NewEndpointCommand", "returns", "the", "cobra", "command", "for", "endpoint", "." ]
[ "func", "NewEndpointCommand", "(", ")", "*", "cobra", ".", "Command", "{", "ec", ":=", "&", "cobra", ".", "Command", "{", "Use", ":", "\"", "\"", ",", "Short", ":", "\"", "\"", ",", "}", "\n\n", "ec", ".", "PersistentFlags", "(", ")", ".", "BoolVar...
4,419
all-4420
[ "FieldByName", "returns", "the", "field", "with", "the", "given", "name", "if", "any", "." ]
[ "func", "(", "m", "*", "Mapping", ")", "FieldByName", "(", "name", "string", ")", "*", "Field", "{", "for", "_", ",", "field", ":=", "range", "m", ".", "Fields", "{", "if", "field", ".", "Name", "==", "name", "{", "return", "<mask>", "\n", "}", "...
4,420
all-4421
[ "QuoteMeta", "returns", "a", "string", "that", "quotes", "all", "regular", "expression", "metacharacters", "inside", "the", "argument", "text", ";", "the", "returned", "string", "is", "a", "regular", "expression", "matching", "the", "literal", "text", ".", "For"...
[ "func", "QuoteMeta", "(", "s", "string", ")", "string", "{", "b", ":=", "make", "(", "[", "]", "byte", ",", "2", "*", "len", "(", "s", ")", ")", "\n\n", "// A byte loop is correct because all metacharacters are ASCII.", "j", ":=", "0", "\n", "for", "i", ...
4,421
all-4422
[ "largeDataPagedQuery", "builds", "a", "job", "and", "inserts", "it", "into", "the", "job", "queue", "allowing", "the", "flexibility", "to", "set", "the", "custom", "AllowLargeResults", "flag", "for", "the", "job" ]
[ "func", "(", "c", "*", "<mask>", ")", "largeDataPagedQuery", "(", "service", "*", "bigquery", ".", "Service", ",", "pageSize", "int", ",", "dataset", ",", "project", ",", "queryStr", "string", ",", "dataChan", "chan", "Data", ")", "(", "[", "]", "[", "...
4,422
all-4423
[ "BackwardLines", "is", "a", "wrapper", "around", "gtk_text_iter_backward_lines", "()", "." ]
[ "func", "(", "v", "*", "TextIter", ")", "BackwardLines", "(", "v1", "int", ")", "bool", "{", "<mask>", "gobool", "(", "C", ".", "gtk_text_iter_backward_lines", "(", "v", ".", "native", "(", ")", ",", "C", ".", "gint", "(", "v1", ")", ")", ")", "\n"...
4,423
all-4424
[ "Wrap", "wraps", "the", "logger", "in", "a", "Namespaced", "logger", "and", "enables", "the", "specified", "namespaces", ".", "See", "SetNamespaces", "for", "information", "on", "how", "to", "set", "the", "namspaces" ]
[ "func", "Wrap", "(", "ctx", "<mask>", ".", "Interface", ",", "namespaces", "...", "string", ")", "*", "Namespaced", "{", "return", "&", "Namespaced", "{", "Interface", ":", "ctx", ",", "namespaces", ":", "&", "ns", "{", "namespaces", ":", "namespaces", "...
4,424
all-4425
[ "RegisterFailHandlerWithT", "ensures", "that", "the", "given", "types", ".", "TWithHelper", "and", "fail", "handler", "are", "used", "globally", "." ]
[ "func", "RegisterFailHandlerWithT", "(", "t", "<mask>", ".", "TWithHelper", ",", "handler", "types", ".", "GomegaFailHandler", ")", "{", "if", "handler", "==", "nil", "{", "globalFailWrapper", "=", "nil", "\n", "return", "\n", "}", "\n\n", "globalFailWrapper", ...
4,425
all-4426
[ "GetHTML", "returns", "the", "HTML", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "w", "*", "Widget", ")", "GetHTML", "(", ")", "string", "{", "if", "w", "==", "nil", "||", "w", ".", "<mask>", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "w", ".", "HTML", "\n", "}" ]
4,426
all-4427
[ "Snapshot", "is", "used", "to", "manually", "force", "Raft", "to", "take", "a", "snapshot", ".", "Returns", "a", "future", "that", "can", "be", "used", "to", "block", "until", "complete", "and", "that", "contains", "a", "function", "that", "can", "be", "...
[ "func", "(", "r", "*", "Raft", ")", "Snapshot", "(", ")", "SnapshotFuture", "{", "<mask>", ":=", "&", "userSnapshotFuture", "{", "}", "\n", "future", ".", "init", "(", ")", "\n", "select", "{", "case", "r", ".", "userSnapshotCh", "<-", "future", ":", ...
4,427
all-4428
[ "Retrieves", "a", "Task", "s", "PIDMode" ]
[ "func", "(", "<mask>", "*", "Task", ")", "getPIDMode", "(", ")", "string", "{", "task", ".", "lock", ".", "RLock", "(", ")", "\n", "defer", "task", ".", "lock", ".", "RUnlock", "(", ")", "\n\n", "return", "task", ".", "PIDMode", "\n", "}" ]
4,428
all-4429
[ "ServeFileContent", "serves", "given", "file", "as", "content", "to", "response", "." ]
[ "func", "(", "ctx", "*", "Context", ")", "ServeFileContent", "(", "file", "string", ",", "names", "...", "string", ")", "{", "var", "name", "string", "\n", "if", "len", "(", "names", ")", ">", "0", "{", "name", "=", "names", "[", "0", "]", "\n", ...
4,429
all-4430
[ "PromptCmd", "represents", "the", "kubicorn", "interactive", "prompt", "." ]
[ "func", "PromptCmd", "(", ")", "*", "cobra", ".", "Command", "{", "var", "promptCmd", "=", "&", "cobra", ".", "Command", "{", "Use", ":", "\"", "\"", ",", "Short", ":", "\"", "\"", ",", "Long", ":", "`Use this command to use the Kubicron API via a shell prom...
4,430
all-4431
[ "command", "creates", "an", "exec", ".", "Cmd", "with", "Stderr", "piped", "to", "os", ".", "Stderr", "and", "returns", "the", "args" ]
[ "func", "<mask>", "(", "bin", "string", ",", "args", "...", "string", ")", "(", "[", "]", "string", ",", "*", "exec", ".", "Cmd", ")", "{", "cmd", ":=", "exec", ".", "Command", "(", "bin", ",", "args", "...", ")", "\n", "cmd", ".", "Stderr", "=...
4,431
all-4432
[ "SetLength", "()", "is", "a", "wrapper", "around", "gtk_print_settings_set_length", "()", "." ]
[ "func", "(", "ps", "*", "PrintSettings", ")", "SetLength", "(", "key", "string", ",", "<mask>", "float64", ",", "unit", "Unit", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "key", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Poin...
4,432
all-4433
[ "Start", "an", "HTTP", "server", "for", "the", "endpoint", "associated", "with", "the", "given", "code", "." ]
[ "func", "(", "e", "*", "Endpoints", ")", "serveHTTP", "(", "kind", "kind", ")", "{", "listener", ":=", "e", ".", "listeners", "[", "kind", "]", "\n\n", "if", "listener", "==", "nil", "{", "return", "\n", "}", "\n\n", "ctx", ":=", "log", ".", "Ctx",...
4,433
all-4434
[ "MakeUniq", "makes", "a", "unique", "name", "given", "a", "prefix", "and", "a", "set", "of", "names", "." ]
[ "func", "MakeUniq", "(", "<mask>", "string", ",", "taken", "[", "]", "string", ")", "string", "{", "idx", ":=", "1", "\n", "uniq", ":=", "base", "\n", "inuse", ":=", "true", "\n", "for", "inuse", "{", "inuse", "=", "false", "\n", "for", "_", ",", ...
4,434
all-4435
[ "GetPullRequest", "gets", "a", "pull", "request", ".", "See", "https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "pulls", "/", "#get", "-", "a", "-", "single", "-", "pull", "-", "request" ]
[ "func", "(", "c", "*", "Client", ")", "GetPullRequest", "(", "org", ",", "repo", "string", ",", "number", "int", ")", "(", "*", "PullRequest", ",", "error", ")", "{", "c", ".", "log", "(", "\"", "\"", ",", "org", ",", "repo", ",", "number", ")", ...
4,435
all-4436
[ "DumpProfile", "dumps", "the", "profile", "to", "the", "given", "file", "destination", ".", "If", "the", "destination", "is", "-", "it", "instead", "writes", "to", "stdout", "." ]
[ "func", "DumpProfile", "(", "destination", "string", ",", "profile", "[", "]", "*", "cover", ".", "Profile", ")", "error", "{", "var", "output", "io", ".", "Writer", "\n", "if", "destination", "==", "\"", "\"", "{", "<mask>", "=", "os", ".", "Stdout", ...
4,436
all-4437
[ "GetValueOk", "returns", "a", "tuple", "with", "the", "Value", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "WidgetConditionalFormat", ")", "GetValueOk", "(", ")", "(", "float64", ",", "bool", ")", "{", "if", "w", "==", "nil", "||", "w", ".", "Value", "==", "nil", "{", "return", "0", ",", "false", "\n", "}", "\n", "return", "*", ...
4,437
all-4438
[ "GetTimer", "gets", "(", "and", "creates", "if", "necessary", ")", "the", "Timer", "for", "a", "given", "code", "section", "." ]
[ "func", "(", "t", "*", "TimerGroup", ")", "GetTimer", "(", "name", "fmt", ".", "Stringer", ")", "*", "Timer", "{", "if", "<mask>", ",", "exists", ":=", "t", ".", "timers", "[", "name", "]", ";", "exists", "{", "return", "timer", "\n", "}", "\n", ...
4,438
all-4439
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "Frame", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp2", "(", "&", "w", ",", "v", ")", "\n", "retu...
4,439
all-4440
[ "GetDesiredStatus", "safely", "returns", "the", "desired", "status", "of", "the", "task" ]
[ "func", "(", "cgroup", "*", "CgroupResource", ")", "GetDesiredStatus", "(", ")", "resourcestatus", ".", "ResourceStatus", "{", "cgroup", ".", "<mask>", ".", "RLock", "(", ")", "\n", "defer", "cgroup", ".", "lock", ".", "RUnlock", "(", ")", "\n\n", "return"...
4,440
all-4441
[ "Run", "runs", "the", "query", "in", "the", "given", "context", "." ]
[ "func", "(", "q", "*", "Query", ")", "Run", "(", "c", "context", ".", "Context", ")", "*", "Iterator", "{", "if", "q", ".", "err", "!=", "nil", "{", "return", "&", "Iterator", "{", "err", ":", "q", ".", "err", "}", "\n", "}", "\n", "t", ":=",...
4,441
all-4442
[ "NewClient", "returns", "a", "new", "SCRAM", "-", "*", "client", "with", "the", "provided", "hash", "algorithm", ".", "For", "SCRAM", "-", "SHA", "-", "1", "for", "example", "use", ":", "client", ":", "=", "scram", ".", "NewClient", "(", "sha1", ".", ...
[ "func", "NewClient", "(", "newHash", "func", "(", ")", "<mask>", ".", "Hash", ",", "user", ",", "pass", "string", ")", "*", "Client", "{", "c", ":=", "&", "Client", "{", "newHash", ":", "newHash", ",", "user", ":", "user", ",", "pass", ":", "pass",...
4,442
all-4443
[ "IsReady", "gives", "a", "boolean", "response", "that", "informs", "the", "caller", "if", "the", "websocket", "connection", "is", "fully", "established", "." ]
[ "func", "(", "cs", "*", "ClientServerImpl", ")", "IsReady", "(", ")", "bool", "{", "cs", ".", "writeLock", ".", "RLock", "(", ")", "\n", "defer", "cs", ".", "writeLock", ".", "RUnlock", "(", ")", "\n\n", "return", "cs", ".", "<mask>", "!=", "nil", ...
4,443
all-4444
[ "ParseReference", "converts", "a", "string", "which", "should", "not", "start", "with", "the", "ImageTransport", ".", "Name", "prefix", "into", "an", "ImageReference", "." ]
[ "func", "(", "t", "ociTransport", ")", "ParseReference", "(", "reference", "string", ")", "(", "<mask>", ".", "ImageReference", ",", "error", ")", "{", "return", "ParseReference", "(", "reference", ")", "\n", "}" ]
4,444
all-4445
[ "Locator", "returns", "a", "locator", "for", "the", "given", "resource" ]
[ "func", "(", "r", "*", "<mask>", ")", "Locator", "(", "api", "*", "API", ")", "*", "RouteLocator", "{", "for", "_", ",", "l", ":=", "range", "r", ".", "Links", "{", "if", "l", "[", "\"", "\"", "]", "==", "\"", "\"", "{", "return", "api", ".",...
4,445
all-4446
[ "SetUint64", "implements", "the", "StableStore", "interface", "." ]
[ "func", "(", "i", "*", "InmemStore", ")", "SetUint64", "(", "key", "[", "]", "byte", ",", "val", "uint64", ")", "error", "{", "i", ".", "l", ".", "Lock", "(", ")", "\n", "defer", "i", ".", "l", ".", "Unlock", "(", ")", "\n", "i", ".", "kvInt"...
4,446
all-4447
[ "WaitForSingleObject", "waits", "for", "the", "passed", "handle", "to", "be", "signaled", ".", "It", "returns", "true", "if", "the", "handle", "was", "signaled", ";", "false", "otherwise", ".", "See", "https", ":", "//", "msdn", ".", "microsoft", ".", "com...
[ "func", "WaitForSingleObject", "(", "handle", "uintptr", ",", "msWait", "uint32", ")", "(", "bool", ",", "error", ")", "{", "r1", ",", "_", ",", "err", ":=", "waitForSingleObjectProc", ".", "Call", "(", "handle", ",", "uintptr", "(", "uint32", "(", "msWa...
4,447
all-4448
[ "WithDepth", "the", "maximum", "depth", "at", "which", "Node", "children", "should", "be", "retrieved", "defaults", "to", "1", ".", "Use", "-", "1", "for", "the", "entire", "subtree", "or", "provide", "an", "integer", "larger", "than", "0", "." ]
[ "func", "(", "p", "GetEventListenersParams", ")", "WithDepth", "(", "<mask>", "int64", ")", "*", "GetEventListenersParams", "{", "p", ".", "Depth", "=", "depth", "\n", "return", "&", "p", "\n", "}" ]
4,448
all-4449
[ "Params", "returns", "value", "of", "given", "param", "name", ".", "e", ".", "g", ".", "ctx", ".", "Params", "(", ":", "uid", ")", "or", "ctx", ".", "Params", "(", "uid", ")" ]
[ "func", "(", "ctx", "*", "Context", ")", "Params", "(", "name", "string", ")", "string", "{", "if", "len", "(", "name", ")", "==", "0", "{", "return", "\"", "\"", "\n", "}", "\n", "if", "len", "(", "name", ")", ">", "1", "&&", "name", "[", "0...
4,449
all-4450
[ "Usage", "$", "go", "-", "bindata", "data", "/", "$", "go", "build", "&&", ".", "/", "bindata" ]
[ "func", "main", "(", ")", "{", "r", ":=", "gin", ".", "Default", "(", ")", "\n\n", "r", ".", "Use", "(", "static", ".", "Serve", "(", "\"", "\"", ",", "BinaryFileSystem", "(", "\"", "\"", ")", ")", ")", "\n", "r", ".", "<mask>", "(", "\"", "\...
4,450
all-4451
[ "DropTable", "removes", "the", "table", "from", "database", ".", "If", "table", "isn", "t", "direct", "/", "indirect", "struct", "it", "returns", "error", "." ]
[ "func", "(", "db", "*", "DB", ")", "DropTable", "(", "table", "interface", "{", "}", ")", "error", "{", "_", ",", "_", ",", "tableName", ",", "err", ":=", "db", ".", "tableValueOf", "(", "\"", "\"", ",", "table", ")", "\n", "if", "err", "!=", "...
4,451
all-4452
[ "gboolean", "g_action_parse_detailed_name", "(", "const", "gchar", "*", "detailed_name", "gchar", "**", "action_name", "GVariant", "**", "target_value", "GError", "**", "error", ")", ";", "gchar", "*", "g_action_print_detailed_name", "(", "const", "gchar", "*", "act...
[ "func", "(", "v", "*", "<mask>", ")", "native", "(", ")", "*", "C", ".", "GAction", "{", "if", "v", "==", "nil", "||", "v", ".", "GObject", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "return", "C", ".", "toGAction", "(", "unsafe", ".",...
4,452
all-4453
[ "Run", "executes", "overseer", "if", "an", "error", "is", "encountered", "overseer", "fallsback", "to", "running", "the", "program", "directly", "(", "unless", "Required", "is", "set", ")", "." ]
[ "func", "Run", "(", "c", "Config", ")", "{", "err", ":=", "runErr", "(", "&", "c", ")", "\n", "if", "err", "!=", "nil", "{", "if", "c", ".", "Required", "{", "log", ".", "Fatalf", "(", "\"", "\"", ",", "err", ")", "\n", "}", "else", "if", "...
4,453
all-4454
[ "Err", "returns", "a", "non", "-", "nil", "error", "value", "after", "Done", "is", "closed", "successive", "calls", "to", "Err", "return", "the", "same", "error", ".", "If", "Done", "is", "not", "yet", "closed", "Err", "returns", "nil", ".", "If", "Don...
[ "func", "(", "ctx", "*", "RequestCtx", ")", "Err", "(", ")", "error", "{", "select", "{", "case", "<-", "ctx", ".", "s", ".", "done", ":", "return", "context", ".", "Canceled", "\n", "<mask>", ":", "return", "nil", "\n", "}", "\n", "}" ]
4,454
all-4455
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "StyleSheetHeader", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss3", "(", "&", "r", ...
4,455
all-4456
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "SetWebLifecycleStateParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage6", "(", "...
4,456
all-4457
[ "HasOptions", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "m", "*", "Monitor", ")", "HasOptions", "(", ")", "bool", "{", "if", "m", "!=", "nil", "&&", "m", ".", "Options", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
4,457
all-4458
[ "State", "returns", "a", "slice", "of", "Notifications", "representing", "the", "files", "being", "watched", "and", "their", "last", "event", "." ]
[ "func", "(", "w", "*", "Watcher", ")", "State", "(", ")", "(", "state", "[", "]", "Notification", ")", "{", "state", "=", "make", "(", "[", "]", "Notification", ",", "0", ")", "\n", "if", "w", ".", "paths", "==", "nil", "{", "return", "\n", "}"...
4,458
all-4459
[ "ImageSourceInsert", "inserts", "a", "new", "image", "source", "." ]
[ "func", "(", "c", "*", "Cluster", ")", "ImageSourceInsert", "(", "id", "int", ",", "server", "string", ",", "protocol", "string", ",", "certificate", "string", ",", "alias", "string", ")", "error", "{", "stmt", ":=", "`INSERT INTO images_source (image_id, server...
4,459
all-4460
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetContentQuadsReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom48", "(", "&", "w", ",", "v", ")...
4,460
all-4461
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetDOMBreakpointParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomdebugger3", "(", "&", "w", ",", ...
4,461
all-4462
[ "RegisterConfigConverter", "is", "used", "to", "register", "a", "new", "Masonable", "interface", "In", ":", "name", "-", "identifier", "for", "Masonable", "implementation", "fn", "-", "function", "that", "will", "parse", "the", "configuration", "string", "and", ...
[ "func", "(", "m", "*", "Mason", ")", "RegisterConfigConverter", "(", "name", "string", ",", "fn", "ConfigConverter", ")", "error", "{", "_", ",", "ok", ":=", "m", ".", "configConverters", "[", "<mask>", "]", "\n", "if", "ok", "{", "return", "fmt", ".",...
4,462
all-4463
[ "Offset", "determines", "the", "numerical", "offset", "for", "the", "given", "field" ]
[ "func", "(", "t", "*", "TupleType", ")", "Offset", "(", "<mask>", "string", ")", "(", "offset", "int", ",", "exists", "bool", ")", "{", "offset", ",", "exists", "=", "t", ".", "fields", "[", "field", "]", "\n", "return", "\n", "}" ]
4,463
all-4464
[ "HasAcceptEncoding", "returns", "true", "if", "the", "header", "contains", "the", "given", "Accept", "-", "Encoding", "value", "." ]
[ "func", "(", "h", "*", "RequestHeader", ")", "HasAcceptEncoding", "(", "acceptEncoding", "string", ")", "bool", "{", "h", ".", "bufKV", ".", "value", "=", "<mask>", "(", "h", ".", "bufKV", ".", "value", "[", ":", "0", "]", ",", "acceptEncoding", "...",...
4,464
all-4465
[ "Capabilities", "indicates", "an", "expected", "call", "of", "Capabilities" ]
[ "func", "(", "mr", "*", "MockCNIClientMockRecorder", ")", "Capabilities", "(", "arg0", "<mask>", "{", "}", ")", "*", "gomock", ".", "Call", "{", "return", "mr", ".", "mock", ".", "ctrl", ".", "RecordCallWithMethodType", "(", "mr", ".", "mock", ",", "\"",...
4,465
all-4466
[ "NewConsumer", "configures", "a", "new", "consumer", "instance", "." ]
[ "func", "NewConsumer", "(", "config", "ConsumerConfig", ")", "(", "c", "*", "Consumer", ",", "err", "error", ")", "{", "if", "err", "=", "config", ".", "validate", "(", ")", ";", "err", "!=", "nil", "{", "return", "\n", "}", "\n\n", "config", ".", ...
4,466
all-4467
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EmulateNetworkConditionsParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoNetwork58", "(", "&", "w", ",",...
4,467
all-4468
[ "Warn", "logs", "a", "message", "(", "with", "optional", "context", ")", "at", "the", "WARNING", "log", "level" ]
[ "func", "Warn", "(", "<mask>", "string", ",", "ctx", "...", "interface", "{", "}", ")", "{", "if", "Log", "!=", "nil", "{", "Log", ".", "Warn", "(", "msg", ",", "ctx", "...", ")", "\n", "}", "\n", "}" ]
4,468
all-4469
[ "ClientPreServiceUnsuspend", "activates", "service", "." ]
[ "func", "(", "w", "*", "Worker", ")", "ClientPreServiceUnsuspend", "(", "job", "*", "data", ".", "Job", ")", "error", "{", "logger", ":=", "w", ".", "logger", ".", "Add", "(", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "job", ")", "\n\n",...
4,469
all-4470
[ "String", "prints", "out", "the", "disk", "sub", "-", "resource", "s", "information", "including", "the", "ID", "at", "time", "of", "instantiation", "the", "path", "of", "the", "disk", "and", "the", "current", "device", "key", "and", "address", "." ]
[ "func", "(", "r", "*", "DiskSubresource", ")", "String", "(", ")", "string", "{", "p", ":=", "diskPathOrName", "(", "r", ".", "<mask>", ")", "\n", "if", "p", "==", "\"", "\"", "{", "p", "=", "\"", "\"", "\n", "}", "\n", "return", "fmt", ".", "S...
4,470
all-4471
[ "Scan", "reads", "from", "src", "into", "an", "Int64" ]
[ "func", "(", "t", "*", "Int64", ")", "Scan", "(", "src", "interface", "{", "}", ")", "error", "{", "val", ",", "<mask>", ":=", "src", ".", "(", "int64", ")", "\n", "if", "!", "ok", "{", "return", "errors", ".", "New", "(", "\"", "\"", ")", "\...
4,471
all-4472
[ "ParamsFloat64", "returns", "params", "result", "in", "int64", "type", ".", "e", ".", "g", ".", "ctx", ".", "ParamsFloat64", "(", ":", "uid", ")" ]
[ "func", "(", "ctx", "*", "Context", ")", "ParamsFloat64", "(", "<mask>", "string", ")", "float64", "{", "v", ",", "_", ":=", "strconv", ".", "ParseFloat", "(", "ctx", ".", "Params", "(", "name", ")", ",", "64", ")", "\n", "return", "v", "\n", "}" ]
4,472
all-4473
[ "GetLogoIconName", "is", "a", "wrapper", "around", "gtk_about_dialog_get_logo_icon_name", "()", "." ]
[ "func", "(", "v", "*", "AboutDialog", ")", "GetLogoIconName", "(", ")", "string", "{", "c", ":=", "C", ".", "gtk_about_dialog_get_logo_icon_name", "(", "v", ".", "native", "(", ")", ")", "\n", "return", "C", ".", "GoString", "(", "(", "*", "C", ".", ...
4,473
all-4474
[ "Gets", "a", "single", "uint64", "value", "from", "the", "specified", "cgroup", "file", "." ]
[ "func", "getCgroupParamUint", "(", "cgroupPath", ",", "cgroupFile", "string", ")", "(", "uint64", ",", "error", ")", "{", "contents", ",", "<mask>", ":=", "ioutil", ".", "ReadFile", "(", "filepath", ".", "Join", "(", "cgroupPath", ",", "cgroupFile", ")", "...
4,474
all-4475
[ "GoStr", "takes", "a", "null", "-", "terminated", "string", "returned", "by", "OpenGL", "and", "constructs", "a", "corresponding", "Go", "string", "." ]
[ "func", "GoStr", "(", "cstr", "*", "uint8", ")", "string", "{", "str", ":=", "\"", "\"", "\n", "for", "{", "if", "*", "cstr", "==", "0", "{", "<mask>", "\n", "}", "\n", "str", "+=", "string", "(", "*", "cstr", ")", "\n", "cstr", "=", "(", "*"...
4,475
all-4476
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "CompileScriptReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime44", "(", "&", "w", ",", "v", ...
4,476
all-4477
[ "This", "helper", "complements", "a", "PUT", "/", "PATCH", "request", "config", "with", "node", "-", "specific", "value", "as", "taken", "from", "the", "db", "." ]
[ "func", "storagePoolClusterFillWithNodeConfig", "(", "dbConfig", ",", "reqConfig", "map", "[", "string", "]", "string", ")", "map", "[", "string", "]", "string", "{", "config", ":=", "util", ".", "CopyConfig", "(", "reqConfig", ")", "\n", "for", "_", ",", ...
4,477
all-4478
[ "IsGamepadButtonJustReleased", "returns", "a", "boolean", "value", "indicating", "whether", "the", "given", "gamepad", "button", "of", "the", "gamepad", "id", "is", "released", "just", "in", "the", "current", "frame", ".", "IsGamepadButtonJustReleased", "is", "concu...
[ "func", "IsGamepadButtonJustReleased", "(", "id", "int", ",", "button", "ebiten", ".", "GamepadButton", ")", "bool", "{", "theInputState", ".", "m", ".", "RLock", "(", ")", "\n", "prev", ":=", "0", "\n", "if", "_", ",", "ok", ":=", "theInputState", ".", ...
4,478
all-4479
[ "APIVersion", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockDockerClient", ")", "APIVersion", "(", ")", "(", "dockerclient", ".", "DockerVersion", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ",", "\"", "\"", ")", "\n", "ret0", ",", "_", ":=", "...
4,479
all-4480
[ "NewAPIServer", "creates", "an", "APIServer", "." ]
[ "func", "NewAPIServer", "(", "env", "*", "serviceenv", ".", "ServiceEnv", ",", "etcdPrefix", "string", ",", "namespace", "string", ",", "workerImage", "string", ",", "workerSidecarImage", "string", ",", "workerImagePullPolicy", "string", ",", "storageRoot", "string"...
4,480
all-4481
[ "invalidate", "the", "content", "of", "some", "or", "all", "of", "a", "framebuffer", "s", "attachments" ]
[ "func", "InvalidateFramebuffer", "(", "<mask>", "uint32", ",", "numAttachments", "int32", ",", "attachments", "*", "uint32", ")", "{", "syscall", ".", "Syscall", "(", "gpInvalidateFramebuffer", ",", "3", ",", "uintptr", "(", "target", ")", ",", "uintptr", "(",...
4,481
all-4482
[ "PathCmder", "returns", "a", "Cmder", "that", "runs", "the", "command", "at", "the", "supplied", "path", "with", "the", "specified", "prependedArgs", "provided", "as", "arguments", "to", "the", "executable", "before", "all", "of", "the", "other", "arguments", ...
[ "func", "PathCmder", "(", "pathToExecutable", "string", ",", "prependedArgs", "...", "string", ")", "Cmder", "{", "return", "&", "<mask>", "{", "pathToExecutable", ":", "pathToExecutable", ",", "prependedArgs", ":", "prependedArgs", ",", "}", "\n", "}" ]
4,482
all-4483
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "MakeSnapshotReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoLayertree10", "(", "&", "w", ",", "v", ...
4,483
all-4484
[ "ParseRefs", "parses", "a", "human", "-", "provided", "string", "into", "the", "repo", "that", "should", "be", "cloned", "and", "the", "refs", "that", "need", "to", "be", "checked", "out", "once", "it", "is", ".", "The", "format", "is", ":", "org", "re...
[ "func", "ParseRefs", "(", "value", "string", ")", "(", "*", "prowapi", ".", "Refs", ",", "error", ")", "{", "gitRef", ":=", "&", "prowapi", ".", "Refs", "{", "}", "\n", "values", ":=", "strings", ".", "SplitN", "(", "value", ",", "\"", "\"", ",", ...
4,484
all-4485
[ "NewGetCommand", "returns", "the", "cobra", "command", "for", "get", "." ]
[ "func", "NewGetCommand", "(", ")", "*", "cobra", ".", "Command", "{", "cmd", ":=", "&", "cobra", ".", "Command", "{", "Use", ":", "\"", "\"", ",", "Short", ":", "\"", "\"", ",", "Run", ":", "getCommandFunc", ",", "}", "\n\n", "cmd", ".", "Flags", ...
4,485
all-4486
[ "Batch", "sets", "the", "batch", "size", "used", "when", "fetching", "documents", "from", "the", "database", ".", "It", "s", "possible", "to", "change", "this", "setting", "on", "a", "per", "-", "session", "basis", "as", "well", "using", "the", "Batch", ...
[ "func", "(", "q", "*", "Query", ")", "Batch", "(", "n", "int", ")", "*", "Query", "{", "if", "n", "==", "1", "{", "// Server interprets 1 as -1 and closes the cursor (!?)", "n", "=", "2", "\n", "}", "\n", "q", ".", "m", ".", "Lock", "(", ")", "\n", ...
4,486
all-4487
[ "CopyConfig", "creates", "a", "new", "map", "with", "a", "copy", "of", "the", "given", "config", "." ]
[ "func", "CopyConfig", "(", "config", "map", "[", "string", "]", "string", ")", "map", "[", "string", "]", "string", "{", "copy", ":=", "map", "[", "string", "]", "string", "{", "}", "\n", "for", "key", ",", "value", ":=", "<mask>", "config", "{", "...
4,487
all-4488
[ "SetWindowBounds", "set", "position", "and", "/", "or", "size", "of", "the", "browser", "window", ".", "See", ":", "https", ":", "//", "chromedevtools", ".", "github", ".", "io", "/", "devtools", "-", "protocol", "/", "tot", "/", "Browser#method", "-", "...
[ "func", "SetWindowBounds", "(", "windowID", "WindowID", ",", "bounds", "*", "Bounds", ")", "*", "SetWindowBoundsParams", "{", "<mask>", "&", "SetWindowBoundsParams", "{", "WindowID", ":", "windowID", ",", "Bounds", ":", "bounds", ",", "}", "\n", "}" ]
4,488
all-4489
[ "Cmds", "returns", "a", "list", "of", "cobra", "commands", "for", "authenticating", "and", "authorizing", "users", "in", "an", "auth", "-", "enabled", "Pachyderm", "cluster", "." ]
[ "func", "Cmds", "(", "noMetrics", ",", "noPortForwarding", "*", "bool", ")", "[", "]", "*", "cobra", ".", "Command", "{", "var", "commands", "[", "]", "*", "cobra", ".", "Command", "\n\n", "auth", ":=", "&", "cobra", ".", "Command", "{", "Short", ":"...
4,489
all-4490
[ "GetTextAlignOk", "returns", "a", "tuple", "with", "the", "TextAlign", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "g", "*", "GraphDefinition", ")", "GetTextAlignOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "g", "==", "nil", "||", "g", ".", "TextAlign", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", ...
4,490
all-4491
[ "do", "will", "get", "creds", "for", "the", "specified", "cluster", "and", "add", "them", "to", "the", "stdin", "secret" ]
[ "func", "do", "(", "o", "options", ")", "error", "{", "// Refresh credentials if requested", "if", "o", ".", "getClientCert", "{", "if", "err", ":=", "getCredentials", "(", "o", ")", ";", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\""...
4,491
all-4492
[ "NewCertPool", "creates", "x509", "certPool", "with", "provided", "CA", "files", "." ]
[ "func", "NewCertPool", "(", "CAFiles", "[", "]", "string", ")", "(", "*", "x509", ".", "CertPool", ",", "error", ")", "{", "certPool", ":=", "x509", ".", "NewCertPool", "(", ")", "\n\n", "for", "_", ",", "CAFile", ":=", "range", "CAFiles", "{", "pemB...
4,492
all-4493
[ "GetExternalize", "retrieves", "the", "Externalize", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "ScpStatementPledges", ")", "GetExternalize", "(", ")", "(", "<mask>", "ScpStatementExternalize", ",", "ok", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "Type", ")", ")", "\n\n", ...
4,493
all-4494
[ "Start", "begins", "a", "Crossdock", "client", "in", "the", "background", "." ]
[ "func", "(", "c", "*", "Client", ")", "Start", "(", ")", "error", "{", "if", "err", ":=", "c", ".", "listen", "(", ")", ";", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "go", "func", "(", ")", "{", "<mask>", ".", "Serve", "(", ...
4,494
all-4495
[ "func", "When", "(", "cachedHandler", "*", "nethttp", ".", "Handler", "claimFuncs", "validFuncs", ")", "|", "We", "could", "have", "something", "like", "this", "but", "this", "wouldn", "t", "work", "for", "XXXFunc", "&", "fasthttp", "because", "they", "just"...
[ "func", "Cache", "(", "bodyHandler", "http", ".", "Handler", ",", "expiration", "<mask>", ".", "Duration", ")", "*", "nethttp", ".", "Handler", "{", "return", "nethttp", ".", "NewHandler", "(", "bodyHandler", ",", "expiration", ")", "\n", "}" ]
4,495
all-4496
[ "NewEditField", "creates", "a", "new", "EditField", "control", "view", "-", "is", "a", "View", "that", "manages", "the", "control", "parent", "-", "is", "container", "that", "keeps", "the", "control", ".", "The", "same", "View", "can", "be", "a", "view", ...
[ "func", "CreateEditField", "(", "parent", "Control", ",", "width", "int", ",", "text", "string", ",", "scale", "int", ")", "*", "EditField", "{", "e", ":=", "new", "(", "EditField", ")", "\n", "e", ".", "BaseControl", "=", "NewBaseControl", "(", ")", "...
4,496
all-4497
[ "CaptureMetrics", "wraps", "the", "given", "hnd", "executes", "it", "with", "the", "given", "w", "and", "r", "and", "returns", "the", "metrics", "it", "captured", "from", "it", "." ]
[ "func", "CaptureMetrics", "(", "hnd", "http", ".", "Handler", ",", "w", "http", ".", "ResponseWriter", ",", "r", "*", "<mask>", ".", "Request", ")", "Metrics", "{", "return", "CaptureMetricsFn", "(", "w", ",", "func", "(", "ww", "http", ".", "ResponseWri...
4,497
all-4498
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventScreencastVisibilityChanged", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage51", "...
4,498
all-4499
[ "This", "is", "intended", "for", "use", "in", "development", "+", "debugging", "and", "not", "intended", "to", "be", "a", "production", "error", "message", ".", "it", "also", "allows", "FieldError", "to", "be", "used", "as", "an", "Error", "interface" ]
[ "func", "(", "e", "*", "FieldError", ")", "Error", "(", ")", "string", "{", "if", "e", ".", "IsPlaceholderErr", "{", "buff", ":=", "<mask>", ".", "NewBufferString", "(", "\"", "\"", ")", "\n\n", "if", "e", ".", "IsSliceOrArray", "{", "for", "j", ",",...
4,499
all-4500
[ "check", "whether", "request", "satisfies", "the", "quota", ".", "If", "there", "is", "not", "enough", "space", "ignore", "request", "and", "raise", "the", "free", "space", "alarm", "." ]
[ "func", "(", "qa", "*", "quotaAlarmer", ")", "check", "(", "ctx", "context", ".", "Context", ",", "r", "<mask>", "{", "}", ")", "error", "{", "if", "qa", ".", "q", ".", "Available", "(", "r", ")", "{", "return", "nil", "\n", "}", "\n", "req", "...