id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
2,900
all-2901
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "AuthChallenge", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "<mask>", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoFetch15", "(", "&", "w", ",", "v", ")", "\...
2,901
all-2902
[ "InitTranslate", "initializes", "a", "matrix", "with", "the", "given", "translation" ]
[ "func", "(", "m", "*", "Matrix", ")", "InitTranslate", "(", "tx", ",", "ty", "float64", ")", "{", "C", ".", "cairo_matrix_init_translate", "(", "m", ".", "native", "(", ")", ",", "C", ".", "double", "(", "<mask>", ")", ",", "C", ".", "double", "(",...
2,902
all-2903
[ "SetTopMargin", "()", "is", "a", "wrapper", "around", "gtk_page_setup_set_top_margin", "()", "." ]
[ "func", "(", "ps", "*", "PageSetup", ")", "SetTopMargin", "(", "margin", "float64", ",", "unit", "Unit", ")", "{", "C", ".", "gtk_page_setup_set_top_margin", "(", "ps", ".", "native", "(", ")", ",", "C", ".", "gdouble", "(", "margin", ")", ",", "C", ...
2,903
all-2904
[ "FileList", "entries", "at", "the", "given", "path", "using", "the", "UnixFS", "commands" ]
[ "func", "(", "s", "*", "Shell", ")", "FileList", "(", "<mask>", "string", ")", "(", "*", "UnixLsObject", ",", "error", ")", "{", "var", "out", "lsOutput", "\n", "if", "err", ":=", "s", ".", "Request", "(", "\"", "\"", ",", "path", ")", ".", "Exec...
2,904
all-2905
[ "RenameContainer", "requests", "that", "LXD", "renames", "the", "container" ]
[ "func", "(", "r", "*", "ProtocolLXD", ")", "RenameContainer", "(", "name", "string", ",", "container", "api", ".", "ContainerPost", ")", "(", "Operation", ",", "error", ")", "{", "// Sanity check", "if", "container", ".", "Migration", "{", "return", "nil", ...
2,905
all-2906
[ "native", "returns", "a", "pointer", "to", "the", "underlying", "GtkTreeSelection", "." ]
[ "func", "(", "v", "*", "TreeSelection", ")", "native", "(", ")", "*", "C", ".", "GtkTreeSelection", "{", "if", "v", "==", "nil", "||", "v", ".", "GObject", "==", "nil", "{", "<mask>", "nil", "\n", "}", "\n", "p", ":=", "unsafe", ".", "Pointer", "...
2,906
all-2907
[ "IntrospectState", "returns", "the", "runtime", "state", "of", "the", "subchannels", "." ]
[ "func", "(", "subChMap", "*", "subChannelMap", ")", "IntrospectState", "(", "opts", "*", "IntrospectionOptions", ")", "map", "[", "string", "]", "SubChannelRuntimeState", "{", "m", ":=", "make", "(", "map", "[", "string", "]", "SubChannelRuntimeState", ")", "\...
2,907
all-2908
[ "EncodeOAuth2Code", "generate", "an", "OAuth2", "code" ]
[ "func", "EncodeOAuth2Code", "(", "clientID", ",", "redirectURI", ",", "userID", ",", "sharedKey", "string", ")", "(", "code", "string", ",", "err", "error", ")", "{", "rand", ":=", "RandStringBytesMaskImprSrc", "(", "20", ")", "\n", "exp", ":=", "time", "....
2,908
all-2909
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetInfoReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoSysteminfo3", "(", "&", "w", ",", "v", ")",...
2,909
all-2910
[ "Internal", "MAAS", "handling" ]
[ "func", "(", "c", "*", "containerLXC", ")", "maasInterfaces", "(", ")", "(", "[", "]", "maas", ".", "ContainerInterface", ",", "error", ")", "{", "interfaces", ":=", "[", "]", "maas", ".", "ContainerInterface", "{", "}", "\n", "for", "k", ",", "m", "...
2,910
all-2911
[ "GetAllocation", "is", "a", "wrapper", "around", "gtk_widget_get_allocation", "()", "." ]
[ "func", "(", "v", "*", "Widget", ")", "GetAllocation", "(", ")", "*", "Allocation", "{", "<mask>", "a", "Allocation", "\n", "C", ".", "gtk_widget_get_allocation", "(", "v", ".", "native", "(", ")", ",", "a", ".", "native", "(", ")", ")", "\n", "retur...
2,911
all-2912
[ "ListObject", "lists", "objects", "stored", "in", "pfs", "." ]
[ "func", "(", "c", "APIClient", ")", "ListObject", "(", "f", "func", "(", "*", "pfs", ".", "<mask>", ")", "error", ")", "error", "{", "listObjectClient", ",", "err", ":=", "c", ".", "ObjectAPIClient", ".", "ListObjects", "(", "c", ".", "Ctx", "(", ")"...
2,912
all-2913
[ "countScalars", "returns", "the", "count", "of", "items", "in", "input", "up", "to", "but", "not", "including", "the", "first", "non", "-", "scalar", "item", ".", "A", "scalar", "is", "a", "single", "value", "item", "ie", "not", "a", "keyvalser", "." ]
[ "func", "countScalars", "(", "<mask>", "[", "]", "interface", "{", "}", ")", "int", "{", "for", "i", ":=", "0", ";", "i", "<", "len", "(", "input", ")", ";", "i", "++", "{", "switch", "input", "[", "i", "]", ".", "(", "type", ")", "{", "case"...
2,913
all-2914
[ "GoString", "defines", "the", "printable", "version", "of", "this", "struct", "." ]
[ "func", "(", "c", "*", "TemplateConfigs", ")", "GoString", "(", ")", "string", "{", "if", "c", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n\n", "s", ":=", "make", "(", "[", "]", "string", ",", "len", "(", "*", "c", ")", ")", "\n", "...
2,914
all-2915
[ "Insert", "is", "a", "wrapper", "around", "g_list_insert", "()", "." ]
[ "func", "(", "v", "*", "List", ")", "Insert", "(", "data", "uintptr", ",", "position", "int", ")", "*", "List", "{", "glist", ":=", "C", ".", "g_list_insert", "(", "v", ".", "native", "(", ")", ",", "C", ".", "gpointer", "(", "data", ")", ",", ...
2,915
all-2916
[ "==", "Editing", "Add", "adds", "a", "new", "shadowed", "group", ".", "If", "the", "key", "is", "not", "nil", "generates", "a", "hashed", "password", ".", "It", "is", "created", "a", "backup", "before", "of", "modify", "the", "original", "file", "." ]
[ "func", "(", "gs", "*", "GShadow", ")", "Add", "(", "key", "[", "]", "byte", ")", "(", "err", "error", ")", "{", "loadConfig", "(", ")", "\n\n", "gshadow", ",", "err", ":=", "LookupGShadow", "(", "gs", ".", "Name", ")", "\n", "if", "err", "!=", ...
2,916
all-2917
[ "RecordScreenAsGIF", "is", "deprecated", "as", "of", "version", "1", ".", "6", ".", "0", "-", "alpha", ".", "RecordScreenAsGIF", "returns", "updating", "function", "with", "recording", "the", "screen", "as", "an", "animation", "GIF", "image", ".", "This", "e...
[ "func", "RecordScreenAsGIF", "(", "update", "func", "(", "*", "ebiten", ".", "Image", ")", "error", ",", "<mask>", "io", ".", "Writer", ",", "frameNum", "int", ")", "func", "(", "*", "ebiten", ".", "Image", ")", "error", "{", "r", ":=", "&", "recorde...
2,917
all-2918
[ "MatchAllElements", "succeeds", "if", "every", "element", "of", "a", "slice", "matches", "the", "element", "matcher", "it", "maps", "to", "through", "the", "id", "function", "and", "every", "element", "matcher", "is", "matched", ".", "idFn", ":", "=", "func"...
[ "func", "MatchAllElements", "(", "identifier", "Identifier", ",", "elements", "Elements", ")", "<mask>", ".", "GomegaMatcher", "{", "return", "&", "ElementsMatcher", "{", "Identifier", ":", "identifier", ",", "Elements", ":", "elements", ",", "}", "\n", "}" ]
2,918
all-2919
[ "merge", "merges", "two", "similar", "Signature", "zapping", "out", "differences", "." ]
[ "func", "(", "s", "*", "Signature", ")", "merge", "(", "r", "*", "Signature", ")", "*", "Signature", "{", "<mask>", ":=", "s", ".", "SleepMin", "\n", "if", "r", ".", "SleepMin", "<", "min", "{", "min", "=", "r", ".", "SleepMin", "\n", "}", "\n", ...
2,919
all-2920
[ "setContainerChangeSent", "sets", "the", "event", "s", "container", "change", "object", "as", "sent" ]
[ "func", "setContainerChangeSent", "(", "event", "*", "sendableEvent", ")", "{", "containerChangeStatus", ":=", "event", ".", "containerChange", ".", "Status", "\n", "container", ":=", "event", ".", "containerChange", ".", "<mask>", "\n", "if", "container", "!=", ...
2,920
all-2921
[ "getPipelineInfo", "gets", "the", "PipelineInfo", "proto", "describing", "the", "pipeline", "that", "this", "worker", "is", "part", "of", ".", "getPipelineInfo", "has", "the", "side", "effect", "of", "adding", "auth", "to", "the", "passed", "pachClient", "which"...
[ "func", "getPipelineInfo", "(", "pachClient", "*", "client", ".", "APIClient", ",", "env", "*", "serviceenv", ".", "ServiceEnv", ")", "(", "*", "pps", ".", "PipelineInfo", ",", "error", ")", "{", "ctx", ",", "cancel", ":=", "<mask>", ".", "WithTimeout", ...
2,921
all-2922
[ "StoragePoolCreate", "creates", "new", "storage", "pool", "." ]
[ "func", "(", "c", "*", "Cluster", ")", "StoragePoolCreate", "(", "poolName", "string", ",", "poolDescription", "string", ",", "poolDriver", "string", ",", "poolConfig", "map", "[", "string", "]", "string", ")", "(", "int64", ",", "error", ")", "{", "var", ...
2,922
all-2923
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "ProfileNode", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoProfiler16", "(", "&", "w", ",", "v", ")", "...
2,923
all-2924
[ "MustRetHash", "retrieves", "the", "RetHash", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "." ]
[ "func", "(", "u", "Memo", ")", "MustRetHash", "(", ")", "Hash", "{", "val", ",", "ok", ":=", "u", ".", "GetRetHash", "(", ")", "\n\n", "if", "!", "<mask>", "{", "panic", "(", "\"", "\"", ")", "\n", "}", "\n\n", "return", "val", "\n", "}" ]
2,924
all-2925
[ "determine", "if", "a", "name", "corresponds", "to", "a", "query", "object" ]
[ "func", "IsQuery", "(", "<mask>", "uint32", ")", "bool", "{", "ret", ",", "_", ",", "_", ":=", "syscall", ".", "Syscall", "(", "gpIsQuery", ",", "1", ",", "uintptr", "(", "id", ")", ",", "0", ",", "0", ")", "\n", "return", "ret", "!=", "0", "\n...
2,925
all-2926
[ "NewRemoteMysqlDumpWithPath", "-" ]
[ "func", "NewRemoteMysqlDumpWithPath", "(", "username", ",", "<mask>", "string", ",", "sshCfg", "command", ".", "SshConfig", ",", "remoteArchivePath", "string", ")", "(", "*", "MysqlDump", ",", "error", ")", "{", "lo", ".", "G", ".", "Debug", "(", "\"", "\"...
2,926
all-2927
[ "ContainerMetadataHandler", "returns", "the", "handler", "method", "for", "handling", "container", "metadata", "requests", "." ]
[ "func", "ContainerMetadataHandler", "(", "state", "dockerstate", ".", "TaskEngineState", ")", "func", "(", "<mask>", ".", "ResponseWriter", ",", "*", "http", ".", "Request", ")", "{", "return", "func", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", ...
2,927
all-2928
[ "GetTitle", "returns", "the", "Title", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "g", "*", "<mask>", ")", "GetTitle", "(", ")", "string", "{", "if", "g", "==", "nil", "||", "g", ".", "Title", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "g", ".", "Title", "\n", "}" ]
2,928
all-2929
[ "GetIndex", "returns", "the", "Index", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "w", "*", "WidgetApmOrLogQuery", ")", "GetIndex", "(", ")", "string", "{", "if", "w", "==", "nil", "||", "w", ".", "<mask>", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "w", ".", "Index", "\n", "}" ]
2,929
all-2930
[ "MarshalEasyJSON", "satisfies", "easyjson", ".", "Marshaler", "." ]
[ "func", "(", "t", "ShadowRootType", ")", "MarshalEasyJSON", "(", "out", "*", "jwriter", ".", "<mask>", ")", "{", "out", ".", "String", "(", "string", "(", "t", ")", ")", "\n", "}" ]
2,930
all-2931
[ "CssProviderGetDefault", "is", "a", "wrapper", "around", "gtk_css_provider_get_default", "()", "." ]
[ "func", "CssProviderGetDefault", "(", ")", "(", "*", "CssProvider", ",", "<mask>", ")", "{", "c", ":=", "C", ".", "gtk_css_provider_get_default", "(", ")", "\n", "if", "c", "==", "nil", "{", "return", "nil", ",", "nilPtrErr", "\n", "}", "\n", "obj", ":...
2,931
all-2932
[ "NewLedgerUpgrade", "creates", "a", "new", "LedgerUpgrade", "." ]
[ "func", "NewLedgerUpgrade", "(", "aType", "LedgerUpgradeType", ",", "value", "interface", "{", "}", ")", "(", "result", "LedgerUpgrade", ",", "err", "error", ")", "{", "result", ".", "Type", "=", "aType", "\n", "switch", "LedgerUpgradeType", "(", "aType", ")...
2,932
all-2933
[ "New", "..." ]
[ "func", "New", "(", "opts", "Opts", ")", "(", "csr", "*", "Cluster", ",", "err", "error", ")", "{", "var", "(", "nodes", "[", "]", "string", "\n", "exists", "bool", "\n", ")", "\n", "for", "_", ",", "seed", ":=", "range", "opts", ".", "Seeds", ...
2,933
all-2934
[ "GetToOk", "returns", "a", "tuple", "with", "the", "To", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TimeRange", ")", "GetToOk", "(", ")", "(", "json", ".", "Number", ",", "bool", ")", "{", "if", "t", "==", "nil", "||", "t", ".", "To", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", "*...
2,934
all-2935
[ "GetName", "returns", "the", "Name", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "s", "*", "SyntheticsLocation", ")", "GetName", "(", ")", "string", "{", "if", "s", "==", "nil", "||", "s", ".", "Name", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "s", ".", "<mask>", "\n", "}" ]
2,935
all-2936
[ "Update", "updates", "the", "configmap", "with", "the", "data", "from", "the", "identified", "files" ]
[ "func", "Update", "(", "fg", "FileGetter", ",", "kc", "corev1", ".", "ConfigMapInterface", ",", "name", ",", "namespace", "string", ",", "updates", "[", "]", "ConfigMapUpdate", ",", "logger", "*", "logrus", ".", "Entry", ")", "error", "{", "cm", ",", "ge...
2,936
all-2937
[ "Do", "executes", "LayerTree", ".", "snapshotCommandLog", "against", "the", "provided", "context", ".", "returns", ":", "commandLog", "-", "The", "array", "of", "canvas", "function", "calls", "." ]
[ "func", "(", "p", "*", "SnapshotCommandLogParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "commandLog", "[", "]", "easyjson", ".", "RawMessage", ",", "err", "error", ")", "{", "// execute", "<mask>", "res", "SnapshotCommandLogReturns", "...
2,937
all-2938
[ "Delete", "implements", "the", "corresponding", "method", "in", "the", "Client", "interface" ]
[ "func", "(", "o", "*", "tracingObjClient", ")", "Delete", "(", "ctx", "context", ".", "Context", ",", "name", "string", ")", "error", "{", "span", ",", "ctx", ":=", "tracing", ".", "AddSpanToAnyExisting", "(", "ctx", ",", "o", ".", "provider", "+", "\"...
2,938
all-2939
[ "ReadResponse", "reads", "a", "server", "response", "into", "the", "received", "o", "." ]
[ "func", "(", "o", "*", "GetAppsAppRoutesReader", ")", "ReadResponse", "(", "response", "runtime", ".", "ClientResponse", ",", "consumer", "runtime", ".", "Consumer", ")", "(", "interface", "{", "}", ",", "error", ")", "{", "switch", "response", ".", "Code", ...
2,939
all-2940
[ "countNewTags", "returns", "a", "count", "of", "new", "tags", "which", "do", "not", "exist", "in", "the", "current", "list", "of", "tags" ]
[ "func", "countNewTags", "(", "currTags", "[", "]", "string", ",", "newTags", "[", "]", "string", ")", "int", "{", "if", "len", "(", "newTags", ")", "==", "0", "{", "return", "0", "\n", "}", "\n\n", "if", "len", "(", "currTags", ")", "==", "0", "{...
2,940
all-2941
[ "setMountPoint", "sets", "the", "mountpoint", "of", "the", "created", "volume", ".", "This", "is", "a", "read", "-", "only", "field", "hence", "making", "this", "a", "private", "function", "." ]
[ "func", "(", "vol", "*", "VolumeResource", ")", "setMountPoint", "(", "mountPoint", "string", ")", "{", "vol", ".", "<mask>", ".", "Lock", "(", ")", "\n", "defer", "vol", ".", "lock", ".", "Unlock", "(", ")", "\n\n", "vol", ".", "VolumeConfig", ".", ...
2,941
all-2942
[ "MutateTransaction", "for", "MemoReturn", "sets", "the", "memo", "." ]
[ "func", "(", "m", "MemoReturn", ")", "MutateTransaction", "(", "o", "*", "TransactionBuilder", ")", "(", "err", "error", ")", "{", "o", ".", "TX", ".", "Memo", ",", "err", "=", "xdr", ".", "NewMemo", "(", "xdr", ".", "MemoTypeMemoReturn", ",", "m", "...
2,942
all-2943
[ "MetadataFromOutgoingContext", "gets", "the", "metadata", "from", "the", "given", "context" ]
[ "func", "MetadataFromOutgoingContext", "(", "ctx", "context", ".", "Context", ")", "metadata", ".", "MD", "{", "md", ",", "_", ":=", "metadata", ".", "FromOutgoingContext", "(", "ctx", ")", "\n", "return", "<mask>", "\n", "}" ]
2,943
all-2944
[ "Clear", "deletes", "all", "ListBox", "items" ]
[ "func", "(", "l", "*", "ListBox", ")", "Clear", "(", ")", "{", "l", ".", "<mask>", "=", "make", "(", "[", "]", "string", ",", "0", ")", "\n", "l", ".", "currSelection", "=", "-", "1", "\n", "l", ".", "topLine", "=", "0", "\n", "}" ]
2,944
all-2945
[ "HasHandle", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "c", "*", "Creator", ")", "HasHandle", "(", ")", "bool", "{", "if", "c", "!=", "nil", "&&", "c", ".", "Handle", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
2,945
all-2946
[ "deletes", "the", "contents", "of", "a", "directory" ]
[ "func", "removeDirContents", "(", "path", "string", ")", "error", "{", "files", ",", "err", ":=", "ioutil", ".", "ReadDir", "(", "path", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n\n", "for", "_", ",", "file", ":=", "r...
2,946
all-2947
[ "Merge", "will", "attempt", "to", "merge", "the", "data", "from", "src", "into", "dst", ".", "They", "shoud", "be", "either", "both", "maps", "or", "both", "structs", ".", "The", "structs", "do", "not", "need", "to", "have", "the", "same", "structure", ...
[ "func", "Merge", "(", "dst", ",", "src", "<mask>", "{", "}", ")", "{", "m", ":=", "NewMerger", "(", ")", "\n", "m", ".", "mergeStructs", "(", "reflect", ".", "ValueOf", "(", "dst", ")", ",", "reflect", ".", "ValueOf", "(", "src", ")", ")", "\n", ...
2,947
all-2948
[ "splitHostVirtualSwitchID", "splits", "a", "vsphere_host_virtual_switch", "resource", "ID", "into", "its", "counterparts", ":", "the", "prefix", "the", "HostSystem", "ID", "and", "the", "virtual", "switch", "name", "." ]
[ "func", "splitHostVirtualSwitchID", "(", "raw", "string", ")", "(", "string", ",", "string", ",", "error", ")", "{", "s", ":=", "strings", ".", "SplitN", "(", "raw", ",", "\"", "\"", ",", "3", ")", "\n", "if", "len", "(", "s", ")", "!=", "3", "||...
2,948
all-2949
[ "Exitf", "takes", "a", "status", "plus", "a", "format", "string", "and", "a", "list", "of", "parameters", "to", "pass", "to", "Sprintf", ".", "It", "then", "immediately", "outputs", "and", "exits", "." ]
[ "func", "(", "c", "*", "Check", ")", "Exitf", "(", "status", "Status", ",", "format", "string", ",", "v", "...", "interface", "{", "}", ")", "{", "info", ":=", "fmt", ".", "Sprintf", "(", "<mask>", ",", "v", "...", ")", "\n", "c", ".", "AddResult...
2,949
all-2950
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "SetScrollbarsHiddenParams", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoEmulation4", "(",...
2,950
all-2951
[ "ReorderChild", "()", "is", "a", "wrapper", "around", "gtk_notebook_reorder_child", "()", "." ]
[ "func", "(", "v", "*", "Notebook", ")", "ReorderChild", "(", "<mask>", "IWidget", ",", "position", "int", ")", "{", "C", ".", "gtk_notebook_reorder_child", "(", "v", ".", "native", "(", ")", ",", "child", ".", "toWidget", "(", ")", ",", "C", ".", "gi...
2,951
all-2952
[ "Validate", "validates", "the", "Agent", "options", "." ]
[ "func", "(", "o", "AgentOptions", ")", "Validate", "(", ")", "error", "{", "if", "o", ".", "Mbus", "==", "\"", "\"", "{", "return", "bosherr", ".", "<mask>", "(", "\"", "\"", ")", "\n", "}", "\n\n", "err", ":=", "o", ".", "Blobstore", ".", "Valid...
2,952
all-2953
[ "same", "with", "Trace", "()" ]
[ "func", "(", "f", "*", "FileLogger", ")", "T", "(", "format", "string", ",", "v", "...", "interface", "{", "}", ")", "{", "f", ".", "Trace", "(", "<mask>", ",", "v", "...", ")", "\n", "}" ]
2,953
all-2954
[ "ParseBranch", "takes", "an", "argument", "of", "the", "form", "repo", "[" ]
[ "func", "ParseBranch", "(", "arg", "string", ")", "(", "*", "pfs", ".", "Branch", ",", "error", ")", "{", "commit", ",", "err", ":=", "ParseCommit", "(", "arg", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "\n...
2,954
all-2955
[ "getAllSSMSecretRequirements", "stores", "all", "secrets", "in", "a", "map", "whose", "key", "is", "region", "and", "value", "is", "all", "secrets", "in", "that", "region" ]
[ "func", "(", "task", "*", "Task", ")", "getAllSSMSecretRequirements", "(", ")", "map", "[", "string", "]", "[", "]", "apicontainer", ".", "Secret", "{", "reqs", ":=", "make", "(", "map", "[", "string", "]", "[", "]", "apicontainer", ".", "Secret", ")",...
2,955
all-2956
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "DeleteDatabaseParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoIndexeddb16", "(", "...
2,956
all-2957
[ "Calculates", "the", "per", "-", "element", "sum", "of", "an", "array", "and", "a", "scalar", "with", "a", "mask", ".", "dst", "=", "src", "+", "value" ]
[ "func", "AddScalarWithMask", "(", "src", "*", "IplImage", ",", "<mask>", "Scalar", ",", "dst", ",", "mask", "*", "IplImage", ")", "{", "C", ".", "cvAddS", "(", "unsafe", ".", "Pointer", "(", "src", ")", ",", "(", "C", ".", "CvScalar", ")", "(", "va...
2,957
all-2958
[ "generates", "round", "robin", "indexes", "for", "a", "slice", "of", "length", "max", "starting", "from", "index", "start" ]
[ "func", "roundIndex", "(", "start", ",", "max", "int", ")", "[", "]", "int", "{", "if", "start", "<", "0", "{", "start", "=", "0", "\n", "}", "\n", "<mask>", ":=", "make", "(", "[", "]", "int", ",", "max", ")", "\n", "for", "i", ":=", "0", ...
2,958
all-2959
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "SetRuleSelectorReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoCss15", "(", "&", "w", ",", "v", ")...
2,959
all-2960
[ "imageCreateInPool", "()", "creates", "a", "new", "storage", "volume", "in", "a", "given", "storage", "pool", "for", "the", "image", ".", "No", "entry", "in", "the", "images", "database", "will", "be", "created", ".", "This", "implies", "that", "imageCreatei...
[ "func", "imageCreateInPool", "(", "d", "*", "Daemon", ",", "info", "*", "api", ".", "<mask>", ",", "storagePool", "string", ")", "error", "{", "if", "storagePool", "==", "\"", "\"", "{", "return", "fmt", ".", "Errorf", "(", "\"", "\"", ")", "\n", "}"...
2,960
all-2961
[ "SetPorts", "sets", "the", "ports", "that", "wil", "be", "used" ]
[ "func", "(", "s", "Scan", ")", "SetPorts", "(", "<mask>", "...", "uint16", ")", "Scan", "{", "s", ".", "configPorts", "=", "ports", "\n", "return", "s", "\n", "}" ]
2,961
all-2962
[ "NewMatrix", "creates", "a", "new", "identiy", "matrix" ]
[ "func", "NewMatrix", "(", "<mask>", ",", "yx", ",", "xy", ",", "yy", ",", "x0", ",", "y0", "float64", ")", "*", "Matrix", "{", "return", "&", "Matrix", "{", "Xx", ":", "xx", ",", "Yx", ":", "yx", ",", "Xy", ":", "xy", ",", "Yy", ":", "yy", ...
2,962
all-2963
[ "HasExtraCol", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "g", "*", "GraphDefinitionRequest", ")", "HasExtraCol", "(", ")", "bool", "{", "if", "g", "!=", "nil", "&&", "g", ".", "ExtraCol", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
2,963
all-2964
[ "String", "returns", "a", "suitable", "string", "representation", "for", "the", "status", "code" ]
[ "func", "(", "o", "StatusCode", ")", "String", "(", ")", "string", "{", "return", "map", "[", "StatusCode", "]", "string", "{", "OperationCreated", ":", "\"", "\"", ",", "Started", ":", "\"", "\"", ",", "Stopped", ":", "\"", "\"", ",", "Running", ":"...
2,964
all-2965
[ "ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "ScpStatementPledges" ]
[ "func", "(", "u", "ScpStatementPledges", ")", "ArmForSwitch", "(", "sw", "int32", ")", "(", "string", ",", "bool", ")", "{", "<mask>", "ScpStatementType", "(", "sw", ")", "{", "case", "ScpStatementTypeScpStPrepare", ":", "return", "\"", "\"", ",", "true", ...
2,965
all-2966
[ "unlockPath", "releases", "the", "pathLock", "for", "path", "." ]
[ "func", "unlockPath", "(", "path", "string", ")", "{", "pathLocksMutex", ".", "Lock", "(", ")", "\n", "defer", "pathLocksMutex", ".", "Unlock", "(", ")", "\n", "pl", ",", "<mask>", ":=", "pathLocks", "[", "path", "]", "\n", "if", "!", "ok", "{", "// ...
2,966
all-2967
[ "Get", "a", "config" ]
[ "func", "Get", "(", "source", "interface", "{", "}", ",", "environment", "string", ",", "configEnv", "Environment", ")", "(", "conf", "interface", "{", "}", ",", "err", "error", ")", "{", "if", "filename", ",", "ok", ":=", "source", ".", "(", "string",...
2,967
all-2968
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "AttachToBrowserTargetParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoTarget31", "(", ...
2,968
all-2969
[ "NewGoogleProvider", "initializes", "a", "new", "Google", "CloudDNS", "based", "Provider", "." ]
[ "func", "NewGoogleProvider", "(", "project", "string", ",", "domainFilter", "DomainFilter", ",", "zoneIDFilter", "ZoneIDFilter", ",", "dryRun", "bool", ")", "(", "*", "GoogleProvider", ",", "error", ")", "{", "gcloud", ",", "err", ":=", "google", ".", "Default...
2,969
all-2970
[ "Like", "UnmarshalBinaryBare", "but", "will", "first", "read", "the", "byte", "-", "length", "prefix", ".", "UnmarshalBinaryLengthPrefixedReader", "will", "panic", "if", "ptr", "is", "a", "nil", "-", "pointer", ".", "If", "maxSize", "is", "0", "there", "is", ...
[ "func", "(", "cdc", "*", "Codec", ")", "UnmarshalBinaryLengthPrefixedReader", "(", "r", "io", ".", "Reader", ",", "ptr", "interface", "{", "}", ",", "maxSize", "int64", ")", "(", "n", "int64", ",", "err", "error", ")", "{", "if", "maxSize", "<", "0", ...
2,970
all-2971
[ "WriteSecret", "writes", "a", "JSON", "-", "encoded", "k8s", "secret", "to", "the", "given", "writer", ".", "The", "secret", "uses", "the", "given", "map", "as", "data", "." ]
[ "func", "WriteSecret", "(", "encoder", "Encoder", ",", "data", "map", "[", "string", "]", "[", "]", "byte", ",", "opts", "*", "AssetOpts", ")", "error", "{", "if", "opts", ".", "DashOnly", "{", "return", "nil", "\n", "}", "\n", "secret", ":=", "&", ...
2,971
all-2972
[ "NewMemcachedDiscoveryClient", "creates", "a", "new", "DiscoveryClient", "that", "caches", "results", "in", "memory" ]
[ "func", "NewMemcachedDiscoveryClient", "(", "cl", "discovery", ".", "DiscoveryInterface", ")", "discovery", ".", "CachedDiscoveryInterface", "{", "c", ":=", "&", "memcachedDiscoveryClient", "{", "cl", ":", "cl", "}", "\n", "c", ".", "Invalidate", "(", ")", "\n",...
2,972
all-2973
[ "Group", "creates", "a", "new", "*", "App", "that", "inherits", "from", "it", "s", "parent", "*", "App", ".", "This", "is", "useful", "for", "creating", "groups", "of", "end", "-", "points", "that", "need", "to", "share", "common", "functionality", "like...
[ "func", "(", "a", "*", "App", ")", "Group", "(", "groupPath", "string", ")", "*", "App", "{", "g", ":=", "New", "(", "a", ".", "Options", ")", "\n", "g", ".", "Prefix", "=", "path", ".", "Join", "(", "a", ".", "Prefix", ",", "groupPath", ")", ...
2,973
all-2974
[ "NewASMAuthResource", "creates", "a", "new", "ASMAuthResource", "object" ]
[ "func", "NewASMAuthResource", "(", "taskARN", "string", ",", "asmRequirements", "[", "]", "*", "apicontainer", ".", "ASMAuthData", ",", "executionCredentialsID", "string", ",", "credentialsManager", "credentials", ".", "<mask>", ",", "asmClientCreator", "factory", "."...
2,974
all-2975
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "a", "specified", "program", "object" ]
[ "func", "ProgramUniform2fv", "(", "program", "uint32", ",", "location", "int32", ",", "count", "int32", ",", "value", "*", "float32", ")", "{", "C", ".", "glowProgramUniform2fv", "(", "gpProgramUniform2fv", ",", "(", "C", ".", "GLuint", ")", "(", "program", ...
2,975
all-2976
[ "WithInstanceLimit", "sets", "a", "limit", "on", "amount", "of", "additional", "instances", "spawned", "by", "BatchingWriter" ]
[ "func", "WithScalingInterval", "(", "v", "<mask>", ".", "Duration", ")", "BatchingWriterOption", "{", "return", "func", "(", "w", "*", "BatchingWriter", ")", "{", "w", ".", "scalingInterval", "=", "v", "\n", "}", "\n", "}" ]
2,976
all-2977
[ "MainContextDefault", "is", "a", "wrapper", "around", "g_main_context_default", "()", "." ]
[ "func", "MainContextDefault", "(", ")", "*", "MainContext", "{", "c", ":=", "C", ".", "g_main_context_default", "(", ")", "\n", "if", "c", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "<mask>", "(", "*", "MainContext", ")", "(", "c", ")", "\n"...
2,977
all-2978
[ "State", "returns", "the", "current", "channel", "state", "." ]
[ "func", "(", "ch", "*", "<mask>", ")", "State", "(", ")", "ChannelState", "{", "ch", ".", "mutable", ".", "RLock", "(", ")", "\n", "state", ":=", "ch", ".", "mutable", ".", "state", "\n", "ch", ".", "mutable", ".", "RUnlock", "(", ")", "\n\n", "r...
2,978
all-2979
[ "GetOptionsOk", "returns", "a", "tuple", "with", "the", "Options", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "s", "*", "SyntheticsTest", ")", "GetOptionsOk", "(", ")", "(", "SyntheticsOptions", ",", "bool", ")", "{", "if", "s", "==", "nil", "||", "s", ".", "Options", "==", "nil", "{", "return", "SyntheticsOptions", "{", "}", ",", "<mask>", "\n", ...
2,979
all-2980
[ "SetDomainBytes", "sets", "cookie", "domain", "." ]
[ "func", "(", "c", "*", "Cookie", ")", "SetDomainBytes", "(", "domain", "[", "]", "byte", ")", "{", "c", ".", "<mask>", "=", "append", "(", "c", ".", "domain", "[", ":", "0", "]", ",", "domain", "...", ")", "\n", "}" ]
2,980
all-2981
[ "Make", "a", "request", "to", "the", "Twilio", "API", "." ]
[ "func", "(", "c", "*", "Client", ")", "MakeRequest", "(", "ctx", "context", ".", "Context", ",", "method", "string", ",", "pathPart", "string", ",", "data", "url", ".", "Values", ",", "v", "interface", "{", "}", ")", "error", "{", "if", "!", "strings...
2,981
all-2982
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "RedoParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom17", "(", "&", "r", ",", ...
2,982
all-2983
[ "AllByButton", "finds", "zero", "or", "more", "button", "elements", "with", "the", "provided", "text", ".", "Supports", "<button", ">", "<input", "type", "=", "button", ">", "and", "<input", "type", "=", "submit", ">", "." ]
[ "func", "(", "s", "*", "selectable", ")", "AllByButton", "(", "<mask>", "string", ")", "*", "MultiSelection", "{", "return", "newMultiSelection", "(", "s", ".", "session", ",", "s", ".", "selectors", ".", "Append", "(", "target", ".", "Button", ",", "tex...
2,983
all-2984
[ "GetEmbedPageSetup", "()", "is", "a", "wrapper", "around", "gtk_print_operation_get_embed_page_setup", "()", "." ]
[ "func", "(", "<mask>", "*", "PrintOperation", ")", "GetEmbedPageSetup", "(", ")", "bool", "{", "c", ":=", "C", ".", "gtk_print_operation_get_embed_page_setup", "(", "po", ".", "native", "(", ")", ")", "\n", "return", "gobool", "(", "c", ")", "\n", "}" ]
2,984
all-2985
[ "description", "computes", "the", "ProwJobStatus", "description", "for", "this", "condition", "or", "falling", "back", "to", "a", "default", "if", "none", "is", "provided", "." ]
[ "func", "description", "(", "cond", "duckv1alpha1", ".", "Condition", ",", "fallback", "string", ")", "string", "{", "switch", "{", "case", "cond", ".", "Message", "!=", "\"", "\"", ":", "return", "cond", ".", "Message", "\n", "<mask>", "cond", ".", "Rea...
2,985
all-2986
[ "Broadcast", "accumulates", "the", "GossipData", "under", "the", "given", "srcName", "and", "will", "send", "it", "eventually", ".", "Send", "and", "Broadcast", "accumulate", "into", "different", "buckets", "." ]
[ "func", "(", "s", "*", "gossipSender", ")", "Broadcast", "(", "srcName", "PeerName", ",", "data", "GossipData", ")", "{", "s", ".", "Lock", "(", ")", "\n", "defer", "s", ".", "Unlock", "(", ")", "\n", "if", "s", ".", "empty", "(", ")", "{", "defe...
2,986
all-2987
[ "undo", "merged", "presets", "from", "loaded", "presubmit", "and", "its", "children" ]
[ "func", "undoPresubmitPresets", "(", "presets", "[", "]", "config", ".", "Preset", ",", "presubmit", "*", "config", ".", "Presubmit", ")", "{", "if", "presubmit", ".", "Spec", "==", "nil", "{", "return", "\n", "}", "\n", "for", "_", ",", "preset", ":="...
2,987
all-2988
[ "put", "puts", "a", "revision", "to", "the", "keyIndex", "." ]
[ "func", "(", "ki", "*", "keyIndex", ")", "put", "(", "lg", "*", "zap", ".", "Logger", ",", "main", "int64", ",", "sub", "int64", ")", "{", "rev", ":=", "revision", "{", "main", ":", "main", ",", "sub", ":", "<mask>", "}", "\n\n", "if", "!", "re...
2,988
all-2989
[ "GetLocation", "returns", "location", "data" ]
[ "func", "(", "c", "*", "Client", ")", "GetLocation", "(", "locid", "string", ")", "(", "*", "Location", ",", "error", ")", "{", "url", ":=", "locationPath", "(", "locid", ")", "+", "`?depth=`", "+", "c", ".", "client", ".", "depth", "+", "`&pretty=`"...
2,989
all-2990
[ "clone", "will", "be", "protected", "by", "a", "stop", "-", "world", "lock", "do", "not", "need", "to", "obtain", "internal", "lock" ]
[ "func", "(", "eh", "*", "EventHistory", ")", "clone", "(", ")", "*", "EventHistory", "{", "clonedQueue", ":=", "eventQueue", "{", "Capacity", ":", "eh", ".", "Queue", ".", "Capacity", ",", "Events", ":", "make", "(", "[", "]", "*", "Event", ",", "eh"...
2,990
all-2991
[ "GetID", "returns", "the", "ID", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "l", "*", "LogSet", ")", "GetID", "(", ")", "json", ".", "Number", "{", "if", "l", "==", "nil", "||", "l", ".", "ID", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "l", ".", "<mask>", "\n", "}" ]
2,991
all-2992
[ "isTopName", "returns", "true", "if", "n", "is", "a", "top", "-", "level", "unresolved", "identifier", "with", "the", "given", "name", "." ]
[ "func", "isTopName", "(", "n", "ast", ".", "Expr", ",", "name", "string", ")", "bool", "{", "id", ",", "ok", ":=", "n", ".", "(", "*", "ast", ".", "Ident", ")", "\n", "return", "ok", "&&", "<mask>", ".", "Name", "==", "name", "&&", "id", ".", ...
2,992
all-2993
[ "WithURL", "URL", "of", "the", "resources", "to", "set", "breakpoint", "on", "." ]
[ "func", "(", "p", "SetBreakpointByURLParams", ")", "WithURL", "(", "<mask>", "string", ")", "*", "SetBreakpointByURLParams", "{", "p", ".", "URL", "=", "url", "\n", "return", "&", "p", "\n", "}" ]
2,993
all-2994
[ "Or", "succeeds", "if", "any", "of", "the", "given", "matchers", "succeed", ".", "The", "matchers", "are", "tried", "in", "order", "and", "will", "return", "immediately", "upon", "the", "first", "successful", "match", ".", "Expect", "(", "hi", ")", ".", ...
[ "func", "Or", "(", "ms", "...", "types", ".", "GomegaMatcher", ")", "<mask>", ".", "GomegaMatcher", "{", "return", "&", "matchers", ".", "OrMatcher", "{", "Matchers", ":", "ms", "}", "\n", "}" ]
2,994
all-2995
[ "ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "LedgerUpgradeType" ]
[ "func", "(", "e", "LedgerUpgradeType", ")", "ValidEnum", "(", "v", "int32", ")", "bool", "{", "_", ",", "ok", ":=", "ledgerUpgradeTypeMap", "[", "v", "]", "\n", "return", "<mask>", "\n", "}" ]
2,995
all-2996
[ "Get", "implements", "Get", "method", "from", "QuotaService", "interface" ]
[ "func", "(", "s", "*", "QuotaService", ")", "Get", "(", "appName", "string", ")", "(", "*", "quota", ".", "Quota", ",", "error", ")", "{", "return", "s", ".", "<mask>", ".", "Get", "(", "appName", ")", "\n", "}" ]
2,996
all-2997
[ "if", "cookie", "secret", "is", "set", "to", "then", "SetSecureCookie", "would", "not", "work" ]
[ "func", "ContextWithCookieSecret", "(", "secret", "string", ")", "martini", ".", "Handler", "{", "return", "func", "(", "w", "http", ".", "ResponseWriter", ",", "req", "*", "http", ".", "Request", ",", "mc", "martini", ".", "Context", ")", "{", "ctx", ":...
2,997
all-2998
[ "String", "returns", "the", "name", "of", "e" ]
[ "func", "(", "e", "PathPaymentResultCode", ")", "String", "(", ")", "string", "{", "name", ",", "_", ":=", "pathPaymentResultCodeMap", "[", "int32", "(", "e", ")", "]", "\n", "return", "<mask>", "\n", "}" ]
2,998
all-2999
[ "GetFillOk", "returns", "a", "tuple", "with", "the", "Fill", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "h", "*", "HostmapRequests", ")", "GetFillOk", "(", ")", "(", "HostmapRequest", ",", "bool", ")", "{", "if", "h", "==", "nil", "||", "h", ".", "Fill", "==", "nil", "{", "return", "HostmapRequest", "{", "}", ",", "false", "\n", "}", "\n...
2,999
all-3000
[ "Stability", ":", "***", "EXPERIMENTAL", "***", "Publish", "a", "message", "on", "pulse", "with", "the", "given", "routingKey", ".", "Required", "scopes", ":", "notify", ":", "pulse", ":", "<routingKey", ">", "See", "#pulse" ]
[ "func", "(", "notify", "*", "Notify", ")", "Pulse", "(", "payload", "*", "PostPulseMessageRequest", ")", "error", "{", "cd", ":=", "tcclient", ".", "Client", "(", "*", "notify", ")", "\n", "_", ",", "_", ",", "err", ":=", "(", "&", "<mask>", ")", "...