id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
23,800
all-23801
[ "GetIsolationSegmentConfig", "reads", "isolation", "segment", "config" ]
[ "func", "(", "m", "*", "yamlManager", ")", "GetGlobalConfig", "(", ")", "(", "*", "GlobalConfig", ",", "error", ")", "{", "globalConfig", ":=", "&", "GlobalConfig", "{", "}", "\n", "LoadFile", "(", "<mask>", ".", "Join", "(", "m", ".", "ConfigDir", ","...
23,801
all-23802
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "DeleteObjectStoreEntriesParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "<mask>", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoIndexeddb15", ...
23,802
all-23803
[ "Visit", "inserts", "pointer", "v", "into", "the", "visited", "map", "and", "reports", "whether", "it", "had", "already", "been", "visited", "before", "." ]
[ "func", "(", "m", "visitedPointers", ")", "Visit", "(", "v", "reflect", ".", "<mask>", ")", "bool", "{", "p", ":=", "value", ".", "PointerOf", "(", "v", ")", "\n", "_", ",", "visited", ":=", "m", "[", "p", "]", "\n", "m", "[", "p", "]", "=", ...
23,803
all-23804
[ "PutResourcePolicyWithContext", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockSecretsManagerAPI", ")", "PutResourcePolicyWithContext", "(", "arg0", "aws", ".", "<mask>", ",", "arg1", "*", "secretsmanager", ".", "PutResourcePolicyInput", ",", "arg2", "...", "request", ".", "Option", ")", "(", "*", "secretsmanage...
23,804
all-23805
[ "GetGetScpLedgerSeq", "retrieves", "the", "GetScpLedgerSeq", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "StellarMessage", ")", "GetGetScpLedgerSeq", "(", ")", "(", "<mask>", "Uint32", ",", "ok", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "Type", ")", ")", "\n\n", "if", "armName"...
23,805
all-23806
[ "HasText", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "Widget", ")", "HasText", "(", ")", "bool", "{", "if", "w", "!=", "nil", "&&", "w", ".", "<mask>", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
23,806
all-23807
[ "SpinButtonNewWithRange", "()", "is", "a", "wrapper", "around", "gtk_spin_button_new_with_range", "()", "." ]
[ "func", "SpinButtonNewWithRange", "(", "min", ",", "max", ",", "step", "float64", ")", "(", "*", "SpinButton", ",", "error", ")", "{", "c", ":=", "C", ".", "gtk_spin_button_new_with_range", "(", "C", ".", "gdouble", "(", "min", ")", ",", "C", ".", "gdo...
23,807
all-23808
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetAppManifestParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoPage43", "(", "&", "w", ",", "v", ")"...
23,808
all-23809
[ "Select", "returns", "a", "NoopSeriesSet", "if", "the", "given", "matchers", "don", "t", "match", "the", "label", "set", "of", "the", "requiredMatchersQuerier", ".", "Otherwise", "it", "ll", "call", "the", "wrapped", "querier", "." ]
[ "func", "(", "q", "requiredMatchersQuerier", ")", "Select", "(", "p", "*", "storage", ".", "SelectParams", ",", "matchers", "...", "*", "labels", ".", "Matcher", ")", "(", "storage", ".", "SeriesSet", ",", "storage", ".", "Warnings", ",", "error", ")", "...
23,809
all-23810
[ "Symbols", "returns", "a", "list", "of", "symbols", "this", "statement", "loads", "." ]
[ "func", "(", "l", "*", "Load", ")", "Symbols", "(", ")", "[", "]", "string", "{", "syms", ":=", "make", "(", "[", "]", "string", ",", "0", ",", "len", "(", "l", ".", "symbols", ")", ")", "\n", "for", "sym", ":=", "<mask>", "l", ".", "symbols"...
23,810
all-23811
[ "StderrWriter", "sets", "the", "StderrWriter" ]
[ "func", "(", "e", "*", "execStreamerBuilder", ")", "StderrWriter", "(", "writer", "<mask>", ".", "Writer", ")", "ExecStreamerBuilder", "{", "e", ".", "d", ".", "StderrWriter", "=", "writer", "\n", "return", "e", "\n", "}" ]
23,811
all-23812
[ "Resume", "resumes", "a", "paused", "peer", "." ]
[ "func", "(", "p", "*", "<mask>", ")", "Resume", "(", ")", "{", "p", ".", "mu", ".", "Lock", "(", ")", "\n", "defer", "p", ".", "mu", ".", "Unlock", "(", ")", "\n", "p", ".", "paused", "=", "false", "\n", "p", ".", "msgAppReader", ".", "resume...
23,812
all-23813
[ "waitForOp", "waits", "for", "the", "operation", "to", "finish", "." ]
[ "func", "(", "c", "*", "ComputeUtil", ")", "waitForOp", "(", "opGetter", "func", "(", ")", "(", "*", "raw", ".", "<mask>", ",", "error", ")", ")", "error", "{", "for", "{", "op", ",", "err", ":=", "opGetter", "(", ")", "\n", "if", "err", "!=", ...
23,813
all-23814
[ "ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "StellarMessage" ]
[ "func", "(", "u", "StellarMessage", ")", "ArmForSwitch", "(", "sw", "int32", ")", "(", "string", ",", "bool", ")", "{", "switch", "MessageType", "(", "sw", ")", "{", "case", "MessageTypeErrorMsg", ":", "return", "\"", "\"", ",", "true", "\n", "case", "...
23,814
all-23815
[ "Rules", "returns", "the", "list", "of", "the", "manager", "s", "rules", "." ]
[ "func", "(", "m", "*", "Manager", ")", "Rules", "(", ")", "[", "]", "Rule", "{", "m", ".", "mtx", ".", "RLock", "(", ")", "\n", "defer", "m", ".", "mtx", ".", "RUnlock", "(", ")", "\n\n", "var", "<mask>", "[", "]", "Rule", "\n", "for", "_", ...
23,815
all-23816
[ "StoragePoolVolumeGetType", "returns", "a", "single", "storage", "volume", "attached", "to", "a", "given", "storage", "pool", "of", "a", "given", "type", "on", "the", "node", "with", "the", "given", "ID", "." ]
[ "func", "(", "c", "*", "Cluster", ")", "StoragePoolVolumeGetType", "(", "project", "string", ",", "volumeName", "string", ",", "volumeType", "int", ",", "poolID", ",", "nodeID", "int64", ")", "(", "int64", ",", "*", "api", ".", "StorageVolume", ",", "error...
23,816
all-23817
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "SetBreakpointsActiveParams", ")", "UnmarshalJSON", "(", "data", "[", "]", "<mask>", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDebugger9", "(",...
23,817
all-23818
[ "SetWorkers", "count" ]
[ "func", "(", "p", "*", "Whisper", ")", "SetWorkers", "(", "count", "int", ")", "{", "if", "count", ">=", "1", "{", "p", ".", "workersCount", "=", "<mask>", "\n", "}", "else", "{", "p", ".", "workersCount", "=", "1", "\n", "}", "\n", "}" ]
23,818
all-23819
[ "Get", "a", "throttled", "reader", "that", "wraps", "r", "." ]
[ "func", "(", "pool", "*", "ReaderPool", ")", "Get", "(", "r", "<mask>", ".", "Reader", ")", "(", "reader", "io", ".", "Reader", ",", "release", "func", "(", ")", ")", "{", "// don't export a ThrottlerReader to prevent users changing the rate", "// and expecting th...
23,819
all-23820
[ "String", "returns", "the", "name", "of", "e" ]
[ "func", "(", "e", "InflationResultCode", ")", "<mask>", "(", ")", "string", "{", "name", ",", "_", ":=", "inflationResultCodeMap", "[", "int32", "(", "e", ")", "]", "\n", "return", "name", "\n", "}" ]
23,820
all-23821
[ "Return", "a", "new", "instance", "of", "HostsLine", "." ]
[ "func", "NewHostsLine", "(", "raw", "string", ")", "HostsLine", "{", "<mask>", ":=", "strings", ".", "Fields", "(", "raw", ")", "\n", "if", "len", "(", "fields", ")", "==", "0", "{", "return", "HostsLine", "{", "Raw", ":", "raw", "}", "\n", "}", "\...
23,821
all-23822
[ "GetCurrentPoint", "is", "a", "wrapper", "around", "cairo_get_current_point", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "GetCurrentPoint", "(", ")", "(", "x", ",", "y", "float64", ")", "{", "C", ".", "cairo_get_current_point", "(", "v", ".", "native", "(", ")", ",", "(", "*", "C", ".", "double", ")", "(", "&", "x", ")", ",",...
23,822
all-23823
[ "Text", "returns", "v", "s", "string", "value", "interpreted", "as", "a", "text", "string", "(", "defined", "in", "the", "PDF", "spec", ")", "and", "converted", "to", "UTF", "-", "8", ".", "If", "v", ".", "Kind", "()", "!", "=", "String", "Text", "...
[ "func", "(", "v", "Value", ")", "<mask>", "(", ")", "string", "{", "x", ",", "ok", ":=", "v", ".", "data", ".", "(", "string", ")", "\n", "if", "!", "ok", "{", "return", "\"", "\"", "\n", "}", "\n", "if", "isPDFDocEncoded", "(", "x", ")", "{"...
23,823
all-23824
[ "HasTime", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "d", "*", "DistributionDefinition", ")", "HasTime", "(", ")", "bool", "{", "if", "d", "!=", "nil", "&&", "d", ".", "Time", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
23,824
all-23825
[ "Specify", "the", "value", "of", "a", "uniform", "variable", "for", "a", "specified", "program", "object" ]
[ "func", "ProgramUniform3fv", "(", "program", "uint32", ",", "location", "int32", ",", "count", "int32", ",", "value", "*", "float32", ")", "{", "C", ".", "glowProgramUniform3fv", "(", "gpProgramUniform3fv", ",", "(", "C", ".", "GLuint", ")", "(", "program", ...
23,825
all-23826
[ "RemoveKey", "removes", "an", "existing", "key", "from", "keyring" ]
[ "func", "(", "k", "*", "Keyring", ")", "RemoveKey", "(", "<mask>", "ssh", ".", "PublicKey", ")", "error", "{", "return", "k", ".", "Agent", ".", "Remove", "(", "key", ")", "\n", "}" ]
23,826
all-23827
[ "AllocateIDRange", "allocates", "a", "range", "of", "IDs", "with", "specific", "endpoints", ".", "The", "range", "is", "inclusive", "at", "both", "the", "low", "and", "high", "end", ".", "Once", "these", "IDs", "have", "been", "allocated", "you", "can", "m...
[ "func", "AllocateIDRange", "(", "c", "context", ".", "Context", ",", "kind", "string", ",", "parent", "*", "Key", ",", "start", ",", "end", "int64", ")", "(", "err", "error", ")", "{", "if", "kind", "==", "\"", "\"", "{", "return", "errors", ".", "...
23,827
all-23828
[ "NewKVKeysQuery", "parses", "a", "string", "into", "a", "dependency", "." ]
[ "func", "NewKVKeysQuery", "(", "s", "string", ")", "(", "*", "KVKeysQuery", ",", "error", ")", "{", "if", "s", "!=", "\"", "\"", "&&", "!", "KVKeysQueryRe", ".", "MatchString", "(", "s", ")", "{", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\...
23,828
all-23829
[ "DeleteMulti", "deletes", "multiple", "documents", "from", "the", "index", ".", "The", "returned", "error", "may", "be", "an", "instance", "of", "appengine", ".", "MultiError", "in", "which", "case", "it", "will", "be", "the", "same", "size", "as", "srcs", ...
[ "func", "(", "x", "*", "Index", ")", "DeleteMulti", "(", "c", "context", ".", "Context", ",", "ids", "[", "]", "string", ")", "error", "{", "if", "len", "(", "ids", ")", ">", "maxDocumentsPerPutDelete", "{", "return", "ErrTooManyDocuments", "\n", "}", ...
23,829
all-23830
[ "GetFollowRedirects", "returns", "the", "FollowRedirects", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "s", "*", "SyntheticsOptions", ")", "GetFollowRedirects", "(", ")", "bool", "{", "if", "s", "==", "nil", "||", "s", ".", "FollowRedirects", "==", "nil", "{", "return", "<mask>", "\n", "}", "\n", "return", "*", "s", ".", "FollowRedirects", ...
23,830
all-23831
[ "SetText", "is", "a", "wrapper", "around", "gtk_tooltip_set_text", "()", "." ]
[ "func", "(", "t", "*", "Tooltip", ")", "SetText", "(", "str", "string", ")", "{", "cstr", ":=", "C", ".", "CString", "(", "str", ")", "\n", "defer", "C", ".", "<mask>", "(", "unsafe", ".", "Pointer", "(", "cstr", ")", ")", "\n", "C", ".", "gtk_...
23,831
all-23832
[ "Getter", "allows", "the", "user", "to", "set", "the", "method", "by", "which", "a", "nonce", "is", "retrieved", "from", "the", "incoming", "request", "." ]
[ "func", "Getter", "(", "g", "NonceGetter", ")", "Option", "{", "return", "Option", "{", "func", "(", "o", "*", "<mask>", ")", "{", "o", ".", "getter", "=", "g", "\n", "}", "}", "\n", "}" ]
23,832
all-23833
[ "Commit", "commits", "the", "transaction", ".", "If", "Begin", "still", "not", "called", "or", "Commit", "or", "Rollback", "already", "called", "Commit", "returns", "ErrTxDone", "." ]
[ "func", "(", "db", "*", "DB", ")", "Commit", "(", ")", "error", "{", "db", ".", "m", ".", "Lock", "(", ")", "\n", "defer", "db", ".", "m", ".", "Unlock", "(", ")", "\n", "if", "<mask>", ".", "tx", "==", "nil", "{", "return", "ErrTxDone", "\n"...
23,833
all-23834
[ "DecodeHTMLEntities", "decodes", "HTML", "entities", "into", "their", "proper", "string", "representation", ".", "DecodeHTMLEntities", "is", "an", "alias", "for", "html", ".", "UnescapeString" ]
[ "func", "DecodeHTMLEntities", "(", "s", "string", ")", "string", "{", "if", "Verbose", "{", "fmt", ".", "Println", "(", "\"", "\"", ")", "\n", "}", "\n", "return", "<mask>", ".", "UnescapeString", "(", "s", ")", "\n", "}" ]
23,834
all-23835
[ "GetDisplayFormat", "returns", "the", "DisplayFormat", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "w", "*", "Widget", ")", "GetDisplayFormat", "(", ")", "<mask>", "{", "if", "w", "==", "nil", "||", "w", ".", "DisplayFormat", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "w", ".", "DisplayFormat", "\n", "}"...
23,835
all-23836
[ "Warningf", "logs", "a", "message", "using", "WARNING", "as", "log", "level", "." ]
[ "func", "(", "l", "*", "Logger", ")", "Warningf", "(", "format", "string", ",", "args", "...", "<mask>", "{", "}", ")", "{", "l", ".", "log", "(", "WARNING", ",", "&", "format", ",", "args", "...", ")", "\n", "}" ]
23,836
all-23837
[ "SetDebugEnabled", "is", "a", "wrapper", "around", "gdk_gl_context_set_debug_enabled", "()", "." ]
[ "func", "(", "v", "*", "GLContext", ")", "SetDebugEnabled", "(", "enabled", "bool", ")", "{", "C", ".", "gdk_gl_context_set_debug_enabled", "(", "v", ".", "native", "(", ")", ",", "gbool", "(", "<mask>", ")", ")", "\n", "}" ]
23,837
all-23838
[ "Returns", "a", "int", "slice", "+", "true", "if", "valid", "Returns", "nil", "+", "false", "otherwise", "(", "returns", "nil", "+", "false", "if", "one", "of", "the", "values", "is", "not", "a", "valid", "int", ")" ]
[ "func", "(", "t", "Typed", ")", "IntsIf", "(", "key", "string", ")", "(", "[", "]", "int", ",", "bool", ")", "{", "value", ",", "exists", ":=", "t", "[", "key", "]", "\n", "if", "exists", "==", "false", "{", "return", "nil", ",", "false", "\n",...
23,838
all-23839
[ "NewHandler", "creates", "a", "new", "RPC", "handler", "." ]
[ "func", "NewHandler", "(", "db", "*", "reform", ".", "DB", ",", "logger", "<mask>", ".", "Logger", ")", "*", "Handler", "{", "return", "&", "Handler", "{", "db", ":", "db", ",", "logger", ":", "logger", ".", "Add", "(", "\"", "\"", ",", "\"", "\"...
23,839
all-23840
[ "manifestOCI1FromComponents", "builds", "a", "new", "manifestOCI1", "from", "the", "supplied", "data", ":" ]
[ "func", "manifestOCI1FromComponents", "(", "config", "imgspecv1", ".", "Descriptor", ",", "src", "<mask>", ".", "ImageSource", ",", "configBlob", "[", "]", "byte", ",", "layers", "[", "]", "imgspecv1", ".", "Descriptor", ")", "genericManifest", "{", "return", ...
23,840
all-23841
[ "TransactionByHash", "returns", "the", "transaction", "with", "the", "given", "hash", "." ]
[ "func", "(", "b", "*", "backendInstance", ")", "GetTransactionByHash", "(", "ctx", "context", ".", "<mask>", ",", "hash", "common", ".", "Hash", ")", "(", "*", "types", ".", "Transaction", ",", "bool", ",", "error", ")", "{", "ctx2", ",", "cancel", ":=...
23,841
all-23842
[ "HandleFunc", "adds", "the", "route", "pattern", "that", "matches", "any", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "." ]
[ "func", "(", "mx", "*", "Mux", ")", "HandleFunc", "(", "pattern", "string", ",", "handlerFn", "http", ".", "HandlerFunc", ")", "{", "mx", ".", "handle", "(", "mALL", ",", "<mask>", ",", "handlerFn", ")", "\n", "}" ]
23,842
all-23843
[ "HaveSuffix", "succeeds", "if", "actual", "is", "a", "string", "or", "stringer", "that", "contains", "the", "passed", "-", "in", "string", "as", "a", "suffix", ".", "Optional", "arguments", "can", "be", "provided", "to", "construct", "via", "fmt", ".", "Sp...
[ "func", "HaveSuffix", "(", "suffix", "string", ",", "args", "...", "<mask>", "{", "}", ")", "types", ".", "GomegaMatcher", "{", "return", "&", "matchers", ".", "HaveSuffixMatcher", "{", "Suffix", ":", "suffix", ",", "Args", ":", "args", ",", "}", "\n", ...
23,843
all-23844
[ "allBoshReleaseNames", "returns", "a", "union", "of", "unique", "BOSH", "release", "names", "across", "all", "contained", "BOSH", "releases", "." ]
[ "func", "(", "d", "pivnetReleaseDiffer", ")", "allBoshReleaseNames", "(", ")", "[", "]", "string", "{", "boshReleaseNamesMap", ":=", "<mask>", "(", "map", "[", "string", "]", "string", ")", "\n", "var", "addReleaseNames", "=", "func", "(", "br", "map", "["...
23,844
all-23845
[ "Post", "delivers", "a", "metrics", "snapshot", "to", "datadog" ]
[ "func", "(", "c", "*", "Client", ")", "Post", "(", "metrics", "[", "]", "Metric", ")", "error", "{", "series", ":=", "struct", "{", "Series", "[", "]", "Metric", "`json:\"series,omitempty\"`", "\n", "}", "{", "Series", ":", "metrics", "}", "\n\n", "buf...
23,845
all-23846
[ "AddAgentUpdateHandlers", "adds", "the", "needed", "update", "handlers", "to", "perform", "agent", "updates" ]
[ "func", "AddAgentUpdateHandlers", "(", "cs", "wsclient", ".", "ClientServer", ",", "cfg", "*", "config", ".", "Config", ",", "saver", "statemanager", ".", "Saver", ",", "taskEngine", "<mask>", ".", "TaskEngine", ")", "{", "singleUpdater", ":=", "&", "updater",...
23,846
all-23847
[ "Read", "reads", "val", "from", "r", "." ]
[ "func", "(", "r", "*", "readWriter", ")", "Read", "(", "val", "proto", ".", "<mask>", ")", "error", "{", "buf", ",", "err", ":=", "r", ".", "ReadBytes", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "return", ...
23,847
all-23848
[ "Log", "implements", "the", "Log", "method", "required", "by", "Backend", "." ]
[ "func", "(", "b", "*", "ChannelMemoryBackend", ")", "<mask>", "(", "level", "Level", ",", "calldepth", "int", ",", "rec", "*", "Record", ")", "error", "{", "b", ".", "incoming", "<-", "rec", "\n", "return", "nil", "\n", "}" ]
23,848
all-23849
[ "GetTime", "returns", "a", "time", "struct", "value", "for", "a", "specific", "column", "." ]
[ "func", "(", "r", "Record", ")", "GetTime", "(", "column", "string", ")", "(", "time", ".", "Time", ",", "error", ")", "{", "v", ",", "err", ":=", "r", ".", "getKey", "(", "reflect", ".", "Float64", ",", "column", ")", "\n", "if", "err", "!=", ...
23,849
all-23850
[ "ReceiveSnapshot", "receives", "a", "ZFS", "stream", "from", "the", "input", "io", ".", "Reader", "creates", "a", "new", "snapshot", "with", "the", "specified", "name", "and", "streams", "the", "input", "data", "into", "the", "newly", "-", "created", "snapsh...
[ "func", "ReceiveSnapshot", "(", "input", "<mask>", ".", "Reader", ",", "name", "string", ")", "(", "*", "Dataset", ",", "error", ")", "{", "c", ":=", "command", "{", "Command", ":", "\"", "\"", ",", "Stdin", ":", "input", "}", "\n", "_", ",", "err"...
23,850
all-23851
[ "New", "creates", "a", "new", "session", "with", "the", "same", "parameters", "as", "the", "original", "session", "including", "consistency", "batch", "size", "prefetching", "safety", "mode", "etc", ".", "The", "returned", "session", "will", "use", "sockets", ...
[ "func", "(", "s", "*", "Session", ")", "New", "(", ")", "*", "<mask>", "{", "s", ".", "m", ".", "Lock", "(", ")", "\n", "scopy", ":=", "copySession", "(", "s", ",", "false", ")", "\n", "s", ".", "m", ".", "Unlock", "(", ")", "\n", "scopy", ...
23,851
all-23852
[ "/", "*", "Routine", "which", "helps", "to", "deserialize", ".", "used", "in", "AttrList", "Deserialize", "()" ]
[ "func", "DeserializeSerDes", "(", "serdesType", "string", ",", "list", "[", "]", "byte", ")", "(", "SerDes", ",", "error", ")", "{", "switch", "serdesType", "{", "case", "\"", "\"", ":", "attr", ":=", "new", "(", "U8Type", ")", "\n", "err", ":=", "at...
23,852
all-23853
[ "All", "tests", "whether", "or", "not", "all", "items", "present", "in", "an", "Enumerable", "meet", "a", "criteria", "." ]
[ "func", "All", "(", "subject", "Enumerable", ",", "p", "Predicate", ")", "bool", "{", "done", ":=", "make", "(", "chan", "struct", "{", "}", ")", "\n", "defer", "close", "(", "<mask>", ")", "\n\n", "return", "subject", ".", "Enumerate", "(", "done", ...
23,853
all-23854
[ "FramesToFrameRange", "takes", "a", "slice", "of", "frame", "numbers", "and", "compresses", "them", "into", "a", "frame", "range", "string", ".", "If", "sorted", "==", "true", "pre", "-", "sort", "the", "frames", "instead", "of", "respecting", "their", "curr...
[ "func", "FramesToFrameRange", "(", "frames", "[", "]", "int", ",", "sorted", "bool", ",", "zfill", "int", ")", "string", "{", "count", ":=", "len", "(", "frames", ")", "\n", "if", "count", "==", "0", "{", "return", "\"", "\"", "\n", "}", "\n\n", "i...
23,854
all-23855
[ "void", "gtk_application_add_accelerator", "()", "//", "deprecated", "and", "uses", "a", "gvariant", "paramater", "void", "gtk_application_remove_accelerator", "()", "//", "deprecated", "and", "uses", "a", "gvariant", "paramater", "GetWindows", "is", "a", "wrapper", "...
[ "func", "(", "v", "*", "<mask>", ")", "GetWindows", "(", ")", "*", "glib", ".", "List", "{", "glist", ":=", "C", ".", "gtk_application_get_windows", "(", "v", ".", "native", "(", ")", ")", "\n", "list", ":=", "glib", ".", "WrapList", "(", "uintptr", ...
23,855
all-23856
[ "caller", "returns", "the", "name", "of", "the", "function", "that", "called", "the", "function", "this", "function", "was", "called", "from", "." ]
[ "func", "caller", "(", ")", "string", "{", "name", ":=", "\"", "\"", "\n", "if", "pc", ",", "_", ",", "_", ",", "ok", ":=", "runtime", ".", "Caller", "(", "1", ")", ";", "ok", "{", "name", "=", "filepath", ".", "Base", "(", "runtime", ".", "F...
23,856
all-23857
[ "async", "janitor", "goroutine" ]
[ "func", "janitor", "(", "c", "boskosClient", ",", "buffer", "<-", "chan", "*", "common", ".", "Resource", ",", "fn", "clean", ",", "flags", "[", "]", "string", ")", "{", "for", "{", "resource", ":=", "<-", "buffer", "\n\n", "dest", ":=", "common", "....
23,857
all-23858
[ "ClearObjectStore", "clears", "all", "entries", "from", "an", "object", "store", ".", "See", ":", "https", ":", "//", "chromedevtools", ".", "github", ".", "io", "/", "devtools", "-", "protocol", "/", "tot", "/", "IndexedDB#method", "-", "clearObjectStore", ...
[ "func", "ClearObjectStore", "(", "securityOrigin", "string", ",", "databaseName", "<mask>", ",", "objectStoreName", "string", ")", "*", "ClearObjectStoreParams", "{", "return", "&", "ClearObjectStoreParams", "{", "SecurityOrigin", ":", "securityOrigin", ",", "DatabaseNa...
23,858
all-23859
[ "FormatSimpleResponse", "formats", "a", "response", "that", "does", "not", "warrant", "additional", "explanation", "in", "the", "details", "section", "." ]
[ "func", "FormatSimpleResponse", "(", "to", ",", "message", "string", ")", "string", "{", "format", ":=", "`@%s: %s\n\n<details>\n\n%s\n</details>`", "\n\n", "return", "fmt", ".", "Sprintf", "(", "<mask>", ",", "to", ",", "message", ",", "AboutThisBotWithoutCommands"...
23,859
all-23860
[ "CreateGroup", "creates", "a", "group" ]
[ "func", "(", "c", "*", "Client", ")", "CreateGroup", "(", "grp", "Group", ")", "(", "*", "Group", ",", "error", ")", "{", "url", ":=", "umGroups", "(", ")", "+", "`?depth=`", "+", "c", ".", "client", ".", "depth", "+", "`&pretty=`", "+", "strconv",...
23,860
all-23861
[ "GetRequest", "gets", "a", "specific", "request" ]
[ "func", "(", "c", "*", "Client", ")", "GetRequest", "(", "reqID", "string", ")", "(", "*", "Request", ",", "error", ")", "{", "url", ":=", "\"", "\"", "+", "reqID", "+", "`?depth=`", "+", "c", ".", "client", ".", "depth", "+", "`&pretty=`", "+", ...
23,861
all-23862
[ "TwoContig", "returns", "all", "readable", "pointers", "but", "in", "two", "separate", "slices", "to", "avoid", "copying", ".", "The", "two", "slices", "are", "from", "the", "same", "buffer", "but", "are", "not", "contiguous", ".", "Either", "or", "both", ...
[ "func", "(", "b", "*", "PointerRingBuf", ")", "TwoContig", "(", ")", "(", "first", "[", "]", "<mask>", "{", "}", ",", "second", "[", "]", "interface", "{", "}", ")", "{", "extent", ":=", "b", ".", "Beg", "+", "b", ".", "Readable", "\n", "if", "...
23,862
all-23863
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "BeginFrameReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoHeadlessexperimental4", "(", "&", "w", ",", ...
23,863
all-23864
[ "MethodNotAllowed", "sets", "a", "custom", "http", ".", "HandlerFunc", "for", "routing", "paths", "where", "the", "method", "is", "unresolved", ".", "The", "default", "handler", "returns", "a", "405", "with", "an", "empty", "body", "." ]
[ "func", "(", "mx", "*", "Mux", ")", "MethodNotAllowed", "(", "handlerFn", "http", ".", "HandlerFunc", ")", "{", "// Build MethodNotAllowed handler chain", "m", ":=", "mx", "\n", "hFn", ":=", "handlerFn", "\n", "if", "mx", ".", "inline", "&&", "mx", ".", "p...
23,864
all-23865
[ "HasYaxis", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "h", "*", "HeatmapDefinition", ")", "HasYaxis", "(", ")", "bool", "{", "if", "h", "!=", "nil", "&&", "h", ".", "Yaxis", "!=", "nil", "{", "return", "true", "\n", "}", "\n\n", "return", "<mask>", "\n", "}" ]
23,865
all-23866
[ "Request", "makes", "a", "HTTP", "request", "based", "on", "Client", "configuration", "and", "arguments", "provided", "." ]
[ "func", "(", "c", "Client", ")", "Request", "(", "method", ",", "path", "string", ",", "query", "url", ".", "Values", ",", "body", "io", ".", "Reader", ",", "accept", "[", "]", "string", ")", "(", "resp", "*", "http", ".", "Response", ",", "err", ...
23,866
all-23867
[ "demuxExternal", "dispatches", "the", "provided", "payload", "to", "the", "external", "plugins", "." ]
[ "func", "(", "s", "*", "Server", ")", "demuxExternal", "(", "l", "*", "logrus", ".", "Entry", ",", "externalPlugins", "[", "]", "plugins", ".", "ExternalPlugin", ",", "payload", "[", "]", "byte", ",", "h", "http", ".", "Header", ")", "{", "h", ".", ...
23,867
all-23868
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "StartObservingParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoBackgroundservice1", "(", "&", "w", ","...
23,868
all-23869
[ "GetTrackVisitedLinks", "is", "a", "wrapper", "around", "gtk_label_get_track_visited_links", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "GetTrackVisitedLinks", "(", ")", "bool", "{", "c", ":=", "C", ".", "gtk_label_get_track_visited_links", "(", "v", ".", "native", "(", ")", ")", "\n", "return", "gobool", "(", "c", ")", "\n", "}" ]
23,869
all-23870
[ "PCMScaleF32", "converts", "a", "buffer", "with", "audio", "content", "from", "-", "1", "to", "1", "(", "float32", ")", "into", "the", "PCM", "scale", "based", "on", "the", "passed", "bitdepth", ".", "Note", "that", "while", "the", "PCM", "data", "is", ...
[ "func", "PCMScaleF32", "(", "buf", "*", "<mask>", ".", "Float32Buffer", ",", "bitDepth", "int", ")", "error", "{", "if", "buf", "==", "nil", "||", "buf", ".", "Format", "==", "nil", "{", "return", "audio", ".", "ErrInvalidBuffer", "\n", "}", "\n", "buf...
23,870
all-23871
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetOuterHTMLReturns", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom36", "(", "&", "w", ",", "v", ")", ...
23,871
all-23872
[ "Identify", "action", "resource", "if", "any", "Return", "error", "if", "no", "resource", "could", "be", "identified", "This", "is", "a", "subtle", "algorithm", "...", "We", "want", "to", "be", "able", "to", ":", "*", "Match", "a", "resource", "action", ...
[ "func", "(", "a", "*", "API", ")", "parseResource", "(", "cmd", ",", "hrefPrefix", "string", ",", "commandValues", "ActionCommands", ")", "(", "*", "metadata", ".", "Resource", ",", "[", "]", "*", "metadata", ".", "PathVariable", ",", "error", ")", "{", ...
23,872
all-23873
[ "GetValue", "()", "is", "a", "wrapper", "around", "gtk_tree_model_get_value", "()", "." ]
[ "func", "(", "v", "*", "TreeModel", ")", "GetValue", "(", "iter", "*", "TreeIter", ",", "column", "int", ")", "(", "*", "glib", ".", "<mask>", ",", "error", ")", "{", "val", ",", "err", ":=", "glib", ".", "ValueAlloc", "(", ")", "\n", "if", "err"...
23,873
all-23874
[ "SetOrientation", "()", "is", "a", "wrapper", "around", "gtk_page_setup_set_orientation", "()", "." ]
[ "func", "(", "ps", "*", "PageSetup", ")", "SetOrientation", "(", "orientation", "PageOrientation", ")", "{", "C", ".", "gtk_page_setup_set_orientation", "(", "<mask>", ".", "native", "(", ")", ",", "C", ".", "GtkPageOrientation", "(", "orientation", ")", ")", ...
23,874
all-23875
[ "Run", "starts", "the", "specified", "command", "and", "waits", "for", "it", "to", "complete", ".", "The", "returned", "error", "is", "nil", "if", "the", "command", "runs", "has", "no", "problems", "copying", "stdin", "stdout", "and", "stderr", "and", "exi...
[ "func", "(", "c", "*", "Cmd", ")", "Run", "(", ")", "error", "{", "if", "err", ":=", "c", ".", "Start", "(", ")", ";", "err", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n", "return", "c", ".", "Wait", "(", ")", "\n", "}" ]
23,875
all-23876
[ "GossipBroadcast", "implements", "Gossip", "relaying", "update", "to", "all", "members", "of", "the", "channel", "." ]
[ "func", "(", "c", "*", "gossipChannel", ")", "GossipBroadcast", "(", "update", "GossipData", ")", "{", "c", ".", "relayBroadcast", "(", "c", ".", "ourself", ".", "<mask>", ",", "update", ")", "\n", "}" ]
23,876
all-23877
[ "Returns", "a", "map", "[", "string", "]", "interface", "{}", "at", "the", "key", "or", "a", "nil", "map", "if", "the", "key", "doesn", "t", "exist", "or", "if", "the", "key", "isn", "t", "a", "map", "[", "string", "]", "interface" ]
[ "func", "(", "t", "Typed", ")", "<mask>", "(", "key", "string", ")", "map", "[", "string", "]", "interface", "{", "}", "{", "return", "t", ".", "MapOr", "(", "key", ",", "nil", ")", "\n", "}" ]
23,877
all-23878
[ "ParseFile", "creates", "a", "new", "Config", "and", "parses", "the", "file", "configuration", "from", "the", "named", "file", "." ]
[ "func", "ParseFile", "(", "name", "string", ")", "(", "*", "Config", ",", "error", ")", "{", "file", ",", "err", ":=", "os", ".", "Open", "(", "name", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "\n\n", "cf...
23,878
all-23879
[ "getContext", "is", "a", "modified", "copy", "of", "k8s", ".", "io", "/", "kubernetes", "/", "pkg", "/", "client", "/", "unversioned", "/", "clientcmd", ".", "DirectClientConfig", ".", "getContext", "." ]
[ "func", "(", "config", "*", "directClientConfig", ")", "getContext", "(", ")", "clientcmdContext", "{", "contexts", ":=", "config", ".", "config", ".", "Contexts", "\n", "contextName", ":=", "config", ".", "getContextName", "(", ")", "\n\n", "<mask>", "mergedC...
23,879
all-23880
[ "SetReplyToMessageID", "sets", "the", "ID", "for", "the", "message", "to", "reply", "to", "(", "optional", ")", "." ]
[ "func", "(", "op", "*", "outgoingMessageBase", ")", "SetReplyToMessageID", "(", "to", "int", ")", "{", "op", ".", "ReplyToMessageID", "=", "to", "\n", "op", ".", "replyToMessageIDSet", "=", "<mask>", "\n", "}" ]
23,880
all-23881
[ "GetTitleAlign", "returns", "the", "TitleAlign", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "c", "*", "ChangeDefinition", ")", "GetTitleAlign", "(", ")", "<mask>", "{", "if", "c", "==", "nil", "||", "c", ".", "TitleAlign", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "c", ".", "TitleAlign", "\n", "}...
23,881
all-23882
[ "RotatePieceLeft", "tries", "to", "rotate", "the", "piece", "to", "the", "left", "and", "returns", "the", "piece", "s", "next", "angle", "." ]
[ "func", "(", "f", "*", "<mask>", ")", "RotatePieceLeft", "(", "piece", "*", "Piece", ",", "x", ",", "y", "int", ",", "angle", "Angle", ")", "Angle", "{", "if", "piece", ".", "collides", "(", "f", ",", "x", ",", "y", ",", "angle", ".", "RotateLeft...
23,882
all-23883
[ "determine", "if", "a", "name", "corresponds", "to", "a", "program", "pipeline", "object" ]
[ "func", "IsProgramPipeline", "(", "pipeline", "uint32", ")", "bool", "{", "<mask>", ",", "_", ",", "_", ":=", "syscall", ".", "Syscall", "(", "gpIsProgramPipeline", ",", "1", ",", "uintptr", "(", "pipeline", ")", ",", "0", ",", "0", ")", "\n", "return"...
23,883
all-23884
[ "Post", "registers", "handlers", "with", "the", "given", "pattern", "for", "POST", "method" ]
[ "func", "(", "r", "*", "<mask>", ")", "Post", "(", "pat", "string", ",", "f", "...", "HandlerFunc", ")", "{", "r", ".", "HandleMethod", "(", "pat", ",", "\"", "\"", ",", "f", "...", ")", "\n", "}" ]
23,884
all-23885
[ "nodeToMap", "translates", "the", "contents", "of", "a", "node", "into", "a", "map", "nodeToMap", "can", "be", "called", "on", "the", "same", "map", "with", "successive", "results", "from", "watch", "to", "accumulate", "a", "value", "nodeToMap", "returns", "...
[ "func", "nodeToMap", "(", "node", "*", "etcd", ".", "Node", ",", "out", "map", "[", "string", "]", "string", ")", "bool", "{", "key", ":=", "strings", ".", "TrimPrefix", "(", "node", ".", "Key", ",", "\"", "\"", ")", "\n", "if", "!", "node", ".",...
23,885
all-23886
[ "Used", "to", "get", "a", "name", "of", "interface", "." ]
[ "func", "getIfaceLink", "(", "idx", "uint32", ")", "(", "*", "syscall", ".", "NetlinkMessage", ",", "error", ")", "{", "dat", ",", "err", ":=", "syscall", ".", "NetlinkRIB", "(", "syscall", ".", "RTM_GETLINK", ",", "syscall", ".", "AF_UNSPEC", ")", "\n",...
23,886
all-23887
[ "parseData", "is", "used", "to", "update", "brain", "from", "a", "KV", "data", "pair" ]
[ "func", "(", "d", "*", "DedupManager", ")", "parseData", "(", "path", "string", ",", "raw", "[", "]", "byte", ")", "{", "// Setup the decompression and decoders", "r", ":=", "bytes", ".", "NewReader", "(", "raw", ")", "\n", "decompress", ":=", "lzw", ".", ...
23,887
all-23888
[ "Unregister", "remove", "from", "the", "registry", "the", "instrument", "matching", "the", "given", "name", "/", "tags" ]
[ "func", "(", "r", "*", "Registry", ")", "Unregister", "(", "name", "string", ",", "tags", "[", "]", "string", ")", "{", "key", ":=", "MetricID", "(", "name", ",", "tags", ")", "\n", "r", ".", "mutex", ".", "Lock", "(", ")", "\n", "delete", "(", ...
23,888
all-23889
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "GetOuterHTMLParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "<mask>", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoDom37", "(", "&", "w", ",", "v", ")",...
23,889
all-23890
[ "Reset", "an", "auto", "-", "generated", "source", "file", "writing", "a", "new", "empty", "file", "header", "." ]
[ "func", "Reset", "(", "path", "string", ",", "imports", "[", "]", "string", ")", "error", "{", "content", ":=", "fmt", ".", "Sprintf", "(", "`package %s\n\n// The code below was generated by %s - DO NOT EDIT!\n\nimport (\n`", ",", "os", ".", "Getenv", "(", "\"", "...
23,890
all-23891
[ "NewRedisCounter", "returns", "a", "new", "redis", "-", "based", "counter" ]
[ "func", "NewRedisCounter", "(", "client", "*", "redis", ".", "<mask>", ",", "key", "string", ",", "bucketSize", ",", "retention", "time", ".", "Duration", ")", "Counter", "{", "return", "&", "redisCounter", "{", "client", ":", "client", ",", "key", ":", ...
23,891
all-23892
[ "GetProcessQueryOk", "returns", "a", "tuple", "with", "the", "ProcessQuery", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "c", "*", "ChangeRequest", ")", "GetProcessQueryOk", "(", ")", "(", "WidgetProcessQuery", ",", "bool", ")", "{", "if", "c", "==", "nil", "||", "c", ".", "ProcessQuery", "==", "nil", "{", "return", "WidgetProcessQuery", "{", "}", ",", "<mask>...
23,892
all-23893
[ "parseXML", "extracts", "a", "gcsDir", "object", "from", "XML", ".", "If", "this", "returns", "a", "nil", "gcsDir", "the", "XML", "indicated", "that", "this", "was", "not", "a", "directory", "at", "all", "." ]
[ "func", "parseXML", "(", "body", "[", "]", "byte", ",", "object", "string", ")", "(", "*", "gcsDir", ",", "error", ")", "{", "dir", ":=", "new", "(", "gcsDir", ")", "\n", "if", "err", ":=", "xml", ".", "Unmarshal", "(", "body", ",", "&", "dir", ...
23,893
all-23894
[ "Function", "decorator", "to", "monitor", "the", "execution", "of", "an", "anonymous", "function", "returns", "an", "array", "of", "the", "returned", "Values" ]
[ "func", "(", "m", "*", "Monitor", ")", "MonitorFunc", "(", "section", "string", ",", "myfunc", "interface", "{", "}", ")", "[", "]", "reflect", ".", "Value", "{", "return", "m", ".", "MonitorReflectedFunc", "(", "section", ",", "reflect", ".", "ValueOf",...
23,894
all-23895
[ "Returns", "a", "signed", "URL", "for", "AzureTables", "valid", "for", "the", "specified", "duration", ".", "Required", "scopes", ":", "auth", ":", "azure", "-", "table", ":", "list", "-", "tables", ":", "<account", ">", "See", "AzureTables", "for", "more"...
[ "func", "(", "auth", "*", "Auth", ")", "AzureTables_SignedURL", "(", "account", ",", "continuationToken", "string", ",", "duration", "time", ".", "Duration", ")", "(", "*", "url", ".", "URL", ",", "error", ")", "{", "v", ":=", "<mask>", ".", "Values", ...
23,895
all-23896
[ "AsyncClose", "implements", "PartitionConsumer" ]
[ "func", "(", "c", "*", "partitionConsumer", ")", "AsyncClose", "(", ")", "{", "c", ".", "closeOnce", ".", "Do", "(", "func", "(", ")", "{", "c", ".", "closeErr", "=", "c", ".", "PartitionConsumer", ".", "Close", "(", ")", "\n", "<mask>", "(", "c", ...
23,896
all-23897
[ "timeoutFlush", "calls", "Flush", "and", "returns", "when", "it", "completes", "or", "after", "timeout", "elapses", "whichever", "happens", "first", ".", "This", "is", "needed", "because", "the", "hooks", "invoked", "by", "Flush", "may", "deadlock", "when", "g...
[ "func", "timeoutFlush", "(", "l", "*", "Log", ",", "timeout", "time", ".", "Duration", ")", "{", "done", ":=", "make", "(", "chan", "bool", ",", "1", ")", "\n", "<mask>", "func", "(", ")", "{", "l", ".", "lockAndFlushAll", "(", ")", "\n", "done", ...
23,897
all-23898
[ "Rl10Locator", "builds", "a", "locator", "from", "the", "given", "href", "." ]
[ "func", "(", "api", "*", "API", ")", "Rl10Locator", "(", "href", "<mask>", ")", "*", "Rl10Locator", "{", "return", "&", "Rl10Locator", "{", "Href", "(", "href", ")", ",", "api", "}", "\n", "}" ]
23,898
all-23899
[ "SetKnownStatus", "sets", "the", "known", "status", "of", "the", "task" ]
[ "func", "(", "task", "*", "Task", ")", "SetKnownStatus", "(", "status", "apitaskstatus", ".", "TaskStatus", ")", "{", "<mask>", ".", "setKnownStatus", "(", "status", ")", "\n", "task", ".", "updateKnownStatusTime", "(", ")", "\n", "}" ]
23,899
all-23900
[ "InitialState", "returns", "the", "initial", "state", "of", "the", "LedgerEntry", "identified", "by", "key", "just", "prior", "to", "the", "application", "of", "the", "transaction", "the", "produced", "b", ".", "Returns", "nil", "if", "the", "ledger", "entry",...
[ "func", "(", "b", "*", "Bundle", ")", "InitialState", "(", "key", "xdr", ".", "LedgerKey", ")", "(", "*", "xdr", ".", "LedgerEntry", ",", "error", ")", "{", "all", ":=", "b", ".", "Changes", "(", "key", ")", "\n\n", "if", "len", "(", "all", ")", ...