id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
5,900
all-5901
[ "$", "{", "LXD_DIR", "}", "/", "storage", "-", "pools", "/", "<pool", ">", "/", "images", "/", "<fingerprint", ">" ]
[ "func", "getImageMountPoint", "(", "poolName", "string", ",", "fingerprint", "string", ")", "string", "{", "return", "<mask>", ".", "VarPath", "(", "\"", "\"", ",", "poolName", ",", "\"", "\"", ",", "fingerprint", ")", "\n", "}" ]
5,901
all-5902
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "DeleteObjectStoreEntriesParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoIndexeddb15", "(", "&", "w", ",...
5,902
all-5903
[ "PointerOf", "returns", "a", "Pointer", "from", "v", "which", "must", "be", "a", "reflect", ".", "Ptr", "reflect", ".", "Slice", "or", "reflect", ".", "Map", "." ]
[ "func", "PointerOf", "(", "v", "reflect", ".", "<mask>", ")", "Pointer", "{", "// The proper representation of a pointer is unsafe.Pointer,", "// which is necessary if the GC ever uses a moving collector.", "return", "Pointer", "{", "unsafe", ".", "Pointer", "(", "v", ".", ...
5,903
all-5904
[ "HasMetricQuery", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "h", "*", "HostmapRequest", ")", "HasMetricQuery", "(", ")", "bool", "{", "if", "h", "!=", "nil", "&&", "h", ".", "MetricQuery", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
5,904
all-5905
[ "UnregisterHandlerForIdentity", "unegisters", "the", "given", "EventHandler", "for", "the", "given", "Entity", "Identity", "." ]
[ "func", "(", "p", "*", "PushCenter", ")", "UnregisterHandlerForIdentity", "(", "identity", "Identity", ")", "{", "if", "identity", ".", "Name", "==", "AllIdentity", ".", "Name", "{", "p", ".", "defaultHander", "=", "nil", "\n", "return", "\n", "}", "\n\n",...
5,905
all-5906
[ "GetTitle", "returns", "the", "Title", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "s", "*", "ScreenboardLite", ")", "GetTitle", "(", ")", "string", "{", "if", "s", "==", "nil", "||", "s", ".", "Title", "==", "nil", "{", "<mask>", "\"", "\"", "\n", "}", "\n", "return", "*", "s", ".", "Title", "\n", "}" ]
5,906
all-5907
[ "AddSecurityGroupToSpace", "-", "adds", "security", "group", "json", "to", "org", "/", "space", "location" ]
[ "func", "(", "m", "*", "yamlManager", ")", "AddSecurityGroupToSpace", "(", "orgName", ",", "spaceName", "string", ",", "securityGroupDefinition", "[", "]", "<mask>", ")", "error", "{", "return", "WriteFileBytes", "(", "fmt", ".", "Sprintf", "(", "\"", "\"", ...
5,907
all-5908
[ "UseHandler", "appends", "a", "Handler", "to", "the", "route", "." ]
[ "func", "(", "r", "*", "Route", ")", "UseHandler", "(", "h", "Handler", ")", "{", "if", "r", ".", "f", "==", "nil", "{", "r", ".", "f", "=", "h", "\n", "return", "\n", "}", "\n\n", "route", ":=", "r", ".", "getLeaf", "(", ")", "\n", "route", ...
5,908
all-5909
[ "SetHeading", "()", "is", "a", "wrapper", "around", "gtk_app_chooser_button_set_heading", "()", "." ]
[ "func", "(", "v", "*", "AppChooserButton", ")", "SetHeading", "(", "heading", "string", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "<mask>", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "\n", "C...
5,909
all-5910
[ "CreateVolume", "creates", "a", "new", "ZFS", "volume", "with", "the", "specified", "name", "size", "and", "properties", ".", "A", "full", "list", "of", "available", "ZFS", "properties", "may", "be", "found", "here", ":", "https", ":", "//", "www", ".", ...
[ "func", "CreateVolume", "(", "name", "string", ",", "size", "uint64", ",", "properties", "<mask>", "[", "string", "]", "string", ")", "(", "*", "Dataset", ",", "error", ")", "{", "args", ":=", "make", "(", "[", "]", "string", ",", "4", ",", "5", ")...
5,910
all-5911
[ "GetManifest", "()", "reads", "the", "image", "s", "manifest", "." ]
[ "func", "(", "s", "*", "storageImageSource", ")", "GetManifest", "(", "ctx", "context", ".", "Context", ",", "instanceDigest", "*", "digest", ".", "Digest", ")", "(", "manifestBlob", "[", "]", "byte", ",", "MIMEType", "string", ",", "err", "error", ")", ...
5,911
all-5912
[ "Dial", "implements", "the", "StreamLayer", "interface", "." ]
[ "func", "(", "t", "*", "TCPStreamLayer", ")", "Dial", "(", "address", "ServerAddress", ",", "timeout", "time", ".", "Duration", ")", "(", "net", ".", "Conn", ",", "error", ")", "{", "return", "net", ".", "DialTimeout", "(", "\"", "\"", ",", "string", ...
5,912
all-5913
[ "runCmd", "is", "a", "helper", "function", "to", "run", "commands", ".", "It", "runs", "command", "with", "args", "from", "directory", "at", "dir", ".", "The", "executed", "process", "outputs", "to", "os", ".", "Stderr" ]
[ "func", "runCmd", "(", "command", "string", ",", "args", "[", "]", "string", ",", "dir", "string", ")", "error", "{", "cmd", ":=", "gos", ".", "Command", "(", "command", ",", "args", "...", ")", "\n", "cmd", ".", "Stdout", "(", "os", ".", "Stderr",...
5,913
all-5914
[ "clearSSMSecretValue", "cycles", "through", "the", "collection", "of", "secret", "value", "data", "and", "removes", "them", "from", "the", "task" ]
[ "func", "(", "secret", "*", "SSMSecretResource", ")", "clearSSMSecretValue", "(", ")", "{", "secret", ".", "lock", ".", "Lock", "(", ")", "\n", "defer", "<mask>", ".", "lock", ".", "Unlock", "(", ")", "\n\n", "for", "key", ":=", "range", "secret", ".",...
5,914
all-5915
[ "splitDirective", "splits", "a", "comma", "-", "separated", "directive", "value", "into", "its", "component", "parts", "trimming", "each", "of", "any", "whitespace", "characters", "." ]
[ "func", "splitValue", "(", "value", "string", ")", "[", "]", "string", "{", "parts", ":=", "strings", ".", "Split", "(", "value", ",", "\"", "\"", ")", "\n", "values", ":=", "make", "(", "[", "]", "string", ",", "0", ",", "len", "(", "parts", ")"...
5,915
all-5916
[ "GetToplevel", "is", "a", "wrapper", "around", "gtk_widget_get_toplevel", "()", "." ]
[ "func", "(", "v", "*", "Widget", ")", "GetToplevel", "(", ")", "(", "*", "Widget", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_widget_get_toplevel", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "return", "nil",...
5,916
all-5917
[ "command", "main" ]
[ "func", "command", "(", "opt", "*", "option", ")", "error", "{", "var", "dic", "tokenizer", ".", "Dic", "\n", "if", "<mask>", ".", "sysdic", "==", "\"", "\"", "{", "dic", "=", "tokenizer", ".", "SysDicIPASimple", "(", ")", "\n", "}", "else", "{", "...
5,917
all-5918
[ "DeletePipeline", "deletes", "a", "pipeline", "along", "with", "its", "output", "Repo", "." ]
[ "func", "(", "c", "APIClient", ")", "DeletePipeline", "(", "name", "string", ",", "force", "bool", ")", "error", "{", "_", ",", "err", ":=", "c", ".", "PpsAPIClient", ".", "DeletePipeline", "(", "c", ".", "Ctx", "(", ")", ",", "&", "pps", ".", "Del...
5,918
all-5919
[ "Create", "an", "array", "of", "Typed", "helpers", "from", "a", "file", "Used", "for", "when", "the", "root", "is", "an", "array", "which", "contains", "objects" ]
[ "func", "JsonFileArray", "(", "path", "string", ")", "(", "[", "]", "Typed", ",", "error", ")", "{", "data", ",", "err", ":=", "ioutil", ".", "ReadFile", "(", "<mask>", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", ...
5,919
all-5920
[ "Disable", "clustering", "on", "a", "node", "." ]
[ "func", "clusterPutDisable", "(", "d", "*", "Daemon", ")", "Response", "{", "// Close the cluster database", "err", ":=", "d", ".", "cluster", ".", "Close", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "SmartError", "(", "err", ")", "\n", "}"...
5,920
all-5921
[ "From", "Lua", "s", "specs", ":", "A", "metamethod", "only", "is", "selected", "when", "both", "objects", "being", "compared", "have", "the", "same", "type", "and", "the", "same", "metamethod", "for", "the", "selected", "operation", ".", "Thus", "both", "a...
[ "func", "proxy__eq", "(", "L", "*", "lua", ".", "State", ")", "int", "{", "<mask>", "a1", "interface", "{", "}", "\n", "_", "=", "LuaToGo", "(", "L", ",", "1", ",", "&", "a1", ")", "\n", "var", "a2", "interface", "{", "}", "\n", "_", "=", "Lu...
5,921
all-5922
[ "set", "a", "named", "parameter", "of", "a", "framebuffer", "object" ]
[ "func", "FramebufferParameteri", "(", "target", "uint32", ",", "pname", "uint32", ",", "param", "int32", ")", "{", "C", ".", "glowFramebufferParameteri", "(", "gpFramebufferParameteri", ",", "(", "C", ".", "GLenum", ")", "(", "<mask>", ")", ",", "(", "C", ...
5,922
all-5923
[ "Determines", "if", "a", "name", "corresponds", "to", "a", "shader", "object" ]
[ "func", "IsShader", "(", "shader", "uint32", ")", "bool", "{", "<mask>", ",", "_", ",", "_", ":=", "syscall", ".", "Syscall", "(", "gpIsShader", ",", "1", ",", "uintptr", "(", "shader", ")", ",", "0", ",", "0", ")", "\n", "return", "ret", "!=", "...
5,923
all-5924
[ "GetDefaultSource", "()", "is", "a", "wrapper", "around", "gtk_print_settings_get_default_source", "()", "." ]
[ "func", "(", "<mask>", "*", "PrintSettings", ")", "GetDefaultSource", "(", ")", "string", "{", "c", ":=", "C", ".", "gtk_print_settings_get_default_source", "(", "ps", ".", "native", "(", ")", ")", "\n", "return", "C", ".", "GoString", "(", "(", "*", "C"...
5,924
all-5925
[ "newBoundaryReader", "returns", "an", "initialized", "boundaryReader" ]
[ "func", "newBoundaryReader", "(", "reader", "*", "bufio", ".", "Reader", ",", "boundary", "string", ")", "*", "boundaryReader", "{", "fullBoundary", ":=", "[", "]", "byte", "(", "\"", "\\n", "\"", "+", "boundary", "+", "\"", "\"", ")", "\n", "return", ...
5,925
all-5926
[ "NewSensitiveRawMessage", "returns", "a", "new", "encapsulated", "json", ".", "RawMessage", "or", "nil", "if", "the", "data", "is", "empty", ".", "It", "cannot", "be", "accidentally", "logged", "via", ".", "String", "/", ".", "GoString", "/", "%v", "/", "%...
[ "func", "NewSensitiveRawMessage", "(", "data", "json", ".", "RawMessage", ")", "*", "SensitiveRawMessage", "{", "if", "len", "(", "data", ")", "==", "0", "{", "return", "nil", "\n", "}", "\n", "return", "&", "SensitiveRawMessage", "{", "contents", ":", "<m...
5,926
all-5927
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "CopyToReturns", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom74", "(", "&", "r", ...
5,927
all-5928
[ "EventWindowStateNewFromEvent", "returns", "an", "EventWindowState", "from", "an", "Event", ".", "Using", "widget", ".", "Connect", "()", "for", "the", "window", "-", "state", "-", "event", "signal", "results", "in", "a", "*", "Event", "being", "passed", "as",...
[ "func", "EventWindowStateNewFromEvent", "(", "event", "*", "Event", ")", "*", "EventWindowState", "{", "ee", ":=", "(", "*", "C", ".", "GdkEvent", ")", "(", "unsafe", ".", "Pointer", "(", "<mask>", ".", "native", "(", ")", ")", ")", "\n", "ev", ":=", ...
5,928
all-5929
[ "SetBSON", "sets", "the", "Email", "from", "raw", "bson", "data" ]
[ "func", "(", "e", "*", "Email", ")", "SetBSON", "(", "raw", "bson", ".", "Raw", ")", "error", "{", "var", "m", "bson", ".", "M", "\n", "if", "err", ":=", "raw", ".", "Unmarshal", "(", "&", "m", ")", ";", "err", "!=", "nil", "{", "return", "er...
5,929
all-5930
[ "GetScaleOk", "returns", "a", "tuple", "with", "the", "Scale", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "y", "*", "Yaxis", ")", "GetScaleOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "y", "==", "nil", "||", "y", ".", "Scale", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", "*", "y", "."...
5,930
all-5931
[ "GetCompareToOk", "returns", "a", "tuple", "with", "the", "CompareTo", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "g", "*", "GraphDefinitionRequest", ")", "GetCompareToOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "g", "==", "nil", "||", "g", ".", "CompareTo", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "ret...
5,931
all-5932
[ "/", "*", "Create", "a", "new", "default", "idmap" ]
[ "func", "DefaultIdmapSet", "(", "rootfs", "string", ",", "username", "string", ")", "(", "*", "IdmapSet", ",", "error", ")", "{", "idmapset", ":=", "new", "(", "IdmapSet", ")", "\n\n", "if", "username", "==", "\"", "\"", "{", "currentUser", ",", "err", ...
5,932
all-5933
[ "Parse", "is", "a", "representation", "of", "gdk_rgba_parse", "()", "." ]
[ "func", "(", "v", "*", "RGBA", ")", "Parse", "(", "<mask>", "string", ")", "bool", "{", "cstr", ":=", "(", "*", "C", ".", "gchar", ")", "(", "C", ".", "CString", "(", "spec", ")", ")", "\n", "defer", "C", ".", "free", "(", "unsafe", ".", "Poi...
5,933
all-5934
[ "RemoveAction", "is", "a", "wrapper", "around", "g_action_map_remove_action" ]
[ "func", "(", "v", "*", "ActionMap", ")", "RemoveAction", "(", "actionName", "<mask>", ")", "{", "C", ".", "g_action_map_remove_action", "(", "v", ".", "native", "(", ")", ",", "(", "*", "C", ".", "gchar", ")", "(", "C", ".", "CString", "(", "actionNa...
5,934
all-5935
[ "GetFloat", "returns", "float", "value", "for", "the", "given", "key" ]
[ "func", "(", "c", "GConfig", ")", "GetFloat", "(", "key", "string", ")", "float64", "{", "v", ",", "_", ":=", "strconv", ".", "ParseFloat", "(", "c", ".", "getStringValue", "(", "<mask>", ")", ",", "32", ")", "\n", "return", "v", "\n", "}" ]
5,935
all-5936
[ "Currently", "only", "used", "for", "loop", "-", "backed", "LVM", "storage", "pools", ".", "Can", "be", "called", "without", "overhead", "since", "it", "is", "essentially", "a", "noop", "for", "non", "-", "loop", "-", "backed", "LVM", "storage", "pools", ...
[ "func", "(", "s", "*", "storageLvm", ")", "StoragePoolMount", "(", ")", "(", "bool", ",", "error", ")", "{", "source", ":=", "s", ".", "pool", ".", "Config", "[", "\"", "\"", "]", "\n", "if", "source", "==", "\"", "\"", "{", "return", "false", ",...
5,936
all-5937
[ "Leave", "removes", "the", "provided", "member", "from", "the", "group", "and", "closes", "him" ]
[ "func", "(", "g", "*", "Group", ")", "Leave", "(", "leaving", "*", "Member", ")", "error", "{", "g", ".", "memberLock", ".", "Lock", "(", ")", "\n", "memberIndex", ":=", "-", "1", "\n", "for", "<mask>", ",", "member", ":=", "range", "g", ".", "me...
5,937
all-5938
[ "Documentation", ":", "https", ":", "//", "developers", ".", "facebook", ".", "com", "/", "docs", "/", "messenger", "-", "platform", "/", "send", "-", "api", "-", "reference", "/", "quick", "-", "replies#quick_reply" ]
[ "func", "(", "mq", "*", "MessageQuery", ")", "QuickReply", "(", "qr", "QuickReply", ")", "error", "{", "//max 10 quick replies", "if", "len", "(", "mq", ".", "Message", ".", "QuickReplies", ")", ">=", "10", "{", "return", "errors", ".", "New", "(", "\"",...
5,938
all-5939
[ "Get", "a", "temporary", "token", "suitable", "for", "use", "connecting", "to", "a", "[", "websocktunnel", "]", "(", "https", ":", "//", "github", ".", "com", "/", "taskcluster", "/", "websocktunnel", ")", "server", ".", "The", "resulting", "token", "will"...
[ "func", "(", "auth", "*", "Auth", ")", "WebsocktunnelToken", "(", "wstAudience", ",", "wstClient", "string", ")", "(", "*", "WebsocktunnelTokenResponse", ",", "error", ")", "{", "cd", ":=", "tcclient", ".", "Client", "(", "*", "auth", ")", "\n", "responseO...
5,939
all-5940
[ "Do", "executes", "Debugger", ".", "stepInto", "against", "the", "provided", "context", "." ]
[ "func", "(", "p", "*", "StepIntoParams", ")", "Do", "(", "ctx", "<mask>", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandStepInto", ",", "p", ",", "nil", ")", "\n", "}" ]
5,940
all-5941
[ "HasTitleSize", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "a", "*", "AlertValueDefinition", ")", "HasTitleSize", "(", ")", "bool", "{", "if", "a", "!=", "nil", "&&", "a", ".", "TitleSize", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
5,941
all-5942
[ "ApplicationWindowNew", "is", "a", "wrapper", "around", "gtk_application_window_new", "()", "." ]
[ "func", "ApplicationWindowNew", "(", "app", "*", "<mask>", ")", "(", "*", "ApplicationWindow", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_application_window_new", "(", "app", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "retu...
5,942
all-5943
[ "decodeResponse", "is", "used", "to", "decode", "an", "RPC", "response", "and", "reports", "whether", "the", "connection", "can", "be", "reused", "." ]
[ "func", "decodeResponse", "(", "conn", "*", "netConn", ",", "resp", "interface", "{", "}", ")", "(", "bool", ",", "error", ")", "{", "// Decode the error if any", "var", "rpcError", "string", "\n", "if", "err", ":=", "<mask>", ".", "dec", ".", "Decode", ...
5,943
all-5944
[ "HostFolderFromObject", "returns", "an", "*", "object", ".", "Folder", "from", "a", "given", "object", "and", "relative", "host", "folder", "path", ".", "If", "no", "such", "folder", "is", "found", "or", "if", "it", "is", "not", "a", "host", "folder", "a...
[ "func", "HostFolderFromObject", "(", "<mask>", "*", "govmomi", ".", "Client", ",", "obj", "interface", "{", "}", ",", "relative", "string", ")", "(", "*", "object", ".", "Folder", ",", "error", ")", "{", "folder", ",", "err", ":=", "folderFromObject", "(...
5,944
all-5945
[ "GcvInitCameraMatrix2D", "takes", "one", "3", "-", "by", "-", "N", "matrix", "and", "one", "2", "-", "by", "-", "N", "Matrix", "as", "input", ".", "Each", "column", "in", "the", "input", "matrix", "represents", "a", "point", "in", "real", "world", "(",...
[ "func", "GcvInitCameraMatrix2D", "(", "objPts", ",", "imgPts", "*", "mat64", ".", "Dense", ",", "dims", "[", "2", "]", "int", ",", "aspectRatio", "float64", ")", "(", "camMat", "*", "mat64", ".", "Dense", ")", "{", "objDim", ",", "nObjPts", ":=", "objP...
5,945
all-5946
[ "Close", "stops", "the", "member", "s", "etcdserver", "and", "closes", "its", "connections" ]
[ "func", "(", "m", "*", "<mask>", ")", "Close", "(", ")", "{", "if", "m", ".", "grpcBridge", "!=", "nil", "{", "m", ".", "grpcBridge", ".", "Close", "(", ")", "\n", "m", ".", "grpcBridge", "=", "nil", "\n", "}", "\n", "if", "m", ".", "serverClie...
5,946
all-5947
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "ShapeOutsideInfo", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom1", "(", "&", "r", ...
5,947
all-5948
[ "MakeDiskImage", "makes", "a", "boot2docker", "VM", "disk", "image", ".", "See", "https", ":", "//", "github", ".", "com", "/", "boot2docker", "/", "boot2docker", "/", "blob", "/", "master", "/", "rootfs", "/", "rootfs", "/", "etc", "/", "rc", ".", "d"...
[ "func", "MakeDiskImage", "(", "publicSSHKeyPath", "string", ")", "(", "*", "bytes", ".", "Buffer", ",", "error", ")", "{", "magicString", ":=", "\"", "\"", "\n\n", "buf", ":=", "new", "(", "bytes", ".", "Buffer", ")", "\n", "tw", ":=", "tar", ".", "N...
5,948
all-5949
[ "ChangeHostCheckCommand", "creates", "a", "new", "CHANGE_HOST_CHECK_COMMAND", "Nagios", "command", ".", "Changes", "the", "check", "command", "for", "a", "particular", "host", "to", "be", "that", "specified", "by", "the", "check_command", "option", ".", "The", "ch...
[ "func", "ChangeHostCheckCommand", "(", "host_name", "<mask>", ",", "check_command", "string", ",", ")", "*", "livestatus", ".", "Command", "{", "return", "livestatus", ".", "NewCommand", "(", "\"", "\"", ",", "stringifyArg", "(", "\"", "\"", ",", "\"", "\"",...
5,949
all-5950
[ "HasShowBreakdown", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TraceServiceDefinition", ")", "HasShowBreakdown", "(", ")", "bool", "{", "if", "t", "!=", "nil", "&&", "t", ".", "ShowBreakdown", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
5,950
all-5951
[ "expandClusterDasVMSettings", "reads", "certain", "ResourceData", "keys", "and", "returns", "a", "ClusterDasVmSettings", "." ]
[ "func", "expandClusterDasVMSettings", "(", "d", "*", "schema", ".", "ResourceData", ",", "<mask>", "viapi", ".", "VSphereVersion", ")", "*", "types", ".", "ClusterDasVmSettings", "{", "obj", ":=", "&", "types", ".", "ClusterDasVmSettings", "{", "IsolationResponse"...
5,951
all-5952
[ "HTMLSet", "renders", "the", "HTML", "with", "given", "template", "set", "name", "." ]
[ "func", "(", "ctx", "*", "Context", ")", "HTMLSet", "(", "status", "int", ",", "setName", ",", "tplName", "string", ",", "data", "...", "interface", "{", "}", ")", "{", "ctx", ".", "renderHTML", "(", "status", ",", "setName", ",", "tplName", ",", "<m...
5,952
all-5953
[ "Set", "sets", "the", "element", "at", "position", "i", "to", "v", ".", "The", "stack", "size", "is", "automatically", "adjusted", "." ]
[ "func", "(", "s", "*", "Stack", ")", "Set", "(", "i", "int", ",", "v", "interface", "{", "}", ")", "error", "{", "if", "i", "<", "0", "{", "return", "errors", ".", "New", "(", "\"", "\"", ")", "\n", "}", "\n\n", "if", "i", ">=", "s", ".", ...
5,953
all-5954
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "HighlightQuadParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoOverlay10", "(", "&",...
5,954
all-5955
[ "SetPixelFormat", "controls", "the", "pixel", "format", "of", "textures", "for", "rendering", "layer", "content", ".", "The", "pixel", "format", "for", "a", "Metal", "layer", "must", "be", "PixelFormatBGRA8UNorm", "PixelFormatBGRA8UNormSRGB", "PixelFormatRGBA16Float", ...
[ "func", "(", "ml", "MetalLayer", ")", "SetPixelFormat", "(", "pf", "mtl", ".", "PixelFormat", ")", "{", "e", ":=", "C", ".", "MetalLayer_SetPixelFormat", "(", "ml", ".", "metalLayer", ",", "C", ".", "uint16_t", "(", "pf", ")", ")", "\n", "if", "e", "...
5,955
all-5956
[ "GetgroupsName", "returns", "a", "list", "of", "the", "groups", "that", "the", "caller", "belongs", "to", "." ]
[ "func", "GetgroupsName", "(", ")", "[", "]", "string", "{", "user", ":=", "GetUsername", "(", ")", "\n", "list", ":=", "make", "(", "[", "]", "string", ",", "0", ")", "\n\n", "// The user could have its own group.", "if", "_", ",", "err", ":=", "LookupGr...
5,956
all-5957
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "ExecutionContextDescription", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoRuntime27", "(", ...
5,957
all-5958
[ "Marshal", "serialises", "an", "HOTP", "key", "value", "as", "a", "DER", "-", "encoded", "byte", "slice", "." ]
[ "func", "Marshal", "(", "otp", "*", "HOTP", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "<mask>", "asnHOTP", "struct", "{", "Key", "[", "]", "byte", "\n", "Counter", "*", "big", ".", "Int", "\n", "Digits", "int", "\n", "}", "\n", "asnHOTP...
5,958
all-5959
[ "String", "formats", "the", "cachKey", "as", "a", "string" ]
[ "func", "(", "key", "*", "cacheKey", ")", "String", "(", ")", "string", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "key", ".", "roleARN", ",", "key", ".", "region", ",", "<mask>", ".", "registryID", ",", "key", ".", "endpointOverride...
5,959
all-5960
[ "HasMetricQuery", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "ScatterplotRequest", ")", "HasMetricQuery", "(", ")", "bool", "{", "if", "s", "!=", "nil", "&&", "s", ".", "MetricQuery", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
5,960
all-5961
[ "SnakeUpper", "returns", "a", "SNAKE_CASED", "string", "with", "all", "upper", "case", "letters", "." ]
[ "func", "(", "k", "*", "Kace", ")", "SnakeUpper", "(", "s", "string", ")", "string", "{", "return", "delimitedCase", "(", "s", ",", "snakeDelim", ",", "<mask>", ")", "\n", "}" ]
5,961
all-5962
[ "HasHost", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "e", "*", "Event", ")", "HasHost", "(", ")", "bool", "{", "if", "e", "!=", "nil", "&&", "e", ".", "Host", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
5,962
all-5963
[ "SetShowMarks", "turns", "on", "and", "off", "marks", "under", "horizontal", "axis" ]
[ "func", "(", "b", "*", "BarChart", ")", "SetShowMarks", "(", "show", "bool", ")", "{", "b", ".", "mtx", ".", "Lock", "(", ")", "\n", "defer", "b", ".", "mtx", ".", "Unlock", "(", ")", "\n\n", "b", ".", "showMarks", "=", "<mask>", "\n", "}" ]
5,963
all-5964
[ "CreateNode", "is", "an", "implementation", "of", "xmlbuilder", ".", "XMLBuilder", ".", "It", "appends", "the", "node", "specified", "in", "opts", "and", "returns", "the", "child", "if", "it", "is", "an", "element", ".", "Otherwise", "it", "returns", "x", ...
[ "func", "(", "x", "*", "XMLEle", ")", "CreateNode", "(", "opts", "*", "xmlbuilder", ".", "BuilderOpts", ")", "xmlbuilder", ".", "XMLBuilder", "{", "if", "opts", ".", "NodeType", "==", "tree", ".", "NtElem", "{", "ele", ":=", "&", "XMLEle", "{", "StartE...
5,964
all-5965
[ "GetDeadline", "returns", "the", "status", "code", "and", "body", "of", "url", ".", "The", "contents", "of", "dst", "will", "be", "replaced", "by", "the", "body", "and", "returned", "if", "the", "dst", "is", "too", "small", "a", "new", "slice", "will", ...
[ "func", "(", "c", "*", "Client", ")", "GetDeadline", "(", "dst", "[", "]", "byte", ",", "url", "string", ",", "deadline", "<mask>", ".", "Time", ")", "(", "statusCode", "int", ",", "body", "[", "]", "byte", ",", "err", "error", ")", "{", "return", ...
5,965
all-5966
[ "GetWidthOk", "returns", "a", "tuple", "with", "the", "Width", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "Widget", ")", "GetWidthOk", "(", ")", "(", "int", ",", "bool", ")", "{", "if", "w", "==", "nil", "||", "w", ".", "Width", "==", "nil", "{", "return", "0", ",", "false", "\n", "}", "\n", "return", "*", "w", ".", "Width"...
5,966
all-5967
[ "separateChange", "separates", "a", "multi", "-", "zone", "change", "into", "a", "single", "change", "per", "zone", "." ]
[ "func", "separateChange", "(", "zones", "map", "[", "string", "]", "*", "dns", ".", "ManagedZone", ",", "change", "*", "dns", ".", "Change", ")", "map", "[", "string", "]", "*", "dns", ".", "Change", "{", "changes", ":=", "make", "(", "map", "[", "...
5,967
all-5968
[ "NewStreamDecoder", "returns", "a", "new", "stream", "decoder", "that", "takes", "input", "from", "p", ".", "The", "function", "panics", "if", "p", "is", "nil", "." ]
[ "func", "NewStreamDecoder", "(", "p", "<mask>", ")", "*", "StreamDecoder", "{", "if", "p", "==", "nil", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n", "return", "&", "StreamDecoder", "{", "Parser", ":", "p", "}", "\n", "}" ]
5,968
all-5969
[ "Parse", "the", "profile", "without", "loading", "it", "into", "the", "kernel", "." ]
[ "func", "AAParseProfile", "(", "c", "container", ")", "error", "{", "<mask>", ":=", "c", ".", "DaemonState", "(", ")", "\n", "if", "!", "state", ".", "OS", ".", "AppArmorAvailable", "{", "return", "nil", "\n", "}", "\n\n", "return", "runApparmor", "(", ...
5,969
all-5970
[ "String", "returns", "a", "string", "representation", "of", "v", "like", "(", "3", "4", ")", "." ]
[ "func", "(", "v", "Vec2", ")", "<mask>", "(", ")", "string", "{", "if", "len", "(", "v", ")", "<", "2", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ")", "\n", "}", "\n", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "v", ...
5,970
all-5971
[ "GetReader", "provides", "a", "reader", "and", "downloads", "data", "using", "parallel", "ranged", "get", "requests", ".", "Data", "from", "the", "requests", "are", "ordered", "and", "written", "sequentially", ".", "Data", "integrity", "is", "verified", "via", ...
[ "func", "(", "b", "*", "Bucket", ")", "GetReader", "(", "<mask>", "string", ",", "c", "*", "Config", ")", "(", "r", "io", ".", "ReadCloser", ",", "h", "http", ".", "Header", ",", "err", "error", ")", "{", "if", "path", "==", "\"", "\"", "{", "r...
5,971
all-5972
[ "zfsPoolVolumeCreate", "creates", "a", "ZFS", "dataset", "with", "a", "set", "of", "given", "properties", "." ]
[ "func", "zfsPoolVolumeCreate", "(", "dataset", "string", ",", "properties", "...", "string", ")", "(", "string", ",", "error", ")", "{", "cmd", ":=", "[", "]", "string", "{", "\"", "\"", ",", "\"", "\"", "}", "\n\n", "for", "_", ",", "<mask>", ":=", ...
5,972
all-5973
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "a", "specified", "program", "object" ]
[ "func", "ProgramUniform1f", "(", "program", "uint32", ",", "location", "int32", ",", "v0", "float32", ")", "{", "C", ".", "glowProgramUniform1f", "(", "gpProgramUniform1f", ",", "(", "C", ".", "GLuint", ")", "(", "<mask>", ")", ",", "(", "C", ".", "GLint...
5,973
all-5974
[ "Write", "implements", "the", "corresponding", "method", "of", "net", ".", "Conn" ]
[ "func", "(", "l", "*", "loggingConn", ")", "Write", "(", "b", "[", "]", "<mask>", ")", "(", "n", "int", ",", "err", "error", ")", "{", "return", "l", ".", "w", ".", "Write", "(", "b", ")", "\n", "}" ]
5,974
all-5975
[ "qauntile", "calculates", "the", "given", "quantile", "of", "a", "vector", "of", "samples", ".", "The", "Vector", "will", "be", "sorted", ".", "If", "values", "has", "zero", "elements", "NaN", "is", "returned", ".", "If", "q<0", "-", "Inf", "is", "return...
[ "func", "quantile", "(", "q", "float64", ",", "values", "vectorByValueHeap", ")", "float64", "{", "if", "len", "(", "values", ")", "==", "0", "{", "return", "math", ".", "NaN", "(", ")", "\n", "}", "\n", "if", "q", "<", "0", "{", "return", "math", ...
5,975
all-5976
[ "Do", "executes", "CSS", ".", "setMediaText", "against", "the", "provided", "context", ".", "returns", ":", "media", "-", "The", "resulting", "CSS", "media", "rule", "after", "modification", "." ]
[ "func", "(", "p", "*", "SetMediaTextParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "media", "*", "Media", ",", "err", "error", ")", "{", "// execute", "var", "res", "SetMediaTextReturns", "\n", "err", "=", "cdp", ".", "Execute", "...
5,976
all-5977
[ "Alertmanagers", "returns", "a", "slice", "of", "Alertmanager", "URLs", "." ]
[ "func", "(", "n", "*", "Manager", ")", "Alertmanagers", "(", ")", "[", "]", "*", "url", ".", "URL", "{", "n", ".", "mtx", ".", "RLock", "(", ")", "\n", "amSets", ":=", "n", ".", "alertmanagers", "\n", "n", ".", "mtx", ".", "RUnlock", "(", ")", ...
5,977
all-5978
[ "Print", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockResult", ")", "Print", "(", ")", "error", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ",", "\"", "\"", ")", "\n", "ret0", ",", "_", ":=", "<mask>", "[", "0", "]", ".", "(", "error", ")", "\n", "ret...
5,978
all-5979
[ "Endpoint", "returns", "endpoint", "msg", "for", "a", "channel", "with", "given", "key", "." ]
[ "func", "(", "h", "*", "Handler", ")", "Endpoint", "(", "key", "data", ".", "Base64String", ")", "(", "*", "data", ".", "Base64String", ",", "error", ")", "{", "logger", ":=", "h", ".", "logger", ".", "Add", "(", "\"", "\"", ",", "\"", "\"", ")",...
5,979
all-5980
[ "Sets", "the", "EditField", "value", "with", "the", "selected", "item", "in", "ListBox", "if", ":", "*", "a", "directory", "is", "selected", "and", "option", "select", "directory", "is", "set", "*", "a", "file", "is", "selected", "and", "option", "select",...
[ "func", "(", "d", "*", "FileSelectDialog", ")", "updateEditBox", "(", ")", "{", "s", ":=", "d", ".", "listBox", ".", "SelectedItemText", "(", ")", "\n", "if", "s", "==", "\"", "\"", "||", "s", "==", "\"", "\"", "||", "(", "strings", ".", "HasSuffix...
5,980
all-5981
[ "FindClientAPIVersion", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockFactory", ")", "FindClientAPIVersion", "(", "arg0", "sdkclient", ".", "<mask>", ")", "dockerclient", ".", "DockerVersion", "{", "ret", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ",", "\"", "\"", ",", "arg0", ")", "\n", ...
5,981
all-5982
[ "requestRaw", "makes", "a", "request", "with", "retries", "and", "returns", "the", "response", "body", ".", "Returns", "an", "error", "if", "the", "exit", "code", "is", "not", "one", "of", "the", "provided", "codes", "." ]
[ "func", "(", "c", "*", "Client", ")", "requestRaw", "(", "r", "*", "request", ")", "(", "int", ",", "[", "]", "byte", ",", "error", ")", "{", "if", "c", ".", "fake", "||", "(", "c", ".", "dry", "&&", "r", ".", "method", "!=", "http", ".", "...
5,982
all-5983
[ "PostCheque", "sends", "a", "payment", "cheque", "to", "a", "payment", "server", "." ]
[ "func", "PostCheque", "(", "db", "*", "reform", ".", "DB", ",", "channel", "string", ",", "pscAddr", "<mask>", ".", "HexString", ",", "pass", "string", ",", "amount", "uint64", ",", "tls", "bool", ",", "timeout", "uint", ",", "pr", "*", "proc", ".", ...
5,983
all-5984
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "GetRealtimeDataParams", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoWebaudio1", "(", "&...
5,984
all-5985
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "KeyRange", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoIndexeddb8", "(", "&", "w", ",", "v", ")", "\...
5,985
all-5986
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventCacheStorageContentUpdated", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoStorage10", "...
5,986
all-5987
[ "handleDockerEvent", "is", "the", "entrypoint", "for", "task", "modifications", "originating", "with", "events", "occurring", "through", "Docker", "outside", "the", "task", "engine", "itself", ".", "handleDockerEvent", "is", "responsible", "for", "taking", "an", "ev...
[ "func", "(", "engine", "*", "DockerTaskEngine", ")", "handleDockerEvent", "(", "event", "dockerapi", ".", "DockerContainerChangeEvent", ")", "{", "seelog", ".", "Debugf", "(", "\"", "\"", ",", "event", ".", "String", "(", ")", ")", "\n\n", "task", ",", "ok...
5,987
all-5988
[ "BeforeInsert", "sets", "current", "time", "to", "CreatedAt", "and", "UpdatedAt", "field", ".", "It", "always", "returns", "nil", "." ]
[ "func", "(", "ts", "*", "TimeStamp", ")", "BeforeInsert", "(", ")", "error", "{", "n", ":=", "now", "(", ")", "\n", "ts", ".", "CreatedAt", "=", "n", "\n", "<mask>", ".", "UpdatedAt", "=", "n", "\n", "return", "nil", "\n", "}" ]
5,988
all-5989
[ "PutFloat32", "writes", "a", "32", "-", "bit", "float", "for", "the", "given", "string", "field", ".", "The", "field", "type", "must", "be", "Float32Field", "otherwise", "an", "error", "is", "returned", ".", "The", "type", "code", "is", "written", "first",...
[ "func", "(", "b", "*", "TupleBuilder", ")", "PutFloat32", "(", "field", "string", ",", "value", "float32", ")", "(", "wrote", "uint64", ",", "err", "error", ")", "{", "// field type should be", "if", "err", "=", "b", ".", "typeCheck", "(", "field", ",", ...
5,989
all-5990
[ "MarshalEasyJSON", "writes", "the", "ISBN", "to", "a", "easyjson", ".", "Writer" ]
[ "func", "(", "u", "ISBN", ")", "MarshalEasyJSON", "(", "w", "*", "jwriter", ".", "<mask>", ")", "{", "w", ".", "String", "(", "string", "(", "u", ")", ")", "\n", "}" ]
5,990
all-5991
[ "IsEncrypted", "will", "return", "true", "if", "the", "client", "is", "connected", "using", "a", "TLS", "transport", "either", "because", "it", "used", ".", "TLS", "to", "connect", "from", "the", "outset", "or", "because", "it", "successfully", "used", "STAR...
[ "func", "(", "c", "*", "Client", ")", "IsEncrypted", "(", ")", "bool", "{", "_", ",", "<mask>", ":=", "c", ".", "conn", ".", "(", "*", "tls", ".", "Conn", ")", "\n", "return", "ok", "\n", "}" ]
5,991
all-5992
[ "SetAllow3State", "sets", "if", "ComboBox", "should", "use", "3", "states", ".", "If", "the", "current", "state", "is", "unknown", "and", "one", "disables", "Allow3State", "option", "then", "the", "current", "value", "resets", "to", "off" ]
[ "func", "(", "c", "*", "CheckBox", ")", "SetAllow3State", "(", "<mask>", "bool", ")", "{", "if", "!", "enable", "&&", "c", ".", "state", "==", "2", "{", "c", ".", "state", "=", "0", "\n", "}", "\n", "c", ".", "allow3state", "=", "enable", "\n", ...
5,992
all-5993
[ "GetLabel", "is", "a", "wrapper", "around", "gtk_label_get_label", "()", "." ]
[ "func", "(", "v", "*", "Label", ")", "GetLabel", "(", ")", "string", "{", "c", ":=", "C", ".", "gtk_label_get_label", "(", "v", ".", "native", "(", ")", ")", "\n", "if", "c", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "C...
5,993
all-5994
[ "WrapTLS", "Server", "converts", "a", "standard", "*", "http", ".", "Server", "to", "a", "buffalo", ".", "Server", "but", "makes", "sure", "it", "is", "run", "with", "TLS", "." ]
[ "func", "WrapTLS", "(", "s", "*", "<mask>", ".", "Server", ",", "certFile", "string", ",", "keyFile", "string", ")", "Server", "{", "return", "&", "TLS", "{", "Server", ":", "s", ",", "CertFile", ":", "certFile", ",", "KeyFile", ":", "keyFile", ",", ...
5,994
all-5995
[ "ResolveContainer", "resolves", "the", "api", "container", "object", "given", "container", "id", "." ]
[ "func", "(", "resolver", "*", "DockerContainerMetadataResolver", ")", "ResolveContainer", "(", "dockerID", "string", ")", "(", "*", "apicontainer", ".", "DockerContainer", ",", "error", ")", "{", "if", "resolver", ".", "dockerTaskEngine", "==", "nil", "{", "retu...
5,995
all-5996
[ "AddCommand", "registers", "new", "help", "text", "for", "a", "bot", "command", "." ]
[ "func", "(", "pluginHelp", "*", "PluginHelp", ")", "AddCommand", "(", "<mask>", "Command", ")", "{", "pluginHelp", ".", "Commands", "=", "append", "(", "pluginHelp", ".", "Commands", ",", "command", ")", "\n", "}" ]
5,996
all-5997
[ "NewLevel", "returns", "a", "random", "level", "for", "the", "next", "node" ]
[ "func", "(", "s", "*", "Skiplist", ")", "NewLevel", "(", "randFn", "func", "(", ")", "float32", ")", "int", "{", "var", "nextLevel", "int", "\n\n", "for", ";", "randFn", "(", ")", "<", "p", ";", "nextLevel", "++", "{", "}", "\n\n", "if", "nextLevel...
5,997
all-5998
[ "CreatePipelineService", "creates", "a", "new", "pipeline", "service", "." ]
[ "func", "(", "c", "APIClient", ")", "CreatePipelineService", "(", "name", "string", ",", "<mask>", "string", ",", "cmd", "[", "]", "string", ",", "stdin", "[", "]", "string", ",", "parallelismSpec", "*", "pps", ".", "ParallelismSpec", ",", "input", "*", ...
5,998
all-5999
[ "InitSlice", "initializes", "all", "models", "in", "a", "slice", "of", "the", "form", "*", "[]", "*", "Post", "and", "returns", "a", "new", "slice", "that", "contains", "all", "initialized", "models", "." ]
[ "func", "InitSlice", "(", "ptr", "interface", "{", "}", ")", "[", "]", "Model", "{", "// get slice", "slice", ":=", "reflect", ".", "ValueOf", "(", "ptr", ")", ".", "Elem", "(", ")", "\n\n", "// make model slice", "models", ":=", "make", "(", "[", "]",...
5,999
all-6000
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "ScreencastFrameAckParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage18", "(", "&", "w", ",", "v", ...