id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
21,200
all-21201
[ "GetUnits", "returns", "the", "internal", "list", "of", "units", "converted", "to", "bind", ".", "Unit", "." ]
[ "func", "(", "app", "*", "App", ")", "GetUnits", "(", ")", "(", "[", "]", "bind", ".", "Unit", ",", "error", ")", "{", "provUnits", ",", "err", ":=", "app", ".", "Units", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "e...
21,201
all-21202
[ "TracerFromRegistrar", "returns", "an", "OpenTracing", "Tracer", "embedded", "in", "the", "Registrar", "assuming", "that", "Registrar", "has", "a", "Tracer", "()", "method", ".", "Otherwise", "it", "returns", "default", "Global", "Tracer", "." ]
[ "func", "TracerFromRegistrar", "(", "registrar", "Registrar", ")", "opentracing", ".", "Tracer", "{", "if", "tracerProvider", ",", "ok", ":=", "registrar", ".", "(", "tracerProvider", ")", ";", "<mask>", "{", "return", "tracerProvider", ".", "Tracer", "(", ")"...
21,202
all-21203
[ "NewClient", "creates", "a", "new", "Livestatus", "client", "instance", "." ]
[ "func", "NewClient", "(", "network", ",", "address", "string", ")", "*", "Client", "{", "return", "NewClientWithDialer", "(", "<mask>", ",", "address", ",", "new", "(", "net", ".", "Dialer", ")", ")", "\n", "}" ]
21,203
all-21204
[ "ReloadData", "reloads", "configuration", "file", "from", "memory" ]
[ "func", "(", "c", "*", "ConfigFile", ")", "ReloadData", "(", "in", "io", ".", "Reader", ")", "(", "err", "error", ")", "{", "var", "cfg", "*", "ConfigFile", "\n", "if", "len", "(", "c", ".", "fileNames", ")", "!=", "1", "{", "return", "fmt", ".",...
21,204
all-21205
[ "HasServiceName", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "ServicePDRequest", ")", "HasServiceName", "(", ")", "bool", "{", "if", "s", "!=", "nil", "&&", "s", ".", "ServiceName", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
21,205
all-21206
[ "==", "Lookup", "lookUp", "parses", "the", "shadowed", "group", "line", "searching", "a", "value", "into", "the", "field", ".", "Returns", "nil", "if", "it", "isn", "t", "found", "." ]
[ "func", "(", "*", "GShadow", ")", "lookUp", "(", "line", "string", ",", "f", "field", ",", "value", "interface", "{", "}", ")", "interface", "{", "}", "{", "_field", ":=", "f", ".", "(", "gshadowField", ")", "\n", "_value", ":=", "value", ".", "(",...
21,206
all-21207
[ "define", "an", "array", "of", "fog", "coordinates" ]
[ "func", "FogCoordPointer", "(", "xtype", "uint32", ",", "stride", "int32", ",", "pointer", "unsafe", ".", "Pointer", ")", "{", "syscall", ".", "Syscall", "(", "gpFogCoordPointer", ",", "3", ",", "uintptr", "(", "xtype", ")", ",", "uintptr", "(", "stride", ...
21,207
all-21208
[ "GetAlertIdOk", "returns", "a", "tuple", "with", "the", "AlertId", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "a", "*", "AlertValueDefinition", ")", "GetAlertIdOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "a", "==", "nil", "||", "a", ".", "AlertId", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", ...
21,208
all-21209
[ "GetIterFromString", "()", "is", "a", "wrapper", "around", "gtk_tree_model_get_iter_from_string", "()", "." ]
[ "func", "(", "v", "*", "TreeModel", ")", "GetIterFromString", "(", "path", "string", ")", "(", "*", "TreeIter", ",", "error", ")", "{", "<mask>", "iter", "C", ".", "GtkTreeIter", "\n", "cstr", ":=", "C", ".", "CString", "(", "path", ")", "\n", "defer...
21,209
all-21210
[ "waitForDuration", "waits", "for", "the", "specified", "duration", "of", "time", ".", "If", "the", "wait", "is", "interrupted", "it", "returns", "a", "false", "value", ".", "Else", "it", "returns", "true", "indicating", "completion", "of", "wait", "time", "....
[ "func", "(", "acsSession", "*", "session", ")", "waitForDuration", "(", "<mask>", "time", ".", "Duration", ")", "bool", "{", "reconnectTimer", ":=", "time", ".", "NewTimer", "(", "delay", ")", "\n", "select", "{", "case", "<-", "reconnectTimer", ".", "C", ...
21,210
all-21211
[ "Info", "logs", "msg", "to", "all", "added", "loggers", "at", "LogLevel", ".", "LevelInfo" ]
[ "func", "(", "b", "*", "Base", ")", "Info", "(", "<mask>", "string", ")", "error", "{", "return", "b", ".", "Log", "(", "LevelInfo", ",", "nil", ",", "msg", ")", "\n", "}" ]
21,211
all-21212
[ "IterParent", "is", "a", "wrapper", "around", "gtk_tree_model_iter_parent", "()", "." ]
[ "func", "(", "v", "*", "TreeModel", ")", "IterParent", "(", "iter", ",", "<mask>", "*", "TreeIter", ")", "bool", "{", "c", ":=", "C", ".", "gtk_tree_model_iter_parent", "(", "v", ".", "native", "(", ")", ",", "iter", ".", "native", "(", ")", ",", "...
21,212
all-21213
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "ScriptCoverage", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoProfiler15", "(", "&", "w", ",", "v", ")"...
21,213
all-21214
[ "RootForSpec", "determines", "the", "root", "GCS", "path", "for", "storing", "artifacts", "about", "the", "provided", "job", "." ]
[ "func", "RootForSpec", "(", "spec", "*", "downwardapi", ".", "JobSpec", ")", "string", "{", "switch", "<mask>", ".", "Type", "{", "case", "prowapi", ".", "PeriodicJob", ",", "prowapi", ".", "PostsubmitJob", ":", "return", "path", ".", "Join", "(", "NonPRLo...
21,214
all-21215
[ "WriteHeader", "sets", "the", "status", "code", "for", "a", "response" ]
[ "func", "(", "w", "*", "Response", ")", "WriteHeader", "(", "i", "int", ")", "{", "w", ".", "<mask>", "=", "i", "\n", "w", ".", "ResponseWriter", ".", "WriteHeader", "(", "i", ")", "\n", "}" ]
21,215
all-21216
[ "WriteObject", "implements", "ObjectStream", "." ]
[ "func", "(", "t", "*", "bufferedObjectStream", ")", "WriteObject", "(", "obj", "<mask>", "{", "}", ")", "error", "{", "t", ".", "mu", ".", "Lock", "(", ")", "\n", "defer", "t", ".", "mu", ".", "Unlock", "(", ")", "\n", "if", "err", ":=", "t", "...
21,216
all-21217
[ "ResValue", "satisfies", "the", "Res", "interface", "for", "Num" ]
[ "func", "(", "n", "Num", ")", "<mask>", "(", ")", "string", "{", "if", "math", ".", "IsInf", "(", "float64", "(", "n", ")", ",", "0", ")", "{", "if", "math", ".", "IsInf", "(", "float64", "(", "n", ")", ",", "1", ")", "{", "return", "\"", "...
21,217
all-21218
[ "PeekEvent", "()", "is", "a", "wrapper", "around", "gdk_display_peek_event", "()", "." ]
[ "func", "(", "v", "*", "Display", ")", "PeekEvent", "(", ")", "(", "*", "Event", ",", "error", ")", "{", "c", ":=", "C", ".", "gdk_display_peek_event", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "return", "nil", ...
21,218
all-21219
[ "FileCopy", "copies", "file", "source", "to", "destination", "dest", ".", "Based", "on", "Jaybill", "McCarthy", "s", "code", "which", "can", "be", "found", "at", "http", ":", "//", "jayblog", ".", "jaybill", ".", "com", "/", "post", "/", "id", "/", "26...
[ "func", "FileCopy", "(", "source", "string", ",", "dest", "string", ")", "(", "err", "error", ")", "{", "sourceFile", ",", "err", ":=", "<mask>", ".", "Open", "(", "source", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n"...
21,219
all-21220
[ "AppendEllipsis", "appends", "a", "new", "ellipsis", "node", "to", "the", "list", "if", "none", "already", "exists", "at", "the", "end", ".", "If", "cs", "is", "non", "-", "zero", "it", "coalesces", "the", "statistics", "with", "the", "previous", "diffStat...
[ "func", "(", "s", "*", "textList", ")", "AppendEllipsis", "(", "ds", "diffStats", ")", "{", "hasStats", ":=", "ds", "!=", "diffStats", "{", "}", "\n", "if", "len", "(", "*", "s", ")", "==", "0", "||", "!", "(", "*", "s", ")", "[", "len", "(", ...
21,220
all-21221
[ "reserve", "transform", "feedback", "object", "names" ]
[ "func", "GenTransformFeedbacks", "(", "n", "int32", ",", "ids", "*", "uint32", ")", "{", "syscall", ".", "Syscall", "(", "gpGenTransformFeedbacks", ",", "2", ",", "uintptr", "(", "n", ")", ",", "uintptr", "(", "unsafe", ".", "Pointer", "(", "<mask>", ")"...
21,221
all-21222
[ "PostCheck", "posts", "the", "result", "of", "a", "check", "run", "to", "the", "server" ]
[ "func", "(", "client", "*", "Client", ")", "PostCheck", "(", "check", "Check", ")", "error", "{", "return", "<mask>", ".", "doJsonRequest", "(", "\"", "\"", ",", "\"", "\"", ",", "check", ",", "nil", ")", "\n", "}" ]
21,222
all-21223
[ "WithReferrer", "referrer", "URL", "." ]
[ "func", "(", "p", "NavigateParams", ")", "WithReferrer", "(", "referrer", "<mask>", ")", "*", "NavigateParams", "{", "p", ".", "Referrer", "=", "referrer", "\n", "return", "&", "p", "\n", "}" ]
21,223
all-21224
[ "diskCapacityInGiB", "reports", "the", "supplied", "disk", "s", "capacity", "by", "first", "checking", "CapacityInBytes", "and", "then", "falling", "back", "to", "CapacityInKB", "if", "that", "value", "is", "unavailable", ".", "This", "helps", "correct", "some", ...
[ "func", "diskCapacityInGiB", "(", "disk", "*", "<mask>", ".", "VirtualDisk", ")", "int", "{", "if", "disk", ".", "CapacityInBytes", ">", "0", "{", "return", "int", "(", "structure", ".", "ByteToGiB", "(", "disk", ".", "CapacityInBytes", ")", ".", "(", "i...
21,224
all-21225
[ "setScreenSize", "must", "be", "called", "from", "the", "main", "thread", "." ]
[ "func", "(", "u", "*", "UserInterface", ")", "setScreenSize", "(", "<mask>", ",", "height", "int", ",", "scale", "float64", ",", "fullscreen", "bool", ",", "vsync", "bool", ")", "bool", "{", "if", "u", ".", "width", "==", "width", "&&", "u", ".", "he...
21,225
all-21226
[ "Exec", "executes", "a", "command", "setting", "both", "standard", "input", "output", "and", "error", "." ]
[ "func", "Exec", "(", "cmd", "string", ",", "args", "...", "string", ")", "error", "{", "c", ":=", "exec", ".", "Command", "(", "cmd", ",", "args", "...", ")", "\n", "c", ".", "Stdin", "=", "<mask>", ".", "Stdin", "\n", "c", ".", "Stdout", "=", ...
21,226
all-21227
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EventTargetDestroyed", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget14", "(", "&", "w", ",", "v", "...
21,227
all-21228
[ "Write", "writes", "response", "to", "w", ".", "Write", "doesn", "t", "flush", "response", "to", "w", "for", "performance", "reasons", ".", "See", "also", "WriteTo", "." ]
[ "func", "(", "resp", "*", "<mask>", ")", "Write", "(", "w", "*", "bufio", ".", "Writer", ")", "error", "{", "sendBody", ":=", "!", "resp", ".", "mustSkipBody", "(", ")", "\n\n", "if", "resp", ".", "bodyStream", "!=", "nil", "{", "return", "resp", "...
21,228
all-21229
[ "Panics", "if", "error", "." ]
[ "func", "(", "cdc", "*", "Codec", ")", "MustUnmarshalBinaryBare", "(", "bz", "[", "]", "byte", ",", "ptr", "<mask>", "{", "}", ")", "{", "err", ":=", "cdc", ".", "UnmarshalBinaryBare", "(", "bz", ",", "ptr", ")", "\n", "if", "err", "!=", "nil", "{"...
21,229
all-21230
[ "Store", "a", "font", "to", "this", "cache" ]
[ "func", "(", "cache", "*", "SyncFolderFontCache", ")", "<mask>", "(", "fontData", "FontData", ",", "font", "*", "truetype", ".", "Font", ")", "{", "cache", ".", "Lock", "(", ")", "\n", "cache", ".", "fonts", "[", "cache", ".", "namer", "(", "fontData",...
21,230
all-21231
[ "WaitConditionNegate", "negates", "the", "most", "recent", "wait", "condition", "." ]
[ "func", "(", "q", "*", "Query", ")", "WaitConditionNegate", "(", ")", "*", "Query", "{", "q", ".", "headers", "=", "<mask>", "(", "q", ".", "headers", ",", "\"", "\"", ")", "\n", "return", "q", "\n", "}" ]
21,231
all-21232
[ "String", "looks", "up", "the", "value", "of", "a", "string", "flag", "returns", "if", "no", "string", "flag", "exists" ]
[ "func", "(", "f", "Flags", ")", "String", "(", "<mask>", "string", ")", "string", "{", "return", "f", ".", "C", ".", "String", "(", "name", ")", "\n", "}" ]
21,232
all-21233
[ "MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "TriggerHookRequest", "is", "of", "type", "json", ".", "RawMessage", "..." ]
[ "func", "(", "this", "*", "TriggerHookRequest", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "x", ":=", "json", ".", "RawMessage", "(", "*", "this", ")", "\n", "return", "(", "&", "x", ")", ".", "MarshalJSON", "(",...
21,233
all-21234
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "PrintToPDFReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage22", "(", "&", "w", ",", "v", ")", ...
21,234
all-21235
[ "Do", "executes", "Page", ".", "captureScreenshot", "against", "the", "provided", "context", ".", "returns", ":", "data", "-", "Base64", "-", "encoded", "image", "data", "." ]
[ "func", "(", "p", "*", "CaptureScreenshotParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "data", "[", "]", "byte", ",", "err", "error", ")", "{", "// execute", "var", "res", "CaptureScreenshotReturns", "\n", "err", "=", "cdp", ".", ...
21,235
all-21236
[ "GetType", "returns", "the", "Type", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "m", "*", "MetricMetadata", ")", "GetType", "(", ")", "string", "{", "if", "m", "==", "nil", "||", "m", ".", "Type", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "m", ".", "<mask>", "\n", "}" ]
21,236
all-21237
[ "Parse", "parses", "a", "file", "." ]
[ "func", "Parse", "(", "filename", "string", ",", "r", "io", ".", "Reader", ")", "(", "[", "]", "*", "Group", ",", "error", ")", "{", "n", ":=", "0", "\n", "groups", ":=", "make", "(", "[", "]", "*", "Group", ",", "0", ")", "\n", "scanner", ":...
21,237
all-21238
[ "GetMenuByID", "is", "a", "wrapper", "around", "gtk_application_get_menu_by_id", "()", "." ]
[ "func", "(", "v", "*", "Application", ")", "GetMenuByID", "(", "id", "string", ")", "*", "glib", ".", "Menu", "{", "cstr1", ":=", "(", "*", "C", ".", "gchar", ")", "(", "C", ".", "CString", "(", "id", ")", ")", "\n", "defer", "C", ".", "<mask>"...
21,238
all-21239
[ "Ensures", "that", "sufficient", "peers", "are", "connected", ".", "(", "continuous", ")" ]
[ "func", "(", "r", "*", "PEXReactor", ")", "ensurePeersRoutine", "(", ")", "{", "// Randomize when routine starts", "ensurePeersPeriodMs", ":=", "r", ".", "ensurePeersPeriod", ".", "Nanoseconds", "(", ")", "/", "1e6", "\n", "time", ".", "Sleep", "(", "time", "....
21,239
all-21240
[ "GetManageStatusShowTitleOk", "returns", "a", "tuple", "with", "the", "ManageStatusShowTitle", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "Widget", ")", "GetManageStatusShowTitleOk", "(", ")", "(", "bool", ",", "bool", ")", "{", "if", "w", "==", "nil", "||", "w", ".", "ManageStatusShowTitle", "==", "nil", "{", "return", "false", ",", "false", "\n", "}", "\n", "re...
21,240
all-21241
[ "CreateField", "creates", "a", "field", "on", "the", "server", "using", "the", "given", "Field", "struct", "." ]
[ "func", "(", "c", "*", "Client", ")", "CreateField", "(", "field", "*", "Field", ")", "error", "{", "span", ":=", "c", ".", "tracer", ".", "StartSpan", "(", "\"", "\"", ")", "\n", "defer", "span", ".", "Finish", "(", ")", "\n\n", "data", ":=", "[...
21,241
all-21242
[ "The", "zfs", ".", "pool_name", "config", "key", "is", "node", "-", "specific", "and", "needs", "to", "be", "linked", "to", "nodes", "." ]
[ "func", "updateFromV6", "(", "tx", "*", "sql", ".", "Tx", ")", "error", "{", "// Fetch the IDs of all existing nodes.", "nodeIDs", ",", "err", ":=", "query", ".", "SelectIntegers", "(", "tx", ",", "\"", "\"", ")", "\n", "if", "err", "!=", "nil", "{", "re...
21,242
all-21243
[ "In", "returns", "true", "if", "(", "x", "y", ")", "is", "in", "the", "sprite", "and", "false", "otherwise", "." ]
[ "func", "(", "s", "*", "Sprite", ")", "In", "(", "x", ",", "y", "int", ")", "bool", "{", "// Check the actual color (alpha) value at the specified position", "// so that the result of In becomes natural to users.", "//", "// Note that this is not a good manner to use At for logic...
21,243
all-21244
[ "SetBg", "sets", "background", "color" ]
[ "func", "(", "i", "*", "IrcText", ")", "SetBg", "(", "c", "int", ")", "*", "IrcText", "{", "i", ".", "bgColor", "=", "c", "\n", "<mask>", "i", "\n", "}" ]
21,244
all-21245
[ "RouterHandler", "implements", "the", "httprouter", ".", "Handle", "for", "integration", "with", "github", ".", "com", "/", "julienschmidt", "/", "httprouter" ]
[ "func", "(", "a", "*", "Auth", ")", "RouterHandler", "(", "h", "httprouter", ".", "Handle", ")", "httprouter", ".", "Handle", "{", "return", "httprouter", ".", "Handle", "(", "func", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", ...
21,245
all-21246
[ "convertFromDetectedCharset", "attempts", "to", "detect", "the", "character", "set", "for", "the", "given", "part", "and", "returns", "an", "io", ".", "Reader", "that", "will", "convert", "from", "that", "charset", "to", "UTF", "-", "8", ".", "If", "the", ...
[ "func", "(", "p", "*", "Part", ")", "convertFromDetectedCharset", "(", "r", "io", ".", "Reader", ")", "(", "io", ".", "Reader", ",", "error", ")", "{", "// Attempt to detect character set from part content.", "var", "cd", "*", "chardet", ".", "Detector", "\n",...
21,246
all-21247
[ "New", "creates", "a", "new", "instance", "of", "Templates", "and", "parses", "provided", "files", "and", "strings", "." ]
[ "func", "New", "(", "opts", "...", "Option", ")", "(", "t", "*", "Templates", ",", "err", "error", ")", "{", "functions", ":=", "template", ".", "FuncMap", "{", "}", "\n", "for", "name", ",", "fn", ":=", "range", "defaultFunctions", "{", "functions", ...
21,247
all-21248
[ "Campaign", "causes", "this", "RawNode", "to", "transition", "to", "candidate", "state", "." ]
[ "func", "(", "rn", "*", "RawNode", ")", "Campaign", "(", ")", "error", "{", "return", "rn", ".", "raft", ".", "Step", "(", "pb", ".", "Message", "{", "<mask>", ":", "pb", ".", "MsgHup", ",", "}", ")", "\n", "}" ]
21,248
all-21249
[ "pushNumberValue", "pushes", "the", "number", "resulting", "from", "an", "arithmetic", "operation", ".", "At", "least", "one", "operand", "must", "be", "a", "proxy", "for", "this", "function", "to", "be", "called", ".", "See", "the", "main", "documentation", ...
[ "func", "pushNumberValue", "(", "L", "*", "lua", ".", "State", ",", "a", "interface", "{", "}", ",", "t1", ",", "t2", "reflect", ".", "<mask>", ")", "{", "v", ":=", "reflect", ".", "ValueOf", "(", "a", ")", "\n", "isComplex", ":=", "unsizedKind", "...
21,249
all-21250
[ "Transaction", "executes", "the", "given", "function", "within", "a", "database", "transaction", "." ]
[ "func", "Transaction", "(", "db", "*", "sql", ".", "<mask>", ",", "f", "func", "(", "*", "sql", ".", "Tx", ")", "error", ")", "error", "{", "tx", ",", "err", ":=", "db", ".", "Begin", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "...
21,250
all-21251
[ "GetMetadata", "indicates", "an", "expected", "call", "of", "GetMetadata" ]
[ "func", "(", "mr", "*", "MockEC2MetadataClientMockRecorder", ")", "GetMetadata", "(", "arg0", "<mask>", "{", "}", ")", "*", "gomock", ".", "Call", "{", "return", "mr", ".", "mock", ".", "ctrl", ".", "RecordCallWithMethodType", "(", "mr", ".", "mock", ",", ...
21,251
all-21252
[ "InjectEntrypoint", "will", "make", "the", "entrypoint", "binary", "in", "the", "tools", "volume", "the", "container", "s", "entrypoint", "which", "will", "output", "to", "the", "log", "volume", "." ]
[ "func", "InjectEntrypoint", "(", "c", "*", "coreapi", ".", "Container", ",", "timeout", ",", "gracePeriod", "time", ".", "Duration", ",", "prefix", ",", "previousMarker", "string", ",", "exitZero", "bool", ",", "log", ",", "tools", "coreapi", ".", "VolumeMou...
21,252
all-21253
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetFlattenedDocumentReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom42", "(", "&", "w", ",", "v...
21,253
all-21254
[ "WithPierce", "whether", "or", "not", "iframes", "and", "shadow", "roots", "should", "be", "traversed", "when", "returning", "the", "subtree", "(", "default", "is", "false", ")", ".", "Reports", "listeners", "for", "all", "contexts", "if", "pierce", "is", "e...
[ "func", "(", "p", "GetEventListenersParams", ")", "WithPierce", "(", "pierce", "bool", ")", "*", "GetEventListenersParams", "{", "p", ".", "Pierce", "=", "pierce", "\n", "<mask>", "&", "p", "\n", "}" ]
21,254
all-21255
[ "lockAndFlushAll", "is", "like", "flushAll", "but", "locks", "l", ".", "mu", "first", "." ]
[ "func", "(", "l", "*", "<mask>", ")", "lockAndFlushAll", "(", ")", "{", "l", ".", "mu", ".", "Lock", "(", ")", "\n", "l", ".", "flushAll", "(", ")", "\n", "l", ".", "mu", ".", "Unlock", "(", ")", "\n", "}" ]
21,255
all-21256
[ "recordWrite", "records", "that", "a", "directory", "has", "been", "modified", "and", "that", "its", "build", "file", "should", "be", "updated", "the", "next", "time", "gazelle", "runs", "." ]
[ "func", "recordWrite", "(", "path", "string", ")", "{", "dirSetMutex", ".", "Lock", "(", ")", "\n", "defer", "dirSetMutex", ".", "Unlock", "(", ")", "\n", "dirSet", "[", "<mask>", "]", "=", "true", "\n", "}" ]
21,256
all-21257
[ "ToMessage", "generates", "a", "PubSub", "Message", "from", "a", "PeriodicProwJobEvent", "." ]
[ "func", "(", "pe", "*", "PeriodicProwJobEvent", ")", "ToMessage", "(", ")", "(", "*", "pubsub", ".", "Message", ",", "error", ")", "{", "data", ",", "err", ":=", "json", ".", "Marshal", "(", "pe", ")", "\n", "if", "err", "!=", "nil", "{", "return",...
21,257
all-21258
[ "killCgroupProcesses", "freezes", "then", "iterates", "over", "all", "the", "processes", "inside", "the", "manager", "s", "cgroups", "sending", "a", "SIGKILL", "to", "each", "process", "then", "waiting", "for", "them", "to", "exit", "." ]
[ "func", "killCgroupProcesses", "(", "m", "cgroups", ".", "Manager", ")", "error", "{", "var", "procs", "[", "]", "*", "os", ".", "Process", "\n", "if", "err", ":=", "m", ".", "Freeze", "(", "configs", ".", "Frozen", ")", ";", "err", "!=", "nil", "{...
21,258
all-21259
[ "Append", "point" ]
[ "func", "(", "p", "*", "Points", ")", "Append", "(", "onePoint", "Point", ")", "*", "Points", "{", "p", ".", "Data", "=", "<mask>", "(", "p", ".", "Data", ",", "onePoint", ")", "\n", "return", "p", "\n", "}" ]
21,259
all-21260
[ "New", "article" ]
[ "func", "New", "(", "c", "*", "gin", ".", "<mask>", ")", "{", "article", ":=", "models", ".", "Article", "{", "}", "\n\n", "c", ".", "HTML", "(", "http", ".", "StatusOK", ",", "\"", "\"", ",", "gin", ".", "H", "{", "\"", "\"", ":", "\"", "\""...
21,260
all-21261
[ "Build", "constructs", "a", "double", "array", "from", "given", "keywords", "." ]
[ "func", "Build", "(", "keywords", "[", "]", "string", ")", "(", "DoubleArray", ",", "error", ")", "{", "s", ":=", "len", "(", "keywords", ")", "\n", "if", "s", "==", "0", "{", "return", "DoubleArray", "{", "}", ",", "nil", "\n", "}", "\n", "ids",...
21,261
all-21262
[ "Exec", "executes", "the", "XPath", "expression", "xp", "against", "the", "tree", "t", "with", "the", "namespace", "mappings", "ns", "and", "returns", "the", "result", "as", "a", "stringer", "." ]
[ "func", "(", "xp", "XPathExec", ")", "Exec", "(", "t", "tree", ".", "Node", ",", "opts", "...", "FuncOpts", ")", "(", "tree", ".", "Result", ",", "error", ")", "{", "o", ":=", "&", "Opts", "{", "NS", ":", "make", "(", "map", "[", "string", "]",...
21,262
all-21263
[ "flattenClusterDasVmConfigInfo", "saves", "a", "ClusterDasVmConfigInfo", "into", "the", "supplied", "ResourceData", "." ]
[ "func", "flattenClusterDasVMConfigInfo", "(", "d", "*", "schema", ".", "ResourceData", ",", "meta", "interface", "{", "}", ",", "obj", "*", "types", ".", "ClusterDasVmConfigInfo", ")", "error", "{", "client", ",", "err", ":=", "resourceVSphereHAVMOverrideClient", ...
21,263
all-21264
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetMetadataReturns", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoIndexeddb11", "(", "&"...
21,264
all-21265
[ "WithApp", "adds", "the", "app", "to", "the", "get", "apps", "app", "routes", "route", "params" ]
[ "func", "(", "o", "*", "GetAppsAppRoutesRouteParams", ")", "WithApp", "(", "app", "<mask>", ")", "*", "GetAppsAppRoutesRouteParams", "{", "o", ".", "SetApp", "(", "app", ")", "\n", "return", "o", "\n", "}" ]
21,265
all-21266
[ "GetContainerBackup", "returns", "a", "Backup", "struct", "for", "the", "provided", "container", "and", "backup", "names" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "GetContainerBackup", "(", "containerName", "string", ",", "name", "string", ")", "(", "*", "api", ".", "ContainerBackup", ",", "string", ",", "error", ")", "{", "if", "!", "r", ".", "HasExtension", "(", "\"", ...
21,266
all-21267
[ "List", "implements", "ClientInterface" ]
[ "func", "(", "c", "*", "dummyClient", ")", "List", "(", "opts", "v1", ".", "ListOptions", ")", "(", "Collection", ",", "error", ")", "{", "var", "items", "[", "]", "Object", "\n", "for", "_", ",", "i", ":=", "range", "c", ".", "objects", "{", "it...
21,267
all-21268
[ "ListPRCommits", "lists", "commits", "for", "a", "given", "PR", "." ]
[ "func", "(", "f", "*", "FakeClient", ")", "ListPRCommits", "(", "org", ",", "repo", "<mask>", ",", "prNumber", "int", ")", "(", "[", "]", "github", ".", "RepositoryCommit", ",", "error", ")", "{", "k", ":=", "fmt", ".", "Sprintf", "(", "\"", "\"", ...
21,268
all-21269
[ "HasLineWidth", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TimeseriesRequestStyle", ")", "HasLineWidth", "(", ")", "bool", "{", "if", "t", "!=", "nil", "&&", "t", ".", "LineWidth", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
21,269
all-21270
[ "NewLexer", "creates", "a", "new", "Lexer", "reading", "from", "io", ".", "Reader", ".", "This", "Lexer", "has", "a", "DefaultTokenizer", "according", "to", "posix", "and", "whitespacesplit", "rules", "." ]
[ "func", "NewLexer", "(", "r", "<mask>", ".", "Reader", ",", "posix", ",", "whitespacesplit", "bool", ")", "*", "Lexer", "{", "return", "&", "Lexer", "{", "reader", ":", "bufio", ".", "NewReader", "(", "r", ")", ",", "tokenizer", ":", "&", "DefaultToken...
21,270
all-21271
[ "GetSyntheticsBrowserDevices", "get", "all", "test", "devices", "(", "for", "browser", ")" ]
[ "func", "(", "client", "*", "Client", ")", "GetSyntheticsBrowserDevices", "(", ")", "(", "[", "]", "SyntheticsDevice", ",", "error", ")", "{", "<mask>", "out", "struct", "{", "Devices", "[", "]", "SyntheticsDevice", "`json:\"devices,omitempty\"`", "\n", "}", "...
21,271
all-21272
[ "Get", "takes", "name", "of", "the", "app", "and", "returns", "the", "corresponding", "app", "object", "and", "an", "error", "if", "there", "is", "any", "." ]
[ "func", "(", "c", "*", "apps", ")", "Get", "(", "name", "string", ",", "options", "meta_v1", ".", "GetOptions", ")", "(", "result", "*", "v1", ".", "App", ",", "err", "error", ")", "{", "result", "=", "&", "v1", ".", "App", "{", "}", "\n", "err...
21,272
all-21273
[ "RegisterOptional", "register", "a", "new", "migration", "that", "will", "not", "run", "automatically", "when", "calling", "the", "Run", "funcition", "." ]
[ "func", "RegisterOptional", "(", "<mask>", "string", ",", "fn", "MigrateFunc", ")", "error", "{", "return", "register", "(", "name", ",", "true", ",", "fn", ")", "\n", "}" ]
21,273
all-21274
[ "ForRepo", "returns", "the", "tide", "queries", "that", "apply", "to", "a", "repo", "." ]
[ "func", "(", "qm", "*", "QueryMap", ")", "ForRepo", "(", "org", ",", "repo", "string", ")", "TideQueries", "{", "res", ":=", "TideQueries", "(", "nil", ")", "\n", "fullName", ":=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "org", ",", "repo", ")...
21,274
all-21275
[ "RootPath", "returns", "a", "path", "of", "the", "root", "package", "." ]
[ "func", "RootPath", "(", ")", "string", "{", "_", ",", "file", ",", "_", ",", "<mask>", ":=", "runtime", ".", "Caller", "(", "0", ")", "\n", "if", "!", "ok", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "filepath", ".", "Dir", "(", "fi...
21,275
all-21276
[ "DatumTagPrefix", "hashes", "a", "pipeline", "salt", "to", "a", "string", "of", "a", "fixed", "size", "for", "use", "as", "the", "prefix", "for", "datum", "output", "trees", ".", "This", "prefix", "allows", "us", "to", "do", "garbage", "collection", "corre...
[ "func", "DatumTagPrefix", "(", "salt", "string", ")", "string", "{", "// We need to hash the salt because UUIDs are not necessarily", "// random in every bit.", "h", ":=", "sha256", ".", "New", "(", ")", "\n", "h", ".", "Write", "(", "[", "]", "<mask>", "(", "salt...
21,276
all-21277
[ "Eval", "runs", "a", "single", "evaluation", "cycle", "in", "which", "all", "rules", "are", "evaluated", "sequentially", "." ]
[ "func", "(", "g", "*", "Group", ")", "Eval", "(", "ctx", "context", ".", "Context", ",", "ts", "time", ".", "Time", ")", "{", "for", "i", ",", "rule", ":=", "range", "g", ".", "rules", "{", "select", "{", "case", "<-", "g", ".", "done", ":", ...
21,277
all-21278
[ "Analyze", "iterate", "through", "all", "resources", "and", "initializes", "the", "Resources", "and", "ParamTypes", "fields", "of", "the", "APIAnalyzer", "struct", "accordingly", "." ]
[ "func", "(", "a", "*", "APIAnalyzer", ")", "Analyze", "(", ")", "*", "gen", ".", "APIDescriptor", "{", "a", ".", "AnalyzeAliases", "(", ")", "\n", "var", "descriptor", "=", "&", "<mask>", ".", "APIDescriptor", "{", "Resources", ":", "make", "(", "map",...
21,278
all-21279
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventMediaQueryResultChanged", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoCss54", "(", ...
21,279
all-21280
[ "gtk_action_bar_pack_start", "(", "GtkActionBar", "*", "action_bar", "GtkWidget", "*", "child", ")" ]
[ "func", "(", "a", "*", "ActionBar", ")", "PackStart", "(", "child", "IWidget", ")", "{", "C", ".", "gtk_action_bar_pack_start", "(", "a", ".", "native", "(", ")", ",", "<mask>", ".", "toWidget", "(", ")", ")", "\n", "}" ]
21,280
all-21281
[ "ContainerList", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockClient", ")", "ContainerList", "(", "arg0", "context", ".", "Context", ",", "arg1", "types", ".", "ContainerListOptions", ")", "(", "[", "]", "types", ".", "<mask>", ",", "error", ")", "{", "ret", ":=", "m", ".", "ctrl", "...
21,281
all-21282
[ "ClientConfig", "is", "a", "modified", "copy", "of", "k8s", ".", "io", "/", "kubernetes", "/", "pkg", "/", "client", "/", "unversioned", "/", "clientcmd", ".", "DirectClientConfig", ".", "ClientConfig", ".", "ClientConfig", "implements", "ClientConfig" ]
[ "func", "(", "config", "*", "directClientConfig", ")", "ClientConfig", "(", ")", "(", "*", "restConfig", ",", "error", ")", "{", "if", "err", ":=", "config", ".", "ConfirmUsable", "(", ")", ";", "err", "!=", "nil", "{", "return", "nil", ",", "err", "...
21,282
all-21283
[ "DirectionTo", "returns", "the", "direction", "from", "p1", "to", "p2" ]
[ "func", "DirectionTo", "(", "p1", ",", "p2", "Point", ")", "Direction", "{", "bearing", ":=", "BearingTo", "(", "p1", ",", "p2", ")", "\n\n", "index", ":=", "bearing", "-", "22.5", "\n\n", "if", "index", "<", "0", "{", "<mask>", "+=", "360", "\n", ...
21,283
all-21284
[ "FetchGraph", "retrieves", "graph", "with", "passed", "cid", "." ]
[ "func", "(", "a", "*", "API", ")", "FetchGraph", "(", "cid", "CIDType", ")", "(", "*", "Graph", ",", "error", ")", "{", "if", "cid", "==", "nil", "||", "*", "cid", "==", "\"", "\"", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", ...
21,284
all-21285
[ "SetLayer", "sets", "v", ".", "layer", "to", "l", ".", "Reference", ":", "https", ":", "//", "developer", ".", "apple", ".", "com", "/", "documentation", "/", "appkit", "/", "nsview", "/", "1483298", "-", "layer", "." ]
[ "func", "(", "v", "<mask>", ")", "SetLayer", "(", "l", "ca", ".", "Layer", ")", "{", "C", ".", "View_SetLayer", "(", "v", ".", "view", ",", "l", ".", "Layer", "(", ")", ")", "\n", "}" ]
21,285
all-21286
[ "SetTrackVisitedLinks", "is", "a", "wrapper", "around", "gtk_label_set_track_visited_links", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "SetTrackVisitedLinks", "(", "trackLinks", "bool", ")", "{", "C", ".", "gtk_label_set_track_visited_links", "(", "v", ".", "native", "(", ")", ",", "gbool", "(", "trackLinks", ")", ")", "\n", "}" ]
21,286
all-21287
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "TakePreciseCoverageParams", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoProfiler5", "(", ...
21,287
all-21288
[ "AddNodesToLoadBalancer", "adds", "nodes", "to", "an", "existing", "load", "balancer", "." ]
[ "func", "(", "c", "*", "<mask>", ")", "AddNodesToLoadBalancer", "(", "loadBalancerID", "string", ",", "nodes", "[", "]", "LoadBalancerNode", ")", "(", "*", "LoadBalancer", ",", "error", ")", "{", "lb", ":=", "new", "(", "LoadBalancer", ")", "\n", "_", ",...
21,288
all-21289
[ "UnmarshalJSON", "unmarshals", "this", "object", "from", "a", "JSON", "structure" ]
[ "func", "(", "m", "*", "Task", ")", "UnmarshalJSON", "(", "raw", "[", "]", "byte", ")", "error", "{", "var", "aO0", "NewTask", "\n", "if", "err", ":=", "swag", ".", "ReadJSON", "(", "raw", ",", "&", "aO0", ")", ";", "err", "!=", "nil", "{", "re...
21,289
all-21290
[ "NewHealth", "creates", "a", "new", "health", "request", "multiplexer", "and", "starts", "serving", "the", "liveness", "endpoint", "on", "the", "given", "port" ]
[ "func", "NewHealth", "(", ")", "*", "Health", "{", "healthMux", ":=", "http", ".", "NewServeMux", "(", ")", "\n", "healthMux", ".", "HandleFunc", "(", "\"", "\"", ",", "func", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "<mas...
21,290
all-21291
[ "Stop", "the", "worker" ]
[ "func", "(", "w", "Simple", ")", "Stop", "(", ")", "<mask>", "{", "w", ".", "Logger", ".", "Info", "(", "\"", "\"", ")", "\n", "w", ".", "cancel", "(", ")", "\n", "return", "nil", "\n", "}" ]
21,291
all-21292
[ "flattenDVSSecurityPolicy", "reads", "various", "fields", "from", "a", "DVSSecurityPolicy", "into", "the", "passed", "in", "ResourceData", "." ]
[ "func", "flattenDVSSecurityPolicy", "(", "d", "*", "schema", ".", "ResourceData", ",", "obj", "*", "<mask>", ".", "DVSSecurityPolicy", ")", "error", "{", "if", "obj", "==", "nil", "{", "return", "nil", "\n", "}", "\n\n", "structure", ".", "SetBoolPolicy", ...
21,292
all-21293
[ "String", "returns", "a", "string", "representation", "of", "v", "like", "(", "3", "4", ")", "." ]
[ "func", "(", "v", "Vec", ")", "<mask>", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "v", ".", "X", ",", "v", ".", "Y", ")", "\n", "}" ]
21,293
all-21294
[ "Seek", "implements", "y", ".", "Interface" ]
[ "func", "(", "s", "*", "UniIterator", ")", "Seek", "(", "key", "[", "]", "byte", ")", "{", "if", "!", "s", ".", "reversed", "{", "s", ".", "iter", ".", "Seek", "(", "<mask>", ")", "\n", "}", "else", "{", "s", ".", "iter", ".", "SeekForPrev", ...
21,294
all-21295
[ "SlicesDeepEqual", "checks", "if", "slice1", "and", "slice2", "are", "equal", "disregarding", "order", "." ]
[ "func", "SlicesDeepEqual", "(", "slice1", ",", "slice2", "interface", "{", "}", ")", "bool", "{", "s1", ":=", "reflect", ".", "ValueOf", "(", "slice1", ")", "\n", "s2", ":=", "reflect", ".", "ValueOf", "(", "slice2", ")", "\n\n", "if", "s1", ".", "Le...
21,295
all-21296
[ "GetIterAtMark", "()", "is", "a", "wrapper", "around", "gtk_text_buffer_get_iter_at_mark", "()", "." ]
[ "func", "(", "v", "*", "TextBuffer", ")", "GetIterAtMark", "(", "mark", "*", "TextMark", ")", "*", "TextIter", "{", "var", "iter", "C", ".", "GtkTextIter", "\n", "C", ".", "gtk_text_buffer_get_iter_at_mark", "(", "v", ".", "native", "(", ")", ",", "&", ...
21,296
all-21297
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetManifestForFrameReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoApplicationcache1", "(", "&", "w", ...
21,297
all-21298
[ "resourceVSphereDatastoreClusterVMAntiAffinityRuleFindEntry", "attempts", "to", "locate", "an", "existing", "VM", "anti", "-", "affinity", "rule", "in", "a", "datastore", "cluster", "s", "configuration", "by", "key", ".", "It", "s", "used", "by", "the", "resource", ...
[ "func", "resourceVSphereDatastoreClusterVMAntiAffinityRuleFindEntry", "(", "pod", "*", "object", ".", "StoragePod", ",", "key", "int32", ",", ")", "(", "*", "types", ".", "ClusterAntiAffinityRuleSpec", ",", "error", ")", "{", "props", ",", "err", ":=", "storagepod...
21,298
all-21299
[ "send", "to", "connection", "ensure", "only", "1", "concurrent", "sender" ]
[ "func", "(", "c", "*", "conn", ")", "send", "(", "upd", "*", "update", ")", "error", "{", "c", ".", "sendingMut", ".", "Lock", "(", ")", "\n", "defer", "c", ".", "sendingMut", ".", "Unlock", "(", ")", "\n", "//send (transports responsiblity to enforce ti...
21,299
all-21300
[ "ReadB", "reads", "and", "returns", "a", "byte", "." ]
[ "func", "(", "r", "*", "Reader", ")", "ReadB", "(", ")", "byte", "{", "// ReadB as sig differs from ReadByte (vet issues)", "if", "r", ".", "err", "!=", "nil", "{", "return", "0", "\n", "}", "\n", "<mask>", "b", "byte", "\n", "b", ",", "r", ".", "err",...