id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
9,200
all-9201
[ "SetSourceRGBA", "is", "a", "wrapper", "around", "cairo_set_source_rgba", "()", "." ]
[ "func", "(", "v", "*", "Context", ")", "SetSourceRGBA", "(", "red", ",", "green", ",", "<mask>", ",", "alpha", "float64", ")", "{", "C", ".", "cairo_set_source_rgba", "(", "v", ".", "native", "(", ")", ",", "C", ".", "double", "(", "red", ")", ",",...
9,201
all-9202
[ "Close", "terminates", "the", "stream", "encoder", "." ]
[ "func", "(", "e", "*", "StreamEncoder", ")", "Close", "(", ")", "error", "{", "if", "!", "e", ".", "closed", "{", "if", "err", ":=", "e", ".", "Open", "(", "-", "1", ")", ";", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "e", ...
9,202
all-9203
[ "Close", "kills", "the", "server", "cursor", "used", "by", "the", "iterator", "if", "any", "and", "returns", "nil", "if", "no", "errors", "happened", "during", "iteration", "or", "the", "actual", "error", "otherwise", ".", "Server", "cursors", "are", "automa...
[ "func", "(", "iter", "*", "Iter", ")", "Close", "(", ")", "error", "{", "iter", ".", "m", ".", "Lock", "(", ")", "\n", "cursorId", ":=", "iter", ".", "op", ".", "cursorId", "\n", "iter", ".", "op", ".", "cursorId", "=", "0", "\n", "err", ":=", ...
9,203
all-9204
[ "createPostRequest", "creates", "a", "HTTP", "POST", "request", "that", "sends", "raft", "message", "." ]
[ "func", "createPostRequest", "(", "u", "url", ".", "URL", ",", "path", "string", ",", "body", "io", ".", "Reader", ",", "ct", "string", ",", "urls", "types", ".", "URLs", ",", "from", ",", "cid", "types", ".", "ID", ")", "*", "http", ".", "Request"...
9,204
all-9205
[ "Populate", "is", "a", "short", "-", "hand", "for", "populating", "a", "graph", "with", "the", "given", "incomplete", "object", "values", "." ]
[ "func", "Populate", "(", "values", "...", "interface", "{", "}", ")", "error", "{", "var", "g", "Graph", "\n", "for", "_", ",", "v", ":=", "range", "values", "{", "if", "err", ":=", "g", ".", "Provide", "(", "&", "Object", "{", "<mask>", ":", "v"...
9,205
all-9206
[ "getBool", "extracts", "a", "bool", "by", "the", "given", "key", "from", "a", "Form", ".", "If", "the", "key", "does", "not", "exist", "in", "the", "form", "false", "is", "returned", ".", "If", "the", "key", "exists", "but", "the", "value", "is", "ba...
[ "func", "getBool", "(", "form", "<mask>", ".", "Values", ",", "key", "string", ")", "(", "b", "bool", ",", "err", "error", ")", "{", "if", "vals", ",", "ok", ":=", "form", "[", "key", "]", ";", "ok", "{", "b", ",", "err", "=", "strconv", ".", ...
9,206
all-9207
[ "AddGitResource", "git", "specific", "resource", "add" ]
[ "func", "(", "s", "*", "ConcoursePipeline", ")", "AddGitResource", "(", "name", "string", ",", "source", "map", "[", "string", "]", "interface", "{", "}", ")", "{", "s", ".", "AddResource", "(", "name", ",", "GitResourceName", ",", "<mask>", ")", "\n", ...
9,207
all-9208
[ "flattenClusterFailoverHostAdmissionControlPolicy", "saves", "a", "ClusterFailoverHostAdmissionControlPolicy", "into", "the", "supplied", "ResourceData", "." ]
[ "func", "flattenClusterFailoverHostAdmissionControlPolicy", "(", "d", "*", "schema", ".", "ResourceData", ",", "obj", "*", "types", ".", "ClusterFailoverHostAdmissionControlPolicy", ",", "version", "viapi", ".", "VSphereVersion", ",", ")", "error", "{", "var", "hsIDs"...
9,208
all-9209
[ "sendContainerStatusToECS", "invokes", "the", "SubmitContainerStateChange", "API", "to", "send", "a", "container", "status", "change", "to", "ECS" ]
[ "func", "sendContainerStatusToECS", "(", "client", "api", ".", "ECSClient", ",", "<mask>", "*", "sendableEvent", ")", "error", "{", "return", "client", ".", "SubmitContainerStateChange", "(", "event", ".", "containerChange", ")", "\n", "}" ]
9,209
all-9210
[ "Create", "creates", "an", "S3", "object", "at", "url", "and", "sends", "multipart", "upload", "requests", "as", "data", "is", "written", ".", "If", "h", "is", "not", "nil", "each", "of", "its", "entries", "is", "added", "to", "the", "HTTP", "request", ...
[ "func", "Create", "(", "url", "string", ",", "h", "<mask>", ".", "Header", ",", "c", "*", "Config", ")", "(", "io", ".", "WriteCloser", ",", "error", ")", "{", "if", "c", "==", "nil", "{", "c", "=", "DefaultConfig", "\n", "}", "\n", "return", "ne...
9,210
all-9211
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "WebSocketResponse", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoNetwork", "(", "&", "...
9,211
all-9212
[ "NewMergeIterator", "returns", "a", "new", "MergeIterator", "from", "a", "list", "of", "Iterators", "." ]
[ "func", "NewMergeIterator", "(", "iters", "[", "]", "Iterator", ",", "reversed", "bool", ")", "*", "MergeIterator", "{", "m", ":=", "&", "MergeIterator", "{", "all", ":", "iters", ",", "reversed", ":", "reversed", "}", "\n", "m", ".", "h", "=", "<mask>...
9,212
all-9213
[ "RunForDaemon", "creates", "a", "port", "forwarder", "for", "the", "pachd", "daemon", "." ]
[ "func", "(", "f", "*", "PortForwarder", ")", "RunForDaemon", "(", "localPort", ",", "remotePort", "uint16", ")", "error", "{", "if", "localPort", "==", "0", "{", "localPort", "=", "pachdLocalPort", "\n", "}", "\n", "if", "remotePort", "==", "0", "{", "re...
9,213
all-9214
[ "parseVersion", "creates", "a", "new", "VSphereVersion", "from", "a", "parsed", "version", "string", "and", "build", "number", "." ]
[ "func", "parseVersion", "(", "name", ",", "version", ",", "build", "string", ")", "(", "VSphereVersion", ",", "error", ")", "{", "v", ":=", "VSphereVersion", "{", "Product", ":", "name", ",", "}", "\n", "s", ":=", "strings", ".", "Split", "(", "version...
9,214
all-9215
[ "Prepend", "is", "a", "wrapper", "around", "gtk_combo_box_text_prepend", "()", "." ]
[ "func", "(", "v", "*", "ComboBoxText", ")", "Prepend", "(", "id", ",", "text", "string", ")", "{", "cid", ":=", "C", ".", "CString", "(", "id", ")", "\n", "ctext", ":=", "C", ".", "CString", "(", "text", ")", "\n", "defer", "C", ".", "free", "(...
9,215
all-9216
[ "ValidateConfigurationChange", "takes", "a", "proposed", "ConfChange", "and", "ensures", "that", "it", "is", "still", "valid", "." ]
[ "func", "(", "c", "*", "RaftCluster", ")", "ValidateConfigurationChange", "(", "cc", "raftpb", ".", "ConfChange", ")", "error", "{", "members", ",", "removed", ":=", "membersFromStore", "(", "c", ".", "lg", ",", "c", ".", "v2store", ")", "\n", "id", ":="...
9,216
all-9217
[ "SetContextFn", "sets", "the", "function", "used", "to", "convert", "a", "context", ".", "Context", "to", "a", "thrift", ".", "Context", ".", "Note", ":", "This", "API", "may", "change", "and", "is", "only", "intended", "to", "bridge", "different", "contex...
[ "func", "(", "s", "*", "Server", ")", "SetContextFn", "(", "f", "func", "(", "ctx", "<mask>", ".", "Context", ",", "method", "string", ",", "headers", "map", "[", "string", "]", "string", ")", "Context", ")", "{", "s", ".", "ctxFn", "=", "f", "\n",...
9,217
all-9218
[ "Get", "the", "qualifier", "(", "i", ".", "e", ".", "+", "?", "~", "-", ")" ]
[ "func", "(", "d", "*", "Directive", ")", "getQualifier", "(", ")", "string", "{", "if", "len", "(", "d", ".", "<mask>", ")", "<=", "0", "{", "return", "\"", "\"", "\n", "}", "\n\n", "if", "isQualifier", "(", "d", ".", "term", "[", "0", "]", ")"...
9,218
all-9219
[ "Sample", "Virtualbox", "create", "independent", "of", "Machine", "CLI", "." ]
[ "func", "create", "(", ")", "{", "log", ".", "SetDebug", "(", "true", ")", "\n\n", "client", ":=", "libmachine", ".", "NewClient", "(", "\"", "\"", ",", "\"", "\"", ")", "\n", "defer", "client", ".", "Close", "(", ")", "\n\n", "hostName", ":=", "\"...
9,219
all-9220
[ "MethodFunc", "adds", "the", "route", "pattern", "that", "matches", "method", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "." ]
[ "func", "(", "mx", "*", "Mux", ")", "MethodFunc", "(", "method", ",", "pattern", "string", ",", "handlerFn", "http", ".", "HandlerFunc", ")", "{", "mx", ".", "Method", "(", "<mask>", ",", "pattern", ",", "handlerFn", ")", "\n", "}" ]
9,220
all-9221
[ "Returns", "a", "Typed", "helper", "at", "the", "key", "and", "whether", "or", "not", "the", "key", "existed", "and", "the", "value", "was", "an", "map", "[", "string", "]", "interface", "{}" ]
[ "func", "(", "t", "Typed", ")", "ObjectIf", "(", "key", "string", ")", "(", "Typed", ",", "bool", ")", "{", "value", ",", "exists", ":=", "t", "[", "key", "]", "\n", "if", "exists", "==", "false", "{", "return", "nil", ",", "false", "\n", "}", ...
9,221
all-9222
[ "NewImageManager", "returns", "a", "new", "ImageManager" ]
[ "func", "NewImageManager", "(", "cfg", "*", "config", ".", "Config", ",", "client", "dockerapi", ".", "DockerClient", ",", "<mask>", "dockerstate", ".", "TaskEngineState", ")", "ImageManager", "{", "return", "&", "dockerImageManager", "{", "client", ":", "client...
9,222
all-9223
[ "ChangeNormalSvcCheckInterval", "creates", "a", "new", "CHANGE_NORMAL_SVC_CHECK_INTERVAL", "Nagios", "command", ".", "Changes", "the", "normal", "(", "regularly", "scheduled", ")", "check", "interval", "for", "a", "particular", "service" ]
[ "func", "ChangeNormalSvcCheckInterval", "(", "host_name", "string", ",", "service_description", "string", ",", "check_interval", "<mask>", ".", "Duration", ",", ")", "*", "livestatus", ".", "Command", "{", "return", "livestatus", ".", "NewCommand", "(", "\"", "\""...
9,223
all-9224
[ "Attempt", "attempts", "to", "perform", "a", "request", "for", "an", "id", "and", "returns", "whether", "it", "was", "successful", "or", "not", "." ]
[ "func", "(", "r", "*", "RateLimiter", ")", "Attempt", "(", "id", "string", ")", "(", "bool", ",", "error", ")", "{", "// Create hash from id", "hash", ":=", "r", ".", "hasher", ".", "Hash", "(", "id", ")", "\n\n", "// Get value for hash in Redis. If redis.Ni...
9,224
all-9225
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EvaluateReturns", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime37", "(", "&", "...
9,225
all-9226
[ "joinFunc", "is", "the", "inverse", "of", "splitFunc", "." ]
[ "func", "joinFunc", "(", "in", ",", "out", "[", "]", "string", ")", "string", "{", "outs", ":=", "\"", "\"", "\n", "if", "len", "(", "out", ")", "==", "1", "{", "outs", "=", "\"", "\"", "+", "out", "[", "0", "]", "\n", "}", "else", "if", "l...
9,226
all-9227
[ "MoveToFolderRelativeHostSystemID", "is", "a", "complex", "method", "that", "moves", "a", "datastore", "to", "a", "given", "datastore", "path", "similar", "to", "MoveToFolder", "except", "the", "path", "is", "relative", "to", "a", "HostSystem", "supplied", "by", ...
[ "func", "MoveToFolderRelativeHostSystemID", "(", "client", "*", "govmomi", ".", "Client", ",", "ds", "*", "<mask>", ".", "Datastore", ",", "hsID", ",", "relative", "string", ")", "error", "{", "hs", ",", "err", ":=", "hostsystem", ".", "FromID", "(", "clie...
9,227
all-9228
[ "ContainerAssociationHandler", "returns", "the", "handler", "method", "for", "handling", "container", "associations", "requests", "." ]
[ "func", "ContainerAssociationsHandler", "(", "state", "dockerstate", ".", "TaskEngineState", ")", "func", "(", "http", ".", "ResponseWriter", ",", "*", "http", ".", "Request", ")", "{", "return", "func", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*"...
9,228
all-9229
[ "<function", "-", "type", ">", "::", "=", "F", "[", "Y", "]", "<bare", "-", "function", "-", "type", ">", "[", "<ref", "-", "qualifier", ">", "]", "E" ]
[ "func", "(", "st", "*", "state", ")", "functionType", "(", ")", "AST", "{", "st", ".", "checkChar", "(", "'F'", ")", "\n", "if", "len", "(", "st", ".", "str", ")", ">", "0", "&&", "st", ".", "str", "[", "0", "]", "==", "'Y'", "{", "// Functio...
9,229
all-9230
[ "GetNameOk", "returns", "a", "tuple", "with", "the", "Name", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "p", "*", "Period", ")", "GetNameOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "p", "==", "nil", "||", "p", ".", "<mask>", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", "*", "p", "....
9,230
all-9231
[ "LastIndex", "implements", "the", "Storage", "interface", "." ]
[ "func", "(", "ms", "*", "MemoryStorage", ")", "LastIndex", "(", ")", "(", "uint64", ",", "error", ")", "{", "ms", ".", "Lock", "(", ")", "\n", "defer", "<mask>", ".", "Unlock", "(", ")", "\n", "return", "ms", ".", "lastIndex", "(", ")", ",", "nil...
9,231
all-9232
[ "Put", "the", "tree", "into", "the", "blob", "store", "Only", "write", "the", "records", "to", "etcd", "if", "the", "commit", "does", "exist", "and", "is", "open", ".", "To", "check", "that", "a", "key", "exists", "in", "etcd", "we", "assert", "that", ...
[ "func", "(", "d", "*", "driver", ")", "upsertPutFileRecords", "(", "pachClient", "*", "client", ".", "APIClient", ",", "file", "*", "pfs", ".", "File", ",", "newRecords", "*", "pfs", ".", "PutFileRecords", ")", "error", "{", "prefix", ",", "err", ":=", ...
9,232
all-9233
[ "GetTime", "returns", "the", "Time", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "a", "*", "AlertGraphDefinition", ")", "GetTime", "(", ")", "WidgetTime", "{", "if", "a", "==", "nil", "||", "a", ".", "Time", "==", "nil", "{", "<mask>", "WidgetTime", "{", "}", "\n", "}", "\n", "return", "*", "a", ".", "Time", "\n", ...
9,233
all-9234
[ "ListJob", "returns", "info", "about", "all", "jobs", ".", "If", "pipelineName", "is", "non", "empty", "then", "only", "jobs", "that", "were", "started", "by", "the", "named", "pipeline", "will", "be", "returned", "If", "inputCommit", "is", "non", "-", "ni...
[ "func", "(", "c", "APIClient", ")", "ListJob", "(", "pipelineName", "string", ",", "inputCommit", "[", "]", "*", "pfs", ".", "Commit", ",", "outputCommit", "*", "pfs", ".", "Commit", ")", "(", "[", "]", "*", "pps", ".", "JobInfo", ",", "error", ")", ...
9,234
all-9235
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "InlineTextBox", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoDomsnapshot8", "(", "&", "w", ",", "v", ")",...
9,235
all-9236
[ "Info", "records", "the", "log", "with", "info", "level" ]
[ "func", "(", "l", "*", "Logger", ")", "Info", "(", "args", "...", "<mask>", "{", "}", ")", "{", "l", ".", "Output", "(", "2", ",", "LevelInfo", ",", "fmt", ".", "Sprint", "(", "args", "...", ")", ")", "\n", "}" ]
9,236
all-9237
[ "ReserveIPBlock", "creates", "an", "IP", "block" ]
[ "func", "(", "c", "*", "Client", ")", "ReserveIPBlock", "(", "request", "IPBlock", ")", "(", "*", "IPBlock", ",", "error", ")", "{", "url", ":=", "ipblockColPath", "(", ")", "+", "`?depth=`", "+", "c", ".", "client", ".", "depth", "+", "`&pretty=`", ...
9,237
all-9238
[ "CacheControl", "decorates", "a", "handler", "and", "adds", "Cache", "-", "Control", "headers" ]
[ "func", "CacheControl", "(", "maxage", "uint", ",", "delegate", "http", ".", "<mask>", ")", "http", ".", "Handler", "{", "return", "&", "cacheDecorator", "{", "delegate", ",", "maxage", "}", "\n", "}" ]
9,238
all-9239
[ "Init", "initializes", "a", "scan", "object", ".", "This", "is", "the", "easiest", "way", "to", "create", "a", "Scan", "object", ".", "If", "you", "are", "trying", "to", "create", "a", "Scan", "object", "by", "hand", "make", "sure", "to", "instantiate", ...
[ "func", "Init", "(", ")", "Scan", "{", "scan", ":=", "Scan", "{", "}", "\n", "<mask>", ".", "Hosts", "=", "make", "(", "map", "[", "string", "]", "Host", ",", "0", ")", "\n", "return", "scan", "\n", "}" ]
9,239
all-9240
[ "SetValue", "()", "is", "a", "wrapper", "around", "gtk_spin_button_set_value", "()", "." ]
[ "func", "(", "v", "*", "SpinButton", ")", "SetValue", "(", "<mask>", "float64", ")", "{", "C", ".", "gtk_spin_button_set_value", "(", "v", ".", "native", "(", ")", ",", "C", ".", "gdouble", "(", "value", ")", ")", "\n", "}" ]
9,240
all-9241
[ "Do", "executes", "Browser", ".", "getWindowBounds", "against", "the", "provided", "context", ".", "returns", ":", "bounds", "-", "Bounds", "information", "of", "the", "window", ".", "When", "window", "state", "is", "minimized", "the", "restored", "window", "p...
[ "func", "(", "p", "*", "GetWindowBoundsParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "bounds", "*", "Bounds", ",", "err", "error", ")", "{", "// execute", "var", "res", "GetWindowBoundsReturns", "\n", "err", "=", "cdp", ".", "Execu...
9,241
all-9242
[ "Concat", "concat", "two", "permissions", "into", "a", "new", "one" ]
[ "func", "(", "permission", "*", "Permission", ")", "Concat", "(", "newPermission", "*", "Permission", ")", "*", "Permission", "{", "var", "result", "=", "Permission", "{", "Role", ":", "Global", ",", "AllowedRoles", ":", "map", "[", "PermissionMode", "]", ...
9,242
all-9243
[ "UnmarshalJSON", "sets", "the", "Email", "from", "JSON" ]
[ "func", "(", "e", "*", "Email", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "l", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "e", ".", "UnmarshalEasyJSON", "(", "&", "l", ")", "\n", "return", "...
9,243
all-9244
[ "readConfig", "reads", "userConfig", "from", "path", "and", "a", "private", "key", ".", "It", "expects", "to", "find", "the", "key", "at", "the", "same", "location", "by", "replacing", "path", "extention", "with", ".", "key", ".", "func", "readConfig", "("...
[ "func", "readConfig", "(", ")", "(", "*", "userConfig", ",", "error", ")", "{", "b", ",", "err", ":=", "ioutil", ".", "ReadFile", "(", "filepath", ".", "Join", "(", "configDir", ",", "accountFile", ")", ")", "\n", "if", "err", "!=", "nil", "{", "re...
9,244
all-9245
[ "InspectPipeline", "returns", "info", "about", "a", "specific", "pipeline", "." ]
[ "func", "(", "c", "APIClient", ")", "InspectPipeline", "(", "pipelineName", "<mask>", ")", "(", "*", "pps", ".", "PipelineInfo", ",", "error", ")", "{", "pipelineInfo", ",", "err", ":=", "c", ".", "PpsAPIClient", ".", "InspectPipeline", "(", "c", ".", "C...
9,245
all-9246
[ "===", "sortDesc", "(", "node", "ValueTypeVector", ")", "Vector", "===" ]
[ "func", "funcSortDesc", "(", "vals", "[", "]", "Value", ",", "args", "Expressions", ",", "enh", "*", "EvalNodeHelper", ")", "<mask>", "{", "// NaN should sort to the bottom, so take ascending sort with NaN first and", "// reverse it.", "byValueSorter", ":=", "vectorByValueH...
9,246
all-9247
[ "Depart", "leave", "a", "twitch", "channel" ]
[ "func", "(", "c", "*", "Client", ")", "Depart", "(", "channel", "string", ")", "{", "if", "c", ".", "connActive", ".", "get", "(", ")", "{", "go", "c", ".", "send", "(", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "channel", ")", ")", "\n", ...
9,247
all-9248
[ "GetFollowRedirectsOk", "returns", "a", "tuple", "with", "the", "FollowRedirects", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "SyntheticsOptions", ")", "GetFollowRedirectsOk", "(", ")", "(", "bool", ",", "bool", ")", "{", "if", "s", "==", "nil", "||", "s", ".", "FollowRedirects", "==", "nil", "{", "return", "<mask>", ",", "false", "\n", "}", "\n", "re...
9,248
all-9249
[ "PATCH", "/", "api", "/", "scenarios", "/", ":", "scenario_id", "/", "instance_combinations", "/", ":", "id", "Update", "the", "provided", "attributes", "of", "an", "InstanceCombination", "." ]
[ "func", "(", "loc", "*", "InstanceCombinationLocator", ")", "Update", "(", "options", "rsapi", ".", "APIParams", ")", "(", "*", "InstanceCombination", ",", "error", ")", "{", "var", "res", "*", "InstanceCombination", "\n", "var", "params", "rsapi", ".", "API...
9,249
all-9250
[ "um_group_share_path", "returns", "the", "string", "groups", "/", "{", "groupId", "}", "/", "shares", "/", "{", "resourceId", "}" ]
[ "func", "umGroupSharePath", "(", "grpid", "string", ",", "resourceid", "string", ")", "<mask>", "{", "return", "um", "(", ")", "+", "slash", "(", "\"", "\"", ")", "+", "slash", "(", "grpid", ")", "+", "slash", "(", "\"", "\"", ")", "+", "slash", "(...
9,250
all-9251
[ "Run", "starts", "the", "server", "for", "listening", "and", "serving", "." ]
[ "func", "Run", "(", ")", "{", "for", "_", ",", "f", ":=", "range", "beforeRun", "{", "f", "(", ")", "\n", "}", "\n\n", "// parse command line params.", "if", "OpenCommandLine", "{", "flag", ".", "StringVar", "(", "&", "Address", ",", "\"", "\"", ",", ...
9,251
all-9252
[ "WithMaxWidth", "maximum", "screenshot", "width", "." ]
[ "func", "(", "p", "StartScreencastParams", ")", "WithMaxWidth", "(", "maxWidth", "int64", ")", "*", "StartScreencastParams", "{", "p", ".", "MaxWidth", "=", "maxWidth", "\n", "<mask>", "&", "p", "\n", "}" ]
9,252
all-9253
[ "define", "an", "array", "of", "secondary", "colors" ]
[ "func", "SecondaryColorPointer", "(", "<mask>", "int32", ",", "xtype", "uint32", ",", "stride", "int32", ",", "pointer", "unsafe", ".", "Pointer", ")", "{", "syscall", ".", "Syscall6", "(", "gpSecondaryColorPointer", ",", "4", ",", "uintptr", "(", "size", ")...
9,253
all-9254
[ "Or", "will", "match", "and", "run", "the", "first", "authorizer", "and", "return", "its", "enforcers", "on", "success", ".", "If", "no", "enforcers", "are", "returned", "it", "will", "match", "and", "run", "the", "second", "authorizer", "and", "return", "...
[ "func", "Or", "(", "a", ",", "b", "*", "Authorizer", ")", "*", "Authorizer", "{", "return", "A", "(", "\"", "\"", ",", "func", "(", "ctx", "*", "<mask>", ".", "Context", ")", "bool", "{", "return", "a", ".", "Matcher", "(", "ctx", ")", "||", "b...
9,254
all-9255
[ "Refresh", "puts", "back", "any", "reserved", "sockets", "in", "use", "and", "restarts", "the", "consistency", "guarantees", "according", "to", "the", "current", "consistency", "setting", "for", "the", "session", "." ]
[ "func", "(", "s", "*", "<mask>", ")", "Refresh", "(", ")", "{", "s", ".", "m", ".", "Lock", "(", ")", "\n", "s", ".", "slaveOk", "=", "s", ".", "consistency", "!=", "Strong", "\n", "s", ".", "unsetSocket", "(", ")", "\n", "s", ".", "m", ".", ...
9,255
all-9256
[ "AddTags", "allows", "to", "add", "tags" ]
[ "func", "(", "r", "*", "Registry", ")", "AddTags", "(", "<mask>", "...", "string", ")", "{", "r", ".", "mutex", ".", "Lock", "(", ")", "\n", "r", ".", "tags", "=", "append", "(", "r", ".", "tags", ",", "tags", "...", ")", "\n", "r", ".", "mut...
9,256
all-9257
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "EventTargetCreated", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoTarget15", "(", "&", "w", ",", "v", ")"...
9,257
all-9258
[ "aborts", "the", "attempt", "if", "a", "desired", "character", "is", "not", "a", "valid", "base32", "digit" ]
[ "func", "checkPlausible", "(", ")", "{", "for", "_", ",", "r", ":=", "range", "<mask>", "{", "if", "!", "strings", ".", "ContainsRune", "(", "alphabet", ",", "r", ")", "{", "fmt", ".", "Printf", "(", "\"", "\\n", "\"", ",", "strconv", ".", "QuoteRu...
9,258
all-9259
[ "WrapBeforeHandler", "for", "wrapping", "a", "http", ".", "Handler", "to", "Before", "middleware", ".", "Be", "aware", "that", "it", "will", "not", "be", "able", "to", "stop", "execution", "propagation", "That", "is", "it", "will", "continue", "to", "execute...
[ "func", "WrapBeforeHandler", "(", "handler", "http", ".", "<mask>", ")", "Before", "{", "return", "func", "(", "next", "http", ".", "Handler", ")", "http", ".", "Handler", "{", "return", "http", ".", "HandlerFunc", "(", "func", "(", "w", "http", ".", "...
9,259
all-9260
[ "/", "*", "Set2D", "sets", "a", "particular", "element", "in", "the", "image" ]
[ "func", "(", "img", "*", "IplImage", ")", "Set2D", "(", "x", ",", "y", "int", ",", "<mask>", "Scalar", ")", "{", "C", ".", "cvSet2D", "(", "unsafe", ".", "Pointer", "(", "img", ")", ",", "C", ".", "int", "(", "y", ")", ",", "C", ".", "int", ...
9,260
all-9261
[ "Tips", "returns", "tips", "for", "a", "venue", ".", "https", ":", "//", "developer", ".", "foursquare", ".", "com", "/", "docs", "/", "api", "/", "venues", "/", "tips" ]
[ "func", "(", "s", "*", "VenueService", ")", "Tips", "(", "params", "*", "VenueTipsParams", ")", "(", "[", "]", "Tip", ",", "*", "http", ".", "Response", ",", "error", ")", "{", "tipResp", ":=", "new", "(", "tipResp", ")", "\n", "response", ":=", "n...
9,261
all-9262
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetInspectModeParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoOverlay8", "(", "&", "w", ",", "v", "...
9,262
all-9263
[ "GetTitleSize", "returns", "the", "TitleSize", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "q", "*", "QueryValueDefinition", ")", "GetTitleSize", "(", ")", "string", "{", "if", "q", "==", "nil", "||", "q", ".", "TitleSize", "==", "nil", "{", "<mask>", "\"", "\"", "\n", "}", "\n", "return", "*", "q", ".", "TitleSize", "\n", "...
9,263
all-9264
[ "NewDaemon", "allocates", "new", "daemon", "instance", "using", "given", "options", "." ]
[ "func", "NewDaemon", "(", "opts", "*", "DaemonOpts", ")", "(", "*", "Daemon", ",", "error", ")", "{", "d", ":=", "&", "Daemon", "{", "done", ":", "<mask>", "(", "chan", "struct", "{", "}", ")", ",", "opts", ":", "opts", ",", "logger", ":", "opts"...
9,264
all-9265
[ "ClearCookies", "deletes", "all", "cookies", "on", "the", "page", "." ]
[ "func", "(", "p", "*", "Page", ")", "ClearCookies", "(", ")", "error", "{", "if", "err", ":=", "p", ".", "<mask>", ".", "DeleteCookies", "(", ")", ";", "err", "!=", "nil", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "err", ")", "...
9,265
all-9266
[ "DeployControllerCmd", "represents", "the", "apply", "command" ]
[ "func", "DeployControllerCmd", "(", ")", "*", "cobra", ".", "Command", "{", "var", "dco", "=", "&", "cli", ".", "DeployControllerOptions", "{", "}", "\n", "var", "deployControllerCmd", "=", "&", "cobra", ".", "Command", "{", "Use", ":", "\"", "\"", ",", ...
9,266
all-9267
[ "Next", "moves", "iterator", "cursor", "to", "the", "next", "item" ]
[ "func", "(", "it", "*", "Iterator", ")", "Next", "(", ")", "{", "it", ".", "iter", ".", "Next", "(", ")", "\n", "it", ".", "count", "++", "\n", "it", ".", "skipUnwanted", "(", ")", "\n", "if", "<mask>", ".", "refreshRate", ">", "0", "&&", "it",...
9,267
all-9268
[ "pointerVal", "attempts", "to", "return", "an", "unsafe", ".", "Pointer", "for", "value", ".", "Not", "all", "types", "are", "understood", "in", "which", "case", "a", "nil", "Pointer", "is", "returned", ".", "/", "*", "func", "pointerVal", "(", "value", ...
[ "func", "(", "v", "*", "Object", ")", "Emit", "(", "s", "string", ",", "args", "...", "interface", "{", "}", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "s", ")", "\n", "defer", "C", ".", "...
9,268
all-9269
[ "Short", "provides", "a", "short", "description", "of", "the", "user", "host", "and", "database", "." ]
[ "func", "(", "u", "*", "URL", ")", "Short", "(", ")", "string", "{", "if", "u", ".", "Scheme", "==", "\"", "\"", "{", "return", "\"", "\"", "\n", "}", "\n\n", "s", ":=", "schemeMap", "[", "u", ".", "Scheme", "]", ".", "Aliases", "[", "0", "]"...
9,269
all-9270
[ "Transport", "creates", "a", "net", "/", "http", ".", "Transport", "with", "options", "from", "Options", "." ]
[ "func", "Transport", "(", "options", "*", "Options", ")", "*", "http", ".", "Transport", "{", "if", "options", ".", "Timeout", "==", "0", "{", "options", ".", "Timeout", "=", "30", "*", "time", ".", "Second", "\n", "}", "\n", "if", "options", ".", ...
9,270
all-9271
[ "bind", "ranges", "of", "one", "or", "more", "buffer", "objects", "to", "a", "sequence", "of", "indexed", "buffer", "targets" ]
[ "func", "BindBuffersRange", "(", "target", "uint32", ",", "first", "uint32", ",", "count", "int32", ",", "buffers", "*", "uint32", ",", "offsets", "*", "int", ",", "sizes", "*", "int", ")", "{", "syscall", ".", "Syscall6", "(", "gpBindBuffersRange", ",", ...
9,271
all-9272
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "the", "current", "program", "object" ]
[ "func", "UniformMatrix4x3fv", "(", "location", "int32", ",", "count", "int32", ",", "transpose", "bool", ",", "value", "*", "float32", ")", "{", "syscall", ".", "Syscall6", "(", "gpUniformMatrix4x3fv", ",", "4", ",", "uintptr", "(", "location", ")", ",", "...
9,272
all-9273
[ "Add", "is", "deprecated", "." ]
[ "func", "(", "c", "*", "ColorM", ")", "Add", "(", "other", "*", "ColorM", ")", "*", "ColorM", "{", "lhsb", ":=", "colorMIdentityBody", "\n", "lhst", ":=", "colorMIdentityTranslate", "\n", "rhsb", ":=", "colorMIdentityBody", "\n", "rhst", ":=", "colorMIdentit...
9,273
all-9274
[ "title", ":", "user", "quota", "path", ":", "/", "users", "/", "{", "email", "}", "/", "quota", "method", ":", "GET", "produce", ":", "application", "/", "json", "responses", ":", "200", ":", "OK", "401", ":", "Unauthorized", "404", ":", "User", "not...
[ "func", "getUserQuota", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "error", "{", "allowed", ":=", "permission", ".", "Check", "(", "t", ",", "permission", ".", "PermUserUpdateQuota...
9,274
all-9275
[ "GetColor", "returns", "the", "Color", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "w", "*", "Widget", ")", "GetColor", "(", ")", "string", "{", "if", "w", "==", "nil", "||", "w", ".", "<mask>", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "w", ".", "Color", "\n", "}" ]
9,275
all-9276
[ "SetNoValue", "sets", "only", "key", "as", "argument", "without", "the", "=", ".", "Only", "key", "in", "argumemt", "like", "key1&key2" ]
[ "func", "(", "a", "*", "Args", ")", "SetNoValue", "(", "<mask>", "string", ")", "{", "a", ".", "args", "=", "setArg", "(", "a", ".", "args", ",", "key", ",", "\"", "\"", ",", "argsNoValue", ")", "\n", "}" ]
9,276
all-9277
[ "Callback", "does", "nothing", "." ]
[ "func", "(", "lens", "Lens", ")", "Callback", "(", "artifacts", "[", "]", "lenses", ".", "Artifact", ",", "resourceDir", "string", ",", "<mask>", "string", ")", "string", "{", "return", "\"", "\"", "\n", "}" ]
9,277
all-9278
[ "Address", "returns", "the", "address", "that", "a", "region", "of", "pointer", "type", "points", "to", "." ]
[ "func", "(", "r", "region", ")", "Address", "(", ")", "core", ".", "Address", "{", "if", "r", ".", "typ", ".", "Kind", "!=", "KindPtr", "{", "panic", "(", "\"", "\"", "+", "r", ".", "typ", ".", "<mask>", ")", "\n", "}", "\n", "return", "r", "...
9,278
all-9279
[ "causer", "detects", "whether", "e", "wraps", "another", "error", "and", "if", "so", "returns", "an", "Error", "that", "also", "implements", "the", "Causer", "interface", "." ]
[ "func", "causer", "(", "e", "*", "errorT", ")", "<mask>", "{", "if", "e", ".", "err", "==", "nil", "{", "return", "e", "\n", "}", "\n", "return", "&", "causerT", "{", "errorT", ":", "e", ",", "}", "\n", "}" ]
9,279
all-9280
[ "parseImageAndDockerReference", "converts", "an", "image", "and", "a", "reference", "string", "into", "two", "parsed", "entities", "failing", "on", "any", "error", "and", "handling", "unidentified", "images", "." ]
[ "func", "parseImageAndDockerReference", "(", "image", "types", ".", "UnparsedImage", ",", "s2", "string", ")", "(", "reference", ".", "Named", ",", "reference", ".", "Named", ",", "error", ")", "{", "r1", ":=", "image", ".", "Reference", "(", ")", ".", "...
9,280
all-9281
[ "NewHTTPError", "returns", "a", "new", "HTTPError", "where", "the", "HTTP", "error", "code", "is", "code", "and", "the", "error", "message", "is", "based", "on", "formatStr", "and", "args" ]
[ "func", "NewHTTPError", "(", "code", "int", ",", "formatStr", "string", ",", "args", "...", "interface", "{", "}", ")", "*", "HTTPError", "{", "return", "&", "HTTPError", "{", "<mask>", ":", "code", ",", "err", ":", "fmt", ".", "Sprintf", "(", "formatS...
9,281
all-9282
[ "Migrate", "executes", "migration", "scripts", "." ]
[ "func", "Migrate", "(", "connStr", "string", ",", "version", "int64", ")", "error", "{", "<mask>", ",", "err", ":=", "sql", ".", "Open", "(", "\"", "\"", ",", "connStr", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", ...
9,282
all-9283
[ "DeleteEntity", "deletes", "the", "given", "Identifiable", "from", "the", "server", "." ]
[ "func", "(", "s", "*", "Session", ")", "DeleteEntity", "(", "object", "Identifiable", ")", "*", "Error", "{", "url", ",", "berr", ":=", "s", ".", "getPersonalURL", "(", "object", ")", "\n", "if", "berr", "!=", "nil", "{", "return", "berr", "\n", "}",...
9,283
all-9284
[ "title", ":", "service", "proxy", "path", ":", "/", "services", "/", "proxy", "/", "service", "/", "{", "service", "}", "method", ":", "*", "responses", ":", "401", ":", "Unauthorized", "404", ":", "Service", "not", "found" ]
[ "func", "serviceProxy", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ".", "Request", ",", "t", "auth", ".", "Token", ")", "(", "err", "error", ")", "{", "serviceName", ":=", "r", ".", "URL", ".", "Query", "(", ")", ".", "Get", ...
9,284
all-9285
[ "MustTrustLine", "retrieves", "the", "TrustLine", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "." ]
[ "func", "(", "u", "LedgerKey", ")", "MustTrustLine", "(", ")", "LedgerKeyTrustLine", "{", "val", ",", "<mask>", ":=", "u", ".", "GetTrustLine", "(", ")", "\n\n", "if", "!", "ok", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n\n", "return", "val",...
9,285
all-9286
[ "updateMax", "updates", "the", "maximum", "values", "for", "a", "node", "and", "its", "ancestors" ]
[ "func", "(", "x", "*", "intervalNode", ")", "updateMax", "(", ")", "{", "for", "x", "!=", "nil", "{", "oldmax", ":=", "x", ".", "max", "\n", "max", ":=", "x", ".", "iv", ".", "Ivl", ".", "End", "\n", "if", "x", ".", "left", "!=", "nil", "&&",...
9,286
all-9287
[ "parseMetadata", "gathers", "metadata", "from", "a", "docker", "container", "and", "task", "configuration", "and", "data", "then", "packages", "it", "for", "JSON", "Marshaling", "Since", "we", "accept", "incomplete", "metadata", "fields", "we", "should", "not", ...
[ "func", "(", "manager", "*", "metadataManager", ")", "parseMetadata", "(", "dockerContainer", "*", "types", ".", "ContainerJSON", ",", "task", "*", "apitask", ".", "Task", ",", "containerName", "string", ")", "Metadata", "{", "dockerMD", ":=", "parseDockerContai...
9,287
all-9288
[ "render", "multiple", "instances", "of", "primitives", "using", "a", "count", "derived", "from", "a", "specifed", "stream", "of", "a", "transform", "feedback", "object" ]
[ "func", "DrawTransformFeedbackStreamInstanced", "(", "mode", "uint32", ",", "id", "uint32", ",", "stream", "uint32", ",", "instancecount", "int32", ")", "{", "C", ".", "glowDrawTransformFeedbackStreamInstanced", "(", "gpDrawTransformFeedbackStreamInstanced", ",", "(", "...
9,288
all-9289
[ "TableLinkForExpression", "creates", "an", "escaped", "relative", "link", "to", "the", "table", "view", "of", "the", "provided", "expression", "." ]
[ "func", "TableLinkForExpression", "(", "expr", "string", ")", "string", "{", "escapedExpression", ":=", "<mask>", ".", "QueryEscape", "(", "expr", ")", "\n", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "escapedExpression", ")", "\n", "}" ]
9,289
all-9290
[ "Filter", "returns", "a", "derivative", "query", "with", "a", "field", "-", "based", "filter", ".", "The", "filterStr", "argument", "must", "be", "a", "field", "name", "followed", "by", "optional", "space", "followed", "by", "an", "operator", "one", "of", ...
[ "func", "(", "q", "*", "Query", ")", "Filter", "(", "filterStr", "string", ",", "value", "interface", "{", "}", ")", "*", "Query", "{", "q", "=", "q", ".", "clone", "(", ")", "\n", "filterStr", "=", "strings", ".", "TrimSpace", "(", "filterStr", ")...
9,290
all-9291
[ "looksLikeError", "returns", "true", "if", "the", "AST", "identifier", "starts", "with", "err", "or", "Err", "or", "false", "otherwise", ".", "TODO", ":", "https", ":", "//", "github", ".", "com", "/", "leighmcculloch", "/", "gochecknoglobals", "/", "issues"...
[ "func", "looksLikeError", "(", "i", "*", "ast", ".", "Ident", ")", "bool", "{", "prefix", ":=", "\"", "\"", "\n", "if", "i", ".", "IsExported", "(", ")", "{", "prefix", "=", "\"", "\"", "\n", "}", "\n", "return", "strings", ".", "HasPrefix", "(", ...
9,291
all-9292
[ "GetCreateAccountOp", "retrieves", "the", "CreateAccountOp", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "OperationBody", ")", "GetCreateAccountOp", "(", ")", "(", "result", "CreateAccountOp", ",", "<mask>", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "Type", ")", ")", "\n\n", "if",...
9,292
all-9293
[ "UserError", "creates", "an", "errs", ".", "Err", "which", "returns", "true", "for", "IsUserError", "()", ".", "See", "Err", ".", "IsUserError" ]
[ "func", "UserError", "(", "<mask>", "Info", ",", "publicMsg", "...", "interface", "{", "}", ")", "Err", "{", "return", "newErr", "(", "debug", ".", "Stack", "(", ")", ",", "nil", ",", "true", ",", "info", ",", "publicMsg", ")", "\n", "}" ]
9,293
all-9294
[ "SetAttr", "sets", "the", "attribute", "key", "to", "value", "for", "this", "LogAdapter", "only" ]
[ "func", "(", "la", "*", "LogAdapter", ")", "SetAttr", "(", "key", "string", ",", "<mask>", "interface", "{", "}", ")", "{", "la", ".", "attrs", ".", "SetAttr", "(", "key", ",", "value", ")", "\n", "}" ]
9,294
all-9295
[ "SetSelectionMode", "is", "a", "wrapper", "around", "gtk_list_box_set_selection_mode", "()", "." ]
[ "func", "(", "v", "*", "ListBox", ")", "SetSelectionMode", "(", "<mask>", "SelectionMode", ")", "{", "C", ".", "gtk_list_box_set_selection_mode", "(", "v", ".", "native", "(", ")", ",", "C", ".", "GtkSelectionMode", "(", "mode", ")", ")", "\n", "}" ]
9,295
all-9296
[ "Add", "value", "/", "timestamp", "pair", "to", "points" ]
[ "func", "(", "p", "*", "Points", ")", "Add", "(", "value", "float64", ",", "timestamp", "int64", ")", "*", "Points", "{", "p", ".", "Data", "=", "append", "(", "p", ".", "Data", ",", "<mask>", "{", "Value", ":", "value", ",", "Timestamp", ":", "t...
9,296
all-9297
[ "UpdateNic", "partial", "update", "of", "nic", "properties" ]
[ "func", "(", "c", "*", "Client", ")", "UpdateNic", "(", "dcid", "string", ",", "srvid", "string", ",", "nicid", "string", ",", "obj", "NicProperties", ")", "(", "*", "Nic", ",", "error", ")", "{", "url", ":=", "nicPath", "(", "dcid", ",", "srvid", ...
9,297
all-9298
[ "SetTTL", "overwrites", "the", "frame", "s", "TTL", "." ]
[ "func", "(", "f", "lazyCallReq", ")", "SetTTL", "(", "d", "time", ".", "Duration", ")", "{", "ttl", ":=", "uint32", "(", "d", "/", "time", ".", "Millisecond", ")", "\n", "<mask>", ".", "BigEndian", ".", "PutUint32", "(", "f", ".", "Payload", "[", "...
9,298
all-9299
[ "Revoke", "removes", "the", "access", "from", "a", "team", ".", "It", "returns", "an", "error", "if", "the", "team", "do", "not", "have", "access", "to", "the", "app", "." ]
[ "func", "(", "app", "*", "App", ")", "Revoke", "(", "team", "*", "authTypes", ".", "Team", ")", "error", "{", "if", "len", "(", "app", ".", "Teams", ")", "==", "1", "{", "return", "ErrCannotOrphanApp", "\n", "}", "\n", "index", ",", "found", ":=", ...
9,299
all-9300
[ "createFullSystemdLogfile", "creates", "logfile", "for", "full", "systemd", "journal", "in", "the", "outputDir", "." ]
[ "func", "createFullSystemdLogfile", "(", "outputDir", "string", ")", "error", "{", "cmd", ":=", "exec", ".", "Command", "(", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "*", "journalPath", ")", "\n", "// Run the command and record the output to a file.", ...