id
int32
0
25.3k
idx
stringlengths
5
9
nl_tokens
listlengths
1
418
pl_tokens
listlengths
22
4.98k
1,900
all-1901
[ "TaskContainerMetadataHandler", "creates", "response", "for", "the", "v1", "/", "tasks", "API", ".", "Lists", "all", "tasks", "if", "the", "request", "doesn", "t", "contain", "any", "fields", ".", "Returns", "a", "Task", "if", "either", "of", "dockerid", "or...
[ "func", "TaskContainerMetadataHandler", "(", "taskEngine", "utils", ".", "DockerStateResolver", ")", "func", "(", "http", ".", "ResponseWriter", ",", "*", "http", ".", "Request", ")", "{", "return", "func", "(", "w", "http", ".", "ResponseWriter", ",", "r", ...
1,901
all-1902
[ "recoverAndclean", "function", "help", "to", "do", "recovery", ".", "Two", "things", "need", "to", "be", "done", ":", "1", ".", "recovery", "structure", ";", "2", ".", "delete", "expired", "nodes", "If", "the", "node", "is", "a", "directory", "it", "will...
[ "func", "(", "n", "*", "node", ")", "recoverAndclean", "(", ")", "{", "if", "n", ".", "IsDir", "(", ")", "{", "for", "_", ",", "child", ":=", "range", "n", ".", "Children", "{", "<mask>", ".", "Parent", "=", "n", "\n", "child", ".", "store", "=...
1,902
all-1903
[ "TODO", ":", "fix", "index", "creation", "indexes", "are", "not", "created", "properly" ]
[ "func", "(", "rs", "RethinkStore", ")", "CreateTable", "(", "store", "string", ",", "schema", "interface", "{", "}", ")", "(", "err", "error", ")", "{", "logger", ".", "Info", "(", "\"", "\"", "+", "<mask>", ")", "\n", "var", "res", "[", "]", "inte...
1,903
all-1904
[ "WithBody", "a", "response", "body", "." ]
[ "func", "(", "p", "FulfillRequestParams", ")", "WithBody", "(", "<mask>", "string", ")", "*", "FulfillRequestParams", "{", "p", ".", "Body", "=", "body", "\n", "return", "&", "p", "\n", "}" ]
1,904
all-1905
[ "removeLegacyGazelle", "removes", "loads", "of", "the", "gazelle", "macro", "from" ]
[ "func", "removeLegacyGazelle", "(", "c", "*", "config", ".", "Config", ",", "f", "*", "rule", ".", "<mask>", ")", "{", "for", "_", ",", "l", ":=", "range", "f", ".", "Loads", "{", "if", "l", ".", "Name", "(", ")", "==", "\"", "\"", "&&", "l", ...
1,905
all-1906
[ "Stability", ":", "***", "EXPERIMENTAL", "***", "Given", "an", "OIDC", "access_token", "from", "a", "trusted", "OpenID", "provider", "return", "a", "set", "of", "Taskcluster", "credentials", "for", "use", "on", "behalf", "of", "the", "identified", "user", ".",...
[ "func", "(", "login", "*", "Login", ")", "OidcCredentials", "(", "provider", "string", ")", "(", "*", "CredentialsResponse", ",", "error", ")", "{", "cd", ":=", "tcclient", ".", "<mask>", "(", "*", "login", ")", "\n", "responseObject", ",", "_", ",", "...
1,906
all-1907
[ "GetTickEdgeOk", "returns", "a", "tuple", "with", "the", "TickEdge", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "w", "*", "Widget", ")", "GetTickEdgeOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "w", "==", "nil", "||", "w", ".", "TickEdge", "==", "nil", "{", "return", "\"", "\"", ",", "<mask>", "\n", "}", "\n", "return", "*", "w...
1,907
all-1908
[ "/", "*", "Record", "the", "current", "amount", "of", "memory", "being", "used", "." ]
[ "func", "RecordMemoryUsage", "(", "memMB", "float64", ")", "(", "int", ",", "error", ")", "{", "<mask>", "errNo", "(", "C", ".", "newrelic_record_memory_usage", "(", "C", ".", "double", "(", "memMB", ")", ")", ")", "\n", "}" ]
1,908
all-1909
[ "WithPrefix", "enables", "Get", "Delete", "or", "Watch", "requests", "to", "operate", "on", "the", "keys", "with", "matching", "prefix", ".", "For", "example", "Get", "(", "foo", "WithPrefix", "()", ")", "can", "return", "foo1", "foo2", "and", "so", "on", ...
[ "func", "WithPrefix", "(", ")", "OpOption", "{", "return", "func", "(", "op", "*", "Op", ")", "{", "if", "len", "(", "op", ".", "key", ")", "==", "0", "{", "op", ".", "key", ",", "op", ".", "end", "=", "[", "]", "byte", "{", "0", "}", ",", ...
1,909
all-1910
[ "newImageDestination", "returns", "a", "types", ".", "ImageDestination", "for", "the", "specified", "image", "reference", "." ]
[ "func", "newImageDestination", "(", "ctx", "context", ".", "<mask>", ",", "sys", "*", "types", ".", "SystemContext", ",", "ref", "daemonReference", ")", "(", "types", ".", "ImageDestination", ",", "error", ")", "{", "if", "ref", ".", "ref", "==", "nil", ...
1,910
all-1911
[ "SetInputHints", "()", "is", "a", "wrapper", "around", "gtk_entry_set_input_hints", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "SetInputHints", "(", "hints", "InputHints", ")", "{", "C", ".", "gtk_entry_set_input_hints", "(", "v", ".", "native", "(", ")", ",", "C", ".", "GtkInputHints", "(", "hints", ")", ")", "\n", "}" ]
1,911
all-1912
[ "NewBackendQuota", "creates", "a", "quota", "layer", "with", "the", "given", "storage", "limit", "." ]
[ "func", "NewBackendQuota", "(", "s", "*", "EtcdServer", ",", "name", "string", ")", "Quota", "{", "lg", ":=", "s", ".", "getLogger", "(", ")", "\n", "quotaBackendBytes", ".", "Set", "(", "float64", "(", "s", ".", "Cfg", ".", "QuotaBackendBytes", ")", "...
1,912
all-1913
[ "Render", "the", "provided", "Data", "to", "the", "provider", "Writer", "using", "the", "RendererFunc", "provide", "." ]
[ "func", "(", "s", "funcRenderer", ")", "Render", "(", "w", "io", ".", "Writer", ",", "data", "Data", ")", "error", "{", "return", "s", ".", "renderFunc", "(", "w", ",", "<mask>", ")", "\n", "}" ]
1,913
all-1914
[ "CloseResultsetID", "releases", "the", "hdb", "resultset", "handle", "." ]
[ "func", "(", "s", "*", "<mask>", ")", "CloseResultsetID", "(", "id", "uint64", ")", "error", "{", "s", ".", "mu", ".", "Lock", "(", ")", "\n", "defer", "s", ".", "mu", ".", "Unlock", "(", ")", "\n\n", "s", ".", "resultsetID", ".", "id", "=", "&...
1,914
all-1915
[ "GetProgressFraction", "()", "is", "a", "wrapper", "around", "gtk_entry_get_progress_fraction", "()", "." ]
[ "func", "(", "v", "*", "<mask>", ")", "GetProgressFraction", "(", ")", "float64", "{", "c", ":=", "C", ".", "gtk_entry_get_progress_fraction", "(", "v", ".", "native", "(", ")", ")", "\n", "return", "float64", "(", "c", ")", "\n", "}" ]
1,915
all-1916
[ "NewDefragCommand", "returns", "the", "cobra", "command", "for", "Defrag", "." ]
[ "func", "NewDefragCommand", "(", ")", "*", "cobra", ".", "Command", "{", "cmd", ":=", "&", "cobra", ".", "Command", "{", "Use", ":", "\"", "\"", ",", "Short", ":", "\"", "\"", ",", "Run", ":", "defragCommandFunc", ",", "}", "\n", "cmd", ".", "Persi...
1,916
all-1917
[ "GetSession", "get", "session" ]
[ "func", "(", "ctx", "*", "Context", ")", "GetSession", "(", ")", "IStore", "{", "<mask>", ":=", "ctx", ".", "Data", "[", "\"", "\"", "]", "\n", "if", "store", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "st", ",", "ok", ":=", "store", "...
1,917
all-1918
[ "collides", "returns", "a", "boolean", "value", "indicating", "whether", "the", "piece", "at", "(", "x", "y", ")", "with", "the", "given", "angle", "would", "collide", "with", "the", "field", "s", "blocks", "." ]
[ "func", "(", "p", "*", "Piece", ")", "collides", "(", "<mask>", "*", "Field", ",", "x", ",", "y", "int", ",", "angle", "Angle", ")", "bool", "{", "size", ":=", "len", "(", "p", ".", "blocks", ")", "\n", "for", "i", ":=", "0", ";", "i", "<", ...
1,918
all-1919
[ "GetMin", "returns", "the", "Min", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "w", "*", "WidgetAxis", ")", "GetMin", "(", ")", "<mask>", "{", "if", "w", "==", "nil", "||", "w", ".", "Min", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "w", ".", "Min", "\n", "}" ]
1,919
all-1920
[ "NewPFSInput", "returns", "a", "new", "PFS", "input", ".", "It", "only", "includes", "required", "options", "." ]
[ "func", "NewPFSInput", "(", "repo", "string", ",", "glob", "string", ")", "*", "pps", ".", "Input", "{", "return", "&", "pps", ".", "<mask>", "{", "Pfs", ":", "&", "pps", ".", "PFSInput", "{", "Repo", ":", "repo", ",", "Glob", ":", "glob", ",", "...
1,920
all-1921
[ "NewDiskSubresource", "returns", "a", "subresource", "populated", "with", "all", "of", "the", "necessary", "fields", "." ]
[ "func", "NewDiskSubresource", "(", "client", "*", "govmomi", ".", "<mask>", ",", "rdd", "resourceDataDiff", ",", "d", ",", "old", "map", "[", "string", "]", "interface", "{", "}", ",", "idx", "int", ")", "*", "DiskSubresource", "{", "sr", ":=", "&", "D...
1,921
all-1922
[ "NewMysqlDump", "-", "will", "initialize", "a", "mysqldump", "for", "local", "execution" ]
[ "func", "NewMysqlDump", "(", "<mask>", ",", "username", ",", "password", "string", ")", "*", "MysqlDump", "{", "lo", ".", "G", ".", "Debug", "(", "\"", "\"", ")", "\n", "m", ":=", "&", "MysqlDump", "{", "IP", ":", "ip", ",", "Username", ":", "usern...
1,922
all-1923
[ "UnmarshalYAML", "implements", "Unmarshaler", ".", "Avoid", "use", "of", "env", "in", "the", "YAML", "file", "." ]
[ "func", "(", "m", "*", "Environment", ")", "UnmarshalYAML", "(", "unmarshal", "func", "(", "interface", "{", "}", ")", "error", ")", "error", "{", "var", "aux", "struct", "{", "Env", "map", "[", "string", "]", "struct", "{", "Config", "`yaml:\"mongo\"`",...
1,923
all-1924
[ "Layout", "set", "layout", "for", "template", "." ]
[ "func", "(", "render", "*", "Render", ")", "Layout", "(", "name", "string", ")", "*", "Template", "{", "return", "&", "Template", "{", "render", ":", "render", ",", "<mask>", ":", "name", "}", "\n", "}" ]
1,924
all-1925
[ "FormSessionKey", "is", "used", "during", "encrypted", "protocol", "introduction", "." ]
[ "func", "formSessionKey", "(", "remotePublicKey", ",", "localPrivateKey", "*", "[", "32", "]", "byte", ",", "secretKey", "[", "]", "byte", ")", "*", "[", "32", "]", "byte", "{", "<mask>", "sharedKey", "[", "32", "]", "byte", "\n", "box", ".", "Precompu...
1,925
all-1926
[ "Stat", "sends", "pubsub", "receiver", "s", "internal", "stats", "to", "specified", "callback" ]
[ "func", "(", "rcv", "*", "PubSub", ")", "Stat", "(", "<mask>", "helper", ".", "StatCallback", ")", "{", "messagesReceived", ":=", "atomic", ".", "LoadUint32", "(", "&", "rcv", ".", "messagesReceived", ")", "\n", "send", "(", "\"", "\"", ",", "float64", ...
1,926
all-1927
[ "resourceVSphereDatastoreClusterApplyTags", "processes", "the", "tags", "step", "for", "both", "create", "and", "update", "for", "vsphere_datastore_cluster", "." ]
[ "func", "resourceVSphereDatastoreClusterApplyTags", "(", "d", "*", "schema", ".", "ResourceData", ",", "meta", "interface", "{", "}", ",", "pod", "*", "<mask>", ".", "StoragePod", ")", "error", "{", "tagsClient", ",", "err", ":=", "tagsClientIfDefined", "(", "...
1,927
all-1928
[ "Recover", "creates", "middleware", "that", "can", "recover", "from", "a", "panic", "in", "a", "handler", "storing", "a", "PanicError", "for", "future", "handling", "." ]
[ "func", "Recover", "(", ")", "Middleware", "{", "return", "func", "(", "next", "http", ".", "<mask>", ")", "http", ".", "Handler", "{", "return", "http", ".", "HandlerFunc", "(", "func", "(", "w", "http", ".", "ResponseWriter", ",", "r", "*", "http", ...
1,928
all-1929
[ "CleanupVirtualNetworkIfExists", "removes", "a", "subnet", "if", "there", "are", "no", "subnets", "attached", "to", "it", ".", "Note", "that", "this", "method", "is", "not", "safe", "for", "multiple", "concurrent", "writers", "in", "case", "of", "races", "depl...
[ "func", "(", "a", "AzureClient", ")", "CleanupVirtualNetworkIfExists", "(", "resourceGroup", ",", "name", "string", ")", "error", "{", "return", "a", ".", "cleanupResourceIfExists", "(", "&", "vnetCleanup", "{", "rg", ":", "resourceGroup", ",", "name", ":", "<...
1,929
all-1930
[ "GetDescription", "returns", "the", "Description", "field", "if", "non", "-", "nil", "zero", "value", "otherwise", "." ]
[ "func", "(", "b", "*", "Board", ")", "GetDescription", "(", ")", "string", "{", "if", "b", "==", "nil", "||", "b", ".", "Description", "==", "nil", "{", "return", "\"", "\"", "\n", "}", "\n", "return", "*", "b", ".", "<mask>", "\n", "}" ]
1,930
all-1931
[ "LoginRequired", "verifies", "that", "the", "current", "user", "is", "authenticated", ".", "Any", "routes", "that", "require", "a", "login", "should", "have", "this", "handler", "placed", "in", "the", "flow", ".", "If", "the", "user", "is", "not", "authentic...
[ "func", "LoginRequired", "(", "r", "render", ".", "Render", ",", "user", "User", ",", "req", "*", "http", ".", "Request", ")", "{", "if", "user", ".", "IsAuthenticated", "(", ")", "==", "false", "{", "path", ":=", "fmt", ".", "Sprintf", "(", "\"", ...
1,931
all-1932
[ "<non", "-", "negative", "number", ">", "_" ]
[ "func", "(", "st", "*", "<mask>", ")", "compactNumber", "(", ")", "int", "{", "if", "len", "(", "st", ".", "str", ")", "==", "0", "{", "st", ".", "fail", "(", "\"", "\"", ")", "\n", "}", "\n", "if", "st", ".", "str", "[", "0", "]", "==", ...
1,932
all-1933
[ "If", "a", "holiday", "falls", "on", "a", "Saturday", "it", "is", "celebrated", "the", "preceding", "Friday", ";", "if", "a", "holiday", "falls", "on", "a", "Sunday", "it", "is", "celebrated", "the", "following", "Monday", "." ]
[ "func", "(", "h", "holidaysUSNational", ")", "fixWeekend", "(", "in", "time", ".", "Time", ")", "time", ".", "Time", "{", "switch", "in", ".", "Weekday", "(", ")", "{", "case", "time", ".", "Saturday", ":", "return", "in", ".", "Add", "(", "-", "1"...
1,933
all-1934
[ "specify", "a", "one", "-", "dimensional", "texture", "subimage" ]
[ "func", "TextureSubImage1D", "(", "texture", "uint32", ",", "level", "int32", ",", "xoffset", "int32", ",", "width", "int32", ",", "format", "uint32", ",", "xtype", "uint32", ",", "pixels", "unsafe", ".", "Pointer", ")", "{", "syscall", ".", "Syscall9", "(...
1,934
all-1935
[ "HasTitleSize", "returns", "a", "boolean", "if", "a", "field", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TimeseriesDefinition", ")", "HasTitleSize", "(", ")", "bool", "{", "if", "t", "!=", "nil", "&&", "t", ".", "TitleSize", "!=", "nil", "{", "return", "<mask>", "\n", "}", "\n\n", "return", "false", "\n", "}" ]
1,935
all-1936
[ "FillStringAt", "draws", "the", "text", "at", "the", "specified", "point", "(", "x", "y", ")" ]
[ "func", "(", "gc", "*", "GraphicContext", ")", "FillStringAt", "(", "text", "string", ",", "x", ",", "y", "float64", ")", "(", "width", "float64", ")", "{", "f", ",", "err", ":=", "gc", ".", "loadCurrentFont", "(", ")", "\n", "if", "err", "!=", "ni...
1,936
all-1937
[ "GetPosition", "is", "a", "wrapper", "around", "gtk_window_get_position", "()", "." ]
[ "func", "(", "v", "*", "Window", ")", "GetPosition", "(", ")", "(", "root_x", ",", "root_y", "int", ")", "{", "<mask>", "x", ",", "y", "C", ".", "gint", "\n", "C", ".", "gtk_window_get_position", "(", "v", ".", "native", "(", ")", ",", "&", "x", ...
1,937
all-1938
[ "/", "*", "assign", "callback", "for", "mouse", "events" ]
[ "func", "(", "win", "*", "Window", ")", "SetMouseCallback", "(", "on_mouse", "MouseFunc", ",", "param", "...", "interface", "{", "}", ")", "{", "switch", "f", ":=", "on_mouse", ".", "(", "type", ")", "{", "case", "MouseFuncA", ":", "win", ".", "mouseHa...
1,938
all-1939
[ "Checksum32S", "returns", "the", "checksum", "of", "the", "input", "bytes", "with", "the", "specific", "seed", "." ]
[ "func", "Checksum32S", "(", "in", "[", "]", "byte", ",", "seed", "uint32", ")", "(", "h", "uint32", ")", "{", "var", "i", "int", "\n\n", "if", "len", "(", "in", ")", ">", "15", "{", "var", "(", "v1", "=", "seed", "+", "prime32x1", "+", "prime32...
1,939
all-1940
[ "NewLimiter", "creates", "a", "new", "instance", "of", "a", "rate", "limiter", "." ]
[ "func", "NewLimiter", "(", "client", "*", "redis", ".", "Client", ",", "hasher", "RateHasher", ",", "max", "int64", ",", ")", "*", "RateLimiter", "{", "return", "&", "RateLimiter", "{", "redisClient", ":", "<mask>", ",", "hasher", ":", "hasher", ",", "ma...
1,940
all-1941
[ "I64", "returns", "the", "two", "halfs", "of", "the", "SHA512", "HMAC", "of", "key", "and", "data", "." ]
[ "func", "I64", "(", "key", "[", "]", "byte", ",", "data", "[", "]", "byte", ")", "(", "[", "]", "byte", ",", "[", "]", "byte", ")", "{", "<mask>", ":=", "hmac", ".", "New", "(", "sha512", ".", "New", ",", "key", ")", "\n", "mac", ".", "Writ...
1,941
all-1942
[ "Resize", "changes", "the", "map", "size", "in", "pixel", ".", "Sizes", "larger", "than", "16k", "pixels", "are", "ignored", "by", "Mapnik", ".", "Use", "NewSized", "to", "initialize", "larger", "maps", "." ]
[ "func", "(", "m", "*", "Map", ")", "Resize", "(", "<mask>", ",", "height", "int", ")", "{", "C", ".", "mapnik_map_resize", "(", "m", ".", "m", ",", "C", ".", "uint", "(", "width", ")", ",", "C", ".", "uint", "(", "height", ")", ")", "\n", "m"...
1,942
all-1943
[ "GetTypeOk", "returns", "a", "tuple", "with", "the", "Type", "field", "if", "it", "s", "non", "-", "nil", "zero", "value", "otherwise", "and", "a", "boolean", "to", "check", "if", "the", "value", "has", "been", "set", "." ]
[ "func", "(", "t", "*", "TraceServiceDefinition", ")", "GetTypeOk", "(", ")", "(", "string", ",", "bool", ")", "{", "if", "t", "==", "nil", "||", "t", ".", "<mask>", "==", "nil", "{", "return", "\"", "\"", ",", "false", "\n", "}", "\n", "return", ...
1,943
all-1944
[ "/", "*", "Allocates", "and", "initializes", "IplImage", "header" ]
[ "func", "CreateImageHeader", "(", "w", ",", "h", ",", "<mask>", ",", "channels", "int", ")", "*", "IplImage", "{", "hdr", ":=", "C", ".", "cvCreateImageHeader", "(", "C", ".", "cvSize", "(", "C", ".", "int", "(", "w", ")", ",", "C", ".", "int", "...
1,944
all-1945
[ "GetAlphaNum4", "retrieves", "the", "AlphaNum4", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "." ]
[ "func", "(", "u", "<mask>", ")", "GetAlphaNum4", "(", ")", "(", "result", "AssetAlphaNum4", ",", "ok", "bool", ")", "{", "armName", ",", "_", ":=", "u", ".", "ArmForSwitch", "(", "int32", "(", "u", ".", "Type", ")", ")", "\n\n", "if", "armName", "=...
1,945
all-1946
[ "Error", "returns", "any", "errors", "encountered", "so", "far", ".", "No", "commits", "would", "be", "run", "once", "an", "error", "is", "detected", "." ]
[ "func", "(", "wb", "*", "WriteBatch", ")", "<mask>", "(", ")", "error", "{", "wb", ".", "Lock", "(", ")", "\n", "defer", "wb", ".", "Unlock", "(", ")", "\n", "return", "wb", ".", "err", "\n", "}" ]
1,946
all-1947
[ "Fetch", "the", "binary", "from", "S3" ]
[ "func", "(", "s", "*", "S3", ")", "Fetch", "(", ")", "(", "io", ".", "Reader", ",", "error", ")", "{", "//delay fetches after first", "if", "s", ".", "delay", "{", "time", ".", "Sleep", "(", "s", ".", "Interval", ")", "\n", "}", "\n", "s", ".", ...
1,947
all-1948
[ "AppendHandlers", "implements", "Dispatcher", ".", "AppendHandlers" ]
[ "func", "(", "d", "*", "SerialDispatcher", ")", "AppendHandlers", "(", "handlers", "...", "Handler", ")", "{", "d", ".", "mutex", ".", "Lock", "(", ")", "\n", "defer", "d", ".", "mutex", ".", "Unlock", "(", ")", "\n\n", "Loop", ":", "for", "_", ","...
1,948
all-1949
[ "newSubmitStateChangeClient", "returns", "a", "client", "intended", "to", "be", "used", "for", "Submit", "*", "StateChange", "APIs", "which", "has", "the", "behavior", "of", "retrying", "the", "call", "on", "retriable", "errors", "for", "an", "extended", "period...
[ "func", "newSubmitStateChangeClient", "(", "awsConfig", "*", "aws", ".", "Config", ")", "*", "ecs", ".", "ECS", "{", "sscConfig", ":=", "awsConfig", ".", "Copy", "(", ")", "\n", "sscConfig", ".", "Retryer", "=", "&", "oneDayRetrier", "{", "}", "\n", "cli...
1,949
all-1950
[ "/", "*", "Attempts", "to", "parse", "the", "[", "candidate", "]", "as", "a", "Time", ".", "Tries", "a", "series", "of", "standardized", "date", "formats", "returns", "the", "Time", "if", "one", "applies", "otherwise", "returns", "false", "through", "the",...
[ "func", "tryParseTime", "(", "candidate", "string", ")", "(", "time", ".", "Time", ",", "bool", ")", "{", "var", "ret", "time", ".", "Time", "\n", "var", "found", "bool", "\n\n", "timeFormats", ":=", "[", "...", "]", "string", "{", "time", ".", "ANSI...
1,950
all-1951
[ "Return", "the", "names", "of", "the", "nodes", "the", "given", "network", "is", "defined", "on", "." ]
[ "func", "(", "c", "*", "Cluster", ")", "networkNodes", "(", "networkID", "int64", ")", "(", "[", "]", "string", ",", "error", ")", "{", "stmt", ":=", "`\nSELECT nodes.name FROM nodes\n JOIN networks_nodes ON networks_nodes.node_id = nodes.id\n WHERE networks_nodes.network...
1,951
all-1952
[ "define", "an", "array", "of", "generic", "vertex", "attribute", "data" ]
[ "func", "VertexAttribPointer", "(", "index", "uint32", ",", "size", "int32", ",", "xtype", "uint32", ",", "normalized", "bool", ",", "stride", "int32", ",", "pointer", "unsafe", ".", "Pointer", ")", "{", "syscall", ".", "Syscall6", "(", "gpVertexAttribPointer"...
1,952
all-1953
[ "mount", "initializes", "the", "console", "inside", "the", "rootfs", "mounting", "with", "the", "specified", "mount", "label", "and", "applying", "the", "correct", "ownership", "of", "the", "console", "." ]
[ "func", "(", "c", "*", "linuxConsole", ")", "<mask>", "(", "rootfs", ",", "mountLabel", "string", ",", "uid", ",", "gid", "int", ")", "error", "{", "oldMask", ":=", "syscall", ".", "Umask", "(", "0000", ")", "\n", "defer", "syscall", ".", "Umask", "(...
1,953
all-1954
[ "NewColumnIteratorWithTimestampFormat", "creates", "a", "new", "iterator", "for", "column", "data", "with", "timestamp", "." ]
[ "func", "NewColumnIteratorWithTimestampFormat", "(", "format", "Format", ",", "reader", "io", ".", "Reader", ",", "timestampFormat", "string", ")", "*", "Iterator", "{", "return", "NewIterator", "(", "<mask>", ",", "ColumnUnmarshallerWithTimestamp", "(", "format", "...
1,954
all-1955
[ "DeepCopy", "copies", "the", "receiver", "into", "a", "new", "UUID4", "." ]
[ "func", "(", "u", "*", "UUID4", ")", "DeepCopy", "(", ")", "*", "UUID4", "{", "if", "u", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "out", ":=", "<mask>", "(", "UUID4", ")", "\n", "u", ".", "DeepCopyInto", "(", "out", ")", "\n", "retur...
1,955
all-1956
[ "New", "instantiates", "a", "new", "client", "with", "the", "given", "params", "and", "return", "a", "reference", "to", "it" ]
[ "func", "New", "(", "pemPath", "string", ",", "options", "...", "func", "(", "*", "Client", ")", "error", ")", "*", "Client", "{", "c", ":=", "Client", "{", "pemPath", ":", "pemPath", ",", "RequestTimeout", ":", "defaultRequestTimeout", ",", "}", "\n\n",...
1,956
all-1957
[ "GetPullCredentials", "returns", "the", "pull", "credentials", "in", "the", "auth" ]
[ "func", "(", "auth", "*", "ECRAuthData", ")", "GetPullCredentials", "(", ")", "credentials", ".", "IAMRoleCredentials", "{", "auth", ".", "<mask>", ".", "RLock", "(", ")", "\n", "defer", "auth", ".", "lock", ".", "RUnlock", "(", ")", "\n\n", "return", "a...
1,957
all-1958
[ "listHostInterfaces", "returns", "a", "map", "of", "net", ".", "IPNet", "addresses", "of", "host", "interfaces", "that", "are", "UP", "and", "not", "loopback", "adapters", "and", "not", "virtualbox", "host", "-", "only", "networks", "(", "given", "by", "excl...
[ "func", "listHostInterfaces", "(", "hif", "HostInterfaces", ",", "excludeNets", "map", "[", "string", "]", "*", "hostOnlyNetwork", ")", "(", "map", "[", "string", "]", "*", "net", ".", "IPNet", ",", "error", ")", "{", "ifaces", ",", "err", ":=", "hif", ...
1,958
all-1959
[ "NewCheckCommand", "returns", "the", "cobra", "command", "for", "check", "." ]
[ "func", "NewCheckCommand", "(", ")", "*", "cobra", ".", "Command", "{", "cc", ":=", "&", "cobra", ".", "Command", "{", "Use", ":", "\"", "\"", ",", "Short", ":", "\"", "\"", ",", "}", "\n\n", "cc", ".", "AddCommand", "(", "NewCheckPerfCommand", "(", ...
1,959
all-1960
[ "/", "*", "BufferReader", "returns", "a", "new", "gbytes", ".", "Buffer", "that", "wraps", "a", "reader", ".", "The", "reader", "s", "contents", "are", "read", "into", "the", "Buffer", "via", "io", ".", "Copy" ]
[ "func", "BufferReader", "(", "reader", "io", ".", "Reader", ")", "*", "Buffer", "{", "b", ":=", "&", "Buffer", "{", "lock", ":", "&", "<mask>", ".", "Mutex", "{", "}", ",", "}", "\n\n", "go", "func", "(", ")", "{", "io", ".", "Copy", "(", "b", ...
1,960
all-1961
[ "Init", "initializes", "the", "embedded", "newrelic", "agent", "with", "the", "given", "app", "name", "and", "license", "key", "." ]
[ "func", "Init", "(", "app", ",", "key", "string", ")", "{", "if", "_", ",", "err", ":=", "sdk", ".", "InitEmbeddedMode", "(", "<mask>", ",", "app", ")", ";", "err", "!=", "nil", "{", "panic", "(", "err", ")", "\n", "}", "\n", "}" ]
1,961
all-1962
[ "Options", "adds", "the", "route", "pattern", "that", "matches", "a", "OPTIONS", "http", "method", "to", "execute", "the", "handlerFn", "http", ".", "HandlerFunc", "." ]
[ "func", "(", "mx", "*", "Mux", ")", "Options", "(", "pattern", "string", ",", "handlerFn", "<mask>", ".", "HandlerFunc", ")", "{", "mx", ".", "handle", "(", "mOPTIONS", ",", "pattern", ",", "handlerFn", ")", "\n", "}" ]
1,962
all-1963
[ "PushNote", "sends", "a", "note", "to", "the", "specific", "device", "with", "the", "given", "title", "and", "body" ]
[ "func", "(", "d", "*", "<mask>", ")", "PushNote", "(", "title", ",", "body", "string", ")", "error", "{", "return", "d", ".", "Client", ".", "PushNote", "(", "d", ".", "Iden", ",", "title", ",", "body", ")", "\n", "}" ]
1,963
all-1964
[ "UnmarshalJSON", "supports", "json", ".", "Unmarshaler", "interface" ]
[ "func", "(", "v", "*", "EventInlineStyleInvalidated", ")", "UnmarshalJSON", "(", "<mask>", "[", "]", "byte", ")", "error", "{", "r", ":=", "jlexer", ".", "Lexer", "{", "Data", ":", "data", "}", "\n", "easyjsonC5a4559bDecodeGithubComChromedpCdprotoDom60", "(", ...
1,964
all-1965
[ "handleMessage", "dispatches", "a", "message", "to", "the", "correct", "requestHandler", "for", "its", "type", ".", "If", "no", "request", "handler", "is", "found", "the", "message", "is", "discarded", "." ]
[ "func", "(", "cs", "*", "ClientServerImpl", ")", "handleMessage", "(", "data", "[", "]", "byte", ")", "{", "typedMessage", ",", "typeStr", ",", "err", ":=", "DecodeData", "(", "data", ",", "cs", ".", "TypeDecoder", ")", "\n", "if", "err", "!=", "nil", ...
1,965
all-1966
[ "SetOffer", "mutates", "key", "such", "that", "it", "represents", "the", "identity", "of", "the", "data", "entry", "owned", "by", "account", "and", "for", "offer", "id", "." ]
[ "func", "(", "key", "*", "LedgerKey", ")", "SetOffer", "(", "account", "AccountId", ",", "id", "uint64", ")", "error", "{", "data", ":=", "LedgerKeyOffer", "{", "account", ",", "Uint64", "(", "id", ")", "}", "\n", "nkey", ",", "err", ":=", "NewLedgerKe...
1,966
all-1967
[ "AddBack", "creates", "an", "entry", "in", "the", "LinkedList", "that", "is", "logically", "at", "the", "back", "of", "the", "list", "." ]
[ "func", "(", "list", "*", "LinkedList", ")", "AddBack", "(", "entry", "interface", "{", "}", ")", "{", "toAppend", ":=", "&", "llNode", "{", "payload", ":", "entry", ",", "}", "\n\n", "list", ".", "key", ".", "Lock", "(", ")", "\n", "defer", "list"...
1,967
all-1968
[ "return", "parameters", "of", "a", "query", "object" ]
[ "func", "GetQueryObjectuiv", "(", "<mask>", "uint32", ",", "pname", "uint32", ",", "params", "*", "uint32", ")", "{", "syscall", ".", "Syscall", "(", "gpGetQueryObjectuiv", ",", "3", ",", "uintptr", "(", "id", ")", ",", "uintptr", "(", "pname", ")", ",",...
1,968
all-1969
[ "AsEnumerable", "allows", "for", "easy", "conversion", "of", "a", "slice", "to", "a", "re", "-", "usable", "Enumerable", "object", "." ]
[ "func", "AsEnumerable", "(", "entries", "...", "interface", "{", "}", ")", "Enumerable", "{", "if", "len", "(", "entries", ")", "!=", "1", "{", "return", "enumerableSlice", "(", "entries", ")", "\n", "}", "\n\n", "val", ":=", "reflect", ".", "ValueOf", ...
1,969
all-1970
[ "IsRetriableError", "returns", "a", "boolean", "indicating", "whether", "the", "call", "that", "generated", "the", "error", "can", "be", "retried", ".", "When", "stopping", "a", "container", "most", "errors", "that", "we", "can", "get", "should", "be", "consid...
[ "func", "(", "err", "CannotStopContainerError", ")", "IsRetriableError", "(", ")", "bool", "{", "if", "_", ",", "ok", ":=", "err", ".", "FromError", ".", "(", "NoSuchContainerError", ")", ";", "ok", "{", "return", "false", "\n", "}", "\n\n", "return", "<...
1,970
all-1971
[ "Classic", "creates", "a", "classic", "Martini", "with", "some", "basic", "default", "middleware", "-", "martini", ".", "Logger", "martini", ".", "Recovery", "and", "martini", ".", "Static", ".", "Classic", "also", "maps", "martini", ".", "Routes", "as", "a"...
[ "func", "Classic", "(", ")", "*", "ClassicMartini", "{", "r", ":=", "NewRouter", "(", ")", "\n", "m", ":=", "New", "(", ")", "\n", "m", ".", "Use", "(", "Logger", "(", ")", ")", "\n", "m", ".", "Use", "(", "Recovery", "(", ")", ")", "\n", "m"...
1,971
all-1972
[ "ReadAtMost", "reads", "at", "most", "n", "bytes" ]
[ "func", "(", "a", "*", "PodLogArtifact", ")", "ReadAtMost", "(", "n", "int64", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "logs", ",", "err", ":=", "a", ".", "jobAgent", ".", "GetJobLog", "(", "a", ".", "name", ",", "a", ".", "buildID", ...
1,972
all-1973
[ "newProxierWithNoProxyCIDR", "is", "a", "modified", "copy", "of", "k8s", ".", "io", "/", "apimachinery", "/", "pkg", "/", "util", "/", "net", ".", "NewProxierWithNoProxyCIDR", ".", "NewProxierWithNoProxyCIDR", "constructs", "a", "Proxier", "function", "that", "res...
[ "func", "newProxierWithNoProxyCIDR", "(", "delegate", "func", "(", "req", "*", "http", ".", "Request", ")", "(", "*", "url", ".", "URL", ",", "error", ")", ")", "func", "(", "req", "*", "http", ".", "Request", ")", "(", "*", "url", ".", "URL", ",",...
1,973
all-1974
[ "DispatchSyncEvent", "[", "no", "description", "]", ".", "See", ":", "https", ":", "//", "chromedevtools", ".", "github", ".", "io", "/", "devtools", "-", "protocol", "/", "tot", "/", "ServiceWorker#method", "-", "dispatchSyncEvent", "parameters", ":", "origin...
[ "func", "DispatchSyncEvent", "(", "origin", "string", ",", "registrationID", "RegistrationID", ",", "tag", "string", ",", "lastChance", "bool", ")", "*", "DispatchSyncEventParams", "{", "return", "&", "DispatchSyncEventParams", "{", "Origin", ":", "origin", ",", "...
1,974
all-1975
[ "MarshalJSON", "supports", "json", ".", "Marshaler", "interface" ]
[ "func", "(", "v", "ResetPermissionsParams", ")", "MarshalJSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "w", ":=", "jwriter", ".", "Writer", "{", "}", "\n", "easyjsonC5a4559bEncodeGithubComChromedpCdprotoBrowser2", "(", "&", "w", ",", "v", ...
1,975
all-1976
[ "syncWatchersLoop", "syncs", "the", "watcher", "in", "the", "unsynced", "map", "every", "100ms", "." ]
[ "func", "(", "s", "*", "watchableStore", ")", "syncWatchersLoop", "(", ")", "{", "defer", "s", ".", "wg", ".", "Done", "(", ")", "\n\n", "for", "{", "s", ".", "mu", ".", "RLock", "(", ")", "\n", "st", ":=", "time", ".", "Now", "(", ")", "\n", ...
1,976
all-1977
[ "String", "representation", "." ]
[ "func", "(", "p", "*", "Peer", ")", "<mask>", "(", ")", "string", "{", "if", "p", ".", "outbound", "{", "return", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "p", ".", "mconn", ",", "p", ".", "Key", "[", ":", "12", "]", ")", "\n", "}", "\n...
1,977
all-1978
[ "CreateChildAnchor", "()", "is", "a", "wrapper", "around", "gtk_text_buffer_create_child_anchor", "()", ".", "Since", "it", "copies", "garbage", "from", "the", "stack", "into", "the", "padding", "bytes", "of", "iter", "iter", "can", "t", "be", "reliably", "reuse...
[ "func", "(", "v", "*", "TextBuffer", ")", "CreateChildAnchor", "(", "iter", "*", "TextIter", ")", "*", "TextChildAnchor", "{", "ret", ":=", "C", ".", "gtk_text_buffer_create_child_anchor", "(", "v", ".", "native", "(", ")", ",", "iter", ".", "native", "(",...
1,978
all-1979
[ "Adds", "directly", "to", "the", "node", "table", "." ]
[ "func", "(", "s", "*", "Server", ")", "AddNode", "(", "ni", "krpc", ".", "NodeInfo", ")", "error", "{", "id", ":=", "int160FromByteArray", "(", "ni", ".", "ID", ")", "\n", "if", "<mask>", ".", "IsZero", "(", ")", "{", "return", "s", ".", "Ping", ...
1,979
all-1980
[ "Explain", "returns", "a", "number", "of", "details", "about", "how", "the", "MongoDB", "server", "would", "execute", "the", "requested", "pipeline", "such", "as", "the", "number", "of", "objects", "examined", "the", "number", "of", "times", "the", "read", "...
[ "func", "(", "p", "*", "Pipe", ")", "Explain", "(", "result", "interface", "{", "}", ")", "error", "{", "c", ":=", "p", ".", "collection", "\n", "cmd", ":=", "pipeCmd", "{", "Aggregate", ":", "c", ".", "Name", ",", "Pipeline", ":", "p", ".", "pip...
1,980
all-1981
[ "NewClient", "returns", "a", "client", "that", "talks", "to", "GitHub", ".", "It", "will", "fail", "if", "git", "is", "not", "in", "the", "PATH", "." ]
[ "func", "NewClient", "(", ")", "(", "*", "Client", ",", "error", ")", "{", "g", ",", "err", ":=", "exec", ".", "LookPath", "(", "\"", "\"", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "\n", "t", ",", "err...
1,981
all-1982
[ "Metrics", "retuns", "all", "Prometheus", "metrics", "that", "should", "be", "registered", "." ]
[ "func", "(", "c", "*", "Counter", ")", "Metrics", "(", ")", "(", "<mask>", "[", "]", "prometheus", ".", "Collector", ")", "{", "return", "[", "]", "prometheus", ".", "Collector", "{", "c", ".", "vector", "}", "\n", "}" ]
1,982
all-1983
[ "/", "*", "Get1D", "return", "a", "specific", "element", "from", "a", "1", "-", "dimensional", "matrix", "." ]
[ "func", "(", "img", "*", "IplImage", ")", "Get1D", "(", "x", "int", ")", "Scalar", "{", "<mask>", ":=", "C", ".", "cvGet1D", "(", "unsafe", ".", "Pointer", "(", "img", ")", ",", "C", ".", "int", "(", "x", ")", ")", "\n", "return", "Scalar", "("...
1,983
all-1984
[ "Validate", "that", "options", "are", "usuable" ]
[ "func", "(", "opts", "*", "Options", ")", "Validate", "(", ")", "error", "{", "if", "opts", ".", "Options", "==", "nil", "{", "opts", ".", "Options", "=", "&", "core", ".", "<mask>", "{", "}", "\n", "}", "\n\n", "if", "err", ":=", "opts", ".", ...
1,984
all-1985
[ "UnmarshalJSON", "mocks", "base", "method" ]
[ "func", "(", "m", "*", "MockTaskEngineState", ")", "UnmarshalJSON", "(", "arg0", "[", "]", "byte", ")", "error", "{", "<mask>", ":=", "m", ".", "ctrl", ".", "Call", "(", "m", ",", "\"", "\"", ",", "arg0", ")", "\n", "ret0", ",", "_", ":=", "ret",...
1,985
all-1986
[ "GetAttrs", "returns", "all", "attributes", "of", "the", "element" ]
[ "func", "(", "x", "*", "XMLEle", ")", "GetAttrs", "(", ")", "[", "]", "tree", ".", "Node", "{", "ret", ":=", "make", "(", "[", "]", "<mask>", ".", "Node", ",", "len", "(", "x", ".", "Attrs", ")", ")", "\n", "for", "i", ":=", "range", "x", "...
1,986
all-1987
[ "NewNetworkNumber", "returns", "a", "equivalent", "NetworkNumber", "to", "given", "IP", "address", "return", "nil", "if", "ip", "is", "neither", "IPv4", "nor", "IPv6", "." ]
[ "func", "NewNetworkNumber", "(", "ip", "net", ".", "IP", ")", "NetworkNumber", "{", "if", "ip", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "coercedIP", ":=", "ip", ".", "To4", "(", ")", "\n", "parts", ":=", "1", "\n", "if", "coercedIP", "=...
1,987
all-1988
[ "EncodeIntWithPrecision", "encodes", "the", "point", "(", "lat", "lng", ")", "to", "an", "integer", "with", "the", "specified", "number", "of", "bits", "." ]
[ "func", "EncodeIntWithPrecision", "(", "lat", ",", "lng", "float64", ",", "bits", "uint", ")", "uint64", "{", "hash", ":=", "EncodeInt", "(", "lat", ",", "lng", ")", "\n", "return", "<mask>", ">>", "(", "64", "-", "bits", ")", "\n", "}" ]
1,988
all-1989
[ "MustNewCmdWithRunner", "returns", "the", "result", "of", "NewCmdWithRunner", "and", "panics", "in", "cases", "where", "the", "function", "returns", "an", "error", "." ]
[ "func", "MustNewCmdWithRunner", "(", "cmdName", "string", ",", "<mask>", "func", "(", ")", ")", "*", "CmdWithRunner", "{", "cmdWithRunner", ",", "err", ":=", "NewCmdWithRunner", "(", "cmdName", ",", "runner", ")", "\n", "if", "err", "!=", "nil", "{", "pani...
1,989
all-1990
[ "Send", "envoie", "un", "email" ]
[ "func", "(", "m", "*", "MailService", ")", "Send", "(", "message", "string", ",", "subject", "string", ",", "from", "string", ",", "to", "string", ")", "(", "err", "error", ")", "{", "t", ":=", "[", "]", "string", "{", "to", "}", "\n", "msg", ":=...
1,990
all-1991
[ "newSTMRepeatable", "initiates", "new", "repeatable", "read", "transaction", ";", "reads", "within", "the", "same", "transaction", "attempt", "to", "always", "return", "the", "same", "data", "." ]
[ "func", "newSTMRepeatable", "(", "ctx", "context", ".", "Context", ",", "c", "*", "v3", ".", "Client", ",", "apply", "func", "(", "STM", ")", "error", ")", "(", "*", "v3", ".", "TxnResponse", ",", "error", ")", "{", "s", ":=", "&", "stm", "{", "c...
1,991
all-1992
[ "/", "*", "GetAppsAppRoutesRoute", "gets", "route", "by", "name" ]
[ "func", "(", "a", "*", "<mask>", ")", "GetAppsAppRoutesRoute", "(", "params", "*", "GetAppsAppRoutesRouteParams", ")", "(", "*", "GetAppsAppRoutesRouteOK", ",", "error", ")", "{", "// TODO: Validate the params before sending", "if", "params", "==", "nil", "{", "para...
1,992
all-1993
[ "RemoveLatency", "resets", "latency", "configurations", "." ]
[ "func", "RemoveLatency", "(", ")", "error", "{", "ifces", ",", "err", ":=", "GetDefaultInterfaces", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "err", "\n", "}", "\n", "for", "ifce", ":=", "<mask>", "ifces", "{", "_", ",", "err", "=", ...
1,993
all-1994
[ "FetchVersion", "fetches", "version", "information", "from", "discovery", "client", "and", "parses" ]
[ "func", "FetchVersion", "(", "v", "discovery", ".", "ServerVersionInterface", ")", "(", "<mask>", "ServerVersion", ",", "err", "error", ")", "{", "version", ",", "err", ":=", "v", ".", "ServerVersion", "(", ")", "\n", "if", "err", "!=", "nil", "{", "retu...
1,994
all-1995
[ "ensureInRange", "adjusts", "the", "passed", "value", "if", "necessary", "to", "ensure", "it", "is", "within", "the", "passed", "min", "/", "max", "range", "." ]
[ "func", "ensureInRange", "(", "n", "int16", ",", "min", "int16", ",", "<mask>", "int16", ")", "int16", "{", "if", "n", "<", "min", "{", "return", "min", "\n", "}", "else", "if", "n", ">", "max", "{", "return", "max", "\n", "}", "else", "{", "retu...
1,995
all-1996
[ "NewKubeClient", "returns", "a", "new", "Kubernetes", "client", "object", ".", "It", "takes", "a", "Config", "and", "uses", "KubeMaster", "and", "KubeConfig", "attributes", "to", "connect", "to", "the", "cluster", ".", "If", "KubeConfig", "isn", "t", "provided...
[ "func", "NewKubeClient", "(", "kubeConfig", ",", "kubeMaster", "string", ",", "requestTimeout", "time", ".", "Duration", ")", "(", "*", "kubernetes", ".", "Clientset", ",", "error", ")", "{", "if", "kubeConfig", "==", "\"", "\"", "{", "if", "_", ",", "er...
1,996
all-1997
[ "ToPhone", "will", "format", "the", "provided", "string", "as", "a", "Phone", "Number", ".", "Only", "supports", "US", "numbers", "currently", "." ]
[ "func", "ToPhone", "(", "theString", ",", "delimiter", "string", ")", "(", "string", ",", "error", ")", "{", "f", ":=", "New", "(", "theString", ")", "\n", "f", ".", "removeNonDigits", "(", ")", "\n\n", "if", "f", ".", "length", "<", "10", "{", "re...
1,997
all-1998
[ "Step", "4", ":", "Search", "for", "the", "longest", "among", "the", "following", "suffixes", "and", "if", "found", "and", "in", "R2", "perform", "the", "action", "indicated", ".", "al", "ance", "ence", "er", "ic", "able", "ible", "ant", "ement", "ment",...
[ "func", "step4", "(", "w", "*", "snowballword", ".", "SnowballWord", ")", "bool", "{", "// Find all endings in R1", "suffix", ",", "suffixRunes", ":=", "w", ".", "FirstSuffix", "(", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "\"", "\"", ",", "\...
1,998
all-1999
[ "Build", "builds", "the", "URL", "path", "using", "the", "given", "positional", "and", "named", "variables", "and", "writes", "it", "to", "the", "given", "URL", "." ]
[ "func", "(", "m", "*", "GorillaPathPrefix", ")", "Build", "(", "u", "*", "url", ".", "URL", ",", "values", "url", ".", "Values", ")", "error", "{", "path", ",", "err", ":=", "m", ".", "RevertValid", "(", "values", ")", "\n", "if", "err", "==", "n...
1,999
all-2000
[ "NewTokenSource", "creates", "a", "oauth2", ".", "TokenSource", "that", "generates", "auth", "tokens", "redeemed", "using", "the", "JWT", "Bearer", "Grant", "assertion", "auth", "flow", "using", "the", "supplied", "jwt", ".", "Signer", ".", "A", "token", "rede...
[ "func", "NewTokenSource", "(", "signer", "jwt", ".", "Signer", ",", "tokenURL", "string", ",", "ctxt", "context", ".", "Context", ",", "opts", "...", "Option", ")", "(", "*", "Bearer", ",", "error", ")", "{", "var", "err", "error", "\n\n", "b", ":=", ...