id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
22,500
all-22501
[ "Get", "takes", "name", "of", "the", "prowJob", "and", "returns", "the", "corresponding", "prowJob", "object", "and", "an", "error", "if", "there", "is", "any", "." ]
[ "func", "(", "c", "*", "FakeProwJobs", ")", "Get", "(", "<mask>", "string", ",", "options", "v1", ".", "GetOptions", ")", "(", "result", "*", "prowjobsv1", ".", "ProwJob", ",", "err", "error", ")", "{", "obj", ",", "err", ":=", "c", ".", "Fake", "....
22,501
all-22502
[ "Do", "executes", "Network", ".", "emulateNetworkConditions", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "EmulateNetworkConditionsParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandEmulateNetworkConditions", ",", "p", ",", "nil", ")", ...
22,502
all-22503
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "ScriptTypeProfile", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoProfiler14", "(", "&", "w", ",", "v", ")...
22,503
all-22504
[ "RenderImage", "returns", "the", "map", "as", "an", "unencoded", "image", ".", "Image", "." ]
[ "func", "(", "m", "*", "Map", ")", "RenderImage", "(", "opts", "RenderOpts", ")", "(", "*", "image", ".", "NRGBA", ",", "error", ")", "{", "scaleFactor", ":=", "opts", ".", "ScaleFactor", "\n", "if", "scaleFactor", "==", "0.0", "{", "scaleFactor", "=",...
22,504
all-22505
[ "findVirtualDisk", "locates", "a", "virtual", "disk", "by", "it", "UUID", "or", "by", "its", "device", "address", "if", "UUID", "is", "missing", ".", "The", "device", "address", "search", "is", "only", "used", "if", "fallback", "is", "true", "-", "this", ...
[ "func", "(", "r", "*", "DiskSubresource", ")", "findVirtualDisk", "(", "l", "object", ".", "VirtualDeviceList", ",", "fallback", "bool", ")", "(", "*", "types", ".", "VirtualDisk", ",", "error", ")", "{", "device", ",", "err", ":=", "r", ".", "findVirtua...
22,505
all-22506
[ "HTTPStatusCode", "returns", "the", "corresponding", "http", "status", "code", "from", "an", "error", "type" ]
[ "func", "(", "t", "Type", ")", "HTTPStatusCode", "(", ")", "int", "{", "switch", "t", "{", "case", "Canceled", ":", "return", "http", ".", "StatusRequestTimeout", "\n", "case", "InvalidArgument", ":", "return", "http", ".", "StatusBadRequest", "\n", "case", ...
22,506
all-22507
[ "InspectDatum", "returns", "info", "about", "a", "single", "datum" ]
[ "func", "(", "c", "APIClient", ")", "InspectDatum", "(", "jobID", "string", ",", "datumID", "string", ")", "(", "*", "pps", ".", "DatumInfo", ",", "error", ")", "{", "datumInfo", ",", "err", ":=", "c", ".", "PpsAPIClient", ".", "InspectDatum", "(", "c"...
22,507
all-22508
[ "GetConfig", "returns", "an", "existing", "if", "it", "exists", "errors", "out", "otherwise" ]
[ "func", "(", "s", "*", "Storage", ")", "GetConfig", "(", "name", "string", ")", "(", "common", ".", "ResourcesConfig", ",", "error", ")", "{", "i", ",", "err", ":=", "s", ".", "configs", ".", "Get", "(", "name", ")", "\n", "if", "err", "!=", "nil...
22,508
all-22509
[ "schemaDVPortgroupConfigSpec", "returns", "schema", "items", "for", "resources", "that", "need", "to", "work", "with", "a", "DVPortgroupConfigSpec", "." ]
[ "func", "schemaDVPortgroupConfigSpec", "(", ")", "map", "[", "string", "]", "*", "schema", ".", "Schema", "{", "s", ":=", "map", "[", "string", "]", "*", "schema", ".", "Schema", "{", "// VMwareDVSPortgroupPolicy", "\"", "\"", ":", "{", "Type", ":", "sch...
22,509
all-22510
[ "flattenClusterVmToolsMonitoringSettings", "saves", "a", "ClusterVmToolsMonitoringSettings", "into", "the", "supplied", "ResourceData", "." ]
[ "func", "flattenClusterVMToolsMonitoringSettings", "(", "d", "*", "schema", ".", "ResourceData", ",", "obj", "*", "<mask>", ".", "ClusterVmToolsMonitoringSettings", ")", "error", "{", "return", "structure", ".", "SetBatch", "(", "d", ",", "map", "[", "string", "...
22,510
all-22511
[ "SplitHostPort", "splits", "network", "address", "of", "the", "form", "host", ":", "port", "into", "host", "and", "port", ".", "Unlike", "net", ".", "SplitHostPort", "()", "it", "doesn", "t", "remove", "brackets", "from", "[", "IPv6", "]", "host", "and", ...
[ "func", "SplitHostPort", "(", "u", "*", "url", ".", "URL", ")", "(", "host", ",", "port", "string", ",", "err", "error", ")", "{", "if", "u", "==", "nil", "{", "return", "\"", "\"", ",", "\"", "\"", ",", "&", "url", ".", "Error", "{", "Op", "...
22,511
all-22512
[ "newLoadIndex", "returns", "the", "index", "in", "stmts", "where", "a", "new", "load", "statement", "should", "be", "inserted", ".", "after", "is", "a", "list", "of", "function", "names", "that", "the", "load", "should", "not", "be", "inserted", "before", ...
[ "func", "newLoadIndex", "(", "f", "*", "<mask>", ".", "File", ",", "after", "[", "]", "string", ")", "int", "{", "if", "len", "(", "after", ")", "==", "0", "{", "return", "0", "\n", "}", "\n", "index", ":=", "0", "\n", "for", "_", ",", "r", "...
22,512
all-22513
[ "MarshalJSON", "returns", "the", "Duration", "as", "JSON" ]
[ "func", "(", "d", "Duration", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "var", "w", "jwriter", ".", "Writer", "\n", "d", ".", "MarshalEasyJSON", "(", "&", "w", ")", "\n", "return", "w", ".", "BuildBytes", "(", ...
22,513
all-22514
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "RGBA", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoCdp", "(", "&", "w", ",", "v", ")", "\n", "return...
22,514
all-22515
[ "AgentPreOfferingDelete", "calls", "psc", "remove", "an", "offering", "." ]
[ "func", "(", "w", "*", "Worker", ")", "AgentPreOfferingDelete", "(", "job", "*", "data", ".", "<mask>", ")", "error", "{", "logger", ":=", "w", ".", "logger", ".", "Add", "(", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "job", ")", "\n\n",...
22,515
all-22516
[ "HasKey", "()", "is", "a", "wrapper", "around", "g_settings_schema_has_key", "()", "." ]
[ "func", "(", "v", "*", "SettingsSchema", ")", "HasKey", "(", "v1", "string", ")", "bool", "{", "cstr", ":=", "(", "*", "C", ".", "gchar", ")", "(", "C", ".", "CString", "(", "v1", ")", ")", "\n", "defer", "C", ".", "<mask>", "(", "unsafe", ".",...
22,516
all-22517
[ "CreateProfile", "defines", "a", "new", "container", "profile" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "CreateProfile", "(", "profile", "api", ".", "ProfilesPost", ")", "error", "{", "// Send the request", "_", ",", "_", ",", "err", ":=", "r", ".", "<mask>", "(", "\"", "\"", ",", "\"", "\"", ",", "profile", "...
22,517
all-22518
[ "Prevpos", "returns", "the", "index", "of", "the", "element", "before", "from", "or", "-", "1", "if", "no", "more", "and", "from", "is", "the", "first", "in", "the", "ring", ".", "Returns", "-", "2", "on", "bad", "from", "position", "." ]
[ "func", "(", "f", "*", "FixedSizeRingBuf", ")", "Prevpos", "(", "from", "int", ")", "int", "{", "if", "from", ">=", "f", ".", "N", "||", "from", "<", "0", "{", "return", "-", "2", "\n", "}", "\n", "if", "f", ".", "Readable", "==", "0", "{", "...
22,518
all-22519
[ "PushCloudConfig", "uploads", "a", "cloud", "config", "to", "bosh", "." ]
[ "func", "(", "s", "*", "Client", ")", "PushCloudConfig", "(", "manifest", "[", "]", "byte", ")", "error", "{", "ccm", ":=", "enaml", ".", "NewCloudConfigManifest", "(", "manifest", ")", "\n", "req", ",", "err", ":=", "s", ".", "newCloudConfigRequest", "(...
22,519
all-22520
[ "ScrollFinger", "performs", "a", "scroll", "touch", "action", "by", "the", "provided", "offset", "on", "exactly", "one", "element", "." ]
[ "func", "(", "s", "*", "Selection", ")", "ScrollFinger", "(", "xOffset", ",", "yOffset", "int", ")", "error", "{", "selectedElement", ",", "err", ":=", "s", ".", "elements", ".", "GetExactlyOne", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return",...
22,520
all-22521
[ "HTTPGetCheck", "returns", "a", "Check", "that", "performs", "an", "HTTP", "GET", "request", "against", "the", "specified", "URL", ".", "The", "check", "fails", "if", "the", "response", "times", "out", "or", "returns", "a", "non", "-", "200", "status", "co...
[ "func", "HTTPGetCheck", "(", "<mask>", "string", ",", "timeout", "time", ".", "Duration", ")", "Check", "{", "client", ":=", "http", ".", "Client", "{", "Timeout", ":", "timeout", ",", "// never follow redirects", "CheckRedirect", ":", "func", "(", "*", "htt...
22,521
all-22522
[ "CancelRequest", "cancels", "a", "transaction", "request", "referenced", "by", "id" ]
[ "func", "(", "c", "Client", ")", "CancelRequest", "(", "id", "string", ")", "(", "bool", ",", "error", ")", "{", "holder", ":=", "map", "[", "string", "]", "interface", "{", "}", "{", "}", "\n", "if", "err", ":=", "c", ".", "Delete", "(", "\"", ...
22,522
all-22523
[ "Unquote", "interprets", "s", "as", "a", "single", "-", "quoted", "double", "-", "quoted", "or", "backquoted", "Prometheus", "query", "language", "string", "literal", "returning", "the", "string", "value", "that", "s", "quotes", ".", "NOTE", ":", "This", "fu...
[ "func", "Unquote", "(", "s", "string", ")", "(", "t", "string", ",", "err", "error", ")", "{", "n", ":=", "len", "(", "s", ")", "\n", "if", "n", "<", "2", "{", "return", "\"", "\"", ",", "ErrSyntax", "\n", "}", "\n", "quote", ":=", "s", "[", ...
22,523
all-22524
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetHistogramReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoBrowser13", "(", "&", "w", ",", "v", ...
22,524
all-22525
[ "RemoveOrgMembership", "removes", "the", "user", "from", "the", "org", ".", "https", ":", "//", "developer", ".", "github", ".", "com", "/", "v3", "/", "orgs", "/", "members", "/", "#remove", "-", "organization", "-", "membership" ]
[ "func", "(", "c", "*", "Client", ")", "RemoveOrgMembership", "(", "org", ",", "<mask>", "string", ")", "error", "{", "c", ".", "log", "(", "\"", "\"", ",", "org", ",", "user", ")", "\n", "_", ",", "err", ":=", "c", ".", "request", "(", "&", "re...
22,525
all-22526
[ "Misc", "gets" ]
[ "func", "(", "s", "ScribbleStore", ")", "GetByField", "(", "name", ",", "val", ",", "store", "string", ",", "dst", "<mask>", "{", "}", ")", "error", "{", "return", "ErrNotImplemented", "\n", "}" ]
22,526
all-22527
[ "CreateUser", "creates", "a", "new", "user", "given", "an", "email", "and", "password" ]
[ "func", "(", "c", "Client", ")", "CreateUser", "(", "email", "string", ",", "password", "string", ")", "(", "*", "user", ",", "error", ")", "{", "params", ":=", "map", "[", "string", "]", "interface", "{", "}", "{", "\"", "\"", ":", "<mask>", ",", ...
22,527
all-22528
[ "GetPeriod", "returns", "the", "Period", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "r", "*", "Recurrence", ")", "GetPeriod", "(", ")", "int", "{", "if", "r", "==", "nil", "||", "r", ".", "Period", "==", "nil", "{", "return", "0", "\n", "}", "\n", "<mask>", "*", "r", ".", "Period", "\n", "}" ]
22,528
all-22529
[ "ReadBody", "takes", "in", "a", "previously", "read", "frame", "header", "and", "only", "reads", "in", "the", "body", "based", "on", "the", "size", "specified", "in", "the", "header", ".", "This", "allows", "callers", "to", "defer", "the", "frame", "alloca...
[ "func", "(", "f", "*", "Frame", ")", "ReadBody", "(", "header", "[", "]", "<mask>", ",", "r", "io", ".", "Reader", ")", "error", "{", "// Copy the header into the underlying buffer so we have an assembled frame", "// that can be directly forwarded.", "copy", "(", "f",...
22,529
all-22530
[ "EventualConsistency", "returns", "a", "derivative", "query", "that", "returns", "eventually", "consistent", "results", ".", "It", "only", "has", "an", "effect", "on", "ancestor", "queries", "." ]
[ "func", "(", "q", "*", "Query", ")", "EventualConsistency", "(", ")", "*", "Query", "{", "q", "=", "q", ".", "<mask>", "(", ")", "\n", "q", ".", "eventual", "=", "true", "\n", "return", "q", "\n", "}" ]
22,530
all-22531
[ "Close", "is", "the", "external", "close", "function", ".", "it", "s", "a", "wrapper", "around", "internalClose", "that", "waits", "on", "Closed", "()" ]
[ "func", "(", "p", "*", "process", ")", "Close", "(", ")", "error", "{", "p", ".", "Lock", "(", ")", "\n\n", "// if already closing, or closed, get out. (but wait!)", "select", "{", "<mask>", "<-", "p", ".", "Closing", "(", ")", ":", "p", ".", "Unlock", "...
22,531
all-22532
[ "establish", "data", "storage", "format", "and", "dimensions", "of", "a", "renderbuffer", "object", "s", "image" ]
[ "func", "NamedRenderbufferStorage", "(", "renderbuffer", "uint32", ",", "internalformat", "uint32", ",", "width", "int32", ",", "height", "int32", ")", "{", "syscall", ".", "Syscall6", "(", "gpNamedRenderbufferStorage", ",", "4", ",", "uintptr", "(", "renderbuffer...
22,532
all-22533
[ "RenameNetwork", "renames", "an", "existing", "network", "entry" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "RenameNetwork", "(", "name", "string", ",", "<mask>", "api", ".", "NetworkPost", ")", "error", "{", "if", "!", "r", ".", "HasExtension", "(", "\"", "\"", ")", "{", "return", "fmt", ".", "Errorf", "(", "\"",...
22,533
all-22534
[ "String", "implements", "the", "Stringer", "interface", "." ]
[ "func", "(", "f", "*", "ParameterField", ")", "String", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "f", ".", "parameterOptions", ",", "f", ".", "tc", ",", "f", ".", "mode", ",", "f", ".", "fraction", ",", "f",...
22,534
all-22535
[ "Float64", "adds", "a", "float64", "-", "valued", "key", ":", "value", "pair", "to", "a", "Span", ".", "LogFields", "()", "record" ]
[ "func", "Float64", "(", "key", "string", ",", "val", "float64", ")", "Field", "{", "return", "Field", "{", "key", ":", "<mask>", ",", "fieldType", ":", "float64Type", ",", "numericVal", ":", "int64", "(", "math", ".", "Float64bits", "(", "val", ")", ")...
22,535
all-22536
[ "Sync", "does", "one", "sync", "iteration", "." ]
[ "func", "(", "c", "*", "Controller", ")", "Sync", "(", ")", "error", "{", "pjs", ",", "err", ":=", "c", ".", "prowJobClient", ".", "List", "(", "metav1", ".", "ListOptions", "{", "LabelSelector", ":", "c", ".", "selector", "}", ")", "\n", "if", "er...
22,536
all-22537
[ "newPayloadRequestHandler", "returns", "a", "new", "payloadRequestHandler", "object" ]
[ "func", "newPayloadRequestHandler", "(", "ctx", "context", ".", "Context", ",", "taskEngine", "engine", ".", "TaskEngine", ",", "ecsClient", "api", ".", "ECSClient", ",", "cluster", "string", ",", "containerInstanceArn", "string", ",", "acsClient", "wsclient", "."...
22,537
all-22538
[ "WithScale", "scale", "of", "the", "webpage", "rendering", ".", "Defaults", "to", "1", "." ]
[ "func", "(", "p", "PrintToPDFParams", ")", "WithScale", "(", "scale", "float64", ")", "*", "PrintToPDFParams", "{", "p", ".", "Scale", "=", "<mask>", "\n", "return", "&", "p", "\n", "}" ]
22,538
all-22539
[ "refresh", "refreshes", "the", "expiry", "of", "the", "lease", "." ]
[ "func", "(", "l", "*", "Lease", ")", "refresh", "(", "extend", "time", ".", "Duration", ")", "{", "newExpiry", ":=", "time", ".", "Now", "(", ")", ".", "Add", "(", "extend", "+", "<mask>", ".", "Duration", "(", "l", ".", "RemainingTTL", "(", ")", ...
22,539
all-22540
[ "PushEvent", "-", "exported", "service", "to", "listening", "to", "remote", "events" ]
[ "func", "(", "service", "*", "ClientService", ")", "PushEvent", "(", "arg", "*", "ClientArg", ",", "reply", "*", "bool", ")", "error", "{", "service", ".", "client", ".", "eventBus", ".", "Publish", "(", "arg", ".", "<mask>", ",", "arg", ".", "Args", ...
22,540
all-22541
[ "ScalarFields", "returns", "the", "fields", "that", "map", "directly", "to", "a", "single", "database", "column", "on", "another", "table", "that", "can", "be", "joined", "to", "this", "one", "." ]
[ "func", "(", "m", "*", "Mapping", ")", "ScalarFields", "(", ")", "[", "]", "*", "Field", "{", "fields", ":=", "[", "]", "*", "Field", "{", "}", "\n\n", "for", "_", ",", "<mask>", ":=", "range", "m", ".", "Fields", "{", "if", "field", ".", "Conf...
22,541
all-22542
[ "SetLabel", "is", "a", "wrapper", "around", "gtk_label_set_label", "()", "." ]
[ "func", "(", "v", "*", "Label", ")", "SetLabel", "(", "str", "string", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "str", ")", "\n", "defer", "C", ".", "<mask>", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "\n", "C", ".", "gtk_l...
22,542
all-22543
[ "NewTaskStatsResponse", "returns", "a", "new", "task", "stats", "response", "object" ]
[ "func", "NewTaskStatsResponse", "(", "taskARN", "string", ",", "state", "dockerstate", ".", "TaskEngineState", ",", "statsEngine", "stats", ".", "Engine", ")", "(", "map", "[", "string", "]", "*", "types", ".", "StatsJSON", ",", "error", ")", "{", "container...
22,543
all-22544
[ "IsUnixSocket", "returns", "true", "if", "the", "given", "path", "is", "either", "a", "Unix", "socket", "or", "a", "symbolic", "link", "pointing", "at", "a", "Unix", "socket", "." ]
[ "func", "IsUnixSocket", "(", "path", "string", ")", "bool", "{", "stat", ",", "err", ":=", "os", ".", "Stat", "(", "path", ")", "\n", "if", "err", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n", "return", "(", "stat", ".", "Mode", "(", ")"...
22,544
all-22545
[ "FirewallPolicies", "retrieves", "a", "list", "of", "all", "firewall", "policies" ]
[ "func", "(", "c", "*", "<mask>", ")", "FirewallPolicies", "(", ")", "(", "[", "]", "FirewallPolicy", ",", "error", ")", "{", "var", "policies", "[", "]", "FirewallPolicy", "\n", "_", ",", "err", ":=", "c", ".", "MakeApiRequest", "(", "\"", "\"", ",",...
22,545
all-22546
[ "MigrateContainerSnapshot", "requests", "that", "LXD", "prepares", "for", "a", "snapshot", "migration" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "MigrateContainerSnapshot", "(", "containerName", "string", ",", "name", "string", ",", "container", "api", ".", "ContainerSnapshotPost", ")", "(", "Operation", ",", "error", ")", "{", "// Sanity check", "if", "!", "c...
22,546
all-22547
[ "rfc2047AttributeName", "checks", "if", "the", "attribute", "name", "is", "encoded", "in", "RFC2047", "format", "RFC2047", "Example", ":", "=", "?UTF", "-", "8?B?bmFtZT0iw7DCn8KUwoo", "=", "?", "=" ]
[ "func", "rfc2047AttributeName", "(", "s", "string", ")", "string", "{", "if", "!", "strings", ".", "Contains", "(", "s", ",", "\"", "\"", ")", "{", "return", "s", "\n", "}", "\n", "<mask>", ":=", "strings", ".", "SplitAfter", "(", "s", ",", "\"", "...
22,547
all-22548
[ "HasOrderBy", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "c", "*", "ChangeRequest", ")", "HasOrderBy", "(", ")", "bool", "{", "if", "c", "!=", "nil", "&&", "c", ".", "OrderBy", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
22,548
all-22549
[ "Debugln", "logging" ]
[ "func", "(", "l", "*", "StdLevelLogger", ")", "Debugln", "(", "args", "...", "<mask>", "{", "}", ")", "{", "l", ".", "loglnFunc", "(", "DebugLevel", ",", "l", ".", "context", ",", "args", "...", ")", "\n", "}" ]
22,549
all-22550
[ "UnmarshalJSON", "satisfies", "json", ".", "Unmarshaler", "." ]
[ "func", "(", "t", "*", "NodeID", ")", "UnmarshalJSON", "(", "buf", "[", "]", "<mask>", ")", "error", "{", "return", "easyjson", ".", "Unmarshal", "(", "buf", ",", "t", ")", "\n", "}" ]
22,550
all-22551
[ "UpdateOp", "is", "a", "helper", "to", "update", "the", "status", "using", "a", "LXD", "API", "operation" ]
[ "func", "(", "p", "*", "ProgressRenderer", ")", "UpdateOp", "(", "op", "api", ".", "Operation", ")", "{", "if", "op", ".", "Metadata", "==", "nil", "{", "return", "\n", "}", "\n\n", "for", "<mask>", ",", "value", ":=", "range", "op", ".", "Metadata",...
22,551
all-22552
[ "NewTemplateMsg", "will", "create", "a", "new", "TemplateMsg", "with", "values", "from", "the", "given", "parameters" ]
[ "func", "NewTemplateMsg", "(", "timestamp", "time", ".", "Time", ",", "level", "LogLevel", ",", "m", "map", "[", "string", "]", "interface", "{", "}", ",", "msg", "string", ")", "*", "TemplateMsg", "{", "msgAttrs", ":=", "m", "\n", "if", "msgAttrs", "=...
22,552
all-22553
[ "Do", "executes", "Overlay", ".", "highlightQuad", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "HighlightQuadParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandHighlightQuad", ",", "p", ",", "nil", ")", "\n", "}" ]
22,553
all-22554
[ "GetContainerTemplateFiles", "returns", "the", "list", "of", "names", "of", "template", "files", "for", "a", "container", "." ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "GetContainerTemplateFiles", "(", "containerName", "string", ")", "(", "[", "]", "string", ",", "error", ")", "{", "if", "!", "r", ".", "HasExtension", "(", "\"", "\"", ")", "{", "return", "nil", ",", "fmt", ...
22,554
all-22555
[ "SimpleProofsFromHashers", "computes", "inclusion", "proof", "for", "given", "items", ".", "proofs", "[", "0", "]", "is", "the", "proof", "for", "items", "[", "0", "]", "." ]
[ "func", "SimpleProofsFromHashers", "(", "items", "[", "]", "Hasher", ")", "(", "rootHash", "[", "]", "byte", ",", "proofs", "[", "]", "*", "SimpleProof", ")", "{", "trails", ",", "rootSPN", ":=", "trailsFromHashers", "(", "items", ")", "\n", "rootHash", ...
22,555
all-22556
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetApplicationCacheForFrameReturns", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoApplicationc...
22,556
all-22557
[ "Main", "is", "implemented", "here", "so", "both", "pp", "and", "panicparse", "executables", "can", "be", "compiled", ".", "This", "is", "to", "work", "around", "the", "Perl", "Package", "manager", "pp", "that", "is", "preinstalled", "on", "some", "OSes", ...
[ "func", "Main", "(", ")", "error", "{", "aggressive", ":=", "flag", ".", "Bool", "(", "\"", "\"", ",", "false", ",", "\"", "\"", ")", "\n", "parse", ":=", "flag", ".", "Bool", "(", "\"", "\"", ",", "true", ",", "\"", "\"", ")", "\n", "rebase", ...
22,557
all-22558
[ "setupRootfs", "sets", "up", "the", "devices", "mount", "points", "and", "filesystems", "for", "use", "inside", "a", "new", "mount", "namespace", "." ]
[ "func", "setupRootfs", "(", "config", "*", "configs", ".", "Config", ",", "console", "*", "linuxConsole", ")", "(", "err", "error", ")", "{", "if", "err", ":=", "prepareRoot", "(", "config", ")", ";", "err", "!=", "nil", "{", "return", "newSystemError", ...
22,558
all-22559
[ "Claim", "validator" ]
[ "func", "(", "c", "*", "chainedRule", ")", "Claim", "(", "r", "*", "http", ".", "<mask>", ")", "bool", "{", "if", "!", "c", ".", "Rule", ".", "Claim", "(", "r", ")", "{", "return", "false", "\n", "}", "\n", "return", "c", ".", "next", ".", "C...
22,559
all-22560
[ "fetchAllRecordLinksInZone", "list", "all", "records", "in", "a", "zone", "with", "a", "single", "call", ".", "Records", "not", "matched", "by", "the", "DomainFilter", "are", "ignored", ".", "The", "response", "is", "a", "list", "of", "links", "that", "can",...
[ "func", "(", "d", "*", "dynProviderState", ")", "fetchAllRecordLinksInZone", "(", "client", "*", "dynect", ".", "Client", ",", "<mask>", "string", ")", "(", "[", "]", "string", ",", "error", ")", "{", "var", "allRecords", "dynect", ".", "AllRecordsResponse",...
22,560
all-22561
[ "<local", "-", "name", ">", "::", "=", "Z", "<", "(", "function", ")", "encoding", ">", "E", "<", "(", "entity", ")", "name", ">", "[", "<discriminator", ">", "]", "::", "=", "Z", "<", "(", "function", ")", "encoding", ">", "E", "s", "[", "<dis...
[ "func", "(", "st", "*", "state", ")", "localName", "(", ")", "AST", "{", "st", ".", "checkChar", "(", "'Z'", ")", "\n", "fn", ":=", "st", ".", "encoding", "(", "true", ",", "forLocalName", ")", "\n", "if", "len", "(", "st", ".", "str", ")", "==...
22,561
all-22562
[ "return", "the", "values", "of", "the", "current", "matrix" ]
[ "func", "QueryMatrixxOES", "(", "mantissa", "*", "int32", ",", "exponent", "*", "int32", ")", "uint32", "{", "ret", ",", "_", ",", "_", ":=", "syscall", ".", "Syscall", "(", "gpQueryMatrixxOES", ",", "2", ",", "uintptr", "(", "unsafe", ".", "Pointer", ...
22,562
all-22563
[ "Vector", "returns", "a", "[", "-", "1", "1", "]", "value", "for", "each", "axis", "." ]
[ "func", "(", "d", "Dir", ")", "Vector", "(", ")", "(", "x", ",", "y", "int", ")", "{", "<mask>", "d", "{", "case", "DirUp", ":", "return", "0", ",", "-", "1", "\n", "case", "DirRight", ":", "return", "1", ",", "0", "\n", "case", "DirDown", ":...
22,563
all-22564
[ "Warnf", "is", "a", "short", "-", "hand", "version", "of", "Warningf" ]
[ "func", "(", "b", "*", "Base", ")", "Warnf", "(", "<mask>", "string", ",", "a", "...", "interface", "{", "}", ")", "error", "{", "return", "b", ".", "Warningf", "(", "msg", ",", "a", "...", ")", "\n", "}" ]
22,564
all-22565
[ "MustNewRegexp", "works", "like", "NewRegexp", "but", "panics", "if", "the", "regular", "expression", "does", "not", "compile", "." ]
[ "func", "MustNewRegexp", "(", "s", "string", ")", "Regexp", "{", "<mask>", ",", "err", ":=", "NewRegexp", "(", "s", ")", "\n", "if", "err", "!=", "nil", "{", "panic", "(", "err", ")", "\n", "}", "\n", "return", "re", "\n", "}" ]
22,565
all-22566
[ "JustPressedTouchIDs", "returns", "touch", "IDs", "that", "are", "created", "just", "in", "the", "current", "frame", ".", "JustPressedTouchIDs", "might", "return", "nil", "when", "there", "is", "not", "touch", ".", "JustPressedTouchIDs", "is", "concurrent", "safe"...
[ "func", "JustPressedTouchIDs", "(", ")", "[", "]", "int", "{", "var", "ids", "[", "]", "int", "\n", "theInputState", ".", "m", ".", "RLock", "(", ")", "\n", "for", "id", ",", "s", ":=", "range", "theInputState", ".", "touchDurations", "{", "if", "s",...
22,566
all-22567
[ "AddMulti", "adds", "multiple", "tasks", "to", "a", "named", "queue", ".", "An", "empty", "queue", "name", "means", "that", "the", "default", "queue", "will", "be", "used", ".", "AddMulti", "returns", "a", "slice", "of", "equivalent", "tasks", "with", "def...
[ "func", "AddMulti", "(", "c", "context", ".", "Context", ",", "tasks", "[", "]", "*", "Task", ",", "queueName", "string", ")", "(", "[", "]", "*", "Task", ",", "error", ")", "{", "req", ":=", "&", "pb", ".", "TaskQueueBulkAddRequest", "{", "AddReques...
22,567
all-22568
[ "Close", "closes", "the", "storage", "and", "all", "its", "underlying", "resources", "." ]
[ "func", "(", "f", "*", "fanout", ")", "Close", "(", ")", "error", "{", "if", "err", ":=", "f", ".", "primary", ".", "Close", "(", ")", ";", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "// TODO return multiple errors?", "var", "lastEr...
22,568
all-22569
[ "GetMonitors", "returns", "a", "slice", "of", "all", "monitors" ]
[ "func", "(", "<mask>", "*", "Client", ")", "GetMonitors", "(", ")", "(", "[", "]", "Monitor", ",", "error", ")", "{", "var", "out", "reqMonitors", "\n", "if", "err", ":=", "client", ".", "doJsonRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "nil"...
22,569
all-22570
[ "InspectBranch", "returns", "information", "on", "a", "specific", "PFS", "branch" ]
[ "func", "(", "c", "APIClient", ")", "InspectBranch", "(", "repoName", "string", ",", "branch", "string", ")", "(", "*", "pfs", ".", "BranchInfo", ",", "error", ")", "{", "branchInfo", ",", "<mask>", ":=", "c", ".", "PfsAPIClient", ".", "InspectBranch", "...
22,570
all-22571
[ "BytesHead", "returns", "at", "most", "numLines", "from", "data", "starting", "at", "the", "beginning", ".", "A", "slice", "of", "the", "remaining", "data", "is", "returned", "as", "rest", ".", "\\", "n", "is", "used", "to", "detect", "line", "ends", "a"...
[ "func", "BytesHead", "(", "data", "[", "]", "byte", ",", "numLines", "int", ")", "(", "lines", "[", "]", "string", ",", "rest", "[", "]", "byte", ")", "{", "if", "numLines", "<=", "0", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n", "lines...
22,571
all-22572
[ "close", "connection", "pool", "to", "Sentinel", ".", "Lock", "must", "be", "hold", "by", "caller", "." ]
[ "func", "(", "s", "*", "Sentinel", ")", "<mask>", "(", ")", "{", "if", "s", ".", "pools", "!=", "nil", "{", "for", "_", ",", "pool", ":=", "range", "s", ".", "pools", "{", "pool", ".", "Close", "(", ")", "\n", "}", "\n", "}", "\n", "s", "."...
22,572
all-22573
[ "VirtualMachineFolderFromObject", "returns", "an", "*", "object", ".", "Folder", "from", "a", "given", "object", "and", "relative", "datastore", "folder", "path", ".", "If", "no", "such", "folder", "is", "found", "or", "if", "it", "is", "not", "a", "VM", "...
[ "func", "VirtualMachineFolderFromObject", "(", "<mask>", "*", "govmomi", ".", "Client", ",", "obj", "interface", "{", "}", ",", "relative", "string", ")", "(", "*", "object", ".", "Folder", ",", "error", ")", "{", "log", ".", "Printf", "(", "\"", "\"", ...
22,573
all-22574
[ "CheckFlags", "is", "delegated", "to", "EventMatcher" ]
[ "func", "(", "e", "*", "EventCounterPlugin", ")", "CheckFlags", "(", ")", "<mask>", "{", "e", ".", "matcher", "=", "NewEventMatcher", "(", "e", ".", "desc", ")", "\n", "return", "nil", "\n", "}" ]
22,574
all-22575
[ "Encrypt", "produces", "encrypted", "JWT", "token", "given", "arbitrary", "string", "payload", "key", "management", "and", "encryption", "algorithms", "to", "use", "(", "see", "constants", "for", "list", "of", "supported", "algs", ")", "and", "management", "key"...
[ "func", "Encrypt", "(", "payload", "string", ",", "alg", "string", ",", "enc", "string", ",", "key", "interface", "{", "}", ",", "options", "...", "func", "(", "*", "JoseConfig", ")", ")", "(", "token", "string", ",", "err", "error", ")", "{", "retur...
22,575
all-22576
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetDocumentReturns", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom46", "(", "&", "r...
22,576
all-22577
[ "ResourceIDString", "prints", "a", "friendly", "string", "for", "a", "resource", "supplied", "by", "name", "." ]
[ "func", "ResourceIDString", "(", "d", "ResourceIDStringer", ",", "<mask>", "string", ")", "string", "{", "id", ":=", "d", ".", "Id", "(", ")", "\n", "if", "id", "==", "\"", "\"", "{", "id", "=", "\"", "\"", "\n", "}", "\n", "return", "fmt", ".", ...
22,577
all-22578
[ "Flush", "must", "be", "called", "at", "the", "end", "to", "ensure", "that", "any", "pending", "writes", "get", "committed", "to", "Badger", ".", "Flush", "returns", "any", "error", "stored", "by", "WriteBatch", "." ]
[ "func", "(", "wb", "*", "WriteBatch", ")", "Flush", "(", ")", "error", "{", "wb", ".", "Lock", "(", ")", "\n", "_", "=", "wb", ".", "<mask>", "(", ")", "\n", "wb", ".", "txn", ".", "Discard", "(", ")", "\n", "wb", ".", "Unlock", "(", ")", "...
22,578
all-22579
[ "Next", "returns", "the", "next", "page", "of", "resources", ".", "If", "there", "are", "no", "more", "resources", "NoMoreResults", "is", "returned", "." ]
[ "func", "(", "r", "*", "RecordingPageIterator", ")", "Next", "(", "ctx", "context", ".", "<mask>", ")", "(", "*", "RecordingPage", ",", "error", ")", "{", "rp", ":=", "new", "(", "RecordingPage", ")", "\n", "err", ":=", "r", ".", "p", ".", "Next", ...
22,579
all-22580
[ "Stop", "stops", "the", "indicator" ]
[ "func", "(", "s", "*", "Spinner", ")", "Stop", "(", ")", "{", "s", ".", "lock", ".", "Lock", "(", ")", "\n", "defer", "s", ".", "lock", ".", "Unlock", "(", ")", "\n", "if", "s", ".", "active", "{", "s", ".", "active", "=", "false", "\n", "i...
22,580
all-22581
[ "HasLineType", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TimeseriesRequestStyle", ")", "HasLineType", "(", ")", "bool", "{", "if", "t", "!=", "nil", "&&", "t", ".", "LineType", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
22,581
all-22582
[ "SetWithExpirationTime", "sets", "a", "cookie", "that", "will", "expire", "at", "a", "specific", "time", ".", "Note", "that", "the", "time", "is", "determined", "by", "the", "client", "s", "browser", "so", "it", "might", "not", "expire", "at", "the", "expe...
[ "func", "(", "c", "*", "Cookies", ")", "SetWithExpirationTime", "(", "name", ",", "value", "string", ",", "expires", "time", ".", "Time", ")", "{", "ck", ":=", "<mask>", ".", "Cookie", "{", "Name", ":", "name", ",", "Value", ":", "value", ",", "Expir...
22,582
all-22583
[ "WaitForJob", "blocks", "until", "a", "completed", "job", "is", "available", "and", "returns", "it", ".", "If", "there", "are", "no", "jobs", "running", "it", "returns", "nil", "." ]
[ "func", "(", "pool", "*", "Pool", ")", "WaitForJob", "(", ")", "*", "Job", "{", "result_pipe", ":=", "make", "(", "chan", "*", "Job", ")", "\n", "var", "job", "*", "Job", "\n", "var", "ok", "bool", "\n", "for", "{", "pool", ".", "result_wanted_pipe...
22,583
all-22584
[ "MetricsKey", "is", "a", "string", "representation", "of", "the", "error", "code", "that", "s", "suitable", "for", "inclusion", "in", "metrics", "tags", "." ]
[ "func", "(", "c", "SystemErrCode", ")", "MetricsKey", "(", ")", "string", "{", "switch", "c", "{", "case", "ErrCodeInvalid", ":", "// Shouldn't ever need this.", "return", "\"", "\"", "\n", "<mask>", "ErrCodeTimeout", ":", "return", "\"", "\"", "\n", "case", ...
22,584
all-22585
[ "doneSending", "shuts", "down", "the", "message", "exchange", "for", "this", "call", ".", "For", "incoming", "calls", "the", "last", "message", "is", "sending", "the", "call", "response", "." ]
[ "func", "(", "response", "*", "InboundCallResponse", ")", "doneSending", "(", ")", "{", "// TODO(prashant): Move this to when the message is actually being sent.", "<mask>", ":=", "response", ".", "timeNow", "(", ")", "\n\n", "if", "span", ":=", "response", ".", "span...
22,585
all-22586
[ "GetPageIterator", "returns", "a", "TranscriptionPageIterator", "with", "the", "given", "page", "filters", ".", "Call", "iterator", ".", "Next", "()", "to", "get", "the", "first", "page", "of", "resources", "(", "and", "again", "to", "retrieve", "subsequent", ...
[ "func", "(", "c", "*", "TranscriptionService", ")", "GetPageIterator", "(", "data", "url", ".", "Values", ")", "*", "TranscriptionPageIterator", "{", "iter", ":=", "NewPageIterator", "(", "c", ".", "client", ",", "<mask>", ",", "transcriptionPathPart", ")", "\...
22,586
all-22587
[ "flattenStorageDrsPodConfigInfo", "saves", "a", "StorageDrsPodConfigInfo", "into", "the", "supplied", "ResourceData", "." ]
[ "func", "flattenStorageDrsPodConfigInfo", "(", "d", "*", "schema", ".", "ResourceData", ",", "obj", "types", ".", "StorageDrsPodConfigInfo", ",", "version", "viapi", ".", "VSphereVersion", ")", "error", "{", "attrs", ":=", "map", "[", "string", "]", "interface",...
22,587
all-22588
[ "IsEquivalent", "returns", "true", "if", "other", "represents", "the", "same", "data", "type", "as", "the", "target", "." ]
[ "func", "(", "u", "*", "UploadDataType", ")", "IsEquivalent", "(", "other", "DataType", ")", "bool", "{", "o", ",", "ok", ":=", "other", ".", "(", "*", "UploadDataType", ")", "\n", "if", "!", "ok", "{", "return", "false", "\n", "}", "\n", "if", "o"...
22,588
all-22589
[ "Creates", "a", "shader", "object" ]
[ "func", "CreateShader", "(", "xtype", "uint32", ")", "uint32", "{", "<mask>", ":=", "C", ".", "glowCreateShader", "(", "gpCreateShader", ",", "(", "C", ".", "GLenum", ")", "(", "xtype", ")", ")", "\n", "return", "(", "uint32", ")", "(", "ret", ")", "...
22,589
all-22590
[ "lexEscape", "scans", "a", "string", "escape", "sequence", ".", "The", "initial", "escaping", "character", "(", "\\", ")", "has", "already", "been", "seen", ".", "NOTE", ":", "This", "function", "as", "well", "as", "the", "helper", "function", "digitVal", ...
[ "func", "lexEscape", "(", "l", "*", "lexer", ")", "{", "var", "n", "int", "\n", "var", "base", ",", "max", "uint32", "\n\n", "ch", ":=", "l", ".", "next", "(", ")", "\n", "switch", "ch", "{", "case", "'a'", ",", "'b'", ",", "'f'", ",", "'n'", ...
22,590
all-22591
[ "GetTimeAggregatorOk", "returns", "a", "tuple", "with", "the", "TimeAggregator", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "ThresholdCount", ")", "GetTimeAggregatorOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "t", "==", "nil", "||", "t", ".", "TimeAggregator", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", "...
22,591
all-22592
[ "SendCustomSvcNotification", "creates", "a", "new", "SEND_CUSTOM_SVC_NOTIFICATION", "Nagios", "command", ".", "Allows", "you", "to", "send", "a", "custom", "service", "notification", ".", "Very", "useful", "in", "dire", "situations", "emergencies", "or", "to", "comm...
[ "func", "SendCustomSvcNotification", "(", "host_name", "string", ",", "service_description", "string", ",", "options", "int", ",", "<mask>", "string", ",", "comment", "string", ",", ")", "*", "livestatus", ".", "Command", "{", "return", "livestatus", ".", "NewCo...
22,592
all-22593
[ "Create", "exposes", "the", "CreateDVPortgroup_Task", "method", "of", "the", "DistributedVirtualSwitch", "MO", ".", "This", "local", "implementation", "may", "go", "away", "if", "this", "is", "exposed", "in", "the", "higher", "-", "level", "object", "upstream", ...
[ "func", "Create", "(", "client", "*", "govmomi", ".", "Client", ",", "dvs", "*", "object", ".", "VmwareDistributedVirtualSwitch", ",", "spec", "types", ".", "DVPortgroupConfigSpec", ")", "(", "*", "object", ".", "Task", ",", "error", ")", "{", "req", ":=",...
22,593
all-22594
[ "ParseUrls", "extracts", "the", "path", "patterns", "from", "an", "action", "URLs", ".", "Urls", "consist", "of", "an", "array", "of", "map", "each", "map", "has", "the", "following", "keys", ":", "verb", "path", "version", "Also", "make", "it", "support",...
[ "func", "(", "a", "*", "APIAnalyzer", ")", "ParseUrls", "(", "urls", "interface", "{", "}", ")", "(", "[", "]", "*", "gen", ".", "PathPattern", ",", "error", ")", "{", "var", "patterns", "[", "]", "*", "gen", ".", "PathPattern", "\n", "if", "urlEle...
22,594
all-22595
[ "Common", "logic", "between", "PUT", "and", "PATCH", "." ]
[ "func", "projectChange", "(", "d", "*", "Daemon", ",", "project", "*", "api", ".", "Project", ",", "req", "api", ".", "ProjectPut", ")", "Response", "{", "// Flag indicating if any feature has changed.", "featuresChanged", ":=", "req", ".", "Config", "[", "\"", ...
22,595
all-22596
[ "This", "is", "not", "a", "recoverable", "error", "--", "opening", "the", "KV", "store", "fails", "because", "the", "MANIFEST", "file", "is", "just", "plain", "broken", "." ]
[ "func", "applyChangeSet", "(", "build", "*", "Manifest", ",", "changeSet", "*", "pb", ".", "ManifestChangeSet", ")", "error", "{", "for", "_", ",", "change", ":=", "range", "changeSet", ".", "Changes", "{", "if", "err", ":=", "applyManifestChange", "(", "<...
22,596
all-22597
[ "BuilderNewFromResource", "is", "a", "wrapper", "around", "gtk_builder_new_from_resource", "()", "." ]
[ "func", "BuilderNewFromResource", "(", "resourcePath", "string", ")", "(", "*", "Builder", ",", "error", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "resourcePath", ")", "\n", "defer", "C", ".", "<mask>", "(", "unsafe", ".", "Pointer", "(", "cstr",...
22,597
all-22598
[ "resourceVSphereComputeClusterVMGroupFindEntry", "attempts", "to", "locate", "an", "existing", "VM", "group", "config", "in", "a", "cluster", "s", "configuration", ".", "It", "s", "used", "by", "the", "resource", "s", "read", "functionality", "and", "tests", ".", ...
[ "func", "resourceVSphereComputeClusterVMGroupFindEntry", "(", "cluster", "*", "object", ".", "ClusterComputeResource", ",", "name", "string", ",", ")", "(", "*", "types", ".", "ClusterVmGroup", ",", "error", ")", "{", "props", ",", "err", ":=", "clustercomputereso...
22,598
all-22599
[ "title", ":", "update", "application", "quota", "path", ":", "/", "apps", "/", "{", "appname", "}", "/", "quota", "method", ":", "PUT", "consume", ":", "application", "/", "x", "-", "www", "-", "form", "-", "urlencoded", "responses", ":", "200", ":", ...
[ "func", "changeAppQuota", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "appName", ":=", "r", ".", "URL", ".", "Query", "(", ")", ".", "Get", "(...
22,599
all-22600
[ "reloadSecret", "will", "begin", "polling", "the", "secret", "file", "at", "the", "path", ".", "If", "the", "first", "load", "fails", "Start", "with", "return", "the", "error", "and", "abort", ".", "Future", "load", "failures", "will", "log", "the", "failu...
[ "func", "(", "a", "*", "Agent", ")", "reloadSecret", "(", "secretPath", "string", ")", "{", "var", "lastModTime", "time", ".", "Time", "\n", "logger", ":=", "logrus", ".", "NewEntry", "(", "logrus", ".", "StandardLogger", "(", ")", ")", "\n\n", "skips", ...