id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
22,100
all-22101
[ "GetInvert", "returns", "the", "Invert", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "c", "*", "ConditionalFormat", ")", "GetInvert", "(", ")", "bool", "{", "if", "c", "==", "nil", "||", "c", ".", "Invert", "==", "nil", "{", "return", "<mask>", "\n", "}", "\n", "return", "*", "c", ".", "Invert", "\n", "}" ]
22,101
all-22102
[ "SetAttr", "will", "set", "key", "to", "the", "provided", "value", ".", "If", "the", "attribute", "already", "exists", "the", "value", "will", "be", "replaced", "with", "the", "new", "value", "." ]
[ "func", "(", "a", "*", "Attrs", ")", "SetAttr", "(", "key", "string", ",", "value", "interface", "{", "}", ")", "*", "Attrs", "{", "a", ".", "attrsLock", ".", "Lock", "(", ")", "\n", "defer", "a", ".", "attrsLock", ".", "Unlock", "(", ")", "\n\n"...
22,102
all-22103
[ "OpenReader", "opens", "a", "RAR", "archive", "specified", "by", "the", "name", "and", "returns", "a", "ReadCloser", "." ]
[ "func", "OpenReader", "(", "name", ",", "password", "string", ")", "(", "*", "ReadCloser", ",", "error", ")", "{", "v", ",", "err", ":=", "openVolume", "(", "<mask>", ",", "password", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", ...
22,103
all-22104
[ "BuildPackage", "builds", "an", "SSA", "program", "with", "IR", "for", "a", "single", "package", ".", "It", "populates", "pkg", "by", "type", "-", "checking", "the", "specified", "file", "ASTs", ".", "All", "dependencies", "are", "loaded", "using", "the", ...
[ "func", "BuildPackage", "(", "tc", "*", "types", ".", "Config", ",", "fset", "*", "token", ".", "FileSet", ",", "pkg", "*", "types", ".", "Package", ",", "files", "[", "]", "*", "ast", ".", "File", ",", "mode", "ssa", ".", "BuilderMode", ")", "(", ...
22,104
all-22105
[ "GetTaskByIPAddress", "gets", "the", "task", "arn", "for", "an", "IP", "address" ]
[ "func", "(", "state", "*", "DockerTaskEngineState", ")", "GetTaskByIPAddress", "(", "addr", "string", ")", "(", "string", ",", "bool", ")", "{", "state", ".", "lock", ".", "RLock", "(", ")", "\n", "defer", "state", ".", "lock", ".", "RUnlock", "(", ")"...
22,105
all-22106
[ "native", "returns", "a", "pointer", "to", "the", "underlying", "GdkDevice", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "native", "(", ")", "*", "C", ".", "GdkDevice", "{", "if", "v", "==", "nil", "||", "v", ".", "GObject", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "p", ":=", "unsafe", ".", "Pointer", "(", "v", "...
22,106
all-22107
[ "NewSkiplist", "constructs", "and", "initializes", "a", "new", "empty", "skiplist", ".", "All", "nodes", "keys", "and", "values", "in", "the", "skiplist", "will", "be", "allocated", "from", "the", "given", "arena", "." ]
[ "func", "NewSkiplist", "(", "arena", "*", "Arena", ")", "*", "Skiplist", "{", "// Allocate head and tail nodes.", "head", ",", "err", ":=", "newNode", "(", "arena", ",", "maxHeight", ")", "\n", "if", "err", "!=", "nil", "{", "panic", "(", "\"", "\"", ")"...
22,107
all-22108
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetSamplingProfileParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoHeapprofiler10", "...
22,108
all-22109
[ "Listen", "bind", "port", ".", "Receive", "messages", "and", "send", "to", "out", "channel" ]
[ "func", "(", "rcv", "*", "UDP", ")", "Listen", "(", "addr", "*", "net", ".", "UDPAddr", ")", "error", "{", "return", "rcv", ".", "StartFunc", "(", "func", "(", ")", "error", "{", "var", "err", "error", "\n", "rcv", ".", "conn", ",", "err", "=", ...
22,109
all-22110
[ "FullID", "prints", "repoName", "/", "CommitID" ]
[ "func", "(", "c", "*", "Commit", ")", "FullID", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "c", ".", "Repo", ".", "<mask>", ",", "c", ".", "ID", ")", "\n", "}" ]
22,110
all-22111
[ "StorageVolumeConfigGet", "gets", "the", "config", "of", "a", "storage", "volume", "." ]
[ "func", "(", "c", "*", "Cluster", ")", "StorageVolumeConfigGet", "(", "volumeID", "int64", ")", "(", "map", "[", "string", "]", "string", ",", "error", ")", "{", "var", "key", ",", "value", "string", "\n", "query", ":=", "\"", "\"", "\n", "inargs", "...
22,111
all-22112
[ "Skip", "skips", "over", "the", "n", "initial", "documents", "from", "the", "query", "results", ".", "Note", "that", "this", "only", "makes", "sense", "with", "capped", "collections", "where", "documents", "are", "naturally", "ordered", "by", "insertion", "tim...
[ "func", "(", "q", "*", "Query", ")", "Skip", "(", "n", "int", ")", "*", "Query", "{", "q", ".", "m", ".", "Lock", "(", ")", "\n", "q", ".", "op", ".", "<mask>", "=", "int32", "(", "n", ")", "\n", "q", ".", "m", ".", "Unlock", "(", ")", ...
22,112
all-22113
[ "Returns", "isDefaultValue", "=", "true", "iff", "is", "ultimately", "nil", "or", "empty", "after", "(", "recursive", ")", "dereferencing", ".", "If", "isDefaultValue", "=", "false", "erv", "is", "set", "to", "the", "non", "-", "nil", "non", "-", "default"...
[ "func", "isDefaultValue", "(", "rv", "reflect", ".", "Value", ")", "(", "erv", "reflect", ".", "Value", ",", "isDefaultValue", "bool", ")", "{", "rv", ",", "_", ",", "isNilPtr", ":=", "derefPointers", "(", "rv", ")", "\n", "if", "isNilPtr", "{", "retur...
22,113
all-22114
[ "Acquire", "lock", "on", "mmap", "/", "file", "if", "you", "are", "calling", "this" ]
[ "func", "(", "lf", "*", "logFile", ")", "read", "(", "p", "valuePointer", ",", "s", "*", "y", ".", "Slice", ")", "(", "buf", "[", "]", "byte", ",", "err", "error", ")", "{", "var", "nbr", "int64", "\n", "offset", ":=", "p", ".", "Offset", "\n",...
22,114
all-22115
[ "SwapBody", "swaps", "response", "body", "with", "the", "given", "body", "and", "returns", "the", "previous", "response", "body", ".", "It", "is", "forbidden", "to", "use", "the", "body", "passed", "to", "SwapBody", "after", "the", "function", "returns", "."...
[ "func", "(", "resp", "*", "Response", ")", "SwapBody", "(", "body", "[", "]", "byte", ")", "[", "]", "byte", "{", "bb", ":=", "resp", ".", "bodyBuffer", "(", ")", "\n\n", "if", "resp", ".", "bodyStream", "!=", "nil", "{", "bb", ".", "Reset", "(",...
22,115
all-22116
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetSamplingProfileReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeapprofiler9", "(", "&", "w", ",", ...
22,116
all-22117
[ "RegexpPath", "-----------------------------------------------------------------", "NewRegexpPath", "returns", "a", "regexp", "matcher", "for", "the", "given", "URL", "path", "pattern", "." ]
[ "func", "NewRegexpPath", "(", "<mask>", "string", ")", "(", "*", "RegexpPath", ",", "error", ")", "{", "r", ",", "err", ":=", "CompileRegexp", "(", "pattern", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "\n", "...
22,117
all-22118
[ "ListenAndServeUNIX", "serves", "HTTP", "requests", "from", "the", "given", "UNIX", "addr", "using", "the", "given", "handler", ".", "The", "function", "deletes", "existing", "file", "at", "addr", "before", "starting", "serving", ".", "The", "server", "sets", ...
[ "func", "ListenAndServeUNIX", "(", "addr", "string", ",", "mode", "os", ".", "FileMode", ",", "<mask>", "RequestHandler", ")", "error", "{", "s", ":=", "&", "Server", "{", "Handler", ":", "handler", ",", "}", "\n", "return", "s", ".", "ListenAndServeUNIX",...
22,118
all-22119
[ "Sends", "a", "find_node", "query", "to", "addr", ".", "targetID", "is", "the", "node", "we", "re", "looking", "for", "." ]
[ "func", "(", "s", "*", "Server", ")", "findNode", "(", "addr", "Addr", ",", "targetID", "int160", ",", "callback", "func", "(", "krpc", ".", "Msg", ",", "error", ")", ")", "(", "err", "error", ")", "{", "return", "s", ".", "<mask>", "(", "addr", ...
22,119
all-22120
[ "ValidKey", "returns", "true", "if", "the", "given", "key", "is", "valid", "otherwise", "false", "." ]
[ "func", "ValidKey", "(", "<mask>", "string", ")", "bool", "{", "return", "len", "(", "key", ")", "<=", "maxKey", "&&", "keyRegex", ".", "Match", "(", "[", "]", "byte", "(", "key", ")", ")", "\n", "}" ]
22,120
all-22121
[ "DrawContour", "draws", "the", "given", "closed", "contour", "at", "the", "given", "sub", "-", "pixel", "offset", "." ]
[ "func", "DrawContour", "(", "path", "draw2d", ".", "PathBuilder", ",", "ps", "[", "]", "truetype", ".", "<mask>", ",", "dx", ",", "dy", "float64", ")", "{", "if", "len", "(", "ps", ")", "==", "0", "{", "return", "\n", "}", "\n", "startX", ",", "s...
22,121
all-22122
[ "NotAfter", "is", "an", "Option", "for", "setting", "the", "identity", "s", "certificate", "s", "NotAfter", "." ]
[ "func", "NotAfter", "(", "<mask>", "time", ".", "Time", ")", "Option", "{", "return", "func", "(", "c", "*", "configuration", ")", "{", "c", ".", "notAfter", "=", "&", "value", "\n", "}", "\n", "}" ]
22,122
all-22123
[ "Spec", "loads", "a", "new", "spec", "document" ]
[ "func", "Spec", "(", "<mask>", "string", ")", "(", "*", "Document", ",", "error", ")", "{", "specURL", ",", "err", ":=", "url", ".", "Parse", "(", "path", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "\n", "...
22,123
all-22124
[ "CompareAndSwap", "writes", "the", "given", "item", "that", "was", "previously", "returned", "by", "Get", "if", "the", "value", "was", "neither", "modified", "or", "evicted", "between", "the", "Get", "and", "the", "CompareAndSwap", "calls", ".", "The", "item",...
[ "func", "CompareAndSwap", "(", "c", "<mask>", ".", "Context", ",", "item", "*", "Item", ")", "error", "{", "return", "singleError", "(", "set", "(", "c", ",", "[", "]", "*", "Item", "{", "item", "}", ",", "nil", ",", "pb", ".", "MemcacheSetRequest_CA...
22,124
all-22125
[ "Less", "returns", "true", "if", "this", "field", "value", "sorts", "before", "the", "given", "Record", "." ]
[ "func", "(", "v", "FieldValue", ")", "Less", "(", "<mask>", "Record", ")", "bool", "{", "if", "ov", ",", "ok", ":=", "other", ".", "(", "FieldValue", ")", ";", "ok", "{", "return", "v", ".", "ColumnID", "<", "ov", ".", "ColumnID", "\n", "}", "\n"...
22,125
all-22126
[ "Do", "executes", "DOM", ".", "copyTo", "against", "the", "provided", "context", ".", "returns", ":", "nodeID", "-", "Id", "of", "the", "node", "clone", "." ]
[ "func", "(", "p", "*", "CopyToParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "nodeID", "cdp", ".", "NodeID", ",", "err", "error", ")", "{", "// execute", "<mask>", "res", "CopyToReturns", "\n", "err", "=", "cdp", ".", "Execute", ...
22,126
all-22127
[ "NewDiscovery", "returns", "a", "new", "Discovery", "which", "periodically", "refreshes", "its", "targets", "." ]
[ "func", "NewDiscovery", "(", "conf", "SDConfig", ",", "logger", "log", ".", "Logger", ")", "(", "*", "Discovery", ",", "error", ")", "{", "d", ":=", "&", "Discovery", "{", "project", ":", "conf", ".", "Project", ",", "zone", ":", "conf", ".", "Zone",...
22,127
all-22128
[ "Locator", "returns", "a", "locator", "for", "the", "given", "resource" ]
[ "func", "(", "r", "*", "ServerTemplate", ")", "Locator", "(", "api", "*", "API", ")", "*", "ServerTemplateLocator", "{", "for", "_", ",", "l", ":=", "<mask>", "r", ".", "Links", "{", "if", "l", "[", "\"", "\"", "]", "==", "\"", "\"", "{", "return...
22,128
all-22129
[ "Columns", "splits", "each", "item", "into", "columns", "and", "yields", "the", "concatenation", "(", "separated", "by", "spaces", ")", "of", "the", "columns", "numbers", "passed", "as", "arguments", ".", "Columns", "are", "numbered", "starting", "at", "1", ...
[ "func", "Columns", "(", "columns", "...", "int", ")", "Filter", "{", "return", "FilterFunc", "(", "func", "(", "arg", "Arg", ")", "error", "{", "for", "_", ",", "c", ":=", "range", "columns", "{", "if", "c", "<=", "0", "{", "return", "fmt", ".", ...
22,129
all-22130
[ "DoTimeout", "performs", "the", "given", "request", "and", "waits", "for", "response", "during", "the", "given", "timeout", "duration", ".", "Request", "must", "contain", "at", "least", "non", "-", "zero", "RequestURI", "with", "full", "url", "(", "including",...
[ "func", "DoTimeout", "(", "req", "*", "Request", ",", "resp", "*", "<mask>", ",", "timeout", "time", ".", "Duration", ")", "error", "{", "return", "defaultClient", ".", "DoTimeout", "(", "req", ",", "resp", ",", "timeout", ")", "\n", "}" ]
22,130
all-22131
[ "Start", "starts", "an", "host" ]
[ "func", "(", "d", "*", "Driver", ")", "Start", "(", ")", "error", "{", "if", "err", ":=", "cmd", "(", "\"", "\\\\", "\"", ",", "d", ".", "MachineName", ")", ";", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "<mask>", ",", "err",...
22,131
all-22132
[ "Create", "a", "new", "Graphic", "context", "from", "an", "image" ]
[ "func", "NewStackGraphicContext", "(", ")", "*", "StackGraphicContext", "{", "gc", ":=", "&", "StackGraphicContext", "{", "}", "\n", "gc", ".", "Current", "=", "new", "(", "ContextStack", ")", "\n", "gc", ".", "Current", ".", "Tr", "=", "draw2d", ".", "N...
22,132
all-22133
[ "See", "bcd", ".", "Tracer", ".", "AddKV", "()", "." ]
[ "func", "(", "t", "*", "BTTracer", ")", "AddKV", "(", "<mask>", "[", "]", "string", ",", "key", ",", "val", "string", ")", "[", "]", "string", "{", "return", "options", "\n", "}" ]
22,133
all-22134
[ "TSDBCleanTombstones", "implements", "pb", ".", "AdminServer", "." ]
[ "func", "(", "s", "*", "Admin", ")", "TSDBCleanTombstones", "(", "_", "context", ".", "Context", ",", "_", "*", "pb", ".", "TSDBCleanTombstonesRequest", ")", "(", "*", "pb", ".", "TSDBCleanTombstonesResponse", ",", "error", ")", "{", "db", ":=", "s", "."...
22,134
all-22135
[ "Find", "the", "price", "in", "the", "given", "package", "with", "the", "specified", "size", "and", "iops" ]
[ "func", "FindPerformanceIOPSPrice", "(", "productPackage", "datatypes", ".", "Product_Package", ",", "size", "int", ",", "iops", "int", ")", "(", "datatypes", ".", "Product_Item_Price", ",", "error", ")", "{", "for", "_", ",", "item", ":=", "range", "productPa...
22,135
all-22136
[ "PutFileWriter", "writes", "a", "file", "to", "PFS", ".", "NOTE", ":", "PutFileWriter", "returns", "an", "io", ".", "WriteCloser", "you", "must", "call", "Close", "on", "it", "when", "you", "are", "done", "writing", "." ]
[ "func", "(", "c", "*", "putFileClient", ")", "PutFileWriter", "(", "repoName", ",", "commitID", ",", "<mask>", "string", ")", "(", "io", ".", "WriteCloser", ",", "error", ")", "{", "return", "c", ".", "newPutFileWriteCloser", "(", "repoName", ",", "commitI...
22,136
all-22137
[ "/", "*", "RespondWith", "returns", "a", "handler", "that", "responds", "to", "a", "request", "with", "the", "specified", "status", "code", "and", "body" ]
[ "func", "RespondWith", "(", "statusCode", "int", ",", "body", "interface", "{", "}", ",", "optionalHeader", "...", "<mask>", ".", "Header", ")", "http", ".", "HandlerFunc", "{", "return", "func", "(", "w", "http", ".", "ResponseWriter", ",", "req", "*", ...
22,137
all-22138
[ "GetStoragePoolVolumeSnapshots", "returns", "a", "list", "of", "snapshots", "for", "the", "storage", "volume" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "GetStoragePoolVolumeSnapshots", "(", "pool", "string", ",", "volumeType", "string", ",", "volumeName", "string", ")", "(", "[", "]", "api", ".", "StorageVolumeSnapshot", ",", "error", ")", "{", "if", "!", "r", "....
22,138
all-22139
[ "SetWithPath", "sets", "a", "cookie", "path", "on", "the", "server", "in", "which", "the", "cookie", "will", "be", "available", "on", ".", "If", "set", "to", "/", "the", "cookie", "will", "be", "available", "within", "the", "entire", "domain", ".", "If",...
[ "func", "(", "c", "*", "Cookies", ")", "SetWithPath", "(", "name", ",", "value", ",", "path", "string", ")", "{", "ck", ":=", "<mask>", ".", "Cookie", "{", "Name", ":", "name", ",", "Value", ":", "value", ",", "Path", ":", "path", ",", "}", "\n\n...
22,139
all-22140
[ "query", "the", "fragment", "color", "index", "of", "a", "named", "variable", "within", "a", "program" ]
[ "func", "GetProgramResourceLocationIndex", "(", "program", "uint32", ",", "programInterface", "uint32", ",", "name", "*", "uint8", ")", "int32", "{", "ret", ",", "_", ",", "_", ":=", "syscall", ".", "Syscall", "(", "gpGetProgramResourceLocationIndex", ",", "3", ...
22,140
all-22141
[ "Initiate", "a", "new", "Call", "." ]
[ "func", "(", "c", "*", "CallService", ")", "Create", "(", "ctx", "<mask>", ".", "Context", ",", "data", "url", ".", "Values", ")", "(", "*", "Call", ",", "error", ")", "{", "call", ":=", "new", "(", "Call", ")", "\n", "err", ":=", "c", ".", "cl...
22,141
all-22142
[ "NewOperationBody", "creates", "a", "new", "OperationBody", "." ]
[ "func", "NewOperationBody", "(", "aType", "OperationType", ",", "value", "interface", "{", "}", ")", "(", "result", "OperationBody", ",", "err", "error", ")", "{", "result", ".", "Type", "=", "aType", "\n", "switch", "OperationType", "(", "aType", ")", "{"...
22,142
all-22143
[ "UnmarshalYAML", "implements", "the", "yaml", ".", "Unmarshaler", "interface", "." ]
[ "func", "(", "c", "*", "Role", ")", "UnmarshalYAML", "(", "unmarshal", "func", "(", "interface", "{", "}", ")", "error", ")", "error", "{", "if", "err", ":=", "unmarshal", "(", "(", "*", "string", ")", "(", "c", ")", ")", ";", "err", "!=", "nil",...
22,143
all-22144
[ "WithPathFilter", "if", "present", "only", "return", "the", "entries", "containing", "this", "substring", "in", "the", "path", "." ]
[ "func", "(", "p", "RequestEntriesParams", ")", "WithPathFilter", "(", "pathFilter", "<mask>", ")", "*", "RequestEntriesParams", "{", "p", ".", "PathFilter", "=", "pathFilter", "\n", "return", "&", "p", "\n", "}" ]
22,144
all-22145
[ "Decode", "decodes", "MP3", "source", "and", "returns", "a", "decoded", "stream", ".", "Decode", "returns", "error", "when", "decoding", "fails", "or", "IO", "error", "happens", ".", "Decode", "automatically", "resamples", "the", "stream", "to", "fit", "with",...
[ "func", "Decode", "(", "<mask>", "*", "audio", ".", "Context", ",", "src", "audio", ".", "ReadSeekCloser", ")", "(", "*", "Stream", ",", "error", ")", "{", "d", ",", "err", ":=", "mp3", ".", "NewDecoder", "(", "src", ")", "\n", "if", "err", "!=", ...
22,145
all-22146
[ "stringUnsafe", "returns", "a", "string", "representation", "of", "the", "ENI", "Attachment" ]
[ "func", "(", "eni", "*", "ENIAttachment", ")", "stringUnsafe", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "eni", ".", "TaskARN", ",", "eni", ".", "AttachmentARN", ",", "eni", ".", "AttachStatusSent", ",", "eni", "."...
22,146
all-22147
[ "GetNotifyNoDataOk", "returns", "a", "tuple", "with", "the", "NotifyNoData", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "o", "*", "Options", ")", "GetNotifyNoDataOk", "(", ")", "(", "bool", ",", "bool", ")", "{", "if", "o", "==", "nil", "||", "o", ".", "NotifyNoData", "==", "nil", "{", "return", "false", ",", "<mask>", "\n", "}", "\n", "return", "*", ...
22,147
all-22148
[ "Printf", "logging" ]
[ "func", "(", "l", "*", "MyLogger", ")", "Printf", "(", "msg", "string", ",", "args", "...", "interface", "{", "}", ")", "{", "<mask>", ".", "Printf", "(", "msg", ",", "args", "...", ")", "\n", "}" ]
22,148
all-22149
[ "SetRowAttrs", "creates", "a", "SetRowAttrs", "query", ".", "SetRowAttrs", "associates", "arbitrary", "key", "/", "value", "pairs", "with", "a", "row", "in", "a", "field", ".", "Following", "types", "are", "accepted", ":", "integer", "float", "string", "and", ...
[ "func", "(", "f", "*", "Field", ")", "SetRowAttrs", "(", "rowIDOrKey", "interface", "{", "}", ",", "attrs", "map", "[", "string", "]", "interface", "{", "}", ")", "*", "PQLBaseQuery", "{", "rowStr", ",", "err", ":=", "formatIDKeyBool", "(", "rowIDOrKey",...
22,149
all-22150
[ "forStmt", "emits", "to", "fn", "code", "for", "the", "for", "statement", "s", "optionally", "labelled", "by", "label", "." ]
[ "func", "(", "b", "*", "builder", ")", "forStmt", "(", "fn", "*", "Function", ",", "s", "*", "ast", ".", "ForStmt", ",", "label", "*", "lblock", ")", "{", "//\t...init...", "// jump loop", "// loop:", "// if cond goto body else done", "// body:", "//...
22,150
all-22151
[ "LookupUser", "looks", "up", "an", "user", "by", "name", "." ]
[ "func", "LookupUser", "(", "name", "string", ")", "(", "*", "<mask>", ",", "error", ")", "{", "entries", ",", "err", ":=", "LookupInUser", "(", "U_NAME", ",", "name", ",", "1", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", ...
22,151
all-22152
[ "ClientConfig", "generates", "a", "tls", ".", "Config", "object", "for", "use", "by", "an", "HTTP", "client", "." ]
[ "func", "(", "info", "TLSInfo", ")", "ClientConfig", "(", ")", "(", "*", "tls", ".", "Config", ",", "error", ")", "{", "var", "cfg", "*", "tls", ".", "Config", "\n", "var", "err", "error", "\n\n", "if", "!", "info", ".", "Empty", "(", ")", "{", ...
22,152
all-22153
[ "Returns", "the", "items", "in", "the", "cache", ".", "This", "may", "include", "items", "that", "have", "expired", "but", "have", "not", "yet", "been", "cleaned", "up", ".", "If", "this", "is", "significant", "the", "Expiration", "fields", "of", "the", ...
[ "func", "(", "sc", "*", "shardedCache", ")", "Items", "(", ")", "[", "]", "map", "[", "string", "]", "Item", "{", "res", ":=", "make", "(", "[", "]", "<mask>", "[", "string", "]", "Item", ",", "len", "(", "sc", ".", "cs", ")", ")", "\n", "for...
22,153
all-22154
[ "from", "the", "standard", "library", "description", "of", "Bytes", "()", ":", "Bytes", "()", "returns", "a", "slice", "of", "the", "contents", "of", "the", "unread", "portion", "of", "the", "buffer", ".", "If", "the", "caller", "changes", "the", "contents...
[ "func", "(", "b", "*", "FixedSizeRingBuf", ")", "Bytes", "(", ")", "[", "]", "byte", "{", "extent", ":=", "b", ".", "Beg", "+", "b", ".", "Readable", "\n", "if", "extent", "<=", "b", ".", "N", "{", "// we fit contiguously in this buffer without wrapping to...
22,154
all-22155
[ "HasWidth", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TileDefRequestStyle", ")", "HasWidth", "(", ")", "bool", "{", "if", "t", "!=", "nil", "&&", "t", ".", "Width", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
22,155
all-22156
[ "startInstance", "starts", "the", "instance", "." ]
[ "func", "(", "c", "*", "ComputeUtil", ")", "startInstance", "(", ")", "error", "{", "op", ",", "err", ":=", "c", ".", "service", ".", "Instances", ".", "Start", "(", "c", ".", "<mask>", ",", "c", ".", "zone", ",", "c", ".", "instanceName", ")", "...
22,156
all-22157
[ "NewConfig", "creates", "a", "new", "clientv3", ".", "Config", "from", "a", "yaml", "file", "." ]
[ "func", "NewConfig", "(", "fpath", "string", ")", "(", "*", "clientv3", ".", "Config", ",", "error", ")", "{", "b", ",", "err", ":=", "ioutil", ".", "ReadFile", "(", "fpath", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", ...
22,157
all-22158
[ "NewArchive", "uses", "7z", "to", "extract", "a", "list", "of", "files", "in", ".", "7z", "archive" ]
[ "func", "newArchive", "(", "<mask>", "string", ",", "password", "*", "string", ")", "(", "*", "Archive", ",", "error", ")", "{", "err", ":=", "detect7zCached", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "...
22,158
all-22159
[ "Find", "the", "StructType", "node", "for", "the", "structure", "with", "the", "given", "name" ]
[ "func", "findStruct", "(", "scope", "*", "ast", ".", "Scope", ",", "name", "string", ")", "*", "ast", ".", "StructType", "{", "obj", ":=", "scope", ".", "Lookup", "(", "name", ")", "\n", "if", "obj", "==", "nil", "{", "return", "nil", "\n", "}", ...
22,159
all-22160
[ "WrapWithHeaders", "returns", "a", "Context", "that", "can", "be", "used", "to", "make", "a", "call", "with", "request", "headers", ".", "If", "the", "parent", "ctx", "is", "already", "an", "instance", "of", "ContextWithHeaders", "its", "existing", "headers", ...
[ "func", "WrapWithHeaders", "(", "ctx", "context", ".", "Context", ",", "<mask>", "map", "[", "string", "]", "string", ")", "ContextWithHeaders", "{", "h", ":=", "&", "headersContainer", "{", "reqHeaders", ":", "headers", ",", "}", "\n", "newCtx", ":=", "co...
22,160
all-22161
[ "JavaScript", "renders", "the", "named", "files", "using", "the", "application", "/", "javascript", "content", "type", "and", "the", "github", ".", "com", "/", "gobuffalo", "/", "plush", "package", "for", "templating", ".", "If", "more", "than", "1", "file",...
[ "func", "JavaScript", "(", "<mask>", "...", "string", ")", "Renderer", "{", "e", ":=", "New", "(", "Options", "{", "}", ")", "\n", "return", "e", ".", "JavaScript", "(", "names", "...", ")", "\n", "}" ]
22,161
all-22162
[ "SetStartedAt", "sets", "the", "timestamp", "for", "container", "s", "start", "time" ]
[ "func", "(", "c", "*", "Container", ")", "SetStartedAt", "(", "startedAt", "time", ".", "Time", ")", "{", "if", "startedAt", ".", "IsZero", "(", ")", "{", "return", "\n", "}", "\n\n", "c", ".", "lock", ".", "Lock", "(", ")", "\n", "defer", "c", "...
22,162
all-22163
[ "TimeFromPtr", "creates", "a", "new", "Time", "that", "will", "be", "null", "if", "t", "is", "nil", "or", "*", "t", "is", "the", "zero", "value", "." ]
[ "func", "TimeFromPtr", "(", "t", "*", "<mask>", ".", "Time", ")", "Time", "{", "if", "t", "==", "nil", "{", "return", "NewTime", "(", "time", ".", "Time", "{", "}", ",", "false", ")", "\n", "}", "\n", "return", "TimeFrom", "(", "*", "t", ")", "...
22,163
all-22164
[ "DeleteMulti", "deletes", "multiple", "blobs", "." ]
[ "func", "DeleteMulti", "(", "c", "<mask>", ".", "Context", ",", "blobKey", "[", "]", "appengine", ".", "BlobKey", ")", "error", "{", "s", ":=", "make", "(", "[", "]", "string", ",", "len", "(", "blobKey", ")", ")", "\n", "for", "i", ",", "b", ":=...
22,164
all-22165
[ "Repaint", "draws", "the", "control", "on", "its", "View", "surface" ]
[ "func", "(", "l", "*", "TextDisplay", ")", "Draw", "(", ")", "{", "if", "l", ".", "<mask>", "{", "return", "\n", "}", "\n\n", "PushAttributes", "(", ")", "\n", "defer", "PopAttributes", "(", ")", "\n\n", "x", ",", "y", ":=", "l", ".", "Pos", "(",...
22,165
all-22166
[ "Exec", "implements", "the", "database", "/", "sql", "/", "driver", "/", "Execer", "interface", ".", "delete", "after", "go", "1", ".", "9", "compatibility", "is", "given", "up", "." ]
[ "func", "(", "c", "*", "conn", ")", "Exec", "(", "<mask>", "string", ",", "args", "[", "]", "driver", ".", "Value", ")", "(", "driver", ".", "Result", ",", "error", ")", "{", "panic", "(", "\"", "\"", ")", "\n", "}" ]
22,166
all-22167
[ "Do", "executes", "Emulation", ".", "setScrollbarsHidden", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "SetScrollbarsHiddenParams", ")", "Do", "(", "ctx", "context", ".", "<mask>", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetScrollbarsHidden", ",", "p", ",", "nil", ")", "\n", "}...
22,167
all-22168
[ "runCmdBackground", "is", "a", "helper", "function", "to", "run", "commands", "in", "the", "background", ".", "It", "returns", "the", "resulting", "process", "and", "an", "error", "that", "occurs", "during", "while", "starting", "the", "process", "(", "if", ...
[ "func", "runCmdBackground", "(", "command", "string", ",", "args", "[", "]", "string", ",", "dir", "string", ")", "(", "*", "<mask>", ".", "Process", ",", "error", ")", "{", "cmd", ":=", "gos", ".", "Command", "(", "command", ",", "args", "...", ")",...
22,168
all-22169
[ "processNextItem", "retrieves", "each", "queued", "item", "and", "takes", "the", "necessary", "handler", "action", "based", "off", "of", "if", "the", "item", "was", "created", "or", "deleted", "." ]
[ "func", "(", "c", "*", "Controller", ")", "processNextItem", "(", ")", "bool", "{", "key", ",", "quit", ":=", "c", ".", "queue", ".", "Get", "(", ")", "\n", "if", "quit", "{", "return", "false", "\n", "}", "\n\n", "defer", "c", ".", "queue", ".",...
22,169
all-22170
[ "column", "(", "s", "n", ")", "returns", "0", "x", "where", "x", "is", "the", "nth", "column", "(", "1", "-", "based", ")", "in", "s", "or", "-", "1", "if", "s", "does", "not", "have", "n", "columns", ".", "A", "zero", "column", "number", "is",...
[ "func", "column", "(", "s", "string", ",", "n", "int", ")", "(", "int", ",", "string", ")", "{", "if", "n", "==", "0", "{", "return", "0", ",", "s", "\n", "}", "\n", "currentColumn", ":=", "0", "\n", "wstart", ":=", "-", "1", "\n", "for", "i"...
22,170
all-22171
[ "ManagedObjectReferences", "returns", "all", "MOIDs", "in", "a", "MOIDForUUIDResults", "as", "ManagedObjectReferences", "as", "type", "VirtualMachine", "." ]
[ "func", "(", "r", "MOIDForUUIDResults", ")", "ManagedObjectReferences", "(", ")", "[", "]", "types", ".", "ManagedObjectReference", "{", "var", "refs", "[", "]", "types", ".", "ManagedObjectReference", "\n", "for", "_", ",", "result", ":=", "range", "r", "{"...
22,171
all-22172
[ "expandVmwareDistributedVirtualSwitchPvlanSpec", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "VmwareDistributedVirtualSwitchPvlanSpec", "." ]
[ "func", "expandVmwareDistributedVirtualSwitchPvlanSpec", "(", "d", "*", "schema", ".", "ResourceData", ")", "*", "types", ".", "VmwareDistributedVirtualSwitchPvlanSpec", "{", "obj", ":=", "&", "<mask>", ".", "VmwareDistributedVirtualSwitchPvlanSpec", "{", "PvlanId", ":", ...
22,172
all-22173
[ "ImageNewFromFile", "()", "is", "a", "wrapper", "around", "gtk_image_new_from_file", "()", "." ]
[ "func", "ImageNewFromFile", "(", "filename", "string", ")", "(", "*", "<mask>", ",", "error", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "filename", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", ...
22,173
all-22174
[ "checkVersionCompatibility", "checks", "whether", "the", "given", "version", "is", "compatible", "with", "the", "local", "version", "." ]
[ "func", "checkVersionCompatibility", "(", "name", "string", ",", "server", ",", "minCluster", "*", "semver", ".", "Version", ")", "(", "localServer", "*", "semver", ".", "Version", ",", "localMinCluster", "*", "semver", ".", "Version", ",", "err", "error", "...
22,174
all-22175
[ "InsertAfter", "()", "is", "a", "wrapper", "around", "gtk_list_store_insert_after", "()", "." ]
[ "func", "(", "v", "*", "ListStore", ")", "InsertAfter", "(", "sibling", "*", "TreeIter", ")", "*", "TreeIter", "{", "<mask>", "ti", "C", ".", "GtkTreeIter", "\n", "C", ".", "gtk_list_store_insert_after", "(", "v", ".", "native", "(", ")", ",", "&", "ti...
22,175
all-22176
[ "DockerControlLocator", "builds", "a", "locator", "from", "the", "given", "href", "." ]
[ "func", "(", "api", "*", "API", ")", "DockerControlLocator", "(", "href", "string", ")", "*", "DockerControlLocator", "{", "<mask>", "&", "DockerControlLocator", "{", "Href", "(", "href", ")", ",", "api", "}", "\n", "}" ]
22,176
all-22177
[ "MkdirAll", "calls", "os", ".", "MkdirAll", "." ]
[ "func", "(", "g", "GitOS", ")", "MkdirAll", "(", "path", "string", ",", "perm", "os", ".", "FileMode", ")", "error", "{", "return", "<mask>", ".", "MkdirAll", "(", "path", ",", "perm", ")", "\n", "}" ]
22,177
all-22178
[ "MarshalLogObject", "implements", "zapcore", "ObjectMarshaler", "." ]
[ "func", "(", "c", "Context", ")", "MarshalLogObject", "(", "enc", "zapcore", ".", "ObjectEncoder", ")", "error", "{", "if", "c", ".", "HTTPRequest", "!=", "emptyHTTPRequest", "{", "enc", ".", "AddObject", "(", "\"", "\"", ",", "c", ".", "HTTPRequest", ")...
22,178
all-22179
[ "MustChangeTrustOp", "retrieves", "the", "ChangeTrustOp", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "." ]
[ "func", "(", "u", "OperationBody", ")", "MustChangeTrustOp", "(", ")", "ChangeTrustOp", "{", "val", ",", "ok", ":=", "u", ".", "GetChangeTrustOp", "(", ")", "\n\n", "if", "!", "<mask>", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n\n", "return", ...
22,179
all-22180
[ "CredentialLocator", "builds", "a", "locator", "from", "the", "given", "href", "." ]
[ "func", "(", "api", "*", "API", ")", "CredentialLocator", "(", "href", "string", ")", "*", "CredentialLocator", "{", "<mask>", "&", "CredentialLocator", "{", "Href", "(", "href", ")", ",", "api", "}", "\n", "}" ]
22,180
all-22181
[ "TimeDurationGoString", "returns", "the", "value", "of", "the", "time", ".", "Duration", "for", "printing", "in", "a", "string", "." ]
[ "func", "TimeDurationGoString", "(", "t", "*", "<mask>", ".", "Duration", ")", "string", "{", "if", "t", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "t", ")", "\n", "}" ]
22,181
all-22182
[ "ReportSnapshot", "reports", "snapshot", "sent", "status", "to", "the", "raft", "state", "machine", "and", "clears", "the", "used", "snapshot", "from", "the", "snapshot", "store", "." ]
[ "func", "(", "s", "*", "EtcdServer", ")", "ReportSnapshot", "(", "id", "uint64", ",", "status", "raft", ".", "SnapshotStatus", ")", "{", "s", ".", "r", ".", "ReportSnapshot", "(", "id", ",", "<mask>", ")", "\n", "}" ]
22,182
all-22183
[ "Deprecated", ":", "see", "NamedValueChecker", ".", "func", "(", "s", "*", "stmt", ")", "ColumnConverter", "(", "idx", "int", ")", "driver", ".", "ValueConverter", "{", "}", "CheckNamedValue", "implements", "NamedValueChecker", "interface", "." ]
[ "func", "(", "s", "*", "stmt", ")", "CheckNamedValue", "(", "nv", "*", "driver", ".", "NamedValue", ")", "error", "{", "if", "nv", ".", "Name", "==", "bulk", "{", "if", "ptr", ",", "ok", ":=", "nv", ".", "Value", ".", "(", "*", "*", "struct", "...
22,183
all-22184
[ "SupportsClipboardPersistence", "()", "is", "a", "wrapper", "around", "gdk_display_supports_clipboard_persistence", "()", "." ]
[ "func", "(", "v", "*", "Display", ")", "SupportsClipboardPersistence", "(", ")", "bool", "{", "c", ":=", "C", ".", "gdk_display_supports_clipboard_persistence", "(", "v", ".", "native", "(", ")", ")", "\n", "<mask>", "gobool", "(", "c", ")", "\n", "}" ]
22,184
all-22185
[ "/", "*", "Runs", "the", "entire", "expression", "using", "the", "given", "[", "parameters", "]", ".", "e", ".", "g", ".", "If", "the", "expression", "contains", "a", "reference", "to", "the", "variable", "foo", "it", "will", "be", "taken", "from", "pa...
[ "func", "(", "this", "EvaluableExpression", ")", "Eval", "(", "parameters", "Parameters", ")", "(", "<mask>", "{", "}", ",", "error", ")", "{", "if", "this", ".", "evaluationStages", "==", "nil", "{", "return", "nil", ",", "nil", "\n", "}", "\n\n", "if...
22,185
all-22186
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EventMediaQueryResultChanged", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss54", "(", "&", "w", ",", "...
22,186
all-22187
[ "Swap", "calls", "the", "Router", ".", "Swap", "and", "updates", "the", "app", ".", "CName", "in", "the", "database", "." ]
[ "func", "Swap", "(", "app1", ",", "app2", "*", "App", ",", "cnameOnly", "bool", ")", "error", "{", "a1Routers", ":=", "app1", ".", "GetRouters", "(", ")", "\n", "a2Routers", ":=", "app2", ".", "GetRouters", "(", ")", "\n", "if", "len", "(", "a1Router...
22,187
all-22188
[ "cephRBDVolumeGetParent", "will", "return", "the", "snapshot", "the", "RBD", "clone", "was", "created", "from", "-", "If", "the", "RBD", "storage", "volume", "is", "not", "a", "clone", "then", "this", "function", "will", "return", "db", ".", "NoSuchObjectError...
[ "func", "cephRBDVolumeGetParent", "(", "clusterName", "string", ",", "poolName", "string", ",", "volumeName", "string", ",", "volumeType", "string", ",", "userName", "string", ")", "(", "string", ",", "error", ")", "{", "msg", ",", "err", ":=", "shared", "."...
22,188
all-22189
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventInterstitialHidden", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoPage59", "(", "&", ...
22,189
all-22190
[ "Only", "available", "in", "GLib", "2", ".", "42", "+", "//", "GetResourceBasePath", "is", "a", "wrapper", "around", "g_application_get_resource_base_path", "()", ".", "func", "(", "v", "*", "Application", ")", "GetResourceBasePath", "()", "string", "{", "c", ...
[ "func", "(", "v", "*", "<mask>", ")", "GetDbusObjectPath", "(", ")", "string", "{", "c", ":=", "C", ".", "g_application_get_dbus_object_path", "(", "v", ".", "native", "(", ")", ")", "\n\n", "return", "C", ".", "GoString", "(", "(", "*", "C", ".", "c...
22,190
all-22191
[ "MarshalEasyJSON", "satisfies", "easyjson", ".", "Marshaler", "." ]
[ "func", "(", "t", "PausedReason", ")", "MarshalEasyJSON", "(", "out", "*", "jwriter", ".", "Writer", ")", "{", "out", ".", "<mask>", "(", "string", "(", "t", ")", ")", "\n", "}" ]
22,191
all-22192
[ "Example", "how", "to", "use", "basic", "auth", "together", "with", "r2router" ]
[ "func", "main", "(", ")", "{", "router", ":=", "r2router", ".", "NewSeeforRouter", "(", ")", "\n", "// basic auth for entire router", "router", ".", "Before", "(", "httpauth", ".", "SimpleBasicAuth", "(", "\"", "\"", ",", "\"", "\"", ")", ")", "\n", "route...
22,192
all-22193
[ "Set", "adds", "a", "string", "tag", "to", "the", "span" ]
[ "func", "(", "tag", "stringTagName", ")", "Set", "(", "span", "opentracing", ".", "Span", ",", "value", "string", ")", "{", "span", ".", "SetTag", "(", "string", "(", "tag", ")", ",", "<mask>", ")", "\n", "}" ]
22,193
all-22194
[ "resourceVSphereDatastoreReadFolderOrStorageClusterPath", "checks", "the", "inventory", "path", "of", "the", "supplied", "datastore", "and", "checks", "to", "see", "if", "it", "is", "a", "normal", "folder", "or", "if", "it", "s", "a", "datastore", "cluster", "and"...
[ "func", "resourceVSphereDatastoreReadFolderOrStorageClusterPath", "(", "d", "*", "schema", ".", "ResourceData", ",", "ds", "*", "object", ".", "Datastore", ")", "error", "{", "props", ",", "err", ":=", "datastore", ".", "Properties", "(", "ds", ")", "\n", "if"...
22,194
all-22195
[ "PushNote", "sends", "a", "link", "to", "the", "specific", "Channel", "with", "the", "given", "title", "url", "and", "body" ]
[ "func", "(", "s", "*", "Subscription", ")", "PushLink", "(", "title", ",", "u", ",", "<mask>", "string", ")", "error", "{", "return", "s", ".", "Client", ".", "PushLinkToChannel", "(", "s", ".", "Channel", ".", "Tag", ",", "title", ",", "u", ",", "...
22,195
all-22196
[ "Valid", "validator" ]
[ "func", "(", "h", "*", "headerRule", ")", "Valid", "(", "reqCtx", "*", "fasthttp", ".", "RequestCtx", ")", "bool", "{", "j", ":=", "func", "(", "reqCtx", "*", "fasthttp", ".", "RequestCtx", ")", "bool", "{", "get", ":=", "func", "(", "key", "string",...
22,196
all-22197
[ "export", "FrameSet_Frame" ]
[ "func", "FrameSet_Frame", "(", "id", "FrameSetId", ",", "index", "int", ")", "(", "C", ".", "int", ",", "Error", ")", "{", "fs", ",", "ok", ":=", "sFrameSets", ".", "Get", "(", "id", ")", "\n", "if", "!", "ok", "{", "return", "0", ",", "C", "."...
22,197
all-22198
[ "GetContainerMetadata", "returns", "container", "metadata", "." ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "GetContainerMetadata", "(", "name", "string", ")", "(", "*", "api", ".", "ImageMetadata", ",", "string", ",", "error", ")", "{", "if", "!", "r", ".", "HasExtension", "(", "\"", "\"", ")", "{", "return", "ni...
22,198
all-22199
[ "Map", "adds", "a", "port", "mapping", "on", "NAT", "interface", "and", "keeps", "it", "alive", "until", "interface", "is", "closed", "." ]
[ "func", "Map", "(", "ctx", "context", ".", "<mask>", ",", "conf", "*", "Config", ",", "logger", "log", ".", "Logger", ",", "m", "Interface", ",", "protocol", "string", ",", "extPort", ",", "intPort", "int", ",", "name", "string", ")", "error", "{", "...
22,199
all-22200
[ "Equivalent", "to", "HAProxy", "show", "info", "command", "." ]
[ "func", "(", "h", "*", "HAProxyClient", ")", "Info", "(", ")", "(", "*", "Info", ",", "error", ")", "{", "res", ",", "err", ":=", "h", ".", "RunCommand", "(", "\"", "\"", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", ...