id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
24,600
all-24601
[ "Provide", "objects", "to", "the", "Graph", ".", "The", "Object", "documentation", "describes", "the", "impact", "of", "various", "fields", "." ]
[ "func", "(", "g", "*", "Graph", ")", "Provide", "(", "objects", "...", "*", "Object", ")", "error", "{", "for", "_", ",", "o", ":=", "range", "objects", "{", "o", ".", "reflectType", "=", "reflect", ".", "TypeOf", "(", "o", ".", "Value", ")", "\n...
24,601
all-24602
[ "Check", "if", "the", "config", "provided", "through", "the", "flags", "take", "valid", "values", "." ]
[ "func", "checkConfigValidity", "(", ")", "error", "{", "glog", ".", "Info", "(", "\"", "\"", ")", "\n", "if", "*", "nodeName", "==", "\"", "\"", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ")", "\n", "}", "\n", "if", "*", "gcsPath", "==...
24,602
all-24603
[ "Update", "updates", "a", "VirtualApp", "." ]
[ "func", "Update", "(", "vc", "*", "<mask>", ".", "VirtualApp", ",", "spec", "types", ".", "VAppConfigSpec", ")", "error", "{", "log", ".", "Printf", "(", "\"", "\"", ",", "vc", ".", "InventoryPath", ")", "\n", "ctx", ",", "cancel", ":=", "context", "...
24,603
all-24604
[ "RateLimit", "consumes", "messages", "from", "the", "messages", "channel", "and", "limits", "the", "rate", "at", "which", "they", "are", "produced", "to", "the", "channel", "returned", "by", "this", "function", ".", "The", "limit", "is", "the", "maximum", "n...
[ "func", "RateLimit", "(", "limit", "int", ",", "messages", "<-", "chan", "Message", ")", "<-", "chan", "Message", "{", "if", "limit", "<=", "0", "{", "return", "messages", "\n", "}", "\n\n", "output", ":=", "make", "(", "chan", "Message", ")", "\n\n", ...
24,604
all-24605
[ "AcceptOffering", "initiates", "JobClientPreChannelCreate", "job", "." ]
[ "func", "(", "h", "*", "Handler", ")", "AcceptOffering", "(", "tkn", "string", ",", "account", "data", ".", "HexString", ",", "offering", "string", ",", "deposit", ",", "gasPrice", "uint64", ")", "(", "*", "string", ",", "error", ")", "{", "logger", ":...
24,605
all-24606
[ "WithExecutionContextID", "specifies", "in", "which", "execution", "context", "to", "perform", "script", "run", ".", "If", "the", "parameter", "is", "omitted", "the", "evaluation", "will", "be", "performed", "in", "the", "context", "of", "the", "inspected", "pag...
[ "func", "(", "p", "CompileScriptParams", ")", "WithExecutionContextID", "(", "executionContextID", "ExecutionContextID", ")", "*", "CompileScriptParams", "{", "p", ".", "ExecutionContextID", "=", "executionContextID", "\n", "<mask>", "&", "p", "\n", "}" ]
24,606
all-24607
[ "Sign", "signs", "an", "HTTP", "request", "with", "the", "given", "S3", "keys", ".", "This", "function", "is", "a", "wrapper", "around", "DefaultService", ".", "Sign", "." ]
[ "func", "Sign", "(", "r", "*", "<mask>", ".", "Request", ",", "k", "Keys", ")", "{", "DefaultService", ".", "Sign", "(", "r", ",", "k", ")", "\n", "}" ]
24,607
all-24608
[ "Vec3Cross", "derives", "the", "cross", "product", "of", "two", "vectors", ".", "dst", "=", "v1", "x", "v2", "dest", "[", "out", "]", "The", "cross", "product", ".", "v1", "[", "in", "]", "A", "Vector", ".", "v2", "[", "in", "]", "A", "vector", "...
[ "func", "Vec3Cross", "(", "<mask>", ",", "v1", ",", "v2", "Vec3", ")", "{", "dest", "[", "0", "]", "=", "v1", "[", "1", "]", "*", "v2", "[", "2", "]", "-", "v1", "[", "2", "]", "*", "v2", "[", "1", "]", "\n", "dest", "[", "1", "]", "=",...
24,608
all-24609
[ "lookup", "takes", "a", "Go", "type", "as", "argument", "and", "returns", "the", "matching", "structType", "value", "potentially", "creating", "it", "if", "it", "didn", "t", "already", "exist", ".", "This", "method", "is", "safe", "to", "call", "from", "mu...
[ "func", "(", "cache", "*", "structTypeCache", ")", "lookup", "(", "t", "reflect", ".", "Type", ")", "(", "s", "*", "structType", ")", "{", "<mask>", ".", "mutex", ".", "RLock", "(", ")", "\n", "s", "=", "cache", ".", "store", "[", "t", "]", "\n",...
24,609
all-24610
[ "Decrement", "an", "item", "of", "type", "float32", "or", "float64", "by", "n", ".", "Returns", "an", "error", "if", "the", "item", "s", "value", "is", "not", "floating", "point", "if", "it", "was", "not", "found", "or", "if", "it", "is", "not", "pos...
[ "func", "(", "c", "*", "cache", ")", "DecrementFloat", "(", "k", "string", ",", "n", "float64", ")", "error", "{", "c", ".", "mu", ".", "Lock", "(", ")", "\n", "v", ",", "found", ":=", "c", ".", "items", "[", "k", "]", "\n", "if", "!", "found...
24,610
all-24611
[ "Do", "executes", "Network", ".", "setBypassServiceWorker", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "SetBypassServiceWorkerParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetBypassServiceWorker", ",", "p", ",", "nil", ")", "\n"...
24,611
all-24612
[ "ensureValidConfiguration", "enforces", "rules", "about", "tide", "and", "plugin", "config", ".", "In", "this", "context", "a", "subset", "is", "the", "set", "of", "repos", "or", "orgs", "for", "which", "a", "specific", "plugin", "is", "either", "enabled", "...
[ "func", "ensureValidConfiguration", "(", "plugin", ",", "label", ",", "verb", "string", ",", "tideSubSet", ",", "tideSuperSet", ",", "pluginsSubSet", "*", "orgRepoConfig", ")", "error", "{", "notEnabled", ":=", "tideSubSet", ".", "difference", "(", "pluginsSubSet"...
24,612
all-24613
[ "PollTaskURL", "--", "fake", "a", "poll", "url", "call" ]
[ "func", "(", "s", "*", "FakeVCDClient", ")", "PollTaskURL", "(", "taskURL", "string", ")", "(", "<mask>", "*", "vcloudclient", ".", "TaskElem", ",", "err", "error", ")", "{", "return", "s", ".", "FakeTaskElem", ",", "s", ".", "ErrPollTaskURL", "\n", "}" ...
24,613
all-24614
[ "Redirect", "the", "given", "call", "to", "the", "given", "URL", "." ]
[ "func", "(", "c", "*", "CallService", ")", "Redirect", "(", "sid", "string", ",", "u", "*", "url", ".", "URL", ")", "(", "*", "Call", ",", "error", ")", "{", "<mask>", ":=", "url", ".", "Values", "{", "}", "\n", "data", ".", "Set", "(", "\"", ...
24,614
all-24615
[ "UnsafeDelete", "must", "be", "called", "holding", "the", "lock", "on", "the", "tx", "." ]
[ "func", "(", "t", "*", "batchTx", ")", "UnsafeDelete", "(", "bucketName", "[", "]", "byte", ",", "key", "[", "]", "byte", ")", "{", "bucket", ":=", "t", ".", "tx", ".", "Bucket", "(", "bucketName", ")", "\n", "if", "bucket", "==", "nil", "{", "if...
24,615
all-24616
[ "dino_party", "-", ">", "DinoParty" ]
[ "func", "(", "rs", "*", "Ruleset", ")", "Camelize", "(", "word", "string", ")", "string", "{", "<mask>", ":=", "splitAtCaseChangeWithTitlecase", "(", "word", ")", "\n", "return", "strings", ".", "Join", "(", "words", ",", "\"", "\"", ")", "\n", "}" ]
24,616
all-24617
[ "Conns", "returns", "a", "slice", "of", "connections", "to", "worker", "servers", ".", "pipelineRcName", "is", "the", "name", "of", "the", "pipeline", "s", "RC", "and", "can", "be", "gotten", "with", "ppsutil", ".", "PipelineRcName", ".", "You", "can", "al...
[ "func", "Conns", "(", "ctx", "context", ".", "Context", ",", "pipelineRcName", "string", ",", "etcdClient", "*", "etcd", ".", "Client", ",", "etcdPrefix", "string", ",", "workerGrpcPort", "uint16", ")", "(", "[", "]", "*", "grpc", ".", "ClientConn", ",", ...
24,617
all-24618
[ "handleDockerEvents", "must", "be", "called", "after", "openEventstream", ";", "it", "processes", "each", "event", "that", "it", "reads", "from", "the", "docker", "eventstream" ]
[ "func", "(", "<mask>", "*", "DockerTaskEngine", ")", "handleDockerEvents", "(", "ctx", "context", ".", "Context", ")", "{", "for", "{", "select", "{", "case", "<-", "ctx", ".", "Done", "(", ")", ":", "return", "\n", "case", "event", ":=", "<-", "engine...
24,618
all-24619
[ "DispatchMouseEvent", "dispatches", "a", "mouse", "event", "to", "the", "page", ".", "See", ":", "https", ":", "//", "chromedevtools", ".", "github", ".", "io", "/", "devtools", "-", "protocol", "/", "tot", "/", "Input#method", "-", "dispatchMouseEvent", "pa...
[ "func", "DispatchMouseEvent", "(", "typeVal", "MouseType", ",", "x", "float64", ",", "y", "float64", ")", "*", "DispatchMouseEventParams", "{", "return", "&", "DispatchMouseEventParams", "{", "<mask>", ":", "typeVal", ",", "X", ":", "x", ",", "Y", ":", "y", ...
24,619
all-24620
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "ProcessInfo", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoSysteminfo", "(", "&", "r",...
24,620
all-24621
[ "NetworkInterfaceAddress", "returns", "the", "first", "non", "-", "loopback", "address", "of", "any", "of", "the", "system", "network", "interfaces", ".", "Return", "the", "empty", "string", "if", "none", "is", "found", "." ]
[ "func", "NetworkInterfaceAddress", "(", ")", "string", "{", "ifaces", ",", "err", ":=", "net", ".", "Interfaces", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "for", "_", ",", "iface", ":=", "range", "ifaces",...
24,621
all-24622
[ "MarshalBinary", "allocates", "a", "byte", "slice", "containing", "the", "data", "from", "a", "Header", ".", "If", "h", ".", "Version", "is", "not", "Version", "(", "1", ")", "ErrorUnsupportedVersion", "is", "returned", ".", "If", "h", ".", "Arg", "is", ...
[ "func", "(", "h", "*", "Header", ")", "MarshalBinary", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "// Version must be 1", "if", "h", ".", "Version", "!=", "Version", "{", "return", "nil", ",", "ErrorUnsupportedVersion", "\n", "}", "\n\n", ...
24,622
all-24623
[ "NewStreamDecoder", "returns", "a", "new", "stream", "decoder", "that", "takes", "input", "from", "r", "." ]
[ "func", "(", "c", "Codec", ")", "NewStreamDecoder", "(", "r", "<mask>", ".", "Reader", ")", "*", "StreamDecoder", "{", "return", "NewStreamDecoder", "(", "c", ".", "NewParser", "(", "r", ")", ")", "\n", "}" ]
24,623
all-24624
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "ExceptionDetails", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoRuntime28", "(", "&", "w", ",", "v", ")",...
24,624
all-24625
[ "addChanges", "writes", "a", "batch", "of", "changes", "atomically", "to", "the", "file", ".", "By", "atomically", "that", "means", "when", "we", "replay", "the", "MANIFEST", "file", "we", "ll", "either", "replay", "all", "the", "changes", "or", "none", "o...
[ "func", "(", "mf", "*", "manifestFile", ")", "addChanges", "(", "changesParam", "[", "]", "*", "pb", ".", "ManifestChange", ")", "error", "{", "changes", ":=", "pb", ".", "ManifestChangeSet", "{", "Changes", ":", "changesParam", "}", "\n", "buf", ",", "e...
24,625
all-24626
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetDOMStorageItemsParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDomstorage4", "(",...
24,626
all-24627
[ "FlushTo", "flushes", "the", "written", "buffer", "to", "the", "given", "writer" ]
[ "func", "(", "w", "*", "WriteBuffer", ")", "FlushTo", "(", "iow", "<mask>", ".", "Writer", ")", "(", "int", ",", "error", ")", "{", "dirty", ":=", "w", ".", "buffer", "[", "0", ":", "w", ".", "BytesWritten", "(", ")", "]", "\n", "return", "iow", ...
24,627
all-24628
[ "StoragePoolsNodeConfig", "returns", "a", "map", "associating", "each", "storage", "pool", "name", "to", "its", "node", "-", "specific", "config", "values", "(", "i", ".", "e", ".", "the", "ones", "where", "node_id", "is", "not", "NULL", ")", "." ]
[ "func", "(", "c", "*", "ClusterTx", ")", "StoragePoolsNodeConfig", "(", ")", "(", "map", "[", "string", "]", "map", "[", "string", "]", "string", ",", "error", ")", "{", "names", ",", "err", ":=", "query", ".", "SelectStrings", "(", "c", ".", "tx", ...
24,628
all-24629
[ "NewRoundrobinBalanced", "returns", "a", "new", "roundrobin", "balanced", "picker", "." ]
[ "func", "NewRoundrobinBalanced", "(", "lg", "*", "zap", ".", "Logger", ",", "scs", "[", "]", "balancer", ".", "SubConn", ",", "addrToSc", "<mask>", "[", "resolver", ".", "Address", "]", "balancer", ".", "SubConn", ",", "scToAddr", "map", "[", "balancer", ...
24,629
all-24630
[ "NewOptionalBool", "converts", "the", "input", "bool", "into", "either", "OptionalBoolTrue", "or", "OptionalBoolFalse", ".", "The", "function", "is", "meant", "to", "avoid", "boilerplate", "code", "of", "users", "." ]
[ "func", "NewOptionalBool", "(", "b", "bool", ")", "OptionalBool", "{", "o", ":=", "OptionalBoolFalse", "\n", "if", "b", "==", "<mask>", "{", "o", "=", "OptionalBoolTrue", "\n", "}", "\n", "return", "o", "\n", "}" ]
24,630
all-24631
[ "GoString", "defines", "the", "printable", "version", "of", "this", "struct", "." ]
[ "func", "(", "c", "*", "ConsulConfig", ")", "GoString", "(", ")", "string", "{", "if", "c", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n\n", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", "+", "\"", "\"", "+", "\"", "\"", "+", "\""...
24,631
all-24632
[ "CreateConsulClient", "creates", "a", "new", "Consul", "API", "client", "from", "the", "given", "input", "." ]
[ "func", "(", "c", "*", "ClientSet", ")", "CreateConsulClient", "(", "i", "*", "CreateConsulClientInput", ")", "error", "{", "consulConfig", ":=", "consulapi", ".", "DefaultConfig", "(", ")", "\n\n", "if", "i", ".", "<mask>", "!=", "\"", "\"", "{", "consulC...
24,632
all-24633
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "MoveToParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom30", "(", "&", "r", "...
24,633
all-24634
[ "dropTree", "picks", "all", "tables", "from", "all", "levels", "creates", "a", "manifest", "changeset", "applies", "it", "and", "then", "decrements", "the", "refs", "of", "these", "tables", "which", "would", "result", "in", "their", "deletion", "." ]
[ "func", "(", "s", "*", "levelsController", ")", "dropTree", "(", ")", "(", "int", ",", "error", ")", "{", "// First pick all tables, so we can create a manifest changelog.", "var", "all", "[", "]", "*", "table", ".", "Table", "\n", "for", "_", ",", "l", ":="...
24,634
all-24635
[ "initializeContainersV3MetadataEndpoint", "generates", "an", "v3", "endpoint", "id", "for", "each", "container", "constructs", "the", "v3", "metadata", "endpoint", "and", "injects", "it", "as", "an", "environment", "variable" ]
[ "func", "(", "task", "*", "Task", ")", "initializeContainersV3MetadataEndpoint", "(", "uuidProvider", "utils", ".", "UUIDProvider", ")", "{", "for", "_", ",", "container", ":=", "range", "task", ".", "Containers", "{", "v3EndpointID", ":=", "<mask>", ".", "Get...
24,635
all-24636
[ "Output", "calls", "UI", ".", "Output", "to", "write", ".", "OutputFGColor", "and", "OutputBGColor", "are", "used", "for", "color", "." ]
[ "func", "(", "ui", "*", "ColorUI", ")", "Output", "(", "message", "string", ")", "{", "ct", ".", "ChangeColor", "(", "ui", ".", "OutputFGColor", ".", "Code", ",", "ui", ".", "OutputFGColor", ".", "Bright", ",", "ui", ".", "OutputBGColor", ".", "Code", ...
24,636
all-24637
[ "NewCapabilities", "returns", "a", "Capabilities", "instance", "with", "any", "provided", "features", "enabled", "." ]
[ "func", "NewCapabilities", "(", "features", "...", "string", ")", "Capabilities", "{", "c", ":=", "Capabilities", "{", "}", "\n", "for", "_", ",", "feature", ":=", "<mask>", "features", "{", "c", ".", "With", "(", "feature", ")", "\n", "}", "\n", "retu...
24,637
all-24638
[ "init", "sets", "up", "all", "global", "variables", "and", "prepares", "ttk", "for", "use", "." ]
[ "func", "init", "(", ")", "{", "work", "=", "make", "(", "chan", "func", "(", ")", ",", "32", ")", "\n", "keyC", "=", "make", "(", "chan", "Key", ",", "1024", ")", "\n", "windows", "=", "make", "(", "map", "[", "int", "]", "*", "Window", ")",...
24,638
all-24639
[ "assertJSONIsEqualOrSubset", "returns", "true", "if", "v1", "and", "v2", "are", "equal", "in", "value", "or", "if", "both", "are", "maps", "(", "of", "type", "map", "[", "string", "]", "interface", "{}", ")", "and", "v1", "is", "a", "subset", "of", "v2...
[ "func", "(", "r", "*", "Runner", ")", "assertJSONIsEqualOrSubset", "(", "v1", "interface", "{", "}", ",", "v2", "interface", "{", "}", ")", "(", "bool", ",", "error", ")", "{", "if", "(", "v1", "==", "nil", ")", "&&", "(", "v2", "==", "nil", ")",...
24,639
all-24640
[ "fill", "populates", "pb", ".", "ResponseHeader", "using", "etcdserver", "information" ]
[ "func", "(", "h", "*", "header", ")", "fill", "(", "rh", "*", "<mask>", ".", "ResponseHeader", ")", "{", "if", "rh", "==", "nil", "{", "plog", ".", "Panic", "(", "\"", "\"", ")", "\n", "}", "\n", "rh", ".", "ClusterId", "=", "uint64", "(", "h",...
24,640
all-24641
[ "This", "function", "recreates", "an", "rbd", "container", "including", "its", "snapshots", ".", "It", "recreates", "the", "dependencies", "between", "the", "container", "and", "the", "snapshots", ":", "-", "create", "an", "empty", "rbd", "storage", "volume", ...
[ "func", "(", "s", "*", "storageCeph", ")", "ContainerBackupLoad", "(", "info", "backupInfo", ",", "data", "io", ".", "ReadSeeker", ",", "tarArgs", "[", "]", "string", ")", "error", "{", "// create the main container", "err", ":=", "s", ".", "doContainerCreate"...
24,641
all-24642
[ "Do", "executes", "Overlay", ".", "setPausedInDebuggerMessage", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "SetPausedInDebuggerMessageParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetPausedInDebuggerMessage", ",", "p", ",", "nil", ")"...
24,642
all-24643
[ "TypeName", "-", "returns", "valid", "type", "name", "for", "a", "give", "record" ]
[ "func", "(", "v", "*", "Record", ")", "TypeName", "(", "i", "int", ",", "<mask>", "[", "]", "string", ")", "(", "typename", "string", ")", "{", "if", "i", "+", "1", "<", "v", ".", "Length", "{", "currentNode", ":=", "v", ".", "Slice", "[", "i",...
24,643
all-24644
[ "WriteStringToFile", "writes", "the", "string", "to", "the", "file", "at", "the", "provided", "path", "." ]
[ "func", "WriteStringToFile", "(", "<mask>", ",", "path", "string", ")", "error", "{", "f", ",", "err", ":=", "os", ".", "OpenFile", "(", "path", ",", "os", ".", "O_CREATE", "|", "os", ".", "O_WRONLY", ",", "0644", ")", "\n", "defer", "f", ".", "Clo...
24,644
all-24645
[ "RestartDatum", "restarts", "a", "datum", "that", "s", "being", "processed", "as", "part", "of", "a", "job", ".", "datumFilter", "is", "a", "slice", "of", "strings", "which", "are", "matched", "against", "either", "the", "Path", "or", "Hash", "of", "the", ...
[ "func", "(", "c", "APIClient", ")", "RestartDatum", "(", "jobID", "string", ",", "datumFilter", "[", "]", "string", ")", "error", "{", "_", ",", "err", ":=", "c", ".", "PpsAPIClient", ".", "RestartDatum", "(", "c", ".", "Ctx", "(", ")", ",", "&", "...
24,645
all-24646
[ "UnmarshalJSON", "is", "a", "copy", "of", "the", "json", ".", "RawMessage", "implementation", "." ]
[ "func", "(", "this", "*", "TriggerHookResponse", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "if", "this", "==", "nil", "{", "return", "errors", ".", "New", "(", "\"", "\"", ")", "\n", "}", "\n", "*", "this", "=", "appen...
24,646
all-24647
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventChildNodeCountUpdated", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom65", "(", "...
24,647
all-24648
[ "SetDetailHeightRows", "is", "a", "wrapper", "around", "gtk_calendar_set_detail_height_rows", "()", "." ]
[ "func", "(", "v", "*", "Calendar", ")", "SetDetailHeightRows", "(", "<mask>", "int", ")", "{", "C", ".", "gtk_calendar_set_detail_height_rows", "(", "v", ".", "native", "(", ")", ",", "C", ".", "gint", "(", "rows", ")", ")", "\n", "}" ]
24,648
all-24649
[ "NewSharder", "creates", "a", "Sharder", "using", "a", "discovery", "client", "." ]
[ "func", "NewSharder", "(", "discoveryClient", "discovery", ".", "<mask>", ",", "numShards", "uint64", ",", "namespace", "string", ")", "Sharder", "{", "return", "newSharder", "(", "discoveryClient", ",", "numShards", ",", "namespace", ")", "\n", "}" ]
24,649
all-24650
[ "GetClientX509CertURL", "returns", "the", "ClientX509CertURL", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "i", "*", "IntegrationGCPCreateRequest", ")", "GetClientX509CertURL", "(", ")", "<mask>", "{", "if", "i", "==", "nil", "||", "i", ".", "ClientX509CertURL", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "i", ".", "...
24,650
all-24651
[ "ImageID", "computes", "an", "ID", "which", "can", "uniquely", "identify", "this", "image", "by", "its", "contents", "." ]
[ "func", "(", "m", "*", "OCI1", ")", "ImageID", "(", "[", "]", "digest", ".", "Digest", ")", "(", "string", ",", "error", ")", "{", "if", "err", ":=", "m", ".", "Config", ".", "Digest", ".", "Validate", "(", ")", ";", "<mask>", "!=", "nil", "{",...
24,651
all-24652
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetIsolateIDReturns", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime23", "(", "&",...
24,652
all-24653
[ "NetIP", "returns", "the", "primary", "IP", "address", "of", "the", "system", "or", "an", "empty", "string", "." ]
[ "func", "NetIP", "(", ")", "string", "{", "addrs", ",", "err", ":=", "net", ".", "InterfaceAddrs", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "for", "_", ",", "addr", ":=", "range", "addrs", "{", "ip", ...
24,653
all-24654
[ "serveHttpKVAPI", "starts", "a", "key", "-", "value", "server", "with", "a", "GET", "/", "PUT", "API", "and", "listens", "." ]
[ "func", "serveHttpKVAPI", "(", "kv", "*", "kvstore", ",", "port", "int", ",", "confChangeC", "chan", "<-", "raftpb", ".", "ConfChange", ",", "errorC", "<-", "chan", "error", ")", "{", "srv", ":=", "http", ".", "Server", "{", "Addr", ":", "\"", "\"", ...
24,654
all-24655
[ "HasMinLocationFailed", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "SyntheticsOptions", ")", "HasMinLocationFailed", "(", ")", "bool", "{", "if", "s", "!=", "nil", "&&", "s", ".", "MinLocationFailed", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
24,655
all-24656
[ "Write", "writes", "len", "(", "p", ")", "bytes", "from", "p", "to", "the", "underlying", "data", "stream", ".", "It", "returns", "the", "number", "of", "bytes", "written", "from", "p", "(", "0", "<", "=", "n", "<", "=", "len", "(", "p", "))", "a...
[ "func", "(", "b", "*", "AtomicFixedSizeRingBuf", ")", "Write", "(", "p", "[", "]", "byte", ")", "(", "n", "int", ",", "err", "error", ")", "{", "b", ".", "tex", ".", "Lock", "(", ")", "\n", "defer", "b", ".", "tex", ".", "Unlock", "(", ")", "...
24,656
all-24657
[ "URLs", "returns", "a", "list", "of", "all", "URLs", ".", "The", "returned", "list", "is", "sorted", "in", "ascending", "lexicographical", "order", "." ]
[ "func", "(", "c", "URLsMap", ")", "URLs", "(", ")", "[", "]", "string", "{", "<mask>", "urls", "[", "]", "string", "\n", "for", "_", ",", "us", ":=", "range", "c", "{", "for", "_", ",", "u", ":=", "range", "us", "{", "urls", "=", "append", "(...
24,657
all-24658
[ "Format", "creates", "and", "wraps", "an", "error", "with", "the", "given", "error", "string", ".", "Equivalent", "to", ":", "errs", ".", "Wrap", "(", "fmt", ".", "Errorf", "(", "format", "args", "...", "))" ]
[ "func", "Format", "(", "info", "Info", ",", "format", "string", ",", "argv", "...", "interface", "{", "}", ")", "Err", "{", "return", "newErr", "(", "debug", ".", "Stack", "(", ")", ",", "fmt", ".", "Errorf", "(", "format", ",", "argv", "...", ")",...
24,658
all-24659
[ "NewStatusPolicy", "returns", "a", "status", "policy", "that", "assigns", "relative", "severity", "in", "accordance", "with", "a", "user", "-", "configurable", "prioritised", "slice", ".", "Check", "statuses", "must", "be", "listed", "in", "ascending", "severity",...
[ "func", "NewStatusPolicy", "(", "statuses", "[", "]", "Status", ")", "(", "*", "statusPolicy", ",", "error", ")", "{", "newPol", ":=", "make", "(", "statusPolicy", ")", "\n", "for", "i", ",", "status", ":=", "range", "statuses", "{", "newPol", "[", "st...
24,659
all-24660
[ "LineTo", "is", "a", "wrapper", "around", "cairo_line_to", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "LineTo", "(", "x", ",", "y", "float64", ")", "{", "C", ".", "cairo_line_to", "(", "v", ".", "native", "(", ")", ",", "C", ".", "double", "(", "x", ")", ",", "C", ".", "double", "(", "y", ")", ")", "\n"...
24,660
all-24661
[ "UserLogin", "logs", "a", "user", "in", "returning", "an", "auth", "token", "and", "the", "user", "object" ]
[ "func", "UserLogin", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ")", "{", "var", "login", "types", ".", "LoginRequest", "\n", "w", ".", "Header", "(", ")", ".", "Set", "(", "\"", "\"", ",", "\"", "\"", ")", "\...
24,661
all-24662
[ "Draw", "the", "image", "frame", "with", "certain", "parameters", "." ]
[ "func", "Draw", "(", "gc", "draw2d", ".", "GraphicContext", ",", "png", "string", ",", "dw", ",", "dh", ",", "margin", ",", "lineWidth", "float64", ")", "error", "{", "// Draw frame", "draw2dkit", ".", "RoundedRectangle", "(", "gc", ",", "lineWidth", ",", ...
24,662
all-24663
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetAttributesParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom53", "(", "&", "...
24,663
all-24664
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventDataCollected", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoTracing9", "(", "&", "...
24,664
all-24665
[ "GetBuildID", "calls", "out", "to", "tot", "in", "order", "to", "vend", "build", "identifier", "for", "the", "job" ]
[ "func", "GetBuildID", "(", "name", ",", "totURL", "string", ")", "(", "string", ",", "error", ")", "{", "if", "totURL", "==", "\"", "\"", "{", "return", "node", ".", "Generate", "(", ")", ".", "String", "(", ")", ",", "nil", "\n", "}", "\n", "var...
24,665
all-24666
[ "IsButtonPressed", "returns", "a", "boolean", "value", "indicating", "whether", "the", "given", "virtual", "button", "b", "is", "pressed", "." ]
[ "func", "(", "c", "*", "gamepadConfig", ")", "IsButtonPressed", "(", "b", "virtualGamepadButton", ")", "bool", "{", "if", "!", "c", ".", "gamepadIDInitialized", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n\n", "c", ".", "initializeIfNeeded", "(", "...
24,666
all-24667
[ "GetFilename", "is", "a", "wrapper", "around", "gtk_file_chooser_get_filename", "()", "." ]
[ "func", "(", "v", "*", "FileChooser", ")", "GetFilename", "(", ")", "<mask>", "{", "c", ":=", "C", ".", "gtk_file_chooser_get_filename", "(", "v", ".", "native", "(", ")", ")", "\n", "s", ":=", "goString", "(", "c", ")", "\n", "defer", "C", ".", "g...
24,667
all-24668
[ "Add", "an", "item", "to", "the", "cache", "replacing", "any", "existing", "item", "using", "the", "default", "expiration", "." ]
[ "func", "(", "c", "*", "cache", ")", "SetDefault", "(", "k", "string", ",", "x", "<mask>", "{", "}", ")", "{", "c", ".", "Set", "(", "k", ",", "x", ",", "DefaultExpiration", ")", "\n", "}" ]
24,668
all-24669
[ "NewCountPlugin", "counts", "events", "and", "number", "of", "issues", "in", "given", "state", "and", "for", "how", "long", "." ]
[ "func", "NewCountPlugin", "(", "runner", "func", "(", "Plugin", ")", "error", ")", "*", "cobra", ".", "Command", "{", "stateCounter", ":=", "&", "StatePlugin", "{", "}", "\n", "eventCounter", ":=", "&", "EventCounterPlugin", "{", "}", "\n", "commentsAsEvents...
24,669
all-24670
[ "invalidate", "a", "region", "of", "a", "texture", "image" ]
[ "func", "InvalidateTexSubImage", "(", "texture", "uint32", ",", "level", "int32", ",", "xoffset", "int32", ",", "yoffset", "int32", ",", "zoffset", "int32", ",", "width", "int32", ",", "height", "int32", ",", "<mask>", "int32", ")", "{", "syscall", ".", "S...
24,670
all-24671
[ "Same", "as", "GetName", "()", "but", "for", "IPv6", "addresses", "." ]
[ "func", "(", "gi", "*", "GeoIP", ")", "GetNameV6", "(", "ip", "string", ")", "(", "name", "string", ",", "netmask", "int", ")", "{", "if", "gi", ".", "db", "==", "nil", "{", "return", "\n", "}", "\n\n", "gi", ".", "mu", ".", "Lock", "(", ")", ...
24,671
all-24672
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "CloseTargetReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget26", "(", "&", "w", ",", "v", "...
24,672
all-24673
[ "EachLike", "specifies", "that", "a", "given", "element", "in", "a", "JSON", "body", "can", "be", "repeated", "minRequired", "times", ".", "Number", "needs", "to", "be", "1", "or", "greater" ]
[ "func", "EachLike", "(", "content", "interface", "{", "}", ",", "minRequired", "int", ")", "Matcher", "{", "return", "eachLike", "{", "Contents", ":", "<mask>", ",", "Min", ":", "minRequired", ",", "}", "\n", "}" ]
24,673
all-24674
[ "DialogNew", "()", "is", "a", "wrapper", "around", "gtk_dialog_new", "()", "." ]
[ "func", "DialogNew", "(", ")", "(", "*", "Dialog", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_dialog_new", "(", ")", "\n", "if", "c", "==", "nil", "{", "return", "nil", ",", "nilPtrErr", "\n", "}", "\n", "obj", ":=", "glib", ".", "Take", ...
24,674
all-24675
[ "IsValidBuildFileName", "returns", "true", "if", "a", "file", "with", "the", "given", "base", "name", "should", "be", "treated", "as", "a", "build", "file", "." ]
[ "func", "(", "c", "*", "Config", ")", "IsValidBuildFileName", "(", "name", "string", ")", "bool", "{", "for", "_", ",", "n", ":=", "range", "c", ".", "ValidBuildFileNames", "{", "if", "<mask>", "==", "n", "{", "return", "true", "\n", "}", "\n", "}", ...
24,675
all-24676
[ "Write", "outputs", "the", "response", "to", "w", "." ]
[ "func", "(", "r", "RawResponse", ")", "Write", "(", "w", "*", "bufio", ".", "<mask>", ")", "error", "{", "return", "writeResponse", "(", "w", ",", "[", "]", "byte", "(", "r", ")", ")", "\n", "}" ]
24,676
all-24677
[ "GetAllXattr", "retrieves", "all", "extended", "attributes", "associated", "with", "a", "file", "directory", "or", "symbolic", "link", "." ]
[ "func", "GetAllXattr", "(", "path", "string", ")", "(", "xattrs", "map", "[", "string", "]", "string", ",", "err", "error", ")", "{", "e1", ":=", "fmt", ".", "Errorf", "(", "\"", "\"", ")", "\n\n", "// Call llistxattr() twice: First, to determine the size of t...
24,677
all-24678
[ "Return", "Go", "type", "of", "the", "given", "database", "entity", "." ]
[ "func", "entityType", "(", "pkg", "string", ",", "entity", "string", ")", "string", "{", "typ", ":=", "lex", ".", "Capital", "(", "<mask>", ")", "\n", "if", "pkg", "!=", "\"", "\"", "{", "typ", "=", "pkg", "+", "\"", "\"", "+", "typ", "\n", "}", ...
24,678
all-24679
[ "Resource", "is", "an", "option", "that", "sets", "the", "resource", "information", "to", "send", "with", "each", "log", "entry", ".", "Please", "see", "https", ":", "//", "cloud", ".", "google", ".", "com", "/", "logging", "/", "docs", "/", "api", "/"...
[ "func", "Resource", "(", "typ", "ResType", ",", "labels", "map", "[", "string", "]", "string", ")", "Option", "{", "return", "func", "(", "sh", "*", "StackdriverHook", ")", "error", "{", "return", "MonitoredResource", "(", "&", "logging", ".", "MonitoredRe...
24,679
all-24680
[ "IsErr", "checks", "if", "err", "is", "an", "errs", ".", "Err", "and", "return", "it", "as", "an", "errs", ".", "Err", "if", "it", "is", ".", "This", "is", "equivalent", "to", "err", ".", "(", "errs", ".", "Err", ")" ]
[ "func", "IsErr", "(", "err", "<mask>", ")", "(", "Err", ",", "bool", ")", "{", "errsErr", ",", "isErr", ":=", "err", ".", "(", "Err", ")", "\n", "return", "errsErr", ",", "isErr", "\n", "}" ]
24,680
all-24681
[ "MakeSlice", "creates", "a", "[]", "interface", "{}", "proxy", "and", "pushes", "it", "on", "the", "stack", ".", "Optional", "argument", ":", "size", "(", "number", ")", "Returns", ":", "proxy", "(", "[]", "interface", "{}", ")" ]
[ "func", "MakeSlice", "(", "L", "*", "lua", ".", "State", ")", "int", "{", "n", ":=", "L", ".", "OptInteger", "(", "1", ",", "0", ")", "\n", "s", ":=", "reflect", ".", "MakeSlice", "(", "tslice", ",", "n", ",", "n", "+", "1", ")", "\n", "makeV...
24,681
all-24682
[ "Trigger", "creates", "a", "new", "PagerDuty", "incident", "with", "the", "given", "description", ".", "The", "returned", "incident", "key", "can", "be", "used", "to", "resolve", "the", "incident", ".", "It", "can", "also", "be", "used", "by", "the", "Trig...
[ "func", "(", "p", "*", "Pager", ")", "Trigger", "(", "description", "string", ")", "(", "incidentKey", "string", ",", "err", "error", ")", "{", "return", "p", ".", "trigger", "(", "<mask>", ",", "\"", "\"", ",", "map", "[", "string", "]", "interface"...
24,682
all-24683
[ "validate", "checks", "the", "following", "properties", ":", "-", "Org", "Regexp", "MissingLabel", "and", "GracePeriod", "must", "be", "non", "-", "empty", ".", "-", "Repo", "does", "not", "contain", "a", "/", "(", "should", "use", "Org", "+", "Repo", ")...
[ "func", "(", "r", "RequireMatchingLabel", ")", "validate", "(", ")", "error", "{", "if", "r", ".", "Org", "==", "\"", "\"", "{", "return", "errors", ".", "New", "(", "\"", "\"", ")", "\n", "}", "\n", "if", "strings", ".", "Contains", "(", "r", "....
24,683
all-24684
[ "NextSystemUID", "returns", "the", "next", "free", "system", "user", "id", "to", "use", "." ]
[ "func", "NextSystemUID", "(", ")", "(", "int", ",", "error", ")", "{", "db", ",", "uid", ",", "err", ":=", "nextUID", "(", "<mask>", ")", "\n", "db", ".", "close", "(", ")", "\n", "return", "uid", ",", "err", "\n", "}" ]
24,684
all-24685
[ "NewQueueManager", "builds", "a", "new", "QueueManager", "." ]
[ "func", "NewQueueManager", "(", "logger", "log", ".", "Logger", ",", "walDir", "string", ",", "samplesIn", "*", "ewmaRate", ",", "cfg", "config", ".", "QueueConfig", ",", "externalLabels", "labels", ".", "Labels", ",", "relabelConfigs", "[", "]", "*", "relab...
24,685
all-24686
[ "MarshalEasyJSON", "satisfies", "easyjson", ".", "Marshaler", "." ]
[ "func", "(", "t", "GetEncodedResponseEncoding", ")", "MarshalEasyJSON", "(", "<mask>", "*", "jwriter", ".", "Writer", ")", "{", "out", ".", "String", "(", "string", "(", "t", ")", ")", "\n", "}" ]
24,686
all-24687
[ "GetAlphaNum12", "retrieves", "the", "AlphaNum12", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "Asset", ")", "GetAlphaNum12", "(", ")", "(", "result", "AssetAlphaNum12", ",", "<mask>", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "Type", ")", ")", "\n\n", "if", "armName",...
24,687
all-24688
[ "GetActionsForAccel", "is", "a", "wrapper", "around", "gtk_application_get_actions_for_accel", "()", "." ]
[ "func", "(", "v", "*", "Application", ")", "GetActionsForAccel", "(", "acc", "string", ")", "[", "]", "string", "{", "cstr1", ":=", "(", "*", "C", ".", "gchar", ")", "(", "C", ".", "CString", "(", "acc", ")", ")", "\n", "defer", "C", ".", "free",...
24,688
all-24689
[ "AnnotatedString", "wraps", "g_variant_print", "()", "but", "returns", "a", "type", "-", "annotated", "string", "." ]
[ "func", "(", "v", "*", "Variant", ")", "AnnotatedString", "(", ")", "string", "{", "gc", ":=", "C", ".", "g_variant_print", "(", "v", ".", "native", "(", ")", ",", "gbool", "(", "<mask>", ")", ")", "\n", "defer", "C", ".", "g_free", "(", "C", "."...
24,689
all-24690
[ "compact", "keyspace", "history", "to", "a", "provided", "revision" ]
[ "func", "compact", "(", "c", "*", "v3", ".", "Client", ",", "rev", "int64", ")", "{", "fmt", ".", "Printf", "(", "\"", "\\n", "\"", ",", "rev", ")", "\n", "ctx", ",", "cancel", ":=", "context", ".", "WithTimeout", "(", "<mask>", ".", "Background", ...
24,690
all-24691
[ "func", "(", "f", "QueryField", ")", "MarshalJSON", "()", "(", "[]", "byte", "error", ")", "{", "return", "json", ".", "Marshal", "(", "struct", "{", "Name", "string", "json", ":", "name", "Val", "interface", "{}", "json", ":", "val", "}", "{", "Name...
[ "func", "(", "f", "QueryField", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "return", "json", ".", "Marshal", "(", "map", "[", "string", "]", "interface", "{", "}", "{", "f", ".", "Name", ":", "f", ".", "Val", ...
24,691
all-24692
[ "WriteLen8String", "writes", "an", "8", "-", "bit", "length", "preceded", "string" ]
[ "func", "(", "w", "*", "WriteBuffer", ")", "WriteLen8String", "(", "s", "string", ")", "{", "if", "int", "(", "byte", "(", "len", "(", "s", ")", ")", ")", "!=", "len", "(", "s", ")", "{", "w", ".", "setErr", "(", "errStringTooLong", ")", "\n", ...
24,692
all-24693
[ "GetGroup", "is", "a", "wrapper", "around", "gtk_radio_menu_item_get_group", "()", "." ]
[ "func", "(", "v", "*", "RadioMenuItem", ")", "GetGroup", "(", ")", "(", "*", "glib", ".", "SList", ",", "<mask>", ")", "{", "c", ":=", "C", ".", "gtk_radio_menu_item_get_group", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", ...
24,693
all-24694
[ "Get", "returns", "the", "value", "stored", "for", "the", "given", "key", "." ]
[ "func", "(", "h", "*", "kvHandler", ")", "Get", "(", "ctx", "thrift", ".", "Context", ",", "key", "string", ")", "(", "string", ",", "error", ")", "{", "if", "err", ":=", "isValidKey", "(", "key", ")", ";", "err", "!=", "nil", "{", "return", "\""...
24,694
all-24695
[ "GetExtraColOk", "returns", "a", "tuple", "with", "the", "ExtraCol", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "g", "*", "GraphDefinitionRequest", ")", "GetExtraColOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "g", "==", "nil", "||", "g", ".", "ExtraCol", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", "retu...
24,695
all-24696
[ "MustManageDataResult", "retrieves", "the", "ManageDataResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "." ]
[ "func", "(", "u", "OperationResultTr", ")", "MustManageDataResult", "(", ")", "ManageDataResult", "{", "val", ",", "ok", ":=", "u", ".", "GetManageDataResult", "(", ")", "\n\n", "if", "!", "<mask>", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n\n", ...
24,696
all-24697
[ "Remaining", "returns", "the", "remaining", "time", "of", "the", "lease", "." ]
[ "func", "(", "l", "*", "Lease", ")", "Remaining", "(", ")", "time", ".", "Duration", "{", "l", ".", "expiryMu", ".", "RLock", "(", ")", "\n", "defer", "l", ".", "expiryMu", ".", "RUnlock", "(", ")", "\n", "if", "l", ".", "expiry", ".", "IsZero", ...
24,697
all-24698
[ "GoogleServiceAccountCredentialsFile", "is", "an", "option", "that", "loads", "Google", "Service", "Account", "credentials", "for", "use", "with", "the", "StackdriverHook", "from", "the", "specified", "file", ".", "Google", "Service", "Account", "credentials", "can", ...
[ "func", "GoogleServiceAccountCredentialsFile", "(", "path", "string", ")", "Option", "{", "return", "func", "(", "sh", "*", "StackdriverHook", ")", "error", "{", "buf", ",", "err", ":=", "ioutil", ".", "ReadFile", "(", "<mask>", ")", "\n", "if", "err", "!=...
24,698
all-24699
[ "New", "generator", "for", "creating", "basic", "asset", "files" ]
[ "func", "New", "(", "opts", "*", "Options", ")", "(", "*", "genny", ".", "Generator", ",", "error", ")", "{", "g", ":=", "genny", ".", "New", "(", ")", "\n", "g", ".", "Box", "(", "packr", ".", "New", "(", "\"", "\"", ",", "\"", "\"", ")", ...
24,699
all-24700
[ "Events", "starts", "a", "task", "that", "continuously", "monitors", "the", "list", "of", "cluster", "nodes", "and", "maintains", "a", "pool", "of", "websocket", "connections", "against", "all", "of", "them", "in", "order", "to", "get", "notified", "about", ...
[ "func", "Events", "(", "endpoints", "*", "endpoints", ".", "Endpoints", ",", "cluster", "*", "db", ".", "Cluster", ",", "f", "func", "(", "int64", ",", "api", ".", "Event", ")", ")", "(", "task", ".", "Func", ",", "task", ".", "Schedule", ")", "{",...