id int32 0 25.3k | idx stringlengths 5 9 | nl_tokens listlengths 1 418 | pl_tokens listlengths 22 4.98k |
|---|---|---|---|
25,200 | all-25201 | [
"VerifyProvider",
"runs",
"the",
"verification",
"process",
"against",
"a",
"running",
"Provider",
".",
"TODO",
":",
"extract",
"/",
"refactor",
"the",
"stdout",
"/",
"error",
"streaems",
"from",
"these",
"functions"
] | [
"func",
"(",
"p",
"*",
"PactClient",
")",
"VerifyProvider",
"(",
"request",
"types",
".",
"VerifyRequest",
")",
"(",
"types",
".",
"ProviderVerifierResponse",
",",
"error",
")",
"{",
"log",
".",
"Println",
"(",
"\"",
"\"",
")",
"\n",
"var",
"response",
"... |
25,201 | all-25202 | [
"Hours",
"Returns",
"hours",
"for",
"a",
"venue",
".",
"https",
":",
"//",
"developer",
".",
"foursquare",
".",
"com",
"/",
"docs",
"/",
"api",
"/",
"venues",
"/",
"hours"
] | [
"func",
"(",
"s",
"*",
"VenueService",
")",
"Hours",
"(",
"id",
"string",
")",
"(",
"*",
"VenueHoursResp",
",",
"*",
"http",
".",
"Response",
",",
"error",
")",
"{",
"hours",
":=",
"new",
"(",
"VenueHoursResp",
")",
"\n",
"response",
":=",
"new",
"("... |
25,202 | all-25203 | [
"GetSequence",
"would",
"initiate",
"a",
"new",
"sequence",
"object",
"generating",
"it",
"from",
"the",
"stored",
"lease",
"if",
"available",
"in",
"the",
"database",
".",
"Sequence",
"can",
"be",
"used",
"to",
"get",
"a",
"list",
"of",
"monotonically",
"in... | [
"func",
"(",
"db",
"*",
"DB",
")",
"GetSequence",
"(",
"key",
"[",
"]",
"byte",
",",
"bandwidth",
"uint64",
")",
"(",
"*",
"Sequence",
",",
"error",
")",
"{",
"if",
"db",
".",
"opt",
".",
"managedTxns",
"{",
"panic",
"(",
"\"",
"\"",
")",
"\n",
... |
25,203 | all-25204 | [
"expandCustomizationIPSettings",
"reads",
"certain",
"ResourceData",
"keys",
"and",
"returns",
"a",
"CustomizationIPSettings",
"."
] | [
"func",
"expandCustomizationIPSettings",
"(",
"d",
"*",
"schema",
".",
"ResourceData",
",",
"n",
"int",
",",
"v4gwAdd",
",",
"v6gwAdd",
"bool",
")",
"(",
"types",
".",
"CustomizationIPSettings",
",",
"bool",
",",
"bool",
")",
"{",
"var",
"v4gwFound",
",",
... |
25,204 | all-25205 | [
"loadTLSFiles",
"is",
"a",
"modified",
"copy",
"of",
"k8s",
".",
"io",
"/",
"kubernetes",
"/",
"pkg",
"/",
"client",
"/",
"transport",
".",
"loadTLSFiles",
".",
"loadTLSFiles",
"copies",
"the",
"data",
"from",
"the",
"CertFile",
"KeyFile",
"and",
"CAFile",
... | [
"func",
"loadTLSFiles",
"(",
"c",
"*",
"restConfig",
")",
"error",
"{",
"<mask>",
"err",
"error",
"\n",
"c",
".",
"CAData",
",",
"err",
"=",
"dataFromSliceOrFile",
"(",
"c",
".",
"CAData",
",",
"c",
".",
"CAFile",
")",
"\n",
"if",
"err",
"!=",
"nil",... |
25,205 | all-25206 | [
"Request",
"returns",
"the",
"special",
"task",
"-",
"queue",
"HTTP",
"request",
"headers",
"for",
"the",
"current",
"task",
"queue",
"handler",
".",
"Returns",
"an",
"error",
"if",
"called",
"from",
"outside",
"a",
"delay",
".",
"Func",
"."
] | [
"func",
"RequestHeaders",
"(",
"c",
"<mask>",
".",
"Context",
")",
"(",
"*",
"taskqueue",
".",
"RequestHeaders",
",",
"error",
")",
"{",
"if",
"ret",
",",
"ok",
":=",
"c",
".",
"Value",
"(",
"headersContextKey",
")",
".",
"(",
"*",
"taskqueue",
".",
... |
25,206 | all-25207 | [
"Watch",
"the",
"catalog",
"for",
"new",
"services",
"we",
"would",
"like",
"to",
"watch",
".",
"This",
"is",
"called",
"only",
"when",
"we",
"don",
"t",
"know",
"yet",
"the",
"names",
"of",
"the",
"services",
"and",
"need",
"to",
"ask",
"Consul",
"the... | [
"func",
"(",
"d",
"*",
"Discovery",
")",
"watchServices",
"(",
"ctx",
"context",
".",
"Context",
",",
"ch",
"chan",
"<-",
"[",
"]",
"*",
"targetgroup",
".",
"Group",
",",
"lastIndex",
"*",
"uint64",
",",
"services",
"map",
"[",
"string",
"]",
"func",
... |
25,207 | all-25208 | [
"/",
"*",
"Fatal",
"uses",
"msg",
"as",
"a",
"format",
"string",
"with",
"subsequent",
"parameters",
"as",
"values",
"and",
"logs",
"the",
"resulting",
"message",
"to",
"all",
"added",
"loggers",
"at",
"LogLevel",
".",
"LevelFatal"
] | [
"func",
"(",
"b",
"*",
"Base",
")",
"Fatal",
"(",
"msg",
"string",
")",
"error",
"{",
"return",
"b",
".",
"<mask>",
"(",
"LevelFatal",
",",
"nil",
",",
"msg",
")",
"\n",
"}"
] |
25,208 | all-25209 | [
"HasWidth",
"returns",
"a",
"boolean",
"if",
"a",
"field",
"has",
"been",
"set",
"."
] | [
"func",
"(",
"g",
"*",
"GraphDefinitionRequestStyle",
")",
"HasWidth",
"(",
")",
"bool",
"{",
"if",
"g",
"!=",
"nil",
"&&",
"g",
".",
"Width",
"!=",
"nil",
"{",
"return",
"<mask>",
"\n",
"}",
"\n\n",
"return",
"false",
"\n",
"}"
] |
25,209 | all-25210 | [
"RectFromCircle",
"returns",
"the",
"minimum",
"rectangle",
"that",
"contains",
"the",
"circle",
"of",
"center",
"c",
"and",
"radius",
"r"
] | [
"func",
"RectFromCircle",
"(",
"c",
"Vec2",
",",
"r",
"float32",
")",
"Rectangle",
"{",
"<mask>",
"RectWH",
"(",
"c",
"[",
"0",
"]",
"-",
"r",
",",
"c",
"[",
"1",
"]",
"-",
"r",
",",
"2",
"*",
"r",
",",
"2",
"*",
"r",
")",
"\n",
"}"
] |
25,210 | all-25211 | [
"ToSlash",
"is",
"being",
"used",
"to",
"coerce",
"the",
"different",
"os",
"PathSeparators",
"into",
"the",
"forward",
"slash",
"as",
"the",
"forward",
"slash",
"is",
"required",
"by",
"Go",
"s",
"import",
"statement"
] | [
"func",
"assembleImportPath",
"(",
"file",
"string",
")",
"string",
"{",
"a",
",",
"_",
":=",
"filepath",
".",
"Abs",
"(",
"filepath",
".",
"Dir",
"(",
"file",
")",
")",
"\n",
"absPath",
",",
"fullPkg",
":=",
"filepath",
".",
"ToSlash",
"(",
"a",
")"... |
25,211 | all-25212 | [
"Normalized",
"returns",
"a",
"new",
"instance",
"where",
"all",
"values",
"have",
"been",
"sorted",
"and",
"compacted",
"(",
"where",
"possible",
")",
".",
"If",
"invert",
"is",
"true",
"then",
"return",
"all",
"values",
"within",
"the",
"start",
"/",
"en... | [
"func",
"(",
"l",
"*",
"InclusiveRanges",
")",
"normalized",
"(",
"invert",
"bool",
")",
"*",
"InclusiveRanges",
"{",
"normalized",
":=",
"&",
"InclusiveRanges",
"{",
"}",
"\n\n",
"var",
"(",
"start",
"int",
"\n",
"end",
"int",
"\n",
"step",
"int",
"\n",... |
25,212 | all-25213 | [
"URLParam",
"returns",
"the",
"url",
"parameter",
"from",
"a",
"http",
".",
"Request",
"object",
"."
] | [
"func",
"URLParam",
"(",
"r",
"*",
"http",
".",
"Request",
",",
"key",
"string",
")",
"string",
"{",
"if",
"rctx",
":=",
"RouteContext",
"(",
"r",
".",
"<mask>",
"(",
")",
")",
";",
"rctx",
"!=",
"nil",
"{",
"return",
"rctx",
".",
"URLParam",
"(",
... |
25,213 | all-25214 | [
"Close",
"closes",
"the",
"ReaderCloser",
"contained",
"in",
"b",
"."
] | [
"func",
"(",
"b",
"*",
"BackoffReadCloser",
")",
"Close",
"(",
")",
"error",
"{",
"<mask>",
",",
"_",
":=",
"tracing",
".",
"AddSpanToAnyExisting",
"(",
"b",
".",
"ctx",
",",
"\"",
"\"",
")",
"\n",
"defer",
"tracing",
".",
"FinishAnySpan",
"(",
"span",... |
25,214 | all-25215 | [
"And",
"will",
"match",
"and",
"run",
"both",
"authorizers",
"and",
"return",
"immediately",
"if",
"one",
"does",
"not",
"return",
"a",
"set",
"of",
"enforcers",
".",
"The",
"two",
"successfully",
"returned",
"enforcer",
"sets",
"are",
"merged",
"into",
"one... | [
"func",
"And",
"(",
"a",
",",
"b",
"*",
"Authorizer",
")",
"*",
"Authorizer",
"{",
"return",
"A",
"(",
"\"",
"\"",
",",
"func",
"(",
"ctx",
"*",
"fire",
".",
"<mask>",
")",
"bool",
"{",
"return",
"a",
".",
"Matcher",
"(",
"ctx",
")",
"&&",
"b",... |
25,215 | all-25216 | [
"UnmarshalText",
"hydrates",
"this",
"instance",
"from",
"text"
] | [
"func",
"(",
"d",
"*",
"Duration",
")",
"UnmarshalText",
"(",
"data",
"[",
"]",
"<mask>",
")",
"error",
"{",
"// validation is performed later on",
"dd",
",",
"err",
":=",
"ParseDuration",
"(",
"string",
"(",
"data",
")",
")",
"\n",
"if",
"err",
"!=",
"n... |
25,216 | all-25217 | [
"DataUploadWithMetadata",
"returns",
"an",
"UploadFunc",
"which",
"copies",
"all",
"data",
"from",
"src",
"reader",
"into",
"GCS",
"and",
"also",
"sets",
"the",
"provided",
"metadata",
"fields",
"onto",
"the",
"object",
"."
] | [
"func",
"DataUploadWithMetadata",
"(",
"src",
"io",
".",
"Reader",
",",
"metadata",
"map",
"[",
"string",
"]",
"string",
")",
"UploadFunc",
"{",
"return",
"func",
"(",
"obj",
"*",
"storage",
".",
"ObjectHandle",
")",
"error",
"{",
"writer",
":=",
"obj",
... |
25,217 | all-25218 | [
"newDnsimpleChange",
"initializes",
"a",
"new",
"change",
"to",
"dns",
"records"
] | [
"func",
"newDnsimpleChange",
"(",
"action",
"string",
",",
"e",
"*",
"endpoint",
".",
"Endpoint",
")",
"*",
"dnsimpleChange",
"{",
"ttl",
":=",
"dnsimpleRecordTTL",
"\n",
"if",
"e",
".",
"RecordTTL",
".",
"IsConfigured",
"(",
")",
"{",
"ttl",
"=",
"int",
... |
25,218 | all-25219 | [
"Validate",
"that",
"options",
"are",
"usuable"
] | [
"func",
"(",
"opts",
"*",
"Options",
")",
"Validate",
"(",
")",
"error",
"{",
"if",
"opts",
".",
"App",
".",
"IsZero",
"(",
")",
"{",
"opts",
".",
"App",
"=",
"meta",
".",
"New",
"(",
"\"",
"\"",
")",
"\n",
"}",
"\n\n",
"if",
"len",
"(",
"opt... |
25,219 | all-25220 | [
"waitForStopReported",
"will",
"wait",
"for",
"the",
"task",
"to",
"be",
"reported",
"stopped",
"and",
"return",
"true",
"or",
"will",
"time",
"-",
"out",
"and",
"return",
"false",
".",
"Messages",
"on",
"the",
"mtask",
".",
"dockerMessages",
"and",
"mtask",... | [
"func",
"(",
"mtask",
"*",
"managedTask",
")",
"waitForStopReported",
"(",
")",
"bool",
"{",
"stoppedSentBool",
":=",
"make",
"(",
"chan",
"struct",
"{",
"}",
")",
"\n",
"taskStopped",
":=",
"false",
"\n",
"go",
"func",
"(",
")",
"{",
"for",
"i",
":=",... |
25,220 | all-25221 | [
"ExitMaintenanceMode",
"takes",
"a",
"host",
"out",
"of",
"maintenance",
"mode",
"."
] | [
"func",
"ExitMaintenanceMode",
"(",
"host",
"*",
"object",
".",
"HostSystem",
",",
"timeout",
"int",
")",
"error",
"{",
"log",
".",
"Printf",
"(",
"\"",
"\"",
",",
"host",
".",
"Name",
"(",
")",
")",
"\n\n",
"// Add 5 minutes to timeout for the context timeout... |
25,221 | all-25222 | [
"ListCommitF",
"lists",
"commits",
"calling",
"f",
"with",
"each",
"commit",
".",
"If",
"only",
"repo",
"is",
"given",
"all",
"commits",
"in",
"the",
"repo",
"are",
"returned",
".",
"If",
"to",
"is",
"given",
"only",
"the",
"ancestors",
"of",
"to",
"incl... | [
"func",
"(",
"c",
"APIClient",
")",
"ListCommitF",
"(",
"repoName",
"string",
",",
"to",
"string",
",",
"from",
"string",
",",
"number",
"uint64",
",",
"f",
"func",
"(",
"*",
"pfs",
".",
"CommitInfo",
")",
"error",
")",
"error",
"{",
"req",
":=",
"&"... |
25,222 | all-25223 | [
"FieldArgs",
"converts",
"the",
"given",
"fields",
"to",
"function",
"arguments",
"rendering",
"their",
"name",
"and",
"type",
"."
] | [
"func",
"FieldArgs",
"(",
"fields",
"[",
"]",
"*",
"Field",
")",
"string",
"{",
"args",
":=",
"make",
"(",
"[",
"]",
"string",
",",
"len",
"(",
"fields",
")",
")",
"\n",
"for",
"i",
",",
"field",
":=",
"range",
"<mask>",
"{",
"args",
"[",
"i",
... |
25,223 | all-25224 | [
"CreateDatabase",
"creates",
"and",
"connects",
"a",
"new",
"instance",
"of",
"an",
"InfluxDB",
"It",
"is",
"created",
"based",
"on",
"the",
"fields",
"set",
"in",
"the",
"configuration",
"."
] | [
"func",
"(",
"config",
"*",
"InfluxConfig",
")",
"CreateDatabase",
"(",
"tags",
"map",
"[",
"string",
"]",
"string",
",",
"measurement",
"string",
")",
"(",
"*",
"InfluxDB",
",",
"error",
")",
"{",
"client",
",",
"err",
":=",
"influxdb",
".",
"NewHTTPCli... |
25,224 | all-25225 | [
"GetKnownExitCode",
"returns",
"the",
"container",
"exit",
"code"
] | [
"func",
"(",
"c",
"*",
"<mask>",
")",
"GetKnownExitCode",
"(",
")",
"*",
"int",
"{",
"c",
".",
"lock",
".",
"RLock",
"(",
")",
"\n",
"defer",
"c",
".",
"lock",
".",
"RUnlock",
"(",
")",
"\n\n",
"return",
"c",
".",
"KnownExitCodeUnsafe",
"\n",
"}"
] |
25,225 | all-25226 | [
"Read",
"reads",
"data",
"net",
".",
"Conn",
"style"
] | [
"func",
"(",
"c",
"*",
"singleConn",
")",
"Read",
"(",
"buf",
"[",
"]",
"<mask>",
")",
"(",
"int",
",",
"error",
")",
"{",
"return",
"c",
".",
"maconn",
".",
"Read",
"(",
"buf",
")",
"\n",
"}"
] |
25,226 | all-25227 | [
"non",
"-",
"blocking",
"trigger",
"close"
] | [
"func",
"(",
"l",
"*",
"overseerListener",
")",
"release",
"(",
"timeout",
"<mask>",
".",
"Duration",
")",
"{",
"//stop accepting connections - release fd",
"l",
".",
"closeError",
"=",
"l",
".",
"Listener",
".",
"Close",
"(",
")",
"\n",
"//start timer, close by... |
25,227 | all-25228 | [
"StatusString",
"mocks",
"base",
"method"
] | [
"func",
"(",
"m",
"*",
"MockTaskResource",
")",
"StatusString",
"(",
"arg0",
"status0",
".",
"ResourceStatus",
")",
"string",
"{",
"ret",
":=",
"m",
".",
"ctrl",
".",
"Call",
"(",
"m",
",",
"\"",
"\"",
",",
"arg0",
")",
"\n",
"ret0",
",",
"_",
":="... |
25,228 | all-25229 | [
"NewMockTaskResource",
"creates",
"a",
"new",
"mock",
"instance"
] | [
"func",
"NewMockTaskResource",
"(",
"ctrl",
"*",
"gomock",
".",
"<mask>",
")",
"*",
"MockTaskResource",
"{",
"mock",
":=",
"&",
"MockTaskResource",
"{",
"ctrl",
":",
"ctrl",
"}",
"\n",
"mock",
".",
"recorder",
"=",
"&",
"MockTaskResourceMockRecorder",
"{",
"... |
25,229 | all-25230 | [
"DockerConfig",
"converts",
"the",
"given",
"container",
"in",
"this",
"task",
"to",
"the",
"format",
"of",
"the",
"Docker",
"SDK",
"Config",
"struct"
] | [
"func",
"(",
"task",
"*",
"Task",
")",
"DockerConfig",
"(",
"container",
"*",
"apicontainer",
".",
"Container",
",",
"apiVersion",
"dockerclient",
".",
"DockerVersion",
")",
"(",
"*",
"dockercontainer",
".",
"Config",
",",
"*",
"apierrors",
".",
"DockerClientC... |
25,230 | all-25231 | [
"Increments",
"the",
"current",
"interval",
"by",
"multiplying",
"it",
"with",
"the",
"multiplier",
"."
] | [
"func",
"(",
"b",
"*",
"ExponentialBackOff",
")",
"incrementCurrentInterval",
"(",
")",
"{",
"// Check for overflow, if overflow is detected set the current interval to the max interval.",
"if",
"float64",
"(",
"b",
".",
"currentInterval",
")",
">=",
"float64",
"(",
"b",
... |
25,231 | all-25232 | [
"WithGestureSourceType",
"which",
"type",
"of",
"input",
"events",
"to",
"be",
"generated",
"(",
"default",
":",
"default",
"which",
"queries",
"the",
"platform",
"for",
"the",
"preferred",
"input",
"type",
")",
"."
] | [
"func",
"(",
"p",
"SynthesizePinchGestureParams",
")",
"WithGestureSourceType",
"(",
"gestureSourceType",
"GestureType",
")",
"*",
"SynthesizePinchGestureParams",
"{",
"p",
".",
"GestureSourceType",
"=",
"gestureSourceType",
"\n",
"<mask>",
"&",
"p",
"\n",
"}"
] |
25,232 | all-25233 | [
"Add",
"is",
"a",
"wrapper",
"around",
"gtk_container_add",
"()",
"."
] | [
"func",
"(",
"v",
"*",
"<mask>",
")",
"Add",
"(",
"w",
"IWidget",
")",
"{",
"C",
".",
"gtk_container_add",
"(",
"v",
".",
"native",
"(",
")",
",",
"w",
".",
"toWidget",
"(",
")",
")",
"\n",
"}"
] |
25,233 | all-25234 | [
"NewFakeCollection",
"===="
] | [
"func",
"NewFakeCollection",
"(",
"updated",
"int",
")",
"*",
"FakeCollection",
"{",
"fakeCol",
":=",
"new",
"(",
"FakeCollection",
")",
"\n\n",
"if",
"updated",
"==",
"-",
"1",
"{",
"fakeCol",
".",
"FakeChangeInfo",
"=",
"nil",
"\n",
"}",
"else",
"{",
"... |
25,234 | all-25235 | [
"MakeLibrary",
"creates",
"a",
"new",
"library",
"that",
"contains",
"the",
"functions",
"stored",
"in",
"the",
"specified",
"source",
"string",
".",
"Reference",
":",
"https",
":",
"//",
"developer",
".",
"apple",
".",
"com",
"/",
"documentation",
"/",
"met... | [
"func",
"(",
"d",
"Device",
")",
"MakeLibrary",
"(",
"source",
"string",
",",
"opt",
"CompileOptions",
")",
"(",
"Library",
",",
"error",
")",
"{",
"l",
":=",
"C",
".",
"Go_Device_MakeLibrary",
"(",
"d",
".",
"<mask>",
",",
"source",
")",
"// TODO: opt."... |
25,235 | all-25236 | [
"Remote",
"returns",
"the",
"VCS",
"name",
"and",
"the",
"remote",
"URL",
"for",
"a",
"repository",
"with",
"the",
"given",
"root",
"import",
"path",
".",
"This",
"is",
"suitable",
"for",
"creating",
"new",
"repository",
"rules",
"."
] | [
"func",
"(",
"r",
"*",
"RemoteCache",
")",
"Remote",
"(",
"root",
"string",
")",
"(",
"remote",
",",
"vcs",
"string",
",",
"err",
"error",
")",
"{",
"v",
",",
"err",
":=",
"r",
".",
"remote",
".",
"ensure",
"(",
"root",
",",
"func",
"(",
")",
"... |
25,236 | all-25237 | [
"WithPierce",
"whether",
"or",
"not",
"iframes",
"and",
"shadow",
"roots",
"should",
"be",
"traversed",
"when",
"returning",
"the",
"subtree",
"(",
"default",
"is",
"false",
")",
"."
] | [
"func",
"(",
"p",
"GetDocumentParams",
")",
"WithPierce",
"(",
"pierce",
"bool",
")",
"*",
"GetDocumentParams",
"{",
"p",
".",
"Pierce",
"=",
"pierce",
"\n",
"<mask>",
"&",
"p",
"\n",
"}"
] |
25,237 | all-25238 | [
"FlushMetrics",
"flushes",
"current",
"metrics",
"to",
"a",
"structure",
"and",
"returns",
"it",
"(",
"does",
"NOT",
"send",
"to",
"Circonus",
")"
] | [
"func",
"(",
"m",
"*",
"CirconusMetrics",
")",
"FlushMetrics",
"(",
")",
"*",
"Metrics",
"{",
"m",
".",
"flushmu",
".",
"Lock",
"(",
")",
"\n",
"if",
"m",
".",
"flushing",
"{",
"m",
".",
"flushmu",
".",
"Unlock",
"(",
")",
"\n",
"return",
"&",
"M... |
25,238 | all-25239 | [
"Matches",
"returns",
"whether",
"the",
"matcher",
"matches",
"the",
"given",
"string",
"value",
"."
] | [
"func",
"(",
"m",
"*",
"Matcher",
")",
"Matches",
"(",
"s",
"string",
")",
"bool",
"{",
"switch",
"m",
".",
"Type",
"{",
"case",
"MatchEqual",
":",
"return",
"s",
"==",
"m",
".",
"Value",
"\n",
"case",
"MatchNotEqual",
":",
"return",
"s",
"!=",
"m"... |
25,239 | all-25240 | [
"NewMockControl",
"creates",
"a",
"new",
"mock",
"instance"
] | [
"func",
"NewMockControl",
"(",
"ctrl",
"*",
"gomock",
".",
"<mask>",
")",
"*",
"MockControl",
"{",
"mock",
":=",
"&",
"MockControl",
"{",
"ctrl",
":",
"ctrl",
"}",
"\n",
"mock",
".",
"recorder",
"=",
"&",
"MockControlMockRecorder",
"{",
"mock",
"}",
"\n"... |
25,240 | all-25241 | [
"return",
"a",
"texture",
"image"
] | [
"func",
"GetTextureImage",
"(",
"texture",
"uint32",
",",
"<mask>",
"int32",
",",
"format",
"uint32",
",",
"xtype",
"uint32",
",",
"bufSize",
"int32",
",",
"pixels",
"unsafe",
".",
"Pointer",
")",
"{",
"C",
".",
"glowGetTextureImage",
"(",
"gpGetTextureImage",... |
25,241 | all-25242 | [
"GetParameterType",
"is",
"a",
"wrapper",
"around",
"g_action_get_parameter_type"
] | [
"func",
"(",
"v",
"*",
"<mask>",
")",
"GetParameterType",
"(",
")",
"*",
"VariantType",
"{",
"c",
":=",
"C",
".",
"g_action_get_parameter_type",
"(",
"v",
".",
"native",
"(",
")",
")",
"\n",
"if",
"c",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
... |
25,242 | all-25243 | [
"MapSet",
"stores",
"the",
"value",
"v",
"into",
"a",
"key",
"mk",
"in",
"the",
"map",
"named",
"k",
"."
] | [
"func",
"(",
"s",
"*",
"Scratch",
")",
"MapSet",
"(",
"k",
",",
"mk",
"string",
",",
"v",
"interface",
"{",
"}",
")",
"(",
"string",
",",
"error",
")",
"{",
"s",
".",
"init",
"(",
")",
"\n\n",
"s",
".",
"Lock",
"(",
")",
"\n",
"defer",
"s",
... |
25,243 | all-25244 | [
"Do",
"executes",
"Network",
".",
"getAllCookies",
"against",
"the",
"provided",
"context",
".",
"returns",
":",
"cookies",
"-",
"Array",
"of",
"cookie",
"objects",
"."
] | [
"func",
"(",
"p",
"*",
"GetAllCookiesParams",
")",
"Do",
"(",
"ctx",
"<mask>",
".",
"Context",
")",
"(",
"cookies",
"[",
"]",
"*",
"Cookie",
",",
"err",
"error",
")",
"{",
"// execute",
"var",
"res",
"GetAllCookiesReturns",
"\n",
"err",
"=",
"cdp",
"."... |
25,244 | all-25245 | [
"ExtractInboundSpan",
"is",
"a",
"higher",
"level",
"version",
"of",
"extractInboundSpan",
"()",
".",
"If",
"the",
"lower",
"-",
"level",
"attempt",
"to",
"create",
"a",
"span",
"from",
"incoming",
"request",
"was",
"successful",
"(",
"e",
".",
"g",
".",
"... | [
"func",
"ExtractInboundSpan",
"(",
"ctx",
"context",
".",
"Context",
",",
"call",
"*",
"InboundCall",
",",
"headers",
"map",
"[",
"string",
"]",
"string",
",",
"tracer",
"opentracing",
".",
"Tracer",
")",
"context",
".",
"Context",
"{",
"var",
"span",
"=",... |
25,245 | all-25246 | [
"isAutoIncrementable",
"returns",
"whether",
"the",
"struct",
"field",
"is",
"integer",
"."
] | [
"func",
"(",
"db",
"*",
"DB",
")",
"isAutoIncrementable",
"(",
"field",
"*",
"reflect",
".",
"StructField",
")",
"bool",
"{",
"switch",
"field",
".",
"Type",
".",
"Kind",
"(",
")",
"{",
"case",
"reflect",
".",
"Int",
",",
"reflect",
".",
"Int16",
","... |
25,246 | all-25247 | [
"--------------------------------------------------------------------------------",
"sha256"
] | [
"func",
"hash32",
"(",
"input",
"[",
"]",
"byte",
")",
"(",
"res",
"*",
"[",
"32",
"]",
"byte",
")",
"{",
"hasher",
":=",
"sha256",
".",
"New",
"(",
")",
"\n",
"hasher",
".",
"Write",
"(",
"input",
")",
"// does not error",
"\n",
"resSlice",
":=",
... |
25,247 | all-25248 | [
"Only",
"initialize",
"the",
"minimal",
"information",
"we",
"need",
"about",
"a",
"given",
"storage",
"type",
"."
] | [
"func",
"(",
"s",
"*",
"storageLvm",
")",
"StorageCoreInit",
"(",
")",
"error",
"{",
"s",
".",
"sType",
"=",
"storageTypeLvm",
"\n",
"typeName",
",",
"err",
":=",
"storageTypeToString",
"(",
"s",
".",
"sType",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
... |
25,248 | all-25249 | [
"NewMinioClient",
"creates",
"an",
"s3",
"compatible",
"client",
"with",
"the",
"following",
"credentials",
":",
"endpoint",
"-",
"S3",
"compatible",
"endpoint",
"bucket",
"-",
"S3",
"bucket",
"name",
"id",
"-",
"AWS",
"access",
"key",
"id",
"secret",
"-",
"... | [
"func",
"NewMinioClient",
"(",
"endpoint",
",",
"bucket",
",",
"id",
",",
"<mask>",
"string",
",",
"secure",
",",
"isS3V2",
"bool",
")",
"(",
"Client",
",",
"error",
")",
"{",
"if",
"isS3V2",
"{",
"return",
"newMinioClientV2",
"(",
"endpoint",
",",
"buck... |
25,249 | all-25250 | [
"resourceVSphereDatastoreClusterVMAntiAffinityRuleApplySDRSConfigSpec",
"applying",
"a",
"SDRS",
"config",
"spec",
"for",
"the",
"vsphere_datastore_cluster_vm_anti_affinity_rule",
"resource",
".",
"This",
"is",
"wrapped",
"to",
"abstract",
"the",
"fact",
"that",
"we",
"are",
... | [
"func",
"resourceVSphereDatastoreClusterVMAntiAffinityRuleApplySDRSConfigSpec",
"(",
"pod",
"*",
"object",
".",
"StoragePod",
",",
"spec",
"<mask>",
".",
"StorageDrsConfigSpec",
",",
")",
"error",
"{",
"return",
"storagepod",
".",
"ApplyDRSConfiguration",
"(",
"&",
"gov... |
25,250 | all-25251 | [
"Validate",
"checks",
"if",
"the",
"directory",
"and",
"the",
"layout",
"files",
"exist",
"as",
"expected",
"and",
"configured"
] | [
"func",
"(",
"r",
"*",
"Render",
")",
"Validate",
"(",
")",
"{",
"// add trailing slash if the user has forgotten..",
"if",
"!",
"strings",
".",
"HasSuffix",
"(",
"r",
".",
"TemplatesDir",
",",
"\"",
"\"",
")",
"{",
"r",
".",
"TemplatesDir",
"=",
"r",
".",... |
25,251 | all-25252 | [
"LayerInfos",
"returns",
"a",
"list",
"of",
"LayerInfos",
"of",
"layers",
"referenced",
"by",
"this",
"image",
"in",
"order",
"(",
"the",
"root",
"layer",
"first",
"and",
"then",
"successive",
"layered",
"layers",
")",
".",
"The",
"Digest",
"field",
"is",
... | [
"func",
"(",
"m",
"*",
"Schema2",
")",
"LayerInfos",
"(",
")",
"[",
"]",
"LayerInfo",
"{",
"blobs",
":=",
"[",
"]",
"LayerInfo",
"{",
"}",
"\n",
"for",
"_",
",",
"layer",
":=",
"range",
"m",
".",
"LayersDescriptors",
"{",
"blobs",
"=",
"<mask>",
"(... |
25,252 | all-25253 | [
"createPublishHealthRequests",
"creates",
"the",
"requests",
"to",
"publish",
"container",
"health"
] | [
"func",
"(",
"cs",
"*",
"clientServer",
")",
"createPublishHealthRequests",
"(",
")",
"(",
"[",
"]",
"*",
"ecstcs",
".",
"PublishHealthRequest",
",",
"error",
")",
"{",
"<mask>",
",",
"taskHealthMetrics",
",",
"err",
":=",
"cs",
".",
"statsEngine",
".",
"G... |
25,253 | all-25254 | [
"loadRepos",
"read",
"what",
"(",
"filtered",
")",
"repos",
"exist",
"under",
"an",
"org"
] | [
"func",
"loadRepos",
"(",
"org",
"string",
",",
"gc",
"client",
")",
"(",
"[",
"]",
"string",
",",
"error",
")",
"{",
"org",
",",
"isUser",
":=",
"GetOrg",
"(",
"org",
")",
"\n",
"repos",
",",
"err",
":=",
"gc",
".",
"GetRepos",
"(",
"org",
",",
... |
25,254 | all-25255 | [
"Rollback",
"implements",
"Rollback",
"method",
"of",
"PlatformService",
"interface"
] | [
"func",
"(",
"s",
"*",
"platformService",
")",
"Rollback",
"(",
"opts",
"appTypes",
".",
"PlatformOptions",
")",
"error",
"{",
"if",
"opts",
".",
"<mask>",
"==",
"\"",
"\"",
"{",
"return",
"appTypes",
".",
"ErrPlatformNameMissing",
"\n",
"}",
"\n",
"if",
... |
25,255 | all-25256 | [
"native",
"returns",
"a",
"pointer",
"to",
"the",
"underlying",
"cairo_t",
"."
] | [
"func",
"(",
"v",
"*",
"Context",
")",
"native",
"(",
")",
"*",
"C",
".",
"cairo_t",
"{",
"if",
"v",
"==",
"nil",
"{",
"return",
"nil",
"\n",
"}",
"\n",
"return",
"v",
".",
"<mask>",
"\n",
"}"
] |
25,256 | all-25257 | [
"RootTracer",
"is",
"a",
"middleware",
"that",
"can",
"be",
"used",
"to",
"create",
"root",
"trace",
"span",
"for",
"an",
"incoming",
"request",
"."
] | [
"func",
"RootTracer",
"(",
")",
"func",
"(",
"http",
".",
"Handler",
")",
"http",
".",
"Handler",
"{",
"return",
"func",
"(",
"next",
"http",
".",
"Handler",
")",
"http",
".",
"Handler",
"{",
"return",
"http",
".",
"HandlerFunc",
"(",
"func",
"(",
"w... |
25,257 | all-25258 | [
"specify",
"the",
"alpha",
"test",
"function"
] | [
"func",
"AlphaFunc",
"(",
"xfunc",
"uint32",
",",
"<mask>",
"float32",
")",
"{",
"C",
".",
"glowAlphaFunc",
"(",
"gpAlphaFunc",
",",
"(",
"C",
".",
"GLenum",
")",
"(",
"xfunc",
")",
",",
"(",
"C",
".",
"GLfloat",
")",
"(",
"ref",
")",
")",
"\n",
... |
25,258 | all-25259 | [
"CreateIssue",
"tries",
"to",
"create",
"and",
"return",
"a",
"new",
"github",
"issue",
"."
] | [
"func",
"(",
"c",
"*",
"Client",
")",
"CreateIssue",
"(",
"org",
",",
"repo",
",",
"title",
",",
"body",
"string",
",",
"labels",
",",
"assignees",
"[",
"]",
"string",
")",
"(",
"*",
"github",
".",
"Issue",
",",
"error",
")",
"{",
"glog",
".",
"I... |
25,259 | all-25260 | [
"Value",
"converts",
"a",
"value",
"to",
"a",
"database",
"driver",
"value"
] | [
"func",
"(",
"e",
"Email",
")",
"Value",
"(",
")",
"(",
"<mask>",
".",
"Value",
",",
"error",
")",
"{",
"return",
"driver",
".",
"Value",
"(",
"string",
"(",
"e",
")",
")",
",",
"nil",
"\n",
"}"
] |
25,260 | all-25261 | [
"DeleteBalancedNic",
"removes",
"a",
"balanced",
"nic"
] | [
"func",
"(",
"c",
"*",
"Client",
")",
"DeleteBalancedNic",
"(",
"dcid",
",",
"lbalid",
",",
"balnicid",
"string",
")",
"(",
"*",
"http",
".",
"Header",
",",
"error",
")",
"{",
"url",
":=",
"balnicPath",
"(",
"dcid",
",",
"lbalid",
",",
"balnicid",
")... |
25,261 | all-25262 | [
"GetSetOptionsResult",
"retrieves",
"the",
"SetOptionsResult",
"value",
"from",
"the",
"union",
"returning",
"ok",
"if",
"the",
"union",
"s",
"switch",
"indicated",
"the",
"value",
"is",
"valid",
"."
] | [
"func",
"(",
"u",
"OperationResultTr",
")",
"GetSetOptionsResult",
"(",
")",
"(",
"result",
"SetOptionsResult",
",",
"ok",
"bool",
")",
"{",
"armName",
",",
"_",
":=",
"u",
".",
"ArmForSwitch",
"(",
"int32",
"(",
"u",
".",
"Type",
")",
")",
"\n\n",
"if... |
25,262 | all-25263 | [
"defaultPolicyPath",
"returns",
"a",
"path",
"to",
"the",
"default",
"policy",
"of",
"the",
"system",
"."
] | [
"func",
"defaultPolicyPath",
"(",
"sys",
"*",
"<mask>",
".",
"SystemContext",
")",
"string",
"{",
"if",
"sys",
"!=",
"nil",
"{",
"if",
"sys",
".",
"SignaturePolicyPath",
"!=",
"\"",
"\"",
"{",
"return",
"sys",
".",
"SignaturePolicyPath",
"\n",
"}",
"\n",
... |
25,263 | all-25264 | [
"MarshalJSON",
"supports",
"json",
".",
"Marshaler",
"interface"
] | [
"func",
"(",
"v",
"SetSkipAllPausesParams",
")",
"MarshalJSON",
"(",
")",
"(",
"[",
"]",
"<mask>",
",",
"error",
")",
"{",
"w",
":=",
"jwriter",
".",
"Writer",
"{",
"}",
"\n",
"easyjsonC5a4559bEncodeGithubComChromedpCdprotoDebugger4",
"(",
"&",
"w",
",",
"v"... |
25,264 | all-25265 | [
"/",
"*",
"Identify",
"the",
"end",
"of",
"a",
"segment"
] | [
"func",
"SegmentEnd",
"(",
"id",
",",
"segId",
"int64",
")",
"(",
"int",
",",
"error",
")",
"{",
"return",
"errNo",
"(",
"C",
".",
"newrelic_segment_end",
"(",
"C",
".",
"long",
"(",
"<mask>",
")",
",",
"C",
".",
"long",
"(",
"segId",
")",
")",
"... |
25,265 | all-25266 | [
"DistanceForStrings",
"returns",
"the",
"edit",
"distance",
"between",
"source",
"and",
"target",
".",
"It",
"has",
"a",
"runtime",
"proportional",
"to",
"len",
"(",
"source",
")",
"*",
"len",
"(",
"target",
")",
"and",
"memory",
"use",
"proportional",
"to",... | [
"func",
"DistanceForStrings",
"(",
"source",
"[",
"]",
"rune",
",",
"target",
"[",
"]",
"rune",
",",
"op",
"Options",
")",
"int",
"{",
"// Note: This algorithm is a specialization of MatrixForStrings.",
"// MatrixForStrings returns the full edit matrix. However, we only need a"... |
25,266 | all-25267 | [
"NewMockCache",
"creates",
"a",
"new",
"mock",
"instance"
] | [
"func",
"NewMockCache",
"(",
"ctrl",
"*",
"gomock",
".",
"<mask>",
")",
"*",
"MockCache",
"{",
"mock",
":=",
"&",
"MockCache",
"{",
"ctrl",
":",
"ctrl",
"}",
"\n",
"mock",
".",
"recorder",
"=",
"&",
"MockCacheMockRecorder",
"{",
"mock",
"}",
"\n",
"ret... |
25,267 | all-25268 | [
"Set",
"is",
"required",
"for",
"kingpin",
"interfaces",
"to",
"allow",
"command",
"line",
"params",
"to",
"be",
"set",
"to",
"our",
"map",
"datatype"
] | [
"func",
"(",
"o",
"*",
"MapInt16Option",
")",
"Set",
"(",
"value",
"string",
")",
"error",
"{",
"parts",
":=",
"stringMapRegex",
".",
"Split",
"(",
"value",
",",
"2",
")",
"\n",
"if",
"len",
"(",
"parts",
")",
"!=",
"2",
"{",
"return",
"fmt",
".",
... |
25,268 | all-25269 | [
"Bootstrap",
"turns",
"a",
"non",
"-",
"clustered",
"LXD",
"instance",
"into",
"the",
"first",
"(",
"and",
"leader",
")",
"node",
"of",
"a",
"new",
"LXD",
"cluster",
".",
"This",
"instance",
"must",
"already",
"have",
"its",
"cluster",
".",
"https_address"... | [
"func",
"Bootstrap",
"(",
"state",
"*",
"state",
".",
"State",
",",
"gateway",
"*",
"Gateway",
",",
"name",
"string",
")",
"error",
"{",
"// Check parameters",
"if",
"name",
"==",
"\"",
"\"",
"{",
"return",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
")",
... |
25,269 | all-25270 | [
"Switch",
".",
"Start",
"()",
"starts",
"all",
"the",
"reactors",
"peers",
"and",
"listeners",
"."
] | [
"func",
"(",
"sw",
"*",
"Switch",
")",
"OnStart",
"(",
")",
"error",
"{",
"sw",
".",
"BaseService",
".",
"OnStart",
"(",
")",
"\n",
"// Start reactors",
"for",
"_",
",",
"reactor",
":=",
"<mask>",
"sw",
".",
"reactors",
"{",
"_",
",",
"err",
":=",
... |
25,270 | all-25271 | [
"AttrString",
"returns",
"the",
"value",
"of",
"the",
"named",
"attribute",
"if",
"it",
"is",
"a",
"scalar",
"string",
".",
"is",
"returned",
"if",
"the",
"attribute",
"is",
"not",
"set",
"or",
"is",
"not",
"a",
"string",
"."
] | [
"func",
"(",
"r",
"*",
"Rule",
")",
"AttrString",
"(",
"key",
"string",
")",
"string",
"{",
"attr",
",",
"ok",
":=",
"r",
".",
"attrs",
"[",
"key",
"]",
"\n",
"if",
"!",
"ok",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"str",
",",
"ok",
":="... |
25,271 | all-25272 | [
"GetPageIterator",
"returns",
"an",
"iterator",
"which",
"can",
"be",
"used",
"to",
"retrieve",
"pages",
"."
] | [
"func",
"(",
"r",
"*",
"RecordingService",
")",
"GetPageIterator",
"(",
"data",
"url",
".",
"Values",
")",
"*",
"RecordingPageIterator",
"{",
"iter",
":=",
"NewPageIterator",
"(",
"r",
".",
"client",
",",
"<mask>",
",",
"recordingsPathPart",
")",
"\n",
"retu... |
25,272 | all-25273 | [
"GetAlertId",
"returns",
"the",
"AlertId",
"field",
"if",
"non",
"-",
"nil",
"zero",
"value",
"otherwise",
"."
] | [
"func",
"(",
"a",
"*",
"AlertGraphDefinition",
")",
"GetAlertId",
"(",
")",
"<mask>",
"{",
"if",
"a",
"==",
"nil",
"||",
"a",
".",
"AlertId",
"==",
"nil",
"{",
"return",
"\"",
"\"",
"\n",
"}",
"\n",
"return",
"*",
"a",
".",
"AlertId",
"\n",
"}"
] |
25,273 | all-25274 | [
"DeleteContainerBackup",
"requests",
"that",
"LXD",
"deletes",
"the",
"container",
"backup"
] | [
"func",
"(",
"r",
"*",
"ProtocolLXD",
")",
"DeleteContainerBackup",
"(",
"containerName",
"string",
",",
"name",
"string",
")",
"(",
"Operation",
",",
"error",
")",
"{",
"if",
"!",
"r",
".",
"HasExtension",
"(",
"\"",
"\"",
")",
"{",
"return",
"nil",
"... |
25,274 | all-25275 | [
"Core",
"takes",
"the",
"name",
"of",
"a",
"core",
"file",
"and",
"returns",
"a",
"Process",
"that",
"represents",
"the",
"state",
"of",
"the",
"inferior",
"that",
"generated",
"the",
"core",
"file",
"."
] | [
"func",
"Core",
"(",
"coreFile",
",",
"base",
",",
"exePath",
"string",
")",
"(",
"*",
"Process",
",",
"error",
")",
"{",
"core",
",",
"err",
":=",
"os",
".",
"Open",
"(",
"coreFile",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"nil",
","... |
25,275 | all-25276 | [
"Check",
"returns",
"true",
"if",
"an",
"alert",
"should",
"be",
"raised",
"based",
"on",
"the",
"range",
"(",
"if",
"the",
"value",
"is",
"outside",
"the",
"range",
"for",
"normal",
"semantics",
"or",
"if",
"the",
"value",
"is",
"inside",
"the",
"range"... | [
"func",
"(",
"r",
"*",
"Range",
")",
"Check",
"(",
"value",
"float64",
")",
"bool",
"{",
"// Ranges are treated as a closed interval.",
"if",
"r",
".",
"Start",
"<=",
"<mask>",
"&&",
"value",
"<=",
"r",
".",
"End",
"{",
"return",
"r",
".",
"AlertOnInside",... |
25,276 | all-25277 | [
"String",
"implements",
"the",
"Stringer",
"interface",
"."
] | [
"func",
"(",
"e",
"*",
"hdbError",
")",
"<mask>",
"(",
")",
"string",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"e",
".",
"errorCode",
",",
"e",
".",
"errorPosition",
",",
"e",
".",
"errorTextLength",
",",
"e",
".",
"errorLevel",
... |
25,277 | all-25278 | [
"GenerateCert",
"generates",
"a",
"new",
"certificate",
"signed",
"using",
"the",
"provided",
"certificate",
"authority",
"files",
"and",
"stores",
"the",
"result",
"in",
"the",
"certificate",
"file",
"and",
"key",
"provided",
".",
"The",
"provided",
"host",
"na... | [
"func",
"(",
"xcg",
"*",
"X509CertGenerator",
")",
"GenerateCert",
"(",
"opts",
"*",
"Options",
")",
"error",
"{",
"template",
",",
"err",
":=",
"xcg",
".",
"newCertificate",
"(",
"opts",
".",
"Org",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
... |
25,278 | all-25279 | [
"findGeneration",
"finds",
"out",
"the",
"generation",
"of",
"the",
"keyIndex",
"that",
"the",
"given",
"rev",
"belongs",
"to",
".",
"If",
"the",
"given",
"rev",
"is",
"at",
"the",
"gap",
"of",
"two",
"generations",
"which",
"means",
"that",
"the",
"key",
... | [
"func",
"(",
"ki",
"*",
"keyIndex",
")",
"findGeneration",
"(",
"rev",
"int64",
")",
"*",
"generation",
"{",
"lastg",
":=",
"len",
"(",
"ki",
".",
"generations",
")",
"-",
"1",
"\n",
"cg",
":=",
"lastg",
"\n\n",
"for",
"cg",
">=",
"0",
"{",
"if",
... |
25,279 | all-25280 | [
"DumpAST",
"sets",
"the",
"bitmask",
"for",
"DumpAST",
"debug",
"flag"
] | [
"func",
"(",
"f",
"*",
"Flags",
")",
"DumpAST",
"(",
"b",
"bool",
")",
"{",
"if",
"b",
"{",
"f",
".",
"<mask>",
"|=",
"MaskDumpAST",
"\n",
"}",
"else",
"{",
"f",
".",
"flags",
"&=",
"^",
"MaskDumpAST",
"\n",
"}",
"\n",
"}"
] |
25,280 | all-25281 | [
"getRBDMappedDevPath",
"looks",
"at",
"sysfs",
"to",
"retrieve",
"the",
"device",
"path",
"/",
"dev",
"/",
"rbd<idx",
">",
"for",
"an",
"RBD",
"image",
".",
"If",
"it",
"doesn",
"t",
"find",
"it",
"it",
"will",
"map",
"it",
"if",
"told",
"to",
"do",
... | [
"func",
"getRBDMappedDevPath",
"(",
"clusterName",
"string",
",",
"poolName",
"string",
",",
"volumeType",
"string",
",",
"volumeName",
"string",
",",
"doMap",
"bool",
",",
"userName",
"string",
")",
"(",
"string",
",",
"int",
")",
"{",
"files",
",",
"err",
... |
25,281 | all-25282 | [
"StoragePoolVolumeSnapshotsGetType",
"get",
"all",
"snapshots",
"of",
"a",
"storage",
"volume",
"attached",
"to",
"a",
"given",
"storage",
"pool",
"of",
"a",
"given",
"volume",
"type",
"on",
"the",
"given",
"node",
"."
] | [
"func",
"(",
"c",
"*",
"Cluster",
")",
"StoragePoolVolumeSnapshotsGetType",
"(",
"volumeName",
"string",
",",
"volumeType",
"int",
",",
"poolID",
"int64",
")",
"(",
"[",
"]",
"string",
",",
"error",
")",
"{",
"result",
":=",
"[",
"]",
"string",
"{",
"}",... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.