diff --git "a/datasets/go/test.jsonl" "b/datasets/go/test.jsonl" new file mode 100644--- /dev/null +++ "b/datasets/go/test.jsonl" @@ -0,0 +1,8122 @@ +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/stm.go", "func_name": "NewSTM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSTM initiates a new STM instance, using serializable snapshot isolation by default.", "docstring_tokens": ["NewSTM", "initiates", "a", "new", "STM", "instance", "using", "serializable", "snapshot", "isolation", "by", "default", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/stm.go#L89-L102", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/stm.go", "func_name": "first", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// first returns the store revision from the first fetch", "docstring_tokens": ["first", "returns", "the", "store", "revision", "from", "the", "first", "fetch"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/stm.go#L197-L205", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/stm.go", "func_name": "cmps", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cmps returns a cmp list testing no writes have happened past rev", "docstring_tokens": ["cmps", "returns", "a", "cmp", "list", "testing", "no", "writes", "have", "happened", "past", "rev"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/stm.go#L228-L234", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/stm.go", "func_name": "NewSTMRepeatable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSTMRepeatable is deprecated.", "docstring_tokens": ["NewSTMRepeatable", "is", "deprecated", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/stm.go#L375-L377", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/stm.go", "func_name": "NewSTMSerializable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSTMSerializable is deprecated.", "docstring_tokens": ["NewSTMSerializable", "is", "deprecated", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/stm.go#L380-L382", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/stm.go", "func_name": "NewSTMReadCommitted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSTMReadCommitted is deprecated.", "docstring_tokens": ["NewSTMReadCommitted", "is", "deprecated", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/stm.go#L385-L387", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/tlsutil/tlsutil.go", "func_name": "NewCertPool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCertPool creates x509 certPool with provided CA files.", "docstring_tokens": ["NewCertPool", "creates", "x509", "certPool", "with", "provided", "CA", "files", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/tlsutil/tlsutil.go#L25-L50", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/tlsutil/tlsutil.go", "func_name": "NewCert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCert generates TLS cert by using the given cert,key and parse function.", "docstring_tokens": ["NewCert", "generates", "TLS", "cert", "by", "using", "the", "given", "cert", "key", "and", "parse", "function", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/tlsutil/tlsutil.go#L53-L73", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/peer.go", "func_name": "Pause", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pause pauses the peer. The peer will simply drops all incoming\n// messages without returning an error.", "docstring_tokens": ["Pause", "pauses", "the", "peer", ".", "The", "peer", "will", "simply", "drops", "all", "incoming", "messages", "without", "returning", "an", "error", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/peer.go#L314-L320", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/peer.go", "func_name": "Resume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Resume resumes a paused peer.", "docstring_tokens": ["Resume", "resumes", "a", "paused", "peer", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/peer.go#L323-L329", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/peer.go", "func_name": "pick", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// pick picks a chan for sending the given message. The picked chan and the picked chan\n// string name are returned.", "docstring_tokens": ["pick", "picks", "a", "chan", "for", "sending", "the", "given", "message", ".", "The", "picked", "chan", "and", "the", "picked", "chan", "string", "name", "are", "returned", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/peer.go#L358-L370", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/snapshot_sender.go", "func_name": "post", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// post posts the given request.\n// It returns nil when request is sent out and processed successfully.", "docstring_tokens": ["post", "posts", "the", "given", "request", ".", "It", "returns", "nil", "when", "request", "is", "sent", "out", "and", "processed", "successfully", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/snapshot_sender.go#L149-L185", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/apply.go", "func_name": "newTxnResp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newTxnResp allocates a txn response for a txn request given a path.", "docstring_tokens": ["newTxnResp", "allocates", "a", "txn", "response", "for", "a", "txn", "request", "given", "a", "path", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/apply.go#L381-L409", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/apply.go", "func_name": "applyCompare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// applyCompare applies the compare request.\n// If the comparison succeeds, it returns true. Otherwise, returns false.", "docstring_tokens": ["applyCompare", "applies", "the", "compare", "request", ".", "If", "the", "comparison", "succeeds", "it", "returns", "true", ".", "Otherwise", "returns", "false", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/apply.go#L438-L462", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/compact_op.go", "func_name": "OpCompact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpCompact wraps slice CompactOption to create a CompactOp.", "docstring_tokens": ["OpCompact", "wraps", "slice", "CompactOption", "to", "create", "a", "CompactOp", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/compact_op.go#L37-L41", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/recipes/priority_queue.go", "func_name": "NewPriorityQueue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPriorityQueue creates an etcd priority queue.", "docstring_tokens": ["NewPriorityQueue", "creates", "an", "etcd", "priority", "queue", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/recipes/priority_queue.go#L33-L35", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/recipes/priority_queue.go", "func_name": "Enqueue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enqueue puts a value into a queue with a given priority.", "docstring_tokens": ["Enqueue", "puts", "a", "value", "into", "a", "queue", "with", "a", "given", "priority", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/recipes/priority_queue.go#L38-L42", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2stats/leader.go", "func_name": "NewLeaderStats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLeaderStats generates a new LeaderStats with the given id as leader", "docstring_tokens": ["NewLeaderStats", "generates", "a", "new", "LeaderStats", "with", "the", "given", "id", "as", "leader"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2stats/leader.go#L39-L46", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2stats/leader.go", "func_name": "Succ", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Succ updates the FollowerStats with a successful send", "docstring_tokens": ["Succ", "updates", "the", "FollowerStats", "with", "a", "successful", "send"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2stats/leader.go#L97-L121", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2stats/leader.go", "func_name": "Fail", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fail updates the FollowerStats with an unsuccessful send", "docstring_tokens": ["Fail", "updates", "the", "FollowerStats", "with", "an", "unsuccessful", "send"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2stats/leader.go#L124-L128", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/grpcproxy/watch_broadcasts.go", "func_name": "delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// delete removes a watcher and returns the number of remaining watchers.", "docstring_tokens": ["delete", "removes", "a", "watcher", "and", "returns", "the", "number", "of", "remaining", "watchers", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/grpcproxy/watch_broadcasts.go#L102-L117", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/stream.go", "func_name": "startStreamWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startStreamWriter creates a streamWrite and starts a long running go-routine that accepts\n// messages and writes to the attached outgoing connection.", "docstring_tokens": ["startStreamWriter", "creates", "a", "streamWrite", "and", "starts", "a", "long", "running", "go", "-", "routine", "that", "accepts", "messages", "and", "writes", "to", "the", "attached", "outgoing", "connection", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/stream.go#L132-L149", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/stream.go", "func_name": "checkStreamSupport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkStreamSupport checks whether the stream type is supported in the\n// given version.", "docstring_tokens": ["checkStreamSupport", "checks", "whether", "the", "stream", "type", "is", "supported", "in", "the", "given", "version", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/stream.go#L738-L746", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/progress.go", "func_name": "maybeUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// maybeUpdate returns false if the given n index comes from an outdated message.\n// Otherwise it updates the progress and returns true.", "docstring_tokens": ["maybeUpdate", "returns", "false", "if", "the", "given", "n", "index", "comes", "from", "an", "outdated", "message", ".", "Otherwise", "it", "updates", "the", "progress", "and", "returns", "true", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/progress.go#L118-L129", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/progress.go", "func_name": "IsPaused", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsPaused returns whether sending log entries to this node has been\n// paused. A node may be paused because it has rejected recent\n// MsgApps, is currently waiting for a snapshot, or has reached the\n// MaxInflightMsgs limit.", "docstring_tokens": ["IsPaused", "returns", "whether", "sending", "log", "entries", "to", "this", "node", "has", "been", "paused", ".", "A", "node", "may", "be", "paused", "because", "it", "has", "rejected", "recent", "MsgApps", "is", "currently", "waiting", "for", "a", "snapshot", "or", "has", "reached", "the", "MaxInflightMsgs", "limit", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/progress.go#L166-L177", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/progress.go", "func_name": "needSnapshotAbort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// needSnapshotAbort returns true if snapshot progress's Match\n// is equal or higher than the pendingSnapshot.", "docstring_tokens": ["needSnapshotAbort", "returns", "true", "if", "snapshot", "progress", "s", "Match", "is", "equal", "or", "higher", "than", "the", "pendingSnapshot", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/progress.go#L183-L185", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/progress.go", "func_name": "add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// add adds an inflight into inflights", "docstring_tokens": ["add", "adds", "an", "inflight", "into", "inflights"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/progress.go#L213-L227", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/progress.go", "func_name": "growBuf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// grow the inflight buffer by doubling up to inflights.size. We grow on demand\n// instead of preallocating to inflights.size to handle systems which have\n// thousands of Raft groups per process.", "docstring_tokens": ["grow", "the", "inflight", "buffer", "by", "doubling", "up", "to", "inflights", ".", "size", ".", "We", "grow", "on", "demand", "instead", "of", "preallocating", "to", "inflights", ".", "size", "to", "handle", "systems", "which", "have", "thousands", "of", "Raft", "groups", "per", "process", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/progress.go#L232-L242", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/progress.go", "func_name": "freeTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// freeTo frees the inflights smaller or equal to the given `to` flight.", "docstring_tokens": ["freeTo", "frees", "the", "inflights", "smaller", "or", "equal", "to", "the", "given", "to", "flight", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/progress.go#L245-L272", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/snap/db.go", "func_name": "SaveDBFrom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveDBFrom saves snapshot of the database from the given reader. It\n// guarantees the save operation is atomic.", "docstring_tokens": ["SaveDBFrom", "saves", "snapshot", "of", "the", "database", "from", "the", "given", "reader", ".", "It", "guarantees", "the", "save", "operation", "is", "atomic", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/snap/db.go#L36-L79", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/snap/db.go", "func_name": "DBFilePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DBFilePath returns the file path for the snapshot of the database with\n// given id. If the snapshot does not exist, it returns error.", "docstring_tokens": ["DBFilePath", "returns", "the", "file", "path", "for", "the", "snapshot", "of", "the", "database", "with", "given", "id", ".", "If", "the", "snapshot", "does", "not", "exist", "it", "returns", "error", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/snap/db.go#L83-L100", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/unique_strings.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set parses a command line set of strings, separated by comma.\n// Implements \"flag.Value\" interface.\n// The values are set in order.", "docstring_tokens": ["Set", "parses", "a", "command", "line", "set", "of", "strings", "separated", "by", "comma", ".", "Implements", "flag", ".", "Value", "interface", ".", "The", "values", "are", "set", "in", "order", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/unique_strings.go#L32-L38", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/unique_strings.go", "func_name": "NewUniqueStringsValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewUniqueStringsValue implements string slice as \"flag.Value\" interface.\n// Given value is to be separated by comma.\n// The values are set in order.", "docstring_tokens": ["NewUniqueStringsValue", "implements", "string", "slice", "as", "flag", ".", "Value", "interface", ".", "Given", "value", "is", "to", "be", "separated", "by", "comma", ".", "The", "values", "are", "set", "in", "order", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/unique_strings.go#L57-L66", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/unique_strings.go", "func_name": "UniqueStringsFromFlag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UniqueStringsFromFlag returns a string slice from the flag.", "docstring_tokens": ["UniqueStringsFromFlag", "returns", "a", "string", "slice", "from", "the", "flag", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/unique_strings.go#L69-L71", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/unique_strings.go", "func_name": "UniqueStringsMapFromFlag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UniqueStringsMapFromFlag returns a map of strings from the flag.", "docstring_tokens": ["UniqueStringsMapFromFlag", "returns", "a", "map", "of", "strings", "from", "the", "flag", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/unique_strings.go#L74-L76", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/report/report.go", "func_name": "Percentiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Percentiles returns percentile distribution of float64 slice.", "docstring_tokens": ["Percentiles", "returns", "percentile", "distribution", "of", "float64", "slice", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/report/report.go#L209-L211", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/config.go", "func_name": "VerifyBootstrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifyBootstrap sanity-checks the initial config for bootstrap case\n// and returns an error for things that should never happen.", "docstring_tokens": ["VerifyBootstrap", "sanity", "-", "checks", "the", "initial", "config", "for", "bootstrap", "case", "and", "returns", "an", "error", "for", "things", "that", "should", "never", "happen", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/config.go#L161-L175", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/config.go", "func_name": "VerifyJoinExisting", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifyJoinExisting sanity-checks the initial config for join existing cluster\n// case and returns an error for things that should never happen.", "docstring_tokens": ["VerifyJoinExisting", "sanity", "-", "checks", "the", "initial", "config", "for", "join", "existing", "cluster", "case", "and", "returns", "an", "error", "for", "things", "that", "should", "never", "happen", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/config.go#L179-L192", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/config.go", "func_name": "hasLocalMember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hasLocalMember checks that the cluster at least contains the local server.", "docstring_tokens": ["hasLocalMember", "checks", "that", "the", "cluster", "at", "least", "contains", "the", "local", "server", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/config.go#L195-L200", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/config.go", "func_name": "advertiseMatchesCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// advertiseMatchesCluster confirms peer URLs match those in the cluster peer list.", "docstring_tokens": ["advertiseMatchesCluster", "confirms", "peer", "URLs", "match", "those", "in", "the", "cluster", "peer", "list", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/config.go#L203-L252", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/config.go", "func_name": "ReqTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReqTimeout returns timeout for request to finish.", "docstring_tokens": ["ReqTimeout", "returns", "timeout", "for", "request", "to", "finish", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/config.go#L268-L272", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/status.go", "func_name": "getStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getStatus gets a copy of the current raft status.", "docstring_tokens": ["getStatus", "gets", "a", "copy", "of", "the", "current", "raft", "status", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/status.go#L59-L65", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/netutil/routes_linux.go", "func_name": "GetDefaultHost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDefaultHost obtains the first IP address of machine from the routing table and returns the IP address as string.\n// An IPv4 address is preferred to an IPv6 address for backward compatibility.", "docstring_tokens": ["GetDefaultHost", "obtains", "the", "first", "IP", "address", "of", "machine", "from", "the", "routing", "table", "and", "returns", "the", "IP", "address", "as", "string", ".", "An", "IPv4", "address", "is", "preferred", "to", "an", "IPv6", "address", "for", "backward", "compatibility", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/netutil/routes_linux.go#L36-L65", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/netutil/routes_linux.go", "func_name": "getIfaceAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Used to get an address of interface.", "docstring_tokens": ["Used", "to", "get", "an", "address", "of", "interface", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/netutil/routes_linux.go#L130-L157", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/netutil/routes_linux.go", "func_name": "getIfaceLink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Used to get a name of interface.", "docstring_tokens": ["Used", "to", "get", "a", "name", "of", "interface", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/netutil/routes_linux.go#L160-L186", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/ls_command.go", "func_name": "lsCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lsCommandFunc executes the \"ls\" command.", "docstring_tokens": ["lsCommandFunc", "executes", "the", "ls", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/ls_command.go#L43-L61", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/ls_command.go", "func_name": "printLs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printLs writes a response out in a manner similar to the `ls` command in unix.\n// Non-empty directories list their contents and files list their name.", "docstring_tokens": ["printLs", "writes", "a", "response", "out", "in", "a", "manner", "similar", "to", "the", "ls", "command", "in", "unix", ".", "Non", "-", "empty", "directories", "list", "their", "contents", "and", "files", "list", "their", "name", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/ls_command.go#L65-L77", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/ls_command.go", "func_name": "rPrint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rPrint recursively prints out the nodes in the node structure.", "docstring_tokens": ["rPrint", "recursively", "prints", "out", "the", "nodes", "in", "the", "node", "structure", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/ls_command.go#L80-L90", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/runner/lease_renewer_command.go", "func_name": "NewLeaseRenewerCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLeaseRenewerCommand returns the cobra command for \"lease-renewer runner\".", "docstring_tokens": ["NewLeaseRenewerCommand", "returns", "the", "cobra", "command", "for", "lease", "-", "renewer", "runner", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/runner/lease_renewer_command.go#L36-L44", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/snap/snapshotter.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads the snapshot named by snapname and returns the snapshot.", "docstring_tokens": ["Read", "reads", "the", "snapshot", "named", "by", "snapname", "and", "returns", "the", "snapshot", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/snap/snapshotter.go#L152-L215", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/tlsutil/cipher_suites.go", "func_name": "GetCipherSuite", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCipherSuite returns the corresponding cipher suite,\n// and boolean value if it is supported.", "docstring_tokens": ["GetCipherSuite", "returns", "the", "corresponding", "cipher", "suite", "and", "boolean", "value", "if", "it", "is", "supported", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/tlsutil/cipher_suites.go#L48-L51", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/pipeline.go", "func_name": "post", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// post POSTs a data payload to a url. Returns nil if the POST succeeds,\n// error on any failure.", "docstring_tokens": ["post", "POSTs", "a", "data", "payload", "to", "a", "url", ".", "Returns", "nil", "if", "the", "POST", "succeeds", "error", "on", "any", "failure", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/pipeline.go#L136-L177", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/raft.go", "func_name": "send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// send persists state to stable storage and then sends to its mailbox.", "docstring_tokens": ["send", "persists", "state", "to", "stable", "storage", "and", "then", "sends", "to", "its", "mailbox", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/raft.go#L427-L458", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/raft.go", "func_name": "sendHeartbeat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendHeartbeat sends a heartbeat RPC to the given peer.", "docstring_tokens": ["sendHeartbeat", "sends", "a", "heartbeat", "RPC", "to", "the", "given", "peer", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/raft.go#L542-L558", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/raft.go", "func_name": "bcastAppend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// bcastAppend sends RPC, with entries to all peers that are not up-to-date\n// according to the progress recorded in r.prs.", "docstring_tokens": ["bcastAppend", "sends", "RPC", "with", "entries", "to", "all", "peers", "that", "are", "not", "up", "-", "to", "-", "date", "according", "to", "the", "progress", "recorded", "in", "r", ".", "prs", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/raft.go#L572-L580", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/raft.go", "func_name": "bcastHeartbeat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// bcastHeartbeat sends RPC, without entries to all the peers.", "docstring_tokens": ["bcastHeartbeat", "sends", "RPC", "without", "entries", "to", "all", "the", "peers", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/raft.go#L583-L590", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/raft.go", "func_name": "tickElection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tickElection is run by followers and candidates after r.electionTimeout.", "docstring_tokens": ["tickElection", "is", "run", "by", "followers", "and", "candidates", "after", "r", ".", "electionTimeout", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/raft.go#L671-L678", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/raft.go", "func_name": "tickHeartbeat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tickHeartbeat is run by leaders to send a MsgBeat after r.heartbeatTimeout.", "docstring_tokens": ["tickHeartbeat", "is", "run", "by", "leaders", "to", "send", "a", "MsgBeat", "after", "r", ".", "heartbeatTimeout", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/raft.go#L681-L704", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/raft.go", "func_name": "stepCandidate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stepCandidate is shared by StateCandidate and StatePreCandidate; the difference is\n// whether they respond to MsgVoteResp or MsgPreVoteResp.", "docstring_tokens": ["stepCandidate", "is", "shared", "by", "StateCandidate", "and", "StatePreCandidate", ";", "the", "difference", "is", "whether", "they", "respond", "to", "MsgVoteResp", "or", "MsgPreVoteResp", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/raft.go#L1210-L1253", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/raft.go", "func_name": "restore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// restore recovers the state machine from a snapshot. It restores the log and the\n// configuration of state machine.", "docstring_tokens": ["restore", "recovers", "the", "state", "machine", "from", "a", "snapshot", ".", "It", "restores", "the", "log", "and", "the", "configuration", "of", "state", "machine", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/raft.go#L1348-L1378", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/raft.go", "func_name": "promotable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// promotable indicates whether state machine can be promoted to leader,\n// which is true when its own id is in progress list.", "docstring_tokens": ["promotable", "indicates", "whether", "state", "machine", "can", "be", "promoted", "to", "leader", "which", "is", "true", "when", "its", "own", "id", "is", "in", "progress", "list", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/raft.go#L1394-L1397", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/raft.go", "func_name": "checkQuorumActive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkQuorumActive returns true if the quorum is active from\n// the view of the local raft state machine. Otherwise, it returns\n// false.\n// checkQuorumActive also resets all RecentActive to false.", "docstring_tokens": ["checkQuorumActive", "returns", "true", "if", "the", "quorum", "is", "active", "from", "the", "view", "of", "the", "local", "raft", "state", "machine", ".", "Otherwise", "it", "returns", "false", ".", "checkQuorumActive", "also", "resets", "all", "RecentActive", "to", "false", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/raft.go#L1502-L1519", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/raft.go", "func_name": "increaseUncommittedSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// increaseUncommittedSize computes the size of the proposed entries and\n// determines whether they would push leader over its maxUncommittedSize limit.\n// If the new entries would exceed the limit, the method returns false. If not,\n// the increase in uncommitted entry size is recorded and the method returns\n// true.", "docstring_tokens": ["increaseUncommittedSize", "computes", "the", "size", "of", "the", "proposed", "entries", "and", "determines", "whether", "they", "would", "push", "leader", "over", "its", "maxUncommittedSize", "limit", ".", "If", "the", "new", "entries", "would", "exceed", "the", "limit", "the", "method", "returns", "false", ".", "If", "not", "the", "increase", "in", "uncommitted", "entry", "size", "is", "recorded", "and", "the", "method", "returns", "true", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/raft.go#L1534-L1548", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/raft.go", "func_name": "reduceUncommittedSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// reduceUncommittedSize accounts for the newly committed entries by decreasing\n// the uncommitted entry size limit.", "docstring_tokens": ["reduceUncommittedSize", "accounts", "for", "the", "newly", "committed", "entries", "by", "decreasing", "the", "uncommitted", "entry", "size", "limit", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/raft.go#L1552-L1570", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3compactor/periodic.go", "func_name": "newPeriodic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPeriodic creates a new instance of Periodic compactor that purges\n// the log older than h Duration.", "docstring_tokens": ["newPeriodic", "creates", "a", "new", "instance", "of", "Periodic", "compactor", "that", "purges", "the", "log", "older", "than", "h", "Duration", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3compactor/periodic.go#L50-L61", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3compactor/periodic.go", "func_name": "Pause", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pause pauses periodic compactor.", "docstring_tokens": ["Pause", "pauses", "periodic", "compactor", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3compactor/periodic.go#L206-L210", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3compactor/periodic.go", "func_name": "Resume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Resume resumes periodic compactor.", "docstring_tokens": ["Resume", "resumes", "periodic", "compactor", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3compactor/periodic.go#L213-L217", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/mutex.go", "func_name": "Lock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Lock locks the mutex with a cancelable context. If the context is canceled\n// while trying to acquire the lock, the mutex tries to clean its stale lock entry.", "docstring_tokens": ["Lock", "locks", "the", "mutex", "with", "a", "cancelable", "context", ".", "If", "the", "context", "is", "canceled", "while", "trying", "to", "acquire", "the", "lock", "the", "mutex", "tries", "to", "clean", "its", "stale", "lock", "entry", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/mutex.go#L42-L78", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/mutex.go", "func_name": "NewLocker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLocker creates a sync.Locker backed by an etcd mutex.", "docstring_tokens": ["NewLocker", "creates", "a", "sync", ".", "Locker", "backed", "by", "an", "etcd", "mutex", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/mutex.go#L115-L117", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/schedule/schedule.go", "func_name": "NewFIFOScheduler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFIFOScheduler returns a Scheduler that schedules jobs in FIFO\n// order sequentially", "docstring_tokens": ["NewFIFOScheduler", "returns", "a", "Scheduler", "that", "schedules", "jobs", "in", "FIFO", "order", "sequentially"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/schedule/schedule.go#L63-L72", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/schedule/schedule.go", "func_name": "Schedule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Schedule schedules a job that will be ran in FIFO order sequentially.", "docstring_tokens": ["Schedule", "schedules", "a", "job", "that", "will", "be", "ran", "in", "FIFO", "order", "sequentially", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/schedule/schedule.go#L75-L90", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/schedule/schedule.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop stops the scheduler and cancels all pending jobs.", "docstring_tokens": ["Stop", "stops", "the", "scheduler", "and", "cancels", "all", "pending", "jobs", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/schedule/schedule.go#L119-L125", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/agent/server.go", "func_name": "NewServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServer returns a new agent server.", "docstring_tokens": ["NewServer", "returns", "a", "new", "agent", "server", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/agent/server.go#L61-L74", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/agent/server.go", "func_name": "StartServe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartServe starts serving agent server.", "docstring_tokens": ["StartServe", "starts", "serving", "agent", "server", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/agent/server.go#L84-L119", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/agent/server.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop stops serving gRPC server.", "docstring_tokens": ["Stop", "stops", "serving", "gRPC", "server", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/agent/server.go#L122-L126", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/agent/server.go", "func_name": "Transport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Transport communicates with etcd tester.", "docstring_tokens": ["Transport", "communicates", "with", "etcd", "tester", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/agent/server.go#L129-L169", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/osutil/interrupt_unix.go", "func_name": "RegisterInterruptHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterInterruptHandler registers a new InterruptHandler. Handlers registered\n// after interrupt handing was initiated will not be executed.", "docstring_tokens": ["RegisterInterruptHandler", "registers", "a", "new", "InterruptHandler", ".", "Handlers", "registered", "after", "interrupt", "handing", "was", "initiated", "will", "not", "be", "executed", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/osutil/interrupt_unix.go#L41-L45", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/osutil/interrupt_unix.go", "func_name": "HandleInterrupts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleInterrupts calls the handler functions on receiving a SIGINT or SIGTERM.", "docstring_tokens": ["HandleInterrupts", "calls", "the", "handler", "functions", "on", "receiving", "a", "SIGINT", "or", "SIGTERM", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/osutil/interrupt_unix.go#L48-L80", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/op.go", "func_name": "OpGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpGet returns \"get\" operation based on given key and operation options.", "docstring_tokens": ["OpGet", "returns", "get", "operation", "based", "on", "given", "key", "and", "operation", "options", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/op.go#L220-L228", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/op.go", "func_name": "OpDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpDelete returns \"delete\" operation based on given key and operation options.", "docstring_tokens": ["OpDelete", "returns", "delete", "operation", "based", "on", "given", "key", "and", "operation", "options", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/op.go#L231-L261", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/op.go", "func_name": "OpPut", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpPut returns \"put\" operation based on given key-value and operation options.", "docstring_tokens": ["OpPut", "returns", "put", "operation", "based", "on", "given", "key", "-", "value", "and", "operation", "options", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/op.go#L264-L290", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/op.go", "func_name": "OpTxn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpTxn returns \"txn\" operation based on given transaction conditions.", "docstring_tokens": ["OpTxn", "returns", "txn", "operation", "based", "on", "given", "transaction", "conditions", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/op.go#L293-L295", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/op.go", "func_name": "WithFromKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithFromKey specifies the range of 'Get', 'Delete', 'Watch' requests\n// to be equal or greater than the key in the argument.", "docstring_tokens": ["WithFromKey", "specifies", "the", "range", "of", "Get", "Delete", "Watch", "requests", "to", "be", "equal", "or", "greater", "than", "the", "key", "in", "the", "argument", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/op.go#L403-L410", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/op.go", "func_name": "withTop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// withTop gets the first key over the get's prefix given a sort order", "docstring_tokens": ["withTop", "gets", "the", "first", "key", "over", "the", "get", "s", "prefix", "given", "a", "sort", "order"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/op.go#L461-L463", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "wal/util.go", "func_name": "Exist", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exist returns true if there are any files in a given directory.", "docstring_tokens": ["Exist", "returns", "true", "if", "there", "are", "any", "files", "in", "a", "given", "directory", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/wal/util.go#L30-L36", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "wal/util.go", "func_name": "searchIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// searchIndex returns the last array index of names whose raft index section is\n// equal to or smaller than the given index.\n// The given names MUST be sorted.", "docstring_tokens": ["searchIndex", "returns", "the", "last", "array", "index", "of", "names", "whose", "raft", "index", "section", "is", "equal", "to", "or", "smaller", "than", "the", "given", "index", ".", "The", "given", "names", "MUST", "be", "sorted", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/wal/util.go#L41-L57", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "wal/util.go", "func_name": "isValidSeq", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// names should have been sorted based on sequence number.\n// isValidSeq checks whether seq increases continuously.", "docstring_tokens": ["names", "should", "have", "been", "sorted", "based", "on", "sequence", "number", ".", "isValidSeq", "checks", "whether", "seq", "increases", "continuously", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/wal/util.go#L61-L78", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/transport/listener.go", "func_name": "NewListener", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewListener creates a new listner.", "docstring_tokens": ["NewListener", "creates", "a", "new", "listner", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/transport/listener.go#L40-L45", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/transport/listener.go", "func_name": "cafiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cafiles returns a list of CA file paths.", "docstring_tokens": ["cafiles", "returns", "a", "list", "of", "CA", "file", "paths", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/transport/listener.go#L324-L330", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/transport/listener.go", "func_name": "ServerConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServerConfig generates a tls.Config object for use by an HTTP server.", "docstring_tokens": ["ServerConfig", "generates", "a", "tls", ".", "Config", "object", "for", "use", "by", "an", "HTTP", "server", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/transport/listener.go#L333-L357", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/transport/listener.go", "func_name": "ClientConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientConfig generates a tls.Config object for use by an HTTP client.", "docstring_tokens": ["ClientConfig", "generates", "a", "tls", ".", "Config", "object", "for", "use", "by", "an", "HTTP", "client", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/transport/listener.go#L360-L408", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/transport/keepalive_listener.go", "func_name": "newTLSKeepaliveListener", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewListener creates a Listener which accepts connections from an inner\n// Listener and wraps each connection with Server.\n// The configuration config must be non-nil and must have\n// at least one certificate.", "docstring_tokens": ["NewListener", "creates", "a", "Listener", "which", "accepts", "connections", "from", "an", "inner", "Listener", "and", "wraps", "each", "connection", "with", "Server", ".", "The", "configuration", "config", "must", "be", "non", "-", "nil", "and", "must", "have", "at", "least", "one", "certificate", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/transport/keepalive_listener.go#L89-L94", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/apply_v2.go", "func_name": "applyV2Request", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// applyV2Request interprets r as a call to v2store.X\n// and returns a Response interpreted from v2store.Event", "docstring_tokens": ["applyV2Request", "interprets", "r", "as", "a", "call", "to", "v2store", ".", "X", "and", "returns", "a", "Response", "interpreted", "from", "v2store", ".", "Event"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/apply_v2.go#L116-L134", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/role_command.go", "func_name": "NewRoleCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRoleCommand returns the cobra command for \"role\".", "docstring_tokens": ["NewRoleCommand", "returns", "the", "cobra", "command", "for", "role", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/role_command.go#L31-L45", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/role_command.go", "func_name": "roleAddCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// roleAddCommandFunc executes the \"role add\" command.", "docstring_tokens": ["roleAddCommandFunc", "executes", "the", "role", "add", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/role_command.go#L106-L117", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/role_command.go", "func_name": "roleGetCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// roleGetCommandFunc executes the \"role get\" command.", "docstring_tokens": ["roleGetCommandFunc", "executes", "the", "role", "get", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/role_command.go#L134-L146", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/role_command.go", "func_name": "roleGrantPermissionCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// roleGrantPermissionCommandFunc executes the \"role grant-permission\" command.", "docstring_tokens": ["roleGrantPermissionCommandFunc", "executes", "the", "role", "grant", "-", "permission", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/role_command.go#L163-L180", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/role_command.go", "func_name": "roleRevokePermissionCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// roleRevokePermissionCommandFunc executes the \"role revoke-permission\" command.", "docstring_tokens": ["roleRevokePermissionCommandFunc", "executes", "the", "role", "revoke", "-", "permission", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/role_command.go#L183-L194", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "NewCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCluster returns an unlaunched cluster of the given size which has been\n// set to use static bootstrap.", "docstring_tokens": ["NewCluster", "returns", "an", "unlaunched", "cluster", "of", "the", "given", "size", "which", "has", "been", "set", "to", "use", "static", "bootstrap", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L208-L210", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "NewClusterByConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClusterByConfig returns an unlaunched cluster defined by a cluster configuration", "docstring_tokens": ["NewClusterByConfig", "returns", "an", "unlaunched", "cluster", "defined", "by", "a", "cluster", "configuration"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L213-L215", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "HTTPMembers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTPMembers returns a list of all active members as client.Members", "docstring_tokens": ["HTTPMembers", "returns", "a", "list", "of", "all", "active", "members", "as", "client", ".", "Members"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L261-L276", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "waitLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitLeader waits until given members agree on the same leader.", "docstring_tokens": ["waitLeader", "waits", "until", "given", "members", "agree", "on", "the", "same", "leader", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L427-L470", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "waitNoLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitNoLeader waits until given members lose leader.", "docstring_tokens": ["waitNoLeader", "waits", "until", "given", "members", "lose", "leader", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L475-L492", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "isMembersEqual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isMembersEqual checks whether two members equal except ID field.\n// The given wmembs should always set ID field to empty string.", "docstring_tokens": ["isMembersEqual", "checks", "whether", "two", "members", "equal", "except", "ID", "field", ".", "The", "given", "wmembs", "should", "always", "set", "ID", "field", "to", "empty", "string", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L511-L518", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "listenGRPC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// listenGRPC starts a grpc server over a unix domain socket on the member", "docstring_tokens": ["listenGRPC", "starts", "a", "grpc", "server", "over", "a", "unix", "domain", "socket", "on", "the", "member"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L693-L711", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "NewClientV3", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClientV3 creates a new grpc client connection to the member", "docstring_tokens": ["NewClientV3", "creates", "a", "new", "grpc", "client", "connection", "to", "the", "member"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L726-L750", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "Clone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clone returns a member with the same server configuration. The returned\n// member will not set PeerListeners and ClientListeners.", "docstring_tokens": ["Clone", "returns", "a", "member", "with", "the", "same", "server", "configuration", ".", "The", "returned", "member", "will", "not", "set", "PeerListeners", "and", "ClientListeners", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L754-L782", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close stops the member's etcdserver and closes its connections", "docstring_tokens": ["Close", "stops", "the", "member", "s", "etcdserver", "and", "closes", "its", "connections"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L1006-L1027", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop stops the member, but the data dir of the member is preserved.", "docstring_tokens": ["Stop", "stops", "the", "member", "but", "the", "data", "dir", "of", "the", "member", "is", "preserved", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L1030-L1047", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "checkLeaderTransition", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkLeaderTransition waits for leader transition, returning the new leader ID.", "docstring_tokens": ["checkLeaderTransition", "waits", "for", "leader", "transition", "returning", "the", "new", "leader", "ID", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L1050-L1056", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "Restart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Restart starts the member using the preserved data dir.", "docstring_tokens": ["Restart", "starts", "the", "member", "using", "the", "preserved", "data", "dir", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L1064-L1099", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "Terminate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Terminate stops the member and removes the data dir.", "docstring_tokens": ["Terminate", "stops", "the", "member", "and", "removes", "the", "data", "dir", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L1102-L1123", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "Metric", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Metric gets the metric value for a member", "docstring_tokens": ["Metric", "gets", "the", "metric", "value", "for", "a", "member"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L1126-L1149", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "InjectPartition", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InjectPartition drops connections from m to others, vice versa.", "docstring_tokens": ["InjectPartition", "drops", "connections", "from", "m", "to", "others", "vice", "versa", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L1152-L1157", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "RecoverPartition", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RecoverPartition recovers connections from m to others, vice versa.", "docstring_tokens": ["RecoverPartition", "recovers", "connections", "from", "m", "to", "others", "vice", "versa", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L1160-L1165", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "integration/cluster.go", "func_name": "NewClusterV3", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClusterV3 returns a launched cluster with a grpc client connection\n// for each cluster member.", "docstring_tokens": ["NewClusterV3", "returns", "a", "launched", "cluster", "with", "a", "grpc", "client", "connection", "for", "each", "cluster", "member", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/integration/cluster.go#L1206-L1227", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "auth/options.go", "func_name": "ParseWithDefaults", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseWithDefaults will load options from the specified map or set defaults where appropriate", "docstring_tokens": ["ParseWithDefaults", "will", "load", "options", "from", "the", "specified", "map", "or", "set", "defaults", "where", "appropriate"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/auth/options.go#L54-L60", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "auth/options.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse will load options from the specified map", "docstring_tokens": ["Parse", "will", "load", "options", "from", "the", "specified", "map"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/auth/options.go#L63-L94", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "auth/options.go", "func_name": "Key", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Key will parse and return the appropriately typed key for the selected signature method", "docstring_tokens": ["Key", "will", "parse", "and", "return", "the", "appropriately", "typed", "key", "for", "the", "selected", "signature", "method"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/auth/options.go#L97-L108", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3rpc/header.go", "func_name": "fill", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fill populates pb.ResponseHeader using etcdserver information", "docstring_tokens": ["fill", "populates", "pb", ".", "ResponseHeader", "using", "etcdserver", "information"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3rpc/header.go#L39-L49", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/grpcproxy/watch_broadcast.go", "func_name": "add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// add puts a watcher into receiving a broadcast if its revision at least\n// meets the broadcast revision. Returns true if added.", "docstring_tokens": ["add", "puts", "a", "watcher", "into", "receiving", "a", "broadcast", "if", "its", "revision", "at", "least", "meets", "the", "broadcast", "revision", ".", "Returns", "true", "if", "added", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/grpcproxy/watch_broadcast.go#L91-L122", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/watcher.go", "func_name": "Watch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Watch creates a new watcher in the stream and returns its WatchID.", "docstring_tokens": ["Watch", "creates", "a", "new", "watcher", "in", "the", "stream", "and", "returns", "its", "WatchID", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/watcher.go#L108-L136", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "wal/encoder.go", "func_name": "newFileEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newFileEncoder creates a new encoder with current file offset for the page writer.", "docstring_tokens": ["newFileEncoder", "creates", "a", "new", "encoder", "with", "current", "file", "offset", "for", "the", "page", "writer", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/wal/encoder.go#L54-L60", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/fileutil/purge.go", "func_name": "purgeFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// purgeFile is the internal implementation for PurgeFile which can post purged files to purgec if non-nil.", "docstring_tokens": ["purgeFile", "is", "the", "internal", "implementation", "for", "PurgeFile", "which", "can", "post", "purged", "files", "to", "purgec", "if", "non", "-", "nil", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/fileutil/purge.go#L32-L88", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/strings.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set parses a command line set of strings, separated by comma.\n// Implements \"flag.Value\" interface.", "docstring_tokens": ["Set", "parses", "a", "command", "line", "set", "of", "strings", "separated", "by", "comma", ".", "Implements", "flag", ".", "Value", "interface", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/strings.go#L28-L31", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/strings.go", "func_name": "NewStringsValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStringsValue implements string slice as \"flag.Value\" interface.\n// Given value is to be separated by comma.", "docstring_tokens": ["NewStringsValue", "implements", "string", "slice", "as", "flag", ".", "Value", "interface", ".", "Given", "value", "is", "to", "be", "separated", "by", "comma", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/strings.go#L38-L47", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/strings.go", "func_name": "StringsFromFlag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StringsFromFlag returns a string slice from the flag.", "docstring_tokens": ["StringsFromFlag", "returns", "a", "string", "slice", "from", "the", "flag", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/strings.go#L50-L52", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "version/version.go", "func_name": "Cluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cluster only keeps the major.minor.", "docstring_tokens": ["Cluster", "only", "keeps", "the", "major", ".", "minor", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/version/version.go#L50-L56", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/ioutil/pagewriter.go", "func_name": "NewPageWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPageWriter creates a new PageWriter. pageBytes is the number of bytes\n// to write per page. pageOffset is the starting offset of io.Writer.", "docstring_tokens": ["NewPageWriter", "creates", "a", "new", "PageWriter", ".", "pageBytes", "is", "the", "number", "of", "bytes", "to", "write", "per", "page", ".", "pageOffset", "is", "the", "starting", "offset", "of", "io", ".", "Writer", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/ioutil/pagewriter.go#L43-L51", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/watcher_hub.go", "func_name": "watch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Watch function returns a Watcher.\n// If recursive is true, the first change after index under key will be sent to the event channel of the watcher.\n// If recursive is false, the first change after index at key will be sent to the event channel of the watcher.\n// If index is zero, watch will start from the current index + 1.", "docstring_tokens": ["Watch", "function", "returns", "a", "Watcher", ".", "If", "recursive", "is", "true", "the", "first", "change", "after", "index", "under", "key", "will", "be", "sent", "to", "the", "event", "channel", "of", "the", "watcher", ".", "If", "recursive", "is", "false", "the", "first", "change", "after", "index", "at", "key", "will", "be", "sent", "to", "the", "event", "channel", "of", "the", "watcher", ".", "If", "index", "is", "zero", "watch", "will", "start", "from", "the", "current", "index", "+", "1", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/watcher_hub.go#L59-L116", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/watcher_hub.go", "func_name": "notify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// notify function accepts an event and notify to the watchers.", "docstring_tokens": ["notify", "function", "accepts", "an", "event", "and", "notify", "to", "the", "watchers", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/watcher_hub.go#L123-L139", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/watcher_hub.go", "func_name": "clone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// clone function clones the watcherHub and return the cloned one.\n// only clone the static content. do not clone the current watchers.", "docstring_tokens": ["clone", "function", "clones", "the", "watcherHub", "and", "return", "the", "cloned", "one", ".", "only", "clone", "the", "static", "content", ".", "do", "not", "clone", "the", "current", "watchers", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/watcher_hub.go#L180-L186", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/watcher_hub.go", "func_name": "isHidden", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isHidden checks to see if key path is considered hidden to watch path i.e. the\n// last element is hidden or it's within a hidden directory", "docstring_tokens": ["isHidden", "checks", "to", "see", "if", "key", "path", "is", "considered", "hidden", "to", "watch", "path", "i", ".", "e", ".", "the", "last", "element", "is", "hidden", "or", "it", "s", "within", "a", "hidden", "directory"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/watcher_hub.go#L190-L200", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/agent/handler.go", "func_name": "createEtcdLogFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// just archive the first file", "docstring_tokens": ["just", "archive", "the", "first", "file"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/agent/handler.go#L89-L97", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/agent/handler.go", "func_name": "runEtcd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// start but do not wait for it to complete", "docstring_tokens": ["start", "but", "do", "not", "wait", "for", "it", "to", "complete"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/agent/handler.go#L140-L175", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/agent/handler.go", "func_name": "stopEtcd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SIGQUIT to exit with stackstrace", "docstring_tokens": ["SIGQUIT", "to", "exit", "with", "stackstrace"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/agent/handler.go#L178-L223", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/agent/handler.go", "func_name": "handle_SIGQUIT_ETCD_AND_REMOVE_DATA_AND_STOP_AGENT", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stop proxy, etcd, delete data directory", "docstring_tokens": ["stop", "proxy", "etcd", "delete", "data", "directory"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/agent/handler.go#L694-L720", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/transport/limit_listen.go", "func_name": "LimitListener", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LimitListener returns a Listener that accepts at most n simultaneous\n// connections from the provided Listener.", "docstring_tokens": ["LimitListener", "returns", "a", "Listener", "that", "accepts", "at", "most", "n", "simultaneous", "connections", "from", "the", "provided", "Listener", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/transport/limit_listen.go#L32-L34", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2http/http.go", "func_name": "allowMethod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// allowMethod verifies that the given method is one of the allowed methods,\n// and if not, it writes an error to w. A boolean is returned indicating\n// whether or not the method is allowed.", "docstring_tokens": ["allowMethod", "verifies", "that", "the", "given", "method", "is", "one", "of", "the", "allowed", "methods", "and", "if", "not", "it", "writes", "an", "error", "to", "w", ".", "A", "boolean", "is", "returned", "indicating", "whether", "or", "not", "the", "method", "is", "allowed", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2http/http.go#L68-L77", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3rpc/watch.go", "func_name": "NewWatchServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWatchServer returns a new watch server.", "docstring_tokens": ["NewWatchServer", "returns", "a", "new", "watch", "server", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3rpc/watch.go#L48-L61", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3rpc/watch.go", "func_name": "FiltersFromRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FiltersFromRequest returns \"mvcc.FilterFunc\" from a given watch create request.", "docstring_tokens": ["FiltersFromRequest", "returns", "mvcc", ".", "FilterFunc", "from", "a", "given", "watch", "create", "request", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3rpc/watch.go#L572-L584", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/http.go", "func_name": "newPipelineHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPipelineHandler returns a handler for handling raft messages\n// from pipeline for RaftPrefix.\n//\n// The handler reads out the raft message from request body,\n// and forwards it to the given raft state machine for processing.", "docstring_tokens": ["newPipelineHandler", "returns", "a", "handler", "for", "handling", "raft", "messages", "from", "pipeline", "for", "RaftPrefix", ".", "The", "handler", "reads", "out", "the", "raft", "message", "from", "request", "body", "and", "forwards", "it", "to", "the", "given", "raft", "state", "machine", "for", "processing", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/http.go#L78-L86", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/http.go", "func_name": "checkClusterCompatibilityFromHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkClusterCompatibilityFromHeader checks the cluster compatibility of\n// the local member from the given header.\n// It checks whether the version of local member is compatible with\n// the versions in the header, and whether the cluster ID of local member\n// matches the one in the header.", "docstring_tokens": ["checkClusterCompatibilityFromHeader", "checks", "the", "cluster", "compatibility", "of", "the", "local", "member", "from", "the", "given", "header", ".", "It", "checks", "whether", "the", "version", "of", "local", "member", "is", "compatible", "with", "the", "versions", "in", "the", "header", "and", "whether", "the", "cluster", "ID", "of", "local", "member", "matches", "the", "one", "in", "the", "header", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/http.go#L492-L555", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/clientv3util/util.go", "func_name": "KeyExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeyExists returns a comparison operation that evaluates to true iff the given\n// key exists. It does this by checking if the key `Version` is greater than 0.\n// It is a useful guard in transaction delete operations.", "docstring_tokens": ["KeyExists", "returns", "a", "comparison", "operation", "that", "evaluates", "to", "true", "iff", "the", "given", "key", "exists", ".", "It", "does", "this", "by", "checking", "if", "the", "key", "Version", "is", "greater", "than", "0", ".", "It", "is", "a", "useful", "guard", "in", "transaction", "delete", "operations", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/clientv3util/util.go#L25-L27", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/clientv3util/util.go", "func_name": "KeyMissing", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeyMissing returns a comparison operation that evaluates to true iff the\n// given key does not exist.", "docstring_tokens": ["KeyMissing", "returns", "a", "comparison", "operation", "that", "evaluates", "to", "true", "iff", "the", "given", "key", "does", "not", "exist", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/clientv3util/util.go#L31-L33", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/transport/tls.go", "func_name": "ValidateSecureEndpoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateSecureEndpoints scans the given endpoints against tls info, returning only those\n// endpoints that could be validated as secure.", "docstring_tokens": ["ValidateSecureEndpoints", "scans", "the", "given", "endpoints", "against", "tls", "info", "returning", "only", "those", "endpoints", "that", "could", "be", "validated", "as", "secure", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/transport/tls.go#L25-L49", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/recipes/key.go", "func_name": "putNewKV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// putNewKV attempts to create the given key, only succeeding if the key did\n// not yet exist.", "docstring_tokens": ["putNewKV", "attempts", "to", "create", "the", "given", "key", "only", "succeeding", "if", "the", "key", "did", "not", "yet", "exist", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/recipes/key.go#L62-L73", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/recipes/key.go", "func_name": "newUniqueEphemeralKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newUniqueEphemeralKey creates a new unique valueless key associated with a session lease", "docstring_tokens": ["newUniqueEphemeralKey", "creates", "a", "new", "unique", "valueless", "key", "associated", "with", "a", "session", "lease"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/recipes/key.go#L149-L151", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/update_dir_command.go", "func_name": "NewUpdateDirCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewUpdateDirCommand returns the CLI command for \"updatedir\".", "docstring_tokens": ["NewUpdateDirCommand", "returns", "the", "CLI", "command", "for", "updatedir", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/update_dir_command.go#L26-L39", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/update_dir_command.go", "func_name": "updatedirCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updatedirCommandFunc executes the \"updatedir\" command.", "docstring_tokens": ["updatedirCommandFunc", "executes", "the", "updatedir", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/update_dir_command.go#L42-L57", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/backup_command.go", "func_name": "handleBackup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleBackup handles a request that intends to do a backup.", "docstring_tokens": ["handleBackup", "handles", "a", "request", "that", "intends", "to", "do", "a", "backup", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/backup_command.go#L58-L103", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/backup_command.go", "func_name": "saveDB", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// saveDB copies the v3 backend and strips cluster information.", "docstring_tokens": ["saveDB", "copies", "the", "v3", "backend", "and", "strips", "cluster", "information", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/backup_command.go#L187-L257", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/runner/watch_command.go", "func_name": "NewWatchCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWatchCommand returns the cobra command for \"watcher runner\".", "docstring_tokens": ["NewWatchCommand", "returns", "the", "cobra", "command", "for", "watcher", "runner", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/runner/watch_command.go#L41-L54", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/snapshot/v3_snapshot.go", "func_name": "NewV3", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewV3 returns a new snapshot Manager for v3.x snapshot.", "docstring_tokens": ["NewV3", "returns", "a", "new", "snapshot", "Manager", "for", "v3", ".", "x", "snapshot", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/snapshot/v3_snapshot.go#L72-L77", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/snapshot/v3_snapshot.go", "func_name": "Save", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Save fetches snapshot from remote etcd server and saves data to target path.", "docstring_tokens": ["Save", "fetches", "snapshot", "from", "remote", "etcd", "server", "and", "saves", "data", "to", "target", "path", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/snapshot/v3_snapshot.go#L92-L145", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/snapshot/v3_snapshot.go", "func_name": "Status", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Status returns the snapshot file information.", "docstring_tokens": ["Status", "returns", "the", "snapshot", "file", "information", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/snapshot/v3_snapshot.go#L156-L205", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/snapshot/v3_snapshot.go", "func_name": "Restore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Restore restores a new etcd data directory from given snapshot file.", "docstring_tokens": ["Restore", "restores", "a", "new", "etcd", "data", "directory", "from", "given", "snapshot", "file", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/snapshot/v3_snapshot.go#L239-L309", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "auth/store.go", "func_name": "NewAuthStore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAuthStore creates a new AuthStore.", "docstring_tokens": ["NewAuthStore", "creates", "a", "new", "AuthStore", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/auth/store.go#L1068-L1122", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "auth/store.go", "func_name": "NewTokenProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTokenProvider creates a new token provider.", "docstring_tokens": ["NewTokenProvider", "creates", "a", "new", "token", "provider", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/auth/store.go#L1276-L1312", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/transport.go", "func_name": "MendPeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MendPeer recovers the message dropping behavior of the given peer.", "docstring_tokens": ["MendPeer", "recovers", "the", "message", "dropping", "behavior", "of", "the", "given", "peer", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/transport.go#L254-L266", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/transport.go", "func_name": "removePeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// the caller of this function must have the peers mutex.", "docstring_tokens": ["the", "caller", "of", "this", "function", "must", "have", "the", "peers", "mutex", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/transport.go#L353-L377", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/transport.go", "func_name": "ActivePeers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ActivePeers returns a channel that closes when an initial\n// peer connection has been established. Use this to wait until the\n// first peer connection becomes active.", "docstring_tokens": ["ActivePeers", "returns", "a", "channel", "that", "closes", "when", "an", "initial", "peer", "connection", "has", "been", "established", ".", "Use", "this", "to", "wait", "until", "the", "first", "peer", "connection", "becomes", "active", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/transport.go#L454-L463", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/netutil/netutil.go", "func_name": "resolveTCPAddrDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// taken from go's ResolveTCP code but uses configurable ctx", "docstring_tokens": ["taken", "from", "go", "s", "ResolveTCP", "code", "but", "uses", "configurable", "ctx"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/netutil/netutil.go#L37-L61", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/netutil/netutil.go", "func_name": "resolveTCPAddrs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resolveTCPAddrs is a convenience wrapper for net.ResolveTCPAddr.\n// resolveTCPAddrs return a new set of url.URLs, in which all DNS hostnames\n// are resolved.", "docstring_tokens": ["resolveTCPAddrs", "is", "a", "convenience", "wrapper", "for", "net", ".", "ResolveTCPAddr", ".", "resolveTCPAddrs", "return", "a", "new", "set", "of", "url", ".", "URLs", "in", "which", "all", "DNS", "hostnames", "are", "resolved", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/netutil/netutil.go#L66-L89", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/netutil/netutil.go", "func_name": "urlsEqual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// urlsEqual checks equality of url.URLS between two arrays.\n// This check pass even if an URL is in hostname and opposite is in IP address.", "docstring_tokens": ["urlsEqual", "checks", "equality", "of", "url", ".", "URLS", "between", "two", "arrays", ".", "This", "check", "pass", "even", "if", "an", "URL", "is", "in", "hostname", "and", "opposite", "is", "in", "IP", "address", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/netutil/netutil.go#L147-L168", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/netutil/netutil.go", "func_name": "URLStringsEqual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URLStringsEqual returns \"true\" if given URLs are valid\n// and resolved to same IP addresses. Otherwise, return \"false\"\n// and error, if any.", "docstring_tokens": ["URLStringsEqual", "returns", "true", "if", "given", "URLs", "are", "valid", "and", "resolved", "to", "same", "IP", "addresses", ".", "Otherwise", "return", "false", "and", "error", "if", "any", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/netutil/netutil.go#L173-L200", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/lease_command.go", "func_name": "NewLeaseCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLeaseCommand returns the cobra command for \"lease\".", "docstring_tokens": ["NewLeaseCommand", "returns", "the", "cobra", "command", "for", "lease", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/lease_command.go#L28-L41", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/lease_command.go", "func_name": "NewLeaseGrantCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLeaseGrantCommand returns the cobra command for \"lease grant\".", "docstring_tokens": ["NewLeaseGrantCommand", "returns", "the", "cobra", "command", "for", "lease", "grant", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/lease_command.go#L44-L53", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/lease_command.go", "func_name": "leaseGrantCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// leaseGrantCommandFunc executes the \"lease grant\" command.", "docstring_tokens": ["leaseGrantCommandFunc", "executes", "the", "lease", "grant", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/lease_command.go#L56-L73", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/lease_command.go", "func_name": "NewLeaseRevokeCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLeaseRevokeCommand returns the cobra command for \"lease revoke\".", "docstring_tokens": ["NewLeaseRevokeCommand", "returns", "the", "cobra", "command", "for", "lease", "revoke", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/lease_command.go#L76-L85", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/lease_command.go", "func_name": "leaseRevokeCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// leaseRevokeCommandFunc executes the \"lease grant\" command.", "docstring_tokens": ["leaseRevokeCommandFunc", "executes", "the", "lease", "grant", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/lease_command.go#L88-L101", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/lease_command.go", "func_name": "NewLeaseTimeToLiveCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLeaseTimeToLiveCommand returns the cobra command for \"lease timetolive\".", "docstring_tokens": ["NewLeaseTimeToLiveCommand", "returns", "the", "cobra", "command", "for", "lease", "timetolive", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/lease_command.go#L106-L116", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/lease_command.go", "func_name": "leaseTimeToLiveCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// leaseTimeToLiveCommandFunc executes the \"lease timetolive\" command.", "docstring_tokens": ["leaseTimeToLiveCommandFunc", "executes", "the", "lease", "timetolive", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/lease_command.go#L119-L132", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/lease_command.go", "func_name": "NewLeaseListCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLeaseListCommand returns the cobra command for \"lease list\".", "docstring_tokens": ["NewLeaseListCommand", "returns", "the", "cobra", "command", "for", "lease", "list", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/lease_command.go#L135-L142", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/lease_command.go", "func_name": "leaseListCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// leaseListCommandFunc executes the \"lease list\" command.", "docstring_tokens": ["leaseListCommandFunc", "executes", "the", "lease", "list", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/lease_command.go#L145-L151", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/lease_command.go", "func_name": "NewLeaseKeepAliveCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLeaseKeepAliveCommand returns the cobra command for \"lease keep-alive\".", "docstring_tokens": ["NewLeaseKeepAliveCommand", "returns", "the", "cobra", "command", "for", "lease", "keep", "-", "alive", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/lease_command.go#L158-L169", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/lease_command.go", "func_name": "leaseKeepAliveCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// leaseKeepAliveCommandFunc executes the \"lease keep-alive\" command.", "docstring_tokens": ["leaseKeepAliveCommandFunc", "executes", "the", "lease", "keep", "-", "alive", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/lease_command.go#L172-L199", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/alarm_command.go", "func_name": "NewAlarmCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAlarmCommand returns the cobra command for \"alarm\".", "docstring_tokens": ["NewAlarmCommand", "returns", "the", "cobra", "command", "for", "alarm", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/alarm_command.go#L25-L35", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/alarm_command.go", "func_name": "alarmDisarmCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// alarmDisarmCommandFunc executes the \"alarm disarm\" command.", "docstring_tokens": ["alarmDisarmCommandFunc", "executes", "the", "alarm", "disarm", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/alarm_command.go#L47-L58", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/alarm_command.go", "func_name": "alarmListCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// alarmListCommandFunc executes the \"alarm list\" command.", "docstring_tokens": ["alarmListCommandFunc", "executes", "the", "alarm", "list", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/alarm_command.go#L70-L81", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/etcd_config.go", "func_name": "Flags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flags returns etcd flags in string slice.", "docstring_tokens": ["Flags", "returns", "etcd", "flags", "in", "string", "slice", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/etcd_config.go#L67-L107", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/etcd_config.go", "func_name": "EmbedConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EmbedConfig returns etcd embed.Config.", "docstring_tokens": ["EmbedConfig", "returns", "etcd", "embed", ".", "Config", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/etcd_config.go#L110-L174", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/debugutil/pprof.go", "func_name": "PProfHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PProfHandlers returns a map of pprof handlers keyed by the HTTP path.", "docstring_tokens": ["PProfHandlers", "returns", "a", "map", "of", "pprof", "handlers", "keyed", "by", "the", "HTTP", "path", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/debugutil/pprof.go#L26-L47", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/quota.go", "func_name": "NewBackendQuota", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBackendQuota creates a quota layer with the given storage limit.", "docstring_tokens": ["NewBackendQuota", "creates", "a", "quota", "layer", "with", "the", "given", "storage", "limit", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/quota.go#L74-L135", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/grpcproxy/cluster.go", "func_name": "NewClusterProxy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClusterProxy takes optional prefix to fetch grpc-proxy member endpoints.\n// The returned channel is closed when there is grpc-proxy endpoint registered\n// and the client's context is canceled so the 'register' loop returns.", "docstring_tokens": ["NewClusterProxy", "takes", "optional", "prefix", "to", "fetch", "grpc", "-", "proxy", "member", "endpoints", ".", "The", "returned", "channel", "is", "closed", "when", "there", "is", "grpc", "-", "proxy", "endpoint", "registered", "and", "the", "client", "s", "context", "is", "canceled", "so", "the", "register", "loop", "returns", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/grpcproxy/cluster.go#L51-L73", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "lease/leasehttp/http.go", "func_name": "NewHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHandler returns an http Handler for lease renewals", "docstring_tokens": ["NewHandler", "returns", "an", "http", "Handler", "for", "lease", "renewals"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/lease/leasehttp/http.go#L40-L42", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "lease/leasehttp/http.go", "func_name": "TimeToLiveHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TimeToLiveHTTP retrieves lease information of the given lease ID.", "docstring_tokens": ["TimeToLiveHTTP", "retrieves", "lease", "information", "of", "the", "given", "lease", "ID", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/lease/leasehttp/http.go#L193-L242", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/watcher_group.go", "func_name": "newWatcherBatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newWatcherBatch maps watchers to their matched events. It enables quick\n// events look up by watcher.", "docstring_tokens": ["newWatcherBatch", "maps", "watchers", "to", "their", "matched", "events", ".", "It", "enables", "quick", "events", "look", "up", "by", "watcher", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/watcher_group.go#L81-L96", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/watcher_group.go", "func_name": "add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// add puts a watcher in the group.", "docstring_tokens": ["add", "puts", "a", "watcher", "in", "the", "group", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/watcher_group.go#L164-L182", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/watcher_group.go", "func_name": "contains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// contains is whether the given key has a watcher in the group.", "docstring_tokens": ["contains", "is", "whether", "the", "given", "key", "has", "a", "watcher", "in", "the", "group", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/watcher_group.go#L185-L188", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/watcher_group.go", "func_name": "delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// delete removes a watcher from the group.", "docstring_tokens": ["delete", "removes", "a", "watcher", "from", "the", "group", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/watcher_group.go#L194-L220", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/watcher_group.go", "func_name": "choose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// choose selects watchers from the watcher group to update", "docstring_tokens": ["choose", "selects", "watchers", "from", "the", "watcher", "group", "to", "update"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/watcher_group.go#L223-L236", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/watcher_group.go", "func_name": "watcherSetByKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// watcherSetByKey gets the set of watchers that receive events on the given key.", "docstring_tokens": ["watcherSetByKey", "gets", "the", "set", "of", "watchers", "that", "receive", "events", "on", "the", "given", "key", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/watcher_group.go#L270-L292", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "Compare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compare on an interval gives == if the interval overlaps.", "docstring_tokens": ["Compare", "on", "an", "interval", "gives", "==", "if", "the", "interval", "overlaps", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L46-L63", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "successor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// successor is the next in-order node in the tree", "docstring_tokens": ["successor", "is", "the", "next", "in", "-", "order", "node", "in", "the", "tree"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L104-L114", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "updateMax", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updateMax updates the maximum values for a node and its ancestors", "docstring_tokens": ["updateMax", "updates", "the", "maximum", "values", "for", "a", "node", "and", "its", "ancestors"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L117-L133", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "visit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// visit will call a node visitor on each node that overlaps the given interval", "docstring_tokens": ["visit", "will", "call", "a", "node", "visitor", "on", "each", "node", "that", "overlaps", "the", "given", "interval"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L138-L161", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete removes the node with the given interval from the tree, returning\n// true if a node is in fact removed.", "docstring_tokens": ["Delete", "removes", "the", "node", "with", "the", "given", "interval", "from", "the", "tree", "returning", "true", "if", "a", "node", "is", "in", "fact", "removed", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L178-L218", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "Insert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Insert adds a node with the given interval into the tree.", "docstring_tokens": ["Insert", "adds", "a", "node", "with", "the", "given", "interval", "into", "the", "tree", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L285-L312", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "rotateLeft", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rotateLeft moves x so it is left of its right child", "docstring_tokens": ["rotateLeft", "moves", "x", "so", "it", "is", "left", "of", "its", "right", "child"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L355-L365", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "replaceParent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// replaceParent replaces x's parent with y", "docstring_tokens": ["replaceParent", "replaces", "x", "s", "parent", "with", "y"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L384-L397", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "MaxHeight", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MaxHeight is the expected maximum tree height given the number of nodes", "docstring_tokens": ["MaxHeight", "is", "the", "expected", "maximum", "tree", "height", "given", "the", "number", "of", "nodes"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L406-L408", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "Visit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Visit calls a visitor function on every tree node intersecting the given interval.\n// It will visit each interval [x, y) in ascending order sorted on x.", "docstring_tokens": ["Visit", "calls", "a", "visitor", "function", "on", "every", "tree", "node", "intersecting", "the", "given", "interval", ".", "It", "will", "visit", "each", "interval", "[", "x", "y", ")", "in", "ascending", "order", "sorted", "on", "x", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L415-L417", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "find", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// find the exact node for a given interval", "docstring_tokens": ["find", "the", "exact", "node", "for", "a", "given", "interval"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L420-L430", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "Find", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Find gets the IntervalValue for the node matching the given interval", "docstring_tokens": ["Find", "gets", "the", "IntervalValue", "for", "the", "node", "matching", "the", "given", "interval"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L433-L439", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "Intersects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Intersects returns true if there is some tree node intersecting the given interval.", "docstring_tokens": ["Intersects", "returns", "true", "if", "there", "is", "some", "tree", "node", "intersecting", "the", "given", "interval", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L442-L452", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "Contains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Contains returns true if the interval tree's keys cover the entire given interval.", "docstring_tokens": ["Contains", "returns", "true", "if", "the", "interval", "tree", "s", "keys", "cover", "the", "entire", "given", "interval", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L455-L476", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "Stab", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stab returns a slice with all elements in the tree intersecting the interval.", "docstring_tokens": ["Stab", "returns", "a", "slice", "with", "all", "elements", "in", "the", "tree", "intersecting", "the", "interval", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L479-L486", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/adt/interval_tree.go", "func_name": "Union", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Union merges a given interval tree into the receiver.", "docstring_tokens": ["Union", "merges", "a", "given", "interval", "tree", "into", "the", "receiver", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/adt/interval_tree.go#L489-L495", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/ioutil/readcloser.go", "func_name": "NewExactReadCloser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewExactReadCloser returns a ReadCloser that returns errors if the underlying\n// reader does not read back exactly the requested number of bytes.", "docstring_tokens": ["NewExactReadCloser", "returns", "a", "ReadCloser", "that", "returns", "errors", "if", "the", "underlying", "reader", "does", "not", "read", "back", "exactly", "the", "requested", "number", "of", "bytes", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/ioutil/readcloser.go#L36-L38", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/election.go", "func_name": "NewElection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewElection returns a new election on a given key prefix.", "docstring_tokens": ["NewElection", "returns", "a", "new", "election", "on", "a", "given", "key", "prefix", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/election.go#L44-L46", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/election.go", "func_name": "ResumeElection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResumeElection initializes an election with a known leader.", "docstring_tokens": ["ResumeElection", "initializes", "an", "election", "with", "a", "known", "leader", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/election.go#L49-L57", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/election.go", "func_name": "Proclaim", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Proclaim lets the leader announce a new value without another election.", "docstring_tokens": ["Proclaim", "lets", "the", "leader", "announce", "a", "new", "value", "without", "another", "election", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/election.go#L110-L129", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/election.go", "func_name": "Resign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Resign lets a leader start a new election.", "docstring_tokens": ["Resign", "lets", "a", "leader", "start", "a", "new", "election", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/election.go#L132-L145", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/election.go", "func_name": "Leader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Leader returns the leader value for the current election.", "docstring_tokens": ["Leader", "returns", "the", "leader", "value", "for", "the", "current", "election", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/election.go#L148-L158", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/election.go", "func_name": "Observe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Observe returns a channel that reliably observes ordered leader proposals\n// as GetResponse values on every current elected leader key. It will not\n// necessarily fetch all historical leader updates, but will always post the\n// most recent leader value.\n//\n// The channel closes when the context is canceled or the underlying watcher\n// is otherwise disrupted.", "docstring_tokens": ["Observe", "returns", "a", "channel", "that", "reliably", "observes", "ordered", "leader", "proposals", "as", "GetResponse", "values", "on", "every", "current", "elected", "leader", "key", ".", "It", "will", "not", "necessarily", "fetch", "all", "historical", "leader", "updates", "but", "will", "always", "post", "the", "most", "recent", "leader", "value", ".", "The", "channel", "closes", "when", "the", "context", "is", "canceled", "or", "the", "underlying", "watcher", "is", "otherwise", "disrupted", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/election.go#L167-L171", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3rpc/quota.go", "func_name": "check", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// check whether request satisfies the quota. If there is not enough space,\n// ignore request and raise the free space alarm.", "docstring_tokens": ["check", "whether", "request", "satisfies", "the", "quota", ".", "If", "there", "is", "not", "enough", "space", "ignore", "request", "and", "raise", "the", "free", "space", "alarm", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3rpc/quota.go#L39-L50", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/exec_watch_command.go", "func_name": "NewExecWatchCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewExecWatchCommand returns the CLI command for \"exec-watch\".", "docstring_tokens": ["NewExecWatchCommand", "returns", "the", "CLI", "command", "for", "exec", "-", "watch", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/exec_watch_command.go#L31-L45", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/exec_watch_command.go", "func_name": "execWatchCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// execWatchCommandFunc executes the \"exec-watch\" command.", "docstring_tokens": ["execWatchCommandFunc", "executes", "the", "exec", "-", "watch", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/exec_watch_command.go#L48-L121", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/util.go", "func_name": "NewListener", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewListener returns a listener for raft message transfer between peers.\n// It uses timeout listener to identify broken streams promptly.", "docstring_tokens": ["NewListener", "returns", "a", "listener", "for", "raft", "message", "transfer", "between", "peers", ".", "It", "uses", "timeout", "listener", "to", "identify", "broken", "streams", "promptly", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/util.go#L40-L42", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/util.go", "func_name": "NewRoundTripper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRoundTripper returns a roundTripper used to send requests\n// to rafthttp listener of remote peers.", "docstring_tokens": ["NewRoundTripper", "returns", "a", "roundTripper", "used", "to", "send", "requests", "to", "rafthttp", "listener", "of", "remote", "peers", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/util.go#L46-L51", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/util.go", "func_name": "createPostRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createPostRequest creates a HTTP POST request that sends raft message.", "docstring_tokens": ["createPostRequest", "creates", "a", "HTTP", "POST", "request", "that", "sends", "raft", "message", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/util.go#L63-L78", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/util.go", "func_name": "checkPostResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkPostResponse checks the response of the HTTP POST request that sends\n// raft message.", "docstring_tokens": ["checkPostResponse", "checks", "the", "response", "of", "the", "HTTP", "POST", "request", "that", "sends", "raft", "message", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/util.go#L82-L103", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/util.go", "func_name": "serverVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// serverVersion returns the server version from the given header.", "docstring_tokens": ["serverVersion", "returns", "the", "server", "version", "from", "the", "given", "header", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/util.go#L134-L141", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/util.go", "func_name": "checkVersionCompatibility", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkVersionCompatibility checks whether the given version is compatible\n// with the local version.", "docstring_tokens": ["checkVersionCompatibility", "checks", "whether", "the", "given", "version", "is", "compatible", "with", "the", "local", "version", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/util.go#L155-L168", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/util.go", "func_name": "setPeerURLsHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setPeerURLsHeader reports local urls for peer discovery", "docstring_tokens": ["setPeerURLsHeader", "reports", "local", "urls", "for", "peer", "discovery"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/util.go#L171-L181", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/util.go", "func_name": "addRemoteFromRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addRemoteFromRequest adds a remote peer according to an http request header", "docstring_tokens": ["addRemoteFromRequest", "adds", "a", "remote", "peer", "according", "to", "an", "http", "request", "header"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/util.go#L184-L190", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "client/keys.go", "func_name": "NewKeysAPIWithPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewKeysAPIWithPrefix acts like NewKeysAPI, but allows the caller\n// to provide a custom base URL path. This should only be used in\n// very rare cases.", "docstring_tokens": ["NewKeysAPIWithPrefix", "acts", "like", "NewKeysAPI", "but", "allows", "the", "caller", "to", "provide", "a", "custom", "base", "URL", "path", ".", "This", "should", "only", "be", "used", "in", "very", "rare", "cases", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/client/keys.go#L92-L97", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "client/keys.go", "func_name": "TTLDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TTLDuration returns the Node's TTL as a time.Duration object", "docstring_tokens": ["TTLDuration", "returns", "the", "Node", "s", "TTL", "as", "a", "time", ".", "Duration", "object"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/client/keys.go#L311-L313", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/flag.go", "func_name": "SetPflagsFromEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPflagsFromEnv is similar to SetFlagsFromEnv. However, the accepted flagset type is pflag.FlagSet\n// and it does not do any logging.", "docstring_tokens": ["SetPflagsFromEnv", "is", "similar", "to", "SetFlagsFromEnv", ".", "However", "the", "accepted", "flagset", "type", "is", "pflag", ".", "FlagSet", "and", "it", "does", "not", "do", "any", "logging", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/flag.go#L53-L67", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/flag.go", "func_name": "FlagToEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FlagToEnv converts flag string to upper-case environment variable key string.", "docstring_tokens": ["FlagToEnv", "converts", "flag", "string", "to", "upper", "-", "case", "environment", "variable", "key", "string", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/flag.go#L70-L72", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "tools/etcd-dump-logs/main.go", "func_name": "excerpt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// excerpt replaces middle part with ellipsis and returns a double-quoted\n// string safely escaped with Go syntax.", "docstring_tokens": ["excerpt", "replaces", "middle", "part", "with", "ellipsis", "and", "returns", "a", "double", "-", "quoted", "string", "safely", "escaped", "with", "Go", "syntax", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/tools/etcd-dump-logs/main.go#L145-L150", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "tools/etcd-dump-logs/main.go", "func_name": "passConfChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// The 9 pass functions below takes the raftpb.Entry and return if the entry should be printed and the type of entry,\n// the type of the entry will used in the following print function", "docstring_tokens": ["The", "9", "pass", "functions", "below", "takes", "the", "raftpb", ".", "Entry", "and", "return", "if", "the", "entry", "should", "be", "printed", "and", "the", "type", "of", "entry", "the", "type", "of", "the", "entry", "will", "used", "in", "the", "following", "print", "function"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/tools/etcd-dump-logs/main.go#L156-L158", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "tools/etcd-dump-logs/main.go", "func_name": "printInternalRaftRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// The 4 print functions below print the entry format based on there types\n// printInternalRaftRequest is used to print entry information for IRRRange, IRRPut,\n// IRRDeleteRange and IRRTxn entries", "docstring_tokens": ["The", "4", "print", "functions", "below", "print", "the", "entry", "format", "based", "on", "there", "types", "printInternalRaftRequest", "is", "used", "to", "print", "entry", "information", "for", "IRRRange", "IRRPut", "IRRDeleteRange", "and", "IRRTxn", "entries"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/tools/etcd-dump-logs/main.go#L223-L228", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "tools/etcd-dump-logs/main.go", "func_name": "listEntriesType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// listEntriesType filters and prints entries based on the entry-type flag,", "docstring_tokens": ["listEntriesType", "filters", "and", "prints", "entries", "based", "on", "the", "entry", "-", "type", "flag"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/tools/etcd-dump-logs/main.go#L305-L378", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/log.go", "func_name": "newLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newLog returns log using the given storage and default options. It\n// recovers the log to the state that it just commits and applies the\n// latest snapshot.", "docstring_tokens": ["newLog", "returns", "log", "using", "the", "given", "storage", "and", "default", "options", ".", "It", "recovers", "the", "log", "to", "the", "state", "that", "it", "just", "commits", "and", "applies", "the", "latest", "snapshot", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/log.go#L50-L52", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/log.go", "func_name": "newLogWithSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newLogWithSize returns a log using the given storage and max\n// message size.", "docstring_tokens": ["newLogWithSize", "returns", "a", "log", "using", "the", "given", "storage", "and", "max", "message", "size", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/log.go#L56-L80", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/log.go", "func_name": "findConflict", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findConflict finds the index of the conflict.\n// It returns the first pair of conflicting entries between the existing\n// entries and the given entries, if there are any.\n// If there is no conflicting entries, and the existing entries contains\n// all the given entries, zero will be returned.\n// If there is no conflicting entries, but the given entries contains new\n// entries, the index of the first new entry will be returned.\n// An entry is considered to be conflicting if it has the same index but\n// a different term.\n// The first entry MUST have an index equal to the argument 'from'.\n// The index of the given entries MUST be continuously increasing.", "docstring_tokens": ["findConflict", "finds", "the", "index", "of", "the", "conflict", ".", "It", "returns", "the", "first", "pair", "of", "conflicting", "entries", "between", "the", "existing", "entries", "and", "the", "given", "entries", "if", "there", "are", "any", ".", "If", "there", "is", "no", "conflicting", "entries", "and", "the", "existing", "entries", "contains", "all", "the", "given", "entries", "zero", "will", "be", "returned", ".", "If", "there", "is", "no", "conflicting", "entries", "but", "the", "given", "entries", "contains", "new", "entries", "the", "index", "of", "the", "first", "new", "entry", "will", "be", "returned", ".", "An", "entry", "is", "considered", "to", "be", "conflicting", "if", "it", "has", "the", "same", "index", "but", "a", "different", "term", ".", "The", "first", "entry", "MUST", "have", "an", "index", "equal", "to", "the", "argument", "from", ".", "The", "index", "of", "the", "given", "entries", "MUST", "be", "continuously", "increasing", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/log.go#L128-L139", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/log.go", "func_name": "nextEnts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// nextEnts returns all the available entries for execution.\n// If applied is smaller than the index of snapshot, it returns all committed\n// entries after the index of snapshot.", "docstring_tokens": ["nextEnts", "returns", "all", "the", "available", "entries", "for", "execution", ".", "If", "applied", "is", "smaller", "than", "the", "index", "of", "snapshot", "it", "returns", "all", "committed", "entries", "after", "the", "index", "of", "snapshot", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/log.go#L151-L161", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/log.go", "func_name": "allEntries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// allEntries returns all entries in the log.", "docstring_tokens": ["allEntries", "returns", "all", "entries", "in", "the", "log", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/log.go#L261-L271", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/log.go", "func_name": "slice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// slice returns a slice of log entries from lo through hi-1, inclusive.", "docstring_tokens": ["slice", "returns", "a", "slice", "of", "log", "entries", "from", "lo", "through", "hi", "-", "1", "inclusive", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/log.go#L306-L344", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/session.go", "func_name": "NewSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSession gets the leased session for a client.", "docstring_tokens": ["NewSession", "gets", "the", "leased", "session", "for", "a", "client", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/session.go#L38-L72", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/session.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close orphans the session and revokes the session lease.", "docstring_tokens": ["Close", "orphans", "the", "session", "and", "revokes", "the", "session", "lease", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/session.go#L95-L102", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/session.go", "func_name": "WithTTL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTTL configures the session's TTL in seconds.\n// If TTL is <= 0, the default 60 seconds TTL will be used.", "docstring_tokens": ["WithTTL", "configures", "the", "session", "s", "TTL", "in", "seconds", ".", "If", "TTL", "is", "<", "=", "0", "the", "default", "60", "seconds", "TTL", "will", "be", "used", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/session.go#L115-L121", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/session.go", "func_name": "WithLease", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithLease specifies the existing leaseID to be used for the session.\n// This is useful in process restart scenario, for example, to reclaim\n// leadership from an election prior to restart.", "docstring_tokens": ["WithLease", "specifies", "the", "existing", "leaseID", "to", "be", "used", "for", "the", "session", ".", "This", "is", "useful", "in", "process", "restart", "scenario", "for", "example", "to", "reclaim", "leadership", "from", "an", "election", "prior", "to", "restart", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/session.go#L126-L130", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/read_only.go", "func_name": "addRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addRequest adds a read only reuqest into readonly struct.\n// `index` is the commit index of the raft state machine when it received\n// the read only request.\n// `m` is the original read only request message from the local or remote node.", "docstring_tokens": ["addRequest", "adds", "a", "read", "only", "reuqest", "into", "readonly", "struct", ".", "index", "is", "the", "commit", "index", "of", "the", "raft", "state", "machine", "when", "it", "received", "the", "read", "only", "request", ".", "m", "is", "the", "original", "read", "only", "request", "message", "from", "the", "local", "or", "remote", "node", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/read_only.go#L52-L59", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/read_only.go", "func_name": "recvAck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recvAck notifies the readonly struct that the raft state machine received\n// an acknowledgment of the heartbeat that attached with the read only request\n// context.", "docstring_tokens": ["recvAck", "notifies", "the", "readonly", "struct", "that", "the", "raft", "state", "machine", "received", "an", "acknowledgment", "of", "the", "heartbeat", "that", "attached", "with", "the", "read", "only", "request", "context", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/read_only.go#L64-L73", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/read_only.go", "func_name": "advance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// advance advances the read only request queue kept by the readonly struct.\n// It dequeues the requests until it finds the read only request that has\n// the same context as the given `m`.", "docstring_tokens": ["advance", "advances", "the", "read", "only", "request", "queue", "kept", "by", "the", "readonly", "struct", ".", "It", "dequeues", "the", "requests", "until", "it", "finds", "the", "read", "only", "request", "that", "has", "the", "same", "context", "as", "the", "given", "m", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/read_only.go#L78-L109", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/read_only.go", "func_name": "lastPendingRequestCtx", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lastPendingRequestCtx returns the context of the last pending read only\n// request in readonly struct.", "docstring_tokens": ["lastPendingRequestCtx", "returns", "the", "context", "of", "the", "last", "pending", "read", "only", "request", "in", "readonly", "struct", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/read_only.go#L113-L118", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start performs any initialization of the Server necessary for it to\n// begin serving requests. It must be called before Do or Process.\n// Start must be non-blocking; any long-running server functionality\n// should be implemented in goroutines.", "docstring_tokens": ["Start", "performs", "any", "initialization", "of", "the", "Server", "necessary", "for", "it", "to", "begin", "serving", "requests", ".", "It", "must", "be", "called", "before", "Do", "or", "Process", ".", "Start", "must", "be", "non", "-", "blocking", ";", "any", "long", "-", "running", "server", "functionality", "should", "be", "implemented", "in", "goroutines", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server.go#L710-L719", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server.go", "func_name": "start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// start prepares and starts server in a new goroutine. It is no longer safe to\n// modify a server's fields after it has been sent to Start.\n// This function is just used for testing.", "docstring_tokens": ["start", "prepares", "and", "starts", "server", "in", "a", "new", "goroutine", ".", "It", "is", "no", "longer", "safe", "to", "modify", "a", "server", "s", "fields", "after", "it", "has", "been", "sent", "to", "Start", ".", "This", "function", "is", "just", "used", "for", "testing", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server.go#L724-L788", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server.go", "func_name": "Process", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Process takes a raft message and applies it to the server's raft state\n// machine, respecting any timeout of the given context.", "docstring_tokens": ["Process", "takes", "a", "raft", "message", "and", "applies", "it", "to", "the", "server", "s", "raft", "state", "machine", "respecting", "any", "timeout", "of", "the", "given", "context", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server.go#L846-L863", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server.go", "func_name": "ReportSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReportSnapshot reports snapshot sent status to the raft state machine,\n// and clears the used snapshot from the snapshot store.", "docstring_tokens": ["ReportSnapshot", "reports", "snapshot", "sent", "status", "to", "the", "raft", "state", "machine", "and", "clears", "the", "used", "snapshot", "from", "the", "snapshot", "store", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server.go#L871-L873", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server.go", "func_name": "MoveLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveLeader transfers the leader to the given transferee.", "docstring_tokens": ["MoveLeader", "transfers", "the", "leader", "to", "the", "given", "transferee", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server.go#L1384-L1421", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server.go", "func_name": "TransferLeadership", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TransferLeadership transfers the leader to the chosen transferee.", "docstring_tokens": ["TransferLeadership", "transfers", "the", "leader", "to", "the", "chosen", "transferee", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server.go#L1424-L1461", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server.go", "func_name": "configure", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// configure sends a configuration change through consensus and\n// then waits for it to be applied to the server. It\n// will block until the change is performed or there is an error.", "docstring_tokens": ["configure", "sends", "a", "configuration", "change", "through", "consensus", "and", "then", "waits", "for", "it", "to", "be", "applied", "to", "the", "server", ".", "It", "will", "block", "until", "the", "change", "is", "performed", "or", "there", "is", "an", "error", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server.go#L1737-L1774", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server.go", "func_name": "sync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sync proposes a SYNC request and is non-blocking.\n// This makes no guarantee that the request will be proposed or performed.\n// The request will be canceled after the given timeout.", "docstring_tokens": ["sync", "proposes", "a", "SYNC", "request", "and", "is", "non", "-", "blocking", ".", "This", "makes", "no", "guarantee", "that", "the", "request", "will", "be", "proposed", "or", "performed", ".", "The", "request", "will", "be", "canceled", "after", "the", "given", "timeout", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server.go#L1779-L1793", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server.go", "func_name": "publish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// publish registers server information into the cluster. The information\n// is the JSON representation of this server's member struct, updated with the\n// static clientURLs of the server.\n// The function keeps attempting to register until it succeeds,\n// or its server is stopped.", "docstring_tokens": ["publish", "registers", "server", "information", "into", "the", "cluster", ".", "The", "information", "is", "the", "JSON", "representation", "of", "this", "server", "s", "member", "struct", "updated", "with", "the", "static", "clientURLs", "of", "the", "server", ".", "The", "function", "keeps", "attempting", "to", "register", "until", "it", "succeeds", "or", "its", "server", "is", "stopped", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server.go#L1800-L1866", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server.go", "func_name": "applyEntryNormal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// applyEntryNormal apples an EntryNormal type raftpb request to the EtcdServer", "docstring_tokens": ["applyEntryNormal", "apples", "an", "EntryNormal", "type", "raftpb", "request", "to", "the", "EtcdServer"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server.go#L1958-L2043", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server.go", "func_name": "applyConfChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// applyConfChange applies a ConfChange to the server. It is only\n// invoked with a ConfChange that has already passed through Raft", "docstring_tokens": ["applyConfChange", "applies", "a", "ConfChange", "to", "the", "server", ".", "It", "is", "only", "invoked", "with", "a", "ConfChange", "that", "has", "already", "passed", "through", "Raft"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server.go#L2047-L2116", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server.go", "func_name": "monitorVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// monitorVersions checks the member's version every monitorVersionInterval.\n// It updates the cluster version if all members agrees on a higher one.\n// It prints out log if there is a member with a higher version than the\n// local version.", "docstring_tokens": ["monitorVersions", "checks", "the", "member", "s", "version", "every", "monitorVersionInterval", ".", "It", "updates", "the", "cluster", "version", "if", "all", "members", "agrees", "on", "a", "higher", "one", ".", "It", "prints", "out", "log", "if", "there", "is", "a", "member", "with", "a", "higher", "version", "than", "the", "local", "version", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server.go#L2248-L2288", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server.go", "func_name": "goAttach", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// goAttach creates a goroutine on a given function and tracks it using\n// the etcdserver waitgroup.", "docstring_tokens": ["goAttach", "creates", "a", "goroutine", "on", "a", "given", "function", "and", "tracks", "it", "using", "the", "etcdserver", "waitgroup", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server.go#L2408-L2428", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/balancer/picker/roundrobin_balanced.go", "func_name": "NewRoundrobinBalanced", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRoundrobinBalanced returns a new roundrobin balanced picker.", "docstring_tokens": ["NewRoundrobinBalanced", "returns", "a", "new", "roundrobin", "balanced", "picker", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/balancer/picker/roundrobin_balanced.go#L28-L40", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/balancer/picker/roundrobin_balanced.go", "func_name": "Pick", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pick is called for every client request.", "docstring_tokens": ["Pick", "is", "called", "for", "every", "client", "request", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/balancer/picker/roundrobin_balanced.go#L54-L92", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/transport/listener_tls.go", "func_name": "NewTLSListener", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTLSListener handshakes TLS connections and performs optional CRL checking.", "docstring_tokens": ["NewTLSListener", "handshakes", "TLS", "connections", "and", "performs", "optional", "CRL", "checking", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/transport/listener_tls.go#L43-L46", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/transport/listener_tls.go", "func_name": "acceptLoop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// acceptLoop launches each TLS handshake in a separate goroutine\n// to prevent a hanging TLS connection from blocking other connections.", "docstring_tokens": ["acceptLoop", "launches", "each", "TLS", "handshake", "in", "a", "separate", "goroutine", "to", "prevent", "a", "hanging", "TLS", "connection", "from", "blocking", "other", "connections", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/transport/listener_tls.go#L108-L167", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/balancer/resolver/endpoint/endpoint.go", "func_name": "SetEndpoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetEndpoints updates the endpoints for ResolverGroup. All registered resolver are updated\n// immediately with the new endpoints.", "docstring_tokens": ["SetEndpoints", "updates", "the", "endpoints", "for", "ResolverGroup", ".", "All", "registered", "resolver", "are", "updated", "immediately", "with", "the", "new", "endpoints", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/balancer/resolver/endpoint/endpoint.go#L82-L90", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/balancer/resolver/endpoint/endpoint.go", "func_name": "Target", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Target constructs a endpoint target using the endpoint id of the ResolverGroup.", "docstring_tokens": ["Target", "constructs", "a", "endpoint", "target", "using", "the", "endpoint", "id", "of", "the", "ResolverGroup", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/balancer/resolver/endpoint/endpoint.go#L93-L95", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/balancer/resolver/endpoint/endpoint.go", "func_name": "Target", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Target constructs a endpoint resolver target.", "docstring_tokens": ["Target", "constructs", "a", "endpoint", "resolver", "target", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/balancer/resolver/endpoint/endpoint.go#L98-L100", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/balancer/resolver/endpoint/endpoint.go", "func_name": "Build", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Build creates or reuses an etcd resolver for the etcd cluster name identified by the authority part of the target.", "docstring_tokens": ["Build", "creates", "or", "reuses", "an", "etcd", "resolver", "for", "the", "etcd", "cluster", "name", "identified", "by", "the", "authority", "part", "of", "the", "target", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/balancer/resolver/endpoint/endpoint.go#L112-L127", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/v2_server.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle interprets r and performs an operation on s.store according to r.Method\n// and other fields. If r.Method is \"POST\", \"PUT\", \"DELETE\", or a \"GET\" with\n// Quorum == true, r will be sent through consensus before performing its\n// respective operation. Do will block until an action is performed or there is\n// an error.", "docstring_tokens": ["Handle", "interprets", "r", "and", "performs", "an", "operation", "on", "s", ".", "store", "according", "to", "r", ".", "Method", "and", "other", "fields", ".", "If", "r", ".", "Method", "is", "POST", "PUT", "DELETE", "or", "a", "GET", "with", "Quorum", "==", "true", "r", "will", "be", "sent", "through", "consensus", "before", "performing", "its", "respective", "operation", ".", "Do", "will", "block", "until", "an", "action", "is", "performed", "or", "there", "is", "an", "error", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/v2_server.go#L141-L160", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/runner/election_command.go", "func_name": "NewElectionCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewElectionCommand returns the cobra command for \"election runner\".", "docstring_tokens": ["NewElectionCommand", "returns", "the", "cobra", "command", "for", "election", "runner", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/runner/election_command.go#L28-L36", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/membership/store.go", "func_name": "nodeToMember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// nodeToMember builds member from a key value node.\n// the child nodes of the given node MUST be sorted by key.", "docstring_tokens": ["nodeToMember", "builds", "member", "from", "a", "key", "value", "node", ".", "the", "child", "nodes", "of", "the", "given", "node", "MUST", "be", "sorted", "by", "key", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/membership/store.go#L128-L152", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/backend/backend.go", "func_name": "NewTmpBackend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTmpBackend creates a backend implementation for testing.", "docstring_tokens": ["NewTmpBackend", "creates", "a", "backend", "implementation", "for", "testing", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/backend/backend.go#L513-L522", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3compactor/revision.go", "func_name": "newRevision", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newRevision creates a new instance of Revisonal compactor that purges\n// the log older than retention revisions from the current revision.", "docstring_tokens": ["newRevision", "creates", "a", "new", "instance", "of", "Revisonal", "compactor", "that", "purges", "the", "log", "older", "than", "retention", "revisions", "from", "the", "current", "revision", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3compactor/revision.go#L49-L59", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3compactor/revision.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run runs revision-based compactor.", "docstring_tokens": ["Run", "runs", "revision", "-", "based", "compactor", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3compactor/revision.go#L64-L124", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3compactor/revision.go", "func_name": "Pause", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pause pauses revision-based compactor.", "docstring_tokens": ["Pause", "pauses", "revision", "-", "based", "compactor", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3compactor/revision.go#L132-L136", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3compactor/revision.go", "func_name": "Resume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Resume resumes revision-based compactor.", "docstring_tokens": ["Resume", "resumes", "revision", "-", "based", "compactor", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3compactor/revision.go#L139-L143", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/util.go", "func_name": "voteRespMsgType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// voteResponseType maps vote and prevote message types to their corresponding responses.", "docstring_tokens": ["voteResponseType", "maps", "vote", "and", "prevote", "message", "types", "to", "their", "corresponding", "responses", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/util.go#L59-L68", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/util.go", "func_name": "DescribeMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DescribeMessage returns a concise human-readable description of a\n// Message for debugging.", "docstring_tokens": ["DescribeMessage", "returns", "a", "concise", "human", "-", "readable", "description", "of", "a", "Message", "for", "debugging", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/util.go#L76-L99", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/util.go", "func_name": "DescribeEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DescribeEntry returns a concise human-readable description of an\n// Entry for debugging.", "docstring_tokens": ["DescribeEntry", "returns", "a", "concise", "human", "-", "readable", "description", "of", "an", "Entry", "for", "debugging", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/util.go#L109-L117", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/util.go", "func_name": "DescribeEntries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DescribeEntries calls DescribeEntry for each Entry, adding a newline to\n// each.", "docstring_tokens": ["DescribeEntries", "calls", "DescribeEntry", "for", "each", "Entry", "adding", "a", "newline", "to", "each", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/util.go#L121-L127", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/logger.go", "func_name": "SetLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLogger sets client-side Logger.", "docstring_tokens": ["SetLogger", "sets", "client", "-", "side", "Logger", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/logger.go#L43-L49", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/logger.go", "func_name": "GetLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLogger returns the current logutil.Logger.", "docstring_tokens": ["GetLogger", "returns", "the", "current", "logutil", ".", "Logger", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/logger.go#L52-L57", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/log_unstable.go", "func_name": "maybeFirstIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// maybeFirstIndex returns the index of the first possible entry in entries\n// if it has a snapshot.", "docstring_tokens": ["maybeFirstIndex", "returns", "the", "index", "of", "the", "first", "possible", "entry", "in", "entries", "if", "it", "has", "a", "snapshot", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/log_unstable.go#L35-L40", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/log_unstable.go", "func_name": "maybeLastIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// maybeLastIndex returns the last index if it has at least one\n// unstable entry or snapshot.", "docstring_tokens": ["maybeLastIndex", "returns", "the", "last", "index", "if", "it", "has", "at", "least", "one", "unstable", "entry", "or", "snapshot", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/log_unstable.go#L44-L52", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/log_unstable.go", "func_name": "maybeTerm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// maybeTerm returns the term of the entry at index i, if there\n// is any.", "docstring_tokens": ["maybeTerm", "returns", "the", "term", "of", "the", "entry", "at", "index", "i", "if", "there", "is", "any", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/log_unstable.go#L56-L75", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/log_unstable.go", "func_name": "shrinkEntriesArray", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shrinkEntriesArray discards the underlying array used by the entries slice\n// if most of it isn't being used. This avoids holding references to a bunch of\n// potentially large entries that aren't needed anymore. Simply clearing the\n// entries wouldn't be safe because clients might still be using them.", "docstring_tokens": ["shrinkEntriesArray", "discards", "the", "underlying", "array", "used", "by", "the", "entries", "slice", "if", "most", "of", "it", "isn", "t", "being", "used", ".", "This", "avoids", "holding", "references", "to", "a", "bunch", "of", "potentially", "large", "entries", "that", "aren", "t", "needed", "anymore", ".", "Simply", "clearing", "the", "entries", "wouldn", "t", "be", "safe", "because", "clients", "might", "still", "be", "using", "them", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/log_unstable.go#L96-L109", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/storage.go", "func_name": "SaveSnap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveSnap saves the snapshot to disk and release the locked\n// wal files since they will not be used.", "docstring_tokens": ["SaveSnap", "saves", "the", "snapshot", "to", "disk", "and", "release", "the", "locked", "wal", "files", "since", "they", "will", "not", "be", "used", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/storage.go#L52-L66", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new etcdv3 client from a given configuration.", "docstring_tokens": ["New", "creates", "a", "new", "etcdv3", "client", "from", "a", "given", "configuration", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L100-L106", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "NewCtxClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCtxClient creates a client with a context but no underlying grpc\n// connection. This is useful for embedded cases that override the\n// service interface implementations and do not need connection management.", "docstring_tokens": ["NewCtxClient", "creates", "a", "client", "with", "a", "context", "but", "no", "underlying", "grpc", "connection", ".", "This", "is", "useful", "for", "embedded", "cases", "that", "override", "the", "service", "interface", "implementations", "and", "do", "not", "need", "connection", "management", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L111-L114", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "NewFromURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFromURL creates a new etcdv3 client from a URL.", "docstring_tokens": ["NewFromURL", "creates", "a", "new", "etcdv3", "client", "from", "a", "URL", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L117-L119", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close shuts down the client's etcd connections.", "docstring_tokens": ["Close", "shuts", "down", "the", "client", "s", "etcd", "connections", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L127-L138", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "Endpoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Endpoints lists the registered endpoints for the client.", "docstring_tokens": ["Endpoints", "lists", "the", "registered", "endpoints", "for", "the", "client", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L146-L153", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "SetEndpoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetEndpoints updates client's endpoints.", "docstring_tokens": ["SetEndpoints", "updates", "client", "s", "endpoints", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L156-L161", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "Sync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sync synchronizes client's endpoints with the known endpoints from the etcd membership.", "docstring_tokens": ["Sync", "synchronizes", "client", "s", "endpoints", "with", "the", "known", "endpoints", "from", "the", "etcd", "membership", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L164-L175", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "dialSetupOpts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dialSetupOpts gives the dial opts prior to any authentication.", "docstring_tokens": ["dialSetupOpts", "gives", "the", "dial", "opts", "prior", "to", "any", "authentication", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L234-L277", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "Dial", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dial connects to a single endpoint using the client's config.", "docstring_tokens": ["Dial", "connects", "to", "a", "single", "endpoint", "using", "the", "client", "s", "config", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L280-L287", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "dialWithBalancer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dialWithBalancer dials the client's current load balanced resolver group. The scheme of the host\n// of the provided endpoint determines the scheme used for all endpoints of the client connection.", "docstring_tokens": ["dialWithBalancer", "dials", "the", "client", "s", "current", "load", "balanced", "resolver", "group", ".", "The", "scheme", "of", "the", "host", "of", "the", "provided", "endpoint", "determines", "the", "scheme", "used", "for", "all", "endpoints", "of", "the", "client", "connection", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L334-L339", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "dial", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dial configures and dials any grpc balancer target.", "docstring_tokens": ["dial", "configures", "and", "dials", "any", "grpc", "balancer", "target", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L342-L387", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "WithRequireLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithRequireLeader requires client requests to only succeed\n// when the cluster has a leader.", "docstring_tokens": ["WithRequireLeader", "requires", "client", "requests", "to", "only", "succeed", "when", "the", "cluster", "has", "a", "leader", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L419-L422", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "roundRobinQuorumBackoff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// roundRobinQuorumBackoff retries against quorum between each backoff.\n// This is intended for use with a round robin load balancer.", "docstring_tokens": ["roundRobinQuorumBackoff", "retries", "against", "quorum", "between", "each", "backoff", ".", "This", "is", "intended", "for", "use", "with", "a", "round", "robin", "load", "balancer", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L529-L541", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/client.go", "func_name": "isHaltErr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isHaltErr returns true if the given error and context indicate no forward\n// progress can be made, even after reconnecting.", "docstring_tokens": ["isHaltErr", "returns", "true", "if", "the", "given", "error", "and", "context", "indicate", "no", "forward", "progress", "can", "be", "made", "even", "after", "reconnecting", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/client.go#L588-L603", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/namespace/lease.go", "func_name": "NewLease", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLease wraps a Lease interface to filter for only keys with a prefix\n// and remove that prefix when fetching attached keys through TimeToLive.", "docstring_tokens": ["NewLease", "wraps", "a", "Lease", "interface", "to", "filter", "for", "only", "keys", "with", "a", "prefix", "and", "remove", "that", "prefix", "when", "fetching", "attached", "keys", "through", "TimeToLive", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/namespace/lease.go#L31-L33", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/watch.go", "func_name": "IsCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsCreate returns true if the event tells that the key is newly created.", "docstring_tokens": ["IsCreate", "returns", "true", "if", "the", "event", "tells", "that", "the", "key", "is", "newly", "created", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/watch.go#L103-L105", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/watch.go", "func_name": "Err", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Err is the error value if this WatchResponse holds an error.", "docstring_tokens": ["Err", "is", "the", "error", "value", "if", "this", "WatchResponse", "holds", "an", "error", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/watch.go#L113-L126", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/watch.go", "func_name": "IsProgressNotify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsProgressNotify returns true if the WatchResponse is progress notification.", "docstring_tokens": ["IsProgressNotify", "returns", "true", "if", "the", "WatchResponse", "is", "progress", "notification", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/watch.go#L129-L131", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/watch.go", "func_name": "RequestProgress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RequestProgress requests a progress notify response be sent in all watch channels.", "docstring_tokens": ["RequestProgress", "requests", "a", "progress", "notify", "response", "be", "sent", "in", "all", "watch", "channels", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/watch.go#L382-L415", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/watch.go", "func_name": "nextResume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// nextResume chooses the next resuming to register with the grpc stream. Abandoned\n// streams are marked as nil in the queue since the head must wait for its inflight registration.", "docstring_tokens": ["nextResume", "chooses", "the", "next", "resuming", "to", "register", "with", "the", "grpc", "stream", ".", "Abandoned", "streams", "are", "marked", "as", "nil", "in", "the", "queue", "since", "the", "head", "must", "wait", "for", "its", "inflight", "registration", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/watch.go#L651-L659", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/watch.go", "func_name": "dispatchEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dispatchEvent sends a WatchResponse to the appropriate watcher stream", "docstring_tokens": ["dispatchEvent", "sends", "a", "WatchResponse", "to", "the", "appropriate", "watcher", "stream"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/watch.go#L662-L685", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/watch.go", "func_name": "broadcastResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// broadcastResponse send a watch response to all watch substreams.", "docstring_tokens": ["broadcastResponse", "send", "a", "watch", "response", "to", "all", "watch", "substreams", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/watch.go#L688-L696", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/watch.go", "func_name": "unicastResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// unicastResponse sends a watch response to a specific watch substream.", "docstring_tokens": ["unicastResponse", "sends", "a", "watch", "response", "to", "a", "specific", "watch", "substream", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/watch.go#L699-L710", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/watch.go", "func_name": "joinSubstreams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// joinSubstreams waits for all substream goroutines to complete.", "docstring_tokens": ["joinSubstreams", "waits", "for", "all", "substream", "goroutines", "to", "complete", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/watch.go#L911-L920", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/watch.go", "func_name": "toPB", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// toPB converts an internal watch request structure to its protobuf WatchRequest structure.", "docstring_tokens": ["toPB", "converts", "an", "internal", "watch", "request", "structure", "to", "its", "protobuf", "WatchRequest", "structure", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/watch.go#L960-L972", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/watch.go", "func_name": "toPB", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// toPB converts an internal progress request structure to its protobuf WatchRequest structure.", "docstring_tokens": ["toPB", "converts", "an", "internal", "progress", "request", "structure", "to", "its", "protobuf", "WatchRequest", "structure", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/watch.go#L975-L979", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/types/set.go", "func_name": "Contains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Contains returns whether the set contains the given value", "docstring_tokens": ["Contains", "returns", "whether", "the", "set", "contains", "the", "given", "value"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/types/set.go#L62-L65", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/types/set.go", "func_name": "ContainsAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainsAll returns whether the set contains all given values", "docstring_tokens": ["ContainsAll", "returns", "whether", "the", "set", "contains", "all", "given", "values"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/types/set.go#L68-L75", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/types/set.go", "func_name": "Equals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equals returns whether the contents of two sets are identical", "docstring_tokens": ["Equals", "returns", "whether", "the", "contents", "of", "two", "sets", "are", "identical"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/types/set.go#L78-L84", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/types/set.go", "func_name": "Values", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Values returns the values of the Set in an unspecified order.", "docstring_tokens": ["Values", "returns", "the", "values", "of", "the", "Set", "in", "an", "unspecified", "order", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/types/set.go#L92-L98", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/types/set.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy creates a new Set containing the values of the first", "docstring_tokens": ["Copy", "creates", "a", "new", "Set", "containing", "the", "values", "of", "the", "first"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/types/set.go#L101-L108", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/types/set.go", "func_name": "Sub", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sub removes all elements in other from the set", "docstring_tokens": ["Sub", "removes", "all", "elements", "in", "other", "from", "the", "set"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/types/set.go#L111-L123", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "client/members.go", "func_name": "v2MembersURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// v2MembersURL add the necessary path to the provided endpoint\n// to route requests to the default v2 members API.", "docstring_tokens": ["v2MembersURL", "add", "the", "necessary", "path", "to", "the", "provided", "endpoint", "to", "route", "requests", "to", "the", "default", "v2", "members", "API", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/client/members.go#L291-L294", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/migrate_command.go", "func_name": "NewMigrateCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMigrateCommand returns the cobra command for \"migrate\".", "docstring_tokens": ["NewMigrateCommand", "returns", "the", "cobra", "command", "for", "migrate", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/migrate_command.go#L57-L69", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/raftexample/raft.go", "func_name": "publishEntries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// publishEntries writes committed log entries to commit channel and returns\n// whether all entries could be published.", "docstring_tokens": ["publishEntries", "writes", "committed", "log", "entries", "to", "commit", "channel", "and", "returns", "whether", "all", "entries", "could", "be", "published", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/raftexample/raft.go#L143-L189", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/raftexample/raft.go", "func_name": "openWAL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// openWAL returns a WAL ready for reading.", "docstring_tokens": ["openWAL", "returns", "a", "WAL", "ready", "for", "reading", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/raftexample/raft.go#L200-L224", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/raftexample/raft.go", "func_name": "replayWAL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// replayWAL replays WAL entries into the raft instance.", "docstring_tokens": ["replayWAL", "replays", "WAL", "entries", "into", "the", "raft", "instance", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/raftexample/raft.go#L227-L250", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/raftexample/raft.go", "func_name": "stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stop closes http, closes all channels, and stops raft.", "docstring_tokens": ["stop", "closes", "http", "closes", "all", "channels", "and", "stops", "raft", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/raftexample/raft.go#L318-L323", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/watch_command.go", "func_name": "NewWatchCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWatchCommand returns the cobra command for \"watch\".", "docstring_tokens": ["NewWatchCommand", "returns", "the", "cobra", "command", "for", "watch", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/watch_command.go#L46-L59", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/storage.go", "func_name": "InitialState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitialState implements the Storage interface.", "docstring_tokens": ["InitialState", "implements", "the", "Storage", "interface", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/storage.go#L95-L97", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/storage.go", "func_name": "SetHardState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHardState saves the current HardState.", "docstring_tokens": ["SetHardState", "saves", "the", "current", "HardState", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/storage.go#L100-L105", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/storage.go", "func_name": "Entries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Entries implements the Storage interface.", "docstring_tokens": ["Entries", "implements", "the", "Storage", "interface", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/storage.go#L108-L125", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/storage.go", "func_name": "Term", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Term implements the Storage interface.", "docstring_tokens": ["Term", "implements", "the", "Storage", "interface", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/storage.go#L128-L139", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/storage.go", "func_name": "LastIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LastIndex implements the Storage interface.", "docstring_tokens": ["LastIndex", "implements", "the", "Storage", "interface", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/storage.go#L142-L146", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/storage.go", "func_name": "FirstIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FirstIndex implements the Storage interface.", "docstring_tokens": ["FirstIndex", "implements", "the", "Storage", "interface", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/storage.go#L153-L157", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/storage.go", "func_name": "Snapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Snapshot implements the Storage interface.", "docstring_tokens": ["Snapshot", "implements", "the", "Storage", "interface", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/storage.go#L164-L168", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/storage.go", "func_name": "ApplySnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplySnapshot overwrites the contents of this Storage object with\n// those of the given snapshot.", "docstring_tokens": ["ApplySnapshot", "overwrites", "the", "contents", "of", "this", "Storage", "object", "with", "those", "of", "the", "given", "snapshot", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/storage.go#L172-L186", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/storage.go", "func_name": "Compact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compact discards all log entries prior to compactIndex.\n// It is the application's responsibility to not attempt to compact an index\n// greater than raftLog.applied.", "docstring_tokens": ["Compact", "discards", "all", "log", "entries", "prior", "to", "compactIndex", ".", "It", "is", "the", "application", "s", "responsibility", "to", "not", "attempt", "to", "compact", "an", "index", "greater", "than", "raftLog", ".", "applied", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/storage.go#L216-L234", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/rafthttp/urlpick.go", "func_name": "unreachable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// unreachable notices the picker that the given url is unreachable,\n// and it should use other possible urls.", "docstring_tokens": ["unreachable", "notices", "the", "picker", "that", "the", "given", "url", "is", "unreachable", "and", "it", "should", "use", "other", "possible", "urls", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/rafthttp/urlpick.go#L51-L57", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/ep_command.go", "func_name": "NewEndpointCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEndpointCommand returns the cobra command for \"endpoint\".", "docstring_tokens": ["NewEndpointCommand", "returns", "the", "cobra", "command", "for", "endpoint", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/ep_command.go#L34-L46", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/ep_command.go", "func_name": "epHealthCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// epHealthCommandFunc executes the \"endpoint-health\" command.", "docstring_tokens": ["epHealthCommandFunc", "executes", "the", "endpoint", "-", "health", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/ep_command.go#L87-L149", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/elect_command.go", "func_name": "NewElectCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewElectCommand returns the cobra command for \"elect\".", "docstring_tokens": ["NewElectCommand", "returns", "the", "cobra", "command", "for", "elect", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/elect_command.go#L35-L43", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/defrag_command.go", "func_name": "NewDefragCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDefragCommand returns the cobra command for \"Defrag\".", "docstring_tokens": ["NewDefragCommand", "returns", "the", "cobra", "command", "for", "Defrag", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/defrag_command.go#L32-L41", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/balancer/balancer.go", "func_name": "RegisterBuilder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterBuilder creates and registers a builder. Since this function calls balancer.Register, it\n// must be invoked at initialization time.", "docstring_tokens": ["RegisterBuilder", "creates", "and", "registers", "a", "builder", ".", "Since", "this", "function", "calls", "balancer", ".", "Register", "it", "must", "be", "invoked", "at", "initialization", "time", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/balancer/balancer.go#L35-L44", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/balancer/balancer.go", "func_name": "Build", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Build is called initially when creating \"ccBalancerWrapper\".\n// \"grpc.Dial\" is called to this client connection.\n// Then, resolved addresses will be handled via \"HandleResolvedAddrs\".", "docstring_tokens": ["Build", "is", "called", "initially", "when", "creating", "ccBalancerWrapper", ".", "grpc", ".", "Dial", "is", "called", "to", "this", "client", "connection", ".", "Then", "resolved", "addresses", "will", "be", "handled", "via", "HandleResolvedAddrs", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/balancer/balancer.go#L53-L86", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/balancer/connectivity.go", "func_name": "recordTransition", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recordTransition records state change happening in every subConn and based on\n// that it evaluates what aggregated state should be.\n// It can only transition between Ready, Connecting and TransientFailure. Other states,\n// Idle and Shutdown are transitioned into by ClientConn; in the beginning of the connection\n// before any subConn is created ClientConn is in idle state. In the end when ClientConn\n// closes it is in Shutdown state.\n//\n// recordTransition should only be called synchronously from the same goroutine.", "docstring_tokens": ["recordTransition", "records", "state", "change", "happening", "in", "every", "subConn", "and", "based", "on", "that", "it", "evaluates", "what", "aggregated", "state", "should", "be", ".", "It", "can", "only", "transition", "between", "Ready", "Connecting", "and", "TransientFailure", ".", "Other", "states", "Idle", "and", "Shutdown", "are", "transitioned", "into", "by", "ClientConn", ";", "in", "the", "beginning", "of", "the", "connection", "before", "any", "subConn", "is", "created", "ClientConn", "is", "in", "idle", "state", ".", "In", "the", "end", "when", "ClientConn", "closes", "it", "is", "in", "Shutdown", "state", ".", "recordTransition", "should", "only", "be", "called", "synchronously", "from", "the", "same", "goroutine", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/balancer/connectivity.go#L36-L58", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/v3_server.go", "func_name": "doSerialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// doSerialize handles the auth logic, with permissions checked by \"chk\", for a serialized request \"get\". Returns a non-nil error on authentication failure.", "docstring_tokens": ["doSerialize", "handles", "the", "auth", "logic", "with", "permissions", "checked", "by", "chk", "for", "a", "serialized", "request", "get", ".", "Returns", "a", "non", "-", "nil", "error", "on", "authentication", "failure", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/v3_server.go#L541-L561", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/grpcproxy/watcher.go", "func_name": "send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// send filters out repeated events by discarding revisions older\n// than the last one sent over the watch channel.", "docstring_tokens": ["send", "filters", "out", "repeated", "events", "by", "discarding", "revisions", "older", "than", "the", "last", "one", "sent", "over", "the", "watch", "channel", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/grpcproxy/watcher.go#L55-L118", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/grpcproxy/watcher.go", "func_name": "post", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// post puts a watch response on the watcher's proxy stream channel", "docstring_tokens": ["post", "puts", "a", "watch", "response", "on", "the", "watcher", "s", "proxy", "stream", "channel"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/grpcproxy/watcher.go#L121-L129", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server_access_control.go", "func_name": "OriginAllowed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OriginAllowed determines whether the server will allow a given CORS origin.\n// If CORS is empty, allow all.", "docstring_tokens": ["OriginAllowed", "determines", "whether", "the", "server", "will", "allow", "a", "given", "CORS", "origin", ".", "If", "CORS", "is", "empty", "allow", "all", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server_access_control.go#L37-L49", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/server_access_control.go", "func_name": "IsHostWhitelisted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsHostWhitelisted returns true if the host is whitelisted.\n// If whitelist is empty, allow all.", "docstring_tokens": ["IsHostWhitelisted", "returns", "true", "if", "the", "host", "is", "whitelisted", ".", "If", "whitelist", "is", "empty", "allow", "all", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/server_access_control.go#L53-L65", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/selective_string.go", "func_name": "Valids", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Valids returns the list of valid strings.", "docstring_tokens": ["Valids", "returns", "the", "list", "of", "valid", "strings", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/selective_string.go#L46-L53", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/selective_string.go", "func_name": "NewSelectiveStringsValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSelectiveStringsValue creates a new string slice flag\n// for which any one of the given strings is a valid value,\n// and any other value is an error.", "docstring_tokens": ["NewSelectiveStringsValue", "creates", "a", "new", "string", "slice", "flag", "for", "which", "any", "one", "of", "the", "given", "strings", "is", "a", "valid", "value", "and", "any", "other", "value", "is", "an", "error", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/selective_string.go#L108-L114", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/namespace/kv.go", "func_name": "NewKV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewKV wraps a KV instance so that all requests\n// are prefixed with a given string.", "docstring_tokens": ["NewKV", "wraps", "a", "KV", "instance", "so", "that", "all", "requests", "are", "prefixed", "with", "a", "given", "string", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/namespace/kv.go#L32-L34", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/urls.go", "func_name": "NewURLsValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewURLsValue implements \"url.URL\" slice as flag.Value interface.\n// Given value is to be separated by comma.", "docstring_tokens": ["NewURLsValue", "implements", "url", ".", "URL", "slice", "as", "flag", ".", "Value", "interface", ".", "Given", "value", "is", "to", "be", "separated", "by", "comma", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/urls.go#L51-L60", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/urls.go", "func_name": "URLsFromFlag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URLsFromFlag returns a slices from url got from the flag.", "docstring_tokens": ["URLsFromFlag", "returns", "a", "slices", "from", "url", "got", "from", "the", "flag", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/urls.go#L63-L65", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "embed/etcd.go", "func_name": "servePeers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// configure peer handlers after rafthttp.Transport started", "docstring_tokens": ["configure", "peer", "handlers", "after", "rafthttp", ".", "Transport", "started"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/embed/etcd.go#L527-L585", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/kvstore.go", "func_name": "NewStore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStore returns a new store. It is useful to create a store inside\n// mvcc pkg. It should only be used for testing externally.", "docstring_tokens": ["NewStore", "returns", "a", "new", "store", ".", "It", "is", "useful", "to", "create", "a", "store", "inside", "mvcc", "pkg", ".", "It", "should", "only", "be", "used", "for", "testing", "externally", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/kvstore.go#L111-L150", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/kvstore.go", "func_name": "appendMarkTombstone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// appendMarkTombstone appends tombstone mark to normal revision bytes.", "docstring_tokens": ["appendMarkTombstone", "appends", "tombstone", "mark", "to", "normal", "revision", "bytes", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/kvstore.go#L569-L582", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/fileutil/fileutil.go", "func_name": "IsDirWriteable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsDirWriteable checks if dir is writable by writing and removing a file\n// to dir. It returns nil if dir is writable.", "docstring_tokens": ["IsDirWriteable", "checks", "if", "dir", "is", "writable", "by", "writing", "and", "removing", "a", "file", "to", "dir", ".", "It", "returns", "nil", "if", "dir", "is", "writable", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/fileutil/fileutil.go#L38-L44", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/fileutil/fileutil.go", "func_name": "TouchDirAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TouchDirAll is similar to os.MkdirAll. It creates directories with 0700 permission if any directory\n// does not exists. TouchDirAll also ensures the given directory is writable.", "docstring_tokens": ["TouchDirAll", "is", "similar", "to", "os", ".", "MkdirAll", ".", "It", "creates", "directories", "with", "0700", "permission", "if", "any", "directory", "does", "not", "exists", ".", "TouchDirAll", "also", "ensures", "the", "given", "directory", "is", "writable", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/fileutil/fileutil.go#L48-L58", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/fileutil/fileutil.go", "func_name": "CreateDirAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateDirAll is similar to TouchDirAll but returns error\n// if the deepest directory was not empty.", "docstring_tokens": ["CreateDirAll", "is", "similar", "to", "TouchDirAll", "but", "returns", "error", "if", "the", "deepest", "directory", "was", "not", "empty", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/fileutil/fileutil.go#L62-L75", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/fileutil/fileutil.go", "func_name": "ZeroToEnd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ZeroToEnd zeros a file starting from SEEK_CUR to its SEEK_END. May temporarily\n// shorten the length of the file.", "docstring_tokens": ["ZeroToEnd", "zeros", "a", "file", "starting", "from", "SEEK_CUR", "to", "its", "SEEK_END", ".", "May", "temporarily", "shorten", "the", "length", "of", "the", "file", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/fileutil/fileutil.go#L85-L104", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "wal/file_pipeline.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open returns a fresh file for writing. Rename the file before calling\n// Open again or there will be file collisions.", "docstring_tokens": ["Open", "returns", "a", "fresh", "file", "for", "writing", ".", "Rename", "the", "file", "before", "calling", "Open", "again", "or", "there", "will", "be", "file", "collisions", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/wal/file_pipeline.go#L58-L64", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/logutil/zap_raft.go", "func_name": "NewRaftLoggerFromZapCore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRaftLoggerFromZapCore creates \"raft.Logger\" from \"zap.Core\"\n// and \"zapcore.WriteSyncer\".", "docstring_tokens": ["NewRaftLoggerFromZapCore", "creates", "raft", ".", "Logger", "from", "zap", ".", "Core", "and", "zapcore", ".", "WriteSyncer", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/logutil/zap_raft.go#L40-L44", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/yaml/config.go", "func_name": "NewConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConfig creates a new clientv3.Config from a yaml file.", "docstring_tokens": ["NewConfig", "creates", "a", "new", "clientv3", ".", "Config", "from", "a", "yaml", "file", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/yaml/config.go#L44-L91", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3election/v3electionpb/gw/v3election.pb.gw.go", "func_name": "RegisterElectionHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterElectionHandler registers the http handlers for service Election to \"mux\".\n// The handlers forward requests to the grpc endpoint over \"conn\".", "docstring_tokens": ["RegisterElectionHandler", "registers", "the", "http", "handlers", "for", "service", "Election", "to", "mux", ".", "The", "handlers", "forward", "requests", "to", "the", "grpc", "endpoint", "over", "conn", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3election/v3electionpb/gw/v3election.pb.gw.go#L132-L134", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/capability.go", "func_name": "UpdateCapability", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateCapability updates the enabledMap when the cluster version increases.", "docstring_tokens": ["UpdateCapability", "updates", "the", "enabledMap", "when", "the", "cluster", "version", "increases", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/capability.go#L60-L82", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/lock_command.go", "func_name": "NewLockCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLockCommand returns the cobra command for \"lock\".", "docstring_tokens": ["NewLockCommand", "returns", "the", "cobra", "command", "for", "lock", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/lock_command.go#L35-L43", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/raft.go", "func_name": "tick", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// raft.Node does not have locks in Raft package", "docstring_tokens": ["raft", ".", "Node", "does", "not", "have", "locks", "in", "Raft", "package"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/raft.go#L150-L154", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/raft.go", "func_name": "advanceTicks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// advanceTicks advances ticks of Raft node.\n// This can be used for fast-forwarding election\n// ticks in multi data-center deployments, thus\n// speeding up election process.", "docstring_tokens": ["advanceTicks", "advances", "ticks", "of", "Raft", "node", ".", "This", "can", "be", "used", "for", "fast", "-", "forwarding", "election", "ticks", "in", "multi", "data", "-", "center", "deployments", "thus", "speeding", "up", "election", "process", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/raft.go#L415-L419", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/auth_command.go", "func_name": "NewAuthCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAuthCommand returns the cobra command for \"auth\".", "docstring_tokens": ["NewAuthCommand", "returns", "the", "cobra", "command", "for", "auth", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/auth_command.go#L25-L35", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/auth_command.go", "func_name": "authEnableCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// authEnableCommandFunc executes the \"auth enable\" command.", "docstring_tokens": ["authEnableCommandFunc", "executes", "the", "auth", "enable", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/auth_command.go#L46-L73", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/auth_command.go", "func_name": "authDisableCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// authDisableCommandFunc executes the \"auth disable\" command.", "docstring_tokens": ["authDisableCommandFunc", "executes", "the", "auth", "disable", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/auth_command.go#L84-L97", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/retry.go", "func_name": "RetryKVClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RetryKVClient implements a KVClient.", "docstring_tokens": ["RetryKVClient", "implements", "a", "KVClient", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/retry.go#L103-L107", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/retry.go", "func_name": "RetryLeaseClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RetryLeaseClient implements a LeaseClient.", "docstring_tokens": ["RetryLeaseClient", "implements", "a", "LeaseClient", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/retry.go#L133-L137", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/retry.go", "func_name": "RetryClusterClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RetryClusterClient implements a ClusterClient.", "docstring_tokens": ["RetryClusterClient", "implements", "a", "ClusterClient", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/retry.go#L164-L168", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/retry.go", "func_name": "RetryMaintenanceClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RetryMaintenanceClient implements a Maintenance.", "docstring_tokens": ["RetryMaintenanceClient", "implements", "a", "Maintenance", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/retry.go#L191-L195", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/retry.go", "func_name": "RetryAuthClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RetryAuthClient implements a AuthClient.", "docstring_tokens": ["RetryAuthClient", "implements", "a", "AuthClient", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/retry.go#L230-L234", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/set_dir_command.go", "func_name": "NewSetDirCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSetDirCommand returns the CLI command for \"setDir\".", "docstring_tokens": ["NewSetDirCommand", "returns", "the", "CLI", "command", "for", "setDir", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/set_dir_command.go#L23-L36", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/recipes/double_barrier.go", "func_name": "Enter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enter waits for \"count\" processes to enter the barrier then returns", "docstring_tokens": ["Enter", "waits", "for", "count", "processes", "to", "enter", "the", "barrier", "then", "returns"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/recipes/double_barrier.go#L46-L75", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/recipes/double_barrier.go", "func_name": "Leave", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Leave waits for \"count\" processes to leave the barrier then returns", "docstring_tokens": ["Leave", "waits", "for", "count", "processes", "to", "leave", "the", "barrier", "then", "returns"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/recipes/double_barrier.go#L78-L138", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/etcdhttp/base.go", "func_name": "HandleBasic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleBasic adds handlers to a mux for serving JSON etcd client requests\n// that do not access the v2 store.", "docstring_tokens": ["HandleBasic", "adds", "handlers", "to", "a", "mux", "for", "serving", "JSON", "etcd", "client", "requests", "that", "do", "not", "access", "the", "v2", "store", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/etcdhttp/base.go#L48-L56", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/etcdhttp/base.go", "func_name": "WriteError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteError logs and writes the given Error to the ResponseWriter\n// If Error is an etcdErr, it is rendered to the ResponseWriter\n// Otherwise, it is assumed to be a StatusInternalServerError", "docstring_tokens": ["WriteError", "logs", "and", "writes", "the", "given", "Error", "to", "the", "ResponseWriter", "If", "Error", "is", "an", "etcdErr", "it", "is", "rendered", "to", "the", "ResponseWriter", "Otherwise", "it", "is", "assumed", "to", "be", "a", "StatusInternalServerError"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/etcdhttp/base.go#L141-L203", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/membership/cluster.go", "func_name": "MemberByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MemberByName returns a Member with the given name if exists.\n// If more than one member has the given name, it will panic.", "docstring_tokens": ["MemberByName", "returns", "a", "Member", "with", "the", "given", "name", "if", "exists", ".", "If", "more", "than", "one", "member", "has", "the", "given", "name", "it", "will", "panic", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/membership/cluster.go#L117-L134", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/membership/cluster.go", "func_name": "PeerURLs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeerURLs returns a list of all peer addresses.\n// The returned list is sorted in ascending lexicographical order.", "docstring_tokens": ["PeerURLs", "returns", "a", "list", "of", "all", "peer", "addresses", ".", "The", "returned", "list", "is", "sorted", "in", "ascending", "lexicographical", "order", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/membership/cluster.go#L155-L164", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/membership/cluster.go", "func_name": "ValidateConfigurationChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateConfigurationChange takes a proposed ConfChange and\n// ensures that it is still valid.", "docstring_tokens": ["ValidateConfigurationChange", "takes", "a", "proposed", "ConfChange", "and", "ensures", "that", "it", "is", "still", "valid", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/membership/cluster.go#L255-L326", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/membership/cluster.go", "func_name": "AddMember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddMember adds a new Member into the cluster, and saves the given member's\n// raftAttributes into the store. The given member should have empty attributes.\n// A Member with a matching id must not exist.", "docstring_tokens": ["AddMember", "adds", "a", "new", "Member", "into", "the", "cluster", "and", "saves", "the", "given", "member", "s", "raftAttributes", "into", "the", "store", ".", "The", "given", "member", "should", "have", "empty", "attributes", ".", "A", "Member", "with", "a", "matching", "id", "must", "not", "exist", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/membership/cluster.go#L331-L354", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/membership/cluster.go", "func_name": "RemoveMember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveMember removes a member from the store.\n// The given id MUST exist, or the function panics.", "docstring_tokens": ["RemoveMember", "removes", "a", "member", "from", "the", "store", ".", "The", "given", "id", "MUST", "exist", "or", "the", "function", "panics", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/membership/cluster.go#L358-L392", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/membership/cluster.go", "func_name": "ValidateClusterAndAssignIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateClusterAndAssignIDs validates the local cluster by matching the PeerURLs\n// with the existing cluster. If the validation succeeds, it assigns the IDs\n// from the existing cluster to the local cluster.\n// If the validation fails, an error will be returned.", "docstring_tokens": ["ValidateClusterAndAssignIDs", "validates", "the", "local", "cluster", "by", "matching", "the", "PeerURLs", "with", "the", "existing", "cluster", ".", "If", "the", "validation", "succeeds", "it", "assigns", "the", "IDs", "from", "the", "existing", "cluster", "to", "the", "local", "cluster", ".", "If", "the", "validation", "fails", "an", "error", "will", "be", "returned", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/membership/cluster.go#L654-L676", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/index.go", "func_name": "Keep", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Keep finds all revisions to be kept for a Compaction at the given rev.", "docstring_tokens": ["Keep", "finds", "all", "revisions", "to", "be", "kept", "for", "a", "Compaction", "at", "the", "given", "rev", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/index.go#L221-L231", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/lease.go", "func_name": "closeRequireLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// closeRequireLeader scans keepAlives for ctxs that have require leader\n// and closes the associated channels.", "docstring_tokens": ["closeRequireLeader", "scans", "keepAlives", "for", "ctxs", "that", "have", "require", "leader", "and", "closes", "the", "associated", "channels", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/lease.go#L363-L398", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/lease.go", "func_name": "resetRecv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resetRecv opens a new lease stream and starts sending keep alive requests.", "docstring_tokens": ["resetRecv", "opens", "a", "new", "lease", "stream", "and", "starts", "sending", "keep", "alive", "requests", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/lease.go#L472-L491", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/lease.go", "func_name": "recvKeepAlive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recvKeepAlive updates a lease based on its LeaseKeepAliveResponse", "docstring_tokens": ["recvKeepAlive", "updates", "a", "lease", "based", "on", "its", "LeaseKeepAliveResponse"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/lease.go#L494-L533", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/lease.go", "func_name": "deadlineLoop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deadlineLoop reaps any keep alive channels that have not received a response\n// within the lease TTL", "docstring_tokens": ["deadlineLoop", "reaps", "any", "keep", "alive", "channels", "that", "have", "not", "received", "a", "response", "within", "the", "lease", "TTL"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/lease.go#L537-L555", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/lease.go", "func_name": "sendKeepAliveLoop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendKeepAliveLoop sends keep alive requests for the lifetime of the given stream.", "docstring_tokens": ["sendKeepAliveLoop", "sends", "keep", "alive", "requests", "for", "the", "lifetime", "of", "the", "given", "stream", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/lease.go#L558-L589", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/leasing/kv.go", "func_name": "NewKV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewKV wraps a KV instance so that all requests are wired through a leasing protocol.", "docstring_tokens": ["NewKV", "wraps", "a", "KV", "instance", "so", "that", "all", "requests", "are", "wired", "through", "a", "leasing", "protocol", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/leasing/kv.go#L56-L78", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/leasing/kv.go", "func_name": "rescind", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rescind releases a lease from this client.", "docstring_tokens": ["rescind", "releases", "a", "lease", "from", "this", "client", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/leasing/kv.go#L186-L197", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/compare.go", "func_name": "LeaseValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LeaseValue compares a key's LeaseID to a value of your choosing. The empty\n// LeaseID is 0, otherwise known as `NoLease`.", "docstring_tokens": ["LeaseValue", "compares", "a", "key", "s", "LeaseID", "to", "a", "value", "of", "your", "choosing", ".", "The", "empty", "LeaseID", "is", "0", "otherwise", "known", "as", "NoLease", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/compare.go#L89-L91", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/compare.go", "func_name": "ValueBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValueBytes returns the byte slice holding the comparison value, if any.", "docstring_tokens": ["ValueBytes", "returns", "the", "byte", "slice", "holding", "the", "comparison", "value", "if", "any", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/compare.go#L100-L105", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/compare.go", "func_name": "WithRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithRange sets the comparison to scan the range [key, end).", "docstring_tokens": ["WithRange", "sets", "the", "comparison", "to", "scan", "the", "range", "[", "key", "end", ")", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/compare.go#L111-L114", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/compare.go", "func_name": "WithPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPrefix sets the comparison to scan all keys prefixed by the key.", "docstring_tokens": ["WithPrefix", "sets", "the", "comparison", "to", "scan", "all", "keys", "prefixed", "by", "the", "key", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/compare.go#L117-L120", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/compare.go", "func_name": "mustInt64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mustInt64 panics if val isn't an int or int64. It returns an int64 otherwise.", "docstring_tokens": ["mustInt64", "panics", "if", "val", "isn", "t", "an", "int", "or", "int64", ".", "It", "returns", "an", "int64", "otherwise", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/compare.go#L123-L131", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/compare.go", "func_name": "mustInt64orLeaseID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mustInt64orLeaseID panics if val isn't a LeaseID, int or int64. It returns an\n// int64 otherwise.", "docstring_tokens": ["mustInt64orLeaseID", "panics", "if", "val", "isn", "t", "a", "LeaseID", "int", "or", "int64", ".", "It", "returns", "an", "int64", "otherwise", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/compare.go#L135-L140", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/naming/grpc.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next gets the next set of updates from the etcd resolver.\n// Calls to Next should be serialized; concurrent calls are not safe since\n// there is no way to reconcile the update ordering.", "docstring_tokens": ["Next", "gets", "the", "next", "set", "of", "updates", "from", "the", "etcd", "resolver", ".", "Calls", "to", "Next", "should", "be", "serialized", ";", "concurrent", "calls", "are", "not", "safe", "since", "there", "is", "no", "way", "to", "reconcile", "the", "update", "ordering", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/naming/grpc.go#L71-L109", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "embed/config_logging_journal_unix.go", "func_name": "getJournalWriteSyncer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// use stderr as fallback", "docstring_tokens": ["use", "stderr", "as", "fallback"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/embed/config_logging_journal_unix.go#L29-L35", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/node.go", "func_name": "newKV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newKV creates a Key-Value pair", "docstring_tokens": ["newKV", "creates", "a", "Key", "-", "Value", "pair"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/node.go#L57-L67", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/node.go", "func_name": "newDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newDir creates a directory", "docstring_tokens": ["newDir", "creates", "a", "directory"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/node.go#L70-L80", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/node.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read function gets the value of the node.\n// If the receiver node is not a key-value pair, a \"Not A File\" error will be returned.", "docstring_tokens": ["Read", "function", "gets", "the", "value", "of", "the", "node", ".", "If", "the", "receiver", "node", "is", "not", "a", "key", "-", "value", "pair", "a", "Not", "A", "File", "error", "will", "be", "returned", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/node.go#L110-L116", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/node.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write function set the value of the node to the given value.\n// If the receiver node is a directory, a \"Not A File\" error will be returned.", "docstring_tokens": ["Write", "function", "set", "the", "value", "of", "the", "node", "to", "the", "given", "value", ".", "If", "the", "receiver", "node", "is", "a", "directory", "a", "Not", "A", "File", "error", "will", "be", "returned", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/node.go#L120-L129", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/node.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List function return a slice of nodes under the receiver node.\n// If the receiver node is not a directory, a \"Not A Directory\" error will be returned.", "docstring_tokens": ["List", "function", "return", "a", "slice", "of", "nodes", "under", "the", "receiver", "node", ".", "If", "the", "receiver", "node", "is", "not", "a", "directory", "a", "Not", "A", "Directory", "error", "will", "be", "returned", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/node.go#L153-L167", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/node.go", "func_name": "GetChild", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetChild function returns the child node under the directory node.\n// On success, it returns the file node", "docstring_tokens": ["GetChild", "function", "returns", "the", "child", "node", "under", "the", "directory", "node", ".", "On", "success", "it", "returns", "the", "file", "node"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/node.go#L171-L183", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/node.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add function adds a node to the receiver node.\n// If the receiver is not a directory, a \"Not A Directory\" error will be returned.\n// If there is an existing node with the same name under the directory, a \"Already Exist\"\n// error will be returned", "docstring_tokens": ["Add", "function", "adds", "a", "node", "to", "the", "receiver", "node", ".", "If", "the", "receiver", "is", "not", "a", "directory", "a", "Not", "A", "Directory", "error", "will", "be", "returned", ".", "If", "there", "is", "an", "existing", "node", "with", "the", "same", "name", "under", "the", "directory", "a", "Already", "Exist", "error", "will", "be", "returned"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/node.go#L189-L203", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/node.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove function remove the node.", "docstring_tokens": ["Remove", "function", "remove", "the", "node", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/node.go#L206-L256", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/node.go", "func_name": "Compare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compare function compares node index and value with provided ones.\n// second result value explains result and equals to one of Compare.. constants", "docstring_tokens": ["Compare", "function", "compares", "node", "index", "and", "value", "with", "provided", "ones", ".", "second", "result", "value", "explains", "result", "and", "equals", "to", "one", "of", "Compare", "..", "constants"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/node.go#L340-L355", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/node.go", "func_name": "Clone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clone function clone the node recursively and return the new node.\n// If the node is a directory, it will clone all the content under this directory.\n// If the node is a key-value pair, it will clone the pair.", "docstring_tokens": ["Clone", "function", "clone", "the", "node", "recursively", "and", "return", "the", "new", "node", ".", "If", "the", "node", "is", "a", "directory", "it", "will", "clone", "all", "the", "content", "under", "this", "directory", ".", "If", "the", "node", "is", "a", "key", "-", "value", "pair", "it", "will", "clone", "the", "pair", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/node.go#L360-L375", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/util.go", "func_name": "isConnectedToQuorumSince", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isConnectedToQuorumSince checks whether the local member is connected to the\n// quorum of the cluster since the given time.", "docstring_tokens": ["isConnectedToQuorumSince", "checks", "whether", "the", "local", "member", "is", "connected", "to", "the", "quorum", "of", "the", "cluster", "since", "the", "given", "time", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/util.go#L34-L36", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/util.go", "func_name": "isConnectedSince", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isConnectedSince checks whether the local member is connected to the\n// remote member since the given time.", "docstring_tokens": ["isConnectedSince", "checks", "whether", "the", "local", "member", "is", "connected", "to", "the", "remote", "member", "since", "the", "given", "time", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/util.go#L40-L43", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/util.go", "func_name": "numConnectedSince", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// numConnectedSince counts how many members are connected to the local member\n// since the given time.", "docstring_tokens": ["numConnectedSince", "counts", "how", "many", "members", "are", "connected", "to", "the", "local", "member", "since", "the", "given", "time", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/util.go#L53-L61", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/util.go", "func_name": "longestConnected", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// longestConnected chooses the member with longest active-since-time.\n// It returns false, if nothing is active.", "docstring_tokens": ["longestConnected", "chooses", "the", "member", "with", "longest", "active", "-", "since", "-", "time", ".", "It", "returns", "false", "if", "nothing", "is", "active", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/util.go#L65-L88", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "wal/decoder.go", "func_name": "isTornEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isTornEntry determines whether the last entry of the WAL was partially written\n// and corrupted because of a torn write.", "docstring_tokens": ["isTornEntry", "determines", "whether", "the", "last", "entry", "of", "the", "WAL", "was", "partially", "written", "and", "corrupted", "because", "of", "a", "torn", "write", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/wal/decoder.go#L127-L160", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/mock/mockserver/mockserver.go", "func_name": "StartMockServersOnNetwork", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartMockServersOnNetwork creates mock servers on either 'tcp' or 'unix' sockets.", "docstring_tokens": ["StartMockServersOnNetwork", "creates", "mock", "servers", "on", "either", "tcp", "or", "unix", "sockets", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/mock/mockserver/mockserver.go#L64-L73", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/mock/mockserver/mockserver.go", "func_name": "StartAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartAt restarts mock server at given index.", "docstring_tokens": ["StartAt", "restarts", "mock", "server", "at", "given", "index", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/mock/mockserver/mockserver.go#L123-L143", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/mock/mockserver/mockserver.go", "func_name": "StopAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StopAt stops mock server at given index.", "docstring_tokens": ["StopAt", "stops", "mock", "server", "at", "given", "index", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/mock/mockserver/mockserver.go#L146-L158", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/mock/mockserver/mockserver.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop stops the mock server, immediately closing all open connections and listeners.", "docstring_tokens": ["Stop", "stops", "the", "mock", "server", "immediately", "closing", "all", "open", "connections", "and", "listeners", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/mock/mockserver/mockserver.go#L161-L166", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/check.go", "func_name": "NewCheckCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCheckCommand returns the cobra command for \"check\".", "docstring_tokens": ["NewCheckCommand", "returns", "the", "cobra", "command", "for", "check", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/check.go#L106-L116", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/check.go", "func_name": "NewCheckPerfCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCheckPerfCommand returns the cobra command for \"check perf\".", "docstring_tokens": ["NewCheckPerfCommand", "returns", "the", "cobra", "command", "for", "check", "perf", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/check.go#L119-L133", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/check.go", "func_name": "NewCheckDatascaleCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCheckDatascaleCommand returns the cobra command for \"check datascale\".", "docstring_tokens": ["NewCheckDatascaleCommand", "returns", "the", "cobra", "command", "for", "check", "datascale", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/check.go#L269-L283", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/get_command.go", "func_name": "NewGetCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGetCommand returns the cobra command for \"get\".", "docstring_tokens": ["NewGetCommand", "returns", "the", "cobra", "command", "for", "get", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/get_command.go#L38-L55", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/get_command.go", "func_name": "NewGetCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGetCommand returns the CLI command for \"get\".", "docstring_tokens": ["NewGetCommand", "returns", "the", "CLI", "command", "for", "get", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/get_command.go#L27-L41", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/membership/member.go", "func_name": "PickPeerURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PickPeerURL chooses a random address from a given Member's PeerURLs.\n// It will panic if there is no PeerURLs available in Member.", "docstring_tokens": ["PickPeerURL", "chooses", "a", "random", "address", "from", "a", "given", "Member", "s", "PeerURLs", ".", "It", "will", "panic", "if", "there", "is", "no", "PeerURLs", "available", "in", "Member", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/membership/member.go#L78-L83", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/etcdhttp/metrics.go", "func_name": "HandleMetricsHealth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleMetricsHealth registers metrics and health handlers.", "docstring_tokens": ["HandleMetricsHealth", "registers", "metrics", "and", "health", "handlers", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/etcdhttp/metrics.go#L37-L40", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/rm_command.go", "func_name": "NewRemoveCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRemoveCommand returns the CLI command for \"rm\".", "docstring_tokens": ["NewRemoveCommand", "returns", "the", "CLI", "command", "for", "rm", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/rm_command.go#L25-L41", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/rm_command.go", "func_name": "rmCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rmCommandFunc executes the \"rm\" command.", "docstring_tokens": ["rmCommandFunc", "executes", "the", "rm", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/rm_command.go#L44-L63", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3rpc/key.go", "func_name": "checkIntervals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkIntervals tests whether puts and deletes overlap for a list of ops. If\n// there is an overlap, returns an error. If no overlap, return put and delete\n// sets for recursive evaluation.", "docstring_tokens": ["checkIntervals", "tests", "whether", "puts", "and", "deletes", "overlap", "for", "a", "list", "of", "ops", ".", "If", "there", "is", "an", "overlap", "returns", "an", "error", ".", "If", "no", "overlap", "return", "put", "and", "delete", "sets", "for", "recursive", "evaluation", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3rpc/key.go#L181-L260", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/metrics.go", "func_name": "ReportEventReceived", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReportEventReceived reports that an event is received.\n// This function should be called when the external systems received an\n// event from mvcc.Watcher.", "docstring_tokens": ["ReportEventReceived", "reports", "that", "an", "event", "is", "received", ".", "This", "function", "should", "be", "called", "when", "the", "external", "systems", "received", "an", "event", "from", "mvcc", ".", "Watcher", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/metrics.go#L247-L250", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/etcdserverpb/gw/rpc.pb.gw.go", "func_name": "RegisterKVHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterKVHandler registers the http handlers for service KV to \"mux\".\n// The handlers forward requests to the grpc endpoint over \"conn\".", "docstring_tokens": ["RegisterKVHandler", "registers", "the", "http", "handlers", "for", "service", "KV", "to", "mux", ".", "The", "handlers", "forward", "requests", "to", "the", "grpc", "endpoint", "over", "conn", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/etcdserverpb/gw/rpc.pb.gw.go#L678-L680", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/etcdserverpb/gw/rpc.pb.gw.go", "func_name": "RegisterWatchHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterWatchHandler registers the http handlers for service Watch to \"mux\".\n// The handlers forward requests to the grpc endpoint over \"conn\".", "docstring_tokens": ["RegisterWatchHandler", "registers", "the", "http", "handlers", "for", "service", "Watch", "to", "mux", ".", "The", "handlers", "forward", "requests", "to", "the", "grpc", "endpoint", "over", "conn", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/etcdserverpb/gw/rpc.pb.gw.go#L888-L890", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/etcdserverpb/gw/rpc.pb.gw.go", "func_name": "RegisterLeaseHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterLeaseHandler registers the http handlers for service Lease to \"mux\".\n// The handlers forward requests to the grpc endpoint over \"conn\".", "docstring_tokens": ["RegisterLeaseHandler", "registers", "the", "http", "handlers", "for", "service", "Lease", "to", "mux", ".", "The", "handlers", "forward", "requests", "to", "the", "grpc", "endpoint", "over", "conn", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/etcdserverpb/gw/rpc.pb.gw.go#L966-L968", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/etcdserverpb/gw/rpc.pb.gw.go", "func_name": "RegisterClusterHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterClusterHandler registers the http handlers for service Cluster to \"mux\".\n// The handlers forward requests to the grpc endpoint over \"conn\".", "docstring_tokens": ["RegisterClusterHandler", "registers", "the", "http", "handlers", "for", "service", "Cluster", "to", "mux", ".", "The", "handlers", "forward", "requests", "to", "the", "grpc", "endpoint", "over", "conn", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/etcdserverpb/gw/rpc.pb.gw.go#L1275-L1277", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/etcdserverpb/gw/rpc.pb.gw.go", "func_name": "RegisterMaintenanceHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterMaintenanceHandler registers the http handlers for service Maintenance to \"mux\".\n// The handlers forward requests to the grpc endpoint over \"conn\".", "docstring_tokens": ["RegisterMaintenanceHandler", "registers", "the", "http", "handlers", "for", "service", "Maintenance", "to", "mux", ".", "The", "handlers", "forward", "requests", "to", "the", "grpc", "endpoint", "over", "conn", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/etcdserverpb/gw/rpc.pb.gw.go#L1452-L1454", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/etcdserverpb/gw/rpc.pb.gw.go", "func_name": "RegisterAuthHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterAuthHandler registers the http handlers for service Auth to \"mux\".\n// The handlers forward requests to the grpc endpoint over \"conn\".", "docstring_tokens": ["RegisterAuthHandler", "registers", "the", "http", "handlers", "for", "service", "Auth", "to", "mux", ".", "The", "handlers", "forward", "requests", "to", "the", "grpc", "endpoint", "over", "conn", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/etcdserverpb/gw/rpc.pb.gw.go#L1728-L1730", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdmain/etcd.go", "func_name": "startEtcd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startEtcd runs StartEtcd in addition to hooks needed for standalone etcd.", "docstring_tokens": ["startEtcd", "runs", "StartEtcd", "in", "addition", "to", "hooks", "needed", "for", "standalone", "etcd", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdmain/etcd.go#L301-L312", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdmain/etcd.go", "func_name": "identifyDataDirOrDie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// identifyDataDirOrDie returns the type of the data dir.\n// Dies if the datadir is invalid.", "docstring_tokens": ["identifyDataDirOrDie", "returns", "the", "type", "of", "the", "data", "dir", ".", "Dies", "if", "the", "datadir", "is", "invalid", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdmain/etcd.go#L555-L602", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "wal/repair.go", "func_name": "openLast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// openLast opens the last wal file for read and write.", "docstring_tokens": ["openLast", "opens", "the", "last", "wal", "file", "for", "read", "and", "write", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/wal/repair.go#L134-L141", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/grpcproxy/leader.go", "func_name": "gotLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// gotLeader will force update the leadership status to having a leader.", "docstring_tokens": ["gotLeader", "will", "force", "update", "the", "leadership", "status", "to", "having", "a", "leader", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/grpcproxy/leader.go#L93-L101", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/grpcproxy/leader.go", "func_name": "lostNotify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lostNotify returns a channel that is closed if there has been\n// a leader loss not yet followed by a leader reacquire.", "docstring_tokens": ["lostNotify", "returns", "a", "channel", "that", "is", "closed", "if", "there", "has", "been", "a", "leader", "loss", "not", "yet", "followed", "by", "a", "leader", "reacquire", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/grpcproxy/leader.go#L109-L113", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdmain/grpc_proxy.go", "func_name": "newGRPCProxyCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newGRPCProxyCommand returns the cobra command for \"grpc-proxy\".", "docstring_tokens": ["newGRPCProxyCommand", "returns", "the", "cobra", "command", "for", "grpc", "-", "proxy", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdmain/grpc_proxy.go#L98-L106", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/member_command.go", "func_name": "NewMemberCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMemberCommand returns the cobra command for \"member\".", "docstring_tokens": ["NewMemberCommand", "returns", "the", "cobra", "command", "for", "member", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/member_command.go#L29-L41", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/member_command.go", "func_name": "NewMemberAddCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMemberAddCommand returns the cobra command for \"member add\".", "docstring_tokens": ["NewMemberAddCommand", "returns", "the", "cobra", "command", "for", "member", "add", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/member_command.go#L44-L55", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/member_command.go", "func_name": "NewMemberRemoveCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMemberRemoveCommand returns the cobra command for \"member remove\".", "docstring_tokens": ["NewMemberRemoveCommand", "returns", "the", "cobra", "command", "for", "member", "remove", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/member_command.go#L58-L67", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/member_command.go", "func_name": "NewMemberUpdateCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMemberUpdateCommand returns the cobra command for \"member update\".", "docstring_tokens": ["NewMemberUpdateCommand", "returns", "the", "cobra", "command", "for", "member", "update", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/member_command.go#L70-L81", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/member_command.go", "func_name": "NewMemberListCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMemberListCommand returns the cobra command for \"member list\".", "docstring_tokens": ["NewMemberListCommand", "returns", "the", "cobra", "command", "for", "member", "list", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/member_command.go#L84-L96", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/member_command.go", "func_name": "memberAddCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// memberAddCommandFunc executes the \"member add\" command.", "docstring_tokens": ["memberAddCommandFunc", "executes", "the", "member", "add", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/member_command.go#L99-L168", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/member_command.go", "func_name": "memberRemoveCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// memberRemoveCommandFunc executes the \"member remove\" command.", "docstring_tokens": ["memberRemoveCommandFunc", "executes", "the", "member", "remove", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/member_command.go#L171-L188", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/member_command.go", "func_name": "memberUpdateCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// memberUpdateCommandFunc executes the \"member update\" command.", "docstring_tokens": ["memberUpdateCommandFunc", "executes", "the", "member", "update", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/member_command.go#L191-L215", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/member_command.go", "func_name": "memberListCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// memberListCommandFunc executes the \"member list\" command.", "docstring_tokens": ["memberListCommandFunc", "executes", "the", "member", "list", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/member_command.go#L218-L227", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "wal/wal.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open opens the WAL at the given snap.\n// The snap SHOULD have been previously saved to the WAL, or the following\n// ReadAll will fail.\n// The returned WAL is ready to read and the first record will be the one after\n// the given snap. The WAL cannot be appended to before reading out all of its\n// previous records.", "docstring_tokens": ["Open", "opens", "the", "WAL", "at", "the", "given", "snap", ".", "The", "snap", "SHOULD", "have", "been", "previously", "saved", "to", "the", "WAL", "or", "the", "following", "ReadAll", "will", "fail", ".", "The", "returned", "WAL", "is", "ready", "to", "read", "and", "the", "first", "record", "will", "be", "the", "one", "after", "the", "given", "snap", ".", "The", "WAL", "cannot", "be", "appended", "to", "before", "reading", "out", "all", "of", "its", "previous", "records", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/wal/wal.go#L284-L293", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "wal/wal.go", "func_name": "OpenForRead", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpenForRead only opens the wal files for read.\n// Write on a read only wal panics.", "docstring_tokens": ["OpenForRead", "only", "opens", "the", "wal", "files", "for", "read", ".", "Write", "on", "a", "read", "only", "wal", "panics", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/wal/wal.go#L297-L299", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "wal/wal.go", "func_name": "Verify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Verify reads through the given WAL and verifies that it is not corrupted.\n// It creates a new decoder to read through the records of the given WAL.\n// It does not conflict with any open WAL, but it is recommended not to\n// call this function after opening the WAL for writing.\n// If it cannot read out the expected snap, it will return ErrSnapshotNotFound.\n// If the loaded snap doesn't match with the expected one, it will\n// return error ErrSnapshotMismatch.", "docstring_tokens": ["Verify", "reads", "through", "the", "given", "WAL", "and", "verifies", "that", "it", "is", "not", "corrupted", ".", "It", "creates", "a", "new", "decoder", "to", "read", "through", "the", "records", "of", "the", "given", "WAL", ".", "It", "does", "not", "conflict", "with", "any", "open", "WAL", "but", "it", "is", "recommended", "not", "to", "call", "this", "function", "after", "opening", "the", "WAL", "for", "writing", ".", "If", "it", "cannot", "read", "out", "the", "expected", "snap", "it", "will", "return", "ErrSnapshotNotFound", ".", "If", "the", "loaded", "snap", "doesn", "t", "match", "with", "the", "expected", "one", "it", "will", "return", "error", "ErrSnapshotMismatch", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/wal/wal.go#L508-L578", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "wal/wal.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the current WAL file and directory.", "docstring_tokens": ["Close", "closes", "the", "current", "WAL", "file", "and", "directory", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/wal/wal.go#L743-L771", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/watcher.go", "func_name": "notify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// notify function notifies the watcher. If the watcher interests in the given path,\n// the function will return true.", "docstring_tokens": ["notify", "function", "notifies", "the", "watcher", ".", "If", "the", "watcher", "interests", "in", "the", "given", "path", "the", "function", "will", "return", "true", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/watcher.go#L44-L75", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/watcher.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove removes the watcher from watcherHub\n// The actual remove function is guaranteed to only be executed once", "docstring_tokens": ["Remove", "removes", "the", "watcher", "from", "watcherHub", "The", "actual", "remove", "function", "is", "guaranteed", "to", "only", "be", "executed", "once"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/watcher.go#L79-L87", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2v3/store.go", "func_name": "mkPathDepth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mkPathDepth makes a path to a key that encodes its directory depth\n// for fast directory listing. If a depth is provided, it is added\n// to the computed depth.", "docstring_tokens": ["mkPathDepth", "makes", "a", "path", "to", "a", "key", "that", "encodes", "its", "directory", "depth", "for", "fast", "directory", "listing", ".", "If", "a", "depth", "is", "provided", "it", "is", "added", "to", "the", "computed", "depth", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2v3/store.go#L582-L586", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2v3/store.go", "func_name": "mkV2Node", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mkV2Node creates a V2 NodeExtern from a V3 KeyValue", "docstring_tokens": ["mkV2Node", "creates", "a", "V2", "NodeExtern", "from", "a", "V3", "KeyValue"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2v3/store.go#L607-L622", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2v3/store.go", "func_name": "prevKeyFromPuts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// prevKeyFromPuts gets the prev key that is being put; ignores\n// the put action response.", "docstring_tokens": ["prevKeyFromPuts", "gets", "the", "prev", "key", "that", "is", "being", "put", ";", "ignores", "the", "put", "action", "response", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2v3/store.go#L626-L634", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/report/weighted.go", "func_name": "NewWeightedReport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWeightedReport returns a report that includes\n// both weighted and unweighted statistics.", "docstring_tokens": ["NewWeightedReport", "returns", "a", "report", "that", "includes", "both", "weighted", "and", "unweighted", "statistics", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/report/weighted.go#L33-L39", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/types/urlsmap.go", "func_name": "NewURLsMapFromStringMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewURLsMapFromStringMap takes a map of strings and returns a URLsMap. The\n// string values in the map can be multiple values separated by the sep string.", "docstring_tokens": ["NewURLsMapFromStringMap", "takes", "a", "map", "of", "strings", "and", "returns", "a", "URLsMap", ".", "The", "string", "values", "in", "the", "map", "can", "be", "multiple", "values", "separated", "by", "the", "sep", "string", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/types/urlsmap.go#L45-L55", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/types/urlsmap.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String turns URLsMap into discovery-formatted name-to-URLs sorted by name.", "docstring_tokens": ["String", "turns", "URLsMap", "into", "discovery", "-", "formatted", "name", "-", "to", "-", "URLs", "sorted", "by", "name", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/types/urlsmap.go#L58-L67", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/types/urlsmap.go", "func_name": "URLs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URLs returns a list of all URLs.\n// The returned list is sorted in ascending lexicographical order.", "docstring_tokens": ["URLs", "returns", "a", "list", "of", "all", "URLs", ".", "The", "returned", "list", "is", "sorted", "in", "ascending", "lexicographical", "order", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/types/urlsmap.go#L71-L80", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/types/urlsmap.go", "func_name": "parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parse parses the given string and returns a map listing the values specified for each key.", "docstring_tokens": ["parse", "parses", "the", "given", "string", "and", "returns", "a", "map", "listing", "the", "values", "specified", "for", "each", "key", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/types/urlsmap.go#L88-L107", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2http/client.go", "func_name": "NewClientHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClientHandler generates a muxed http.Handler with the given parameters to serve etcd client requests.", "docstring_tokens": ["NewClientHandler", "generates", "a", "muxed", "http", ".", "Handler", "with", "the", "given", "parameters", "to", "serve", "etcd", "client", "requests", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2http/client.go#L55-L60", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2http/client.go", "func_name": "writeKeyEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeKeyEvent trims the prefix of key path in a single Event under\n// StoreKeysPrefix, serializes it and writes the resulting JSON to the given\n// ResponseWriter, along with the appropriate headers.", "docstring_tokens": ["writeKeyEvent", "trims", "the", "prefix", "of", "key", "path", "in", "a", "single", "Event", "under", "StoreKeysPrefix", "serializes", "it", "and", "writes", "the", "resulting", "JSON", "to", "the", "given", "ResponseWriter", "along", "with", "the", "appropriate", "headers", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2http/client.go#L556-L578", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2http/client.go", "func_name": "writeKeyError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeKeyError logs and writes the given Error to the ResponseWriter.\n// If Error is not an etcdErr, the error will be converted to an etcd error.", "docstring_tokens": ["writeKeyError", "logs", "and", "writes", "the", "given", "Error", "to", "the", "ResponseWriter", ".", "If", "Error", "is", "not", "an", "etcdErr", "the", "error", "will", "be", "converted", "to", "an", "etcd", "error", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2http/client.go#L587-L618", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2http/client.go", "func_name": "getUint64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getUint64 extracts a uint64 by the given key from a Form. If the key does\n// not exist in the form, 0 is returned. If the key exists but the value is\n// badly formed, an error is returned. If multiple values are present only the\n// first is considered.", "docstring_tokens": ["getUint64", "extracts", "a", "uint64", "by", "the", "given", "key", "from", "a", "Form", ".", "If", "the", "key", "does", "not", "exist", "in", "the", "form", "0", "is", "returned", ".", "If", "the", "key", "exists", "but", "the", "value", "is", "badly", "formed", "an", "error", "is", "returned", ".", "If", "multiple", "values", "are", "present", "only", "the", "first", "is", "considered", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2http/client.go#L740-L745", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2http/client.go", "func_name": "getBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getBool extracts a bool by the given key from a Form. If the key does not\n// exist in the form, false is returned. If the key exists but the value is\n// badly formed, an error is returned. If multiple values are present only the\n// first is considered.", "docstring_tokens": ["getBool", "extracts", "a", "bool", "by", "the", "given", "key", "from", "a", "Form", ".", "If", "the", "key", "does", "not", "exist", "in", "the", "form", "false", "is", "returned", ".", "If", "the", "key", "exists", "but", "the", "value", "is", "badly", "formed", "an", "error", "is", "returned", ".", "If", "multiple", "values", "are", "present", "only", "the", "first", "is", "considered", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2http/client.go#L751-L756", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/concurrency/key.go", "func_name": "waitDeletes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitDeletes efficiently waits until all keys matching the prefix and no greater\n// than the create revision.", "docstring_tokens": ["waitDeletes", "efficiently", "waits", "until", "all", "keys", "matching", "the", "prefix", "and", "no", "greater", "than", "the", "create", "revision", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/concurrency/key.go#L50-L65", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/logutil/zap.go", "func_name": "AddOutputPaths", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddOutputPaths adds output paths to the existing output paths, resolving conflicts.", "docstring_tokens": ["AddOutputPaths", "adds", "output", "paths", "to", "the", "existing", "output", "paths", "resolving", "conflicts", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/logutil/zap.go#L57-L97", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "embed/config.go", "func_name": "NewConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConfig creates a new Config populated with default values.", "docstring_tokens": ["NewConfig", "creates", "a", "new", "Config", "populated", "with", "default", "values", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/embed/config.go#L366-L421", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "embed/config.go", "func_name": "PeerURLsMapAndToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeerURLsMapAndToken sets up an initial peer URLsMap and cluster token for bootstrap or discovery.", "docstring_tokens": ["PeerURLsMapAndToken", "sets", "up", "an", "initial", "peer", "URLsMap", "and", "cluster", "token", "for", "bootstrap", "or", "discovery", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/embed/config.go#L619-L665", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "embed/config.go", "func_name": "GetDNSClusterNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDNSClusterNames uses DNS SRV records to get a list of initial nodes for cluster bootstrapping.", "docstring_tokens": ["GetDNSClusterNames", "uses", "DNS", "SRV", "records", "to", "get", "a", "list", "of", "initial", "nodes", "for", "cluster", "bootstrapping", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/embed/config.go#L668-L717", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "embed/config.go", "func_name": "checkBindURLs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkBindURLs returns an error if any URL uses a domain name.", "docstring_tokens": ["checkBindURLs", "returns", "an", "error", "if", "any", "URL", "uses", "a", "domain", "name", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/embed/config.go#L831-L850", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/srv/srv.go", "func_name": "GetCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCluster gets the cluster information via DNS discovery.\n// Also sees each entry as a separate instance.", "docstring_tokens": ["GetCluster", "gets", "the", "cluster", "information", "via", "DNS", "discovery", ".", "Also", "sees", "each", "entry", "as", "a", "separate", "instance", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/srv/srv.go#L35-L91", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/srv/srv.go", "func_name": "GetClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClient looks up the client endpoints for a service and domain.", "docstring_tokens": ["GetClient", "looks", "up", "the", "client", "endpoints", "for", "a", "service", "and", "domain", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/srv/srv.go#L99-L130", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/srv/srv.go", "func_name": "GetSRVService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSRVService generates a SRV service including an optional suffix.", "docstring_tokens": ["GetSRVService", "generates", "a", "SRV", "service", "including", "an", "optional", "suffix", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/srv/srv.go#L133-L142", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/fileutil/read_dir.go", "func_name": "ReadDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadDir returns the filenames in the given directory in sorted order.", "docstring_tokens": ["ReadDir", "returns", "the", "filenames", "in", "the", "given", "directory", "in", "sorted", "order", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/fileutil/read_dir.go#L44-L70", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/util.go", "func_name": "compact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// compact keyspace history to a provided revision", "docstring_tokens": ["compact", "keyspace", "history", "to", "a", "provided", "revision"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/util.go#L133-L142", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/util.go", "func_name": "defrag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// defrag a given endpoint", "docstring_tokens": ["defrag", "a", "given", "endpoint"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/util.go#L145-L154", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/user_command.go", "func_name": "NewUserCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewUserCommand returns the cobra command for \"user\".", "docstring_tokens": ["NewUserCommand", "returns", "the", "cobra", "command", "for", "user", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/user_command.go#L31-L46", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/user_command.go", "func_name": "userAddCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// userAddCommandFunc executes the \"user add\" command.", "docstring_tokens": ["userAddCommandFunc", "executes", "the", "user", "add", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/user_command.go#L123-L158", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/user_command.go", "func_name": "userGetCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// userGetCommandFunc executes the \"user get\" command.", "docstring_tokens": ["userGetCommandFunc", "executes", "the", "user", "get", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/user_command.go#L174-L199", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/user_command.go", "func_name": "userChangePasswordCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// userChangePasswordCommandFunc executes the \"user passwd\" command.", "docstring_tokens": ["userChangePasswordCommandFunc", "executes", "the", "user", "passwd", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/user_command.go#L216-L235", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/event_history.go", "func_name": "addEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addEvent function adds event into the eventHistory", "docstring_tokens": ["addEvent", "function", "adds", "event", "into", "the", "eventHistory"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/event_history.go#L43-L54", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/event_history.go", "func_name": "scan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// scan enumerates events from the index history and stops at the first point\n// where the key matches.", "docstring_tokens": ["scan", "enumerates", "events", "from", "the", "index", "history", "and", "stops", "at", "the", "first", "point", "where", "the", "key", "matches", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/event_history.go#L58-L109", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/event_history.go", "func_name": "clone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// clone will be protected by a stop-world lock\n// do not need to obtain internal lock", "docstring_tokens": ["clone", "will", "be", "protected", "by", "a", "stop", "-", "world", "lock", "do", "not", "need", "to", "obtain", "internal", "lock"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/event_history.go#L113-L129", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/backend.go", "func_name": "openSnapshotBackend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// openSnapshotBackend renames a snapshot db to the current etcd db and opens it.", "docstring_tokens": ["openSnapshotBackend", "renames", "a", "snapshot", "db", "to", "the", "current", "etcd", "db", "and", "opens", "it", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/backend.go#L56-L65", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/backend.go", "func_name": "openBackend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// openBackend returns a backend using the current etcd db.", "docstring_tokens": ["openBackend", "returns", "a", "backend", "using", "the", "current", "etcd", "db", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/backend.go#L68-L97", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/backend.go", "func_name": "recoverSnapshotBackend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recoverBackendSnapshot recovers the DB from a snapshot in case etcd crashes\n// before updating the backend db after persisting raft snapshot to disk,\n// violating the invariant snapshot.Metadata.Index < db.consistentIndex. In this\n// case, replace the db with the snapshot db sent by the leader.", "docstring_tokens": ["recoverBackendSnapshot", "recovers", "the", "DB", "from", "a", "snapshot", "in", "case", "etcd", "crashes", "before", "updating", "the", "backend", "db", "after", "persisting", "raft", "snapshot", "to", "disk", "violating", "the", "invariant", "snapshot", ".", "Metadata", ".", "Index", "<", "db", ".", "consistentIndex", ".", "In", "this", "case", "replace", "the", "db", "with", "the", "snapshot", "db", "sent", "by", "the", "leader", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/backend.go#L103-L112", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/update_command.go", "func_name": "NewUpdateCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewUpdateCommand returns the CLI command for \"update\".", "docstring_tokens": ["NewUpdateCommand", "returns", "the", "CLI", "command", "for", "update", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/update_command.go#L27-L40", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/update_command.go", "func_name": "updateCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updateCommandFunc executes the \"update\" command.", "docstring_tokens": ["updateCommandFunc", "executes", "the", "update", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/update_command.go#L43-L63", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2stats/queue.go", "func_name": "frontAndBack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FrontAndBack gets the front and back elements in the queue\n// We must grab front and back together with the protection of the lock", "docstring_tokens": ["FrontAndBack", "gets", "the", "front", "and", "back", "elements", "in", "the", "queue", "We", "must", "grab", "front", "and", "back", "together", "with", "the", "protection", "of", "the", "lock"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2stats/queue.go#L52-L59", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2stats/queue.go", "func_name": "Insert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Insert function insert a RequestStats into the queue and update the records", "docstring_tokens": ["Insert", "function", "insert", "a", "RequestStats", "into", "the", "queue", "and", "update", "the", "records"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2stats/queue.go#L62-L78", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2stats/queue.go", "func_name": "Rate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rate function returns the package rate and byte rate", "docstring_tokens": ["Rate", "function", "returns", "the", "package", "rate", "and", "byte", "rate"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2stats/queue.go#L81-L100", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2stats/queue.go", "func_name": "Clear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clear function clear up the statsQueue", "docstring_tokens": ["Clear", "function", "clear", "up", "the", "statsQueue"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2stats/queue.go#L103-L110", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/stringutil/rand.go", "func_name": "UniqueStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UniqueStrings returns a slice of randomly generated unique strings.", "docstring_tokens": ["UniqueStrings", "returns", "a", "slice", "of", "randomly", "generated", "unique", "strings", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/stringutil/rand.go#L23-L34", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/stringutil/rand.go", "func_name": "RandomStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RandomStrings returns a slice of randomly generated strings.", "docstring_tokens": ["RandomStrings", "returns", "a", "slice", "of", "randomly", "generated", "strings", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/stringutil/rand.go#L37-L43", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "client/util.go", "func_name": "IsKeyNotFound", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsKeyNotFound returns true if the error code is ErrorCodeKeyNotFound.", "docstring_tokens": ["IsKeyNotFound", "returns", "true", "if", "the", "error", "code", "is", "ErrorCodeKeyNotFound", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/client/util.go#L32-L37", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "client/util.go", "func_name": "IsRoleNotFound", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsRoleNotFound returns true if the error means role not found of v2 API.", "docstring_tokens": ["IsRoleNotFound", "returns", "true", "if", "the", "error", "means", "role", "not", "found", "of", "v2", "API", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/client/util.go#L40-L45", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "client/util.go", "func_name": "IsUserNotFound", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsUserNotFound returns true if the error means user not found of v2 API.", "docstring_tokens": ["IsUserNotFound", "returns", "true", "if", "the", "error", "means", "user", "not", "found", "of", "v2", "API", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/client/util.go#L48-L53", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2discovery/discovery.go", "func_name": "JoinCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JoinCluster will connect to the discovery service at the given url, and\n// register the server represented by the given id and config to the cluster", "docstring_tokens": ["JoinCluster", "will", "connect", "to", "the", "discovery", "service", "at", "the", "given", "url", "and", "register", "the", "server", "represented", "by", "the", "given", "id", "and", "config", "to", "the", "cluster"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2discovery/discovery.go#L63-L69", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2discovery/discovery.go", "func_name": "GetCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCluster will connect to the discovery service at the given url and\n// retrieve a string describing the cluster", "docstring_tokens": ["GetCluster", "will", "connect", "to", "the", "discovery", "service", "at", "the", "given", "url", "and", "retrieve", "a", "string", "describing", "the", "cluster"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2discovery/discovery.go#L73-L79", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2discovery/discovery.go", "func_name": "newProxyFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newProxyFunc builds a proxy function from the given string, which should\n// represent a URL that can be used as a proxy. It performs basic\n// sanitization of the URL and returns any error encountered.", "docstring_tokens": ["newProxyFunc", "builds", "a", "proxy", "function", "from", "the", "given", "string", "which", "should", "represent", "a", "URL", "that", "can", "be", "used", "as", "a", "proxy", ".", "It", "performs", "basic", "sanitization", "of", "the", "URL", "and", "returns", "any", "error", "encountered", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2discovery/discovery.go#L95-L122", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/retry_interceptor.go", "func_name": "isSafeRetry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isSafeRetry returns \"true\", if request is safe for retry with the given error.", "docstring_tokens": ["isSafeRetry", "returns", "true", "if", "request", "is", "safe", "for", "retry", "with", "the", "given", "error", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/retry_interceptor.go#L277-L290", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/retry_interceptor.go", "func_name": "withRetryPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// withRetryPolicy sets the retry policy of this call.", "docstring_tokens": ["withRetryPolicy", "sets", "the", "retry", "policy", "of", "this", "call", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/retry_interceptor.go#L325-L329", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/retry_interceptor.go", "func_name": "withAuthRetry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// withAuthRetry sets enables authentication retries.", "docstring_tokens": ["withAuthRetry", "sets", "enables", "authentication", "retries", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/retry_interceptor.go#L332-L336", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/retry_interceptor.go", "func_name": "withMax", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// withMax sets the maximum number of retries on this call, or this interceptor.", "docstring_tokens": ["withMax", "sets", "the", "maximum", "number", "of", "retries", "on", "this", "call", "or", "this", "interceptor", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/retry_interceptor.go#L339-L343", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/retry_interceptor.go", "func_name": "withBackoff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBackoff sets the `BackoffFunc `used to control time between retries.", "docstring_tokens": ["WithBackoff", "sets", "the", "BackoffFunc", "used", "to", "control", "time", "between", "retries", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/retry_interceptor.go#L346-L350", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2stats/server.go", "func_name": "RecvAppendReq", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RecvAppendReq updates the ServerStats in response to an AppendRequest\n// from the given leader being received", "docstring_tokens": ["RecvAppendReq", "updates", "the", "ServerStats", "in", "response", "to", "an", "AppendRequest", "from", "the", "given", "leader", "being", "received"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2stats/server.go#L91-L110", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2stats/server.go", "func_name": "SendAppendReq", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendAppendReq updates the ServerStats in response to an AppendRequest\n// being sent by this server", "docstring_tokens": ["SendAppendReq", "updates", "the", "ServerStats", "in", "response", "to", "an", "AppendRequest", "being", "sent", "by", "this", "server"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2stats/server.go#L114-L128", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/backend/tx_buffer.go", "func_name": "merge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// merge merges data from bb into bbsrc.", "docstring_tokens": ["merge", "merges", "data", "from", "bb", "into", "bbsrc", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/backend/tx_buffer.go#L153-L175", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/recipes/client.go", "func_name": "deleteRevKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deleteRevKey deletes a key by revision, returning false if key is missing", "docstring_tokens": ["deleteRevKey", "deletes", "a", "key", "by", "revision", "returning", "false", "if", "key", "is", "missing"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/recipes/client.go#L33-L43", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/cluster_util.go", "func_name": "isMemberBootstrapped", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isMemberBootstrapped tries to check if the given member has been bootstrapped\n// in the given cluster.", "docstring_tokens": ["isMemberBootstrapped", "tries", "to", "check", "if", "the", "given", "member", "has", "been", "bootstrapped", "in", "the", "given", "cluster", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/cluster_util.go#L35-L49", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/cluster_util.go", "func_name": "GetClusterFromRemotePeers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClusterFromRemotePeers takes a set of URLs representing etcd peers, and\n// attempts to construct a Cluster by accessing the members endpoint on one of\n// these URLs. The first URL to provide a response is used. If no URLs provide\n// a response, or a Cluster cannot be successfully created from a received\n// response, an error is returned.\n// Each request has a 10-second timeout. Because the upper limit of TTL is 5s,\n// 10 second is enough for building connection and finishing request.", "docstring_tokens": ["GetClusterFromRemotePeers", "takes", "a", "set", "of", "URLs", "representing", "etcd", "peers", "and", "attempts", "to", "construct", "a", "Cluster", "by", "accessing", "the", "members", "endpoint", "on", "one", "of", "these", "URLs", ".", "The", "first", "URL", "to", "provide", "a", "response", "is", "used", ".", "If", "no", "URLs", "provide", "a", "response", "or", "a", "Cluster", "cannot", "be", "successfully", "created", "from", "a", "received", "response", "an", "error", "is", "returned", ".", "Each", "request", "has", "a", "10", "-", "second", "timeout", ".", "Because", "the", "upper", "limit", "of", "TTL", "is", "5s", "10", "second", "is", "enough", "for", "building", "connection", "and", "finishing", "request", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/cluster_util.go#L58-L60", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/cluster_util.go", "func_name": "getClusterFromRemotePeers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// If logerr is true, it prints out more error messages.", "docstring_tokens": ["If", "logerr", "is", "true", "it", "prints", "out", "more", "error", "messages", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/cluster_util.go#L63-L131", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/cluster_util.go", "func_name": "getRemotePeerURLs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getRemotePeerURLs returns peer urls of remote members in the cluster. The\n// returned list is sorted in ascending lexicographical order.", "docstring_tokens": ["getRemotePeerURLs", "returns", "peer", "urls", "of", "remote", "members", "in", "the", "cluster", ".", "The", "returned", "list", "is", "sorted", "in", "ascending", "lexicographical", "order", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/cluster_util.go#L135-L145", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/cluster_util.go", "func_name": "getVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getVersions returns the versions of the members in the given cluster.\n// The key of the returned map is the member's ID. The value of the returned map\n// is the semver versions string, including server and cluster.\n// If it fails to get the version of a member, the key will be nil.", "docstring_tokens": ["getVersions", "returns", "the", "versions", "of", "the", "members", "in", "the", "given", "cluster", ".", "The", "key", "of", "the", "returned", "map", "is", "the", "member", "s", "ID", ".", "The", "value", "of", "the", "returned", "map", "is", "the", "semver", "versions", "string", "including", "server", "and", "cluster", ".", "If", "it", "fails", "to", "get", "the", "version", "of", "a", "member", "the", "key", "will", "be", "nil", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/cluster_util.go#L151-L176", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/cluster_util.go", "func_name": "decideClusterVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// decideClusterVersion decides the cluster version based on the versions map.\n// The returned version is the min server version in the map, or nil if the min\n// version in unknown.", "docstring_tokens": ["decideClusterVersion", "decides", "the", "cluster", "version", "based", "on", "the", "versions", "map", ".", "The", "returned", "version", "is", "the", "min", "server", "version", "in", "the", "map", "or", "nil", "if", "the", "min", "version", "in", "unknown", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/cluster_util.go#L181-L223", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/cluster_util.go", "func_name": "getVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getVersion returns the Versions of the given member via its\n// peerURLs. Returns the last error if it fails to get the version.", "docstring_tokens": ["getVersion", "returns", "the", "Versions", "of", "the", "given", "member", "via", "its", "peerURLs", ".", "Returns", "the", "last", "error", "if", "it", "fails", "to", "get", "the", "version", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/cluster_util.go#L299-L357", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/contention/contention.go", "func_name": "NewTimeoutDetector", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTimeoutDetector creates the TimeoutDetector.", "docstring_tokens": ["NewTimeoutDetector", "creates", "the", "TimeoutDetector", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/contention/contention.go#L36-L41", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/contention/contention.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset resets the NewTimeoutDetector.", "docstring_tokens": ["Reset", "resets", "the", "NewTimeoutDetector", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/contention/contention.go#L44-L49", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/contention/contention.go", "func_name": "Observe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Observe observes an event for given id. It returns false and exceeded duration\n// if the interval is longer than the expectation.", "docstring_tokens": ["Observe", "observes", "an", "event", "for", "given", "id", ".", "It", "returns", "false", "and", "exceeded", "duration", "if", "the", "interval", "is", "longer", "than", "the", "expectation", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/contention/contention.go#L53-L69", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/etcdhttp/peer.go", "func_name": "NewPeerHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPeerHandler generates an http.Handler to handle etcd peer requests.", "docstring_tokens": ["NewPeerHandler", "generates", "an", "http", ".", "Handler", "to", "handle", "etcd", "peer", "requests", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/etcdhttp/peer.go#L34-L36", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/key_index.go", "func_name": "put", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// put puts a revision to the keyIndex.", "docstring_tokens": ["put", "puts", "a", "revision", "to", "the", "keyIndex", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/key_index.go#L77-L104", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/key_index.go", "func_name": "tombstone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tombstone puts a revision, pointing to a tombstone, to the keyIndex.\n// It also creates a new empty generation in the keyIndex.\n// It returns ErrRevisionNotFound when tombstone on an empty generation.", "docstring_tokens": ["tombstone", "puts", "a", "revision", "pointing", "to", "a", "tombstone", "to", "the", "keyIndex", ".", "It", "also", "creates", "a", "new", "empty", "generation", "in", "the", "keyIndex", ".", "It", "returns", "ErrRevisionNotFound", "when", "tombstone", "on", "an", "empty", "generation", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/key_index.go#L127-L145", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/key_index.go", "func_name": "get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// get gets the modified, created revision and version of the key that satisfies the given atRev.\n// Rev must be higher than or equal to the given atRev.", "docstring_tokens": ["get", "gets", "the", "modified", "created", "revision", "and", "version", "of", "the", "key", "that", "satisfies", "the", "given", "atRev", ".", "Rev", "must", "be", "higher", "than", "or", "equal", "to", "the", "given", "atRev", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/key_index.go#L149-L171", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/key_index.go", "func_name": "since", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// since returns revisions since the given rev. Only the revision with the\n// largest sub revision will be returned if multiple revisions have the same\n// main revision.", "docstring_tokens": ["since", "returns", "revisions", "since", "the", "given", "rev", ".", "Only", "the", "revision", "with", "the", "largest", "sub", "revision", "will", "be", "returned", "if", "multiple", "revisions", "have", "the", "same", "main", "revision", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/key_index.go#L176-L218", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/key_index.go", "func_name": "keep", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// keep finds the revision to be kept if compact is called at given atRev.", "docstring_tokens": ["keep", "finds", "the", "revision", "to", "be", "kept", "if", "compact", "is", "called", "at", "given", "atRev", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/key_index.go#L256-L269", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/key_index.go", "func_name": "findGeneration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findGeneration finds out the generation of the keyIndex that the\n// given rev belongs to. If the given rev is at the gap of two generations,\n// which means that the key does not exist at the given rev, it returns nil.", "docstring_tokens": ["findGeneration", "finds", "out", "the", "generation", "of", "the", "keyIndex", "that", "the", "given", "rev", "belongs", "to", ".", "If", "the", "given", "rev", "is", "at", "the", "gap", "of", "two", "generations", "which", "means", "that", "the", "key", "does", "not", "exist", "at", "the", "given", "rev", "it", "returns", "nil", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/key_index.go#L304-L325", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/watchable_store.go", "func_name": "cancelWatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cancelWatcher removes references of the watcher from the watchableStore", "docstring_tokens": ["cancelWatcher", "removes", "references", "of", "the", "watcher", "from", "the", "watchableStore"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/watchable_store.go#L145-L185", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/watchable_store.go", "func_name": "syncWatchersLoop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// syncWatchersLoop syncs the watcher in the unsynced map every 100ms.", "docstring_tokens": ["syncWatchersLoop", "syncs", "the", "watcher", "in", "the", "unsynced", "map", "every", "100ms", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/watchable_store.go#L204-L232", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/watchable_store.go", "func_name": "syncVictimsLoop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// syncVictimsLoop tries to write precomputed watcher responses to\n// watchers that had a blocked watcher channel", "docstring_tokens": ["syncVictimsLoop", "tries", "to", "write", "precomputed", "watcher", "responses", "to", "watchers", "that", "had", "a", "blocked", "watcher", "channel"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/watchable_store.go#L236-L259", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/watchable_store.go", "func_name": "moveVictims", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// moveVictims tries to update watches with already pending event data", "docstring_tokens": ["moveVictims", "tries", "to", "update", "watches", "with", "already", "pending", "event", "data"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/watchable_store.go#L262-L317", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/watchable_store.go", "func_name": "kvsToEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// kvsToEvents gets all events for the watchers from all key-value pairs", "docstring_tokens": ["kvsToEvents", "gets", "all", "events", "for", "the", "watchers", "from", "all", "key", "-", "value", "pairs"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/watchable_store.go#L409-L433", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/watchable_store.go", "func_name": "notify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// notify notifies the fact that given event at the given rev just happened to\n// watchers that watch on the key of the event.", "docstring_tokens": ["notify", "notifies", "the", "fact", "that", "given", "event", "at", "the", "given", "rev", "just", "happened", "to", "watchers", "that", "watch", "on", "the", "key", "of", "the", "event", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/watchable_store.go#L437-L465", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/utils.go", "func_name": "isOpFuncCalled", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check if the provided function is being called in the op options.", "docstring_tokens": ["Check", "if", "the", "provided", "function", "is", "being", "called", "in", "the", "op", "options", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/utils.go#L37-L49", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/backend/batch_tx.go", "func_name": "UnsafePut", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnsafePut must be called holding the lock on the tx.", "docstring_tokens": ["UnsafePut", "must", "be", "called", "holding", "the", "lock", "on", "the", "tx", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/backend/batch_tx.go#L88-L90", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/backend/batch_tx.go", "func_name": "UnsafeSeqPut", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnsafeSeqPut must be called holding the lock on the tx.", "docstring_tokens": ["UnsafeSeqPut", "must", "be", "called", "holding", "the", "lock", "on", "the", "tx", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/backend/batch_tx.go#L93-L95", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/backend/batch_tx.go", "func_name": "UnsafeRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnsafeRange must be called holding the lock on the tx.", "docstring_tokens": ["UnsafeRange", "must", "be", "called", "holding", "the", "lock", "on", "the", "tx", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/backend/batch_tx.go#L129-L142", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/backend/batch_tx.go", "func_name": "UnsafeDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnsafeDelete must be called holding the lock on the tx.", "docstring_tokens": ["UnsafeDelete", "must", "be", "called", "holding", "the", "lock", "on", "the", "tx", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/backend/batch_tx.go#L167-L192", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/backend/batch_tx.go", "func_name": "UnsafeForEach", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnsafeForEach must be called holding the lock on the tx.", "docstring_tokens": ["UnsafeForEach", "must", "be", "called", "holding", "the", "lock", "on", "the", "tx", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/backend/batch_tx.go#L195-L197", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/backend/batch_tx.go", "func_name": "Commit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Commit commits a previous tx and begins a new writable one.", "docstring_tokens": ["Commit", "commits", "a", "previous", "tx", "and", "begins", "a", "new", "writable", "one", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/backend/batch_tx.go#L207-L211", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "mvcc/backend/batch_tx.go", "func_name": "CommitAndStop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CommitAndStop commits the previous tx and does not create a new one.", "docstring_tokens": ["CommitAndStop", "commits", "the", "previous", "tx", "and", "does", "not", "create", "a", "new", "one", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/mvcc/backend/batch_tx.go#L214-L218", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "lease/lessor.go", "func_name": "Renew", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Renew renews an existing lease. If the given lease does not exist or\n// has expired, an error will be returned.", "docstring_tokens": ["Renew", "renews", "an", "existing", "lease", ".", "If", "the", "given", "lease", "does", "not", "exist", "or", "has", "expired", "an", "error", "will", "be", "returned", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/lease/lessor.go#L351-L401", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "lease/lessor.go", "func_name": "Attach", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Attach attaches items to the lease with given ID. When the lease\n// expires, the attached items will be automatically removed.\n// If the given lease does not exist, an error will be returned.", "docstring_tokens": ["Attach", "attaches", "items", "to", "the", "lease", "with", "given", "ID", ".", "When", "the", "lease", "expires", "the", "attached", "items", "will", "be", "automatically", "removed", ".", "If", "the", "given", "lease", "does", "not", "exist", "an", "error", "will", "be", "returned", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/lease/lessor.go#L504-L520", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "lease/lessor.go", "func_name": "revokeExpiredLeases", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// revokeExpiredLeases finds all leases past their expiry and sends them to epxired channel for\n// to be revoked.", "docstring_tokens": ["revokeExpiredLeases", "finds", "all", "leases", "past", "their", "expiry", "and", "sends", "them", "to", "epxired", "channel", "for", "to", "be", "revoked", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/lease/lessor.go#L586-L609", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "lease/lessor.go", "func_name": "checkpointScheduledLeases", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkpointScheduledLeases finds all scheduled lease checkpoints that are due and\n// submits them to the checkpointer to persist them to the consensus log.", "docstring_tokens": ["checkpointScheduledLeases", "finds", "all", "scheduled", "lease", "checkpoints", "that", "are", "due", "and", "submits", "them", "to", "the", "checkpointer", "to", "persist", "them", "to", "the", "consensus", "log", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/lease/lessor.go#L613-L631", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "lease/lessor.go", "func_name": "expireExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expireExists returns true if expiry items exist.\n// It pops only when expiry item exists.\n// \"next\" is true, to indicate that it may exist in next attempt.", "docstring_tokens": ["expireExists", "returns", "true", "if", "expiry", "items", "exist", ".", "It", "pops", "only", "when", "expiry", "item", "exists", ".", "next", "is", "true", "to", "indicate", "that", "it", "may", "exist", "in", "next", "attempt", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/lease/lessor.go#L640-L663", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "lease/lessor.go", "func_name": "findExpiredLeases", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findExpiredLeases loops leases in the leaseMap until reaching expired limit\n// and returns the expired leases that needed to be revoked.", "docstring_tokens": ["findExpiredLeases", "loops", "leases", "in", "the", "leaseMap", "until", "reaching", "expired", "limit", "and", "returns", "the", "expired", "leases", "that", "needed", "to", "be", "revoked", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/lease/lessor.go#L667-L693", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "lease/lessor.go", "func_name": "refresh", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// refresh refreshes the expiry of the lease.", "docstring_tokens": ["refresh", "refreshes", "the", "expiry", "of", "the", "lease", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/lease/lessor.go#L833-L838", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "lease/lessor.go", "func_name": "forever", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// forever sets the expiry of lease to be forever.", "docstring_tokens": ["forever", "sets", "the", "expiry", "of", "lease", "to", "be", "forever", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/lease/lessor.go#L841-L845", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "lease/lessor.go", "func_name": "Keys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Keys returns all the keys attached to the lease.", "docstring_tokens": ["Keys", "returns", "all", "the", "keys", "attached", "to", "the", "lease", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/lease/lessor.go#L848-L856", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "lease/lessor.go", "func_name": "Remaining", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remaining returns the remaining time of the lease.", "docstring_tokens": ["Remaining", "returns", "the", "remaining", "time", "of", "the", "lease", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/lease/lessor.go#L859-L866", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/compaction_command.go", "func_name": "NewCompactionCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCompactionCommand returns the cobra command for \"compaction\".", "docstring_tokens": ["NewCompactionCommand", "returns", "the", "cobra", "command", "for", "compaction", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/compaction_command.go#L28-L36", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/compaction_command.go", "func_name": "compactionCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// compactionCommandFunc executes the \"compaction\" command.", "docstring_tokens": ["compactionCommandFunc", "executes", "the", "compaction", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/compaction_command.go#L39-L62", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/put_command.go", "func_name": "NewPutCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPutCommand returns the cobra command for \"put\".", "docstring_tokens": ["NewPutCommand", "returns", "the", "cobra", "command", "for", "put", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/put_command.go#L34-L64", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/put_command.go", "func_name": "putCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// putCommandFunc executes the \"put\" command.", "docstring_tokens": ["putCommandFunc", "executes", "the", "put", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/put_command.go#L67-L77", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/httpproxy/proxy.go", "func_name": "NewHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHandler creates a new HTTP handler, listening on the given transport,\n// which will proxy requests to an etcd cluster.\n// The handler will periodically update its view of the cluster.", "docstring_tokens": ["NewHandler", "creates", "a", "new", "HTTP", "handler", "listening", "on", "the", "given", "transport", "which", "will", "proxy", "requests", "to", "an", "etcd", "cluster", ".", "The", "handler", "will", "periodically", "update", "its", "view", "of", "the", "cluster", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/httpproxy/proxy.go#L46-L65", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/httpproxy/proxy.go", "func_name": "NewReadonlyHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReadonlyHandler wraps the given HTTP handler to allow only GET requests", "docstring_tokens": ["NewReadonlyHandler", "wraps", "the", "given", "HTTP", "handler", "to", "allow", "only", "GET", "requests"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/httpproxy/proxy.go#L68-L71", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/set_command.go", "func_name": "NewSetCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSetCommand returns the CLI command for \"set\".", "docstring_tokens": ["NewSetCommand", "returns", "the", "CLI", "command", "for", "set", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/set_command.go#L27-L48", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/set_command.go", "func_name": "setCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setCommandFunc executes the \"set\" command.", "docstring_tokens": ["setCommandFunc", "executes", "the", "set", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/set_command.go#L51-L73", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/recipes/rwmutex.go", "func_name": "waitOnLastRev", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitOnLowest will wait on the last key with a revision < rwm.myKey.Revision with a\n// given prefix. If there are no keys left to wait on, return true.", "docstring_tokens": ["waitOnLowest", "will", "wait", "on", "the", "last", "key", "with", "a", "revision", "<", "rwm", ".", "myKey", ".", "Revision", "with", "a", "given", "prefix", ".", "If", "there", "are", "no", "keys", "left", "to", "wait", "on", "return", "true", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/recipes/rwmutex.go#L68-L86", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/netutil/routes.go", "func_name": "GetDefaultInterfaces", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDefaultInterfaces fetches the device name of default routable interface.", "docstring_tokens": ["GetDefaultInterfaces", "fetches", "the", "device", "name", "of", "default", "routable", "interface", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/netutil/routes.go#L31-L33", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/snapshot_command.go", "func_name": "NewSnapshotCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSnapshotCommand returns the cobra command for \"snapshot\".", "docstring_tokens": ["NewSnapshotCommand", "returns", "the", "cobra", "command", "for", "snapshot", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/snapshot_command.go#L45-L54", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/move_leader_command.go", "func_name": "NewMoveLeaderCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMoveLeaderCommand returns the cobra command for \"move-leader\".", "docstring_tokens": ["NewMoveLeaderCommand", "returns", "the", "cobra", "command", "for", "move", "-", "leader", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/move_leader_command.go#L26-L33", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/move_leader_command.go", "func_name": "transferLeadershipCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// transferLeadershipCommandFunc executes the \"compaction\" command.", "docstring_tokens": ["transferLeadershipCommandFunc", "executes", "the", "compaction", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/move_leader_command.go#L36-L82", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/fileutil/dir_windows.go", "func_name": "OpenDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpenDir opens a directory in windows with write access for syncing.", "docstring_tokens": ["OpenDir", "opens", "a", "directory", "in", "windows", "with", "write", "access", "for", "syncing", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/fileutil/dir_windows.go#L25-L31", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/rmdir_command.go", "func_name": "NewRemoveDirCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRemoveDirCommand returns the CLI command for \"rmdir\".", "docstring_tokens": ["NewRemoveDirCommand", "returns", "the", "CLI", "command", "for", "rmdir", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/rmdir_command.go#L25-L35", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/rmdir_command.go", "func_name": "rmdirCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rmdirCommandFunc executes the \"rmdir\" command.", "docstring_tokens": ["rmdirCommandFunc", "executes", "the", "rmdir", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/rmdir_command.go#L38-L54", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/del_command.go", "func_name": "NewDelCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDelCommand returns the cobra command for \"del\".", "docstring_tokens": ["NewDelCommand", "returns", "the", "cobra", "command", "for", "del", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/del_command.go#L31-L42", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/del_command.go", "func_name": "delCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// delCommandFunc executes the \"del\" command.", "docstring_tokens": ["delCommandFunc", "executes", "the", "del", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/del_command.go#L45-L54", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/expect/expect.go", "func_name": "NewExpect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewExpect creates a new process for expect testing.", "docstring_tokens": ["NewExpect", "creates", "a", "new", "process", "for", "expect", "testing", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/expect/expect.go#L47-L50", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/expect/expect.go", "func_name": "NewExpectWithEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewExpectWithEnv creates a new process with user defined env variables for expect testing.", "docstring_tokens": ["NewExpectWithEnv", "creates", "a", "new", "process", "with", "user", "defined", "env", "variables", "for", "expect", "testing", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/expect/expect.go#L53-L71", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/expect/expect.go", "func_name": "ExpectFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExpectFunc returns the first line satisfying the function f.", "docstring_tokens": ["ExpectFunc", "returns", "the", "first", "line", "satisfying", "the", "function", "f", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/expect/expect.go#L97-L115", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/expect/expect.go", "func_name": "Expect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Expect returns the first line containing the given string.", "docstring_tokens": ["Expect", "returns", "the", "first", "line", "containing", "the", "given", "string", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/expect/expect.go#L118-L120", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/expect/expect.go", "func_name": "LineCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LineCount returns the number of recorded lines since\n// the beginning of the process.", "docstring_tokens": ["LineCount", "returns", "the", "number", "of", "recorded", "lines", "since", "the", "beginning", "of", "the", "process", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/expect/expect.go#L124-L128", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/expect/expect.go", "func_name": "Signal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Signal sends a signal to the expect process", "docstring_tokens": ["Signal", "sends", "a", "signal", "to", "the", "expect", "process"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/expect/expect.go#L134-L136", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/grpcproxy/cache/store.go", "func_name": "keyFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// keyFunc returns the key of a request, which is used to look up its caching response in the cache.", "docstring_tokens": ["keyFunc", "returns", "the", "key", "of", "a", "request", "which", "is", "used", "to", "look", "up", "its", "caching", "response", "in", "the", "cache", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/grpcproxy/cache/store.go#L44-L51", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/grpcproxy/cache/store.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds the response of a request to the cache if its revision is larger than the compacted revision of the cache.", "docstring_tokens": ["Add", "adds", "the", "response", "of", "a", "request", "to", "the", "cache", "if", "its", "revision", "is", "larger", "than", "the", "compacted", "revision", "of", "the", "cache", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/grpcproxy/cache/store.go#L74-L109", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/grpcproxy/cache/store.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get looks up the caching response for a given request.\n// Get is also responsible for lazy eviction when accessing compacted entries.", "docstring_tokens": ["Get", "looks", "up", "the", "caching", "response", "for", "a", "given", "request", ".", "Get", "is", "also", "responsible", "for", "lazy", "eviction", "when", "accessing", "compacted", "entries", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/grpcproxy/cache/store.go#L113-L128", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/grpcproxy/cache/store.go", "func_name": "Invalidate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Invalidate invalidates the cache entries that intersecting with the given range from key to endkey.", "docstring_tokens": ["Invalidate", "invalidates", "the", "cache", "entries", "that", "intersecting", "with", "the", "given", "range", "from", "key", "to", "endkey", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/grpcproxy/cache/store.go#L131-L154", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "proxy/grpcproxy/cache/store.go", "func_name": "Compact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compact invalidate all caching response before the given rev.\n// Replace with the invalidation is lazy. The actual removal happens when the entries is accessed.", "docstring_tokens": ["Compact", "invalidate", "all", "caching", "response", "before", "the", "given", "rev", ".", "Replace", "with", "the", "invalidation", "is", "lazy", ".", "The", "actual", "removal", "happens", "when", "the", "entries", "is", "accessed", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/proxy/grpcproxy/cache/store.go#L158-L165", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/unique_urls.go", "func_name": "NewUniqueURLsWithExceptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewUniqueURLsWithExceptions implements \"url.URL\" slice as flag.Value interface.\n// Given value is to be separated by comma.", "docstring_tokens": ["NewUniqueURLsWithExceptions", "implements", "url", ".", "URL", "slice", "as", "flag", ".", "Value", "interface", ".", "Given", "value", "is", "to", "be", "separated", "by", "comma", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/unique_urls.go#L70-L82", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/unique_urls.go", "func_name": "UniqueURLsFromFlag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UniqueURLsFromFlag returns a slice from urls got from the flag.", "docstring_tokens": ["UniqueURLsFromFlag", "returns", "a", "slice", "from", "urls", "got", "from", "the", "flag", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/unique_urls.go#L85-L87", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/flags/unique_urls.go", "func_name": "UniqueURLsMapFromFlag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UniqueURLsMapFromFlag returns a map from url strings got from the flag.", "docstring_tokens": ["UniqueURLsMapFromFlag", "returns", "a", "map", "from", "url", "strings", "got", "from", "the", "flag", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/flags/unique_urls.go#L90-L92", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/recipes/barrier.go", "func_name": "Hold", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Hold creates the barrier key causing processes to block on Wait.", "docstring_tokens": ["Hold", "creates", "the", "barrier", "key", "causing", "processes", "to", "block", "on", "Wait", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/recipes/barrier.go#L38-L41", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/recipes/barrier.go", "func_name": "Release", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Release deletes the barrier key to unblock all waiting processes.", "docstring_tokens": ["Release", "deletes", "the", "barrier", "key", "to", "unblock", "all", "waiting", "processes", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/recipes/barrier.go#L44-L47", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "contrib/recipes/barrier.go", "func_name": "Wait", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wait blocks on the barrier key until it is deleted. If there is no key, Wait\n// assumes Release has already been called and returns immediately.", "docstring_tokens": ["Wait", "blocks", "on", "the", "barrier", "key", "until", "it", "is", "deleted", ".", "If", "there", "is", "no", "key", "Wait", "assumes", "Release", "has", "already", "been", "called", "and", "returns", "immediately", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/contrib/recipes/barrier.go#L51-L66", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/runner/lock_racer_command.go", "func_name": "NewLockRacerCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLockRacerCommand returns the cobra command for \"lock-racer runner\".", "docstring_tokens": ["NewLockRacerCommand", "returns", "the", "cobra", "command", "for", "lock", "-", "racer", "runner", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/runner/lock_racer_command.go#L29-L37", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/member.go", "func_name": "ElectionTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ElectionTimeout returns an election timeout duration.", "docstring_tokens": ["ElectionTimeout", "returns", "an", "election", "timeout", "duration", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/member.go#L37-L39", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/member.go", "func_name": "DialEtcdGRPCServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DialEtcdGRPCServer creates a raw gRPC connection to an etcd member.", "docstring_tokens": ["DialEtcdGRPCServer", "creates", "a", "raw", "gRPC", "connection", "to", "an", "etcd", "member", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/member.go#L42-L81", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/member.go", "func_name": "CreateEtcdClientConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateEtcdClientConfig creates a client configuration from member.", "docstring_tokens": ["CreateEtcdClientConfig", "creates", "a", "client", "configuration", "from", "member", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/member.go#L84-L121", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/member.go", "func_name": "CreateEtcdClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateEtcdClient creates a client from member.", "docstring_tokens": ["CreateEtcdClient", "creates", "a", "client", "from", "member", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/member.go#L124-L130", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/member.go", "func_name": "CheckCompact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckCompact ensures that historical data before given revision has been compacted.", "docstring_tokens": ["CheckCompact", "ensures", "that", "historical", "data", "before", "given", "revision", "has", "been", "compacted", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/member.go#L133-L153", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/member.go", "func_name": "Defrag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Defrag runs defragmentation on this member.", "docstring_tokens": ["Defrag", "runs", "defragmentation", "on", "this", "member", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/member.go#L156-L167", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/member.go", "func_name": "RevHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RevHash fetches current revision and hash on this member.", "docstring_tokens": ["RevHash", "fetches", "current", "revision", "and", "hash", "on", "this", "member", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/member.go#L170-L187", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/member.go", "func_name": "Rev", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rev fetches current revision on this member.", "docstring_tokens": ["Rev", "fetches", "current", "revision", "on", "this", "member", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/member.go#L190-L202", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/member.go", "func_name": "Compact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compact compacts member storage with given revision.\n// It blocks until it's physically done.", "docstring_tokens": ["Compact", "compacts", "member", "storage", "with", "given", "revision", ".", "It", "blocks", "until", "it", "s", "physically", "done", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/member.go#L206-L217", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/member.go", "func_name": "IsLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsLeader returns true if this member is the current cluster leader.", "docstring_tokens": ["IsLeader", "returns", "true", "if", "this", "member", "is", "the", "current", "cluster", "leader", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/member.go#L220-L232", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/member.go", "func_name": "WriteHealthKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteHealthKey writes a health key to this member.", "docstring_tokens": ["WriteHealthKey", "writes", "a", "health", "key", "to", "this", "member", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/member.go#L235-L250", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/member.go", "func_name": "SaveSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveSnapshot downloads a snapshot file from this member, locally.\n// It's meant to requested remotely, so that local member can store\n// snapshot file on local disk.", "docstring_tokens": ["SaveSnapshot", "downloads", "a", "snapshot", "file", "from", "this", "member", "locally", ".", "It", "s", "meant", "to", "requested", "remotely", "so", "that", "local", "member", "can", "store", "snapshot", "file", "on", "local", "disk", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/member.go#L255-L314", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "functional/rpcpb/member.go", "func_name": "RestoreSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestoreSnapshot restores a cluster from a given snapshot file on disk.\n// It's meant to requested remotely, so that local member can load the\n// snapshot file from local disk.", "docstring_tokens": ["RestoreSnapshot", "restores", "a", "cluster", "from", "a", "given", "snapshot", "file", "on", "disk", ".", "It", "s", "meant", "to", "requested", "remotely", "so", "that", "local", "member", "can", "load", "the", "snapshot", "file", "from", "local", "disk", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/functional/rpcpb/member.go#L319-L361", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/namespace/watch.go", "func_name": "NewWatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWatcher wraps a Watcher instance so that all Watch requests\n// are prefixed with a given string and all Watch responses have\n// the prefix removed.", "docstring_tokens": ["NewWatcher", "wraps", "a", "Watcher", "instance", "so", "that", "all", "Watch", "requests", "are", "prefixed", "with", "a", "given", "string", "and", "all", "Watch", "responses", "have", "the", "prefix", "removed", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/namespace/watch.go#L36-L38", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/rawnode.go", "func_name": "NewRawNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRawNode returns a new RawNode given configuration and a list of raft peers.", "docstring_tokens": ["NewRawNode", "returns", "a", "new", "RawNode", "given", "configuration", "and", "a", "list", "of", "raft", "peers", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/rawnode.go#L72-L116", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/rawnode.go", "func_name": "Campaign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Campaign causes this RawNode to transition to candidate state.", "docstring_tokens": ["Campaign", "causes", "this", "RawNode", "to", "transition", "to", "candidate", "state", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/rawnode.go#L136-L140", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/rawnode.go", "func_name": "Propose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Propose proposes data be appended to the raft log.", "docstring_tokens": ["Propose", "proposes", "data", "be", "appended", "to", "the", "raft", "log", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/rawnode.go#L143-L150", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/rawnode.go", "func_name": "ProposeConfChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProposeConfChange proposes a config change.", "docstring_tokens": ["ProposeConfChange", "proposes", "a", "config", "change", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/rawnode.go#L153-L164", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/rawnode.go", "func_name": "ApplyConfChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyConfChange applies a config change to the local node.", "docstring_tokens": ["ApplyConfChange", "applies", "a", "config", "change", "to", "the", "local", "node", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/rawnode.go#L167-L183", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/rawnode.go", "func_name": "Step", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step advances the state machine using the given message.", "docstring_tokens": ["Step", "advances", "the", "state", "machine", "using", "the", "given", "message", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/rawnode.go#L186-L195", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/rawnode.go", "func_name": "Ready", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ready returns the current point-in-time state of this RawNode.", "docstring_tokens": ["Ready", "returns", "the", "current", "point", "-", "in", "-", "time", "state", "of", "this", "RawNode", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/rawnode.go#L198-L203", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/rawnode.go", "func_name": "WithProgress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithProgress is a helper to introspect the Progress for this node and its\n// peers.", "docstring_tokens": ["WithProgress", "is", "a", "helper", "to", "introspect", "the", "Progress", "for", "this", "node", "and", "its", "peers", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/rawnode.go#L259-L270", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/rawnode.go", "func_name": "ReportUnreachable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReportUnreachable reports the given node is not reachable for the last send.", "docstring_tokens": ["ReportUnreachable", "reports", "the", "given", "node", "is", "not", "reachable", "for", "the", "last", "send", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/rawnode.go#L273-L275", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/rawnode.go", "func_name": "ReportSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReportSnapshot reports the status of the sent snapshot.", "docstring_tokens": ["ReportSnapshot", "reports", "the", "status", "of", "the", "sent", "snapshot", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/rawnode.go#L278-L282", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/rawnode.go", "func_name": "TransferLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TransferLeader tries to transfer leadership to the given transferee.", "docstring_tokens": ["TransferLeader", "tries", "to", "transfer", "leadership", "to", "the", "given", "transferee", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/rawnode.go#L285-L287", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/rawnode.go", "func_name": "ReadIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadIndex requests a read state. The read state will be set in ready.\n// Read State has a read index. Once the application advances further than the read\n// index, any linearizable read requests issued before the read request can be\n// processed safely. The read state will have the same rctx attached.", "docstring_tokens": ["ReadIndex", "requests", "a", "read", "state", ".", "The", "read", "state", "will", "be", "set", "in", "ready", ".", "Read", "State", "has", "a", "read", "index", ".", "Once", "the", "application", "advances", "further", "than", "the", "read", "index", "any", "linearizable", "read", "requests", "issued", "before", "the", "read", "request", "can", "be", "processed", "safely", ".", "The", "read", "state", "will", "have", "the", "same", "rctx", "attached", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/rawnode.go#L293-L295", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "client/curl.go", "func_name": "printcURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printcURL prints the cURL equivalent request to stderr.\n// It returns an error if the body of the request cannot\n// be read.\n// The caller MUST cancel the request if there is an error.", "docstring_tokens": ["printcURL", "prints", "the", "cURL", "equivalent", "request", "to", "stderr", ".", "It", "returns", "an", "error", "if", "the", "body", "of", "the", "request", "cannot", "be", "read", ".", "The", "caller", "MUST", "cancel", "the", "request", "if", "there", "is", "an", "error", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/client/curl.go#L41-L70", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/node.go", "func_name": "StartNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartNode returns a new Node given configuration and a list of raft peers.\n// It appends a ConfChangeAddNode entry for each given peer to the initial log.", "docstring_tokens": ["StartNode", "returns", "a", "new", "Node", "given", "configuration", "and", "a", "list", "of", "raft", "peers", ".", "It", "appends", "a", "ConfChangeAddNode", "entry", "for", "each", "given", "peer", "to", "the", "initial", "log", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/node.go#L200-L235", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/node.go", "func_name": "RestartNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestartNode is similar to StartNode but does not take a list of peers.\n// The current membership of the cluster will be restored from the Storage.\n// If the caller has an existing state machine, pass in the last log index that\n// has been applied to it; otherwise use zero.", "docstring_tokens": ["RestartNode", "is", "similar", "to", "StartNode", "but", "does", "not", "take", "a", "list", "of", "peers", ".", "The", "current", "membership", "of", "the", "cluster", "will", "be", "restored", "from", "the", "Storage", ".", "If", "the", "caller", "has", "an", "existing", "state", "machine", "pass", "in", "the", "last", "log", "index", "that", "has", "been", "applied", "to", "it", ";", "otherwise", "use", "zero", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/node.go#L241-L248", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/node.go", "func_name": "Tick", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tick increments the internal logical clock for this Node. Election timeouts\n// and heartbeat timeouts are in units of ticks.", "docstring_tokens": ["Tick", "increments", "the", "internal", "logical", "clock", "for", "this", "Node", ".", "Election", "timeouts", "and", "heartbeat", "timeouts", "are", "in", "units", "of", "ticks", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/node.go#L438-L445", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "raft/node.go", "func_name": "MustSync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustSync returns true if the hard state and count of Raft entries indicate\n// that a synchronous write to persistent storage is required.", "docstring_tokens": ["MustSync", "returns", "true", "if", "the", "hard", "state", "and", "count", "of", "Raft", "entries", "indicate", "that", "a", "synchronous", "write", "to", "persistent", "storage", "is", "required", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/raft/node.go#L604-L611", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/balancer/grpc1.7-health.go", "func_name": "NewGRPC17Health", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGRPC17Health returns a new health balancer with gRPC v1.7.", "docstring_tokens": ["NewGRPC17Health", "returns", "a", "new", "health", "balancer", "with", "gRPC", "v1", ".", "7", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/balancer/grpc1.7-health.go#L112-L146", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/balancer/grpc1.7-health.go", "func_name": "NeedUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NeedUpdate returns true if all connections are down or\n// addresses do not include current pinned address.", "docstring_tokens": ["NeedUpdate", "returns", "true", "if", "all", "connections", "are", "down", "or", "addresses", "do", "not", "include", "current", "pinned", "address", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/balancer/grpc1.7-health.go#L269-L277", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/osutil/signal_linux.go", "func_name": "dflSignal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dflSignal sets the given signal to SIG_DFL", "docstring_tokens": ["dflSignal", "sets", "the", "given", "signal", "to", "SIG_DFL"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/osutil/signal_linux.go#L25-L30", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/store.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a store where the given namespaces will be created as initial directories.", "docstring_tokens": ["New", "creates", "a", "store", "where", "the", "given", "namespaces", "will", "be", "created", "as", "initial", "directories", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/store.go#L87-L91", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/store.go", "func_name": "Index", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Index retrieves the current index of the store.", "docstring_tokens": ["Index", "retrieves", "the", "current", "index", "of", "the", "store", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/store.go#L113-L117", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/store.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns a get event.\n// If recursive is true, it will return all the content under the node path.\n// If sorted is true, it will sort the content by keys.", "docstring_tokens": ["Get", "returns", "a", "get", "event", ".", "If", "recursive", "is", "true", "it", "will", "return", "all", "the", "content", "under", "the", "node", "path", ".", "If", "sorted", "is", "true", "it", "will", "sort", "the", "content", "by", "keys", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/store.go#L122-L157", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/store.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates the node at nodePath. Create will help to create intermediate directories with no ttl.\n// If the node has already existed, create will fail.\n// If any node on the path is a file, create will fail.", "docstring_tokens": ["Create", "creates", "the", "node", "at", "nodePath", ".", "Create", "will", "help", "to", "create", "intermediate", "directories", "with", "no", "ttl", ".", "If", "the", "node", "has", "already", "existed", "create", "will", "fail", ".", "If", "any", "node", "on", "the", "path", "is", "a", "file", "create", "will", "fail", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/store.go#L162-L188", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/store.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set creates or replace the node at nodePath.", "docstring_tokens": ["Set", "creates", "or", "replace", "the", "node", "at", "nodePath", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/store.go#L191-L245", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/store.go", "func_name": "getCompareFailCause", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// returns user-readable cause of failed comparison", "docstring_tokens": ["returns", "user", "-", "readable", "cause", "of", "failed", "comparison"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/store.go#L248-L257", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/store.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes the node at the given path.\n// If the node is a directory, recursive must be true to delete it.", "docstring_tokens": ["Delete", "deletes", "the", "node", "at", "the", "given", "path", ".", "If", "the", "node", "is", "a", "directory", "recursive", "must", "be", "true", "to", "delete", "it", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/store.go#L334-L393", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/store.go", "func_name": "walk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// walk walks all the nodePath and apply the walkFunc on each directory", "docstring_tokens": ["walk", "walks", "all", "the", "nodePath", "and", "apply", "the", "walkFunc", "on", "each", "directory"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/store.go#L469-L487", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/store.go", "func_name": "internalGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InternalGet gets the node of the given nodePath.", "docstring_tokens": ["InternalGet", "gets", "the", "node", "of", "the", "given", "nodePath", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/store.go#L644-L668", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/store.go", "func_name": "DeleteExpiredKeys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteExpiredKeys will delete all expired keys", "docstring_tokens": ["DeleteExpiredKeys", "will", "delete", "all", "expired", "keys"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/store.go#L671-L703", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/store.go", "func_name": "checkDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkDir will check whether the component is a directory under parent node.\n// If it is a directory, this function will return the pointer to that node.\n// If it does not exist, this function will create a new directory and return the pointer to that node.\n// If it is a file, this function will return error.", "docstring_tokens": ["checkDir", "will", "check", "whether", "the", "component", "is", "a", "directory", "under", "parent", "node", ".", "If", "it", "is", "a", "directory", "this", "function", "will", "return", "the", "pointer", "to", "that", "node", ".", "If", "it", "does", "not", "exist", "this", "function", "will", "create", "a", "new", "directory", "and", "return", "the", "pointer", "to", "that", "node", ".", "If", "it", "is", "a", "file", "this", "function", "will", "return", "error", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/store.go#L709-L725", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/store.go", "func_name": "Save", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Save saves the static state of the store system.\n// It will not be able to save the state of watchers.\n// It will not save the parent field of the node. Or there will\n// be cyclic dependencies issue for the json package.", "docstring_tokens": ["Save", "saves", "the", "static", "state", "of", "the", "store", "system", ".", "It", "will", "not", "be", "able", "to", "save", "the", "state", "of", "watchers", ".", "It", "will", "not", "save", "the", "parent", "field", "of", "the", "node", ".", "Or", "there", "will", "be", "cyclic", "dependencies", "issue", "for", "the", "json", "package", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/store.go#L731-L738", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v2store/store.go", "func_name": "Recovery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Recovery recovers the store system from a static state\n// It needs to recover the parent field of the nodes.\n// It needs to delete the expired nodes since the saved time and also\n// needs to create monitoring go routines.", "docstring_tokens": ["Recovery", "recovers", "the", "store", "system", "from", "a", "static", "state", "It", "needs", "to", "recover", "the", "parent", "field", "of", "the", "nodes", ".", "It", "needs", "to", "delete", "the", "expired", "nodes", "since", "the", "saved", "time", "and", "also", "needs", "to", "create", "monitoring", "go", "routines", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v2store/store.go#L767-L780", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/idutil/id.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next generates a id that is unique.", "docstring_tokens": ["Next", "generates", "a", "id", "that", "is", "unique", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/idutil/id.go#L67-L71", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/make_mirror_command.go", "func_name": "NewMakeMirrorCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMakeMirrorCommand returns the cobra command for \"makeMirror\".", "docstring_tokens": ["NewMakeMirrorCommand", "returns", "the", "cobra", "command", "for", "makeMirror", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/make_mirror_command.go#L44-L61", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "embed/config_logging.go", "func_name": "NewZapCoreLoggerBuilder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewZapCoreLoggerBuilder generates a zap core logger builder.", "docstring_tokens": ["NewZapCoreLoggerBuilder", "generates", "a", "zap", "core", "logger", "builder", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/embed/config_logging.go#L277-L291", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/mirror/syncer.go", "func_name": "NewSyncer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSyncer creates a Syncer.", "docstring_tokens": ["NewSyncer", "creates", "a", "Syncer", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/mirror/syncer.go#L39-L41", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/netutil/isolate_linux.go", "func_name": "DropPort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DropPort drops all tcp packets that are received from the given port and sent to the given port.", "docstring_tokens": ["DropPort", "drops", "all", "tcp", "packets", "that", "are", "received", "from", "the", "given", "port", "and", "sent", "to", "the", "given", "port", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/netutil/isolate_linux.go#L23-L31", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/netutil/isolate_linux.go", "func_name": "SetLatency", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLatency adds latency in millisecond scale with random variations.", "docstring_tokens": ["SetLatency", "adds", "latency", "in", "millisecond", "scale", "with", "random", "variations", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/netutil/isolate_linux.go#L45-L67", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/netutil/isolate_linux.go", "func_name": "RemoveLatency", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveLatency resets latency configurations.", "docstring_tokens": ["RemoveLatency", "resets", "latency", "configurations", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/netutil/isolate_linux.go#L70-L82", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/txn_command.go", "func_name": "NewTxnCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTxnCommand returns the cobra command for \"txn\".", "docstring_tokens": ["NewTxnCommand", "returns", "the", "cobra", "command", "for", "txn", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/txn_command.go#L34-L42", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv3/command/txn_command.go", "func_name": "txnCommandFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// txnCommandFunc executes the \"txn\" command.", "docstring_tokens": ["txnCommandFunc", "executes", "the", "txn", "command", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv3/command/txn_command.go#L45-L66", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3compactor/compactor.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new Compactor based on given \"mode\".", "docstring_tokens": ["New", "returns", "a", "new", "Compactor", "based", "on", "given", "mode", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3compactor/compactor.go#L60-L75", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdctl/ctlv2/command/format.go", "func_name": "printResponseKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printResponseKey only supports to print key correctly.", "docstring_tokens": ["printResponseKey", "only", "supports", "to", "print", "key", "correctly", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdctl/ctlv2/command/format.go#L26-L60", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "etcdserver/api/v3lock/v3lockpb/gw/v3lock.pb.gw.go", "func_name": "RegisterLockHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterLockHandler registers the http handlers for service Lock to \"mux\".\n// The handlers forward requests to the grpc endpoint over \"conn\".", "docstring_tokens": ["RegisterLockHandler", "registers", "the", "http", "handlers", "for", "service", "Lock", "to", "mux", ".", "The", "handlers", "forward", "requests", "to", "the", "grpc", "endpoint", "over", "conn", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/etcdserver/api/v3lock/v3lockpb/gw/v3lock.pb.gw.go#L85-L87", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "embed/serve.go", "func_name": "grpcHandlerFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// grpcHandlerFunc returns an http.Handler that delegates to grpcServer on incoming gRPC\n// connections or otherHandler otherwise. Given in gRPC docs.", "docstring_tokens": ["grpcHandlerFunc", "returns", "an", "http", ".", "Handler", "that", "delegates", "to", "grpcServer", "on", "incoming", "gRPC", "connections", "or", "otherHandler", "otherwise", ".", "Given", "in", "gRPC", "docs", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/embed/serve.go#L206-L219", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "embed/serve.go", "func_name": "addCORSHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addCORSHeader adds the correct cors headers given an origin", "docstring_tokens": ["addCORSHeader", "adds", "the", "correct", "cors", "headers", "given", "an", "origin"], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/embed/serve.go#L363-L367", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "clientv3/leasing/txn.go", "func_name": "fallback", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fallback computes the ops to fetch all possible conflicting\n// leasing keys for a list of ops.", "docstring_tokens": ["fallback", "computes", "the", "ops", "to", "fetch", "all", "possible", "conflicting", "leasing", "keys", "for", "a", "list", "of", "ops", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/clientv3/leasing/txn.go#L93-L105", "partition": "test"} +{"repo": "etcd-io/etcd", "path": "pkg/types/id.go", "func_name": "IDFromString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IDFromString attempts to create an ID from a base-16 string.", "docstring_tokens": ["IDFromString", "attempts", "to", "create", "an", "ID", "from", "a", "base", "-", "16", "string", "."], "sha": "616592d9ba993e3fe9798eef581316016df98906", "url": "https://github.com/etcd-io/etcd/blob/616592d9ba993e3fe9798eef581316016df98906/pkg/types/id.go#L29-L32", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "dir_unix.go", "func_name": "release", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Release deletes the pid file and releases our lock on the directory.", "docstring_tokens": ["Release", "deletes", "the", "pid", "file", "and", "releases", "our", "lock", "on", "the", "directory", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/dir_unix.go#L83-L97", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/iterator.go", "func_name": "EncodedSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EncodedSize is the size of the ValueStruct when encoded", "docstring_tokens": ["EncodedSize", "is", "the", "size", "of", "the", "ValueStruct", "when", "encoded"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/iterator.go#L50-L58", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/iterator.go", "func_name": "Decode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Decode uses the length of the slice to infer the length of the Value field.", "docstring_tokens": ["Decode", "uses", "the", "length", "of", "the", "slice", "to", "infer", "the", "length", "of", "the", "Value", "field", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/iterator.go#L61-L67", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/iterator.go", "func_name": "NewMergeIterator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMergeIterator returns a new MergeIterator from a list of Iterators.", "docstring_tokens": ["NewMergeIterator", "returns", "a", "new", "MergeIterator", "from", "a", "list", "of", "Iterators", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/iterator.go#L144-L149", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/iterator.go", "func_name": "initHeap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initHeap checks all iterators and initializes our heap and array of keys.\n// Whenever we reverse direction, we need to run this.", "docstring_tokens": ["initHeap", "checks", "all", "iterators", "and", "initializes", "our", "heap", "and", "array", "of", "keys", ".", "Whenever", "we", "reverse", "direction", "we", "need", "to", "run", "this", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/iterator.go#L161-L180", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/iterator.go", "func_name": "Valid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Valid returns whether the MergeIterator is at a valid element.", "docstring_tokens": ["Valid", "returns", "whether", "the", "MergeIterator", "is", "at", "a", "valid", "element", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/iterator.go#L183-L191", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/iterator.go", "func_name": "Key", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Key returns the key associated with the current iterator", "docstring_tokens": ["Key", "returns", "the", "key", "associated", "with", "the", "current", "iterator"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/iterator.go#L194-L199", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/iterator.go", "func_name": "Value", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Value returns the value associated with the iterator.", "docstring_tokens": ["Value", "returns", "the", "value", "associated", "with", "the", "iterator", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/iterator.go#L202-L207", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/iterator.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next returns the next element. If it is the same as the current key, ignore it.", "docstring_tokens": ["Next", "returns", "the", "next", "element", ".", "If", "it", "is", "the", "same", "as", "the", "current", "key", "ignore", "it", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/iterator.go#L210-L238", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/iterator.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek brings us to element with key >= given key.", "docstring_tokens": ["Seek", "brings", "us", "to", "element", "with", "key", ">", "=", "given", "key", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/iterator.go#L249-L254", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/iterator.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close implements y.Iterator", "docstring_tokens": ["Close", "implements", "y", ".", "Iterator"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/iterator.go#L257-L264", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "structs.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode encodes Pointer into byte buffer.", "docstring_tokens": ["Encode", "encodes", "Pointer", "into", "byte", "buffer", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/structs.go#L35-L40", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "structs.go", "func_name": "Decode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Decodes h from buf.", "docstring_tokens": ["Decodes", "h", "from", "buf", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/structs.go#L71-L77", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "structs.go", "func_name": "encodeEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encodes e to buf. Returns number of bytes written.", "docstring_tokens": ["Encodes", "e", "to", "buf", ".", "Returns", "number", "of", "bytes", "written", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/structs.go#L99-L127", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "batch.go", "func_name": "SetEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetEntry is the equivalent of Txn.SetEntry.", "docstring_tokens": ["SetEntry", "is", "the", "equivalent", "of", "Txn", ".", "SetEntry", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/batch.go#L77-L95", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "batch.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set is equivalent of Txn.SetWithMeta.", "docstring_tokens": ["Set", "is", "equivalent", "of", "Txn", ".", "SetWithMeta", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/batch.go#L98-L101", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "batch.go", "func_name": "SetWithTTL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetWithTTL is equivalent of Txn.SetWithTTL.", "docstring_tokens": ["SetWithTTL", "is", "equivalent", "of", "Txn", ".", "SetWithTTL", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/batch.go#L104-L108", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "batch.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete is equivalent of Txn.Delete.", "docstring_tokens": ["Delete", "is", "equivalent", "of", "Txn", ".", "Delete", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/batch.go#L111-L126", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "batch.go", "func_name": "commit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Caller to commit must hold a write lock.", "docstring_tokens": ["Caller", "to", "commit", "must", "hold", "a", "write", "lock", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/batch.go#L129-L141", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "batch.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush must be called at the end to ensure that any pending writes get committed to Badger. Flush\n// returns any error stored by WriteBatch.", "docstring_tokens": ["Flush", "must", "be", "called", "at", "the", "end", "to", "ensure", "that", "any", "pending", "writes", "get", "committed", "to", "Badger", ".", "Flush", "returns", "any", "error", "stored", "by", "WriteBatch", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/batch.go#L145-L154", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "batch.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error returns any errors encountered so far. No commits would be run once an error is detected.", "docstring_tokens": ["Error", "returns", "any", "errors", "encountered", "so", "far", ".", "No", "commits", "would", "be", "run", "once", "an", "error", "is", "detected", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/batch.go#L157-L161", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "db.go", "func_name": "getMemTables", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getMemtables returns the current memtables and get references.", "docstring_tokens": ["getMemtables", "returns", "the", "current", "memtables", "and", "get", "references", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/db.go#L456-L477", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "db.go", "func_name": "writeRequests", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeRequests is called serially by only one goroutine.", "docstring_tokens": ["writeRequests", "is", "called", "serially", "by", "only", "one", "goroutine", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/db.go#L589-L639", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "db.go", "func_name": "ensureRoomForWrite", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ensureRoomForWrite is always called serially.", "docstring_tokens": ["ensureRoomForWrite", "is", "always", "called", "serially", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/db.go#L760-L789", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "db.go", "func_name": "writeLevel0Table", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteLevel0Table flushes memtable.", "docstring_tokens": ["WriteLevel0Table", "flushes", "memtable", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/db.go#L796-L811", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "db.go", "func_name": "handleFlushTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleFlushTask must be run serially.", "docstring_tokens": ["handleFlushTask", "must", "be", "run", "serially", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/db.go#L820-L869", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "db.go", "func_name": "flushMemtable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flushMemtable must keep running until we send it an empty flushTask. If there\n// are errors during handling the flush task, we'll retry indefinitely.", "docstring_tokens": ["flushMemtable", "must", "keep", "running", "until", "we", "send", "it", "an", "empty", "flushTask", ".", "If", "there", "are", "errors", "during", "handling", "the", "flush", "task", "we", "ll", "retry", "indefinitely", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/db.go#L873-L904", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "db.go", "func_name": "calculateSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This function does a filewalk, calculates the size of vlog and sst files and stores it in\n// y.LSMSize and y.VlogSize.", "docstring_tokens": ["This", "function", "does", "a", "filewalk", "calculates", "the", "size", "of", "vlog", "and", "sst", "files", "and", "stores", "it", "in", "y", ".", "LSMSize", "and", "y", ".", "VlogSize", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/db.go#L919-L953", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "db.go", "func_name": "Size", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Size returns the size of lsm and value log files in bytes. It can be used to decide how often to\n// call RunValueLogGC.", "docstring_tokens": ["Size", "returns", "the", "size", "of", "lsm", "and", "value", "log", "files", "in", "bytes", ".", "It", "can", "be", "used", "to", "decide", "how", "often", "to", "call", "RunValueLogGC", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/db.go#L1022-L1030", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "db.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next would return the next integer in the sequence, updating the lease by running a transaction\n// if needed.", "docstring_tokens": ["Next", "would", "return", "the", "next", "integer", "in", "the", "sequence", "updating", "the", "lease", "by", "running", "a", "transaction", "if", "needed", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/db.go#L1044-L1055", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "db.go", "func_name": "Release", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Release the leased sequence to avoid wasted integers. This should be done right\n// before closing the associated DB. However it is valid to use the sequence after\n// it was released, causing a new lease with full bandwidth.", "docstring_tokens": ["Release", "the", "leased", "sequence", "to", "avoid", "wasted", "integers", ".", "This", "should", "be", "done", "right", "before", "closing", "the", "associated", "DB", ".", "However", "it", "is", "valid", "to", "use", "the", "sequence", "after", "it", "was", "released", "causing", "a", "new", "lease", "with", "full", "bandwidth", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/db.go#L1060-L1073", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "db.go", "func_name": "KeySplits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeySplits can be used to get rough key ranges to divide up iteration over\n// the DB.", "docstring_tokens": ["KeySplits", "can", "be", "used", "to", "get", "rough", "key", "ranges", "to", "divide", "up", "iteration", "over", "the", "DB", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/db.go#L1139-L1150", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "db.go", "func_name": "Flatten", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flatten can be used to force compactions on the LSM tree so all the tables fall on the same\n// level. This ensures that all the versions of keys are colocated and not split across multiple\n// levels, which is necessary after a restore from backup. During Flatten, live compactions are\n// stopped. Ideally, no writes are going on during Flatten. Otherwise, it would create competition\n// between flattening the tree and new tables being created at level zero.", "docstring_tokens": ["Flatten", "can", "be", "used", "to", "force", "compactions", "on", "the", "LSM", "tree", "so", "all", "the", "tables", "fall", "on", "the", "same", "level", ".", "This", "ensures", "that", "all", "the", "versions", "of", "keys", "are", "colocated", "and", "not", "split", "across", "multiple", "levels", "which", "is", "necessary", "after", "a", "restore", "from", "backup", ".", "During", "Flatten", "live", "compactions", "are", "stopped", ".", "Ideally", "no", "writes", "are", "going", "on", "during", "Flatten", ".", "Otherwise", "it", "would", "create", "competition", "between", "flattening", "the", "tree", "and", "new", "tables", "being", "created", "at", "level", "zero", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/db.go#L1192-L1256", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/mmap_unix.go", "func_name": "Mmap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Mmap uses the mmap system call to memory-map a file. If writable is true,\n// memory protection of the pages is set so that they may be written to as well.", "docstring_tokens": ["Mmap", "uses", "the", "mmap", "system", "call", "to", "memory", "-", "map", "a", "file", ".", "If", "writable", "is", "true", "memory", "protection", "of", "the", "pages", "is", "set", "so", "that", "they", "may", "be", "written", "to", "as", "well", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/mmap_unix.go#L31-L37", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/mmap_unix.go", "func_name": "Madvise", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Madvise uses the madvise system call to give advise about the use of memory\n// when using a slice that is memory-mapped to a file. Set the readahead flag to\n// false if page references are expected in random order.", "docstring_tokens": ["Madvise", "uses", "the", "madvise", "system", "call", "to", "give", "advise", "about", "the", "use", "of", "memory", "when", "using", "a", "slice", "that", "is", "memory", "-", "mapped", "to", "a", "file", ".", "Set", "the", "readahead", "flag", "to", "false", "if", "page", "references", "are", "expected", "in", "random", "order", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/mmap_unix.go#L47-L53", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "txn.go", "func_name": "setDiscardTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Any deleted or invalid versions at or below ts would be discarded during\n// compaction to reclaim disk space in LSM tree and thence value log.", "docstring_tokens": ["Any", "deleted", "or", "invalid", "versions", "at", "or", "below", "ts", "would", "be", "discarded", "during", "compaction", "to", "reclaim", "disk", "space", "in", "LSM", "tree", "and", "thence", "value", "log", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/txn.go#L132-L136", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "txn.go", "func_name": "hasConflict", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hasConflict must be called while having a lock.", "docstring_tokens": ["hasConflict", "must", "be", "called", "while", "having", "a", "lock", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/txn.go#L148-L160", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "txn.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set adds a key-value pair to the database.\n//\n// It will return ErrReadOnlyTxn if update flag was set to false when creating the\n// transaction.\n//\n// The current transaction keeps a reference to the key and val byte slice\n// arguments. Users must not modify key and val until the end of the transaction.", "docstring_tokens": ["Set", "adds", "a", "key", "-", "value", "pair", "to", "the", "database", ".", "It", "will", "return", "ErrReadOnlyTxn", "if", "update", "flag", "was", "set", "to", "false", "when", "creating", "the", "transaction", ".", "The", "current", "transaction", "keeps", "a", "reference", "to", "the", "key", "and", "val", "byte", "slice", "arguments", ".", "Users", "must", "not", "modify", "key", "and", "val", "until", "the", "end", "of", "the", "transaction", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/txn.go#L308-L314", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "txn.go", "func_name": "SetWithMeta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetWithMeta adds a key-value pair to the database, along with a metadata\n// byte.\n//\n// This byte is stored alongside the key, and can be used as an aid to\n// interpret the value or store other contextual bits corresponding to the\n// key-value pair.\n//\n// The current transaction keeps a reference to the key and val byte slice\n// arguments. Users must not modify key and val until the end of the transaction.", "docstring_tokens": ["SetWithMeta", "adds", "a", "key", "-", "value", "pair", "to", "the", "database", "along", "with", "a", "metadata", "byte", ".", "This", "byte", "is", "stored", "alongside", "the", "key", "and", "can", "be", "used", "as", "an", "aid", "to", "interpret", "the", "value", "or", "store", "other", "contextual", "bits", "corresponding", "to", "the", "key", "-", "value", "pair", ".", "The", "current", "transaction", "keeps", "a", "reference", "to", "the", "key", "and", "val", "byte", "slice", "arguments", ".", "Users", "must", "not", "modify", "key", "and", "val", "until", "the", "end", "of", "the", "transaction", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/txn.go#L325-L328", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "txn.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes a key.\n//\n// This is done by adding a delete marker for the key at commit timestamp. Any\n// reads happening before this timestamp would be unaffected. Any reads after\n// this commit would see the deletion.\n//\n// The current transaction keeps a reference to the key byte slice argument.\n// Users must not modify the key until the end of the transaction.", "docstring_tokens": ["Delete", "deletes", "a", "key", ".", "This", "is", "done", "by", "adding", "a", "delete", "marker", "for", "the", "key", "at", "commit", "timestamp", ".", "Any", "reads", "happening", "before", "this", "timestamp", "would", "be", "unaffected", ".", "Any", "reads", "after", "this", "commit", "would", "see", "the", "deletion", ".", "The", "current", "transaction", "keeps", "a", "reference", "to", "the", "key", "byte", "slice", "argument", ".", "Users", "must", "not", "modify", "the", "key", "until", "the", "end", "of", "the", "transaction", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/txn.go#L419-L425", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "txn.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get looks for key and returns corresponding Item.\n// If key is not found, ErrKeyNotFound is returned.", "docstring_tokens": ["Get", "looks", "for", "key", "and", "returns", "corresponding", "Item", ".", "If", "key", "is", "not", "found", "ErrKeyNotFound", "is", "returned", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/txn.go#L429-L479", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "txn.go", "func_name": "CommitWith", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CommitWith acts like Commit, but takes a callback, which gets run via a\n// goroutine to avoid blocking this function. The callback is guaranteed to run,\n// so it is safe to increment sync.WaitGroup before calling CommitWith, and\n// decrementing it in the callback; to block until all callbacks are run.", "docstring_tokens": ["CommitWith", "acts", "like", "Commit", "but", "takes", "a", "callback", "which", "gets", "run", "via", "a", "goroutine", "to", "avoid", "blocking", "this", "function", ".", "The", "callback", "is", "guaranteed", "to", "run", "so", "it", "is", "safe", "to", "increment", "sync", ".", "WaitGroup", "before", "calling", "CommitWith", "and", "decrementing", "it", "in", "the", "callback", ";", "to", "block", "until", "all", "callbacks", "are", "run", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/txn.go#L635-L658", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "txn.go", "func_name": "View", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// View executes a function creating and managing a read-only transaction for the user. Error\n// returned by the function is relayed by the View method.\n// If View is used with managed transactions, it would assume a read timestamp of MaxUint64.", "docstring_tokens": ["View", "executes", "a", "function", "creating", "and", "managing", "a", "read", "-", "only", "transaction", "for", "the", "user", ".", "Error", "returned", "by", "the", "function", "is", "relayed", "by", "the", "View", "method", ".", "If", "View", "is", "used", "with", "managed", "transactions", "it", "would", "assume", "a", "read", "timestamp", "of", "MaxUint64", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/txn.go#L726-L736", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "txn.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update executes a function, creating and managing a read-write transaction\n// for the user. Error returned by the function is relayed by the Update method.\n// Update cannot be used with managed transactions.", "docstring_tokens": ["Update", "executes", "a", "function", "creating", "and", "managing", "a", "read", "-", "write", "transaction", "for", "the", "user", ".", "Error", "returned", "by", "the", "function", "is", "relayed", "by", "the", "Update", "method", ".", "Update", "cannot", "be", "used", "with", "managed", "transactions", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/txn.go#L741-L753", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/iterator.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek brings us to the first block element that is >= input key.", "docstring_tokens": ["Seek", "brings", "us", "to", "the", "first", "block", "element", "that", "is", ">", "=", "input", "key", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/iterator.go#L74-L95", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/iterator.go", "func_name": "SeekToLast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SeekToLast brings us to the last element. Valid should return true.", "docstring_tokens": ["SeekToLast", "brings", "us", "to", "the", "last", "element", ".", "Valid", "should", "return", "true", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/iterator.go#L103-L108", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/iterator.go", "func_name": "parseKV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseKV would allocate a new byte slice for key and for value.", "docstring_tokens": ["parseKV", "would", "allocate", "a", "new", "byte", "slice", "for", "key", "and", "for", "value", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/iterator.go#L111-L128", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/iterator.go", "func_name": "NewIterator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewIterator returns a new iterator of the Table", "docstring_tokens": ["NewIterator", "returns", "a", "new", "iterator", "of", "the", "Table"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/iterator.go#L206-L211", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/iterator.go", "func_name": "seekFrom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// seekFrom brings us to a key that is >= input key.", "docstring_tokens": ["seekFrom", "brings", "us", "to", "a", "key", "that", "is", ">", "=", "input", "key", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/iterator.go#L275-L312", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/iterator.go", "func_name": "seekForPrev", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// seekForPrev will reset iterator and seek to <= key.", "docstring_tokens": ["seekForPrev", "will", "reset", "iterator", "and", "seek", "to", "<", "=", "key", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/iterator.go#L320-L326", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/iterator.go", "func_name": "Value", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Value follows the y.Iterator interface", "docstring_tokens": ["Value", "follows", "the", "y", ".", "Iterator", "interface"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/iterator.go#L391-L394", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/iterator.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek follows the y.Iterator interface", "docstring_tokens": ["Seek", "follows", "the", "y", ".", "Iterator", "interface"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/iterator.go#L415-L421", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/iterator.go", "func_name": "NewConcatIterator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConcatIterator creates a new concatenated iterator", "docstring_tokens": ["NewConcatIterator", "creates", "a", "new", "concatenated", "iterator"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/iterator.go#L434-L445", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/iterator.go", "func_name": "Valid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Valid implements y.Interface", "docstring_tokens": ["Valid", "implements", "y", ".", "Interface"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/iterator.go#L470-L472", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/iterator.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next advances our concat iterator.", "docstring_tokens": ["Next", "advances", "our", "concat", "iterator", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/iterator.go#L508-L529", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/iterator.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close implements y.Interface.", "docstring_tokens": ["Close", "implements", "y", ".", "Interface", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/iterator.go#L532-L539", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/y.go", "func_name": "OpenExistingFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpenExistingFile opens an existing file, errors if it doesn't exist.", "docstring_tokens": ["OpenExistingFile", "opens", "an", "existing", "file", "errors", "if", "it", "doesn", "t", "exist", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/y.go#L57-L67", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/y.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy copies a byte slice and returns the copied slice.", "docstring_tokens": ["Copy", "copies", "a", "byte", "slice", "and", "returns", "the", "copied", "slice", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/y.go#L102-L106", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/y.go", "func_name": "KeyWithTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeyWithTs generates a new key by appending ts to key.", "docstring_tokens": ["KeyWithTs", "generates", "a", "new", "key", "by", "appending", "ts", "to", "key", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/y.go#L109-L114", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/y.go", "func_name": "ParseTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseTs parses the timestamp from the key bytes.", "docstring_tokens": ["ParseTs", "parses", "the", "timestamp", "from", "the", "key", "bytes", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/y.go#L117-L122", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/y.go", "func_name": "ParseKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseKey parses the actual key from the key bytes.", "docstring_tokens": ["ParseKey", "parses", "the", "actual", "key", "from", "the", "key", "bytes", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/y.go#L137-L144", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/y.go", "func_name": "SameKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SameKey checks for key equality ignoring the version timestamp suffix.", "docstring_tokens": ["SameKey", "checks", "for", "key", "equality", "ignoring", "the", "version", "timestamp", "suffix", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/y.go#L147-L152", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/y.go", "func_name": "FixedDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FixedDuration returns a string representation of the given duration with the\n// hours, minutes, and seconds.", "docstring_tokens": ["FixedDuration", "returns", "a", "string", "representation", "of", "the", "given", "duration", "with", "the", "hours", "minutes", "and", "seconds", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/y.go#L171-L180", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/y.go", "func_name": "NewCloser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCloser constructs a new Closer, with an initial count on the WaitGroup.", "docstring_tokens": ["NewCloser", "constructs", "a", "new", "Closer", "with", "an", "initial", "count", "on", "the", "WaitGroup", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/y.go#L191-L195", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/y.go", "func_name": "NewThrottle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewThrottle creates a new throttle with a max number of workers.", "docstring_tokens": ["NewThrottle", "creates", "a", "new", "throttle", "with", "a", "max", "number", "of", "workers", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/y.go#L245-L250", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/y.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do should be called by workers before they start working. It blocks if there\n// are already maximum number of workers working. If it detects an error from\n// previously Done workers, it would return it.", "docstring_tokens": ["Do", "should", "be", "called", "by", "workers", "before", "they", "start", "working", ".", "It", "blocks", "if", "there", "are", "already", "maximum", "number", "of", "workers", "working", ".", "If", "it", "detects", "an", "error", "from", "previously", "Done", "workers", "it", "would", "return", "it", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/y.go#L255-L267", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/y.go", "func_name": "Done", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Done should be called by workers when they finish working. They can also\n// pass the error status of work done.", "docstring_tokens": ["Done", "should", "be", "called", "by", "workers", "when", "they", "finish", "working", ".", "They", "can", "also", "pass", "the", "error", "status", "of", "work", "done", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/y.go#L271-L281", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/y.go", "func_name": "Finish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Finish waits until all workers have finished working. It would return any\n// error passed by Done.", "docstring_tokens": ["Finish", "waits", "until", "all", "workers", "have", "finished", "working", ".", "It", "would", "return", "any", "error", "passed", "by", "Done", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/y.go#L285-L295", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "managed_db.go", "func_name": "SetDiscardTs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDiscardTs sets a timestamp at or below which, any invalid or deleted\n// versions can be discarded from the LSM tree, and thence from the value log to\n// reclaim disk space. Can only be used with managed transactions.", "docstring_tokens": ["SetDiscardTs", "sets", "a", "timestamp", "at", "or", "below", "which", "any", "invalid", "or", "deleted", "versions", "can", "be", "discarded", "from", "the", "LSM", "tree", "and", "thence", "from", "the", "value", "log", "to", "reclaim", "disk", "space", ".", "Can", "only", "be", "used", "with", "managed", "transactions", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/managed_db.go#L63-L68", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "value.go", "func_name": "openReadOnly", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// openReadOnly assumes that we have a write lock on logFile.", "docstring_tokens": ["openReadOnly", "assumes", "that", "we", "have", "a", "write", "lock", "on", "logFile", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/value.go#L74-L94", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "value.go", "func_name": "iterate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// iterate iterates over log file. It doesn't not allocate new memory for every kv pair.\n// Therefore, the kv pair is only valid for the duration of fn call.", "docstring_tokens": ["iterate", "iterates", "over", "log", "file", ".", "It", "doesn", "t", "not", "allocate", "new", "memory", "for", "every", "kv", "pair", ".", "Therefore", "the", "kv", "pair", "is", "only", "valid", "for", "the", "duration", "of", "fn", "call", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/value.go#L253-L336", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "value.go", "func_name": "sortedFids", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sortedFids returns the file id's not pending deletion, sorted. Assumes we have shared access to\n// filesMap.", "docstring_tokens": ["sortedFids", "returns", "the", "file", "id", "s", "not", "pending", "deletion", "sorted", ".", "Assumes", "we", "have", "shared", "access", "to", "filesMap", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/value.go#L863-L878", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "value.go", "func_name": "write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// write is thread-unsafe by design and should not be called concurrently.", "docstring_tokens": ["write", "is", "thread", "-", "unsafe", "by", "design", "and", "should", "not", "be", "called", "concurrently", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/value.go#L936-L1006", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "value.go", "func_name": "populateDiscardStats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// populateDiscardStats populates vlog.lfDiscardStats\n// This function will be called while initializing valueLog", "docstring_tokens": ["populateDiscardStats", "populates", "vlog", ".", "lfDiscardStats", "This", "function", "will", "be", "called", "while", "initializing", "valueLog"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/value.go#L1343-L1363", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "backup.go", "func_name": "Backup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Backup is a wrapper function over Stream.Backup to generate full and incremental backups of the\n// DB. For more control over how many goroutines are used to generate the backup, or if you wish to\n// backup only a certain range of keys, use Stream.Backup directly.", "docstring_tokens": ["Backup", "is", "a", "wrapper", "function", "over", "Stream", ".", "Backup", "to", "generate", "full", "and", "incremental", "backups", "of", "the", "DB", ".", "For", "more", "control", "over", "how", "many", "goroutines", "are", "used", "to", "generate", "the", "backup", "or", "if", "you", "wish", "to", "backup", "only", "a", "certain", "range", "of", "keys", "use", "Stream", ".", "Backup", "directly", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/backup.go#L34-L38", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "stream.go", "func_name": "ToList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToList is a default implementation of KeyToList. It picks up all valid versions of the key,\n// skipping over deleted or expired keys.", "docstring_tokens": ["ToList", "is", "a", "default", "implementation", "of", "KeyToList", ".", "It", "picks", "up", "all", "valid", "versions", "of", "the", "key", "skipping", "over", "deleted", "or", "expired", "keys", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/stream.go#L77-L110", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "stream.go", "func_name": "produceRanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// keyRange is [start, end), including start, excluding end. Do ensure that the start,\n// end byte slices are owned by keyRange struct.", "docstring_tokens": ["keyRange", "is", "[", "start", "end", ")", "including", "start", "excluding", "end", ".", "Do", "ensure", "that", "the", "start", "end", "byte", "slices", "are", "owned", "by", "keyRange", "struct", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/stream.go#L114-L125", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "stream.go", "func_name": "produceKVs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// produceKVs picks up ranges from rangeCh, generates KV lists and sends them to kvChan.", "docstring_tokens": ["produceKVs", "picks", "up", "ranges", "from", "rangeCh", "generates", "KV", "lists", "and", "sends", "them", "to", "kvChan", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/stream.go#L128-L202", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "stream.go", "func_name": "Orchestrate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Orchestrate runs Stream. It picks up ranges from the SSTables, then runs NumGo number of\n// goroutines to iterate over these ranges and batch up KVs in lists. It concurrently runs a single\n// goroutine to pick these lists, batch them up further and send to Output.Send. Orchestrate also\n// spits logs out to Infof, using provided LogPrefix. Note that all calls to Output.Send\n// are serial. In case any of these steps encounter an error, Orchestrate would stop execution and\n// return that error. Orchestrate can be called multiple times, but in serial order.", "docstring_tokens": ["Orchestrate", "runs", "Stream", ".", "It", "picks", "up", "ranges", "from", "the", "SSTables", "then", "runs", "NumGo", "number", "of", "goroutines", "to", "iterate", "over", "these", "ranges", "and", "batch", "up", "KVs", "in", "lists", ".", "It", "concurrently", "runs", "a", "single", "goroutine", "to", "pick", "these", "lists", "batch", "them", "up", "further", "and", "send", "to", "Output", ".", "Send", ".", "Orchestrate", "also", "spits", "logs", "out", "to", "Infof", "using", "provided", "LogPrefix", ".", "Note", "that", "all", "calls", "to", "Output", ".", "Send", "are", "serial", ".", "In", "case", "any", "of", "these", "steps", "encounter", "an", "error", "Orchestrate", "would", "stop", "execution", "and", "return", "that", "error", ".", "Orchestrate", "can", "be", "called", "multiple", "times", "but", "in", "serial", "order", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/stream.go#L276-L325", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "stream.go", "func_name": "NewStream", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStream creates a new Stream.", "docstring_tokens": ["NewStream", "creates", "a", "new", "Stream", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/stream.go#L332-L337", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "stream.go", "func_name": "NewStreamAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStreamAt creates a new Stream at a particular timestamp. Should only be used with managed DB.", "docstring_tokens": ["NewStreamAt", "creates", "a", "new", "Stream", "at", "a", "particular", "timestamp", ".", "Should", "only", "be", "used", "with", "managed", "DB", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/stream.go#L340-L347", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/table.go", "func_name": "DecrRef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecrRef decrements the refcount and possibly deletes the table", "docstring_tokens": ["DecrRef", "decrements", "the", "refcount", "and", "possibly", "deletes", "the", "table"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/table.go#L82-L105", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/table.go", "func_name": "ParseFileID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseFileID reads the file id out of a filename.", "docstring_tokens": ["ParseFileID", "reads", "the", "file", "id", "out", "of", "a", "filename", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/table.go#L315-L328", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "histogram.go", "func_name": "PrintHistogram", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintHistogram builds and displays the key-value size histogram.\n// When keyPrefix is set, only the keys that have prefix \"keyPrefix\" are\n// considered for creating the histogram", "docstring_tokens": ["PrintHistogram", "builds", "and", "displays", "the", "key", "-", "value", "size", "histogram", ".", "When", "keyPrefix", "is", "set", "only", "the", "keys", "that", "have", "prefix", "keyPrefix", "are", "considered", "for", "creating", "the", "histogram"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/histogram.go#L27-L37", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "histogram.go", "func_name": "newSizeHistogram", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newSizeHistogram returns a new instance of keyValueSizeHistogram with\n// properly initialized fields.", "docstring_tokens": ["newSizeHistogram", "returns", "a", "new", "instance", "of", "keyValueSizeHistogram", "with", "properly", "initialized", "fields", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/histogram.go#L56-L76", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "histogram.go", "func_name": "buildHistogram", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildHistogram builds the key-value size histogram.\n// When keyPrefix is set, only the keys that have prefix \"keyPrefix\" are\n// considered for creating the histogram", "docstring_tokens": ["buildHistogram", "builds", "the", "key", "-", "value", "size", "histogram", ".", "When", "keyPrefix", "is", "set", "only", "the", "keys", "that", "have", "prefix", "keyPrefix", "are", "considered", "for", "creating", "the", "histogram"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/histogram.go#L119-L135", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "histogram.go", "func_name": "printHistogram", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printHistogram prints the histogram data in a human-readable format.", "docstring_tokens": ["printHistogram", "prints", "the", "histogram", "data", "in", "a", "human", "-", "readable", "format", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/histogram.go#L138-L169", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/watermark.go", "func_name": "Init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Init initializes a WaterMark struct. MUST be called before using it.", "docstring_tokens": ["Init", "initializes", "a", "WaterMark", "struct", ".", "MUST", "be", "called", "before", "using", "it", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/watermark.go#L71-L75", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/watermark.go", "func_name": "Begin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Begin sets the last index to the given value.", "docstring_tokens": ["Begin", "sets", "the", "last", "index", "to", "the", "given", "value", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/watermark.go#L78-L81", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/watermark.go", "func_name": "BeginMany", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BeginMany works like Begin but accepts multiple indices.", "docstring_tokens": ["BeginMany", "works", "like", "Begin", "but", "accepts", "multiple", "indices", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/watermark.go#L84-L87", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/watermark.go", "func_name": "Done", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Done sets a single index as done.", "docstring_tokens": ["Done", "sets", "a", "single", "index", "as", "done", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/watermark.go#L90-L92", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/watermark.go", "func_name": "DoneMany", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DoneMany works like Done but accepts multiple indices.", "docstring_tokens": ["DoneMany", "works", "like", "Done", "but", "accepts", "multiple", "indices", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/watermark.go#L95-L97", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/watermark.go", "func_name": "SetDoneUntil", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDoneUntil sets the maximum index that has the property that all indices\n// less than or equal to it are done.", "docstring_tokens": ["SetDoneUntil", "sets", "the", "maximum", "index", "that", "has", "the", "property", "that", "all", "indices", "less", "than", "or", "equal", "to", "it", "are", "done", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/watermark.go#L107-L109", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/watermark.go", "func_name": "WaitForMark", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitForMark waits until the given index is marked as done.", "docstring_tokens": ["WaitForMark", "waits", "until", "the", "given", "index", "is", "marked", "as", "done", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/watermark.go#L117-L130", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/builder.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode encodes the header.", "docstring_tokens": ["Encode", "encodes", "the", "header", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/builder.go#L47-L52", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/builder.go", "func_name": "Decode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Decode decodes the header.", "docstring_tokens": ["Decode", "decodes", "the", "header", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/builder.go#L55-L61", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/builder.go", "func_name": "NewTableBuilder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTableBuilder makes a new TableBuilder.", "docstring_tokens": ["NewTableBuilder", "makes", "a", "new", "TableBuilder", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/builder.go#L86-L92", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/builder.go", "func_name": "keyDiff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// keyDiff returns a suffix of newKey that is different from b.baseKey.", "docstring_tokens": ["keyDiff", "returns", "a", "suffix", "of", "newKey", "that", "is", "different", "from", "b", ".", "baseKey", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/builder.go#L101-L109", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/builder.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds a key-value pair to the block.\n// If doNotRestart is true, we will not restart even if b.counter >= restartInterval.", "docstring_tokens": ["Add", "adds", "a", "key", "-", "value", "pair", "to", "the", "block", ".", "If", "doNotRestart", "is", "true", "we", "will", "not", "restart", "even", "if", "b", ".", "counter", ">", "=", "restartInterval", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/builder.go#L159-L171", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/builder.go", "func_name": "blockIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// blockIndex generates the block index for the table.\n// It is mainly a list of all the block base offsets.", "docstring_tokens": ["blockIndex", "generates", "the", "block", "index", "for", "the", "table", ".", "It", "is", "mainly", "a", "list", "of", "all", "the", "block", "base", "offsets", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/builder.go#L186-L200", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "table/builder.go", "func_name": "Finish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Finish finishes the table by appending the index.", "docstring_tokens": ["Finish", "finishes", "the", "table", "by", "appending", "the", "index", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/table/builder.go#L203-L235", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "logger.go", "func_name": "Errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Errorf logs an ERROR log message to the logger specified in opts or to the\n// global logger if no logger is specified in opts.", "docstring_tokens": ["Errorf", "logs", "an", "ERROR", "log", "message", "to", "the", "logger", "specified", "in", "opts", "or", "to", "the", "global", "logger", "if", "no", "logger", "is", "specified", "in", "opts", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/logger.go#L34-L39", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "logger.go", "func_name": "Infof", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Infof logs an INFO message to the logger specified in opts.", "docstring_tokens": ["Infof", "logs", "an", "INFO", "message", "to", "the", "logger", "specified", "in", "opts", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/logger.go#L42-L47", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/skl.go", "func_name": "DecrRef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecrRef decrements the refcount, deallocating the Skiplist when done using it", "docstring_tokens": ["DecrRef", "decrements", "the", "refcount", "deallocating", "the", "Skiplist", "when", "done", "using", "it"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/skl.go#L90-L100", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/skl.go", "func_name": "NewSkiplist", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSkiplist makes a new empty skiplist, with a given arena size", "docstring_tokens": ["NewSkiplist", "makes", "a", "new", "empty", "skiplist", "with", "a", "given", "arena", "size"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/skl.go#L126-L135", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/skl.go", "func_name": "Put", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Put inserts the key-value pair.", "docstring_tokens": ["Put", "inserts", "the", "key", "-", "value", "pair", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/skl.go#L283-L345", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/skl.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get gets the value associated with the key. It returns a valid value if it finds equal or earlier\n// version of the same key.", "docstring_tokens": ["Get", "gets", "the", "value", "associated", "with", "the", "key", ".", "It", "returns", "a", "valid", "value", "if", "it", "finds", "equal", "or", "earlier", "version", "of", "the", "same", "key", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/skl.go#L375-L390", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/skl.go", "func_name": "Key", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Key returns the key at the current position.", "docstring_tokens": ["Key", "returns", "the", "key", "at", "the", "current", "position", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/skl.go#L419-L421", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/skl.go", "func_name": "Value", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Value returns value.", "docstring_tokens": ["Value", "returns", "value", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/skl.go#L424-L427", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/skl.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next advances to the next position.", "docstring_tokens": ["Next", "advances", "to", "the", "next", "position", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/skl.go#L430-L433", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/skl.go", "func_name": "Prev", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Prev advances to the previous position.", "docstring_tokens": ["Prev", "advances", "to", "the", "previous", "position", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/skl.go#L436-L439", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/skl.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek advances to the first entry with a key >= target.", "docstring_tokens": ["Seek", "advances", "to", "the", "first", "entry", "with", "a", "key", ">", "=", "target", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/skl.go#L442-L444", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/skl.go", "func_name": "SeekForPrev", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SeekForPrev finds an entry with key <= target.", "docstring_tokens": ["SeekForPrev", "finds", "an", "entry", "with", "key", "<", "=", "target", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/skl.go#L447-L449", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/skl.go", "func_name": "NewUniIterator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewUniIterator returns a UniIterator.", "docstring_tokens": ["NewUniIterator", "returns", "a", "UniIterator", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/skl.go#L472-L477", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/skl.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next implements y.Interface", "docstring_tokens": ["Next", "implements", "y", ".", "Interface"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/skl.go#L480-L486", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/skl.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek implements y.Interface", "docstring_tokens": ["Seek", "implements", "y", ".", "Interface"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/skl.go#L498-L504", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "manifest.go", "func_name": "asChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// asChanges returns a sequence of changes that could be used to recreate the Manifest in its\n// present state.", "docstring_tokens": ["asChanges", "returns", "a", "sequence", "of", "changes", "that", "could", "be", "used", "to", "recreate", "the", "Manifest", "in", "its", "present", "state", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/manifest.go#L99-L105", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "manifest.go", "func_name": "rewrite", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Must be called while appendLock is held.", "docstring_tokens": ["Must", "be", "called", "while", "appendLock", "is", "held", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/manifest.go#L285-L299", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "util.go", "func_name": "validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check does some sanity check on one level of data or in-memory index.", "docstring_tokens": ["Check", "does", "some", "sanity", "check", "on", "one", "level", "of", "data", "or", "in", "-", "memory", "index", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/util.go#L66-L93", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "dir_windows.go", "func_name": "acquireDirectoryLock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AcquireDirectoryLock acquires exclusive access to a directory.", "docstring_tokens": ["AcquireDirectoryLock", "acquires", "exclusive", "access", "to", "a", "directory", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/dir_windows.go#L70-L100", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "dir_windows.go", "func_name": "release", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Release removes the directory lock.", "docstring_tokens": ["Release", "removes", "the", "directory", "lock", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/dir_windows.go#L103-L106", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/error.go", "func_name": "AssertTruef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AssertTruef is AssertTrue with extra info.", "docstring_tokens": ["AssertTruef", "is", "AssertTrue", "with", "extra", "info", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/error.go#L60-L64", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/error.go", "func_name": "Wrapf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrapf is Wrap with extra info.", "docstring_tokens": ["Wrapf", "is", "Wrap", "with", "extra", "info", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/error.go#L75-L83", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "level_handler.go", "func_name": "initTables", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initTables replaces s.tables with given tables. This is done during loading.", "docstring_tokens": ["initTables", "replaces", "s", ".", "tables", "with", "given", "tables", ".", "This", "is", "done", "during", "loading", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/level_handler.go#L53-L75", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "level_handler.go", "func_name": "deleteTables", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deleteTables remove tables idx0, ..., idx1-1.", "docstring_tokens": ["deleteTables", "remove", "tables", "idx0", "...", "idx1", "-", "1", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/level_handler.go#L78-L101", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "level_handler.go", "func_name": "tryAddLevel0Table", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tryAddLevel0Table returns true if ok and no stalling.", "docstring_tokens": ["tryAddLevel0Table", "returns", "true", "if", "ok", "and", "no", "stalling", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/level_handler.go#L159-L173", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "level_handler.go", "func_name": "getTableForKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getTableForKey acquires a read-lock to access s.tables. It returns a list of tableHandlers.", "docstring_tokens": ["getTableForKey", "acquires", "a", "read", "-", "lock", "to", "access", "s", ".", "tables", ".", "It", "returns", "a", "list", "of", "tableHandlers", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/level_handler.go#L194-L227", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "level_handler.go", "func_name": "get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// get returns value for a given key or the key after that. If not found, return nil.", "docstring_tokens": ["get", "returns", "value", "for", "a", "given", "key", "or", "the", "key", "after", "that", ".", "If", "not", "found", "return", "nil", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/level_handler.go#L230-L257", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "level_handler.go", "func_name": "overlappingTables", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// overlappingTables returns the tables that intersect with key range. Returns a half-interval.\n// This function should already have acquired a read lock, and this is so important the caller must\n// pass an empty parameter declaring such.", "docstring_tokens": ["overlappingTables", "returns", "the", "tables", "that", "intersect", "with", "key", "range", ".", "Returns", "a", "half", "-", "interval", ".", "This", "function", "should", "already", "have", "acquired", "a", "read", "lock", "and", "this", "is", "so", "important", "the", "caller", "must", "pass", "an", "empty", "parameter", "declaring", "such", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/level_handler.go#L288-L299", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "iterator.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a string representation of Item", "docstring_tokens": ["String", "returns", "a", "string", "representation", "of", "Item"], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/iterator.go#L59-L61", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "iterator.go", "func_name": "KeyCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeyCopy returns a copy of the key of the item, writing it to dst slice.\n// If nil is passed, or capacity of dst isn't sufficient, a new slice would be allocated and\n// returned.", "docstring_tokens": ["KeyCopy", "returns", "a", "copy", "of", "the", "key", "of", "the", "item", "writing", "it", "to", "dst", "slice", ".", "If", "nil", "is", "passed", "or", "capacity", "of", "dst", "isn", "t", "sufficient", "a", "new", "slice", "would", "be", "allocated", "and", "returned", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/iterator.go#L74-L76", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "iterator.go", "func_name": "ValueSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValueSize returns the exact size of the value.\n//\n// This can be called to quickly estimate the size of a value without fetching\n// it.", "docstring_tokens": ["ValueSize", "returns", "the", "exact", "size", "of", "the", "value", ".", "This", "can", "be", "called", "to", "quickly", "estimate", "the", "size", "of", "a", "value", "without", "fetching", "it", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/iterator.go#L259-L271", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "iterator.go", "func_name": "NewKeyIterator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewKeyIterator is just like NewIterator, but allows the user to iterate over all versions of a\n// single key. Internally, it sets the Prefix option in provided opt, and uses that prefix to\n// additionally run bloom filter lookups before picking tables from the LSM tree.", "docstring_tokens": ["NewKeyIterator", "is", "just", "like", "NewIterator", "but", "allows", "the", "user", "to", "iterate", "over", "all", "versions", "of", "a", "single", "key", ".", "Internally", "it", "sets", "the", "Prefix", "option", "in", "provided", "opt", "and", "uses", "that", "prefix", "to", "additionally", "run", "bloom", "filter", "lookups", "before", "picking", "tables", "from", "the", "LSM", "tree", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/iterator.go#L430-L437", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "iterator.go", "func_name": "Valid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Valid returns false when iteration is done.", "docstring_tokens": ["Valid", "returns", "false", "when", "iteration", "is", "done", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/iterator.go#L456-L461", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "iterator.go", "func_name": "ValidForPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidForPrefix returns false when iteration is done\n// or when the current key is not prefixed by the specified prefix.", "docstring_tokens": ["ValidForPrefix", "returns", "false", "when", "iteration", "is", "done", "or", "when", "the", "current", "key", "is", "not", "prefixed", "by", "the", "specified", "prefix", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/iterator.go#L465-L467", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "iterator.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close would close the iterator. It is important to call this when you're done with iteration.", "docstring_tokens": ["Close", "would", "close", "the", "iterator", ".", "It", "is", "important", "to", "call", "this", "when", "you", "re", "done", "with", "iteration", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/iterator.go#L470-L492", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "iterator.go", "func_name": "parseItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseItem is a complex function because it needs to handle both forward and reverse iteration\n// implementation. We store keys such that their versions are sorted in descending order. This makes\n// forward iteration efficient, but revese iteration complicated. This tradeoff is better because\n// forward iteration is more common than reverse.\n//\n// This function advances the iterator.", "docstring_tokens": ["parseItem", "is", "a", "complex", "function", "because", "it", "needs", "to", "handle", "both", "forward", "and", "reverse", "iteration", "implementation", ".", "We", "store", "keys", "such", "that", "their", "versions", "are", "sorted", "in", "descending", "order", ".", "This", "makes", "forward", "iteration", "efficient", "but", "revese", "iteration", "complicated", ".", "This", "tradeoff", "is", "better", "because", "forward", "iteration", "is", "more", "common", "than", "reverse", ".", "This", "function", "advances", "the", "iterator", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/iterator.go#L529-L608", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "iterator.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek would seek to the provided key if present. If absent, it would seek to the next smallest key\n// greater than the provided key if iterating in the forward direction. Behavior would be reversed if\n// iterating backwards.", "docstring_tokens": ["Seek", "would", "seek", "to", "the", "provided", "key", "if", "present", ".", "If", "absent", "it", "would", "seek", "to", "the", "next", "smallest", "key", "greater", "than", "the", "provided", "key", "if", "iterating", "in", "the", "forward", "direction", ".", "Behavior", "would", "be", "reversed", "if", "iterating", "backwards", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/iterator.go#L654-L677", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "merge.go", "func_name": "GetMergeOperator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMergeOperator creates a new MergeOperator for a given key and returns a\n// pointer to it. It also fires off a goroutine that performs a compaction using\n// the merge function that runs periodically, as specified by dur.", "docstring_tokens": ["GetMergeOperator", "creates", "a", "new", "MergeOperator", "for", "a", "given", "key", "and", "returns", "a", "pointer", "to", "it", ".", "It", "also", "fires", "off", "a", "goroutine", "that", "performs", "a", "compaction", "using", "the", "merge", "function", "that", "runs", "periodically", "as", "specified", "by", "dur", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/merge.go#L48-L59", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "merge.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns the latest value for the merge operator, which is derived by\n// applying the merge function to all the values added so far.\n//\n// If Add has not been called even once, Get will return ErrKeyNotFound.", "docstring_tokens": ["Get", "returns", "the", "latest", "value", "for", "the", "merge", "operator", "which", "is", "derived", "by", "applying", "the", "merge", "function", "to", "all", "the", "values", "added", "so", "far", ".", "If", "Add", "has", "not", "been", "called", "even", "once", "Get", "will", "return", "ErrKeyNotFound", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/merge.go#L155-L167", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "compaction.go", "func_name": "compareAndAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// compareAndAdd will check whether we can run this compactDef. That it doesn't overlap with any\n// other running compaction. If it can be run, it would store this run in the compactStatus state.", "docstring_tokens": ["compareAndAdd", "will", "check", "whether", "we", "can", "run", "this", "compactDef", ".", "That", "it", "doesn", "t", "overlap", "with", "any", "other", "running", "compaction", ".", "If", "it", "can", "be", "run", "it", "would", "store", "this", "run", "in", "the", "compactStatus", "state", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/compaction.go#L159-L184", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/arena.go", "func_name": "newArena", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newArena returns a new arena.", "docstring_tokens": ["newArena", "returns", "a", "new", "arena", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/arena.go#L43-L51", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/arena.go", "func_name": "putNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// putNode allocates a node in the arena. The node is aligned on a pointer-sized\n// boundary. The arena offset of the node is returned.", "docstring_tokens": ["putNode", "allocates", "a", "node", "in", "the", "arena", ".", "The", "node", "is", "aligned", "on", "a", "pointer", "-", "sized", "boundary", ".", "The", "arena", "offset", "of", "the", "node", "is", "returned", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/arena.go#L63-L78", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/arena.go", "func_name": "getNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getNode returns a pointer to the node located at offset. If the offset is\n// zero, then the nil node pointer is returned.", "docstring_tokens": ["getNode", "returns", "a", "pointer", "to", "the", "node", "located", "at", "offset", ".", "If", "the", "offset", "is", "zero", "then", "the", "nil", "node", "pointer", "is", "returned", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/arena.go#L108-L114", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/arena.go", "func_name": "getKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getKey returns byte slice at offset.", "docstring_tokens": ["getKey", "returns", "byte", "slice", "at", "offset", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/arena.go#L117-L119", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/arena.go", "func_name": "getVal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getVal returns byte slice at offset. The given size should be just the value\n// size and should NOT include the meta bytes.", "docstring_tokens": ["getVal", "returns", "byte", "slice", "at", "offset", ".", "The", "given", "size", "should", "be", "just", "the", "value", "size", "and", "should", "NOT", "include", "the", "meta", "bytes", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/arena.go#L123-L126", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "skl/arena.go", "func_name": "getNodeOffset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getNodeOffset returns the offset of node in the arena. If the node pointer is\n// nil, then the zero offset is returned.", "docstring_tokens": ["getNodeOffset", "returns", "the", "offset", "of", "node", "in", "the", "arena", ".", "If", "the", "node", "pointer", "is", "nil", "then", "the", "zero", "offset", "is", "returned", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/skl/arena.go#L130-L136", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "y/metrics.go", "func_name": "init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// These variables are global and have cumulative values for all kv stores.", "docstring_tokens": ["These", "variables", "are", "global", "and", "have", "cumulative", "values", "for", "all", "kv", "stores", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/y/metrics.go#L54-L68", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "levels.go", "func_name": "revertToManifest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// revertToManifest checks that all necessary table files exist and removes all table files not\n// referenced by the manifest. idMap is a set of table file id's that were read from the directory\n// listing.", "docstring_tokens": ["revertToManifest", "checks", "that", "all", "necessary", "table", "files", "exist", "and", "removes", "all", "table", "files", "not", "referenced", "by", "the", "manifest", ".", "idMap", "is", "a", "set", "of", "table", "file", "id", "s", "that", "were", "read", "from", "the", "directory", "listing", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/levels.go#L58-L78", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "levels.go", "func_name": "dropTree", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dropTree picks all tables from all levels, creates a manifest changeset,\n// applies it, and then decrements the refs of these tables, which would result\n// in their deletion.", "docstring_tokens": ["dropTree", "picks", "all", "tables", "from", "all", "levels", "creates", "a", "manifest", "changeset", "applies", "it", "and", "then", "decrements", "the", "refs", "of", "these", "tables", "which", "would", "result", "in", "their", "deletion", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/levels.go#L222-L257", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "levels.go", "func_name": "dropPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dropPrefix runs a L0->L1 compaction, and then runs same level compaction on the rest of the\n// levels. For L0->L1 compaction, it runs compactions normally, but skips over all the keys with the\n// provided prefix. For Li->Li compactions, it picks up the tables which would have the prefix. The\n// tables who only have keys with this prefix are quickly dropped. The ones which have other keys\n// are run through MergeIterator and compacted to create new tables. All the mechanisms of\n// compactions apply, i.e. level sizes and MANIFEST are updated as in the normal flow.", "docstring_tokens": ["dropPrefix", "runs", "a", "L0", "-", ">", "L1", "compaction", "and", "then", "runs", "same", "level", "compaction", "on", "the", "rest", "of", "the", "levels", ".", "For", "L0", "-", ">", "L1", "compaction", "it", "runs", "compactions", "normally", "but", "skips", "over", "all", "the", "keys", "with", "the", "provided", "prefix", ".", "For", "Li", "-", ">", "Li", "compactions", "it", "picks", "up", "the", "tables", "which", "would", "have", "the", "prefix", ".", "The", "tables", "who", "only", "have", "keys", "with", "this", "prefix", "are", "quickly", "dropped", ".", "The", "ones", "which", "have", "other", "keys", "are", "run", "through", "MergeIterator", "and", "compacted", "to", "create", "new", "tables", ".", "All", "the", "mechanisms", "of", "compactions", "apply", "i", ".", "e", ".", "level", "sizes", "and", "MANIFEST", "are", "updated", "as", "in", "the", "normal", "flow", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/levels.go#L265-L323", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "levels.go", "func_name": "isLevel0Compactable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns true if level zero may be compacted, without accounting for compactions that already\n// might be happening.", "docstring_tokens": ["Returns", "true", "if", "level", "zero", "may", "be", "compacted", "without", "accounting", "for", "compactions", "that", "already", "might", "be", "happening", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/levels.go#L369-L371", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "levels.go", "func_name": "doCompact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// doCompact picks some table on level l and compacts it away to the next level.", "docstring_tokens": ["doCompact", "picks", "some", "table", "on", "level", "l", "and", "compacts", "it", "away", "to", "the", "next", "level", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/levels.go#L798-L838", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "levels.go", "func_name": "get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// get returns the found value if any. If not found, we return nil.", "docstring_tokens": ["get", "returns", "the", "found", "value", "if", "any", ".", "If", "not", "found", "we", "return", "nil", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/levels.go#L898-L924", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "badger/cmd/bank.go", "func_name": "seekTotal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// seekTotal retrives the total of all accounts by seeking for each account key.", "docstring_tokens": ["seekTotal", "retrives", "the", "total", "of", "all", "accounts", "by", "seeking", "for", "each", "account", "key", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/badger/cmd/bank.go#L181-L210", "partition": "test"} +{"repo": "dgraph-io/badger", "path": "badger/cmd/bank.go", "func_name": "findFirstInvalidTxn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Range is [lowTs, highTs).", "docstring_tokens": ["Range", "is", "[", "lowTs", "highTs", ")", "."], "sha": "6b796b3ebec3ff006fcb1b425836cd784651e9fd", "url": "https://github.com/dgraph-io/badger/blob/6b796b3ebec3ff006fcb1b425836cd784651e9fd/badger/cmd/bank.go#L213-L245", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_snapshot.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create replaces the stored snapshot with a new one using the given args", "docstring_tokens": ["Create", "replaces", "the", "stored", "snapshot", "with", "a", "new", "one", "using", "the", "given", "args"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_snapshot.go#L35-L63", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_snapshot.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List returns the latest snapshot taken", "docstring_tokens": ["List", "returns", "the", "latest", "snapshot", "taken"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_snapshot.go#L66-L74", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_snapshot.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open wraps an io.ReadCloser around the snapshot contents", "docstring_tokens": ["Open", "wraps", "an", "io", ".", "ReadCloser", "around", "the", "snapshot", "contents"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_snapshot.go#L77-L86", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_snapshot.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write appends the given bytes to the snapshot contents", "docstring_tokens": ["Write", "appends", "the", "given", "bytes", "to", "the", "snapshot", "contents"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_snapshot.go#L89-L93", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "NewFileSnapshotStoreWithLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFileSnapshotStoreWithLogger creates a new FileSnapshotStore based\n// on a base directory. The `retain` parameter controls how many\n// snapshots are retained. Must be at least 1.", "docstring_tokens": ["NewFileSnapshotStoreWithLogger", "creates", "a", "new", "FileSnapshotStore", "based", "on", "a", "base", "directory", ".", "The", "retain", "parameter", "controls", "how", "many", "snapshots", "are", "retained", ".", "Must", "be", "at", "least", "1", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L79-L105", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "NewFileSnapshotStore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFileSnapshotStore creates a new FileSnapshotStore based\n// on a base directory. The `retain` parameter controls how many\n// snapshots are retained. Must be at least 1.", "docstring_tokens": ["NewFileSnapshotStore", "creates", "a", "new", "FileSnapshotStore", "based", "on", "a", "base", "directory", ".", "The", "retain", "parameter", "controls", "how", "many", "snapshots", "are", "retained", ".", "Must", "be", "at", "least", "1", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L110-L115", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "snapshotName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// snapshotName generates a name for the snapshot.", "docstring_tokens": ["snapshotName", "generates", "a", "name", "for", "the", "snapshot", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L136-L140", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create is used to start a new snapshot", "docstring_tokens": ["Create", "is", "used", "to", "start", "a", "new", "snapshot"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L143-L205", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List returns available snapshots in the store.", "docstring_tokens": ["List", "returns", "available", "snapshots", "in", "the", "store", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L208-L224", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "getSnapshots", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getSnapshots returns all the known snapshots.", "docstring_tokens": ["getSnapshots", "returns", "all", "the", "known", "snapshots", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L227-L271", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "readMeta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readMeta is used to read the meta data for a given named backup", "docstring_tokens": ["readMeta", "is", "used", "to", "read", "the", "meta", "data", "for", "a", "given", "named", "backup"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L274-L293", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open takes a snapshot ID and returns a ReadCloser for that snapshot.", "docstring_tokens": ["Open", "takes", "a", "snapshot", "ID", "and", "returns", "a", "ReadCloser", "for", "that", "snapshot", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L296-L346", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "ReapSnapshots", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReapSnapshots reaps any snapshots beyond the retain count.", "docstring_tokens": ["ReapSnapshots", "reaps", "any", "snapshots", "beyond", "the", "retain", "count", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L349-L365", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write is used to append to the state file. We write to the\n// buffered IO object to reduce the amount of context switches.", "docstring_tokens": ["Write", "is", "used", "to", "append", "to", "the", "state", "file", ".", "We", "write", "to", "the", "buffered", "IO", "object", "to", "reduce", "the", "amount", "of", "context", "switches", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L375-L377", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close is used to indicate a successful end.", "docstring_tokens": ["Close", "is", "used", "to", "indicate", "a", "successful", "end", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L380-L430", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "Cancel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cancel is used to indicate an unsuccessful end.", "docstring_tokens": ["Cancel", "is", "used", "to", "indicate", "an", "unsuccessful", "end", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L433-L448", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "finalize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// finalize is used to close all of our resources.", "docstring_tokens": ["finalize", "is", "used", "to", "close", "all", "of", "our", "resources", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L451-L479", "partition": "test"} +{"repo": "hashicorp/raft", "path": "file_snapshot.go", "func_name": "writeMeta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeMeta is used to write out the metadata we have.", "docstring_tokens": ["writeMeta", "is", "used", "to", "write", "out", "the", "metadata", "we", "have", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/file_snapshot.go#L482-L509", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "NewNetworkTransportWithConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewNetworkTransportWithConfig creates a new network transport with the given config struct", "docstring_tokens": ["NewNetworkTransportWithConfig", "creates", "a", "new", "network", "transport", "with", "the", "given", "config", "struct"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L146-L169", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "setupStreamContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setupStreamContext is used to create a new stream context. This should be\n// called with the stream lock held.", "docstring_tokens": ["setupStreamContext", "is", "used", "to", "create", "a", "new", "stream", "context", ".", "This", "should", "be", "called", "with", "the", "stream", "lock", "held", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L205-L209", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "getStreamContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getStreamContext is used retrieve the current stream context.", "docstring_tokens": ["getStreamContext", "is", "used", "retrieve", "the", "current", "stream", "context", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L212-L216", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "SetHeartbeatHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHeartbeatHandler is used to setup a heartbeat handler\n// as a fast-pass. This is to avoid head-of-line blocking from\n// disk IO.", "docstring_tokens": ["SetHeartbeatHandler", "is", "used", "to", "setup", "a", "heartbeat", "handler", "as", "a", "fast", "-", "pass", ".", "This", "is", "to", "avoid", "head", "-", "of", "-", "line", "blocking", "from", "disk", "IO", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L221-L225", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "CloseStreams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloseStreams closes the current streams.", "docstring_tokens": ["CloseStreams", "closes", "the", "current", "streams", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L228-L250", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close is used to stop the network transport.", "docstring_tokens": ["Close", "is", "used", "to", "stop", "the", "network", "transport", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L253-L263", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "getPooledConn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getExistingConn is used to grab a pooled connection.", "docstring_tokens": ["getExistingConn", "is", "used", "to", "grab", "a", "pooled", "connection", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L286-L300", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "getConnFromAddressProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getConnFromAddressProvider returns a connection from the server address provider if available, or defaults to a connection using the target server address", "docstring_tokens": ["getConnFromAddressProvider", "returns", "a", "connection", "from", "the", "server", "address", "provider", "if", "available", "or", "defaults", "to", "a", "connection", "using", "the", "target", "server", "address"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L303-L306", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "getConn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getConn is used to get a connection from the pool.", "docstring_tokens": ["getConn", "is", "used", "to", "get", "a", "connection", "from", "the", "pool", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L321-L347", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "returnConn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// returnConn returns a connection back to the pool.", "docstring_tokens": ["returnConn", "returns", "a", "connection", "back", "to", "the", "pool", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L350-L362", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "listen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// listen is used to handling incoming connections.", "docstring_tokens": ["listen", "is", "used", "to", "handling", "incoming", "connections", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L463-L501", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "handleConn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleConn is used to handle an inbound connection for its lifespan. The\n// handler will exit when the passed context is cancelled or the connection is\n// closed.", "docstring_tokens": ["handleConn", "is", "used", "to", "handle", "an", "inbound", "connection", "for", "its", "lifespan", ".", "The", "handler", "will", "exit", "when", "the", "passed", "context", "is", "cancelled", "or", "the", "connection", "is", "closed", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L506-L532", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "handleCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleCommand is used to decode and dispatch a single command.", "docstring_tokens": ["handleCommand", "is", "used", "to", "decode", "and", "dispatch", "a", "single", "command", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L535-L623", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "decodeResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// decodeResponse is used to decode an RPC response and reports whether\n// the connection can be reused.", "docstring_tokens": ["decodeResponse", "is", "used", "to", "decode", "an", "RPC", "response", "and", "reports", "whether", "the", "connection", "can", "be", "reused", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L627-L646", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "sendRPC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendRPC is used to encode and send the RPC.", "docstring_tokens": ["sendRPC", "is", "used", "to", "encode", "and", "send", "the", "RPC", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L649-L668", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "newNetPipeline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newNetPipeline is used to construct a netPipeline from a given\n// transport and connection.", "docstring_tokens": ["newNetPipeline", "is", "used", "to", "construct", "a", "netPipeline", "from", "a", "given", "transport", "and", "connection", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L672-L682", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "decodeResponses", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// decodeResponses is a long running routine that decodes the responses\n// sent on the connection.", "docstring_tokens": ["decodeResponses", "is", "a", "long", "running", "routine", "that", "decodes", "the", "responses", "sent", "on", "the", "connection", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L686-L706", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "AppendEntries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendEntries is used to pipeline a new append entries request.", "docstring_tokens": ["AppendEntries", "is", "used", "to", "pipeline", "a", "new", "append", "entries", "request", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L709-L736", "partition": "test"} +{"repo": "hashicorp/raft", "path": "net_transport.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Closed is used to shutdown the pipeline connection.", "docstring_tokens": ["Closed", "is", "used", "to", "shutdown", "the", "pipeline", "connection", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/net_transport.go#L744-L757", "partition": "test"} +{"repo": "hashicorp/raft", "path": "observer.go", "func_name": "NewObserver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewObserver creates a new observer that can be registered\n// to make observations on a Raft instance. Observations\n// will be sent on the given channel if they satisfy the\n// given filter.\n//\n// If blocking is true, the observer will block when it can't\n// send on the channel, otherwise it may discard events.", "docstring_tokens": ["NewObserver", "creates", "a", "new", "observer", "that", "can", "be", "registered", "to", "make", "observations", "on", "a", "Raft", "instance", ".", "Observations", "will", "be", "sent", "on", "the", "given", "channel", "if", "they", "satisfy", "the", "given", "filter", ".", "If", "blocking", "is", "true", "the", "observer", "will", "block", "when", "it", "can", "t", "send", "on", "the", "channel", "otherwise", "it", "may", "discard", "events", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/observer.go#L60-L67", "partition": "test"} +{"repo": "hashicorp/raft", "path": "observer.go", "func_name": "RegisterObserver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterObserver registers a new observer.", "docstring_tokens": ["RegisterObserver", "registers", "a", "new", "observer", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/observer.go#L80-L84", "partition": "test"} +{"repo": "hashicorp/raft", "path": "observer.go", "func_name": "DeregisterObserver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeregisterObserver deregisters an observer.", "docstring_tokens": ["DeregisterObserver", "deregisters", "an", "observer", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/observer.go#L87-L91", "partition": "test"} +{"repo": "hashicorp/raft", "path": "observer.go", "func_name": "observe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// observe sends an observation to every observer.", "docstring_tokens": ["observe", "sends", "an", "observation", "to", "every", "observer", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/observer.go#L94-L122", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_store.go", "func_name": "NewInmemStore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInmemStore returns a new in-memory backend. Do not ever\n// use for production. Only for testing.", "docstring_tokens": ["NewInmemStore", "returns", "a", "new", "in", "-", "memory", "backend", ".", "Do", "not", "ever", "use", "for", "production", ".", "Only", "for", "testing", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_store.go#L22-L29", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_store.go", "func_name": "FirstIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FirstIndex implements the LogStore interface.", "docstring_tokens": ["FirstIndex", "implements", "the", "LogStore", "interface", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_store.go#L32-L36", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_store.go", "func_name": "LastIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LastIndex implements the LogStore interface.", "docstring_tokens": ["LastIndex", "implements", "the", "LogStore", "interface", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_store.go#L39-L43", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_store.go", "func_name": "GetLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLog implements the LogStore interface.", "docstring_tokens": ["GetLog", "implements", "the", "LogStore", "interface", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_store.go#L46-L55", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_store.go", "func_name": "StoreLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoreLog implements the LogStore interface.", "docstring_tokens": ["StoreLog", "implements", "the", "LogStore", "interface", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_store.go#L58-L60", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_store.go", "func_name": "StoreLogs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoreLogs implements the LogStore interface.", "docstring_tokens": ["StoreLogs", "implements", "the", "LogStore", "interface", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_store.go#L63-L76", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_store.go", "func_name": "DeleteRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteRange implements the LogStore interface.", "docstring_tokens": ["DeleteRange", "implements", "the", "LogStore", "interface", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_store.go#L79-L96", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_store.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set implements the StableStore interface.", "docstring_tokens": ["Set", "implements", "the", "StableStore", "interface", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_store.go#L99-L104", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_store.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get implements the StableStore interface.", "docstring_tokens": ["Get", "implements", "the", "StableStore", "interface", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_store.go#L107-L115", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_store.go", "func_name": "SetUint64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetUint64 implements the StableStore interface.", "docstring_tokens": ["SetUint64", "implements", "the", "StableStore", "interface", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_store.go#L118-L123", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_store.go", "func_name": "GetUint64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUint64 implements the StableStore interface.", "docstring_tokens": ["GetUint64", "implements", "the", "StableStore", "interface", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_store.go#L126-L130", "partition": "test"} +{"repo": "hashicorp/raft", "path": "log_cache.go", "func_name": "NewLogCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLogCache is used to create a new LogCache with the\n// given capacity and backend store.", "docstring_tokens": ["NewLogCache", "is", "used", "to", "create", "a", "new", "LogCache", "with", "the", "given", "capacity", "and", "backend", "store", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/log_cache.go#L22-L31", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_transport.go", "func_name": "Connect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Connect is used to connect this transport to another transport for\n// a given peer name. This allows for local routing.", "docstring_tokens": ["Connect", "is", "used", "to", "connect", "this", "transport", "to", "another", "transport", "for", "a", "given", "peer", "name", ".", "This", "allows", "for", "local", "routing", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_transport.go#L186-L191", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_transport.go", "func_name": "Disconnect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Disconnect is used to remove the ability to route to a given peer.", "docstring_tokens": ["Disconnect", "is", "used", "to", "remove", "the", "ability", "to", "route", "to", "a", "given", "peer", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_transport.go#L194-L210", "partition": "test"} +{"repo": "hashicorp/raft", "path": "inmem_transport.go", "func_name": "DisconnectAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DisconnectAll is used to remove all routes to peers.", "docstring_tokens": ["DisconnectAll", "is", "used", "to", "remove", "all", "routes", "to", "peers", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/inmem_transport.go#L213-L223", "partition": "test"} +{"repo": "hashicorp/raft", "path": "transport.go", "func_name": "Respond", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Respond is used to respond with a response, error or both", "docstring_tokens": ["Respond", "is", "used", "to", "respond", "with", "a", "response", "error", "or", "both"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/transport.go#L22-L24", "partition": "test"} +{"repo": "hashicorp/raft", "path": "future.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open is a function you can call to access the underlying snapshot and its\n// metadata.", "docstring_tokens": ["Open", "is", "a", "function", "you", "can", "call", "to", "access", "the", "underlying", "snapshot", "and", "its", "metadata", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/future.go#L177-L188", "partition": "test"} +{"repo": "hashicorp/raft", "path": "future.go", "func_name": "vote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// vote is used to respond to a verifyFuture.\n// This may block when responding on the notifyCh.", "docstring_tokens": ["vote", "is", "used", "to", "respond", "to", "a", "verifyFuture", ".", "This", "may", "block", "when", "responding", "on", "the", "notifyCh", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/future.go#L249-L268", "partition": "test"} +{"repo": "hashicorp/raft", "path": "replication.go", "func_name": "notifyAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// notifyAll is used to notify all the waiting verify futures\n// if the follower believes we are still the leader.", "docstring_tokens": ["notifyAll", "is", "used", "to", "notify", "all", "the", "waiting", "verify", "futures", "if", "the", "follower", "believes", "we", "are", "still", "the", "leader", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/replication.go#L84-L95", "partition": "test"} +{"repo": "hashicorp/raft", "path": "replication.go", "func_name": "cleanNotify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cleanNotify is used to delete notify, .", "docstring_tokens": ["cleanNotify", "is", "used", "to", "delete", "notify", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/replication.go#L98-L102", "partition": "test"} +{"repo": "hashicorp/raft", "path": "replication.go", "func_name": "LastContact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LastContact returns the time of last contact.", "docstring_tokens": ["LastContact", "returns", "the", "time", "of", "last", "contact", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/replication.go#L105-L110", "partition": "test"} +{"repo": "hashicorp/raft", "path": "replication.go", "func_name": "setLastContact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setLastContact sets the last contact to the current time.", "docstring_tokens": ["setLastContact", "sets", "the", "last", "contact", "to", "the", "current", "time", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/replication.go#L113-L117", "partition": "test"} +{"repo": "hashicorp/raft", "path": "replication.go", "func_name": "replicate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// replicate is a long running routine that replicates log entries to a single\n// follower.", "docstring_tokens": ["replicate", "is", "a", "long", "running", "routine", "that", "replicates", "log", "entries", "to", "a", "single", "follower", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/replication.go#L121-L170", "partition": "test"} +{"repo": "hashicorp/raft", "path": "replication.go", "func_name": "pipelineReplicate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// pipelineReplicate is used when we have synchronized our state with the follower,\n// and want to switch to a higher performance pipeline mode of replication.\n// We only pipeline AppendEntries commands, and if we ever hit an error, we fall\n// back to the standard replication which can handle more complex situations.", "docstring_tokens": ["pipelineReplicate", "is", "used", "when", "we", "have", "synchronized", "our", "state", "with", "the", "follower", "and", "want", "to", "switch", "to", "a", "higher", "performance", "pipeline", "mode", "of", "replication", ".", "We", "only", "pipeline", "AppendEntries", "commands", "and", "if", "we", "ever", "hit", "an", "error", "we", "fall", "back", "to", "the", "standard", "replication", "which", "can", "handle", "more", "complex", "situations", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/replication.go#L380-L430", "partition": "test"} +{"repo": "hashicorp/raft", "path": "replication.go", "func_name": "pipelineSend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// pipelineSend is used to send data over a pipeline. It is a helper to\n// pipelineReplicate.", "docstring_tokens": ["pipelineSend", "is", "used", "to", "send", "data", "over", "a", "pipeline", ".", "It", "is", "a", "helper", "to", "pipelineReplicate", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/replication.go#L434-L453", "partition": "test"} +{"repo": "hashicorp/raft", "path": "replication.go", "func_name": "pipelineDecode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// pipelineDecode is used to decode the responses of pipelined requests.", "docstring_tokens": ["pipelineDecode", "is", "used", "to", "decode", "the", "responses", "of", "pipelined", "requests", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/replication.go#L456-L485", "partition": "test"} +{"repo": "hashicorp/raft", "path": "replication.go", "func_name": "setupAppendEntries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setupAppendEntries is used to setup an append entries request.", "docstring_tokens": ["setupAppendEntries", "is", "used", "to", "setup", "an", "append", "entries", "request", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/replication.go#L488-L500", "partition": "test"} +{"repo": "hashicorp/raft", "path": "replication.go", "func_name": "setPreviousLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setPreviousLog is used to setup the PrevLogEntry and PrevLogTerm for an\n// AppendEntriesRequest given the next index to replicate.", "docstring_tokens": ["setPreviousLog", "is", "used", "to", "setup", "the", "PrevLogEntry", "and", "PrevLogTerm", "for", "an", "AppendEntriesRequest", "given", "the", "next", "index", "to", "replicate", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/replication.go#L504-L528", "partition": "test"} +{"repo": "hashicorp/raft", "path": "replication.go", "func_name": "setNewLogs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setNewLogs is used to setup the logs which should be appended for a request.", "docstring_tokens": ["setNewLogs", "is", "used", "to", "setup", "the", "logs", "which", "should", "be", "appended", "for", "a", "request", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/replication.go#L531-L544", "partition": "test"} +{"repo": "hashicorp/raft", "path": "replication.go", "func_name": "appendStats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// appendStats is used to emit stats about an AppendEntries invocation.", "docstring_tokens": ["appendStats", "is", "used", "to", "emit", "stats", "about", "an", "AppendEntries", "invocation", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/replication.go#L547-L550", "partition": "test"} +{"repo": "hashicorp/raft", "path": "replication.go", "func_name": "handleStaleTerm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleStaleTerm is used when a follower indicates that we have a stale term.", "docstring_tokens": ["handleStaleTerm", "is", "used", "when", "a", "follower", "indicates", "that", "we", "have", "a", "stale", "term", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/replication.go#L553-L557", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fuzzy/transport.go", "func_name": "AppendEntries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendEntries sends the appropriate RPC to the target node.", "docstring_tokens": ["AppendEntries", "sends", "the", "appropriate", "RPC", "to", "the", "target", "node", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fuzzy/transport.go#L170-L182", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fuzzy/transport.go", "func_name": "RequestVote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RequestVote sends the appropriate RPC to the target node.", "docstring_tokens": ["RequestVote", "sends", "the", "appropriate", "RPC", "to", "the", "target", "node", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fuzzy/transport.go#L210-L212", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fuzzy/transport.go", "func_name": "InstallSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InstallSnapshot is used to push a snapshot down to a follower. The data is read from\n// the ReadCloser and streamed to the client.", "docstring_tokens": ["InstallSnapshot", "is", "used", "to", "push", "a", "snapshot", "down", "to", "a", "follower", ".", "The", "data", "is", "read", "from", "the", "ReadCloser", "and", "streamed", "to", "the", "client", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fuzzy/transport.go#L216-L219", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fuzzy/transport.go", "func_name": "EncodePeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EncodePeer is used to serialize a peer name.", "docstring_tokens": ["EncodePeer", "is", "used", "to", "serialize", "a", "peer", "name", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fuzzy/transport.go#L222-L224", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fuzzy/transport.go", "func_name": "DecodePeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodePeer is used to deserialize a peer name.", "docstring_tokens": ["DecodePeer", "is", "used", "to", "deserialize", "a", "peer", "name", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fuzzy/transport.go#L227-L229", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fuzzy/transport.go", "func_name": "AppendEntries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendEntries is used to add another request to the pipeline.\n// The send may block which is an effective form of back-pressure.", "docstring_tokens": ["AppendEntries", "is", "used", "to", "add", "another", "request", "to", "the", "pipeline", ".", "The", "send", "may", "block", "which", "is", "an", "effective", "form", "of", "back", "-", "pressure", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fuzzy/transport.go#L302-L312", "partition": "test"} +{"repo": "hashicorp/raft", "path": "peersjson.go", "func_name": "ReadPeersJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadPeersJSON consumes a legacy peers.json file in the format of the old JSON\n// peer store and creates a new-style configuration structure. This can be used\n// to migrate this data or perform manual recovery when running protocol versions\n// that can interoperate with older, unversioned Raft servers. This should not be\n// used once server IDs are in use, because the old peers.json file didn't have\n// support for these, nor non-voter suffrage types.", "docstring_tokens": ["ReadPeersJSON", "consumes", "a", "legacy", "peers", ".", "json", "file", "in", "the", "format", "of", "the", "old", "JSON", "peer", "store", "and", "creates", "a", "new", "-", "style", "configuration", "structure", ".", "This", "can", "be", "used", "to", "migrate", "this", "data", "or", "perform", "manual", "recovery", "when", "running", "protocol", "versions", "that", "can", "interoperate", "with", "older", "unversioned", "Raft", "servers", ".", "This", "should", "not", "be", "used", "once", "server", "IDs", "are", "in", "use", "because", "the", "old", "peers", ".", "json", "file", "didn", "t", "have", "support", "for", "these", "nor", "non", "-", "voter", "suffrage", "types", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/peersjson.go#L15-L46", "partition": "test"} +{"repo": "hashicorp/raft", "path": "peersjson.go", "func_name": "ReadConfigJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadConfigJSON reads a new-style peers.json and returns a configuration\n// structure. This can be used to perform manual recovery when running protocol\n// versions that use server IDs.", "docstring_tokens": ["ReadConfigJSON", "reads", "a", "new", "-", "style", "peers", ".", "json", "and", "returns", "a", "configuration", "structure", ".", "This", "can", "be", "used", "to", "perform", "manual", "recovery", "when", "running", "protocol", "versions", "that", "use", "server", "IDs", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/peersjson.go#L64-L98", "partition": "test"} +{"repo": "hashicorp/raft", "path": "tcp_transport.go", "func_name": "NewTCPTransport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTCPTransport returns a NetworkTransport that is built on top of\n// a TCP streaming transport layer.", "docstring_tokens": ["NewTCPTransport", "returns", "a", "NetworkTransport", "that", "is", "built", "on", "top", "of", "a", "TCP", "streaming", "transport", "layer", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/tcp_transport.go#L24-L34", "partition": "test"} +{"repo": "hashicorp/raft", "path": "tcp_transport.go", "func_name": "NewTCPTransportWithLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTCPTransportWithLogger returns a NetworkTransport that is built on top of\n// a TCP streaming transport layer, with log output going to the supplied Logger", "docstring_tokens": ["NewTCPTransportWithLogger", "returns", "a", "NetworkTransport", "that", "is", "built", "on", "top", "of", "a", "TCP", "streaming", "transport", "layer", "with", "log", "output", "going", "to", "the", "supplied", "Logger"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/tcp_transport.go#L38-L48", "partition": "test"} +{"repo": "hashicorp/raft", "path": "tcp_transport.go", "func_name": "NewTCPTransportWithConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTCPTransportWithConfig returns a NetworkTransport that is built on top of\n// a TCP streaming transport layer, using the given config struct.", "docstring_tokens": ["NewTCPTransportWithConfig", "returns", "a", "NetworkTransport", "that", "is", "built", "on", "top", "of", "a", "TCP", "streaming", "transport", "layer", "using", "the", "given", "config", "struct", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/tcp_transport.go#L52-L61", "partition": "test"} +{"repo": "hashicorp/raft", "path": "tcp_transport.go", "func_name": "Dial", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dial implements the StreamLayer interface.", "docstring_tokens": ["Dial", "implements", "the", "StreamLayer", "interface", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/tcp_transport.go#L95-L97", "partition": "test"} +{"repo": "hashicorp/raft", "path": "tcp_transport.go", "func_name": "Accept", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Accept implements the net.Listener interface.", "docstring_tokens": ["Accept", "implements", "the", "net", ".", "Listener", "interface", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/tcp_transport.go#L100-L102", "partition": "test"} +{"repo": "hashicorp/raft", "path": "tcp_transport.go", "func_name": "Addr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Addr implements the net.Listener interface.", "docstring_tokens": ["Addr", "implements", "the", "net", ".", "Listener", "interface", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/tcp_transport.go#L110-L116", "partition": "test"} +{"repo": "hashicorp/raft", "path": "api.go", "func_name": "restoreSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// restoreSnapshot attempts to restore the latest snapshots, and fails if none\n// of them can be restored. This is called at initialization time, and is\n// completely unsafe to call at any other time.", "docstring_tokens": ["restoreSnapshot", "attempts", "to", "restore", "the", "latest", "snapshots", "and", "fails", "if", "none", "of", "them", "can", "be", "restored", ".", "This", "is", "called", "at", "initialization", "time", "and", "is", "completely", "unsafe", "to", "call", "at", "any", "other", "time", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/api.go#L519-L572", "partition": "test"} +{"repo": "hashicorp/raft", "path": "api.go", "func_name": "BootstrapCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BootstrapCluster is equivalent to non-member BootstrapCluster but can be\n// called on an un-bootstrapped Raft instance after it has been created. This\n// should only be called at the beginning of time for the cluster, and you\n// absolutely must make sure that you call it with the same configuration on all\n// the Voter servers. There is no need to bootstrap Nonvoter and Staging\n// servers.", "docstring_tokens": ["BootstrapCluster", "is", "equivalent", "to", "non", "-", "member", "BootstrapCluster", "but", "can", "be", "called", "on", "an", "un", "-", "bootstrapped", "Raft", "instance", "after", "it", "has", "been", "created", ".", "This", "should", "only", "be", "called", "at", "the", "beginning", "of", "time", "for", "the", "cluster", "and", "you", "absolutely", "must", "make", "sure", "that", "you", "call", "it", "with", "the", "same", "configuration", "on", "all", "the", "Voter", "servers", ".", "There", "is", "no", "need", "to", "bootstrap", "Nonvoter", "and", "Staging", "servers", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/api.go#L580-L590", "partition": "test"} +{"repo": "hashicorp/raft", "path": "api.go", "func_name": "Leader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Leader is used to return the current leader of the cluster.\n// It may return empty string if there is no current leader\n// or the leader is unknown.", "docstring_tokens": ["Leader", "is", "used", "to", "return", "the", "current", "leader", "of", "the", "cluster", ".", "It", "may", "return", "empty", "string", "if", "there", "is", "no", "current", "leader", "or", "the", "leader", "is", "unknown", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/api.go#L595-L600", "partition": "test"} +{"repo": "hashicorp/raft", "path": "api.go", "func_name": "Apply", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Apply is used to apply a command to the FSM in a highly consistent\n// manner. This returns a future that can be used to wait on the application.\n// An optional timeout can be provided to limit the amount of time we wait\n// for the command to be started. This must be run on the leader or it\n// will fail.", "docstring_tokens": ["Apply", "is", "used", "to", "apply", "a", "command", "to", "the", "FSM", "in", "a", "highly", "consistent", "manner", ".", "This", "returns", "a", "future", "that", "can", "be", "used", "to", "wait", "on", "the", "application", ".", "An", "optional", "timeout", "can", "be", "provided", "to", "limit", "the", "amount", "of", "time", "we", "wait", "for", "the", "command", "to", "be", "started", ".", "This", "must", "be", "run", "on", "the", "leader", "or", "it", "will", "fail", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/api.go#L607-L631", "partition": "test"} +{"repo": "hashicorp/raft", "path": "api.go", "func_name": "Barrier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Barrier is used to issue a command that blocks until all preceeding\n// operations have been applied to the FSM. It can be used to ensure the\n// FSM reflects all queued writes. An optional timeout can be provided to\n// limit the amount of time we wait for the command to be started. This\n// must be run on the leader or it will fail.", "docstring_tokens": ["Barrier", "is", "used", "to", "issue", "a", "command", "that", "blocks", "until", "all", "preceeding", "operations", "have", "been", "applied", "to", "the", "FSM", ".", "It", "can", "be", "used", "to", "ensure", "the", "FSM", "reflects", "all", "queued", "writes", ".", "An", "optional", "timeout", "can", "be", "provided", "to", "limit", "the", "amount", "of", "time", "we", "wait", "for", "the", "command", "to", "be", "started", ".", "This", "must", "be", "run", "on", "the", "leader", "or", "it", "will", "fail", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/api.go#L638-L661", "partition": "test"} +{"repo": "hashicorp/raft", "path": "api.go", "func_name": "VerifyLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifyLeader is used to ensure the current node is still\n// the leader. This can be done to prevent stale reads when a\n// new leader has potentially been elected.", "docstring_tokens": ["VerifyLeader", "is", "used", "to", "ensure", "the", "current", "node", "is", "still", "the", "leader", ".", "This", "can", "be", "done", "to", "prevent", "stale", "reads", "when", "a", "new", "leader", "has", "potentially", "been", "elected", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/api.go#L666-L676", "partition": "test"} +{"repo": "hashicorp/raft", "path": "api.go", "func_name": "AddVoter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddVoter will add the given server to the cluster as a staging server. If the\n// server is already in the cluster as a voter, this updates the server's address.\n// This must be run on the leader or it will fail. The leader will promote the\n// staging server to a voter once that server is ready. If nonzero, prevIndex is\n// the index of the only configuration upon which this change may be applied; if\n// another configuration entry has been added in the meantime, this request will\n// fail. If nonzero, timeout is how long this server should wait before the\n// configuration change log entry is appended.", "docstring_tokens": ["AddVoter", "will", "add", "the", "given", "server", "to", "the", "cluster", "as", "a", "staging", "server", ".", "If", "the", "server", "is", "already", "in", "the", "cluster", "as", "a", "voter", "this", "updates", "the", "server", "s", "address", ".", "This", "must", "be", "run", "on", "the", "leader", "or", "it", "will", "fail", ".", "The", "leader", "will", "promote", "the", "staging", "server", "to", "a", "voter", "once", "that", "server", "is", "ready", ".", "If", "nonzero", "prevIndex", "is", "the", "index", "of", "the", "only", "configuration", "upon", "which", "this", "change", "may", "be", "applied", ";", "if", "another", "configuration", "entry", "has", "been", "added", "in", "the", "meantime", "this", "request", "will", "fail", ".", "If", "nonzero", "timeout", "is", "how", "long", "this", "server", "should", "wait", "before", "the", "configuration", "change", "log", "entry", "is", "appended", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/api.go#L732-L743", "partition": "test"} +{"repo": "hashicorp/raft", "path": "api.go", "func_name": "RemoveServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveServer will remove the given server from the cluster. If the current\n// leader is being removed, it will cause a new election to occur. This must be\n// run on the leader or it will fail. For prevIndex and timeout, see AddVoter.", "docstring_tokens": ["RemoveServer", "will", "remove", "the", "given", "server", "from", "the", "cluster", ".", "If", "the", "current", "leader", "is", "being", "removed", "it", "will", "cause", "a", "new", "election", "to", "occur", ".", "This", "must", "be", "run", "on", "the", "leader", "or", "it", "will", "fail", ".", "For", "prevIndex", "and", "timeout", "see", "AddVoter", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/api.go#L766-L776", "partition": "test"} +{"repo": "hashicorp/raft", "path": "api.go", "func_name": "Shutdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Shutdown is used to stop the Raft background routines.\n// This is not a graceful operation. Provides a future that\n// can be used to block until all background routines have exited.", "docstring_tokens": ["Shutdown", "is", "used", "to", "stop", "the", "Raft", "background", "routines", ".", "This", "is", "not", "a", "graceful", "operation", ".", "Provides", "a", "future", "that", "can", "be", "used", "to", "block", "until", "all", "background", "routines", "have", "exited", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/api.go#L798-L811", "partition": "test"} +{"repo": "hashicorp/raft", "path": "api.go", "func_name": "Snapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Snapshot is used to manually force Raft to take a snapshot. Returns a future\n// that can be used to block until complete, and that contains a function that\n// can be used to open the snapshot.", "docstring_tokens": ["Snapshot", "is", "used", "to", "manually", "force", "Raft", "to", "take", "a", "snapshot", ".", "Returns", "a", "future", "that", "can", "be", "used", "to", "block", "until", "complete", "and", "that", "contains", "a", "function", "that", "can", "be", "used", "to", "open", "the", "snapshot", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/api.go#L816-L826", "partition": "test"} +{"repo": "hashicorp/raft", "path": "api.go", "func_name": "Restore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Restore is used to manually force Raft to consume an external snapshot, such\n// as if restoring from a backup. We will use the current Raft configuration,\n// not the one from the snapshot, so that we can restore into a new cluster. We\n// will also use the higher of the index of the snapshot, or the current index,\n// and then add 1 to that, so we force a new state with a hole in the Raft log,\n// so that the snapshot will be sent to followers and used for any new joiners.\n// This can only be run on the leader, and blocks until the restore is complete\n// or an error occurs.\n//\n// WARNING! This operation has the leader take on the state of the snapshot and\n// then sets itself up so that it replicates that to its followers though the\n// install snapshot process. This involves a potentially dangerous period where\n// the leader commits ahead of its followers, so should only be used for disaster\n// recovery into a fresh cluster, and should not be used in normal operations.", "docstring_tokens": ["Restore", "is", "used", "to", "manually", "force", "Raft", "to", "consume", "an", "external", "snapshot", "such", "as", "if", "restoring", "from", "a", "backup", ".", "We", "will", "use", "the", "current", "Raft", "configuration", "not", "the", "one", "from", "the", "snapshot", "so", "that", "we", "can", "restore", "into", "a", "new", "cluster", ".", "We", "will", "also", "use", "the", "higher", "of", "the", "index", "of", "the", "snapshot", "or", "the", "current", "index", "and", "then", "add", "1", "to", "that", "so", "we", "force", "a", "new", "state", "with", "a", "hole", "in", "the", "Raft", "log", "so", "that", "the", "snapshot", "will", "be", "sent", "to", "followers", "and", "used", "for", "any", "new", "joiners", ".", "This", "can", "only", "be", "run", "on", "the", "leader", "and", "blocks", "until", "the", "restore", "is", "complete", "or", "an", "error", "occurs", ".", "WARNING!", "This", "operation", "has", "the", "leader", "take", "on", "the", "state", "of", "the", "snapshot", "and", "then", "sets", "itself", "up", "so", "that", "it", "replicates", "that", "to", "its", "followers", "though", "the", "install", "snapshot", "process", ".", "This", "involves", "a", "potentially", "dangerous", "period", "where", "the", "leader", "commits", "ahead", "of", "its", "followers", "so", "should", "only", "be", "used", "for", "disaster", "recovery", "into", "a", "fresh", "cluster", "and", "should", "not", "be", "used", "in", "normal", "operations", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/api.go#L842-L885", "partition": "test"} +{"repo": "hashicorp/raft", "path": "api.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a string representation of this Raft node.", "docstring_tokens": ["String", "returns", "a", "string", "representation", "of", "this", "Raft", "node", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/api.go#L901-L903", "partition": "test"} +{"repo": "hashicorp/raft", "path": "api.go", "func_name": "LastContact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LastContact returns the time of last contact by a leader.\n// This only makes sense if we are currently a follower.", "docstring_tokens": ["LastContact", "returns", "the", "time", "of", "last", "contact", "by", "a", "leader", ".", "This", "only", "makes", "sense", "if", "we", "are", "currently", "a", "follower", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/api.go#L907-L912", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fuzzy/cluster.go", "func_name": "Logf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Logf will record a formatted message to the contained debug log", "docstring_tokens": ["Logf", "will", "record", "a", "formatted", "message", "to", "the", "contained", "debug", "log"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fuzzy/cluster.go#L50-L52", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fuzzy/cluster.go", "func_name": "containsNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// containsNode returns true if the slice 'nodes' contains 'n'", "docstring_tokens": ["containsNode", "returns", "true", "if", "the", "slice", "nodes", "contains", "n"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fuzzy/cluster.go#L133-L140", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fuzzy/cluster.go", "func_name": "LeaderPlus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LeaderPlus returns the leader + n additional nodes from the cluster\n// the leader is always the first node in the returned slice.", "docstring_tokens": ["LeaderPlus", "returns", "the", "leader", "+", "n", "additional", "nodes", "from", "the", "cluster", "the", "leader", "is", "always", "the", "first", "node", "in", "the", "returned", "slice", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fuzzy/cluster.go#L144-L162", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fuzzy/cluster.go", "func_name": "WaitTilUptoDate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitTilUptoDate blocks until all nodes in the cluster have gotten their\n// commitedIndex upto the Index from the last successful call to Apply", "docstring_tokens": ["WaitTilUptoDate", "blocks", "until", "all", "nodes", "in", "the", "cluster", "have", "gotten", "their", "commitedIndex", "upto", "the", "Index", "from", "the", "last", "successful", "call", "to", "Apply"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fuzzy/cluster.go#L173-L198", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fuzzy/cluster.go", "func_name": "assertLogEntryEqual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// assertLogEntryEqual compares the 2 raft Log entries and reports any differences to the supplied testing.T instance\n// it return true if the 2 entries are equal, false otherwise.", "docstring_tokens": ["assertLogEntryEqual", "compares", "the", "2", "raft", "Log", "entries", "and", "reports", "any", "differences", "to", "the", "supplied", "testing", ".", "T", "instance", "it", "return", "true", "if", "the", "2", "entries", "are", "equal", "false", "otherwise", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fuzzy/cluster.go#L369-L388", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fsm.go", "func_name": "runFSM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// runFSM is a long running goroutine responsible for applying logs\n// to the FSM. This is done async of other logs since we don't want\n// the FSM to block our internal operations.", "docstring_tokens": ["runFSM", "is", "a", "long", "running", "goroutine", "responsible", "for", "applying", "logs", "to", "the", "FSM", ".", "This", "is", "done", "async", "of", "other", "logs", "since", "we", "don", "t", "want", "the", "FSM", "to", "block", "our", "internal", "operations", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fsm.go#L49-L136", "partition": "test"} +{"repo": "hashicorp/raft", "path": "configuration.go", "func_name": "Clone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clone makes a deep copy of a Configuration.", "docstring_tokens": ["Clone", "makes", "a", "deep", "copy", "of", "a", "Configuration", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/configuration.go#L60-L63", "partition": "test"} +{"repo": "hashicorp/raft", "path": "configuration.go", "func_name": "Clone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clone makes a deep copy of a configurations object.", "docstring_tokens": ["Clone", "makes", "a", "deep", "copy", "of", "a", "configurations", "object", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/configuration.go#L137-L143", "partition": "test"} +{"repo": "hashicorp/raft", "path": "configuration.go", "func_name": "hasVote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hasVote returns true if the server identified by 'id' is a Voter in the\n// provided Configuration.", "docstring_tokens": ["hasVote", "returns", "true", "if", "the", "server", "identified", "by", "id", "is", "a", "Voter", "in", "the", "provided", "Configuration", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/configuration.go#L147-L154", "partition": "test"} +{"repo": "hashicorp/raft", "path": "configuration.go", "func_name": "checkConfiguration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkConfiguration tests a cluster membership configuration for common\n// errors.", "docstring_tokens": ["checkConfiguration", "tests", "a", "cluster", "membership", "configuration", "for", "common", "errors", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/configuration.go#L158-L185", "partition": "test"} +{"repo": "hashicorp/raft", "path": "configuration.go", "func_name": "nextConfiguration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// nextConfiguration generates a new Configuration from the current one and a\n// configuration change request. It's split from appendConfigurationEntry so\n// that it can be unit tested easily.", "docstring_tokens": ["nextConfiguration", "generates", "a", "new", "Configuration", "from", "the", "current", "one", "and", "a", "configuration", "change", "request", ".", "It", "s", "split", "from", "appendConfigurationEntry", "so", "that", "it", "can", "be", "unit", "tested", "easily", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/configuration.go#L190-L275", "partition": "test"} +{"repo": "hashicorp/raft", "path": "configuration.go", "func_name": "encodePeers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// encodePeers is used to serialize a Configuration into the old peers format.\n// This is here for backwards compatibility when operating with a mix of old\n// servers and should be removed once we deprecate support for protocol version 1.", "docstring_tokens": ["encodePeers", "is", "used", "to", "serialize", "a", "Configuration", "into", "the", "old", "peers", "format", ".", "This", "is", "here", "for", "backwards", "compatibility", "when", "operating", "with", "a", "mix", "of", "old", "servers", "and", "should", "be", "removed", "once", "we", "deprecate", "support", "for", "protocol", "version", "1", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/configuration.go#L280-L297", "partition": "test"} +{"repo": "hashicorp/raft", "path": "configuration.go", "func_name": "decodePeers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// decodePeers is used to deserialize an old list of peers into a Configuration.\n// This is here for backwards compatibility with old log entries and snapshots;\n// it should be removed eventually.", "docstring_tokens": ["decodePeers", "is", "used", "to", "deserialize", "an", "old", "list", "of", "peers", "into", "a", "Configuration", ".", "This", "is", "here", "for", "backwards", "compatibility", "with", "old", "log", "entries", "and", "snapshots", ";", "it", "should", "be", "removed", "eventually", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/configuration.go#L302-L323", "partition": "test"} +{"repo": "hashicorp/raft", "path": "configuration.go", "func_name": "encodeConfiguration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// encodeConfiguration serializes a Configuration using MsgPack, or panics on\n// errors.", "docstring_tokens": ["encodeConfiguration", "serializes", "a", "Configuration", "using", "MsgPack", "or", "panics", "on", "errors", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/configuration.go#L327-L333", "partition": "test"} +{"repo": "hashicorp/raft", "path": "configuration.go", "func_name": "decodeConfiguration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// decodeConfiguration deserializes a Configuration using MsgPack, or panics on\n// errors.", "docstring_tokens": ["decodeConfiguration", "deserializes", "a", "Configuration", "using", "MsgPack", "or", "panics", "on", "errors", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/configuration.go#L337-L343", "partition": "test"} +{"repo": "hashicorp/raft", "path": "state.go", "func_name": "goFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start a goroutine and properly handle the race between a routine\n// starting and incrementing, and exiting and decrementing.", "docstring_tokens": ["Start", "a", "goroutine", "and", "properly", "handle", "the", "race", "between", "a", "routine", "starting", "and", "incrementing", "and", "exiting", "and", "decrementing", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/state.go#L142-L148", "partition": "test"} +{"repo": "hashicorp/raft", "path": "state.go", "func_name": "getLastIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getLastIndex returns the last index in stable storage.\n// Either from the last log or from the last snapshot.", "docstring_tokens": ["getLastIndex", "returns", "the", "last", "index", "in", "stable", "storage", ".", "Either", "from", "the", "last", "log", "or", "from", "the", "last", "snapshot", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/state.go#L156-L160", "partition": "test"} +{"repo": "hashicorp/raft", "path": "state.go", "func_name": "getLastEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getLastEntry returns the last index and term in stable storage.\n// Either from the last log or from the last snapshot.", "docstring_tokens": ["getLastEntry", "returns", "the", "last", "index", "and", "term", "in", "stable", "storage", ".", "Either", "from", "the", "last", "log", "or", "from", "the", "last", "snapshot", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/state.go#L164-L171", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "checkRPCHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkRPCHeader houses logic about whether this instance of Raft can process\n// the given RPC message.", "docstring_tokens": ["checkRPCHeader", "houses", "logic", "about", "whether", "this", "instance", "of", "Raft", "can", "process", "the", "given", "RPC", "message", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L35-L61", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "setLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setLeader is used to modify the current leader of the cluster", "docstring_tokens": ["setLeader", "is", "used", "to", "modify", "the", "current", "leader", "of", "the", "cluster"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L89-L97", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "requestConfigChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// requestConfigChange is a helper for the above functions that make\n// configuration change requests. 'req' describes the change. For timeout,\n// see AddVoter.", "docstring_tokens": ["requestConfigChange", "is", "a", "helper", "for", "the", "above", "functions", "that", "make", "configuration", "change", "requests", ".", "req", "describes", "the", "change", ".", "For", "timeout", "see", "AddVoter", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L102-L119", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// run is a long running goroutine that runs the Raft FSM.", "docstring_tokens": ["run", "is", "a", "long", "running", "goroutine", "that", "runs", "the", "Raft", "FSM", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L122-L143", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "runFollower", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// runFollower runs the FSM for a follower.", "docstring_tokens": ["runFollower", "runs", "the", "FSM", "for", "a", "follower", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L146-L215", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "liveBootstrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// liveBootstrap attempts to seed an initial configuration for the cluster. See\n// the Raft object's member BootstrapCluster for more details. This must only be\n// called on the main thread, and only makes sense in the follower state.", "docstring_tokens": ["liveBootstrap", "attempts", "to", "seed", "an", "initial", "configuration", "for", "the", "cluster", ".", "See", "the", "Raft", "object", "s", "member", "BootstrapCluster", "for", "more", "details", ".", "This", "must", "only", "be", "called", "on", "the", "main", "thread", "and", "only", "makes", "sense", "in", "the", "follower", "state", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L220-L237", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "runCandidate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// runCandidate runs the FSM for a candidate.", "docstring_tokens": ["runCandidate", "runs", "the", "FSM", "for", "a", "candidate", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L240-L315", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "runLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// runLeader runs the FSM for a leader. Do the setup here and drop into\n// the leaderLoop for the hot loop.", "docstring_tokens": ["runLeader", "runs", "the", "FSM", "for", "a", "leader", ".", "Do", "the", "setup", "here", "and", "drop", "into", "the", "leaderLoop", "for", "the", "hot", "loop", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L319-L420", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "startStopReplication", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startStopReplication will set up state and start asynchronous replication to\n// new peers, and stop replication to removed peers. Before removing a peer,\n// it'll instruct the replication routines to try to replicate to the current\n// index. This must only be called from the main thread.", "docstring_tokens": ["startStopReplication", "will", "set", "up", "state", "and", "start", "asynchronous", "replication", "to", "new", "peers", "and", "stop", "replication", "to", "removed", "peers", ".", "Before", "removing", "a", "peer", "it", "ll", "instruct", "the", "replication", "routines", "to", "try", "to", "replicate", "to", "the", "current", "index", ".", "This", "must", "only", "be", "called", "from", "the", "main", "thread", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L426-L467", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "configurationChangeChIfStable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// configurationChangeChIfStable returns r.configurationChangeCh if it's safe\n// to process requests from it, or nil otherwise. This must only be called\n// from the main thread.\n//\n// Note that if the conditions here were to change outside of leaderLoop to take\n// this from nil to non-nil, we would need leaderLoop to be kicked.", "docstring_tokens": ["configurationChangeChIfStable", "returns", "r", ".", "configurationChangeCh", "if", "it", "s", "safe", "to", "process", "requests", "from", "it", "or", "nil", "otherwise", ".", "This", "must", "only", "be", "called", "from", "the", "main", "thread", ".", "Note", "that", "if", "the", "conditions", "here", "were", "to", "change", "outside", "of", "leaderLoop", "to", "take", "this", "from", "nil", "to", "non", "-", "nil", "we", "would", "need", "leaderLoop", "to", "be", "kicked", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L475-L485", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "verifyLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// verifyLeader must be called from the main thread for safety.\n// Causes the followers to attempt an immediate heartbeat.", "docstring_tokens": ["verifyLeader", "must", "be", "called", "from", "the", "main", "thread", "for", "safety", ".", "Causes", "the", "followers", "to", "attempt", "an", "immediate", "heartbeat", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L642-L664", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "checkLeaderLease", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkLeaderLease is used to check if we can contact a quorum of nodes\n// within the last leader lease interval. If not, we need to step down,\n// as we may have lost connectivity. Returns the maximum duration without\n// contact. This must only be called from the main thread.", "docstring_tokens": ["checkLeaderLease", "is", "used", "to", "check", "if", "we", "can", "contact", "a", "quorum", "of", "nodes", "within", "the", "last", "leader", "lease", "interval", ".", "If", "not", "we", "need", "to", "step", "down", "as", "we", "may", "have", "lost", "connectivity", ".", "Returns", "the", "maximum", "duration", "without", "contact", ".", "This", "must", "only", "be", "called", "from", "the", "main", "thread", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L670-L703", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "restoreUserSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// restoreUserSnapshot is used to manually consume an external snapshot, such\n// as if restoring from a backup. We will use the current Raft configuration,\n// not the one from the snapshot, so that we can restore into a new cluster. We\n// will also use the higher of the index of the snapshot, or the current index,\n// and then add 1 to that, so we force a new state with a hole in the Raft log,\n// so that the snapshot will be sent to followers and used for any new joiners.\n// This can only be run on the leader, and returns a future that can be used to\n// block until complete.", "docstring_tokens": ["restoreUserSnapshot", "is", "used", "to", "manually", "consume", "an", "external", "snapshot", "such", "as", "if", "restoring", "from", "a", "backup", ".", "We", "will", "use", "the", "current", "Raft", "configuration", "not", "the", "one", "from", "the", "snapshot", "so", "that", "we", "can", "restore", "into", "a", "new", "cluster", ".", "We", "will", "also", "use", "the", "higher", "of", "the", "index", "of", "the", "snapshot", "or", "the", "current", "index", "and", "then", "add", "1", "to", "that", "so", "we", "force", "a", "new", "state", "with", "a", "hole", "in", "the", "Raft", "log", "so", "that", "the", "snapshot", "will", "be", "sent", "to", "followers", "and", "used", "for", "any", "new", "joiners", ".", "This", "can", "only", "be", "run", "on", "the", "leader", "and", "returns", "a", "future", "that", "can", "be", "used", "to", "block", "until", "complete", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L726-L812", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "appendConfigurationEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// appendConfigurationEntry changes the configuration and adds a new\n// configuration entry to the log. This must only be called from the\n// main thread.", "docstring_tokens": ["appendConfigurationEntry", "changes", "the", "configuration", "and", "adds", "a", "new", "configuration", "entry", "to", "the", "log", ".", "This", "must", "only", "be", "called", "from", "the", "main", "thread", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L817-L852", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "dispatchLogs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dispatchLog is called on the leader to push a log to disk, mark it\n// as inflight and begin replication of it.", "docstring_tokens": ["dispatchLog", "is", "called", "on", "the", "leader", "to", "push", "a", "log", "to", "disk", "mark", "it", "as", "inflight", "and", "begin", "replication", "of", "it", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L856-L894", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "processLogs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processLogs is used to apply all the committed entries that haven't been\n// applied up to the given index limit.\n// This can be called from both leaders and followers.\n// Followers call this from AppendEntries, for n entries at a time, and always\n// pass future=nil.\n// Leaders call this once per inflight when entries are committed. They pass\n// the future from inflights.", "docstring_tokens": ["processLogs", "is", "used", "to", "apply", "all", "the", "committed", "entries", "that", "haven", "t", "been", "applied", "up", "to", "the", "given", "index", "limit", ".", "This", "can", "be", "called", "from", "both", "leaders", "and", "followers", ".", "Followers", "call", "this", "from", "AppendEntries", "for", "n", "entries", "at", "a", "time", "and", "always", "pass", "future", "=", "nil", ".", "Leaders", "call", "this", "once", "per", "inflight", "when", "entries", "are", "committed", ".", "They", "pass", "the", "future", "from", "inflights", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L903-L928", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "processLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processLog is invoked to process the application of a single committed log entry.", "docstring_tokens": ["processLog", "is", "invoked", "to", "process", "the", "application", "of", "a", "single", "committed", "log", "entry", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L931-L965", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "processRPC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processRPC is called to handle an incoming RPC request. This must only be\n// called from the main thread.", "docstring_tokens": ["processRPC", "is", "called", "to", "handle", "an", "incoming", "RPC", "request", ".", "This", "must", "only", "be", "called", "from", "the", "main", "thread", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L969-L986", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "processHeartbeat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processHeartbeat is a special handler used just for heartbeat requests\n// so that they can be fast-pathed if a transport supports it. This must only\n// be called from the main thread.", "docstring_tokens": ["processHeartbeat", "is", "a", "special", "handler", "used", "just", "for", "heartbeat", "requests", "so", "that", "they", "can", "be", "fast", "-", "pathed", "if", "a", "transport", "supports", "it", ".", "This", "must", "only", "be", "called", "from", "the", "main", "thread", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L991-L1009", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "setLastContact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setLastContact is used to set the last contact time to now", "docstring_tokens": ["setLastContact", "is", "used", "to", "set", "the", "last", "contact", "time", "to", "now"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L1380-L1384", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "persistVote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// persistVote is used to persist our vote for safety.", "docstring_tokens": ["persistVote", "is", "used", "to", "persist", "our", "vote", "for", "safety", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L1455-L1463", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "setCurrentTerm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setCurrentTerm is used to set the current term in a durable manner.", "docstring_tokens": ["setCurrentTerm", "is", "used", "to", "set", "the", "current", "term", "in", "a", "durable", "manner", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L1466-L1472", "partition": "test"} +{"repo": "hashicorp/raft", "path": "raft.go", "func_name": "setState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setState is used to update the current state. Any state\n// transition causes the known leader to be cleared. This means\n// that leader should be set only after updating the state.", "docstring_tokens": ["setState", "is", "used", "to", "update", "the", "current", "state", ".", "Any", "state", "transition", "causes", "the", "known", "leader", "to", "be", "cleared", ".", "This", "means", "that", "leader", "should", "be", "set", "only", "after", "updating", "the", "state", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/raft.go#L1477-L1484", "partition": "test"} +{"repo": "hashicorp/raft", "path": "commitment.go", "func_name": "getCommitIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Called by leader after commitCh is notified", "docstring_tokens": ["Called", "by", "leader", "after", "commitCh", "is", "notified"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/commitment.go#L64-L68", "partition": "test"} +{"repo": "hashicorp/raft", "path": "commitment.go", "func_name": "recalculate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Internal helper to calculate new commitIndex from matchIndexes.\n// Must be called with lock held.", "docstring_tokens": ["Internal", "helper", "to", "calculate", "new", "commitIndex", "from", "matchIndexes", ".", "Must", "be", "called", "with", "lock", "held", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/commitment.go#L85-L101", "partition": "test"} +{"repo": "hashicorp/raft", "path": "util.go", "func_name": "randomTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// randomTimeout returns a value that is between the minVal and 2x minVal.", "docstring_tokens": ["randomTimeout", "returns", "a", "value", "that", "is", "between", "the", "minVal", "and", "2x", "minVal", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/util.go#L31-L37", "partition": "test"} +{"repo": "hashicorp/raft", "path": "util.go", "func_name": "generateUUID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// generateUUID is used to generate a random UUID.", "docstring_tokens": ["generateUUID", "is", "used", "to", "generate", "a", "random", "UUID", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/util.go#L56-L68", "partition": "test"} +{"repo": "hashicorp/raft", "path": "util.go", "func_name": "decodeMsgPack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Decode reverses the encode operation on a byte slice input.", "docstring_tokens": ["Decode", "reverses", "the", "encode", "operation", "on", "a", "byte", "slice", "input", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/util.go#L100-L105", "partition": "test"} +{"repo": "hashicorp/raft", "path": "util.go", "func_name": "encodeMsgPack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode writes an encoded object to a new bytes buffer.", "docstring_tokens": ["Encode", "writes", "an", "encoded", "object", "to", "a", "new", "bytes", "buffer", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/util.go#L108-L114", "partition": "test"} +{"repo": "hashicorp/raft", "path": "util.go", "func_name": "backoff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// backoff is used to compute an exponential backoff\n// duration. Base time is scaled by the current round,\n// up to some maximum scale factor.", "docstring_tokens": ["backoff", "is", "used", "to", "compute", "an", "exponential", "backoff", "duration", ".", "Base", "time", "is", "scaled", "by", "the", "current", "round", "up", "to", "some", "maximum", "scale", "factor", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/util.go#L119-L126", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fuzzy/apply_src.go", "func_name": "newApplySource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newApplySource will create a new source, any source created with the same seed will generate the same sequence of data.", "docstring_tokens": ["newApplySource", "will", "create", "a", "new", "source", "any", "source", "created", "with", "the", "same", "seed", "will", "generate", "the", "same", "sequence", "of", "data", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fuzzy/apply_src.go#L16-L22", "partition": "test"} +{"repo": "hashicorp/raft", "path": "fuzzy/apply_src.go", "func_name": "reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// reset this source back to its initial state, it'll generate the same sequence of data it initially did", "docstring_tokens": ["reset", "this", "source", "back", "to", "its", "initial", "state", "it", "ll", "generate", "the", "same", "sequence", "of", "data", "it", "initially", "did"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/fuzzy/apply_src.go#L25-L27", "partition": "test"} +{"repo": "hashicorp/raft", "path": "config.go", "func_name": "DefaultConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultConfig returns a Config with usable defaults.", "docstring_tokens": ["DefaultConfig", "returns", "a", "Config", "with", "usable", "defaults", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/config.go#L205-L219", "partition": "test"} +{"repo": "hashicorp/raft", "path": "config.go", "func_name": "ValidateConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateConfig is used to validate a sane configuration", "docstring_tokens": ["ValidateConfig", "is", "used", "to", "validate", "a", "sane", "configuration"], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/config.go#L222-L265", "partition": "test"} +{"repo": "hashicorp/raft", "path": "snapshot.go", "func_name": "runSnapshots", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// runSnapshots is a long running goroutine used to manage taking\n// new snapshots of the FSM. It runs in parallel to the FSM and\n// main goroutines, so that snapshots do not block normal operation.", "docstring_tokens": ["runSnapshots", "is", "a", "long", "running", "goroutine", "used", "to", "manage", "taking", "new", "snapshots", "of", "the", "FSM", ".", "It", "runs", "in", "parallel", "to", "the", "FSM", "and", "main", "goroutines", "so", "that", "snapshots", "do", "not", "block", "normal", "operation", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/snapshot.go#L69-L99", "partition": "test"} +{"repo": "hashicorp/raft", "path": "snapshot.go", "func_name": "shouldSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shouldSnapshot checks if we meet the conditions to take\n// a new snapshot.", "docstring_tokens": ["shouldSnapshot", "checks", "if", "we", "meet", "the", "conditions", "to", "take", "a", "new", "snapshot", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/snapshot.go#L103-L117", "partition": "test"} +{"repo": "hashicorp/raft", "path": "snapshot.go", "func_name": "takeSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// takeSnapshot is used to take a new snapshot. This must only be called from\n// the snapshot thread, never the main thread. This returns the ID of the new\n// snapshot, along with an error.", "docstring_tokens": ["takeSnapshot", "is", "used", "to", "take", "a", "new", "snapshot", ".", "This", "must", "only", "be", "called", "from", "the", "snapshot", "thread", "never", "the", "main", "thread", ".", "This", "returns", "the", "ID", "of", "the", "new", "snapshot", "along", "with", "an", "error", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/snapshot.go#L122-L207", "partition": "test"} +{"repo": "hashicorp/raft", "path": "snapshot.go", "func_name": "compactLogs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// compactLogs takes the last inclusive index of a snapshot\n// and trims the logs that are no longer needed.", "docstring_tokens": ["compactLogs", "takes", "the", "last", "inclusive", "index", "of", "a", "snapshot", "and", "trims", "the", "logs", "that", "are", "no", "longer", "needed", "."], "sha": "773bcaa2009bf059c5c06457b9fccd156d5e91e7", "url": "https://github.com/hashicorp/raft/blob/773bcaa2009bf059c5c06457b9fccd156d5e91e7/snapshot.go#L211-L239", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "buffalo/cmd/fix/webpack.go", "func_name": "WebpackCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WebpackCheck will compare the current default Buffalo\n// webpack.config.js against the applications webpack.config.js. If they are\n// different you have the option to overwrite the existing webpack.config.js\n// file with the new one.", "docstring_tokens": ["WebpackCheck", "will", "compare", "the", "current", "default", "Buffalo", "webpack", ".", "config", ".", "js", "against", "the", "applications", "webpack", ".", "config", ".", "js", ".", "If", "they", "are", "different", "you", "have", "the", "option", "to", "overwrite", "the", "existing", "webpack", ".", "config", ".", "js", "file", "with", "the", "new", "one", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/buffalo/cmd/fix/webpack.go#L17-L69", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/vcs/vcs.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New generator for adding VCS to an application", "docstring_tokens": ["New", "generator", "for", "adding", "VCS", "to", "an", "application"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/vcs/vcs.go#L12-L42", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "servers/listener.go", "func_name": "UnixSocket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnixSocket returns a new Listener on that address", "docstring_tokens": ["UnixSocket", "returns", "a", "new", "Listener", "on", "that", "address"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/servers/listener.go#L29-L38", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "errors.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get a registered ErrorHandler for this status code. If\n// no ErrorHandler has been registered, a default one will\n// be returned.", "docstring_tokens": ["Get", "a", "registered", "ErrorHandler", "for", "this", "status", "code", ".", "If", "no", "ErrorHandler", "has", "been", "registered", "a", "default", "one", "will", "be", "returned", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/errors.go#L48-L56", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "errors.go", "func_name": "PanicHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PanicHandler recovers from panics gracefully and calls\n// the error handling code for a 500 error.", "docstring_tokens": ["PanicHandler", "recovers", "from", "panics", "gracefully", "and", "calls", "the", "error", "handling", "code", "for", "a", "500", "error", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/errors.go#L70-L97", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "render/template.go", "func_name": "partialFeeder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// partialFeeder returns template string for the name from `TemplateBox`.\n// It should be registered as helper named `partialFeeder` so plush can\n// find it with the name.", "docstring_tokens": ["partialFeeder", "returns", "template", "string", "for", "the", "name", "from", "TemplateBox", ".", "It", "should", "be", "registered", "as", "helper", "named", "partialFeeder", "so", "plush", "can", "find", "it", "with", "the", "name", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/render/template.go#L56-L64", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "render/render.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New render.Engine ready to go with your Options\n// and some defaults we think you might like.", "docstring_tokens": ["New", "render", ".", "Engine", "ready", "to", "go", "with", "your", "Options", "and", "some", "defaults", "we", "think", "you", "might", "like", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/render/render.go#L17-L52", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/writeto.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo implements io.WriterTo. It dumps the whole message into w.", "docstring_tokens": ["WriteTo", "implements", "io", ".", "WriterTo", ".", "It", "dumps", "the", "whole", "message", "into", "w", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/writeto.go#L15-L19", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/smtp_sender.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Send a message using SMTP configuration or returns an error if something goes wrong.", "docstring_tokens": ["Send", "a", "message", "using", "SMTP", "configuration", "or", "returns", "an", "error", "if", "something", "goes", "wrong", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/smtp_sender.go#L18-L41", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/smtp_sender.go", "func_name": "NewSMTPSender", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewSMTPSender builds a SMTP mail based in passed config.", "docstring_tokens": ["NewSMTPSender", "builds", "a", "SMTP", "mail", "based", "in", "passed", "config", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/smtp_sender.go#L76-L96", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "default_context.go", "func_name": "Param", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Param returns a param, either named or query string,\n// based on the key.", "docstring_tokens": ["Param", "returns", "a", "param", "either", "named", "or", "query", "string", "based", "on", "the", "key", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/default_context.go#L64-L66", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "default_context.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set a value onto the Context. Any value set onto the Context\n// will be automatically available in templates.", "docstring_tokens": ["Set", "a", "value", "onto", "the", "Context", ".", "Any", "value", "set", "onto", "the", "Context", "will", "be", "automatically", "available", "in", "templates", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/default_context.go#L70-L74", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "default_context.go", "func_name": "Value", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Value that has previously stored on the context.", "docstring_tokens": ["Value", "that", "has", "previously", "stored", "on", "the", "context", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/default_context.go#L77-L86", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "default_context.go", "func_name": "Redirect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Redirect a request with the given status to the given URL.", "docstring_tokens": ["Redirect", "a", "request", "with", "the", "given", "status", "to", "the", "given", "URL", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/default_context.go#L189-L221", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "default_context.go", "func_name": "File", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// File returns an uploaded file by name, or an error", "docstring_tokens": ["File", "returns", "an", "uploaded", "file", "by", "name", "or", "an", "error"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/default_context.go#L248-L262", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "default_context.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON implements json marshaling for the context", "docstring_tokens": ["MarshalJSON", "implements", "json", "marshaling", "for", "the", "context"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/default_context.go#L265-L279", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/newapp/api/api.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New generator for creating a Buffalo API application", "docstring_tokens": ["New", "generator", "for", "creating", "a", "Buffalo", "API", "application"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/newapp/api/api.go#L13-L37", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "app.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new instance of App and adds some sane, and useful, defaults.", "docstring_tokens": ["New", "returns", "a", "new", "instance", "of", "App", "and", "adds", "some", "sane", "and", "useful", "defaults", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/app.go#L35-L74", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "buffalo/cmd/fix/deprecations.go", "func_name": "DeprecrationsCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeprecrationsCheck will either log, or fix, deprecated items in the application", "docstring_tokens": ["DeprecrationsCheck", "will", "either", "log", "or", "fix", "deprecated", "items", "in", "the", "application"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/buffalo/cmd/fix/deprecations.go#L12-L58", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "resource.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List default implementation. Returns a 404", "docstring_tokens": ["List", "default", "implementation", ".", "Returns", "a", "404"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/resource.go#L51-L53", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "render/func.go", "func_name": "Render", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Render the provided Data to the provider Writer using the\n// RendererFunc provide.", "docstring_tokens": ["Render", "the", "provided", "Data", "to", "the", "provider", "Writer", "using", "the", "RendererFunc", "provide", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/render/func.go#L22-L24", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "session.go", "func_name": "Save", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Save the current session.", "docstring_tokens": ["Save", "the", "current", "session", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/session.go#L18-L20", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "session.go", "func_name": "GetOnce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOnce gets a value from the current session and then deletes it.", "docstring_tokens": ["GetOnce", "gets", "a", "value", "from", "the", "current", "session", "and", "then", "deletes", "it", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/session.go#L28-L34", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "session.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set a value onto the current session. If a value with that name\n// already exists it will be overridden with the new value.", "docstring_tokens": ["Set", "a", "value", "onto", "the", "current", "session", ".", "If", "a", "value", "with", "that", "name", "already", "exists", "it", "will", "be", "overridden", "with", "the", "new", "value", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/session.go#L38-L40", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "session.go", "func_name": "Clear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clear the current session", "docstring_tokens": ["Clear", "the", "current", "session"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/session.go#L48-L52", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "session.go", "func_name": "getSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get a session using a request and response.", "docstring_tokens": ["Get", "a", "session", "using", "a", "request", "and", "response", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/session.go#L55-L65", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/grift/grift.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New generator to create a grift task", "docstring_tokens": ["New", "generator", "to", "create", "a", "grift", "task"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/grift/grift.go#L12-L29", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/assets/webpack/webpack.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New generator for creating webpack asset files", "docstring_tokens": ["New", "generator", "for", "creating", "webpack", "asset", "files"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/assets/webpack/webpack.go#L29-L57", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/refresh/refresh.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New generator to generate refresh templates", "docstring_tokens": ["New", "generator", "to", "generate", "refresh", "templates"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/refresh/refresh.go#L11-L23", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "NewMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMessage creates a new message. It uses UTF-8 and quoted-printable encoding\n// by default.", "docstring_tokens": ["NewMessage", "creates", "a", "new", "message", ".", "It", "uses", "UTF", "-", "8", "and", "quoted", "-", "printable", "encoding", "by", "default", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L34-L50", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset resets the message so it can be reused. The message keeps its previous\n// settings so it is in the same state that after a call to NewMessage.", "docstring_tokens": ["Reset", "resets", "the", "message", "so", "it", "can", "be", "reused", ".", "The", "message", "keeps", "its", "previous", "settings", "so", "it", "is", "in", "the", "same", "state", "that", "after", "a", "call", "to", "NewMessage", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L54-L61", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "SetHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHeader sets a value to the given header field.", "docstring_tokens": ["SetHeader", "sets", "a", "value", "to", "the", "given", "header", "field", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L107-L110", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "SetHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHeaders sets the message headers.", "docstring_tokens": ["SetHeaders", "sets", "the", "message", "headers", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L123-L127", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "SetAddressHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAddressHeader sets an address to the given header field.", "docstring_tokens": ["SetAddressHeader", "sets", "an", "address", "to", "the", "given", "header", "field", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L130-L132", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "FormatAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatAddress formats an address and a name as a valid RFC 5322 address.", "docstring_tokens": ["FormatAddress", "formats", "an", "address", "and", "a", "name", "as", "a", "valid", "RFC", "5322", "address", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L135-L163", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "SetDateHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDateHeader sets a date to the given header field.", "docstring_tokens": ["SetDateHeader", "sets", "a", "date", "to", "the", "given", "header", "field", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L177-L179", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "FormatDate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatDate formats a date as a valid RFC 5322 date.", "docstring_tokens": ["FormatDate", "formats", "a", "date", "as", "a", "valid", "RFC", "5322", "date", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L182-L184", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "SetBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBody sets the body of the message. It replaces any content previously set\n// by SetBody, SetBodyWriter, AddAlternative or AddAlternativeWriter.", "docstring_tokens": ["SetBody", "sets", "the", "body", "of", "the", "message", ".", "It", "replaces", "any", "content", "previously", "set", "by", "SetBody", "SetBodyWriter", "AddAlternative", "or", "AddAlternativeWriter", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L193-L195", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "SetPartEncoding", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPartEncoding sets the encoding of the part added to the message. By\n// default, parts use the same encoding than the message.", "docstring_tokens": ["SetPartEncoding", "sets", "the", "encoding", "of", "the", "part", "added", "to", "the", "message", ".", "By", "default", "parts", "use", "the", "same", "encoding", "than", "the", "message", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L247-L251", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "SetHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHeader is a file setting to set the MIME header of the message part that\n// contains the file content.\n//\n// Mandatory headers are automatically added if they are not set when sending\n// the email.", "docstring_tokens": ["SetHeader", "is", "a", "file", "setting", "to", "set", "the", "MIME", "header", "of", "the", "message", "part", "that", "contains", "the", "file", "content", ".", "Mandatory", "headers", "are", "automatically", "added", "if", "they", "are", "not", "set", "when", "sending", "the", "email", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L271-L277", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "SetCopyFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetCopyFunc is a file setting to replace the function that runs when the\n// message is sent. It should copy the content of the file to the io.Writer.\n//\n// The default copy function opens the file with the given filename, and copy\n// its content to the io.Writer.", "docstring_tokens": ["SetCopyFunc", "is", "a", "file", "setting", "to", "replace", "the", "function", "that", "runs", "when", "the", "message", "is", "sent", ".", "It", "should", "copy", "the", "content", "of", "the", "file", "to", "the", "io", ".", "Writer", ".", "The", "default", "copy", "function", "opens", "the", "file", "with", "the", "given", "filename", "and", "copy", "its", "content", "to", "the", "io", ".", "Writer", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L292-L296", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "AttachReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AttachReader attaches a file using an io.Reader", "docstring_tokens": ["AttachReader", "attaches", "a", "file", "using", "an", "io", ".", "Reader"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L299-L301", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "Attach", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Attach attaches the files to the email.", "docstring_tokens": ["Attach", "attaches", "the", "files", "to", "the", "email", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L304-L306", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "EmbedReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EmbedReader embeds the images to the email.", "docstring_tokens": ["EmbedReader", "embeds", "the", "images", "to", "the", "email", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L309-L311", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/message.go", "func_name": "Embed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Embed embeds the images to the email.", "docstring_tokens": ["Embed", "embeds", "the", "images", "to", "the", "email", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/message.go#L314-L316", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/build/validate.go", "func_name": "ValidateTemplates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateTemplates returns a genny.RunFn that will walk the\n// given box and run each of the files found through each of the\n// template validators", "docstring_tokens": ["ValidateTemplates", "returns", "a", "genny", ".", "RunFn", "that", "will", "walk", "the", "given", "box", "and", "run", "each", "of", "the", "files", "found", "through", "each", "of", "the", "template", "validators"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/build/validate.go#L24-L63", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/build/validate.go", "func_name": "PlushValidator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PlushValidator validates the file is a valid\n// Plush file if the extension is .md, .html, or .plush", "docstring_tokens": ["PlushValidator", "validates", "the", "file", "is", "a", "valid", "Plush", "file", "if", "the", "extension", "is", ".", "md", ".", "html", "or", ".", "plush"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/build/validate.go#L67-L73", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/mail/options.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate options are useful", "docstring_tokens": ["Validate", "options", "are", "useful"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/mail/options.go#L18-L27", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "plugins.go", "func_name": "LoadPlugins", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadPlugins will add listeners for any plugins that support \"events\"", "docstring_tokens": ["LoadPlugins", "will", "add", "listeners", "for", "any", "plugins", "that", "support", "events"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/plugins.go#L18-L68", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "response.go", "func_name": "WriteHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteHeader sets the status code for a response", "docstring_tokens": ["WriteHeader", "sets", "the", "status", "code", "for", "a", "response"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/response.go#L22-L25", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "response.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write the body of the response", "docstring_tokens": ["Write", "the", "body", "of", "the", "response"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/response.go#L28-L31", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "response.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush the response", "docstring_tokens": ["Flush", "the", "response"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/response.go#L42-L46", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "response.go", "func_name": "CloseNotify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloseNotify implements the http.CloseNotifier interface", "docstring_tokens": ["CloseNotify", "implements", "the", "http", ".", "CloseNotifier", "interface"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/response.go#L53-L58", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "buffalo/cmd/fix/runner.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run all compatible checks", "docstring_tokens": ["Run", "all", "compatible", "checks"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/buffalo/cmd/fix/runner.go#L20-L50", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "buffalo/cmd/fix/middleware.go", "func_name": "onlyRelevantFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//onlyRelevantFiles processes only .go files excluding folders like node_modules and vendor.", "docstring_tokens": ["onlyRelevantFiles", "processes", "only", ".", "go", "files", "excluding", "folders", "like", "node_modules", "and", "vendor", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/buffalo/cmd/fix/middleware.go#L137-L161", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "render/template_engine.go", "func_name": "GoTemplateEngine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GoTemplateEngine implements the TemplateEngine interface for using standard Go templates", "docstring_tokens": ["GoTemplateEngine", "implements", "the", "TemplateEngine", "interface", "for", "using", "standard", "Go", "templates"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/render/template_engine.go#L12-L31", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "route_mappings.go", "func_name": "GET", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GET maps an HTTP \"GET\" request to the path and the specified handler.", "docstring_tokens": ["GET", "maps", "an", "HTTP", "GET", "request", "to", "the", "path", "and", "the", "specified", "handler", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/route_mappings.go#L24-L26", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "route_mappings.go", "func_name": "Redirect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Redirect from one URL to another URL. Only works for \"GET\" requests.", "docstring_tokens": ["Redirect", "from", "one", "URL", "to", "another", "URL", ".", "Only", "works", "for", "GET", "requests", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/route_mappings.go#L59-L63", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "route_mappings.go", "func_name": "ANY", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ANY accepts a request across any HTTP method for the specified path\n// and routes it to the specified Handler.", "docstring_tokens": ["ANY", "accepts", "a", "request", "across", "any", "HTTP", "method", "for", "the", "specified", "path", "and", "routes", "it", "to", "the", "specified", "Handler", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/route_mappings.go#L198-L206", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "route_mappings.go", "func_name": "buildRouteName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//buildRouteName builds a route based on the path passed.", "docstring_tokens": ["buildRouteName", "builds", "a", "route", "based", "on", "the", "path", "passed", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/route_mappings.go#L278-L316", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/mail/mail.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New mailer generator. It will init the mailers directory if it doesn't already exist", "docstring_tokens": ["New", "mailer", "generator", ".", "It", "will", "init", "the", "mailers", "directory", "if", "it", "doesn", "t", "already", "exist"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/mail/mail.go#L12-L41", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/smtp.go", "func_name": "NewDialer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDialer returns a new SMTP Dialer. The given parameters are used to connect\n// to the SMTP server.", "docstring_tokens": ["NewDialer", "returns", "a", "new", "SMTP", "Dialer", ".", "The", "given", "parameters", "are", "used", "to", "connect", "to", "the", "SMTP", "server", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/smtp.go#L54-L64", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/smtp.go", "func_name": "Dial", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dial dials and authenticates to an SMTP server. The returned SendCloser\n// should be closed when done using it.", "docstring_tokens": ["Dial", "dials", "and", "authenticates", "to", "an", "SMTP", "server", ".", "The", "returned", "SendCloser", "should", "be", "closed", "when", "done", "using", "it", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/smtp.go#L73-L139", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/smtp.go", "func_name": "DialAndSend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DialAndSend opens a connection to the SMTP server, sends the given emails and\n// closes the connection.", "docstring_tokens": ["DialAndSend", "opens", "a", "connection", "to", "the", "SMTP", "server", "sends", "the", "given", "emails", "and", "closes", "the", "connection", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/smtp.go#L195-L203", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "flash.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Set allows to set a list of values into a particular key.", "docstring_tokens": ["Set", "allows", "to", "set", "a", "list", "of", "values", "into", "a", "particular", "key", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/flash.go#L24-L26", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "flash.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Add adds a flash value for a flash key, if the key already has values the list for that value grows.", "docstring_tokens": ["Add", "adds", "a", "flash", "value", "for", "a", "flash", "key", "if", "the", "key", "already", "has", "values", "the", "list", "for", "that", "value", "grows", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/flash.go#L29-L36", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "flash.go", "func_name": "persist", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Persist the flash inside the session.", "docstring_tokens": ["Persist", "the", "flash", "inside", "the", "session", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/flash.go#L39-L43", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "flash.go", "func_name": "newFlash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//newFlash creates a new Flash and loads the session data inside its data.", "docstring_tokens": ["newFlash", "creates", "a", "new", "Flash", "and", "loads", "the", "session", "data", "inside", "its", "data", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/flash.go#L46-L57", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "cookies.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns the value of the cookie with the given name. Returns http.ErrNoCookie if there's no cookie with that name in the request.", "docstring_tokens": ["Get", "returns", "the", "value", "of", "the", "cookie", "with", "the", "given", "name", ".", "Returns", "http", ".", "ErrNoCookie", "if", "there", "s", "no", "cookie", "with", "that", "name", "in", "the", "request", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/cookies.go#L15-L22", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "cookies.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set a cookie on the response, which will expire after the given duration.", "docstring_tokens": ["Set", "a", "cookie", "on", "the", "response", "which", "will", "expire", "after", "the", "given", "duration", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/cookies.go#L25-L33", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "cookies.go", "func_name": "SetWithExpirationTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetWithExpirationTime sets a cookie that will expire at a specific time.\n// Note that the time is determined by the client's browser, so it might not expire at the expected time,\n// for example if the client has changed the time on their computer.", "docstring_tokens": ["SetWithExpirationTime", "sets", "a", "cookie", "that", "will", "expire", "at", "a", "specific", "time", ".", "Note", "that", "the", "time", "is", "determined", "by", "the", "client", "s", "browser", "so", "it", "might", "not", "expire", "at", "the", "expected", "time", "for", "example", "if", "the", "client", "has", "changed", "the", "time", "on", "their", "computer", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/cookies.go#L38-L46", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "cookies.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete sets a header that tells the browser to remove the cookie with the given name.", "docstring_tokens": ["Delete", "sets", "a", "header", "that", "tells", "the", "browser", "to", "remove", "the", "cookie", "with", "the", "given", "name", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/cookies.go#L63-L73", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/mail.go", "func_name": "NewMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMessage builds a new message.", "docstring_tokens": ["NewMessage", "builds", "a", "new", "message", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/mail.go#L12-L19", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/mail.go", "func_name": "NewFromData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFromData builds a new message with raw template data given", "docstring_tokens": ["NewFromData", "builds", "a", "new", "message", "with", "raw", "template", "data", "given"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/mail.go#L22-L30", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/mail.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New builds a new message with the current buffalo.Context", "docstring_tokens": ["New", "builds", "a", "new", "message", "with", "the", "current", "buffalo", ".", "Context"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/mail.go#L33-L37", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "render/sse.go", "func_name": "CloseNotify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloseNotify return true across the channel when the connection\n// in the browser has been severed.", "docstring_tokens": ["CloseNotify", "return", "true", "across", "the", "channel", "when", "the", "connection", "in", "the", "browser", "has", "been", "severed", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/render/sse.go#L54-L59", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "render/sse.go", "func_name": "NewEventSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEventSource returns a new EventSource instance while ensuring\n// that the http.ResponseWriter is able to handle EventSource messages.\n// It also makes sure to set the proper response heads.", "docstring_tokens": ["NewEventSource", "returns", "a", "new", "EventSource", "instance", "while", "ensuring", "that", "the", "http", ".", "ResponseWriter", "is", "able", "to", "handle", "EventSource", "messages", ".", "It", "also", "makes", "sure", "to", "set", "the", "proper", "response", "heads", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/render/sse.go#L64-L77", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "worker/simple.go", "func_name": "NewSimpleWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSimpleWithContext creates a basic implementation of the Worker interface\n// that is backed using just the standard library and goroutines.", "docstring_tokens": ["NewSimpleWithContext", "creates", "a", "basic", "implementation", "of", "the", "Worker", "interface", "that", "is", "backed", "using", "just", "the", "standard", "library", "and", "goroutines", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/worker/simple.go#L23-L37", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "worker/simple.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register Handler with the worker", "docstring_tokens": ["Register", "Handler", "with", "the", "worker"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/worker/simple.go#L50-L58", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "worker/simple.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start the worker", "docstring_tokens": ["Start", "the", "worker"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/worker/simple.go#L61-L65", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "worker/simple.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop the worker", "docstring_tokens": ["Stop", "the", "worker"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/worker/simple.go#L68-L72", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "worker/simple.go", "func_name": "Perform", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Perform a job as soon as possibly using a goroutine.", "docstring_tokens": ["Perform", "a", "job", "as", "soon", "as", "possibly", "using", "a", "goroutine", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/worker/simple.go#L75-L100", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "worker/simple.go", "func_name": "PerformAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PerformAt performs a job at a particular time using a goroutine.", "docstring_tokens": ["PerformAt", "performs", "a", "job", "at", "a", "particular", "time", "using", "a", "goroutine", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/worker/simple.go#L103-L105", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "worker/simple.go", "func_name": "PerformIn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PerformIn performs a job after waiting for a specified amount\n// using a goroutine.", "docstring_tokens": ["PerformIn", "performs", "a", "job", "after", "waiting", "for", "a", "specified", "amount", "using", "a", "goroutine", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/worker/simple.go#L109-L119", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "route_info.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a JSON representation of the RouteInfo", "docstring_tokens": ["String", "returns", "a", "JSON", "representation", "of", "the", "RouteInfo"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/route_info.go#L33-L36", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "route_info.go", "func_name": "Alias", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Alias path patterns to the this route. This is not the\n// same as a redirect.", "docstring_tokens": ["Alias", "path", "patterns", "to", "the", "this", "route", ".", "This", "is", "not", "the", "same", "as", "a", "redirect", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/route_info.go#L40-L46", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "route_info.go", "func_name": "Name", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Name allows users to set custom names for the routes.", "docstring_tokens": ["Name", "allows", "users", "to", "set", "custom", "names", "for", "the", "routes", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/route_info.go#L49-L70", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "route_info.go", "func_name": "BuildPathHelper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BuildPathHelper Builds a routeHelperfunc for a particular RouteInfo", "docstring_tokens": ["BuildPathHelper", "Builds", "a", "routeHelperfunc", "for", "a", "particular", "RouteInfo"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/route_info.go#L73-L92", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/ci/ci.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New generator for adding travis or gitlab", "docstring_tokens": ["New", "generator", "for", "adding", "travis", "or", "gitlab"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/ci/ci.go#L13-L64", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/actions/actions.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new generator for build actions on a Buffalo app", "docstring_tokens": ["New", "returns", "a", "new", "generator", "for", "build", "actions", "on", "a", "Buffalo", "app"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/actions/actions.go#L16-L25", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "binding/binding.go", "func_name": "RegisterCustomDecoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterCustomDecoder allows to define custom type decoders.", "docstring_tokens": ["RegisterCustomDecoder", "allows", "to", "define", "custom", "type", "decoders", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/binding/binding.go#L59-L62", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "middleware.go", "func_name": "Replace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Replace a piece of middleware with another piece of middleware. Great for\n// testing.", "docstring_tokens": ["Replace", "a", "piece", "of", "middleware", "with", "another", "piece", "of", "middleware", ".", "Great", "for", "testing", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/middleware.go#L90-L101", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "route.go", "func_name": "Routes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Routes returns a list of all of the routes defined\n// in this application.", "docstring_tokens": ["Routes", "returns", "a", "list", "of", "all", "of", "the", "routes", "defined", "in", "this", "application", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/route.go#L15-L20", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "wrappers.go", "func_name": "WrapBuffaloHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WrapBuffaloHandler wraps a buffalo.Handler to\n// standard http.Handler", "docstring_tokens": ["WrapBuffaloHandler", "wraps", "a", "buffalo", ".", "Handler", "to", "standard", "http", ".", "Handler"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/wrappers.go#L22-L29", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "buffalo/cmd/fix/npm.go", "func_name": "PackageJSONCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PackageJSONCheck will compare the current default Buffalo\n// package.json against the applications package.json. If they are\n// different you have the option to overwrite the existing package.json\n// file with the new one.", "docstring_tokens": ["PackageJSONCheck", "will", "compare", "the", "current", "default", "Buffalo", "package", ".", "json", "against", "the", "applications", "package", ".", "json", ".", "If", "they", "are", "different", "you", "have", "the", "option", "to", "overwrite", "the", "existing", "package", ".", "json", "file", "with", "the", "new", "one", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/buffalo/cmd/fix/npm.go#L19-L87", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "buffalo/cmd/fix/imports.go", "func_name": "match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// match takes an import path and replacement map.", "docstring_tokens": ["match", "takes", "an", "import", "path", "and", "replacement", "map", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/buffalo/cmd/fix/imports.go#L151-L162", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/internal/mail/send.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends emails using the given Sender.", "docstring_tokens": ["Send", "sends", "emails", "using", "the", "given", "Sender", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/internal/mail/send.go#L36-L44", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/grift/options.go", "func_name": "Last", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Last checks if the name is the last of the parts", "docstring_tokens": ["Last", "checks", "if", "the", "name", "is", "the", "last", "of", "the", "parts"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/grift/options.go#L20-L22", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "server.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop the application and attempt to gracefully shutdown", "docstring_tokens": ["Stop", "the", "application", "and", "attempt", "to", "gracefully", "shutdown"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/server.go#L101-L108", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "buffalo/cmd/fix/dep.go", "func_name": "DepEnsure", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DepEnsure runs `dep ensure -v` or `go get -u` depending on app tooling\n// to make sure that any newly changed imports are added to dep or installed.", "docstring_tokens": ["DepEnsure", "runs", "dep", "ensure", "-", "v", "or", "go", "get", "-", "u", "depending", "on", "app", "tooling", "to", "make", "sure", "that", "any", "newly", "changed", "imports", "are", "added", "to", "dep", "or", "installed", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/buffalo/cmd/fix/dep.go#L30-L41", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "runtime/build.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String implements fmt.String", "docstring_tokens": ["String", "implements", "fmt", ".", "String"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/runtime/build.go#L16-L18", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/resource/resource.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New resource generator", "docstring_tokens": ["New", "resource", "generator"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/resource/resource.go#L15-L69", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/message.go", "func_name": "AddBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddBody the message by receiving a renderer and rendering data, first message will be\n// used as the main message Body rest of them will be passed as alternative bodies on the\n// email message", "docstring_tokens": ["AddBody", "the", "message", "by", "receiving", "a", "renderer", "and", "rendering", "data", "first", "message", "will", "be", "used", "as", "the", "main", "message", "Body", "rest", "of", "them", "will", "be", "passed", "as", "alternative", "bodies", "on", "the", "email", "message"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/message.go#L44-L58", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/message.go", "func_name": "AddBodies", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddBodies Allows to add multiple bodies to the message, it returns errors that\n// could happen in the rendering.", "docstring_tokens": ["AddBodies", "Allows", "to", "add", "multiple", "bodies", "to", "the", "message", "it", "returns", "errors", "that", "could", "happen", "in", "the", "rendering", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/message.go#L62-L71", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/message.go", "func_name": "AddAttachment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AddAttachment adds the attachment to the list of attachments the Message has.", "docstring_tokens": ["AddAttachment", "adds", "the", "attachment", "to", "the", "list", "of", "attachments", "the", "Message", "has", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/message.go#L74-L83", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/message.go", "func_name": "AddEmbedded", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AddEmbedded adds the attachment to the list of attachments\n// the Message has and uses inline instead of attachement property.", "docstring_tokens": ["AddEmbedded", "adds", "the", "attachment", "to", "the", "list", "of", "attachments", "the", "Message", "has", "and", "uses", "inline", "instead", "of", "attachement", "property", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/message.go#L87-L95", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "mail/message.go", "func_name": "SetHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHeader sets the heder field and value for the message", "docstring_tokens": ["SetHeader", "sets", "the", "heder", "field", "and", "value", "for", "the", "message"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/mail/message.go#L98-L100", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/newapp/web/web.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New generator for creating a Buffalo Web application", "docstring_tokens": ["New", "generator", "for", "creating", "a", "Buffalo", "Web", "application"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/newapp/web/web.go#L15-L58", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/assets/standard/standard.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New generator for creating basic asset files", "docstring_tokens": ["New", "generator", "for", "creating", "basic", "asset", "files"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/assets/standard/standard.go#L13-L33", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/info/info.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a generator that performs buffalo\n// related rx checks", "docstring_tokens": ["New", "returns", "a", "generator", "that", "performs", "buffalo", "related", "rx", "checks"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/info/info.go#L13-L29", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "genny/build/cleanup.go", "func_name": "Cleanup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cleanup all of the generated files", "docstring_tokens": ["Cleanup", "all", "of", "the", "generated", "files"], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/genny/build/cleanup.go#L14-L46", "partition": "test"} +{"repo": "gobuffalo/buffalo", "path": "render/html.go", "func_name": "MDTemplateEngine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MDTemplateEngine runs the input through github flavored markdown before sending it to the Plush engine.", "docstring_tokens": ["MDTemplateEngine", "runs", "the", "input", "through", "github", "flavored", "markdown", "before", "sending", "it", "to", "the", "Plush", "engine", "."], "sha": "7f360181f4ccd79dcc9dcea2c904a4801f194f04", "url": "https://github.com/gobuffalo/buffalo/blob/7f360181f4ccd79dcc9dcea2c904a4801f194f04/render/html.go#L43-L50", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/updateconfig/updateconfig.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates the configmap with the data from the identified files", "docstring_tokens": ["Update", "updates", "the", "configmap", "with", "the", "data", "from", "the", "identified", "files"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/updateconfig/updateconfig.go#L90-L164", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/updateconfig/updateconfig.go", "func_name": "FilterChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FilterChanges determines which of the changes are relevant for config updating, returning mapping of\n// config map to key to filename to update that key from.", "docstring_tokens": ["FilterChanges", "determines", "which", "of", "the", "changes", "are", "relevant", "for", "config", "updating", "returning", "mapping", "of", "config", "map", "to", "key", "to", "filename", "to", "update", "that", "key", "from", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/updateconfig/updateconfig.go#L180-L231", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/label/label.go", "func_name": "getLabelsFromREMatches", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get Labels from Regexp matches", "docstring_tokens": ["Get", "Labels", "from", "Regexp", "matches"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/label/label.go#L87-L95", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/label/label.go", "func_name": "getLabelsFromGenericMatches", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getLabelsFromGenericMatches returns label matches with extra labels if those\n// have been configured in the plugin config.", "docstring_tokens": ["getLabelsFromGenericMatches", "returns", "label", "matches", "with", "extra", "labels", "if", "those", "have", "been", "configured", "in", "the", "plugin", "config", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/label/label.go#L99-L116", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/agent.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start will begin polling the config file at the path. If the first load\n// fails, Start will return the error and abort. Future load failures will log\n// the failure message but continue attempting to load.", "docstring_tokens": ["Start", "will", "begin", "polling", "the", "config", "file", "at", "the", "path", ".", "If", "the", "first", "load", "fails", "Start", "will", "return", "the", "error", "and", "abort", ".", "Future", "load", "failures", "will", "log", "the", "failure", "message", "but", "continue", "attempting", "to", "load", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/agent.go#L46-L100", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/agent.go", "func_name": "Subscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subscribe registers the channel for messages on config reload.\n// The caller can expect a copy of the previous and current config\n// to be sent down the subscribed channel when a new configuration\n// is loaded.", "docstring_tokens": ["Subscribe", "registers", "the", "channel", "for", "messages", "on", "config", "reload", ".", "The", "caller", "can", "expect", "a", "copy", "of", "the", "previous", "and", "current", "config", "to", "be", "sent", "down", "the", "subscribed", "channel", "when", "a", "new", "configuration", "is", "loaded", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/agent.go#L106-L110", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/agent.go", "func_name": "Config", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Config returns the latest config. Do not modify the config.", "docstring_tokens": ["Config", "returns", "the", "latest", "config", ".", "Do", "not", "modify", "the", "config", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/agent.go#L116-L120", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/agent.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set sets the config. Useful for testing.", "docstring_tokens": ["Set", "sets", "the", "config", ".", "Useful", "for", "testing", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/agent.go#L123-L144", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "IsMember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsMember returns true if user is in org.", "docstring_tokens": ["IsMember", "returns", "true", "if", "user", "is", "in", "org", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L110-L117", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "ListIssueComments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListIssueComments returns comments.", "docstring_tokens": ["ListIssueComments", "returns", "comments", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L120-L122", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "ListPullRequestComments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListPullRequestComments returns review comments.", "docstring_tokens": ["ListPullRequestComments", "returns", "review", "comments", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L125-L127", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "ListReviews", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListReviews returns reviews.", "docstring_tokens": ["ListReviews", "returns", "reviews", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L130-L132", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "ListIssueEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListIssueEvents returns issue events", "docstring_tokens": ["ListIssueEvents", "returns", "issue", "events"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L135-L137", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "CreateComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateComment adds a comment to a PR", "docstring_tokens": ["CreateComment", "adds", "a", "comment", "to", "a", "PR"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L140-L149", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "CreateReview", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateReview adds a review to a PR", "docstring_tokens": ["CreateReview", "adds", "a", "review", "to", "a", "PR"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L152-L160", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "CreateCommentReaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateCommentReaction adds emoji to a comment.", "docstring_tokens": ["CreateCommentReaction", "adds", "emoji", "to", "a", "comment", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L163-L166", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "CreateIssueReaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateIssueReaction adds an emoji to an issue.", "docstring_tokens": ["CreateIssueReaction", "adds", "an", "emoji", "to", "an", "issue", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L169-L172", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "DeleteComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteComment deletes a comment.", "docstring_tokens": ["DeleteComment", "deletes", "a", "comment", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L175-L186", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "DeleteStaleComments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteStaleComments deletes comments flagged by isStale.", "docstring_tokens": ["DeleteStaleComments", "deletes", "comments", "flagged", "by", "isStale", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L189-L201", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "GetPullRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPullRequest returns details about the PR.", "docstring_tokens": ["GetPullRequest", "returns", "details", "about", "the", "PR", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L204-L210", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "GetPullRequestChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPullRequestChanges returns the file modifications in a PR.", "docstring_tokens": ["GetPullRequestChanges", "returns", "the", "file", "modifications", "in", "a", "PR", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L213-L215", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "GetRef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRef returns the hash of a ref.", "docstring_tokens": ["GetRef", "returns", "the", "hash", "of", "a", "ref", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L218-L220", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "DeleteRef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteRef returns an error indicating if deletion of the given ref was successful", "docstring_tokens": ["DeleteRef", "returns", "an", "error", "indicating", "if", "deletion", "of", "the", "given", "ref", "was", "successful"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L223-L226", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "GetSingleCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSingleCommit returns a single commit.", "docstring_tokens": ["GetSingleCommit", "returns", "a", "single", "commit", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L229-L231", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "CreateStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateStatus adds a status context to a commit.", "docstring_tokens": ["CreateStatus", "adds", "a", "status", "context", "to", "a", "commit", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L234-L251", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "ListStatuses", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListStatuses returns individual status contexts on a commit.", "docstring_tokens": ["ListStatuses", "returns", "individual", "status", "contexts", "on", "a", "commit", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L254-L256", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "GetCombinedStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCombinedStatus returns the overall status for a commit.", "docstring_tokens": ["GetCombinedStatus", "returns", "the", "overall", "status", "for", "a", "commit", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L259-L261", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "GetRepoLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRepoLabels gets labels in a repo.", "docstring_tokens": ["GetRepoLabels", "gets", "labels", "in", "a", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L264-L270", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "GetIssueLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIssueLabels gets labels on an issue", "docstring_tokens": ["GetIssueLabels", "gets", "labels", "on", "an", "issue"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L273-L286", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "AddLabel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddLabel adds a label", "docstring_tokens": ["AddLabel", "adds", "a", "label"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L289-L305", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "RemoveLabel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveLabel removes a label", "docstring_tokens": ["RemoveLabel", "removes", "a", "label"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L308-L315", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "FindIssues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindIssues returns f.Issues", "docstring_tokens": ["FindIssues", "returns", "f", ".", "Issues"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L318-L320", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "AssignIssue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AssignIssue adds assignees.", "docstring_tokens": ["AssignIssue", "adds", "assignees", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L323-L336", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "GetFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFile returns the bytes of the file.", "docstring_tokens": ["GetFile", "returns", "the", "bytes", "of", "the", "file", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L339-L357", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "ListTeams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListTeams return a list of fake teams that correspond to the fake team members returned by ListTeamMembers", "docstring_tokens": ["ListTeams", "return", "a", "list", "of", "fake", "teams", "that", "correspond", "to", "the", "fake", "team", "members", "returned", "by", "ListTeamMembers"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L360-L371", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "ListTeamMembers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListTeamMembers return a fake team with a single \"sig-lead\" GitHub teammember", "docstring_tokens": ["ListTeamMembers", "return", "a", "fake", "team", "with", "a", "single", "sig", "-", "lead", "GitHub", "teammember"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L374-L387", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "IsCollaborator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsCollaborator returns true if the user is a collaborator of the repo.", "docstring_tokens": ["IsCollaborator", "returns", "true", "if", "the", "user", "is", "a", "collaborator", "of", "the", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L390-L398", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "ListCollaborators", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListCollaborators lists the collaborators.", "docstring_tokens": ["ListCollaborators", "lists", "the", "collaborators", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L401-L407", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "ClearMilestone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClearMilestone removes the milestone", "docstring_tokens": ["ClearMilestone", "removes", "the", "milestone"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L410-L413", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "SetMilestone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMilestone sets the milestone.", "docstring_tokens": ["SetMilestone", "sets", "the", "milestone", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L416-L422", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "ListMilestones", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListMilestones lists milestones.", "docstring_tokens": ["ListMilestones", "lists", "milestones", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L425-L431", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "ListPRCommits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListPRCommits lists commits for a given PR.", "docstring_tokens": ["ListPRCommits", "lists", "commits", "for", "a", "given", "PR", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L434-L437", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "GetRepoProjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRepoProjects returns the list of projects under a repo.", "docstring_tokens": ["GetRepoProjects", "returns", "the", "list", "of", "projects", "under", "a", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L440-L442", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "GetOrgProjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOrgProjects returns the list of projects under an org", "docstring_tokens": ["GetOrgProjects", "returns", "the", "list", "of", "projects", "under", "an", "org"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L445-L447", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "GetProjectColumns", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProjectColumns returns the list of columns for a given project.", "docstring_tokens": ["GetProjectColumns", "returns", "the", "list", "of", "columns", "for", "a", "given", "project", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L450-L460", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "CreateProjectCard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateProjectCard creates a project card under a given column.", "docstring_tokens": ["CreateProjectCard", "creates", "a", "project", "card", "under", "a", "given", "column", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L463-L481", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "DeleteProjectCard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteProjectCard deletes the project card of a specific issue or PR", "docstring_tokens": ["DeleteProjectCard", "deletes", "the", "project", "card", "of", "a", "specific", "issue", "or", "PR"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L484-L513", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/fakegithub/fakegithub.go", "func_name": "MoveProjectCard", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveProjectCard moves a specific project card to a specified column in the same project", "docstring_tokens": ["MoveProjectCard", "moves", "a", "specific", "project", "card", "to", "a", "specified", "column", "in", "the", "same", "project"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/fakegithub/fakegithub.go#L545-L585", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/token-counter/influx.go", "func_name": "CreateDatabaseClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateDatabaseClient creates and connects a new instance of an InfluxDB\n// It is created based on the fields set in the configuration.", "docstring_tokens": ["CreateDatabaseClient", "creates", "and", "connects", "a", "new", "instance", "of", "an", "InfluxDB", "It", "is", "created", "based", "on", "the", "fields", "set", "in", "the", "configuration", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/token-counter/influx.go#L45-L59", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/token-counter/influx.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Push a point to the database", "docstring_tokens": ["Push", "a", "point", "to", "the", "database"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/token-counter/influx.go#L68-L91", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/pjutil.go", "func_name": "NewProwJobWithAnnotation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewProwJobWithAnnotation initializes a ProwJob out of a ProwJobSpec with annotations.", "docstring_tokens": ["NewProwJobWithAnnotation", "initializes", "a", "ProwJob", "out", "of", "a", "ProwJobSpec", "with", "annotations", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/pjutil.go#L40-L42", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/pjutil.go", "func_name": "NewProwJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewProwJob initializes a ProwJob out of a ProwJobSpec.", "docstring_tokens": ["NewProwJob", "initializes", "a", "ProwJob", "out", "of", "a", "ProwJobSpec", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/pjutil.go#L45-L47", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/pjutil.go", "func_name": "NewPresubmit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPresubmit converts a config.Presubmit into a prowapi.ProwJob.\n// The prowapi.Refs are configured correctly per the pr, baseSHA.\n// The eventGUID becomes a github.EventGUID label.", "docstring_tokens": ["NewPresubmit", "converts", "a", "config", ".", "Presubmit", "into", "a", "prowapi", ".", "ProwJob", ".", "The", "prowapi", ".", "Refs", "are", "configured", "correctly", "per", "the", "pr", "baseSHA", ".", "The", "eventGUID", "becomes", "a", "github", ".", "EventGUID", "label", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/pjutil.go#L98-L106", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/pjutil.go", "func_name": "PresubmitSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PresubmitSpec initializes a ProwJobSpec for a given presubmit job.", "docstring_tokens": ["PresubmitSpec", "initializes", "a", "ProwJobSpec", "for", "a", "given", "presubmit", "job", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/pjutil.go#L109-L123", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/pjutil.go", "func_name": "PostsubmitSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PostsubmitSpec initializes a ProwJobSpec for a given postsubmit job.", "docstring_tokens": ["PostsubmitSpec", "initializes", "a", "ProwJobSpec", "for", "a", "given", "postsubmit", "job", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/pjutil.go#L126-L139", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/pjutil.go", "func_name": "PeriodicSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeriodicSpec initializes a ProwJobSpec for a given periodic job.", "docstring_tokens": ["PeriodicSpec", "initializes", "a", "ProwJobSpec", "for", "a", "given", "periodic", "job", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/pjutil.go#L142-L147", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/pjutil.go", "func_name": "BatchSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BatchSpec initializes a ProwJobSpec for a given batch job and ref spec.", "docstring_tokens": ["BatchSpec", "initializes", "a", "ProwJobSpec", "for", "a", "given", "batch", "job", "and", "ref", "spec", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/pjutil.go#L150-L157", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/pjutil.go", "func_name": "PartitionActive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PartitionActive separates the provided prowjobs into pending and triggered\n// and returns them inside channels so that they can be consumed in parallel\n// by different goroutines. Complete prowjobs are filtered out. Controller\n// loops need to handle pending jobs first so they can conform to maximum\n// concurrency requirements that different jobs may have.", "docstring_tokens": ["PartitionActive", "separates", "the", "provided", "prowjobs", "into", "pending", "and", "triggered", "and", "returns", "them", "inside", "channels", "so", "that", "they", "can", "be", "consumed", "in", "parallel", "by", "different", "goroutines", ".", "Complete", "prowjobs", "are", "filtered", "out", ".", "Controller", "loops", "need", "to", "handle", "pending", "jobs", "first", "so", "they", "can", "conform", "to", "maximum", "concurrency", "requirements", "that", "different", "jobs", "may", "have", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/pjutil.go#L196-L222", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/pjutil.go", "func_name": "ProwJobFields", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProwJobFields extracts logrus fields from a prowjob useful for logging.", "docstring_tokens": ["ProwJobFields", "extracts", "logrus", "fields", "from", "a", "prowjob", "useful", "for", "logging", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/pjutil.go#L241-L259", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/pjutil.go", "func_name": "ClusterToCtx", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClusterToCtx converts the prow job's cluster to a cluster context", "docstring_tokens": ["ClusterToCtx", "converts", "the", "prow", "job", "s", "cluster", "to", "a", "cluster", "context"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/pjutil.go#L284-L289", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pluginhelp/pluginhelp.go", "func_name": "AddCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddCommand registers new help text for a bot command.", "docstring_tokens": ["AddCommand", "registers", "new", "help", "text", "for", "a", "bot", "command", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pluginhelp/pluginhelp.go#L71-L73", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/client/clientset/versioned/typed/prowjobs/v1/fake/fake_prowjob.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get takes name of the prowJob, and returns the corresponding prowJob object, and an error if there is any.", "docstring_tokens": ["Get", "takes", "name", "of", "the", "prowJob", "and", "returns", "the", "corresponding", "prowJob", "object", "and", "an", "error", "if", "there", "is", "any", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/client/clientset/versioned/typed/prowjobs/v1/fake/fake_prowjob.go#L42-L50", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/client/clientset/versioned/typed/prowjobs/v1/fake/fake_prowjob.go", "func_name": "Watch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Watch returns a watch.Interface that watches the requested prowJobs.", "docstring_tokens": ["Watch", "returns", "a", "watch", ".", "Interface", "that", "watches", "the", "requested", "prowJobs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/client/clientset/versioned/typed/prowjobs/v1/fake/fake_prowjob.go#L75-L79", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/client/clientset/versioned/typed/prowjobs/v1/fake/fake_prowjob.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete takes name of the prowJob and deletes it. Returns an error if one occurs.", "docstring_tokens": ["Delete", "takes", "name", "of", "the", "prowJob", "and", "deletes", "it", ".", "Returns", "an", "error", "if", "one", "occurs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/client/clientset/versioned/typed/prowjobs/v1/fake/fake_prowjob.go#L116-L121", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/client/clientset/versioned/typed/prowjobs/v1/fake/fake_prowjob.go", "func_name": "Patch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Patch applies the patch and returns the patched prowJob.", "docstring_tokens": ["Patch", "applies", "the", "patch", "and", "returns", "the", "patched", "prowJob", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/client/clientset/versioned/typed/prowjobs/v1/fake/fake_prowjob.go#L132-L140", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/tide.go", "func_name": "MergeMethod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MergeMethod returns the merge method to use for a repo. The default of merge is\n// returned when not overridden.", "docstring_tokens": ["MergeMethod", "returns", "the", "merge", "method", "to", "use", "for", "a", "repo", ".", "The", "default", "of", "merge", "is", "returned", "when", "not", "overridden", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/tide.go#L143-L156", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/tide.go", "func_name": "Query", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Query returns the corresponding github search string for the tide query.", "docstring_tokens": ["Query", "returns", "the", "corresponding", "github", "search", "string", "for", "the", "tide", "query", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/tide.go#L189-L219", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/tide.go", "func_name": "ForRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForRepo indicates if the tide query applies to the specified repo.", "docstring_tokens": ["ForRepo", "indicates", "if", "the", "tide", "query", "applies", "to", "the", "specified", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/tide.go#L222-L242", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/tide.go", "func_name": "OrgExceptionsAndRepos", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OrgExceptionsAndRepos determines which orgs and repos a set of queries cover.\n// Output is returned as a mapping from 'included org'->'repos excluded in the org'\n// and a set of included repos.", "docstring_tokens": ["OrgExceptionsAndRepos", "determines", "which", "orgs", "and", "repos", "a", "set", "of", "queries", "cover", ".", "Output", "is", "returned", "as", "a", "mapping", "from", "included", "org", "-", ">", "repos", "excluded", "in", "the", "org", "and", "a", "set", "of", "included", "repos", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/tide.go#L258-L284", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/tide.go", "func_name": "QueryMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryMap creates a QueryMap from TideQueries", "docstring_tokens": ["QueryMap", "creates", "a", "QueryMap", "from", "TideQueries"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/tide.go#L296-L301", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/tide.go", "func_name": "ForRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForRepo returns the tide queries that apply to a repo.", "docstring_tokens": ["ForRepo", "returns", "the", "tide", "queries", "that", "apply", "to", "a", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/tide.go#L304-L323", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/tide.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate returns an error if any contexts are listed more than once in the config.", "docstring_tokens": ["Validate", "returns", "an", "error", "if", "any", "contexts", "are", "listed", "more", "than", "once", "in", "the", "config", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/tide.go#L419-L430", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/tide.go", "func_name": "GetTideContextPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTideContextPolicy parses the prow config to find context merge options.\n// If none are set, it will use the prow jobs configured and use the default github combined status.\n// Otherwise if set it will use the branch protection setting, or the listed jobs.", "docstring_tokens": ["GetTideContextPolicy", "parses", "the", "prow", "config", "to", "find", "context", "merge", "options", ".", "If", "none", "are", "set", "it", "will", "use", "the", "prow", "jobs", "configured", "and", "use", "the", "default", "github", "combined", "status", ".", "Otherwise", "if", "set", "it", "will", "use", "the", "branch", "protection", "setting", "or", "the", "listed", "jobs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/tide.go#L477-L510", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/tide.go", "func_name": "IsOptional", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsOptional checks whether a context can be ignored.\n// Will return true if\n// - context is registered as optional\n// - required contexts are registered and the context provided is not required\n// Will return false otherwise. Every context is required.", "docstring_tokens": ["IsOptional", "checks", "whether", "a", "context", "can", "be", "ignored", ".", "Will", "return", "true", "if", "-", "context", "is", "registered", "as", "optional", "-", "required", "contexts", "are", "registered", "and", "the", "context", "provided", "is", "not", "required", "Will", "return", "false", "otherwise", ".", "Every", "context", "is", "required", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/tide.go#L517-L532", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/tide.go", "func_name": "MissingRequiredContexts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MissingRequiredContexts discard the optional contexts and only look of extra required contexts that are not provided.", "docstring_tokens": ["MissingRequiredContexts", "discard", "the", "optional", "contexts", "and", "only", "look", "of", "extra", "required", "contexts", "that", "are", "not", "provided", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/tide.go#L535-L548", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/webhooks.go", "func_name": "ValidateWebhook", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateWebhook ensures that the provided request conforms to the\n// format of a GitHub webhook and the payload can be validated with\n// the provided hmac secret. It returns the event type, the event guid,\n// the payload of the request, whether the webhook is valid or not,\n// and finally the resultant HTTP status code", "docstring_tokens": ["ValidateWebhook", "ensures", "that", "the", "provided", "request", "conforms", "to", "the", "format", "of", "a", "GitHub", "webhook", "and", "the", "payload", "can", "be", "validated", "with", "the", "provided", "hmac", "secret", ".", "It", "returns", "the", "event", "type", "the", "event", "guid", "the", "payload", "of", "the", "request", "whether", "the", "webhook", "is", "valid", "or", "not", "and", "finally", "the", "resultant", "HTTP", "status", "code"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/webhooks.go#L31-L76", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/external-plugins/needs-rebase/plugin/plugin.go", "func_name": "HelpProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HelpProvider constructs the PluginHelp for this plugin that takes into account enabled repositories.\n// HelpProvider defines the type for function that construct the PluginHelp for plugins.", "docstring_tokens": ["HelpProvider", "constructs", "the", "PluginHelp", "for", "this", "plugin", "that", "takes", "into", "account", "enabled", "repositories", ".", "HelpProvider", "defines", "the", "type", "for", "function", "that", "construct", "the", "PluginHelp", "for", "plugins", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/external-plugins/needs-rebase/plugin/plugin.go#L60-L66", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/external-plugins/needs-rebase/plugin/plugin.go", "func_name": "HandleEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleEvent handles a GitHub PR event to determine if the \"needs-rebase\"\n// label needs to be added or removed. It depends on GitHub mergeability check\n// to decide the need for a rebase.", "docstring_tokens": ["HandleEvent", "handles", "a", "GitHub", "PR", "event", "to", "determine", "if", "the", "needs", "-", "rebase", "label", "needs", "to", "be", "added", "or", "removed", ".", "It", "depends", "on", "GitHub", "mergeability", "check", "to", "decide", "the", "need", "for", "a", "rebase", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/external-plugins/needs-rebase/plugin/plugin.go#L71-L96", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/external-plugins/needs-rebase/plugin/plugin.go", "func_name": "HandleAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleAll checks all orgs and repos that enabled this plugin for open PRs to\n// determine if the \"needs-rebase\" label needs to be added or removed. It\n// depends on GitHub's mergeability check to decide the need for a rebase.", "docstring_tokens": ["HandleAll", "checks", "all", "orgs", "and", "repos", "that", "enabled", "this", "plugin", "for", "open", "PRs", "to", "determine", "if", "the", "needs", "-", "rebase", "label", "needs", "to", "be", "added", "or", "removed", ".", "It", "depends", "on", "GitHub", "s", "mergeability", "check", "to", "decide", "the", "need", "for", "a", "rebase", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/external-plugins/needs-rebase/plugin/plugin.go#L101-L157", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/dry_run_client.go", "func_name": "NewDryRunProwJobClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDryRunProwJobClient creates a new client that uses deck as a read-only proxy for ProwJob data", "docstring_tokens": ["NewDryRunProwJobClient", "creates", "a", "new", "client", "that", "uses", "deck", "as", "a", "read", "-", "only", "proxy", "for", "ProwJob", "data"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/dry_run_client.go#L36-L41", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/dry_run_client.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create does nothing on a dry-run client", "docstring_tokens": ["Create", "does", "nothing", "on", "a", "dry", "-", "run", "client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/dry_run_client.go#L50-L52", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/dry_run_client.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update does nothing on a dry-run client", "docstring_tokens": ["Update", "does", "nothing", "on", "a", "dry", "-", "run", "client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/dry_run_client.go#L55-L57", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/dry_run_client.go", "func_name": "UpdateStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateStatus does nothing on a dry-run client", "docstring_tokens": ["UpdateStatus", "does", "nothing", "on", "a", "dry", "-", "run", "client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/dry_run_client.go#L60-L62", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/dry_run_client.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete does nothing on a dry-run client", "docstring_tokens": ["Delete", "does", "nothing", "on", "a", "dry", "-", "run", "client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/dry_run_client.go#L65-L67", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/dry_run_client.go", "func_name": "DeleteCollection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteCollection does nothing on a dry-run client", "docstring_tokens": ["DeleteCollection", "does", "nothing", "on", "a", "dry", "-", "run", "client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/dry_run_client.go#L70-L72", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/dry_run_client.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get does nothing on a dry-run client", "docstring_tokens": ["Get", "does", "nothing", "on", "a", "dry", "-", "run", "client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/dry_run_client.go#L75-L77", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/dry_run_client.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List reaches out to `deck` to retrieve the ProwJobs on the cluster via proxy", "docstring_tokens": ["List", "reaches", "out", "to", "deck", "to", "retrieve", "the", "ProwJobs", "on", "the", "cluster", "via", "proxy"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/dry_run_client.go#L80-L84", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/dry_run_client.go", "func_name": "Watch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Watch does nothing on a dry-run client", "docstring_tokens": ["Watch", "does", "nothing", "on", "a", "dry", "-", "run", "client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/dry_run_client.go#L172-L174", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/dry_run_client.go", "func_name": "Patch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Patch does nothing on a dry-run client", "docstring_tokens": ["Patch", "does", "nothing", "on", "a", "dry", "-", "run", "client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/dry_run_client.go#L177-L179", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/controller.go", "func_name": "hasSynced", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hasSynced returns true when every prowjob and pipeline informer has synced.", "docstring_tokens": ["hasSynced", "returns", "true", "when", "every", "prowjob", "and", "pipeline", "informer", "has", "synced", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/controller.go#L90-L122", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/controller.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run starts threads workers, returning after receiving a stop signal.", "docstring_tokens": ["Run", "starts", "threads", "workers", "returning", "after", "receiving", "a", "stop", "signal", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/controller.go#L196-L215", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/controller.go", "func_name": "runWorker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// runWorker dequeues to reconcile, until the queue has closed.", "docstring_tokens": ["runWorker", "dequeues", "to", "reconcile", "until", "the", "queue", "has", "closed", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/controller.go#L218-L234", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/controller.go", "func_name": "fromKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fromKey converts toKey back into its parts", "docstring_tokens": ["fromKey", "converts", "toKey", "back", "into", "its", "parts"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/controller.go#L242-L248", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/controller.go", "func_name": "enqueueKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// enqueueKey schedules an item for reconciliation", "docstring_tokens": ["enqueueKey", "schedules", "an", "item", "for", "reconciliation"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/controller.go#L251-L265", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/controller.go", "func_name": "finalState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// finalState returns true if the prowjob has already finished", "docstring_tokens": ["finalState", "returns", "true", "if", "the", "prowjob", "has", "already", "finished"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/controller.go#L467-L473", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/controller.go", "func_name": "description", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// description computes the ProwJobStatus description for this condition or falling back to a default if none is provided.", "docstring_tokens": ["description", "computes", "the", "ProwJobStatus", "description", "for", "this", "condition", "or", "falling", "back", "to", "a", "default", "if", "none", "is", "provided", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/controller.go#L476-L484", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/controller.go", "func_name": "prowJobStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// prowJobStatus returns the desired state and description based on the pipeline status", "docstring_tokens": ["prowJobStatus", "returns", "the", "desired", "state", "and", "description", "based", "on", "the", "pipeline", "status"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/controller.go#L497-L521", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/controller.go", "func_name": "pipelineMeta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// pipelineMeta builds the pipeline metadata from prow job definition", "docstring_tokens": ["pipelineMeta", "builds", "the", "pipeline", "metadata", "from", "prow", "job", "definition"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/controller.go#L524-L532", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/controller.go", "func_name": "sourceURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sourceURL returns the source URL from prow jobs repository reference", "docstring_tokens": ["sourceURL", "returns", "the", "source", "URL", "from", "prow", "jobs", "repository", "reference"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/controller.go#L549-L558", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/controller.go", "func_name": "makePipelineGitResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makePipelineGitResource creates a pipeline git resource from prow job", "docstring_tokens": ["makePipelineGitResource", "creates", "a", "pipeline", "git", "resource", "from", "prow", "job"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/controller.go#L561-L587", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/controller.go", "func_name": "makePipelineRun", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makePipeline creates a PipelineRun from a prow job using the PipelineRunSpec defined in the prow job", "docstring_tokens": ["makePipeline", "creates", "a", "PipelineRun", "from", "a", "prow", "job", "using", "the", "PipelineRunSpec", "defined", "in", "the", "prow", "job"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/controller.go#L590-L616", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/require-matching-label/require-matching-label.go", "func_name": "matchingConfigs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// matchingConfigs filters irrelevant RequireMtchingLabel configs from\n// the list of all configs.\n// `branch` should be empty for Issues and non-empty for PRs.\n// `label` should be omitted in the case of 'open' and 'reopen' actions.", "docstring_tokens": ["matchingConfigs", "filters", "irrelevant", "RequireMtchingLabel", "configs", "from", "the", "list", "of", "all", "configs", ".", "branch", "should", "be", "empty", "for", "Issues", "and", "non", "-", "empty", "for", "PRs", ".", "label", "should", "be", "omitted", "in", "the", "case", "of", "open", "and", "reopen", "actions", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/require-matching-label/require-matching-label.go#L143-L163", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/golint/suggestion/golint_suggestion.go", "func_name": "SuggestCodeChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SuggestCodeChange returns code suggestions for a given lint.Problem\n// Returns empty string if no suggestion can be given", "docstring_tokens": ["SuggestCodeChange", "returns", "code", "suggestions", "for", "a", "given", "lint", ".", "Problem", "Returns", "empty", "string", "if", "no", "suggestion", "can", "be", "given"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/golint/suggestion/golint_suggestion.go#L47-L57", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pluginhelp/externalplugins/externalplugins.go", "func_name": "ServeExternalPluginHelp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeExternalPluginHelp returns a HandlerFunc that serves plugin help information that is\n// provided by the specified ExternalPluginHelpProvider.", "docstring_tokens": ["ServeExternalPluginHelp", "returns", "a", "HandlerFunc", "that", "serves", "plugin", "help", "information", "that", "is", "provided", "by", "the", "specified", "ExternalPluginHelpProvider", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pluginhelp/externalplugins/externalplugins.go#L40-L85", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/branchprotector/protect.go", "func_name": "protect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// protect protects branches specified in the presubmit and branch-protection config sections.", "docstring_tokens": ["protect", "protects", "branches", "specified", "in", "the", "presubmit", "and", "branch", "-", "protection", "config", "sections", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/branchprotector/protect.go#L167-L200", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/branchprotector/protect.go", "func_name": "UpdateOrg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateOrg updates all repos in the org with the specified defaults", "docstring_tokens": ["UpdateOrg", "updates", "all", "repos", "in", "the", "org", "with", "the", "specified", "defaults"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/branchprotector/protect.go#L203-L230", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/branchprotector/protect.go", "func_name": "UpdateRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateRepo updates all branches in the repo with the specified defaults", "docstring_tokens": ["UpdateRepo", "updates", "all", "branches", "in", "the", "repo", "with", "the", "specified", "defaults"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/branchprotector/protect.go#L233-L264", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/branchprotector/protect.go", "func_name": "UpdateBranch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateBranch updates the branch with the specified configuration", "docstring_tokens": ["UpdateBranch", "updates", "the", "branch", "with", "the", "specified", "configuration"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/branchprotector/protect.go#L267-L291", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/artifact-uploader/main.go", "func_name": "LoadConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadConfig loads options from serialized config", "docstring_tokens": ["LoadConfig", "loads", "options", "from", "serialized", "config"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/artifact-uploader/main.go#L86-L88", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/artifact-uploader/main.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run uploads artifacts with the specified options forever.\n//\n// Sends a stop message to the artifact uploader when it is interrupted.", "docstring_tokens": ["Run", "uploads", "artifacts", "with", "the", "specified", "options", "forever", ".", "Sends", "a", "stop", "message", "to", "the", "artifact", "uploader", "when", "it", "is", "interrupted", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/artifact-uploader/main.go#L127-L151", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/secret/agent.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start creates goroutines to monitor the files that contain the secret value.", "docstring_tokens": ["Start", "creates", "goroutines", "to", "monitor", "the", "files", "that", "contain", "the", "secret", "value", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/secret/agent.go#L35-L49", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/secret/agent.go", "func_name": "reloadSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// reloadSecret will begin polling the secret file at the path. If the first load\n// fails, Start with return the error and abort. Future load failures will log\n// the failure message but continue attempting to load.", "docstring_tokens": ["reloadSecret", "will", "begin", "polling", "the", "secret", "file", "at", "the", "path", ".", "If", "the", "first", "load", "fails", "Start", "with", "return", "the", "error", "and", "abort", ".", "Future", "load", "failures", "will", "log", "the", "failure", "message", "but", "continue", "attempting", "to", "load", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/secret/agent.go#L54-L85", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/secret/agent.go", "func_name": "GetSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSecret returns the value of a secret stored in a map.", "docstring_tokens": ["GetSecret", "returns", "the", "value", "of", "a", "secret", "stored", "in", "a", "map", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/secret/agent.go#L88-L92", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/secret/agent.go", "func_name": "setSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setSecret sets a value in a map of secrets.", "docstring_tokens": ["setSecret", "sets", "a", "value", "in", "a", "map", "of", "secrets", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/secret/agent.go#L95-L99", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/secret/agent.go", "func_name": "GetTokenGenerator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTokenGenerator returns a function that gets the value of a given secret.", "docstring_tokens": ["GetTokenGenerator", "returns", "a", "function", "that", "gets", "the", "value", "of", "a", "given", "secret", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/secret/agent.go#L102-L106", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/history/history.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new History struct with the specificed recordLog size limit.", "docstring_tokens": ["New", "creates", "a", "new", "History", "struct", "with", "the", "specificed", "recordLog", "size", "limit", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/history/history.go#L114-L137", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/history/history.go", "func_name": "Record", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Record appends an entry to the recordlog specified by the poolKey.", "docstring_tokens": ["Record", "appends", "an", "entry", "to", "the", "recordlog", "specified", "by", "the", "poolKey", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/history/history.go#L140-L153", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/history/history.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP serves a JSON mapping from pool key -> sorted records for the pool.", "docstring_tokens": ["ServeHTTP", "serves", "a", "JSON", "mapping", "from", "pool", "key", "-", ">", "sorted", "records", "for", "the", "pool", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/history/history.go#L165-L174", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/history/history.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush writes the action history to persistent storage if configured to do so.", "docstring_tokens": ["Flush", "writes", "the", "action", "history", "to", "persistent", "storage", "if", "configured", "to", "do", "so", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/history/history.go#L177-L193", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/history/history.go", "func_name": "AllRecords", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllRecords generates a map from pool key -> sorted records for the pool.", "docstring_tokens": ["AllRecords", "generates", "a", "map", "from", "pool", "key", "-", ">", "sorted", "records", "for", "the", "pool", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/history/history.go#L196-L205", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/coverage/cmd/downloader/downloader.go", "func_name": "MakeCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakeCommand returns a `download` command.", "docstring_tokens": ["MakeCommand", "returns", "a", "download", "command", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/coverage/cmd/downloader/downloader.go#L37-L52", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/comment_counter.go", "func_name": "CheckFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckFlags looks for comments matching regexes", "docstring_tokens": ["CheckFlags", "looks", "for", "comments", "matching", "regexes"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/comment_counter.go#L40-L49", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/comment_counter.go", "func_name": "ReceiveComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReceiveComment adds matching comments to InfluxDB", "docstring_tokens": ["ReceiveComment", "adds", "matching", "comments", "to", "InfluxDB"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/comment_counter.go#L62-L75", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/crier/controller.go", "func_name": "NewController", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewController constructs a new instance of the crier controller.", "docstring_tokens": ["NewController", "constructs", "a", "new", "instance", "of", "the", "crier", "controller", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/crier/controller.go#L60-L75", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/crier/controller.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run is the main path of execution for the controller loop.", "docstring_tokens": ["Run", "is", "the", "main", "path", "of", "execution", "for", "the", "controller", "loop", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/crier/controller.go#L78-L125", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/crier/controller.go", "func_name": "runWorker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// runWorker executes the loop to process new items added to the queue.", "docstring_tokens": ["runWorker", "executes", "the", "loop", "to", "process", "new", "items", "added", "to", "the", "queue", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/crier/controller.go#L134-L139", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/localgit/localgit.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a LocalGit and a git.Client pointing at it.", "docstring_tokens": ["New", "creates", "a", "LocalGit", "and", "a", "git", ".", "Client", "pointing", "at", "it", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/localgit/localgit.go#L42-L68", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/localgit/localgit.go", "func_name": "MakeFakeRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakeFakeRepo creates the given repo and makes an initial commit.", "docstring_tokens": ["MakeFakeRepo", "creates", "the", "given", "repo", "and", "makes", "an", "initial", "commit", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/localgit/localgit.go#L95-L118", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/localgit/localgit.go", "func_name": "AddCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddCommit adds the files to a new commit in the repo.", "docstring_tokens": ["AddCommit", "adds", "the", "files", "to", "a", "new", "commit", "in", "the", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/localgit/localgit.go#L121-L136", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/localgit/localgit.go", "func_name": "CheckoutNewBranch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckoutNewBranch does git checkout -b.", "docstring_tokens": ["CheckoutNewBranch", "does", "git", "checkout", "-", "b", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/localgit/localgit.go#L139-L142", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/localgit/localgit.go", "func_name": "Checkout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Checkout does git checkout.", "docstring_tokens": ["Checkout", "does", "git", "checkout", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/localgit/localgit.go#L145-L148", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/localgit/localgit.go", "func_name": "RevParse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RevParse does git rev-parse.", "docstring_tokens": ["RevParse", "does", "git", "rev", "-", "parse", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/localgit/localgit.go#L151-L154", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "maintenance/aws-janitor/resources/clean.go", "func_name": "CleanAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CleanAll cleans all of the resources for all of the regions visible to\n// the provided AWS session.", "docstring_tokens": ["CleanAll", "cleans", "all", "of", "the", "resources", "for", "all", "of", "the", "regions", "visible", "to", "the", "provided", "AWS", "session", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/maintenance/aws-janitor/resources/clean.go#L29-L70", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/lgtm/lgtm.go", "func_name": "optionsForRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// optionsForRepo gets the plugins.Lgtm struct that is applicable to the indicated repo.", "docstring_tokens": ["optionsForRepo", "gets", "the", "plugins", ".", "Lgtm", "struct", "that", "is", "applicable", "to", "the", "indicated", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/lgtm/lgtm.go#L116-L125", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/lgtm/lgtm.go", "func_name": "getChangedFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getChangedFiles returns all the changed files for the provided pull request.", "docstring_tokens": ["getChangedFiles", "returns", "all", "the", "changed", "files", "for", "the", "provided", "pull", "request", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/lgtm/lgtm.go#L504-L514", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/lgtm/lgtm.go", "func_name": "loadReviewers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loadReviewers returns all reviewers and approvers from all OWNERS files that\n// cover the provided filenames.", "docstring_tokens": ["loadReviewers", "returns", "all", "reviewers", "and", "approvers", "from", "all", "OWNERS", "files", "that", "cover", "the", "provided", "filenames", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/lgtm/lgtm.go#L518-L524", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/gerrit/adapter/adapter.go", "func_name": "NewController", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewController returns a new gerrit controller client", "docstring_tokens": ["NewController", "returns", "a", "new", "gerrit", "controller", "client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/gerrit/adapter/adapter.go#L67-L99", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/gerrit/adapter/adapter.go", "func_name": "SaveLastSync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveLastSync saves last sync time in Unix to a volume", "docstring_tokens": ["SaveLastSync", "saves", "last", "sync", "time", "in", "Unix", "to", "a", "volume"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/gerrit/adapter/adapter.go#L122-L147", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/gerrit/adapter/adapter.go", "func_name": "Sync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sync looks for newly made gerrit changes\n// and creates prowjobs according to specs", "docstring_tokens": ["Sync", "looks", "for", "newly", "made", "gerrit", "changes", "and", "creates", "prowjobs", "according", "to", "specs"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/gerrit/adapter/adapter.go#L151-L173", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/event_counter.go", "func_name": "AddFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFlags adds \"event\" to the command help", "docstring_tokens": ["AddFlags", "adds", "event", "to", "the", "command", "help"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/event_counter.go#L33-L35", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/event_counter.go", "func_name": "CheckFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckFlags is delegated to EventMatcher", "docstring_tokens": ["CheckFlags", "is", "delegated", "to", "EventMatcher"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/event_counter.go#L38-L41", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/event_counter.go", "func_name": "ReceiveIssueEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReceiveIssueEvent adds issue events to InfluxDB", "docstring_tokens": ["ReceiveIssueEvent", "adds", "issue", "events", "to", "InfluxDB"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/event_counter.go#L49-L64", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/gcs/upload.go", "func_name": "Upload", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Upload uploads all of the data in the\n// uploadTargets map to GCS in parallel. The map is\n// keyed on GCS path under the bucket", "docstring_tokens": ["Upload", "uploads", "all", "of", "the", "data", "in", "the", "uploadTargets", "map", "to", "GCS", "in", "parallel", ".", "The", "map", "is", "keyed", "on", "GCS", "path", "under", "the", "bucket"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/gcs/upload.go#L38-L64", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/gcs/upload.go", "func_name": "FileUploadWithMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FileUploadWithMetadata returns an UploadFunc which copies all\n// data from the file on disk into GCS object and also sets the provided\n// metadata fields on the object.", "docstring_tokens": ["FileUploadWithMetadata", "returns", "an", "UploadFunc", "which", "copies", "all", "data", "from", "the", "file", "on", "disk", "into", "GCS", "object", "and", "also", "sets", "the", "provided", "metadata", "fields", "on", "the", "object", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/gcs/upload.go#L75-L87", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/gcs/upload.go", "func_name": "DataUploadWithMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DataUploadWithMetadata returns an UploadFunc which copies all\n// data from src reader into GCS and also sets the provided metadata\n// fields onto the object.", "docstring_tokens": ["DataUploadWithMetadata", "returns", "an", "UploadFunc", "which", "copies", "all", "data", "from", "src", "reader", "into", "GCS", "and", "also", "sets", "the", "provided", "metadata", "fields", "onto", "the", "object", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/gcs/upload.go#L98-L107", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/helpers.go", "func_name": "HasLabel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLabel checks if label is in the label set \"issueLabels\".", "docstring_tokens": ["HasLabel", "checks", "if", "label", "is", "in", "the", "label", "set", "issueLabels", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/helpers.go#L27-L34", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/helpers.go", "func_name": "ImageTooBig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageTooBig checks if image is bigger than github limits", "docstring_tokens": ["ImageTooBig", "checks", "if", "image", "is", "bigger", "than", "github", "limits"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/helpers.go#L37-L53", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/helpers.go", "func_name": "LevelFromPermissions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LevelFromPermissions adapts a repo permissions struct to the\n// appropriate permission level used elsewhere", "docstring_tokens": ["LevelFromPermissions", "adapts", "a", "repo", "permissions", "struct", "to", "the", "appropriate", "permission", "level", "used", "elsewhere"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/helpers.go#L57-L67", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/helpers.go", "func_name": "PermissionsFromLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PermissionsFromLevel adapts a repo permission level to the\n// appropriate permissions struct used elsewhere", "docstring_tokens": ["PermissionsFromLevel", "adapts", "a", "repo", "permission", "level", "to", "the", "appropriate", "permissions", "struct", "used", "elsewhere"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/helpers.go#L71-L84", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/client/clientset/versioned/typed/prowjobs/v1/prowjob.go", "func_name": "newProwJobs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newProwJobs returns a ProwJobs", "docstring_tokens": ["newProwJobs", "returns", "a", "ProwJobs"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/client/clientset/versioned/typed/prowjobs/v1/prowjob.go#L57-L62", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/blockers/blockers.go", "func_name": "GetApplicable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetApplicable returns the subset of blockers applicable to the specified branch.", "docstring_tokens": ["GetApplicable", "returns", "the", "subset", "of", "blockers", "applicable", "to", "the", "specified", "branch", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/blockers/blockers.go#L61-L70", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/jenkins-operator/main.go", "func_name": "serve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// serve starts a http server and serves Jenkins logs\n// and prometheus metrics. Meant to be called inside\n// a goroutine.", "docstring_tokens": ["serve", "starts", "a", "http", "server", "and", "serves", "Jenkins", "logs", "and", "prometheus", "metrics", ".", "Meant", "to", "be", "called", "inside", "a", "goroutine", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/jenkins-operator/main.go#L267-L271", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/count.go", "func_name": "NewCountPlugin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCountPlugin counts events and number of issues in given state, and for how long.", "docstring_tokens": ["NewCountPlugin", "counts", "events", "and", "number", "of", "issues", "in", "given", "state", "and", "for", "how", "long", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/count.go#L24-L68", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/fake_comment_wrapper.go", "func_name": "ReceiveComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReceiveComment creates a fake \"commented\" event", "docstring_tokens": ["ReceiveComment", "creates", "a", "fake", "commented", "event"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/fake_comment_wrapper.go#L50-L63", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "greenhouse/main.go", "func_name": "updateMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// helper to update disk metrics", "docstring_tokens": ["helper", "to", "update", "disk", "metrics"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/greenhouse/main.go#L194-L208", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/ranch/ranch.go", "func_name": "LogStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogStatus outputs current status of all resources", "docstring_tokens": ["LogStatus", "outputs", "current", "status", "of", "all", "resources"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/ranch/ranch.go#L304-L316", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/ranch/ranch.go", "func_name": "SyncConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SyncConfig updates resource list from a file", "docstring_tokens": ["SyncConfig", "updates", "resource", "list", "from", "a", "file"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/ranch/ranch.go#L319-L328", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/ranch/ranch.go", "func_name": "Metric", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Metric returns a metric object with metrics filled in", "docstring_tokens": ["Metric", "returns", "a", "metric", "object", "with", "metrics", "filled", "in"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/ranch/ranch.go#L331-L366", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/dog/dog.go", "func_name": "FormatURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatURL will return the GH markdown to show the image for a specific dogURL.", "docstring_tokens": ["FormatURL", "will", "return", "the", "GH", "markdown", "to", "show", "the", "image", "for", "a", "specific", "dogURL", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/dog/dog.go#L87-L96", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/trigger/trigger.go", "func_name": "runAndSkipJobs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// runAndSkipJobs executes the config.Presubmits that are requested and posts skipped statuses\n// for the reporting jobs that are skipped", "docstring_tokens": ["runAndSkipJobs", "executes", "the", "config", ".", "Presubmits", "that", "are", "requested", "and", "posts", "skipped", "statuses", "for", "the", "reporting", "jobs", "that", "are", "skipped"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/trigger/trigger.go#L198-L210", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/trigger/trigger.go", "func_name": "validateContextOverlap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateContextOverlap ensures that there will be no overlap in contexts between a set of jobs running and a set to skip", "docstring_tokens": ["validateContextOverlap", "ensures", "that", "there", "will", "be", "no", "overlap", "in", "contexts", "between", "a", "set", "of", "jobs", "running", "and", "a", "set", "to", "skip"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/trigger/trigger.go#L213-L227", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/trigger/trigger.go", "func_name": "RunRequested", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunRequested executes the config.Presubmits that are requested", "docstring_tokens": ["RunRequested", "executes", "the", "config", ".", "Presubmits", "that", "are", "requested"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/trigger/trigger.go#L230-L247", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/trigger/trigger.go", "func_name": "skipRequested", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// skipRequested posts skipped statuses for the config.Presubmits that are requested", "docstring_tokens": ["skipRequested", "posts", "skipped", "statuses", "for", "the", "config", ".", "Presubmits", "that", "are", "requested"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/trigger/trigger.go#L250-L262", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/events.go", "func_name": "Match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Match is \"labeled\" with label", "docstring_tokens": ["Match", "is", "labeled", "with", "label"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/events.go#L100-L102", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/events.go", "func_name": "Match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Match is \"unlabeled\"", "docstring_tokens": ["Match", "is", "unlabeled"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/events.go#L117-L119", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/github.go", "func_name": "AddFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFlags injects GitHub options into the given FlagSet.", "docstring_tokens": ["AddFlags", "injects", "GitHub", "options", "into", "the", "given", "FlagSet", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/github.go#L40-L42", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/github.go", "func_name": "AddFlagsWithoutDefaultGitHubTokenPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFlagsWithoutDefaultGitHubTokenPath injects GitHub options into the given\n// Flagset without setting a default for for the githubTokenPath, allowing to\n// use an anonymous GitHub client", "docstring_tokens": ["AddFlagsWithoutDefaultGitHubTokenPath", "injects", "GitHub", "options", "into", "the", "given", "Flagset", "without", "setting", "a", "default", "for", "for", "the", "githubTokenPath", "allowing", "to", "use", "an", "anonymous", "GitHub", "client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/github.go#L47-L49", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/github.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate validates GitHub options.", "docstring_tokens": ["Validate", "validates", "GitHub", "options", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/github.go#L64-L89", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/github.go", "func_name": "GitHubClientWithLogFields", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GitHubClientWithLogFields returns a GitHub client with extra logging fields", "docstring_tokens": ["GitHubClientWithLogFields", "returns", "a", "GitHub", "client", "with", "extra", "logging", "fields"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/github.go#L92-L111", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/github.go", "func_name": "GitHubClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GitHubClient returns a GitHub client.", "docstring_tokens": ["GitHubClient", "returns", "a", "GitHub", "client", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/github.go#L114-L116", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/github.go", "func_name": "GitClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GitClient returns a Git client.", "docstring_tokens": ["GitClient", "returns", "a", "Git", "client", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/github.go#L119-L146", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/coverage/diff/diff.go", "func_name": "toMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// toMap returns maps the file name to its coverage for faster retrieval\n// & membership check", "docstring_tokens": ["toMap", "returns", "maps", "the", "file", "name", "to", "its", "coverage", "for", "faster", "retrieval", "&", "membership", "check"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/coverage/diff/diff.go#L44-L50", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/coverage/diff/diff.go", "func_name": "findChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findChanges compares the newList of coverage against the base list and returns the result", "docstring_tokens": ["findChanges", "compares", "the", "newList", "of", "coverage", "against", "the", "base", "list", "and", "returns", "the", "result"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/coverage/diff/diff.go#L53-L74", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/sql/mysql.go", "func_name": "CreateDatabase", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateDatabase for the MySQLConfig", "docstring_tokens": ["CreateDatabase", "for", "the", "MySQLConfig"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/sql/mysql.go#L50-L66", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/reporter/reporter.go", "func_name": "ShouldReport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShouldReport returns if this prowjob should be reported by the github reporter", "docstring_tokens": ["ShouldReport", "returns", "if", "this", "prowjob", "should", "be", "reported", "by", "the", "github", "reporter"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/reporter/reporter.go#L54-L72", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/reporter/reporter.go", "func_name": "Report", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Report will report via reportlib", "docstring_tokens": ["Report", "will", "report", "via", "reportlib"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/reporter/reporter.go#L75-L78", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "maintenance/aws-janitor/resources/set.go", "func_name": "MarkComplete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarkComplete figures out which ARNs were in previous passes but not\n// this one, and eliminates them. It should only be run after all\n// resources have been marked.", "docstring_tokens": ["MarkComplete", "figures", "out", "which", "ARNs", "were", "in", "previous", "passes", "but", "not", "this", "one", "and", "eliminates", "them", ".", "It", "should", "only", "be", "run", "after", "all", "resources", "have", "been", "marked", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/maintenance/aws-janitor/resources/set.go#L132-L150", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/deck/jobs/jobs.go", "func_name": "NewJobAgent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewJobAgent is a JobAgent constructor.", "docstring_tokens": ["NewJobAgent", "is", "a", "JobAgent", "constructor", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/deck/jobs/jobs.go#L80-L86", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/deck/jobs/jobs.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start will start the job and periodically update it.", "docstring_tokens": ["Start", "will", "start", "the", "job", "and", "periodically", "update", "it", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/deck/jobs/jobs.go#L101-L109", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/deck/jobs/jobs.go", "func_name": "Jobs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Jobs returns a thread-safe snapshot of the current job state.", "docstring_tokens": ["Jobs", "returns", "a", "thread", "-", "safe", "snapshot", "of", "the", "current", "job", "state", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/deck/jobs/jobs.go#L112-L118", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/deck/jobs/jobs.go", "func_name": "ProwJobs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProwJobs returns a thread-safe snapshot of the current prow jobs.", "docstring_tokens": ["ProwJobs", "returns", "a", "thread", "-", "safe", "snapshot", "of", "the", "current", "prow", "jobs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/deck/jobs/jobs.go#L121-L127", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/deck/jobs/jobs.go", "func_name": "GetProwJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProwJob finds the corresponding Prowjob resource from the provided job name and build ID", "docstring_tokens": ["GetProwJob", "finds", "the", "corresponding", "Prowjob", "resource", "from", "the", "provided", "job", "name", "and", "build", "ID"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/deck/jobs/jobs.go#L132-L147", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/deck/jobs/jobs.go", "func_name": "GetJobLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetJobLog returns the job logs, works for both kubernetes and jenkins agent types.", "docstring_tokens": ["GetJobLog", "returns", "the", "job", "logs", "works", "for", "both", "kubernetes", "and", "jenkins", "agent", "types", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/deck/jobs/jobs.go#L150-L182", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/branch_protection.go", "func_name": "unionStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// unionStrings merges the parent and child items together", "docstring_tokens": ["unionStrings", "merges", "the", "parent", "and", "child", "items", "together"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/branch_protection.go#L94-L104", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/branch_protection.go", "func_name": "Apply", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Apply returns a policy that merges the child into the parent", "docstring_tokens": ["Apply", "returns", "a", "policy", "that", "merges", "the", "child", "into", "the", "parent"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/branch_protection.go#L148-L156", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/branch_protection.go", "func_name": "GetOrg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOrg returns the org config after merging in any global policies.", "docstring_tokens": ["GetOrg", "returns", "the", "org", "config", "after", "merging", "in", "any", "global", "policies", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/branch_protection.go#L167-L175", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/branch_protection.go", "func_name": "GetRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRepo returns the repo config after merging in any org policies.", "docstring_tokens": ["GetRepo", "returns", "the", "repo", "config", "after", "merging", "in", "any", "org", "policies", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/branch_protection.go#L184-L192", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/branch_protection.go", "func_name": "GetBranch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBranch returns the branch config after merging in any repo policies.", "docstring_tokens": ["GetBranch", "returns", "the", "branch", "config", "after", "merging", "in", "any", "repo", "policies", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/branch_protection.go#L201-L212", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/branch_protection.go", "func_name": "GetPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPolicy returns the protection policy for the branch, after merging in presubmits.", "docstring_tokens": ["GetPolicy", "returns", "the", "protection", "policy", "for", "the", "branch", "after", "merging", "in", "presubmits", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/branch_protection.go#L235-L277", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/fetcher/issue-events.go", "func_name": "UpdateIssueEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateIssueEvents fetches all events until we find the most recent we\n// have in db, and saves everything in database", "docstring_tokens": ["UpdateIssueEvents", "fetches", "all", "events", "until", "we", "find", "the", "most", "recent", "we", "have", "in", "db", "and", "saves", "everything", "in", "database"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/fetcher/issue-events.go#L54-L70", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/build/controller.go", "func_name": "enqueueKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// enqueueKey schedules an item for reconciliation.", "docstring_tokens": ["enqueueKey", "schedules", "an", "item", "for", "reconciliation", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/build/controller.go#L271-L281", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/build/controller.go", "func_name": "prowJobStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// prowJobStatus returns the desired state and description based on the build status.", "docstring_tokens": ["prowJobStatus", "returns", "the", "desired", "state", "and", "description", "based", "on", "the", "build", "status", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/build/controller.go#L519-L542", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/build/controller.go", "func_name": "buildEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildEnv constructs the environment map for the job", "docstring_tokens": ["buildEnv", "constructs", "the", "environment", "map", "for", "the", "job"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/build/controller.go#L574-L576", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/build/controller.go", "func_name": "defaultArguments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// defaultArguments will append each arg to the template, except where the argument name is already defined.", "docstring_tokens": ["defaultArguments", "will", "append", "each", "arg", "to", "the", "template", "except", "where", "the", "argument", "name", "is", "already", "defined", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/build/controller.go#L579-L590", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/build/controller.go", "func_name": "defaultEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// defaultEnv adds the map of environment variables to the container, except keys already defined.", "docstring_tokens": ["defaultEnv", "adds", "the", "map", "of", "environment", "variables", "to", "the", "container", "except", "keys", "already", "defined", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/build/controller.go#L593-L604", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/build/controller.go", "func_name": "injectSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// injectSource adds the custom source container to call clonerefs correctly.\n//\n// Returns true if it added this container\n//\n// Does nothing if the build spec predefines Source", "docstring_tokens": ["injectSource", "adds", "the", "custom", "source", "container", "to", "call", "clonerefs", "correctly", ".", "Returns", "true", "if", "it", "added", "this", "container", "Does", "nothing", "if", "the", "build", "spec", "predefines", "Source"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/build/controller.go#L626-L659", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/build/controller.go", "func_name": "injectedSteps", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// injectedSteps returns initial containers, a final container and an additional volume.", "docstring_tokens": ["injectedSteps", "returns", "initial", "containers", "a", "final", "container", "and", "an", "additional", "volume", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/build/controller.go#L699-L719", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/build/controller.go", "func_name": "determineTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// determineTimeout decides the timeout value used for build", "docstring_tokens": ["determineTimeout", "decides", "the", "timeout", "value", "used", "for", "build"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/build/controller.go#L722-L731", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/build/controller.go", "func_name": "makeBuild", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeBuild creates a build from the prowjob, using the prowjob's buildspec.", "docstring_tokens": ["makeBuild", "creates", "a", "build", "from", "the", "prowjob", "using", "the", "prowjob", "s", "buildspec", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/build/controller.go#L757-L788", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/fetcher/conversion.go", "func_name": "newLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newLabels creates a new Label for each label in the issue", "docstring_tokens": ["newLabels", "creates", "a", "new", "Label", "for", "each", "label", "in", "the", "issue"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/fetcher/conversion.go#L114-L130", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/fetcher/conversion.go", "func_name": "newAssignees", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newAssignees creates a new Label for each label in the issue", "docstring_tokens": ["newAssignees", "creates", "a", "new", "Label", "for", "each", "label", "in", "the", "issue"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/fetcher/conversion.go#L133-L149", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/fetcher/conversion.go", "func_name": "NewIssueComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewIssueComment creates a Comment from a github.IssueComment", "docstring_tokens": ["NewIssueComment", "creates", "a", "Comment", "from", "a", "github", ".", "IssueComment"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/fetcher/conversion.go#L156-L179", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/gerrit/adapter/trigger.go", "func_name": "messageFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// messageFilter builds a filter for jobs based on the messageBody matching the trigger regex of the jobs.", "docstring_tokens": ["messageFilter", "builds", "a", "filter", "for", "jobs", "based", "on", "the", "messageBody", "matching", "the", "trigger", "regex", "of", "the", "jobs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/gerrit/adapter/trigger.go#L30-L52", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "IsSuccess", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsSuccess means the job passed", "docstring_tokens": ["IsSuccess", "means", "the", "job", "passed"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L130-L132", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "IsFailure", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsFailure means the job completed with problems.", "docstring_tokens": ["IsFailure", "means", "the", "job", "completed", "with", "problems", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L135-L137", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "IsAborted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsAborted means something stopped the job before it could finish.", "docstring_tokens": ["IsAborted", "means", "something", "stopped", "the", "job", "before", "it", "could", "finish", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L140-L142", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "ProwJobID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProwJobID extracts the ProwJob identifier for the\n// Jenkins build in order to correlate the build with\n// a ProwJob. If the build has an empty PROW_JOB_ID\n// it didn't start by prow.", "docstring_tokens": ["ProwJobID", "extracts", "the", "ProwJob", "identifier", "for", "the", "Jenkins", "build", "in", "order", "to", "correlate", "the", "build", "with", "a", "ProwJob", ".", "If", "the", "build", "has", "an", "empty", "PROW_JOB_ID", "it", "didn", "t", "start", "by", "prow", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L153-L167", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "BuildID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BuildID extracts the build identifier used for\n// placing and discovering build artifacts.\n// This identifier can either originate from tot\n// or the snowflake library, depending on how the\n// Jenkins operator is configured to run.\n// We return an empty string if we are dealing with\n// a build that does not have the ProwJobID set\n// explicitly, as in that case the Jenkins build has\n// not started by prow.", "docstring_tokens": ["BuildID", "extracts", "the", "build", "identifier", "used", "for", "placing", "and", "discovering", "build", "artifacts", ".", "This", "identifier", "can", "either", "originate", "from", "tot", "or", "the", "snowflake", "library", "depending", "on", "how", "the", "Jenkins", "operator", "is", "configured", "to", "run", ".", "We", "return", "an", "empty", "string", "if", "we", "are", "dealing", "with", "a", "build", "that", "does", "not", "have", "the", "ProwJobID", "set", "explicitly", "as", "in", "that", "case", "the", "Jenkins", "build", "has", "not", "started", "by", "prow", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L178-L199", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "CrumbRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CrumbRequest requests a CSRF protection token from Jenkins to\n// use it in subsequent requests. Required for Jenkins masters that\n// prevent cross site request forgery exploits.", "docstring_tokens": ["CrumbRequest", "requests", "a", "CSRF", "protection", "token", "from", "Jenkins", "to", "use", "it", "in", "subsequent", "requests", ".", "Required", "for", "Jenkins", "masters", "that", "prevent", "cross", "site", "request", "forgery", "exploits", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L295-L314", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "measure", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// measure records metrics about the provided method, path, and code.\n// start needs to be recorded before doing the request.", "docstring_tokens": ["measure", "records", "metrics", "about", "the", "provided", "method", "path", "and", "code", ".", "start", "needs", "to", "be", "recorded", "before", "doing", "the", "request", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L318-L324", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "GetSkipMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSkipMetrics fetches the data found in the provided path. It returns the\n// content of the response or any errors that occurred during the request or\n// http errors. Metrics will not be gathered for this request.", "docstring_tokens": ["GetSkipMetrics", "fetches", "the", "data", "found", "in", "the", "provided", "path", ".", "It", "returns", "the", "content", "of", "the", "response", "or", "any", "errors", "that", "occurred", "during", "the", "request", "or", "http", "errors", ".", "Metrics", "will", "not", "be", "gathered", "for", "this", "request", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L329-L335", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get fetches the data found in the provided path. It returns the\n// content of the response or any errors that occurred during the\n// request or http errors.", "docstring_tokens": ["Get", "fetches", "the", "data", "found", "in", "the", "provided", "path", ".", "It", "returns", "the", "content", "of", "the", "response", "or", "any", "errors", "that", "occurred", "during", "the", "request", "or", "http", "errors", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L340-L346", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "request", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// request executes a request with the provided method and path.\n// It retries on transport failures and 500s. measure is provided\n// to enable or disable gathering metrics for specific requests\n// to avoid high-cardinality metrics.", "docstring_tokens": ["request", "executes", "a", "request", "with", "the", "provided", "method", "and", "path", ".", "It", "retries", "on", "transport", "failures", "and", "500s", ".", "measure", "is", "provided", "to", "enable", "or", "disable", "gathering", "metrics", "for", "specific", "requests", "to", "avoid", "high", "-", "cardinality", "metrics", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L368-L397", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "doRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// doRequest executes a request with the provided method and path\n// exactly once. It sets up authentication if the jenkins client\n// is configured accordingly. It's up to callers of this function\n// to build retries and error handling.", "docstring_tokens": ["doRequest", "executes", "a", "request", "with", "the", "provided", "method", "and", "path", "exactly", "once", ".", "It", "sets", "up", "authentication", "if", "the", "jenkins", "client", "is", "configured", "accordingly", ".", "It", "s", "up", "to", "callers", "of", "this", "function", "to", "build", "retries", "and", "error", "handling", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L403-L420", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "getJobName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getJobName generates the correct job name for this job type", "docstring_tokens": ["getJobName", "generates", "the", "correct", "job", "name", "for", "this", "job", "type"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L423-L433", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "getBuildPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getBuildPath builds a path to trigger a regular build for this job", "docstring_tokens": ["getBuildPath", "builds", "a", "path", "to", "trigger", "a", "regular", "build", "for", "this", "job"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L444-L449", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "GetJobInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetJobInfo retrieves Jenkins job information", "docstring_tokens": ["GetJobInfo", "retrieves", "Jenkins", "job", "information"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L460-L480", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "JobParameterized", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JobParameterized tells us if the Jenkins job for this ProwJob is parameterized", "docstring_tokens": ["JobParameterized", "tells", "us", "if", "the", "Jenkins", "job", "for", "this", "ProwJob", "is", "parameterized"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L483-L491", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "EnsureBuildableJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnsureBuildableJob attempts to detect a job that hasn't yet ran and populated\n// its parameters. If detected, it tries to run a build until the job parameters\n// are processed, then it aborts the build.", "docstring_tokens": ["EnsureBuildableJob", "attempts", "to", "detect", "a", "job", "that", "hasn", "t", "yet", "ran", "and", "populated", "its", "parameters", ".", "If", "detected", "it", "tries", "to", "run", "a", "build", "until", "the", "job", "parameters", "are", "processed", "then", "it", "aborts", "the", "build", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L496-L565", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "LaunchBuild", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LaunchBuild launches a regular or parameterized Jenkins build, depending on\n// whether or not we have `params` to POST", "docstring_tokens": ["LaunchBuild", "launches", "a", "regular", "or", "parameterized", "Jenkins", "build", "depending", "on", "whether", "or", "not", "we", "have", "params", "to", "POST"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L569-L593", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "Build", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Build triggers a Jenkins build for the provided ProwJob. The name of\n// the ProwJob is going to be used as the Prow Job ID parameter that will\n// help us track the build before it's scheduled by Jenkins.", "docstring_tokens": ["Build", "triggers", "a", "Jenkins", "build", "for", "the", "provided", "ProwJob", ".", "The", "name", "of", "the", "ProwJob", "is", "going", "to", "be", "used", "as", "the", "Prow", "Job", "ID", "parameter", "that", "will", "help", "us", "track", "the", "build", "before", "it", "s", "scheduled", "by", "Jenkins", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L598-L601", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "BuildFromSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BuildFromSpec triggers a Jenkins build for the provided ProwJobSpec.\n// prowJobID helps us track the build before it's scheduled by Jenkins.", "docstring_tokens": ["BuildFromSpec", "triggers", "a", "Jenkins", "build", "for", "the", "provided", "ProwJobSpec", ".", "prowJobID", "helps", "us", "track", "the", "build", "before", "it", "s", "scheduled", "by", "Jenkins", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L605-L623", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "GetEnqueuedBuilds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEnqueuedBuilds lists all enqueued builds for the provided jobs.", "docstring_tokens": ["GetEnqueuedBuilds", "lists", "all", "enqueued", "builds", "for", "the", "provided", "jobs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L674-L709", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/jenkins.go", "func_name": "Abort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Abort aborts the provided Jenkins build for job.", "docstring_tokens": ["Abort", "aborts", "the", "provided", "Jenkins", "build", "for", "job", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/jenkins.go#L745-L759", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/tot.go", "func_name": "PresubmitToJobSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PresubmitToJobSpec generates a downwardapi.JobSpec out of a Presubmit.\n// Useful for figuring out GCS paths when parsing jobs out\n// of a prow config.", "docstring_tokens": ["PresubmitToJobSpec", "generates", "a", "downwardapi", ".", "JobSpec", "out", "of", "a", "Presubmit", ".", "Useful", "for", "figuring", "out", "GCS", "paths", "when", "parsing", "jobs", "out", "of", "a", "prow", "config", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/tot.go#L51-L56", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/tot.go", "func_name": "PostsubmitToJobSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PostsubmitToJobSpec generates a downwardapi.JobSpec out of a Postsubmit.\n// Useful for figuring out GCS paths when parsing jobs out\n// of a prow config.", "docstring_tokens": ["PostsubmitToJobSpec", "generates", "a", "downwardapi", ".", "JobSpec", "out", "of", "a", "Postsubmit", ".", "Useful", "for", "figuring", "out", "GCS", "paths", "when", "parsing", "jobs", "out", "of", "a", "prow", "config", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/tot.go#L61-L66", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/tot.go", "func_name": "PeriodicToJobSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeriodicToJobSpec generates a downwardapi.JobSpec out of a Periodic.\n// Useful for figuring out GCS paths when parsing jobs out\n// of a prow config.", "docstring_tokens": ["PeriodicToJobSpec", "generates", "a", "downwardapi", ".", "JobSpec", "out", "of", "a", "Periodic", ".", "Useful", "for", "figuring", "out", "GCS", "paths", "when", "parsing", "jobs", "out", "of", "a", "prow", "config", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/tot.go#L71-L76", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/tot.go", "func_name": "GetBuildID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBuildID calls out to `tot` in order\n// to vend build identifier for the job", "docstring_tokens": ["GetBuildID", "calls", "out", "to", "tot", "in", "order", "to", "vend", "build", "identifier", "for", "the", "job"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/tot.go#L80-L114", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/coverage/downloader/downloader.go", "func_name": "listGcsObjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//listGcsObjects get the slice of gcs objects under a given path", "docstring_tokens": ["listGcsObjects", "get", "the", "slice", "of", "gcs", "objects", "under", "a", "given", "path"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/coverage/downloader/downloader.go#L41-L65", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/coverage/downloader/downloader.go", "func_name": "FindBaseProfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindBaseProfile finds the coverage profile file from the latest healthy build\n// stored in given gcs directory", "docstring_tokens": ["FindBaseProfile", "finds", "the", "coverage", "profile", "file", "from", "the", "latest", "healthy", "build", "stored", "in", "given", "gcs", "directory"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/coverage/downloader/downloader.go#L79-L108", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/coverage/downloader/downloader.go", "func_name": "sortBuilds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sortBuilds converts all build from str to int and sorts all builds in descending order and\n// returns the sorted slice", "docstring_tokens": ["sortBuilds", "converts", "all", "build", "from", "str", "to", "int", "and", "sorts", "all", "builds", "in", "descending", "order", "and", "returns", "the", "sorted", "slice"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/coverage/downloader/downloader.go#L112-L124", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "maintenance/aws-janitor/regions/regions.go", "func_name": "GetAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAll retrieves all regions from the AWS API", "docstring_tokens": ["GetAll", "retrieves", "all", "regions", "from", "the", "AWS", "API"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/maintenance/aws-janitor/regions/regions.go#L37-L48", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/commentpruner/commentpruner.go", "func_name": "NewEventClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEventClient creates an EventClient struct. This should be used once per webhook event.", "docstring_tokens": ["NewEventClient", "creates", "an", "EventClient", "struct", ".", "This", "should", "be", "used", "once", "per", "webhook", "event", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/commentpruner/commentpruner.go#L54-L63", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/commentpruner/commentpruner.go", "func_name": "PruneComments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PruneComments fetches issue comments if they have not yet been fetched for this webhook event\n// and then deletes any bot comments indicated by the func 'shouldPrune'.", "docstring_tokens": ["PruneComments", "fetches", "issue", "comments", "if", "they", "have", "not", "yet", "been", "fetched", "for", "this", "webhook", "event", "and", "then", "deletes", "any", "bot", "comments", "indicated", "by", "the", "func", "shouldPrune", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/commentpruner/commentpruner.go#L67-L104", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/respond.go", "func_name": "FormatResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatResponse nicely formats a response to a generic reason.", "docstring_tokens": ["FormatResponse", "nicely", "formats", "a", "response", "to", "a", "generic", "reason", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/respond.go#L36-L47", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/respond.go", "func_name": "FormatSimpleResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatSimpleResponse formats a response that does not warrant additional explanation in the\n// details section.", "docstring_tokens": ["FormatSimpleResponse", "formats", "a", "response", "that", "does", "not", "warrant", "additional", "explanation", "in", "the", "details", "section", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/respond.go#L51-L60", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/respond.go", "func_name": "FormatICResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatICResponse nicely formats a response to an issue comment.", "docstring_tokens": ["FormatICResponse", "nicely", "formats", "a", "response", "to", "an", "issue", "comment", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/respond.go#L63-L65", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/respond.go", "func_name": "FormatResponseRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatResponseRaw nicely formats a response for one does not have an issue comment", "docstring_tokens": ["FormatResponseRaw", "nicely", "formats", "a", "response", "for", "one", "does", "not", "have", "an", "issue", "comment"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/respond.go#L68-L79", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/gcsupload/options.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate ensures that the set of options are\n// self-consistent and valid.", "docstring_tokens": ["Validate", "ensures", "that", "the", "set", "of", "options", "are", "self", "-", "consistent", "and", "valid", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/gcsupload/options.go#L59-L76", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/gcsupload/options.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode will encode the set of options in the format that\n// is expected for the configuration environment variable.", "docstring_tokens": ["Encode", "will", "encode", "the", "set", "of", "options", "in", "the", "format", "that", "is", "expected", "for", "the", "configuration", "environment", "variable", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/gcsupload/options.go#L117-L120", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "RegisterIssueHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterIssueHandler registers a plugin's github.IssueEvent handler.", "docstring_tokens": ["RegisterIssueHandler", "registers", "a", "plugin", "s", "github", ".", "IssueEvent", "handler", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L65-L68", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "RegisterIssueCommentHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterIssueCommentHandler registers a plugin's github.IssueCommentEvent handler.", "docstring_tokens": ["RegisterIssueCommentHandler", "registers", "a", "plugin", "s", "github", ".", "IssueCommentEvent", "handler", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L74-L77", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "RegisterPullRequestHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterPullRequestHandler registers a plugin's github.PullRequestEvent handler.", "docstring_tokens": ["RegisterPullRequestHandler", "registers", "a", "plugin", "s", "github", ".", "PullRequestEvent", "handler", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L83-L86", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "RegisterStatusEventHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterStatusEventHandler registers a plugin's github.StatusEvent handler.", "docstring_tokens": ["RegisterStatusEventHandler", "registers", "a", "plugin", "s", "github", ".", "StatusEvent", "handler", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L92-L95", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "RegisterPushEventHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterPushEventHandler registers a plugin's github.PushEvent handler.", "docstring_tokens": ["RegisterPushEventHandler", "registers", "a", "plugin", "s", "github", ".", "PushEvent", "handler", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L101-L104", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "RegisterReviewEventHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterReviewEventHandler registers a plugin's github.ReviewEvent handler.", "docstring_tokens": ["RegisterReviewEventHandler", "registers", "a", "plugin", "s", "github", ".", "ReviewEvent", "handler", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L110-L113", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "RegisterReviewCommentEventHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterReviewCommentEventHandler registers a plugin's github.ReviewCommentEvent handler.", "docstring_tokens": ["RegisterReviewCommentEventHandler", "registers", "a", "plugin", "s", "github", ".", "ReviewCommentEvent", "handler", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L119-L122", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "RegisterGenericCommentHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterGenericCommentHandler registers a plugin's github.GenericCommentEvent handler.", "docstring_tokens": ["RegisterGenericCommentHandler", "registers", "a", "plugin", "s", "github", ".", "GenericCommentEvent", "handler", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L128-L131", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "NewAgent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAgent bootstraps a new config.Agent struct from the passed dependencies.", "docstring_tokens": ["NewAgent", "bootstraps", "a", "new", "config", ".", "Agent", "struct", "from", "the", "passed", "dependencies", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L156-L170", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "InitializeCommentPruner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitializeCommentPruner attaches a commentpruner.EventClient to the agent to handle\n// pruning comments.", "docstring_tokens": ["InitializeCommentPruner", "attaches", "a", "commentpruner", ".", "EventClient", "to", "the", "agent", "to", "handle", "pruning", "comments", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L174-L179", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "CommentPruner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CommentPruner will return the commentpruner.EventClient attached to the agent or an error\n// if one is not attached.", "docstring_tokens": ["CommentPruner", "will", "return", "the", "commentpruner", ".", "EventClient", "attached", "to", "the", "agent", "or", "an", "error", "if", "one", "is", "not", "attached", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L183-L188", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load attempts to load config from the path. It returns an error if either\n// the file can't be read or the configuration is invalid.", "docstring_tokens": ["Load", "attempts", "to", "load", "config", "from", "the", "path", ".", "It", "returns", "an", "error", "if", "either", "the", "file", "can", "t", "be", "read", "or", "the", "configuration", "is", "invalid", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L208-L223", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "Config", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Config returns the agent current Configuration.", "docstring_tokens": ["Config", "returns", "the", "agent", "current", "Configuration", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L226-L230", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set attempts to set the plugins that are enabled on repos. Plugins are listed\n// as a map from repositories to the list of plugins that are enabled on them.\n// Specifying simply an org name will also work, and will enable the plugin on\n// all repos in the org.", "docstring_tokens": ["Set", "attempts", "to", "set", "the", "plugins", "that", "are", "enabled", "on", "repos", ".", "Plugins", "are", "listed", "as", "a", "map", "from", "repositories", "to", "the", "list", "of", "plugins", "that", "are", "enabled", "on", "them", ".", "Specifying", "simply", "an", "org", "name", "will", "also", "work", "and", "will", "enable", "the", "plugin", "on", "all", "repos", "in", "the", "org", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L236-L240", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts polling path for plugin config. If the first attempt fails,\n// then start returns the error. Future errors will halt updates but not stop.", "docstring_tokens": ["Start", "starts", "polling", "path", "for", "plugin", "config", ".", "If", "the", "first", "attempt", "fails", "then", "start", "returns", "the", "error", ".", "Future", "errors", "will", "halt", "updates", "but", "not", "stop", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L244-L257", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "GenericCommentHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenericCommentHandlers returns a map of plugin names to handlers for the repo.", "docstring_tokens": ["GenericCommentHandlers", "returns", "a", "map", "of", "plugin", "names", "to", "handlers", "for", "the", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L260-L271", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "IssueHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IssueHandlers returns a map of plugin names to handlers for the repo.", "docstring_tokens": ["IssueHandlers", "returns", "a", "map", "of", "plugin", "names", "to", "handlers", "for", "the", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L274-L285", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "IssueCommentHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IssueCommentHandlers returns a map of plugin names to handlers for the repo.", "docstring_tokens": ["IssueCommentHandlers", "returns", "a", "map", "of", "plugin", "names", "to", "handlers", "for", "the", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L288-L300", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "PullRequestHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PullRequestHandlers returns a map of plugin names to handlers for the repo.", "docstring_tokens": ["PullRequestHandlers", "returns", "a", "map", "of", "plugin", "names", "to", "handlers", "for", "the", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L303-L315", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "ReviewEventHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReviewEventHandlers returns a map of plugin names to handlers for the repo.", "docstring_tokens": ["ReviewEventHandlers", "returns", "a", "map", "of", "plugin", "names", "to", "handlers", "for", "the", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L318-L330", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "ReviewCommentEventHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReviewCommentEventHandlers returns a map of plugin names to handlers for the repo.", "docstring_tokens": ["ReviewCommentEventHandlers", "returns", "a", "map", "of", "plugin", "names", "to", "handlers", "for", "the", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L333-L345", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "StatusEventHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StatusEventHandlers returns a map of plugin names to handlers for the repo.", "docstring_tokens": ["StatusEventHandlers", "returns", "a", "map", "of", "plugin", "names", "to", "handlers", "for", "the", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L348-L360", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "PushEventHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushEventHandlers returns a map of plugin names to handlers for the repo.", "docstring_tokens": ["PushEventHandlers", "returns", "a", "map", "of", "plugin", "names", "to", "handlers", "for", "the", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L363-L375", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/plugins.go", "func_name": "EventsForPlugin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EventsForPlugin returns the registered events for the passed plugin.", "docstring_tokens": ["EventsForPlugin", "returns", "the", "registered", "events", "for", "the", "passed", "plugin", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/plugins.go#L389-L416", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "experiment/resultstore/main.go", "func_name": "insertLink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// insertLink attempts to set metadata.links.resultstore.url to viewURL.\n//\n// returns true if started metadata was updated.", "docstring_tokens": ["insertLink", "attempts", "to", "set", "metadata", ".", "links", ".", "resultstore", ".", "url", "to", "viewURL", ".", "returns", "true", "if", "started", "metadata", "was", "updated", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/experiment/resultstore/main.go#L487-L526", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/external-plugins/cherrypicker/server.go", "func_name": "HelpProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HelpProvider construct the pluginhelp.PluginHelp for this plugin.", "docstring_tokens": ["HelpProvider", "construct", "the", "pluginhelp", ".", "PluginHelp", "for", "this", "plugin", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/external-plugins/cherrypicker/server.go#L58-L71", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/external-plugins/cherrypicker/server.go", "func_name": "getPatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getPatch gets the patch for the provided PR and creates a local\n// copy of it. It returns its location in the filesystem and any\n// encountered error.", "docstring_tokens": ["getPatch", "gets", "the", "patch", "for", "the", "provided", "PR", "and", "creates", "a", "local", "copy", "of", "it", ".", "It", "returns", "its", "location", "in", "the", "filesystem", "and", "any", "encountered", "error", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/external-plugins/cherrypicker/server.go#L484-L499", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/external-plugins/cherrypicker/server.go", "func_name": "releaseNoteFromParentPR", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// releaseNoteNoteFromParentPR gets the release note from the\n// parent PR and formats it as per the PR template so that\n// it can be copied to the cherry-pick PR.", "docstring_tokens": ["releaseNoteNoteFromParentPR", "gets", "the", "release", "note", "from", "the", "parent", "PR", "and", "formats", "it", "as", "per", "the", "PR", "template", "so", "that", "it", "can", "be", "copied", "to", "the", "cherry", "-", "pick", "PR", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/external-plugins/cherrypicker/server.go#L508-L514", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/hmac.go", "func_name": "ValidatePayload", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidatePayload ensures that the request payload signature matches the key.", "docstring_tokens": ["ValidatePayload", "ensures", "that", "the", "request", "payload", "signature", "matches", "the", "key", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/hmac.go#L27-L40", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/hmac.go", "func_name": "PayloadSignature", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PayloadSignature returns the signature that matches the payload.", "docstring_tokens": ["PayloadSignature", "returns", "the", "signature", "that", "matches", "the", "payload", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/hmac.go#L43-L48", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/peribolos/main.go", "func_name": "updateString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updateString will return true and set have to want iff they are set and different.", "docstring_tokens": ["updateString", "will", "return", "true", "and", "set", "have", "to", "want", "iff", "they", "are", "set", "and", "different", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/peribolos/main.go#L686-L697", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/peribolos/main.go", "func_name": "updateBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updateBool will return true and set have to want iff they are set and different.", "docstring_tokens": ["updateBool", "will", "return", "true", "and", "set", "have", "to", "want", "iff", "they", "are", "set", "and", "different", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/peribolos/main.go#L700-L711", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/peribolos/main.go", "func_name": "configureOrgMeta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// configureOrgMeta will update github to have the non-nil wanted metadata values.", "docstring_tokens": ["configureOrgMeta", "will", "update", "github", "to", "have", "the", "non", "-", "nil", "wanted", "metadata", "values", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/peribolos/main.go#L719-L744", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/peribolos/main.go", "func_name": "configureTeamRepos", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// configureTeamRepos updates the list of repos that the team has permissions for when necessary", "docstring_tokens": ["configureTeamRepos", "updates", "the", "list", "of", "repos", "that", "the", "team", "has", "permissions", "for", "when", "necessary"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/peribolos/main.go#L904-L951", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pubsub/reporter/reporter.go", "func_name": "ShouldReport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShouldReport tells if a prowjob should be reported by this reporter", "docstring_tokens": ["ShouldReport", "tells", "if", "a", "prowjob", "should", "be", "reported", "by", "this", "reporter"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pubsub/reporter/reporter.go#L85-L88", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/gcsupload/run.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run will upload files to GCS as prescribed by\n// the options. Any extra files can be passed as\n// a parameter and will have the prefix prepended\n// to their destination in GCS, so the caller can\n// operate relative to the base of the GCS dir.", "docstring_tokens": ["Run", "will", "upload", "files", "to", "GCS", "as", "prescribed", "by", "the", "options", ".", "Any", "extra", "files", "can", "be", "passed", "as", "a", "parameter", "and", "will", "have", "the", "prefix", "prepended", "to", "their", "destination", "in", "GCS", "so", "the", "caller", "can", "operate", "relative", "to", "the", "base", "of", "the", "GCS", "dir", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/gcsupload/run.go#L41-L62", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/logrusutil/logrusutil.go", "func_name": "Format", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Format implements logrus.Formatter's Format. We allocate a new Fields\n// map in order to not modify the caller's Entry, as that is not a thread\n// safe operation.", "docstring_tokens": ["Format", "implements", "logrus", ".", "Formatter", "s", "Format", ".", "We", "allocate", "a", "new", "Fields", "map", "in", "order", "to", "not", "modify", "the", "caller", "s", "Entry", "as", "that", "is", "not", "a", "thread", "safe", "operation", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/logrusutil/logrusutil.go#L50-L65", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/sql/model.go", "func_name": "FindLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindLabels returns the list of labels matching the regex", "docstring_tokens": ["FindLabels", "returns", "the", "list", "of", "labels", "matching", "the", "regex"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/sql/model.go#L42-L52", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/initupload/options.go", "func_name": "AddFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFlags binds flags to options.", "docstring_tokens": ["AddFlags", "binds", "flags", "to", "options", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/initupload/options.go#L59-L62", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/githuboauth/githuboauth.go", "func_name": "NewAgent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAgent returns a new GitHub OAuth Agent.", "docstring_tokens": ["NewAgent", "returns", "a", "new", "GitHub", "OAuth", "Agent", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/githuboauth/githuboauth.go#L84-L89", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/githuboauth/githuboauth.go", "func_name": "HandleLogin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleLogin handles GitHub login request from front-end. It starts a new git oauth session and\n// redirect user to GitHub OAuth end-point for authentication.", "docstring_tokens": ["HandleLogin", "handles", "GitHub", "login", "request", "from", "front", "-", "end", ".", "It", "starts", "a", "new", "git", "oauth", "session", "and", "redirect", "user", "to", "GitHub", "OAuth", "end", "-", "point", "for", "authentication", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/githuboauth/githuboauth.go#L93-L115", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/githuboauth/githuboauth.go", "func_name": "HandleLogout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleLogout handles GitHub logout request from front-end. It invalidates cookie sessions and\n// redirect back to the front page.", "docstring_tokens": ["HandleLogout", "handles", "GitHub", "logout", "request", "from", "front", "-", "end", ".", "It", "invalidates", "cookie", "sessions", "and", "redirect", "back", "to", "the", "front", "page", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/githuboauth/githuboauth.go#L119-L140", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/githuboauth/githuboauth.go", "func_name": "serverError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handles server errors.", "docstring_tokens": ["Handles", "server", "errors", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/githuboauth/githuboauth.go#L227-L231", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/resources_config_crd.go", "func_name": "FromItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromItem implements the Object interface", "docstring_tokens": ["FromItem", "implements", "the", "Object", "interface"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/resources_config_crd.go#L116-L121", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/resources_config_crd.go", "func_name": "GetItems", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetItems implements the Collection interface", "docstring_tokens": ["GetItems", "implements", "the", "Collection", "interface"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/resources_config_crd.go#L124-L130", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/resources_config_crd.go", "func_name": "SetItems", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetItems implements the Collection interface", "docstring_tokens": ["SetItems", "implements", "the", "Collection", "interface"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/resources_config_crd.go#L133-L139", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/types.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText validates the text is a valid string", "docstring_tokens": ["UnmarshalText", "validates", "the", "text", "is", "a", "valid", "string"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/types.go#L342-L349", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/types.go", "func_name": "IsAssignee", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsAssignee checks if a user is assigned to the issue.", "docstring_tokens": ["IsAssignee", "checks", "if", "a", "user", "is", "assigned", "to", "the", "issue", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/types.go#L529-L536", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/types.go", "func_name": "IsAuthor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsAuthor checks if a user is the author of the issue.", "docstring_tokens": ["IsAuthor", "checks", "if", "a", "user", "is", "the", "author", "of", "the", "issue", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/types.go#L539-L541", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/types.go", "func_name": "HasLabel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLabel checks if an issue has a given label.", "docstring_tokens": ["HasLabel", "checks", "if", "an", "issue", "has", "a", "given", "label", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/types.go#L549-L556", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/types.go", "func_name": "Branch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Branch returns the name of the branch to which the user pushed.", "docstring_tokens": ["Branch", "returns", "the", "name", "of", "the", "branch", "to", "which", "the", "user", "pushed", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/types.go#L613-L617", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/report/report.go", "func_name": "truncate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// truncate converts \"really long messages\" into \"really ... messages\".", "docstring_tokens": ["truncate", "converts", "really", "long", "messages", "into", "really", "...", "messages", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/report/report.go#L74-L82", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/report/report.go", "func_name": "reportStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// reportStatus should be called on any prowjob status changes", "docstring_tokens": ["reportStatus", "should", "be", "called", "on", "any", "prowjob", "status", "changes"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/report/report.go#L85-L106", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/report/report.go", "func_name": "parseIssueComments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseIssueComments returns a list of comments to delete, a list of table\n// entries, and the ID of the comment to update. If there are no table entries\n// then don't make a new comment. Otherwise, if the comment to update is 0,\n// create a new comment.", "docstring_tokens": ["parseIssueComments", "returns", "a", "list", "of", "comments", "to", "delete", "a", "list", "of", "table", "entries", "and", "the", "ID", "of", "the", "comment", "to", "update", ".", "If", "there", "are", "no", "table", "entries", "then", "don", "t", "make", "a", "new", "comment", ".", "Otherwise", "if", "the", "comment", "to", "update", "is", "0", "create", "a", "new", "comment", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/report/report.go#L196-L264", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/report/report.go", "func_name": "createComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createComment take a ProwJob and a list of entries generated with\n// createEntry and returns a nicely formatted comment. It may fail if template\n// execution fails.", "docstring_tokens": ["createComment", "take", "a", "ProwJob", "and", "a", "list", "of", "entries", "generated", "with", "createEntry", "and", "returns", "a", "nicely", "formatted", "comment", ".", "It", "may", "fail", "if", "template", "execution", "fails", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/report/report.go#L278-L308", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/lenses/junit/lens.go", "func_name": "Config", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Config returns the lens's configuration.", "docstring_tokens": ["Config", "returns", "the", "lens", "s", "configuration", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/lenses/junit/lens.go#L48-L54", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/lenses/junit/lens.go", "func_name": "Callback", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Callback does nothing.", "docstring_tokens": ["Callback", "does", "nothing", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/lenses/junit/lens.go#L70-L72", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/clone/format.go", "func_name": "FormatRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatRecord describes the record in a human-readable\n// manner for inclusion into build logs", "docstring_tokens": ["FormatRecord", "describes", "the", "record", "in", "a", "human", "-", "readable", "manner", "for", "inclusion", "into", "build", "logs"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/clone/format.go#L26-L55", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/client.go", "func_name": "Namespace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Namespace returns a copy of the client pointing at the specified namespace.", "docstring_tokens": ["Namespace", "returns", "a", "copy", "of", "the", "client", "pointing", "at", "the", "specified", "namespace", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/client.go#L79-L83", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/client.go", "func_name": "NewFakeClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFakeClient creates a client that doesn't do anything. If you provide a\n// deck URL then the client will hit that for the supported calls.", "docstring_tokens": ["NewFakeClient", "creates", "a", "client", "that", "doesn", "t", "do", "anything", ".", "If", "you", "provide", "a", "deck", "URL", "then", "the", "client", "will", "hit", "that", "for", "the", "supported", "calls", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/client.go#L261-L268", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/client.go", "func_name": "NewClientInCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClientInCluster creates a Client that works from within a pod.", "docstring_tokens": ["NewClientInCluster", "creates", "a", "Client", "that", "works", "from", "within", "a", "pod", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/client.go#L271-L300", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/client.go", "func_name": "NewClientFromFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClientFromFile reads a Cluster object at clusterPath and returns an\n// authenticated client using the keys within.", "docstring_tokens": ["NewClientFromFile", "reads", "a", "Cluster", "object", "at", "clusterPath", "and", "returns", "an", "authenticated", "client", "using", "the", "keys", "within", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/client.go#L321-L331", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient returns an authenticated Client using the keys in the Cluster.", "docstring_tokens": ["NewClient", "returns", "an", "authenticated", "Client", "using", "the", "keys", "in", "the", "Cluster", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/client.go#L385-L413", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/client.go", "func_name": "ReplaceConfigMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReplaceConfigMap puts the configmap into name.\n//\n// Analogous to kubectl replace configmap\n//\n// If config.Namespace is empty, the client's specified namespace is used.\n// Returns the content returned by the apiserver", "docstring_tokens": ["ReplaceConfigMap", "puts", "the", "configmap", "into", "name", ".", "Analogous", "to", "kubectl", "replace", "configmap", "If", "config", ".", "Namespace", "is", "empty", "the", "client", "s", "specified", "namespace", "is", "used", ".", "Returns", "the", "content", "returned", "by", "the", "apiserver"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/client.go#L617-L631", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "greenhouse/diskutil/diskutil.go", "func_name": "GetDiskUsage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDiskUsage wraps syscall.Statfs for usage in GCing the disk", "docstring_tokens": ["GetDiskUsage", "wraps", "syscall", ".", "Statfs", "for", "usage", "in", "GCing", "the", "disk"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/greenhouse/diskutil/diskutil.go#L29-L39", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "greenhouse/diskutil/diskutil.go", "func_name": "GetATime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetATime the atime for a file, logging errors instead of failing\n// and returning defaultTime instead", "docstring_tokens": ["GetATime", "the", "atime", "for", "a", "file", "logging", "errors", "instead", "of", "failing", "and", "returning", "defaultTime", "instead"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/greenhouse/diskutil/diskutil.go#L43-L50", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/lenses/lenses.go", "func_name": "RegisterLens", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterLens registers new viewers", "docstring_tokens": ["RegisterLens", "registers", "new", "viewers"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/lenses/lenses.go#L96-L112", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/lenses/lenses.go", "func_name": "GetLens", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLens returns a Lens by name, if it exists; otherwise it returns an error.", "docstring_tokens": ["GetLens", "returns", "a", "Lens", "by", "name", "if", "it", "exists", ";", "otherwise", "it", "returns", "an", "error", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/lenses/lenses.go#L115-L121", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/lenses/lenses.go", "func_name": "LastNLines", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LastNLines reads the last n lines from an artifact.", "docstring_tokens": ["LastNLines", "reads", "the", "last", "n", "lines", "from", "an", "artifact", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/lenses/lenses.go#L130-L133", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/slack/client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient creates a slack client with an API token.", "docstring_tokens": ["NewClient", "creates", "a", "slack", "client", "with", "an", "API", "token", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/slack/client.go#L53-L58", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/slack/client.go", "func_name": "WriteMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteMessage adds text to channel", "docstring_tokens": ["WriteMessage", "adds", "text", "to", "channel"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/slack/client.go#L102-L114", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "maintenance/aws-janitor/resources/nat_gateway.go", "func_name": "MarkAndSweep", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarkAndSweep looks at the provided set, and removes resources older than its TTL that have been previously tagged.", "docstring_tokens": ["MarkAndSweep", "looks", "at", "the", "provided", "set", "and", "removes", "resources", "older", "than", "its", "TTL", "that", "have", "been", "previously", "tagged", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/maintenance/aws-janitor/resources/nat_gateway.go#L36-L61", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "maintenance/aws-janitor/resources/nat_gateway.go", "func_name": "ListAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListAll populates a set will all available NATGateway resources.", "docstring_tokens": ["ListAll", "populates", "a", "set", "will", "all", "available", "NATGateway", "resources", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/maintenance/aws-janitor/resources/nat_gateway.go#L64-L85", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/client/client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient creates a Boskos client for the specified URL and resource owner.\n//\n// Clients created with this function default to retrying failed connection\n// attempts three times with a ten second pause between each attempt.", "docstring_tokens": ["NewClient", "creates", "a", "Boskos", "client", "for", "the", "specified", "URL", "and", "resource", "owner", ".", "Clients", "created", "with", "this", "function", "default", "to", "retrying", "failed", "connection", "attempts", "three", "times", "with", "a", "ten", "second", "pause", "between", "each", "attempt", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/client/client.go#L72-L106", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/client/client.go", "func_name": "Acquire", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// public method\n// Acquire asks boskos for a resource of certain type in certain state, and set the resource to dest state.\n// Returns the resource on success.", "docstring_tokens": ["public", "method", "Acquire", "asks", "boskos", "for", "a", "resource", "of", "certain", "type", "in", "certain", "state", "and", "set", "the", "resource", "to", "dest", "state", ".", "Returns", "the", "resource", "on", "success", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/client/client.go#L112-L124", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/client/client.go", "func_name": "AcquireWait", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AcquireWait blocks until Acquire returns the specified resource or the\n// provided context is cancelled or its deadline exceeded.", "docstring_tokens": ["AcquireWait", "blocks", "until", "Acquire", "returns", "the", "specified", "resource", "or", "the", "provided", "context", "is", "cancelled", "or", "its", "deadline", "exceeded", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/client/client.go#L128-L149", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/client/client.go", "func_name": "AcquireByState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AcquireByState asks boskos for a resources of certain type, and set the resource to dest state.\n// Returns a list of resources on success.", "docstring_tokens": ["AcquireByState", "asks", "boskos", "for", "a", "resources", "of", "certain", "type", "and", "set", "the", "resource", "to", "dest", "state", ".", "Returns", "a", "list", "of", "resources", "on", "success", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/client/client.go#L153-L164", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/client/client.go", "func_name": "ReleaseAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReleaseAll returns all resources hold by the client back to boskos and set them to dest state.", "docstring_tokens": ["ReleaseAll", "returns", "all", "resources", "hold", "by", "the", "client", "back", "to", "boskos", "and", "set", "them", "to", "dest", "state", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/client/client.go#L193-L212", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/client/client.go", "func_name": "ReleaseOne", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReleaseOne returns one of owned resources back to boskos and set it to dest state.", "docstring_tokens": ["ReleaseOne", "returns", "one", "of", "owned", "resources", "back", "to", "boskos", "and", "set", "it", "to", "dest", "state", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/client/client.go#L215-L227", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/client/client.go", "func_name": "UpdateAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateAll signals update for all resources hold by the client.", "docstring_tokens": ["UpdateAll", "signals", "update", "for", "all", "resources", "hold", "by", "the", "client", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/client/client.go#L230-L252", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/client/client.go", "func_name": "SyncAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SyncAll signals update for all resources hold by the client.", "docstring_tokens": ["SyncAll", "signals", "update", "for", "all", "resources", "hold", "by", "the", "client", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/client/client.go#L255-L283", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/client/client.go", "func_name": "UpdateOne", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateOne signals update for one of the resources hold by the client.", "docstring_tokens": ["UpdateOne", "signals", "update", "for", "one", "of", "the", "resources", "hold", "by", "the", "client", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/client/client.go#L286-L298", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/client/client.go", "func_name": "Metric", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Metric will query current metric for target resource type.\n// Return a common.Metric object on success.", "docstring_tokens": ["Metric", "will", "query", "current", "metric", "for", "target", "resource", "type", ".", "Return", "a", "common", ".", "Metric", "object", "on", "success", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/client/client.go#L308-L310", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/client/client.go", "func_name": "HasResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasResource tells if current client holds any resources", "docstring_tokens": ["HasResource", "tells", "if", "current", "client", "holds", "any", "resources"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/client/client.go#L313-L316", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/client/client.go", "func_name": "DialContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DialContext connects to the address on the named network using the provided context.", "docstring_tokens": ["DialContext", "connects", "to", "the", "address", "on", "the", "named", "network", "using", "the", "provided", "context", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/client/client.go#L507-L533", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/prstatus/prstatus.go", "func_name": "NewDashboardAgent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDashboardAgent creates a new user dashboard agent .", "docstring_tokens": ["NewDashboardAgent", "creates", "a", "new", "user", "dashboard", "agent", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/prstatus/prstatus.go#L146-L152", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/prstatus/prstatus.go", "func_name": "QueryPullRequests", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueryPullRequests is a query function that returns a list of open pull requests owned by the user whose access token\n// is consumed by the github client.", "docstring_tokens": ["QueryPullRequests", "is", "a", "query", "function", "that", "returns", "a", "list", "of", "open", "pull", "requests", "owned", "by", "the", "user", "whose", "access", "token", "is", "consumed", "by", "the", "github", "client", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/prstatus/prstatus.go#L292-L317", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/prstatus/prstatus.go", "func_name": "GetHeadContexts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHeadContexts returns the status checks' contexts of the head commit of the PR.", "docstring_tokens": ["GetHeadContexts", "returns", "the", "status", "checks", "contexts", "of", "the", "head", "commit", "of", "the", "PR", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/prstatus/prstatus.go#L320-L339", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/prstatus/prstatus.go", "func_name": "ConstructSearchQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConstructSearchQuery returns the GitHub search query string for PRs that are open and authored\n// by the user passed. The search is scoped to repositories that are configured with either Prow or\n// Tide.", "docstring_tokens": ["ConstructSearchQuery", "returns", "the", "GitHub", "search", "query", "string", "for", "PRs", "that", "are", "open", "and", "authored", "by", "the", "user", "passed", ".", "The", "search", "is", "scoped", "to", "repositories", "that", "are", "configured", "with", "either", "Prow", "or", "Tide", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/prstatus/prstatus.go#L344-L350", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/bundle.go", "func_name": "NewBundledStates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBundledStates is the constructor for BundledStates", "docstring_tokens": ["NewBundledStates", "is", "the", "constructor", "for", "BundledStates"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/bundle.go#L47-L52", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/bundle.go", "func_name": "ReceiveEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReceiveEvent is called when something happens on an issue. The state\n// for that issue is updated.", "docstring_tokens": ["ReceiveEvent", "is", "called", "when", "something", "happens", "on", "an", "issue", ".", "The", "state", "for", "that", "issue", "is", "updated", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/bundle.go#L56-L64", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/bundle.go", "func_name": "ages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ages return the age of each active states", "docstring_tokens": ["ages", "return", "the", "age", "of", "each", "active", "states"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/bundle.go#L67-L77", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/bundle.go", "func_name": "Percentile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Percentile returns given percentile for age of all active states at time t", "docstring_tokens": ["Percentile", "returns", "given", "percentile", "for", "age", "of", "all", "active", "states", "at", "time", "t"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/bundle.go#L89-L110", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/metrics.go", "func_name": "NewMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMetrics creates a new set of metrics for the Jenkins operator.", "docstring_tokens": ["NewMetrics", "creates", "a", "new", "set", "of", "metrics", "for", "the", "Jenkins", "operator", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/metrics.go#L76-L85", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "ghproxy/ghcache/ghcache.go", "func_name": "NewDiskCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDiskCache creates a GitHub cache RoundTripper that is backed by a disk\n// cache.", "docstring_tokens": ["NewDiskCache", "creates", "a", "GitHub", "cache", "RoundTripper", "that", "is", "backed", "by", "a", "disk", "cache", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/ghproxy/ghcache/ghcache.go#L176-L185", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "ghproxy/ghcache/ghcache.go", "func_name": "NewMemCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMemCache creates a GitHub cache RoundTripper that is backed by a memory\n// cache.", "docstring_tokens": ["NewMemCache", "creates", "a", "GitHub", "cache", "RoundTripper", "that", "is", "backed", "by", "a", "memory", "cache", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/ghproxy/ghcache/ghcache.go#L189-L191", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "ghproxy/ghcache/ghcache.go", "func_name": "NewFromCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFromCache creates a GitHub cache RoundTripper that is backed by the\n// specified httpcache.Cache implementation.", "docstring_tokens": ["NewFromCache", "creates", "a", "GitHub", "cache", "RoundTripper", "that", "is", "backed", "by", "the", "specified", "httpcache", ".", "Cache", "implementation", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/ghproxy/ghcache/ghcache.go#L195-L202", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/client/clientset/versioned/fake/clientset_generated.go", "func_name": "ProwV1", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProwV1 retrieves the ProwV1Client", "docstring_tokens": ["ProwV1", "retrieves", "the", "ProwV1Client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/client/clientset/versioned/fake/clientset_generated.go#L75-L77", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/client/clientset/versioned/fake/clientset_generated.go", "func_name": "Prow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Prow retrieves the ProwV1Client", "docstring_tokens": ["Prow", "retrieves", "the", "ProwV1Client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/client/clientset/versioned/fake/clientset_generated.go#L80-L82", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "NewOwners", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOwners consturcts a new Owners instance. filenames is the slice of files changed.", "docstring_tokens": ["NewOwners", "consturcts", "a", "new", "Owners", "instance", ".", "filenames", "is", "the", "slice", "of", "files", "changed", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L59-L61", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "GetApprovers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetApprovers returns a map from ownersFiles -> people that are approvers in them", "docstring_tokens": ["GetApprovers", "returns", "a", "map", "from", "ownersFiles", "-", ">", "people", "that", "are", "approvers", "in", "them"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L64-L72", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "GetAllPotentialApprovers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAllPotentialApprovers returns the people from relevant owners files needed to get the PR approved", "docstring_tokens": ["GetAllPotentialApprovers", "returns", "the", "people", "from", "relevant", "owners", "files", "needed", "to", "get", "the", "PR", "approved"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L86-L98", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "GetReverseMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetReverseMap returns a map from people -> OWNERS files for which they are an approver", "docstring_tokens": ["GetReverseMap", "returns", "a", "map", "from", "people", "-", ">", "OWNERS", "files", "for", "which", "they", "are", "an", "approver"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L101-L113", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "temporaryUnapprovedFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// temporaryUnapprovedFiles returns the list of files that wouldn't be\n// approved by the given set of approvers.", "docstring_tokens": ["temporaryUnapprovedFiles", "returns", "the", "list", "of", "files", "that", "wouldn", "t", "be", "approved", "by", "the", "given", "set", "of", "approvers", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L130-L136", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "KeepCoveringApprovers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeepCoveringApprovers finds who we should keep as suggested approvers given a pre-selection\n// knownApprovers must be a subset of potentialApprovers.", "docstring_tokens": ["KeepCoveringApprovers", "finds", "who", "we", "should", "keep", "as", "suggested", "approvers", "given", "a", "pre", "-", "selection", "knownApprovers", "must", "be", "a", "subset", "of", "potentialApprovers", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L140-L155", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "GetSuggestedApprovers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSuggestedApprovers solves the exact cover problem, finding an approver capable of\n// approving every OWNERS file in the PR", "docstring_tokens": ["GetSuggestedApprovers", "solves", "the", "exact", "cover", "problem", "finding", "an", "approver", "capable", "of", "approving", "every", "OWNERS", "file", "in", "the", "PR"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L159-L171", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "GetOwnersSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOwnersSet returns a set containing all the Owners files necessary to get the PR approved", "docstring_tokens": ["GetOwnersSet", "returns", "a", "set", "containing", "all", "the", "Owners", "files", "necessary", "to", "get", "the", "PR", "approved"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L174-L181", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "GetShuffledApprovers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShuffledApprovers shuffles the potential approvers so that we don't\n// always suggest the same people.", "docstring_tokens": ["GetShuffledApprovers", "shuffles", "the", "potential", "approvers", "so", "that", "we", "don", "t", "always", "suggest", "the", "same", "people", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L185-L193", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String creates a link for the approval. Use `Login` if you just want the name.", "docstring_tokens": ["String", "creates", "a", "link", "for", "the", "approval", ".", "Use", "Login", "if", "you", "just", "want", "the", "name", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L231-L238", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "IntersectSetsCase", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntersectSetsCase runs the intersection between to sets.String in a\n// case-insensitive way. It returns the name with the case of \"one\".", "docstring_tokens": ["IntersectSetsCase", "runs", "the", "intersection", "between", "to", "sets", ".", "String", "in", "a", "case", "-", "insensitive", "way", ".", "It", "returns", "the", "name", "with", "the", "case", "of", "one", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L254-L267", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "NewApprovers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewApprovers create a new \"Approvers\" with no approval.", "docstring_tokens": ["NewApprovers", "create", "a", "new", "Approvers", "with", "no", "approval", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L270-L280", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "AddLGTMer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddLGTMer adds a new LGTM Approver", "docstring_tokens": ["AddLGTMer", "adds", "a", "new", "LGTM", "Approver"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L295-L305", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "RemoveApprover", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveApprover removes an approver from the list.", "docstring_tokens": ["RemoveApprover", "removes", "an", "approver", "from", "the", "list", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L334-L336", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "AddAssignees", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddAssignees adds assignees to the list", "docstring_tokens": ["AddAssignees", "adds", "assignees", "to", "the", "list"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L339-L343", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "GetCurrentApproversSetCased", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCurrentApproversSetCased returns the set of approvers logins with the original cases.", "docstring_tokens": ["GetCurrentApproversSetCased", "returns", "the", "set", "of", "approvers", "logins", "with", "the", "original", "cases", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L357-L365", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "GetFilesApprovers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFilesApprovers returns a map from files -> list of current approvers.", "docstring_tokens": ["GetFilesApprovers", "returns", "a", "map", "from", "files", "-", ">", "list", "of", "current", "approvers", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L380-L396", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "NoIssueApprovers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NoIssueApprovers returns the list of people who have \"no-issue\"\n// approved the pull-request. They are included in the list iff they can\n// approve one of the files.", "docstring_tokens": ["NoIssueApprovers", "returns", "the", "list", "of", "people", "who", "have", "no", "-", "issue", "approved", "the", "pull", "-", "request", ".", "They", "are", "included", "in", "the", "list", "iff", "they", "can", "approve", "one", "of", "the", "files", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L401-L418", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "UnapprovedFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnapprovedFiles returns owners files that still need approval", "docstring_tokens": ["UnapprovedFiles", "returns", "owners", "files", "that", "still", "need", "approval"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L421-L429", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "GetFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFiles returns owners files that still need approval.", "docstring_tokens": ["GetFiles", "returns", "owners", "files", "that", "still", "need", "approval", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L432-L453", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "IsApproved", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsApproved returns a bool indicating whether the PR is fully approved.\n// If a human manually added the approved label, this returns true, ignoring normal approval rules.", "docstring_tokens": ["IsApproved", "returns", "a", "bool", "indicating", "whether", "the", "PR", "is", "fully", "approved", ".", "If", "a", "human", "manually", "added", "the", "approved", "label", "this", "returns", "true", "ignoring", "normal", "approval", "rules", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L505-L511", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "ListApprovals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListApprovals returns the list of approvals", "docstring_tokens": ["ListApprovals", "returns", "the", "list", "of", "approvals"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L514-L522", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "ListNoIssueApprovals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListNoIssueApprovals returns the list of \"no-issue\" approvals", "docstring_tokens": ["ListNoIssueApprovals", "returns", "the", "list", "of", "no", "-", "issue", "approvals"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L525-L533", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approvers/owners.go", "func_name": "GenerateTemplate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateTemplate takes a template, name and data, and generates\n// the corresponding string.", "docstring_tokens": ["GenerateTemplate", "takes", "a", "template", "name", "and", "data", "and", "generates", "the", "corresponding", "string", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approvers/owners.go#L584-L592", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "label_sync/main.go", "func_name": "writeTemplate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Writes the golang text template at templatePath to outputPath using the given data", "docstring_tokens": ["Writes", "the", "golang", "text", "template", "at", "templatePath", "to", "outputPath", "using", "the", "given", "data"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/label_sync/main.go#L148-L183", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "label_sync/main.go", "func_name": "Labels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Labels returns a sorted list of labels unique by name", "docstring_tokens": ["Labels", "returns", "a", "sorted", "list", "of", "labels", "unique", "by", "name"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/label_sync/main.go#L224-L247", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "label_sync/main.go", "func_name": "LabelsForTarget", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LabelsForTarget returns labels that have a given target", "docstring_tokens": ["LabelsForTarget", "returns", "labels", "that", "have", "a", "given", "target"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/label_sync/main.go#L281-L290", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "label_sync/main.go", "func_name": "LoadConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadConfig reads the yaml config at path", "docstring_tokens": ["LoadConfig", "reads", "the", "yaml", "config", "at", "path"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/label_sync/main.go#L293-L309", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "label_sync/main.go", "func_name": "loadLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loadLabels returns what labels exist in github", "docstring_tokens": ["loadLabels", "returns", "what", "labels", "exist", "in", "github"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/label_sync/main.go#L340-L387", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "label_sync/main.go", "func_name": "kill", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete the label", "docstring_tokens": ["Delete", "the", "label"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/label_sync/main.go#L390-L393", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "label_sync/main.go", "func_name": "create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create the label", "docstring_tokens": ["Create", "the", "label"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/label_sync/main.go#L396-L399", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "label_sync/main.go", "func_name": "classifyLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// classifyLabels will put labels into the required, archaic, dead maps as appropriate.", "docstring_tokens": ["classifyLabels", "will", "put", "labels", "into", "the", "required", "archaic", "dead", "maps", "as", "appropriate", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/label_sync/main.go#L420-L442", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "label_sync/main.go", "func_name": "linkify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// linkify transforms a string into a markdown anchor link\n// I could not find a proper doc, so rules here a mostly empirical", "docstring_tokens": ["linkify", "transforms", "a", "string", "into", "a", "markdown", "anchor", "link", "I", "could", "not", "find", "a", "proper", "doc", "so", "rules", "here", "a", "mostly", "empirical"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/label_sync/main.go#L825-L833", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "greenhouse/diskcache/cache.go", "func_name": "NewCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCache returns a new Cache given the root directory that should be used\n// on disk for cache storage", "docstring_tokens": ["NewCache", "returns", "a", "new", "Cache", "given", "the", "root", "directory", "that", "should", "be", "used", "on", "disk", "for", "cache", "storage"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/greenhouse/diskcache/cache.go#L47-L51", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "greenhouse/diskcache/cache.go", "func_name": "KeyToPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeyToPath converts a cache entry key to a path on disk", "docstring_tokens": ["KeyToPath", "converts", "a", "cache", "entry", "key", "to", "a", "path", "on", "disk"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/greenhouse/diskcache/cache.go#L54-L56", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "greenhouse/diskcache/cache.go", "func_name": "ensureDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// file path helper", "docstring_tokens": ["file", "path", "helper"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/greenhouse/diskcache/cache.go#L76-L81", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "greenhouse/diskcache/cache.go", "func_name": "Put", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Put copies the content reader until the end into the cache at key\n// if contentSHA256 is not \"\" then the contents will only be stored in the\n// cache if the content's hex string SHA256 matches", "docstring_tokens": ["Put", "copies", "the", "content", "reader", "until", "the", "end", "into", "the", "cache", "at", "key", "if", "contentSHA256", "is", "not", "then", "the", "contents", "will", "only", "be", "stored", "in", "the", "cache", "if", "the", "content", "s", "hex", "string", "SHA256", "matches"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/greenhouse/diskcache/cache.go#L93-L145", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "greenhouse/diskcache/cache.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get provides your readHandler with the contents at key", "docstring_tokens": ["Get", "provides", "your", "readHandler", "with", "the", "contents", "at", "key"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/greenhouse/diskcache/cache.go#L148-L158", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "greenhouse/diskcache/cache.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes the file at key", "docstring_tokens": ["Delete", "deletes", "the", "file", "at", "key"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/greenhouse/diskcache/cache.go#L191-L193", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/gcsartifact.go", "func_name": "NewGCSArtifact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGCSArtifact returns a new GCSArtifact with a given handle, canonical link, and path within the job", "docstring_tokens": ["NewGCSArtifact", "returns", "a", "new", "GCSArtifact", "with", "a", "given", "handle", "canonical", "link", "and", "path", "within", "the", "job"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/gcsartifact.go#L57-L65", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/gcsartifact.go", "func_name": "Size", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Size returns the size of the artifact in GCS", "docstring_tokens": ["Size", "returns", "the", "size", "of", "the", "artifact", "in", "GCS"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/gcsartifact.go#L74-L80", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/gcsartifact.go", "func_name": "ReadAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadAll will either read the entire file or throw an error if file size is too big", "docstring_tokens": ["ReadAll", "will", "either", "read", "the", "entire", "file", "or", "throw", "an", "error", "if", "file", "size", "is", "too", "big"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/gcsartifact.go#L192-L210", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/gcsartifact.go", "func_name": "ReadTail", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadTail reads the last n bytes from a file in GCS", "docstring_tokens": ["ReadTail", "reads", "the", "last", "n", "bytes", "from", "a", "file", "in", "GCS"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/gcsartifact.go#L213-L241", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/gcsartifact.go", "func_name": "gzipped", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// gzipped returns whether the file is gzip-encoded in GCS", "docstring_tokens": ["gzipped", "returns", "whether", "the", "file", "is", "gzip", "-", "encoded", "in", "GCS"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/gcsartifact.go#L244-L250", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/welcome/welcome.go", "func_name": "optionsForRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// optionsForRepo gets the plugins.Welcome struct that is applicable to the indicated repo.", "docstring_tokens": ["optionsForRepo", "gets", "the", "plugins", ".", "Welcome", "struct", "that", "is", "applicable", "to", "the", "indicated", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/welcome/welcome.go#L145-L166", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/client/listers/prowjobs/v1/prowjob.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List lists all ProwJobs in the indexer.", "docstring_tokens": ["List", "lists", "all", "ProwJobs", "in", "the", "indexer", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/client/listers/prowjobs/v1/prowjob.go#L48-L53", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/client/listers/prowjobs/v1/prowjob.go", "func_name": "ProwJobs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProwJobs returns an object that can list and get ProwJobs.", "docstring_tokens": ["ProwJobs", "returns", "an", "object", "that", "can", "list", "and", "get", "ProwJobs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/client/listers/prowjobs/v1/prowjob.go#L56-L58", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/client/listers/prowjobs/v1/prowjob.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List lists all ProwJobs in the indexer for a given namespace.", "docstring_tokens": ["List", "lists", "all", "ProwJobs", "in", "the", "indexer", "for", "a", "given", "namespace", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/client/listers/prowjobs/v1/prowjob.go#L77-L82", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "RunsAgainstAllBranch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunsAgainstAllBranch returns true if there are both branches and skip_branches are unset", "docstring_tokens": ["RunsAgainstAllBranch", "returns", "true", "if", "there", "are", "both", "branches", "and", "skip_branches", "are", "unset"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L219-L221", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "Intersects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Intersects checks if other Brancher would trigger for the same branch.", "docstring_tokens": ["Intersects", "checks", "if", "other", "Brancher", "would", "trigger", "for", "the", "same", "branch", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L240-L268", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "ShouldRun", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShouldRun determines if we can know for certain that the job should run. We can either\n// know for certain that the job should or should not run based on the matcher, or we can\n// not be able to determine that fact at all.", "docstring_tokens": ["ShouldRun", "determines", "if", "we", "can", "know", "for", "certain", "that", "the", "job", "should", "run", ".", "We", "can", "either", "know", "for", "certain", "that", "the", "job", "should", "or", "should", "not", "run", "based", "on", "the", "matcher", "or", "we", "can", "not", "be", "able", "to", "determine", "that", "fact", "at", "all", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L278-L287", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "RunsAgainstChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunsAgainstChanges returns true if any of the changed input paths match the run_if_changed regex.", "docstring_tokens": ["RunsAgainstChanges", "returns", "true", "if", "any", "of", "the", "changed", "input", "paths", "match", "the", "run_if_changed", "regex", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L290-L297", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "CouldRun", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CouldRun determines if the postsubmit could run against a specific\n// base ref", "docstring_tokens": ["CouldRun", "determines", "if", "the", "postsubmit", "could", "run", "against", "a", "specific", "base", "ref"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L301-L303", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "ShouldRun", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShouldRun determines if the postsubmit should run in response to a\n// set of changes. This is evaluated lazily, if necessary.", "docstring_tokens": ["ShouldRun", "determines", "if", "the", "postsubmit", "should", "run", "in", "response", "to", "a", "set", "of", "changes", ".", "This", "is", "evaluated", "lazily", "if", "necessary", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L307-L318", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "CouldRun", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CouldRun determines if the presubmit could run against a specific\n// base ref", "docstring_tokens": ["CouldRun", "determines", "if", "the", "presubmit", "could", "run", "against", "a", "specific", "base", "ref"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L322-L324", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "ShouldRun", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShouldRun determines if the presubmit should run against a specific\n// base ref, or in response to a set of changes. The latter mechanism\n// is evaluated lazily, if necessary.", "docstring_tokens": ["ShouldRun", "determines", "if", "the", "presubmit", "should", "run", "against", "a", "specific", "base", "ref", "or", "in", "response", "to", "a", "set", "of", "changes", ".", "The", "latter", "mechanism", "is", "evaluated", "lazily", "if", "necessary", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L329-L345", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "GetPresubmit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPresubmit returns the presubmit job for the provided repo and job name.", "docstring_tokens": ["GetPresubmit", "returns", "the", "presubmit", "job", "for", "the", "provided", "repo", "and", "job", "name", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L441-L450", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "SetPresubmits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPresubmits updates c.Presubmits to jobs, after compiling and validating their regexes.", "docstring_tokens": ["SetPresubmits", "updates", "c", ".", "Presubmits", "to", "jobs", "after", "compiling", "and", "validating", "their", "regexes", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L453-L464", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "SetPostsubmits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPostsubmits updates c.Postsubmits to jobs, after compiling and validating their regexes.", "docstring_tokens": ["SetPostsubmits", "updates", "c", ".", "Postsubmits", "to", "jobs", "after", "compiling", "and", "validating", "their", "regexes", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L467-L478", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "AllPresubmits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllPresubmits returns all prow presubmit jobs in repos.\n// if repos is empty, return all presubmits.", "docstring_tokens": ["AllPresubmits", "returns", "all", "prow", "presubmit", "jobs", "in", "repos", ".", "if", "repos", "is", "empty", "return", "all", "presubmits", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L482-L499", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "AllPostsubmits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllPostsubmits returns all prow postsubmit jobs in repos.\n// if repos is empty, return all postsubmits.", "docstring_tokens": ["AllPostsubmits", "returns", "all", "prow", "postsubmit", "jobs", "in", "repos", ".", "if", "repos", "is", "empty", "return", "all", "postsubmits", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L503-L520", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "AllPeriodics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllPeriodics returns all prow periodic jobs.", "docstring_tokens": ["AllPeriodics", "returns", "all", "prow", "periodic", "jobs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L523-L534", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/jobs.go", "func_name": "ClearCompiledRegexes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClearCompiledRegexes removes compiled regexes from the presubmits,\n// useful for testing when deep equality is needed between presubmits", "docstring_tokens": ["ClearCompiledRegexes", "removes", "compiled", "regexes", "from", "the", "presubmits", "useful", "for", "testing", "when", "deep", "equality", "is", "needed", "between", "presubmits"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/jobs.go#L538-L545", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/repoowners/repoowners.go", "func_name": "Empty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Empty checks if a SimpleConfig could be considered empty", "docstring_tokens": ["Empty", "checks", "if", "a", "SimpleConfig", "could", "be", "considered", "empty"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/repoowners/repoowners.go#L66-L68", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/repoowners/repoowners.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient is the constructor for Client", "docstring_tokens": ["NewClient", "is", "the", "constructor", "for", "Client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/repoowners/repoowners.go#L119-L136", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/repoowners/repoowners.go", "func_name": "ExpandAlias", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExpandAlias returns members of an alias", "docstring_tokens": ["ExpandAlias", "returns", "members", "of", "an", "alias"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/repoowners/repoowners.go#L299-L304", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/repoowners/repoowners.go", "func_name": "ExpandAliases", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExpandAliases returns members of multiple aliases, duplicates are pruned", "docstring_tokens": ["ExpandAliases", "returns", "members", "of", "multiple", "aliases", "duplicates", "are", "pruned"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/repoowners/repoowners.go#L307-L320", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/repoowners/repoowners.go", "func_name": "ParseFullConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseFullConfig will unmarshal OWNERS file's content into a FullConfig\n// Returns an error if the content cannot be unmarshalled", "docstring_tokens": ["ParseFullConfig", "will", "unmarshal", "OWNERS", "file", "s", "content", "into", "a", "FullConfig", "Returns", "an", "error", "if", "the", "content", "cannot", "be", "unmarshalled"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/repoowners/repoowners.go#L457-L461", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/repoowners/repoowners.go", "func_name": "ParseSimpleConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseSimpleConfig will unmarshal an OWNERS file's content into a SimpleConfig\n// Returns an error if the content cannot be unmarshalled", "docstring_tokens": ["ParseSimpleConfig", "will", "unmarshal", "an", "OWNERS", "file", "s", "content", "into", "a", "SimpleConfig", "Returns", "an", "error", "if", "the", "content", "cannot", "be", "unmarshalled"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/repoowners/repoowners.go#L465-L469", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/repoowners/repoowners.go", "func_name": "decodeOwnersMdConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// decodeOwnersMdConfig will parse the yaml header if it exists and unmarshal it into a singleOwnersConfig.\n// If no yaml header is found, do nothing\n// Returns an error if the file cannot be read or the yaml header is found but cannot be unmarshalled.", "docstring_tokens": ["decodeOwnersMdConfig", "will", "parse", "the", "yaml", "header", "if", "it", "exists", "and", "unmarshal", "it", "into", "a", "singleOwnersConfig", ".", "If", "no", "yaml", "header", "is", "found", "do", "nothing", "Returns", "an", "error", "if", "the", "file", "cannot", "be", "read", "or", "the", "yaml", "header", "is", "found", "but", "cannot", "be", "unmarshalled", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/repoowners/repoowners.go#L476-L486", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/repoowners/repoowners.go", "func_name": "findOwnersForFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findOwnersForFile returns the OWNERS file path furthest down the tree for a specified file\n// using ownerMap to check for entries", "docstring_tokens": ["findOwnersForFile", "returns", "the", "OWNERS", "file", "path", "furthest", "down", "the", "tree", "for", "a", "specified", "file", "using", "ownerMap", "to", "check", "for", "entries"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/repoowners/repoowners.go#L556-L575", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/repoowners/repoowners.go", "func_name": "FindApproverOwnersForFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindApproverOwnersForFile returns the OWNERS file path furthest down the tree for a specified file\n// that contains an approvers section", "docstring_tokens": ["FindApproverOwnersForFile", "returns", "the", "OWNERS", "file", "path", "furthest", "down", "the", "tree", "for", "a", "specified", "file", "that", "contains", "an", "approvers", "section"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/repoowners/repoowners.go#L579-L581", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/repoowners/repoowners.go", "func_name": "FindReviewersOwnersForFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindReviewersOwnersForFile returns the OWNERS file path furthest down the tree for a specified file\n// that contains a reviewers section", "docstring_tokens": ["FindReviewersOwnersForFile", "returns", "the", "OWNERS", "file", "path", "furthest", "down", "the", "tree", "for", "a", "specified", "file", "that", "contains", "a", "reviewers", "section"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/repoowners/repoowners.go#L585-L587", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/repoowners/repoowners.go", "func_name": "FindLabelsForFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindLabelsForFile returns a set of labels which should be applied to PRs\n// modifying files under the given path.", "docstring_tokens": ["FindLabelsForFile", "returns", "a", "set", "of", "labels", "which", "should", "be", "applied", "to", "PRs", "modifying", "files", "under", "the", "given", "path", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/repoowners/repoowners.go#L591-L593", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/repoowners/repoowners.go", "func_name": "IsNoParentOwners", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsNoParentOwners checks if an OWNERS file path refers to an OWNERS file with NoParentOwners enabled.", "docstring_tokens": ["IsNoParentOwners", "checks", "if", "an", "OWNERS", "file", "path", "refers", "to", "an", "OWNERS", "file", "with", "NoParentOwners", "enabled", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/repoowners/repoowners.go#L596-L598", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/pkg/cov/junit/calculation/coverage.go", "func_name": "Ratio", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ratio returns the percentage of statements that are covered", "docstring_tokens": ["Ratio", "returns", "the", "percentage", "of", "statements", "that", "are", "covered"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/pkg/cov/junit/calculation/coverage.go#L27-L32", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pubsub/subscriber/subscriber.go", "func_name": "FromPayload", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromPayload set the PeriodicProwJobEvent from the PubSub message payload.", "docstring_tokens": ["FromPayload", "set", "the", "PeriodicProwJobEvent", "from", "the", "PubSub", "message", "payload", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pubsub/subscriber/subscriber.go#L48-L53", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pubsub/subscriber/subscriber.go", "func_name": "ToMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToMessage generates a PubSub Message from a PeriodicProwJobEvent.", "docstring_tokens": ["ToMessage", "generates", "a", "PubSub", "Message", "from", "a", "PeriodicProwJobEvent", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pubsub/subscriber/subscriber.go#L56-L68", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/org/org.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText returns an error if text != secret or closed", "docstring_tokens": ["UnmarshalText", "returns", "an", "error", "if", "text", "!", "=", "secret", "or", "closed"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/org/org.go#L103-L110", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/blockade/blockade.go", "func_name": "compileApplicableBlockades", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// compileApplicableBlockades filters the specified blockades and compiles those that apply to the repo.", "docstring_tokens": ["compileApplicableBlockades", "filters", "the", "specified", "blockades", "and", "compiles", "those", "that", "apply", "to", "the", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/blockade/blockade.go#L182-L220", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/blockade/blockade.go", "func_name": "calculateBlocks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// calculateBlocks determines if a PR should be blocked and returns the summary describing the block.", "docstring_tokens": ["calculateBlocks", "determines", "if", "a", "PR", "should", "be", "blocked", "and", "returns", "the", "summary", "describing", "the", "block", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/blockade/blockade.go#L223-L233", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/pkg/cov/merge.go", "func_name": "MergeMultipleProfiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MergeMultipleProfiles merges more than two profiles together.\n// MergeMultipleProfiles is equivalent to calling MergeProfiles on pairs of profiles\n// until only one profile remains.", "docstring_tokens": ["MergeMultipleProfiles", "merges", "more", "than", "two", "profiles", "together", ".", "MergeMultipleProfiles", "is", "equivalent", "to", "calling", "MergeProfiles", "on", "pairs", "of", "profiles", "until", "only", "one", "profile", "remains", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/pkg/cov/merge.go#L73-L85", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/wrapper/options.go", "func_name": "AddFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFlags adds flags to the FlagSet that populate\n// the wrapper options struct provided.", "docstring_tokens": ["AddFlags", "adds", "flags", "to", "the", "FlagSet", "that", "populate", "the", "wrapper", "options", "struct", "provided", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/wrapper/options.go#L61-L65", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/artifact-uploader/controller.go", "func_name": "processNextItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processNextItem attempts to upload container logs to GCS", "docstring_tokens": ["processNextItem", "attempts", "to", "upload", "container", "logs", "to", "GCS"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/artifact-uploader/controller.go#L147-L184", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/artifact-uploader/controller.go", "func_name": "handleErr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleErr checks if an error happened and makes sure we will retry later.", "docstring_tokens": ["handleErr", "checks", "if", "an", "error", "happened", "and", "makes", "sure", "we", "will", "retry", "later", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/artifact-uploader/controller.go#L187-L196", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/filter.go", "func_name": "AggregateFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AggregateFilter builds a filter that evaluates the child filters in order\n// and returns the first match", "docstring_tokens": ["AggregateFilter", "builds", "a", "filter", "that", "evaluates", "the", "child", "filters", "in", "order", "and", "returns", "the", "first", "match"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/filter.go#L53-L62", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/filter.go", "func_name": "FilterPresubmits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FilterPresubmits determines which presubmits should run and which should be skipped\n// by evaluating the user-provided filter.", "docstring_tokens": ["FilterPresubmits", "determines", "which", "presubmits", "should", "run", "and", "which", "should", "be", "skipped", "by", "evaluating", "the", "user", "-", "provided", "filter", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/filter.go#L66-L88", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/cmd/filter/filter.go", "func_name": "MakeCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakeCommand returns a `filter` command.", "docstring_tokens": ["MakeCommand", "returns", "a", "filter", "command", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/cmd/filter/filter.go#L36-L50", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/fake_open_wrapper.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Push adds event to the heap", "docstring_tokens": ["Push", "adds", "event", "to", "the", "heap"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/fake_open_wrapper.go#L35-L37", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/fake_open_wrapper.go", "func_name": "Pop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pop retrieves the last added event", "docstring_tokens": ["Pop", "retrieves", "the", "last", "added", "event"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/fake_open_wrapper.go#L40-L46", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/fake_open_wrapper.go", "func_name": "NewFakeOpenPluginWrapper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFakeOpenPluginWrapper is the constructor for FakeOpenPluginWrapper", "docstring_tokens": ["NewFakeOpenPluginWrapper", "is", "the", "constructor", "for", "FakeOpenPluginWrapper"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/fake_open_wrapper.go#L60-L65", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/fake_open_wrapper.go", "func_name": "ReceiveIssue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReceiveIssue creates a fake \"opened\" event", "docstring_tokens": ["ReceiveIssue", "creates", "a", "fake", "opened", "event"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/fake_open_wrapper.go#L68-L81", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/clonerefs/options.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate ensures that the configuration options are valid", "docstring_tokens": ["Validate", "ensures", "that", "the", "configuration", "options", "are", "valid"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/clonerefs/options.go#L73-L99", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/clonerefs/options.go", "func_name": "Complete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Complete internalizes command line arguments", "docstring_tokens": ["Complete", "internalizes", "command", "line", "arguments"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/clonerefs/options.go#L124-L141", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/clonerefs/options.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set parses out overrides from user input", "docstring_tokens": ["Set", "parses", "out", "overrides", "from", "user", "input"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/clonerefs/options.go#L209-L217", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/tackle/main.go", "func_name": "ensure", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ensure will ensure binary is on path or return an error with install message.", "docstring_tokens": ["ensure", "will", "ensure", "binary", "is", "on", "path", "or", "return", "an", "error", "with", "install", "message", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/tackle/main.go#L50-L55", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/tackle/main.go", "func_name": "output", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// output returns the trimmed output of running args, or an err on non-zero exit.", "docstring_tokens": ["output", "returns", "the", "trimmed", "output", "of", "running", "args", "or", "an", "err", "on", "non", "-", "zero", "exit", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/tackle/main.go#L68-L74", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/tackle/main.go", "func_name": "projects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// projects returns the list of accessible gcp projects", "docstring_tokens": ["projects", "returns", "the", "list", "of", "accessible", "gcp", "projects"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/tackle/main.go#L93-L99", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/tackle/main.go", "func_name": "selectProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// selectProject returns the user-selected project, defaulting to the current gcloud one.", "docstring_tokens": ["selectProject", "returns", "the", "user", "-", "selected", "project", "defaulting", "to", "the", "current", "gcloud", "one", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/tackle/main.go#L102-L162", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/tackle/main.go", "func_name": "createCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createCluster causes gcloud to create a cluster in project, returning the context name", "docstring_tokens": ["createCluster", "causes", "gcloud", "to", "create", "a", "cluster", "in", "project", "returning", "the", "context", "name"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/tackle/main.go#L197-L225", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/tackle/main.go", "func_name": "createContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createContext has the user create a context.", "docstring_tokens": ["createContext", "has", "the", "user", "create", "a", "context", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/tackle/main.go#L228-L284", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/tackle/main.go", "func_name": "contextConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// contextConfig returns the loader and config, which can create a clientconfig.", "docstring_tokens": ["contextConfig", "returns", "the", "loader", "and", "config", "which", "can", "create", "a", "clientconfig", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/tackle/main.go#L287-L300", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/tackle/main.go", "func_name": "selectContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// selectContext allows the user to choose a context\n// This may involve creating a cluster", "docstring_tokens": ["selectContext", "allows", "the", "user", "to", "choose", "a", "context", "This", "may", "involve", "creating", "a", "cluster"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/tackle/main.go#L304-L363", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/tackle/main.go", "func_name": "applyCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// applyCreate will dry-run create and then pipe this to kubectl apply.\n//\n// If we use the create verb it will fail if the secret already exists.\n// And kubectl will reject the apply verb with a secret.", "docstring_tokens": ["applyCreate", "will", "dry", "-", "run", "create", "and", "then", "pipe", "this", "to", "kubectl", "apply", ".", "If", "we", "use", "the", "create", "verb", "it", "will", "fail", "if", "the", "secret", "already", "exists", ".", "And", "kubectl", "will", "reject", "the", "apply", "verb", "with", "a", "secret", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/tackle/main.go#L369-L387", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/trigger/generic-comment.go", "func_name": "determineSkippedPresubmits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// determineSkippedPresubmits identifies the largest set of contexts we can actually\n// post skipped contexts for, given a set of presubmits we're triggering. We don't\n// want to skip a job that posts a context that will be written to by a job we just\n// identified for triggering or the skipped context will override the triggered one", "docstring_tokens": ["determineSkippedPresubmits", "identifies", "the", "largest", "set", "of", "contexts", "we", "can", "actually", "post", "skipped", "contexts", "for", "given", "a", "set", "of", "presubmits", "we", "re", "triggering", ".", "We", "don", "t", "want", "to", "skip", "a", "job", "that", "posts", "a", "context", "that", "will", "be", "written", "to", "by", "a", "job", "we", "just", "identified", "for", "triggering", "or", "the", "skipped", "context", "will", "override", "the", "triggered", "one"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/trigger/generic-comment.go#L168-L182", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/transform.go", "func_name": "Dispatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dispatch receives channels to each type of events, and dispatch them to each plugins.", "docstring_tokens": ["Dispatch", "receives", "channels", "to", "each", "type", "of", "events", "and", "dispatch", "them", "to", "each", "plugins", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/transform.go#L66-L95", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/ghclient/wrappers.go", "func_name": "CreateIssue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateIssue tries to create and return a new github issue.", "docstring_tokens": ["CreateIssue", "tries", "to", "create", "and", "return", "a", "new", "github", "issue", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/ghclient/wrappers.go#L54-L82", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/ghclient/wrappers.go", "func_name": "CreateStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateStatus creates or updates a status context on the indicated reference.", "docstring_tokens": ["CreateStatus", "creates", "or", "updates", "a", "status", "context", "on", "the", "indicated", "reference", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/ghclient/wrappers.go#L85-L99", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/ghclient/wrappers.go", "func_name": "ForEachPR", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForEachPR iterates over all PRs that fit the specified criteria, calling the munge function on every PR.\n// If the munge function returns a non-nil error, ForEachPR will return immediately with a non-nil\n// error unless continueOnError is true in which case an error will be logged and the remaining PRs will be munged.", "docstring_tokens": ["ForEachPR", "iterates", "over", "all", "PRs", "that", "fit", "the", "specified", "criteria", "calling", "the", "munge", "function", "on", "every", "PR", ".", "If", "the", "munge", "function", "returns", "a", "non", "-", "nil", "error", "ForEachPR", "will", "return", "immediately", "with", "a", "non", "-", "nil", "error", "unless", "continueOnError", "is", "true", "in", "which", "case", "an", "error", "will", "be", "logged", "and", "the", "remaining", "PRs", "will", "be", "munged", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/ghclient/wrappers.go#L106-L142", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/ghclient/wrappers.go", "func_name": "GetCollaborators", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCollaborators returns all github users who are members or outside collaborators of the repo.", "docstring_tokens": ["GetCollaborators", "returns", "all", "github", "users", "who", "are", "members", "or", "outside", "collaborators", "of", "the", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/ghclient/wrappers.go#L145-L169", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/ghclient/wrappers.go", "func_name": "GetCombinedStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCombinedStatus retrieves the CombinedStatus for the specified reference.", "docstring_tokens": ["GetCombinedStatus", "retrieves", "the", "CombinedStatus", "for", "the", "specified", "reference", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/ghclient/wrappers.go#L172-L210", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/ghclient/wrappers.go", "func_name": "GetIssues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIssues gets all the issues in a repo that meet the list options.", "docstring_tokens": ["GetIssues", "gets", "all", "the", "issues", "in", "a", "repo", "that", "meet", "the", "list", "options", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/ghclient/wrappers.go#L213-L236", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/ghclient/wrappers.go", "func_name": "GetRepoLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRepoLabels gets all the labels that valid in the specified repo.", "docstring_tokens": ["GetRepoLabels", "gets", "all", "the", "labels", "that", "valid", "in", "the", "specified", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/ghclient/wrappers.go#L239-L263", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/ghclient/wrappers.go", "func_name": "GetUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUser gets the github user with the specified login or the currently authenticated user.\n// To get the currently authenticated user specify a login of \"\".", "docstring_tokens": ["GetUser", "gets", "the", "github", "user", "with", "the", "specified", "login", "or", "the", "currently", "authenticated", "user", ".", "To", "get", "the", "currently", "authenticated", "user", "specify", "a", "login", "of", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/ghclient/wrappers.go#L267-L279", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "logexporter/cmd/main.go", "func_name": "checkConfigValidity", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check if the config provided through the flags take valid values.", "docstring_tokens": ["Check", "if", "the", "config", "provided", "through", "the", "flags", "take", "valid", "values", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/logexporter/cmd/main.go#L70-L93", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "logexporter/cmd/main.go", "func_name": "createSystemdLogfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create logfile for systemd service in outputDir with the given journalctl outputMode.", "docstring_tokens": ["Create", "logfile", "for", "systemd", "service", "in", "outputDir", "with", "the", "given", "journalctl", "outputMode", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/logexporter/cmd/main.go#L96-L116", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "logexporter/cmd/main.go", "func_name": "createFullSystemdLogfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createFullSystemdLogfile creates logfile for full systemd journal in the outputDir.", "docstring_tokens": ["createFullSystemdLogfile", "creates", "logfile", "for", "full", "systemd", "journal", "in", "the", "outputDir", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/logexporter/cmd/main.go#L119-L131", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "logexporter/cmd/main.go", "func_name": "createSystemdLogfiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create logfiles for systemd services in outputDir.", "docstring_tokens": ["Create", "logfiles", "for", "systemd", "services", "in", "outputDir", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/logexporter/cmd/main.go#L134-L152", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "logexporter/cmd/main.go", "func_name": "prepareLogfiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy logfiles specific to this node based on the cloud-provider, system services, etc\n// to a temporary directory. Also create logfiles for systemd services if journalctl is present.\n// We do not expect this function to see an error.", "docstring_tokens": ["Copy", "logfiles", "specific", "to", "this", "node", "based", "on", "the", "cloud", "-", "provider", "system", "services", "etc", "to", "a", "temporary", "directory", ".", "Also", "create", "logfiles", "for", "systemd", "services", "if", "journalctl", "is", "present", ".", "We", "do", "not", "expect", "this", "function", "to", "see", "an", "error", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/logexporter/cmd/main.go#L157-L194", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "logexporter/cmd/main.go", "func_name": "writeSuccessMarkerFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write a marker file to GCS named after this node to indicate logexporter's success.\n// The directory to which we write this file can then be used as a registry to quickly\n// fetch the list of nodes on which logexporter succeeded.", "docstring_tokens": ["Write", "a", "marker", "file", "to", "GCS", "named", "after", "this", "node", "to", "indicate", "logexporter", "s", "success", ".", "The", "directory", "to", "which", "we", "write", "this", "file", "can", "then", "be", "used", "as", "a", "registry", "to", "quickly", "fetch", "the", "list", "of", "nodes", "on", "which", "logexporter", "succeeded", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/logexporter/cmd/main.go#L224-L237", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/cmd/junit/junit.go", "func_name": "MakeCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakeCommand returns a `junit` command.", "docstring_tokens": ["MakeCommand", "returns", "a", "junit", "command", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/cmd/junit/junit.go#L35-L50", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/config.go", "func_name": "warnDeprecated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// warnDeprecated prints a deprecation warning for a particular configuration\n// option.", "docstring_tokens": ["warnDeprecated", "prints", "a", "deprecation", "warning", "for", "a", "particular", "configuration", "option", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/config.go#L552-L569", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/config.go", "func_name": "Describe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Describe generates a human readable description of the behavior that this\n// configuration specifies.", "docstring_tokens": ["Describe", "generates", "a", "human", "readable", "description", "of", "the", "behavior", "that", "this", "configuration", "specifies", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/config.go#L573-L602", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/config.go", "func_name": "TriggerFor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TriggerFor finds the Trigger for a repo, if one exists\n// a trigger can be listed for the repo itself or for the\n// owning organization", "docstring_tokens": ["TriggerFor", "finds", "the", "Trigger", "for", "a", "repo", "if", "one", "exists", "a", "trigger", "can", "be", "listed", "for", "the", "repo", "itself", "or", "for", "the", "owning", "organization"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/config.go#L607-L616", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/config.go", "func_name": "EnabledReposForPlugin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnabledReposForPlugin returns the orgs and repos that have enabled the passed plugin.", "docstring_tokens": ["EnabledReposForPlugin", "returns", "the", "orgs", "and", "repos", "that", "have", "enabled", "the", "passed", "plugin", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/config.go#L619-L637", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/config.go", "func_name": "EnabledReposForExternalPlugin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnabledReposForExternalPlugin returns the orgs and repos that have enabled the passed\n// external plugin.", "docstring_tokens": ["EnabledReposForExternalPlugin", "returns", "the", "orgs", "and", "repos", "that", "have", "enabled", "the", "passed", "external", "plugin", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/config.go#L641-L659", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/config.go", "func_name": "SetDefaults", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDefaults sets default options for config updating", "docstring_tokens": ["SetDefaults", "sets", "default", "options", "for", "config", "updating"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/config.go#L662-L690", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/config.go", "func_name": "validatePlugins", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validatePlugins will return error if\n// there are unknown or duplicated plugins.", "docstring_tokens": ["validatePlugins", "will", "return", "error", "if", "there", "are", "unknown", "or", "duplicated", "plugins", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/config.go#L744-L766", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/gerrit/reporter/reporter.go", "func_name": "ShouldReport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShouldReport returns if this prowjob should be reported by the gerrit reporter", "docstring_tokens": ["ShouldReport", "returns", "if", "this", "prowjob", "should", "be", "reported", "by", "the", "gerrit", "reporter"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/gerrit/reporter/reporter.go#L62-L112", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/clone/clone.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run clones the refs under the prescribed directory and optionally\n// configures the git username and email in the repository as well.", "docstring_tokens": ["Run", "clones", "the", "refs", "under", "the", "prescribed", "directory", "and", "optionally", "configures", "the", "git", "username", "and", "email", "in", "the", "repository", "as", "well", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/clone/clone.go#L33-L77", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/clone/clone.go", "func_name": "PathForRefs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PathForRefs determines the full path to where\n// refs should be cloned", "docstring_tokens": ["PathForRefs", "determines", "the", "full", "path", "to", "where", "refs", "should", "be", "cloned"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/clone/clone.go#L81-L89", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/clone/clone.go", "func_name": "gitCtxForRefs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// gitCtxForRefs creates a gitCtx based on the provide refs and baseDir.", "docstring_tokens": ["gitCtxForRefs", "creates", "a", "gitCtx", "based", "on", "the", "provide", "refs", "and", "baseDir", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/clone/clone.go#L99-L109", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/clone/clone.go", "func_name": "commandsForBaseRef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// commandsForBaseRef returns the list of commands needed to initialize and\n// configure a local git directory, as well as fetch and check out the provided\n// base ref.", "docstring_tokens": ["commandsForBaseRef", "returns", "the", "list", "of", "commands", "needed", "to", "initialize", "and", "configure", "a", "local", "git", "directory", "as", "well", "as", "fetch", "and", "check", "out", "the", "provided", "base", "ref", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/clone/clone.go#L118-L151", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/clone/clone.go", "func_name": "gitTimestampEnvs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// gitTimestampEnvs returns the list of environment variables needed to override\n// git's author and commit timestamps when creating new commits.", "docstring_tokens": ["gitTimestampEnvs", "returns", "the", "list", "of", "environment", "variables", "needed", "to", "override", "git", "s", "author", "and", "commit", "timestamps", "when", "creating", "new", "commits", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/clone/clone.go#L173-L178", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/clone/clone.go", "func_name": "gitRevParse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// gitRevParse returns current commit from HEAD in a git tree", "docstring_tokens": ["gitRevParse", "returns", "current", "commit", "from", "HEAD", "in", "a", "git", "tree"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/clone/clone.go#L181-L189", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/clone/clone.go", "func_name": "commandsForPullRefs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// commandsForPullRefs returns the list of commands needed to fetch and\n// merge any pull refs as well as submodules. These commands should be run only\n// after the commands provided by commandsForBaseRef have been run\n// successfully.\n// Each merge commit will be created at sequential seconds after fakeTimestamp.\n// It's recommended that fakeTimestamp be set to the timestamp of the base ref.\n// This enables reproducible timestamps and git tree digests every time the same\n// set of base and pull refs are used.", "docstring_tokens": ["commandsForPullRefs", "returns", "the", "list", "of", "commands", "needed", "to", "fetch", "and", "merge", "any", "pull", "refs", "as", "well", "as", "submodules", ".", "These", "commands", "should", "be", "run", "only", "after", "the", "commands", "provided", "by", "commandsForBaseRef", "have", "been", "run", "successfully", ".", "Each", "merge", "commit", "will", "be", "created", "at", "sequential", "seconds", "after", "fakeTimestamp", ".", "It", "s", "recommended", "that", "fakeTimestamp", "be", "set", "to", "the", "timestamp", "of", "the", "base", "ref", ".", "This", "enables", "reproducible", "timestamps", "and", "git", "tree", "digests", "every", "time", "the", "same", "set", "of", "base", "and", "pull", "refs", "are", "used", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/clone/clone.go#L199-L225", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/pkg/cov/junit/calculation/calculation.go", "func_name": "ProduceCovList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProduceCovList summarizes profiles and returns the result", "docstring_tokens": ["ProduceCovList", "summarizes", "profiles", "and", "returns", "the", "result"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/pkg/cov/junit/calculation/calculation.go#L25-L31", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/blunderbuss/blunderbuss.go", "func_name": "popRandom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// popRandom randomly selects an element of 'set' and pops it.", "docstring_tokens": ["popRandom", "randomly", "selects", "an", "element", "of", "set", "and", "pops", "it", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/blunderbuss/blunderbuss.go#L294-L300", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/kubernetes_cluster_clients.go", "func_name": "resolve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resolve loads all of the clients we need and caches them for future calls.", "docstring_tokens": ["resolve", "loads", "all", "of", "the", "clients", "we", "need", "and", "caches", "them", "for", "future", "calls", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/kubernetes_cluster_clients.go#L83-L117", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/kubernetes_cluster_clients.go", "func_name": "ProwJobClientset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProwJobClientset returns a ProwJob clientset for use in informer factories.", "docstring_tokens": ["ProwJobClientset", "returns", "a", "ProwJob", "clientset", "for", "use", "in", "informer", "factories", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/kubernetes_cluster_clients.go#L120-L130", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/kubernetes_cluster_clients.go", "func_name": "ProwJobClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProwJobClient returns a ProwJob client.", "docstring_tokens": ["ProwJobClient", "returns", "a", "ProwJob", "client", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/kubernetes_cluster_clients.go#L133-L143", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/kubernetes_cluster_clients.go", "func_name": "InfrastructureClusterClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InfrastructureClusterClient returns a Kubernetes client for the infrastructure cluster.", "docstring_tokens": ["InfrastructureClusterClient", "returns", "a", "Kubernetes", "client", "for", "the", "infrastructure", "cluster", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/kubernetes_cluster_clients.go#L146-L156", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/kubernetes_cluster_clients.go", "func_name": "BuildClusterClients", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BuildClusterClients returns Pod clients for build clusters.", "docstring_tokens": ["BuildClusterClients", "returns", "Pod", "clients", "for", "build", "clusters", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/kubernetes_cluster_clients.go#L159-L173", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/states.go", "func_name": "Age", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Age gives the time since the state has been activated.", "docstring_tokens": ["Age", "gives", "the", "time", "since", "the", "state", "has", "been", "activated", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/states.go#L49-L51", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/states.go", "func_name": "ReceiveEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReceiveEvent checks if the event matches the exit criteria.\n// Returns a new InactiveState or self, and true if it changed.", "docstring_tokens": ["ReceiveEvent", "checks", "if", "the", "event", "matches", "the", "exit", "criteria", ".", "Returns", "a", "new", "InactiveState", "or", "self", "and", "true", "if", "it", "changed", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/states.go#L55-L62", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/states.go", "func_name": "ReceiveEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReceiveEvent checks if the event matches the entry criteria\n// Returns a new ActiveState or self, and true if it changed.", "docstring_tokens": ["ReceiveEvent", "checks", "if", "the", "event", "matches", "the", "entry", "criteria", "Returns", "a", "new", "ActiveState", "or", "self", "and", "true", "if", "it", "changed", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/states.go#L83-L91", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/states.go", "func_name": "Active", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Active is true if all the states are active.", "docstring_tokens": ["Active", "is", "true", "if", "all", "the", "states", "are", "active", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/states.go#L101-L108", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/states.go", "func_name": "Age", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Age returns the time since all states have been activated.\n// It will panic if any of the state is not active.", "docstring_tokens": ["Age", "returns", "the", "time", "since", "all", "states", "have", "been", "activated", ".", "It", "will", "panic", "if", "any", "of", "the", "state", "is", "not", "active", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/states.go#L112-L121", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/states.go", "func_name": "ReceiveEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReceiveEvent will send the event to each individual state, and update\n// them if they change.", "docstring_tokens": ["ReceiveEvent", "will", "send", "the", "event", "to", "each", "individual", "state", "and", "update", "them", "if", "they", "change", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/states.go#L125-L136", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/client/informers/externalversions/prowjobs/v1/interface.go", "func_name": "ProwJobs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProwJobs returns a ProwJobInformer.", "docstring_tokens": ["ProwJobs", "returns", "a", "ProwJobInformer", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/client/informers/externalversions/prowjobs/v1/interface.go#L43-L45", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/mason_config.go", "func_name": "ItemToResourcesConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ItemToResourcesConfig casts an Item object to a ResourcesConfig", "docstring_tokens": ["ItemToResourcesConfig", "casts", "an", "Item", "object", "to", "a", "ResourcesConfig"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/mason_config.go#L62-L68", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/mason_config.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy returns a copy of the TypeToResources", "docstring_tokens": ["Copy", "returns", "a", "copy", "of", "the", "TypeToResources"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/mason_config.go#L71-L77", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/cmd/aggregate/aggregate.go", "func_name": "MakeCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakeCommand returns an `aggregate` command.", "docstring_tokens": ["MakeCommand", "returns", "an", "aggregate", "command", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/cmd/aggregate/aggregate.go#L34-L48", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plank/controller.go", "func_name": "incrementNumPendingJobs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// incrementNumPendingJobs increments the amount of\n// pending ProwJobs for the given job identifier", "docstring_tokens": ["incrementNumPendingJobs", "increments", "the", "amount", "of", "pending", "ProwJobs", "for", "the", "given", "job", "identifier"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plank/controller.go#L144-L148", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plank/controller.go", "func_name": "setPreviousReportState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setPreviousReportState sets the github key for PrevReportStates\n// to current state. This is a work-around for plank -> crier\n// migration to become seamless.", "docstring_tokens": ["setPreviousReportState", "sets", "the", "github", "key", "for", "PrevReportStates", "to", "current", "state", ".", "This", "is", "a", "work", "-", "around", "for", "plank", "-", ">", "crier", "migration", "to", "become", "seamless", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plank/controller.go#L153-L166", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plank/controller.go", "func_name": "SyncMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SyncMetrics records metrics for the cached prowjobs.", "docstring_tokens": ["SyncMetrics", "records", "metrics", "for", "the", "cached", "prowjobs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plank/controller.go#L255-L259", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/pkg/cov/util.go", "func_name": "DumpProfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DumpProfile dumps the profiles given to writer in go coverage format.", "docstring_tokens": ["DumpProfile", "dumps", "the", "profiles", "given", "to", "writer", "in", "go", "coverage", "format", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/pkg/cov/util.go#L27-L42", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/pkg/cov/util.go", "func_name": "blocksEqual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// blocksEqual returns true if the blocks refer to the same code, otherwise false.\n// It does not care about Count.", "docstring_tokens": ["blocksEqual", "returns", "true", "if", "the", "blocks", "refer", "to", "the", "same", "code", "otherwise", "false", ".", "It", "does", "not", "care", "about", "Count", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/pkg/cov/util.go#L53-L56", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/client/informers/externalversions/prowjobs/v1/prowjob.go", "func_name": "NewProwJobInformer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewProwJobInformer constructs a new informer for ProwJob type.\n// Always prefer using an informer factory to get a shared informer instead of getting an independent\n// one. This reduces memory footprint and number of connections to the server.", "docstring_tokens": ["NewProwJobInformer", "constructs", "a", "new", "informer", "for", "ProwJob", "type", ".", "Always", "prefer", "using", "an", "informer", "factory", "to", "get", "a", "shared", "informer", "instead", "of", "getting", "an", "independent", "one", ".", "This", "reduces", "memory", "footprint", "and", "number", "of", "connections", "to", "the", "server", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/client/informers/externalversions/prowjobs/v1/prowjob.go#L50-L52", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/client/informers/externalversions/prowjobs/v1/prowjob.go", "func_name": "NewFilteredProwJobInformer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFilteredProwJobInformer constructs a new informer for ProwJob type.\n// Always prefer using an informer factory to get a shared informer instead of getting an independent\n// one. This reduces memory footprint and number of connections to the server.", "docstring_tokens": ["NewFilteredProwJobInformer", "constructs", "a", "new", "informer", "for", "ProwJob", "type", ".", "Always", "prefer", "using", "an", "informer", "factory", "to", "get", "a", "shared", "informer", "instead", "of", "getting", "an", "independent", "one", ".", "This", "reduces", "memory", "footprint", "and", "number", "of", "connections", "to", "the", "server", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/client/informers/externalversions/prowjobs/v1/prowjob.go#L57-L77", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/spyglass.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New constructs a Spyglass object from a JobAgent, a config.Agent, and a storage Client.", "docstring_tokens": ["New", "constructs", "a", "Spyglass", "object", "from", "a", "JobAgent", "a", "config", ".", "Agent", "and", "a", "storage", "Client", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/spyglass.go#L79-L91", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/spyglass.go", "func_name": "Lenses", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Lenses gets all views of all artifact files matching each regexp with a registered lens", "docstring_tokens": ["Lenses", "gets", "all", "views", "of", "all", "artifact", "files", "matching", "each", "regexp", "with", "a", "registered", "lens"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/spyglass.go#L98-L125", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/spyglass.go", "func_name": "JobPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JobPath returns a link to the GCS directory for the job specified in src", "docstring_tokens": ["JobPath", "returns", "a", "link", "to", "the", "GCS", "directory", "for", "the", "job", "specified", "in", "src"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/spyglass.go#L172-L218", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/spyglass.go", "func_name": "RunPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunPath returns the path to the GCS directory for the job run specified in src.", "docstring_tokens": ["RunPath", "returns", "the", "path", "to", "the", "GCS", "directory", "for", "the", "job", "run", "specified", "in", "src", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/spyglass.go#L221-L235", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/spyglass.go", "func_name": "ExtraLinks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExtraLinks fetches started.json and extracts links from metadata.links.", "docstring_tokens": ["ExtraLinks", "fetches", "started", ".", "json", "and", "extracts", "links", "from", "metadata", ".", "links", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/spyglass.go#L317-L359", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/hook/server.go", "func_name": "needDemux", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// needDemux returns whether there are any external plugins that need to\n// get the present event.", "docstring_tokens": ["needDemux", "returns", "whether", "there", "are", "any", "external", "plugins", "that", "need", "to", "get", "the", "present", "event", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/hook/server.go#L164-L190", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/hook/server.go", "func_name": "demuxExternal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// demuxExternal dispatches the provided payload to the external plugins.", "docstring_tokens": ["demuxExternal", "dispatches", "the", "provided", "payload", "to", "the", "external", "plugins", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/hook/server.go#L193-L206", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/hook/server.go", "func_name": "dispatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dispatch creates a new request using the provided payload and headers\n// and dispatches the request to the provided endpoint.", "docstring_tokens": ["dispatch", "creates", "a", "new", "request", "using", "the", "provided", "payload", "and", "headers", "and", "dispatches", "the", "request", "to", "the", "provided", "endpoint", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/hook/server.go#L210-L229", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/state.go", "func_name": "AddFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFlags adds \"state\" and \"percentiles\" to the command help", "docstring_tokens": ["AddFlags", "adds", "state", "and", "percentiles", "to", "the", "command", "help"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/state.go#L36-L39", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/state.go", "func_name": "CheckFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckFlags configures which states to monitor", "docstring_tokens": ["CheckFlags", "configures", "which", "states", "to", "monitor"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/state.go#L42-L45", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/state.go", "func_name": "ReceiveIssueEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReceiveIssueEvent computes age percentiles and saves them to InfluxDB", "docstring_tokens": ["ReceiveIssueEvent", "computes", "age", "percentiles", "and", "saves", "them", "to", "InfluxDB"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/state.go#L53-L78", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/config.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load loads and parses the config at path.", "docstring_tokens": ["Load", "loads", "and", "parses", "the", "config", "at", "path", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/config.go#L414-L435", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/config.go", "func_name": "loadConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loadConfig loads one or multiple config files and returns a config object.", "docstring_tokens": ["loadConfig", "loads", "one", "or", "multiple", "config", "files", "and", "returns", "a", "config", "object", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/config.go#L438-L525", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/config.go", "func_name": "yamlToConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// yamlToConfig converts a yaml file into a Config object", "docstring_tokens": ["yamlToConfig", "converts", "a", "yaml", "file", "into", "a", "Config", "object"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/config.go#L528-L570", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/config.go", "func_name": "ReadFileMaybeGZIP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadFileMaybeGZIP wraps ioutil.ReadFile, returning the decompressed contents\n// if the file is gzipped, or otherwise the raw contents", "docstring_tokens": ["ReadFileMaybeGZIP", "wraps", "ioutil", ".", "ReadFile", "returning", "the", "decompressed", "contents", "if", "the", "file", "is", "gzipped", "or", "otherwise", "the", "raw", "contents"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/config.go#L574-L590", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/config.go", "func_name": "finalizeJobConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// finalizeJobConfig mutates and fixes entries for jobspecs", "docstring_tokens": ["finalizeJobConfig", "mutates", "and", "fixes", "entries", "for", "jobspecs"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/config.go#L656-L723", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/config.go", "func_name": "validateComponentConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateComponentConfig validates the infrastructure component configuration", "docstring_tokens": ["validateComponentConfig", "validates", "the", "infrastructure", "component", "configuration"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/config.go#L726-L742", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/config.go", "func_name": "ConfigPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConfigPath returns the value for the component's configPath if provided\n// explicitly or default otherwise.", "docstring_tokens": ["ConfigPath", "returns", "the", "value", "for", "the", "component", "s", "configPath", "if", "provided", "explicitly", "or", "default", "otherwise", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/config.go#L861-L868", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/config.go", "func_name": "ValidateController", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateController validates the provided controller config.", "docstring_tokens": ["ValidateController", "validates", "the", "provided", "controller", "config", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/config.go#L1306-L1328", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/config.go", "func_name": "defaultJobBase", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// defaultJobBase configures common parameters, currently Agent and Namespace.", "docstring_tokens": ["defaultJobBase", "configures", "common", "parameters", "currently", "Agent", "and", "Namespace", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/config.go#L1343-L1354", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/config.go", "func_name": "SetPresubmitRegexes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPresubmitRegexes compiles and validates all the regular expressions for\n// the provided presubmits.", "docstring_tokens": ["SetPresubmitRegexes", "compiles", "and", "validates", "all", "the", "regular", "expressions", "for", "the", "provided", "presubmits", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/config.go#L1389-L1412", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/config.go", "func_name": "setBrancherRegexes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setBrancherRegexes compiles and validates all the regular expressions for\n// the provided branch specifiers.", "docstring_tokens": ["setBrancherRegexes", "compiles", "and", "validates", "all", "the", "regular", "expressions", "for", "the", "provided", "branch", "specifiers", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/config.go#L1416-L1432", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/config.go", "func_name": "SetPostsubmitRegexes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPostsubmitRegexes compiles and validates all the regular expressions for\n// the provided postsubmits.", "docstring_tokens": ["SetPostsubmitRegexes", "compiles", "and", "validates", "all", "the", "regular", "expressions", "for", "the", "provided", "postsubmits", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/config.go#L1447-L1461", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/lenses/metadata/lens.go", "func_name": "Body", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Body creates a view for prow job metadata.", "docstring_tokens": ["Body", "creates", "a", "view", "for", "prow", "job", "metadata", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/lenses/metadata/lens.go#L77-L140", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/boskos.go", "func_name": "NewBoskosHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewBoskosHandler constructs the boskos handler.", "docstring_tokens": ["NewBoskosHandler", "constructs", "the", "boskos", "handler", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/boskos.go#L88-L98", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/boskos.go", "func_name": "ErrorToStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ErrorToStatus translates error into http code", "docstring_tokens": ["ErrorToStatus", "translates", "error", "into", "http", "code"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/boskos.go#L101-L114", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/pkg/util/util.go", "func_name": "DumpProfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DumpProfile dumps the profile to the given file destination.\n// If the destination is \"-\", it instead writes to stdout.", "docstring_tokens": ["DumpProfile", "dumps", "the", "profile", "to", "the", "given", "file", "destination", ".", "If", "the", "destination", "is", "-", "it", "instead", "writes", "to", "stdout", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/pkg/util/util.go#L30-L47", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/pkg/util/util.go", "func_name": "LoadProfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadProfile loads a profile from the given filename.\n// If the filename is \"-\", it instead reads from stdin.", "docstring_tokens": ["LoadProfile", "loads", "a", "profile", "from", "the", "given", "filename", ".", "If", "the", "filename", "is", "-", "it", "instead", "reads", "from", "stdin", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/pkg/util/util.go#L51-L69", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/git.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient returns a client that talks to GitHub. It will fail if git is not\n// in the PATH.", "docstring_tokens": ["NewClient", "returns", "a", "client", "that", "talks", "to", "GitHub", ".", "It", "will", "fail", "if", "git", "is", "not", "in", "the", "PATH", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/git.go#L74-L90", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/git.go", "func_name": "SetCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetCredentials sets credentials in the client to be used for pushing to\n// or pulling from remote repositories.", "docstring_tokens": ["SetCredentials", "sets", "credentials", "in", "the", "client", "to", "be", "used", "for", "pushing", "to", "or", "pulling", "from", "remote", "repositories", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/git.go#L101-L106", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/git.go", "func_name": "Checkout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Checkout runs git checkout.", "docstring_tokens": ["Checkout", "runs", "git", "checkout", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/git.go#L215-L222", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/git.go", "func_name": "CheckoutNewBranch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckoutNewBranch creates a new branch and checks it out.", "docstring_tokens": ["CheckoutNewBranch", "creates", "a", "new", "branch", "and", "checks", "it", "out", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/git.go#L235-L242", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/git.go", "func_name": "Merge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge attempts to merge commitlike into the current branch. It returns true\n// if the merge completes. It returns an error if the abort fails.", "docstring_tokens": ["Merge", "attempts", "to", "merge", "commitlike", "into", "the", "current", "branch", ".", "It", "returns", "true", "if", "the", "merge", "completes", ".", "It", "returns", "an", "error", "if", "the", "abort", "fails", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/git.go#L246-L261", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/git.go", "func_name": "CheckoutPullRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckoutPullRequest does exactly that.", "docstring_tokens": ["CheckoutPullRequest", "does", "exactly", "that", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/git.go#L300-L310", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/git.go", "func_name": "Config", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Config runs git config.", "docstring_tokens": ["Config", "runs", "git", "config", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/git.go#L313-L319", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/git/git.go", "func_name": "retryCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// retryCmd will retry the command a few times with backoff. Use this for any\n// commands that will be talking to GitHub, such as clones or fetches.", "docstring_tokens": ["retryCmd", "will", "retry", "the", "command", "a", "few", "times", "with", "backoff", ".", "Use", "this", "for", "any", "commands", "that", "will", "be", "talking", "to", "GitHub", "such", "as", "clones", "or", "fetches", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/git/git.go#L323-L340", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/decorate/podspec.go", "func_name": "LabelsAndAnnotationsForSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LabelsAndAnnotationsForSpec returns a minimal set of labels to add to prowjobs or its owned resources.\n//\n// User-provided extraLabels and extraAnnotations values will take precedence over auto-provided values.", "docstring_tokens": ["LabelsAndAnnotationsForSpec", "returns", "a", "minimal", "set", "of", "labels", "to", "add", "to", "prowjobs", "or", "its", "owned", "resources", ".", "User", "-", "provided", "extraLabels", "and", "extraAnnotations", "values", "will", "take", "precedence", "over", "auto", "-", "provided", "values", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/decorate/podspec.go#L77-L132", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/decorate/podspec.go", "func_name": "ProwJobToPod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProwJobToPod converts a ProwJob to a Pod that will run the tests.", "docstring_tokens": ["ProwJobToPod", "converts", "a", "ProwJob", "to", "a", "Pod", "that", "will", "run", "the", "tests", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/decorate/podspec.go#L145-L185", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/decorate/podspec.go", "func_name": "CloneLogPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloneLogPath returns the path to the clone log file in the volume mount.\n// CloneLogPath returns the path to the clone log file in the volume mount.", "docstring_tokens": ["CloneLogPath", "returns", "the", "path", "to", "the", "clone", "log", "file", "in", "the", "volume", "mount", ".", "CloneLogPath", "returns", "the", "path", "to", "the", "clone", "log", "file", "in", "the", "volume", "mount", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/decorate/podspec.go#L191-L193", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/decorate/podspec.go", "func_name": "cloneEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cloneEnv encodes clonerefs Options into json and puts it into an environment variable", "docstring_tokens": ["cloneEnv", "encodes", "clonerefs", "Options", "into", "json", "and", "puts", "it", "into", "an", "environment", "variable"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/decorate/podspec.go#L202-L209", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/decorate/podspec.go", "func_name": "sshVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sshVolume converts a secret holding ssh keys into the corresponding volume and mount.\n//\n// This is used by CloneRefs to attach the mount to the clonerefs container.", "docstring_tokens": ["sshVolume", "converts", "a", "secret", "holding", "ssh", "keys", "into", "the", "corresponding", "volume", "and", "mount", ".", "This", "is", "used", "by", "CloneRefs", "to", "attach", "the", "mount", "to", "the", "clonerefs", "container", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/decorate/podspec.go#L214-L235", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/decorate/podspec.go", "func_name": "InjectEntrypoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InjectEntrypoint will make the entrypoint binary in the tools volume the container's entrypoint, which will output to the log volume.", "docstring_tokens": ["InjectEntrypoint", "will", "make", "the", "entrypoint", "binary", "in", "the", "tools", "volume", "the", "container", "s", "entrypoint", "which", "will", "output", "to", "the", "log", "volume", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/decorate/podspec.go#L381-L406", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/decorate/podspec.go", "func_name": "PlaceEntrypoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PlaceEntrypoint will copy entrypoint from the entrypoint image to the tools volume", "docstring_tokens": ["PlaceEntrypoint", "will", "copy", "entrypoint", "from", "the", "entrypoint", "image", "to", "the", "tools", "volume"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/decorate/podspec.go#L409-L417", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/decorate/podspec.go", "func_name": "kubeEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// kubeEnv transforms a mapping of environment variables\n// into their serialized form for a PodSpec, sorting by\n// the name of the env vars", "docstring_tokens": ["kubeEnv", "transforms", "a", "mapping", "of", "environment", "variables", "into", "their", "serialized", "form", "for", "a", "PodSpec", "sorting", "by", "the", "name", "of", "the", "env", "vars"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/decorate/podspec.go#L592-L608", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/kubernetes.go", "func_name": "Client", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Client returns a Kubernetes client.", "docstring_tokens": ["Client", "returns", "a", "Kubernetes", "client", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/kubernetes.go#L63-L73", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/wip/wip-label.go", "func_name": "handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handle interacts with GitHub to drive the pull request to the\n// proper state by adding and removing comments and labels. If a\n// PR has a WIP prefix, it needs an explanatory comment and label.\n// Otherwise, neither should be present.", "docstring_tokens": ["handle", "interacts", "with", "GitHub", "to", "drive", "the", "pull", "request", "to", "the", "proper", "state", "by", "adding", "and", "removing", "comments", "and", "labels", ".", "If", "a", "PR", "has", "a", "WIP", "prefix", "it", "needs", "an", "explanatory", "comment", "and", "label", ".", "Otherwise", "neither", "should", "be", "present", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/wip/wip-label.go#L115-L130", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/phony/phony.go", "func_name": "SendHook", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendHook sends a GitHub event of type eventType to the provided address.", "docstring_tokens": ["SendHook", "sends", "a", "GitHub", "event", "of", "type", "eventType", "to", "the", "provided", "address", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/phony/phony.go#L29-L53", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/janitor/janitor.go", "func_name": "janitorClean", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clean by janitor script", "docstring_tokens": ["Clean", "by", "janitor", "script"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/janitor/janitor.go#L76-L88", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/janitor/janitor.go", "func_name": "janitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// async janitor goroutine", "docstring_tokens": ["async", "janitor", "goroutine"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/janitor/janitor.go#L137-L151", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pubsub/subscriber/server.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run will block listening to all subscriptions and return once the context is cancelled\n// or one of the subscription has a unrecoverable error.", "docstring_tokens": ["Run", "will", "block", "listening", "to", "all", "subscriptions", "and", "return", "once", "the", "context", "is", "cancelled", "or", "one", "of", "the", "subscription", "has", "a", "unrecoverable", "error", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pubsub/subscriber/server.go#L199-L242", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/initupload/run.go", "func_name": "specToStarted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// specToStarted translate a jobspec into a started struct\n// optionally overwrite RepoVersion with provided mainRefSHA", "docstring_tokens": ["specToStarted", "translate", "a", "jobspec", "into", "a", "started", "struct", "optionally", "overwrite", "RepoVersion", "with", "provided", "mainRefSHA"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/initupload/run.go#L35-L61", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/initupload/run.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run will start the initupload job to upload the artifacts, logs and clone status.", "docstring_tokens": ["Run", "will", "start", "the", "initupload", "job", "to", "upload", "the", "artifacts", "logs", "and", "clone", "status", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/initupload/run.go#L64-L98", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/invalidcommitmsg/invalidcommitmsg.go", "func_name": "hasPRChanged", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hasPRChanged indicates that the code diff may have changed.", "docstring_tokens": ["hasPRChanged", "indicates", "that", "the", "code", "diff", "may", "have", "changed", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/invalidcommitmsg/invalidcommitmsg.go#L158-L169", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/fetcher/issues.go", "func_name": "UpdateIssues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateIssues downloads new issues and saves in database", "docstring_tokens": ["UpdateIssues", "downloads", "new", "issues", "and", "saves", "in", "database"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/fetcher/issues.go#L46-L83", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approve.go", "func_name": "handleReviewEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleReviewEvent should only handle reviews that have no approval command.\n// Reviews with approval commands will be handled by handleGenericCommentEvent.", "docstring_tokens": ["handleReviewEvent", "should", "only", "handle", "reviews", "that", "have", "no", "approval", "command", ".", "Reviews", "with", "approval", "commands", "will", "be", "handled", "by", "handleGenericCommentEvent", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approve.go#L201-L210", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approve.go", "func_name": "findAssociatedIssue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns associated issue, or 0 if it can't find any.\n// This is really simple, and could be improved later.", "docstring_tokens": ["Returns", "associated", "issue", "or", "0", "if", "it", "can", "t", "find", "any", ".", "This", "is", "really", "simple", "and", "could", "be", "improved", "later", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approve.go#L315-L329", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/approve/approve.go", "func_name": "optionsForRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// optionsForRepo gets the plugins.Approve struct that is applicable to the indicated repo.", "docstring_tokens": ["optionsForRepo", "gets", "the", "plugins", ".", "Approve", "struct", "that", "is", "applicable", "to", "the", "indicated", "repo", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/approve/approve.go#L607-L639", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/deck/main.go", "func_name": "localOnlyMain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// localOnlyMain contains logic used only when running locally, and is mutually exclusive with\n// prodOnlyMain.", "docstring_tokens": ["localOnlyMain", "contains", "logic", "used", "only", "when", "running", "locally", "and", "is", "mutually", "exclusive", "with", "prodOnlyMain", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/deck/main.go#L219-L227", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/pkg/cov/junit/calculation/coveragelist.go", "func_name": "summarize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// summarize summarizes all items in the Group and stores the result", "docstring_tokens": ["summarize", "summarizes", "all", "items", "in", "the", "Group", "and", "stores", "the", "result"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/pkg/cov/junit/calculation/coveragelist.go#L45-L52", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/pkg/cov/junit/calculation/coveragelist.go", "func_name": "Subset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subset returns the subset obtained through applying filter", "docstring_tokens": ["Subset", "returns", "the", "subset", "obtained", "through", "applying", "filter"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/pkg/cov/junit/calculation/coveragelist.go#L55-L63", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/pkg/cov/junit/calculation/coveragelist.go", "func_name": "ListDirectories", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListDirectories gets a list a sub-directories that contains source code.", "docstring_tokens": ["ListDirectories", "gets", "a", "list", "a", "sub", "-", "directories", "that", "contains", "source", "code", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/pkg/cov/junit/calculation/coveragelist.go#L66-L76", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/admission/admission.go", "func_name": "readRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readRequest extracts the request from the AdmissionReview reader", "docstring_tokens": ["readRequest", "extracts", "the", "request", "from", "the", "AdmissionReview", "reader"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/admission/admission.go#L59-L80", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/admission/admission.go", "func_name": "handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handle reads the request and writes the response", "docstring_tokens": ["handle", "reads", "the", "request", "and", "writes", "the", "response"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/admission/admission.go#L83-L92", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/admission/admission.go", "func_name": "writeResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeResponse gets the response from onlyUpdateStatus and writes it to w.", "docstring_tokens": ["writeResponse", "gets", "the", "response", "from", "onlyUpdateStatus", "and", "writes", "it", "to", "w", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/admission/admission.go#L97-L118", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/admission/admission.go", "func_name": "onlyUpdateStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// onlyUpdateStatus returns the response to the request", "docstring_tokens": ["onlyUpdateStatus", "returns", "the", "response", "to", "the", "request"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/admission/admission.go#L133-L163", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "experiment/resultstore/convert.go", "func_name": "convertSuiteMeta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// convertSuiteMeta converts a junit result in gcs to a ResultStore Suite.", "docstring_tokens": ["convertSuiteMeta", "converts", "a", "junit", "result", "in", "gcs", "to", "a", "ResultStore", "Suite", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/experiment/resultstore/convert.go#L34-L105", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/health.go", "func_name": "NewHealth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHealth creates a new health request multiplexer and starts serving the liveness endpoint\n// on the given port", "docstring_tokens": ["NewHealth", "creates", "a", "new", "health", "request", "multiplexer", "and", "starts", "serving", "the", "liveness", "endpoint", "on", "the", "given", "port"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/health.go#L37-L46", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/health.go", "func_name": "ServeReady", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeReady starts serving the readiness endpoint", "docstring_tokens": ["ServeReady", "starts", "serving", "the", "readiness", "endpoint"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/health.go#L49-L51", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/tide.go", "func_name": "NewController", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewController makes a Controller out of the given clients.", "docstring_tokens": ["NewController", "makes", "a", "Controller", "out", "of", "the", "given", "clients", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/tide.go#L203-L234", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/tide.go", "func_name": "newExpectedContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newExpectedContext creates a Context with Expected state.", "docstring_tokens": ["newExpectedContext", "creates", "a", "Context", "with", "Expected", "state", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/tide.go#L259-L265", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/tide.go", "func_name": "contextsToStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// contextsToStrings converts a list Context to a list of string", "docstring_tokens": ["contextsToStrings", "converts", "a", "list", "Context", "to", "a", "list", "of", "string"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/tide.go#L268-L274", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/tide.go", "func_name": "filterSubpools", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// filterSubpools filters non-pool PRs out of the initially identified subpools,\n// deleting any pools that become empty.\n// See filterSubpool for filtering details.", "docstring_tokens": ["filterSubpools", "filters", "non", "-", "pool", "PRs", "out", "of", "the", "initially", "identified", "subpools", "deleting", "any", "pools", "that", "become", "empty", ".", "See", "filterSubpool", "for", "filtering", "details", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/tide.go#L416-L441", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/tide.go", "func_name": "filterSubpool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// filterSubpool filters PRs from an initially identified subpool, returning the\n// filtered subpool.\n// If the subpool becomes empty 'nil' is returned to indicate that the subpool\n// should be deleted.", "docstring_tokens": ["filterSubpool", "filters", "PRs", "from", "an", "initially", "identified", "subpool", "returning", "the", "filtered", "subpool", ".", "If", "the", "subpool", "becomes", "empty", "nil", "is", "returned", "to", "indicate", "that", "the", "subpool", "should", "be", "deleted", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/tide.go#L460-L472", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/tide.go", "func_name": "poolPRMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// poolPRMap collects all subpool PRs into a map containing all pooled PRs.", "docstring_tokens": ["poolPRMap", "collects", "all", "subpool", "PRs", "into", "a", "map", "containing", "all", "pooled", "PRs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/tide.go#L520-L528", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/tide.go", "func_name": "unsuccessfulContexts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// unsuccessfulContexts determines which contexts from the list that we care about are\n// failed. For instance, we do not care about our own context.\n// If the branchProtection is set to only check for required checks, we will skip\n// all non-required tests. If required tests are missing from the list, they will be\n// added to the list of failed contexts.", "docstring_tokens": ["unsuccessfulContexts", "determines", "which", "contexts", "from", "the", "list", "that", "we", "care", "about", "are", "failed", ".", "For", "instance", "we", "do", "not", "care", "about", "our", "own", "context", ".", "If", "the", "branchProtection", "is", "set", "to", "only", "check", "for", "required", "checks", "we", "will", "skip", "all", "non", "-", "required", "tests", ".", "If", "required", "tests", "are", "missing", "from", "the", "list", "they", "will", "be", "added", "to", "the", "list", "of", "failed", "contexts", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/tide.go#L566-L585", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/tide.go", "func_name": "accumulate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// accumulate returns the supplied PRs sorted into three buckets based on their\n// accumulated state across the presubmits.", "docstring_tokens": ["accumulate", "returns", "the", "supplied", "PRs", "sorted", "into", "three", "buckets", "based", "on", "their", "accumulated", "state", "across", "the", "presubmits", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/tide.go#L701-L750", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/tide.go", "func_name": "tryMerge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tryMerge attempts 1 merge and returns a bool indicating if we should try\n// to merge the remaining PRs and possibly an error.", "docstring_tokens": ["tryMerge", "attempts", "1", "merge", "and", "returns", "a", "bool", "indicating", "if", "we", "should", "try", "to", "merge", "the", "remaining", "PRs", "and", "possibly", "an", "error", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/tide.go#L930-L988", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/tide.go", "func_name": "prChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// prChanges gets the files changed by the PR, either from the cache or by\n// querying GitHub.", "docstring_tokens": ["prChanges", "gets", "the", "files", "changed", "by", "the", "PR", "either", "from", "the", "cache", "or", "by", "querying", "GitHub", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/tide.go#L1090-L1133", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/tide.go", "func_name": "prune", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// prune removes any cached file changes that were not used since the last prune.", "docstring_tokens": ["prune", "removes", "any", "cached", "file", "changes", "that", "were", "not", "used", "since", "the", "last", "prune", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/tide.go#L1136-L1141", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/tide.go", "func_name": "dividePool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dividePool splits up the list of pull requests and prow jobs into a group\n// per repo and branch. It only keeps ProwJobs that match the latest branch.", "docstring_tokens": ["dividePool", "splits", "up", "the", "list", "of", "pull", "requests", "and", "prow", "jobs", "into", "a", "group", "per", "repo", "and", "branch", ".", "It", "only", "keeps", "ProwJobs", "that", "match", "the", "latest", "branch", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/tide.go#L1283-L1322", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/pkg/cov/aggregate.go", "func_name": "AggregateProfiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AggregateProfiles takes multiple coverage profiles and produces a new\n// coverage profile that counts the number of profiles that hit a block at least\n// once.", "docstring_tokens": ["AggregateProfiles", "takes", "multiple", "coverage", "profiles", "and", "produces", "a", "new", "coverage", "profile", "that", "counts", "the", "number", "of", "profiles", "that", "hit", "a", "block", "at", "least", "once", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/pkg/cov/aggregate.go#L26-L37", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/pkg/cov/aggregate.go", "func_name": "countToBoolean", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// countToBoolean converts a profile containing hit counts to instead contain\n// only 1s or 0s.", "docstring_tokens": ["countToBoolean", "converts", "a", "profile", "containing", "hit", "counts", "to", "instead", "contain", "only", "1s", "or", "0s", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/pkg/cov/aggregate.go#L41-L53", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/ranch/storage.go", "func_name": "NewStorage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStorage instantiates a new Storage with a PersistenceLayer implementation\n// If storage string is not empty, it will read resource data from the file", "docstring_tokens": ["NewStorage", "instantiates", "a", "new", "Storage", "with", "a", "PersistenceLayer", "implementation", "If", "storage", "string", "is", "not", "empty", "it", "will", "read", "resource", "data", "from", "the", "file"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/ranch/storage.go#L42-L71", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/ranch/storage.go", "func_name": "AddResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddResource adds a new resource", "docstring_tokens": ["AddResource", "adds", "a", "new", "resource"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/ranch/storage.go#L74-L76", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/ranch/storage.go", "func_name": "DeleteResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteResource deletes a resource if it exists, errors otherwise", "docstring_tokens": ["DeleteResource", "deletes", "a", "resource", "if", "it", "exists", "errors", "otherwise"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/ranch/storage.go#L79-L81", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/ranch/storage.go", "func_name": "UpdateResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateResource updates a resource if it exists, errors otherwise", "docstring_tokens": ["UpdateResource", "updates", "a", "resource", "if", "it", "exists", "errors", "otherwise"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/ranch/storage.go#L84-L86", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/ranch/storage.go", "func_name": "GetResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetResource gets an existing resource, errors otherwise", "docstring_tokens": ["GetResource", "gets", "an", "existing", "resource", "errors", "otherwise"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/ranch/storage.go#L89-L100", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/ranch/storage.go", "func_name": "GetResources", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetResources list all resources", "docstring_tokens": ["GetResources", "list", "all", "resources"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/ranch/storage.go#L103-L119", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/ranch/storage.go", "func_name": "SyncResources", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SyncResources will update resources every 10 mins.\n// It will append newly added resources to ranch.Resources,\n// And try to remove newly deleted resources from ranch.Resources.\n// If the newly deleted resource is currently held by a user, the deletion will\n// yield to next update cycle.", "docstring_tokens": ["SyncResources", "will", "update", "resources", "every", "10", "mins", ".", "It", "will", "append", "newly", "added", "resources", "to", "ranch", ".", "Resources", "And", "try", "to", "remove", "newly", "deleted", "resources", "from", "ranch", ".", "Resources", ".", "If", "the", "newly", "deleted", "resource", "is", "currently", "held", "by", "a", "user", "the", "deletion", "will", "yield", "to", "next", "update", "cycle", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/ranch/storage.go#L126-L191", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/ranch/storage.go", "func_name": "ParseConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseConfig reads in configPath and returns a list of resource objects\n// on success.", "docstring_tokens": ["ParseConfig", "reads", "in", "configPath", "and", "returns", "a", "list", "of", "resource", "objects", "on", "success", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/ranch/storage.go#L195-L212", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/buildifier/buildifier.go", "func_name": "problemsInFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// problemsInFiles runs buildifier on the files. It returns a map from the file to\n// a list of problems with that file.", "docstring_tokens": ["problemsInFiles", "runs", "buildifier", "on", "the", "files", ".", "It", "returns", "a", "map", "from", "the", "file", "to", "a", "list", "of", "problems", "with", "that", "file", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/buildifier/buildifier.go#L127-L150", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/podlogartifact.go", "func_name": "NewPodLogArtifact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPodLogArtifact creates a new PodLogArtifact", "docstring_tokens": ["NewPodLogArtifact", "creates", "a", "new", "PodLogArtifact"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/podlogartifact.go#L50-L66", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/podlogartifact.go", "func_name": "CanonicalLink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CanonicalLink returns a link to where pod logs are streamed", "docstring_tokens": ["CanonicalLink", "returns", "a", "link", "to", "where", "pod", "logs", "are", "streamed"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/podlogartifact.go#L69-L79", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/podlogartifact.go", "func_name": "ReadAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadAt implements reading a range of bytes from the pod logs endpoint", "docstring_tokens": ["ReadAt", "implements", "reading", "a", "range", "of", "bytes", "from", "the", "pod", "logs", "endpoint"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/podlogartifact.go#L89-L103", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/podlogartifact.go", "func_name": "ReadAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadAll reads all available pod logs, failing if they are too large", "docstring_tokens": ["ReadAll", "reads", "all", "available", "pod", "logs", "failing", "if", "they", "are", "too", "large"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/podlogartifact.go#L106-L119", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/podlogartifact.go", "func_name": "ReadAtMost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadAtMost reads at most n bytes", "docstring_tokens": ["ReadAtMost", "reads", "at", "most", "n", "bytes"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/podlogartifact.go#L122-L142", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/podlogartifact.go", "func_name": "ReadTail", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadTail reads the last n bytes of the pod log", "docstring_tokens": ["ReadTail", "reads", "the", "last", "n", "bytes", "of", "the", "pod", "log"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/podlogartifact.go#L145-L163", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/golint/golint.go", "func_name": "newProblems", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newProblems compares the list of problems with the list of past comments on\n// the PR to decide which are new.", "docstring_tokens": ["newProblems", "compares", "the", "list", "of", "problems", "with", "the", "list", "of", "past", "comments", "on", "the", "PR", "to", "decide", "which", "are", "new", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/golint/golint.go#L121-L140", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/golint/golint.go", "func_name": "problemsInFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// problemsInFiles runs golint on the files. It returns a map from the file to\n// a map from the line in the patch to the problem.", "docstring_tokens": ["problemsInFiles", "runs", "golint", "on", "the", "files", ".", "It", "returns", "a", "map", "from", "the", "file", "to", "a", "map", "from", "the", "line", "in", "the", "patch", "to", "the", "problem", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/golint/golint.go#L144-L197", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "config/jobs/kubernetes-security/genjobs.go", "func_name": "undoPreset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// remove merged presets from a podspec", "docstring_tokens": ["remove", "merged", "presets", "from", "a", "podspec"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/config/jobs/kubernetes-security/genjobs.go#L55-L104", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "config/jobs/kubernetes-security/genjobs.go", "func_name": "undoPresubmitPresets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// undo merged presets from loaded presubmit and its children", "docstring_tokens": ["undo", "merged", "presets", "from", "loaded", "presubmit", "and", "its", "children"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/config/jobs/kubernetes-security/genjobs.go#L107-L114", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "config/jobs/kubernetes-security/genjobs.go", "func_name": "yamlBytesStripNulls", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// these are unnecessary, and make the config larger so we strip them out", "docstring_tokens": ["these", "are", "unnecessary", "and", "make", "the", "config", "larger", "so", "we", "strip", "them", "out"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/config/jobs/kubernetes-security/genjobs.go#L266-L269", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "greenhouse/eviction.go", "func_name": "monitorDiskAndEvict", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// monitorDiskAndEvict loops monitoring the disk, evicting cache entries\n// when the disk passes either minPercentBlocksFree until the disk is above\n// evictUntilPercentBlocksFree", "docstring_tokens": ["monitorDiskAndEvict", "loops", "monitoring", "the", "disk", "evicting", "cache", "entries", "when", "the", "disk", "passes", "either", "minPercentBlocksFree", "until", "the", "disk", "is", "above", "evictUntilPercentBlocksFree"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/greenhouse/eviction.go#L31-L88", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/checkconfig/main.go", "func_name": "difference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// difference returns a new orgRepoConfig that represents the set difference of\n// the repos specified by the receiver and the parameter orgRepoConfigs.", "docstring_tokens": ["difference", "returns", "a", "new", "orgRepoConfig", "that", "represents", "the", "set", "difference", "of", "the", "repos", "specified", "by", "the", "receiver", "and", "the", "parameter", "orgRepoConfigs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/checkconfig/main.go#L586-L616", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/checkconfig/main.go", "func_name": "union", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// union returns a new orgRepoConfig that represents the set union of the\n// repos specified by the receiver and the parameter orgRepoConfigs", "docstring_tokens": ["union", "returns", "a", "new", "orgRepoConfig", "that", "represents", "the", "set", "union", "of", "the", "repos", "specified", "by", "the", "receiver", "and", "the", "parameter", "orgRepoConfigs"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/checkconfig/main.go#L653-L693", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/releasenote/releasenote.go", "func_name": "clearStaleComments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// clearStaleComments deletes old comments that are no longer applicable.", "docstring_tokens": ["clearStaleComments", "deletes", "old", "comments", "that", "are", "no", "longer", "applicable", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/releasenote/releasenote.go#L264-L284", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/releasenote/releasenote.go", "func_name": "determineReleaseNoteLabel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// determineReleaseNoteLabel returns the label to be added based on the contents of the 'release-note'\n// section of a PR's body text.", "docstring_tokens": ["determineReleaseNoteLabel", "returns", "the", "label", "to", "be", "added", "based", "on", "the", "contents", "of", "the", "release", "-", "note", "section", "of", "a", "PR", "s", "body", "text", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/releasenote/releasenote.go#L308-L321", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/releasenote/releasenote.go", "func_name": "getReleaseNote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getReleaseNote returns the release note from a PR body\n// assumes that the PR body followed the PR template", "docstring_tokens": ["getReleaseNote", "returns", "the", "release", "note", "from", "a", "PR", "body", "assumes", "that", "the", "PR", "body", "followed", "the", "PR", "template"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/releasenote/releasenote.go#L325-L331", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/mason/client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient creates a new client from a boskosClient interface", "docstring_tokens": ["NewClient", "creates", "a", "new", "client", "from", "a", "boskosClient", "interface"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/mason/client.go#L37-L42", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/mason/client.go", "func_name": "Acquire", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Acquire gets a resource with associated leased resources", "docstring_tokens": ["Acquire", "gets", "a", "resource", "with", "associated", "leased", "resources"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/mason/client.go#L45-L74", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/mason/client.go", "func_name": "ReleaseOne", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReleaseOne will release a resource as well as leased resources associated to it", "docstring_tokens": ["ReleaseOne", "will", "release", "a", "resource", "as", "well", "as", "leased", "resources", "associated", "to", "it"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/mason/client.go#L77-L105", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/mason/client.go", "func_name": "UpdateAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateAll updates all the acquired resources with a given state", "docstring_tokens": ["UpdateAll", "updates", "all", "the", "acquired", "resources", "with", "a", "given", "state"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/mason/client.go#L108-L110", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/token-counter/token-counter.go", "func_name": "GetGitHubClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetGitHubClient creates a client for each token", "docstring_tokens": ["GetGitHubClient", "creates", "a", "client", "for", "each", "token"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/token-counter/token-counter.go#L55-L62", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/token-counter/token-counter.go", "func_name": "GetUsername", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUsername finds the login for each token", "docstring_tokens": ["GetUsername", "finds", "the", "login", "for", "each", "token"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/token-counter/token-counter.go#L65-L75", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/token-counter/token-counter.go", "func_name": "CreateTokenHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateTokenHandler parses the token and create a handler", "docstring_tokens": ["CreateTokenHandler", "parses", "the", "token", "and", "create", "a", "handler"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/token-counter/token-counter.go#L78-L94", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/token-counter/token-counter.go", "func_name": "CreateTokenHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateTokenHandlers goes through the list of token files, and create handlers", "docstring_tokens": ["CreateTokenHandlers", "goes", "through", "the", "list", "of", "token", "files", "and", "create", "handlers"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/token-counter/token-counter.go#L97-L111", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/abort.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the string representation of a prow job identifier", "docstring_tokens": ["String", "returns", "the", "string", "representation", "of", "a", "prow", "job", "identifier"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/abort.go#L48-L50", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pjutil/abort.go", "func_name": "TerminateOlderPresubmitJobs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TerminateOlderPresubmitJobs aborts all presubmit jobs from the given list that have a newer version. It calls\n// the cleanup callback for each job before updating its status as aborted.", "docstring_tokens": ["TerminateOlderPresubmitJobs", "aborts", "all", "presubmit", "jobs", "from", "the", "given", "list", "that", "have", "a", "newer", "version", ".", "It", "calls", "the", "cleanup", "callback", "for", "each", "job", "before", "updating", "its", "status", "as", "aborted", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pjutil/abort.go#L54-L102", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/metrics/metrics.go", "func_name": "PushMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushMetrics is meant to run in a goroutine and continuously push\n// metrics to the provided endpoint.", "docstring_tokens": ["PushMetrics", "is", "meant", "to", "run", "in", "a", "goroutine", "and", "continuously", "push", "metrics", "to", "the", "provided", "endpoint", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/metrics/metrics.go#L33-L48", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/ratelimiter.go", "func_name": "RateLimiter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RateLimiter creates a ratelimiting queue for a given prow controller.", "docstring_tokens": ["RateLimiter", "creates", "a", "ratelimiting", "queue", "for", "a", "given", "prow", "controller", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/ratelimiter.go#L27-L33", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/dco/dco.go", "func_name": "checkExistingStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkExistingStatus will retrieve the current status of the DCO context for\n// the provided SHA.", "docstring_tokens": ["checkExistingStatus", "will", "retrieve", "the", "current", "status", "of", "the", "DCO", "context", "for", "the", "provided", "SHA", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/dco/dco.go#L125-L141", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/dco/dco.go", "func_name": "checkExistingLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkExistingLabels will check the provided PR for the dco sign off labels,\n// returning bool's indicating whether the 'yes' and the 'no' label are present.", "docstring_tokens": ["checkExistingLabels", "will", "check", "the", "provided", "PR", "for", "the", "dco", "sign", "off", "labels", "returning", "bool", "s", "indicating", "whether", "the", "yes", "and", "the", "no", "label", "are", "present", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/dco/dco.go#L145-L161", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/dco/dco.go", "func_name": "handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// 1. Check commit messages in the pull request for the sign-off string\n// 2. Check the existing status context value\n// 3. Check the existing PR labels\n// 4. If signed off, apply appropriate labels and status context.\n// 5. If not signed off, apply appropriate labels and status context and add a comment.", "docstring_tokens": ["1", ".", "Check", "commit", "messages", "in", "the", "pull", "request", "for", "the", "sign", "-", "off", "string", "2", ".", "Check", "the", "existing", "status", "context", "value", "3", ".", "Check", "the", "existing", "PR", "labels", "4", ".", "If", "signed", "off", "apply", "appropriate", "labels", "and", "status", "context", ".", "5", ".", "If", "not", "signed", "off", "apply", "appropriate", "labels", "and", "status", "context", "and", "add", "a", "comment", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/dco/dco.go#L248-L270", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/dco/dco.go", "func_name": "MarkdownSHAList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MardkownSHAList prints the list of commits in a markdown-friendly way.", "docstring_tokens": ["MardkownSHAList", "prints", "the", "list", "of", "commits", "in", "a", "markdown", "-", "friendly", "way", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/dco/dco.go#L273-L293", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/gcs/target.go", "func_name": "PathForSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PathForSpec determines the GCS path prefix for files uploaded\n// for a specific job spec", "docstring_tokens": ["PathForSpec", "determines", "the", "GCS", "path", "prefix", "for", "files", "uploaded", "for", "a", "specific", "job", "spec"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/gcs/target.go#L40-L52", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/gcs/target.go", "func_name": "AliasForSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AliasForSpec determines the GCS path aliases for a job spec", "docstring_tokens": ["AliasForSpec", "determines", "the", "GCS", "path", "aliases", "for", "a", "job", "spec"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/gcs/target.go#L55-L65", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/gcs/target.go", "func_name": "RootForSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RootForSpec determines the root GCS path for storing artifacts about\n// the provided job.", "docstring_tokens": ["RootForSpec", "determines", "the", "root", "GCS", "path", "for", "storing", "artifacts", "about", "the", "provided", "job", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/gcs/target.go#L94-L104", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/gcs/target.go", "func_name": "NewSingleDefaultRepoPathBuilder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSingleDefaultRepoPathBuilder returns a builder that handles the legacy path\n// encoding where a path will contain org and repo for all but one default repo", "docstring_tokens": ["NewSingleDefaultRepoPathBuilder", "returns", "a", "builder", "that", "handles", "the", "legacy", "path", "encoding", "where", "a", "path", "will", "contain", "org", "and", "repo", "for", "all", "but", "one", "default", "repo"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/gcs/target.go#L127-L136", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/gcs/target.go", "func_name": "NewExplicitRepoPathBuilder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewExplicitRepoPathBuilder returns a builder that handles the path encoding\n// where a path will always have an explicit \"org_repo\" path segment", "docstring_tokens": ["NewExplicitRepoPathBuilder", "returns", "a", "builder", "that", "handles", "the", "path", "encoding", "where", "a", "path", "will", "always", "have", "an", "explicit", "org_repo", "path", "segment"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/gcs/target.go#L140-L146", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/creator/creator.go", "func_name": "RegisterSourceOrDie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterSourceOrDie registers a source of auto-filed issues.", "docstring_tokens": ["RegisterSourceOrDie", "registers", "a", "source", "of", "auto", "-", "filed", "issues", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/creator/creator.go#L142-L148", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/creator/creator.go", "func_name": "CreateAndSync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateAndSync is the main workhorse function of IssueCreator. It initializes the IssueCreator,\n// asks each source for its issues to sync, and syncs the issues.", "docstring_tokens": ["CreateAndSync", "is", "the", "main", "workhorse", "function", "of", "IssueCreator", ".", "It", "initializes", "the", "IssueCreator", "asks", "each", "source", "for", "its", "issues", "to", "sync", "and", "syncs", "the", "issues", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/creator/creator.go#L182-L215", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/creator/creator.go", "func_name": "loadCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loadCache loads the valid labels for the repo, the currently authenticated user, and the issue cache from github.", "docstring_tokens": ["loadCache", "loads", "the", "valid", "labels", "for", "the", "repo", "the", "currently", "authenticated", "user", "and", "the", "issue", "cache", "from", "github", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/creator/creator.go#L218-L276", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/creator/creator.go", "func_name": "setIntersect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setIntersect removes any elements from the first list that are not in the second, returning the\n// new set and the removed elements.", "docstring_tokens": ["setIntersect", "removes", "any", "elements", "from", "the", "first", "list", "that", "are", "not", "in", "the", "second", "returning", "the", "new", "set", "and", "the", "removed", "elements", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/creator/creator.go#L296-L312", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/creator/creator.go", "func_name": "sync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sync checks to see if an issue is already on github and tries to create a new issue for it if it is not.\n// True is returned iff a new issue is created.", "docstring_tokens": ["sync", "checks", "to", "see", "if", "an", "issue", "is", "already", "on", "github", "and", "tries", "to", "create", "a", "new", "issue", "for", "it", "if", "it", "is", "not", ".", "True", "is", "returned", "iff", "a", "new", "issue", "is", "created", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/creator/creator.go#L316-L378", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/aws/common.go", "func_name": "GetAWSCreds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAWSCreds tries to fetch AWS credentials from a resource", "docstring_tokens": ["GetAWSCreds", "tries", "to", "fetch", "AWS", "credentials", "from", "a", "resource"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/aws/common.go#L39-L60", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/main.go", "func_name": "stopper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stopper returns a channel that remains open until an interrupt is received.", "docstring_tokens": ["stopper", "returns", "a", "channel", "that", "remains", "open", "until", "an", "interrupt", "is", "received", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/main.go#L84-L97", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/pipeline/main.go", "func_name": "newPipelineConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPipelineConfig returns a client and informer capable of mutating and monitoring the specified config.", "docstring_tokens": ["newPipelineConfig", "returns", "a", "client", "and", "informer", "capable", "of", "mutating", "and", "monitoring", "the", "specified", "config", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/pipeline/main.go#L105-L125", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/k8s_client.go", "func_name": "KubeClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KubeClient returns a Kubernetes client.", "docstring_tokens": ["KubeClient", "returns", "a", "Kubernetes", "client", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/k8s_client.go#L64-L66", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/k8s_client.go", "func_name": "ProwJobClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProwJobClient returns a Kubernetes client.", "docstring_tokens": ["ProwJobClient", "returns", "a", "Kubernetes", "client", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/k8s_client.go#L69-L71", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/deck/job_history.go", "func_name": "resolveSymLink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resolve sym links into the actual log directory for a particular test run", "docstring_tokens": ["resolve", "sym", "links", "into", "the", "actual", "log", "directory", "for", "a", "particular", "test", "run"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/deck/job_history.go#L119-L127", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/deck/job_history.go", "func_name": "readJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// reads specified JSON file in to `data`", "docstring_tokens": ["reads", "specified", "JSON", "file", "in", "to", "data"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/deck/job_history.go#L150-L160", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/deck/job_history.go", "func_name": "listSubDirs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Lists the GCS \"directory paths\" immediately under prefix.", "docstring_tokens": ["Lists", "the", "GCS", "directory", "paths", "immediately", "under", "prefix", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/deck/job_history.go#L163-L185", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/deck/job_history.go", "func_name": "listAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Lists all GCS keys with given prefix.", "docstring_tokens": ["Lists", "all", "GCS", "keys", "with", "given", "prefix", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/deck/job_history.go#L188-L204", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/deck/job_history.go", "func_name": "listBuildIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Gets all build ids for a job.", "docstring_tokens": ["Gets", "all", "build", "ids", "for", "a", "job", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/deck/job_history.go#L207-L240", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gopherage/pkg/cov/filter.go", "func_name": "FilterProfilePaths", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FilterProfilePaths produces a new profile that removes either everything matching or everything\n// not matching the provided paths, depending on the value of include.\n// Paths are interpreted as regular expressions.\n// If include is true, paths is treated as a whitelist; otherwise it is treated as a blacklist.", "docstring_tokens": ["FilterProfilePaths", "produces", "a", "new", "profile", "that", "removes", "either", "everything", "matching", "or", "everything", "not", "matching", "the", "provided", "paths", "depending", "on", "the", "value", "of", "include", ".", "Paths", "are", "interpreted", "as", "regular", "expressions", ".", "If", "include", "is", "true", "paths", "is", "treated", "as", "a", "whitelist", ";", "otherwise", "it", "is", "treated", "as", "a", "blacklist", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gopherage/pkg/cov/filter.go#L29-L46", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/secret/secret.go", "func_name": "LoadSecrets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadSecrets loads multiple paths of secrets and add them in a map.", "docstring_tokens": ["LoadSecrets", "loads", "multiple", "paths", "of", "secrets", "and", "add", "them", "in", "a", "map", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/secret/secret.go#L26-L37", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/secret/secret.go", "func_name": "LoadSingleSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadSingleSecret reads and returns the value of a single file.", "docstring_tokens": ["LoadSingleSecret", "reads", "and", "returns", "the", "value", "of", "a", "single", "file", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/secret/secret.go#L40-L46", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/flagutil/bool.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set the bool according to the string.", "docstring_tokens": ["Set", "the", "bool", "according", "to", "the", "string", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/flagutil/bool.go#L40-L48", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/io/opener.go", "func_name": "NewOpener", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOpener returns an opener that can read GCS and local paths.", "docstring_tokens": ["NewOpener", "returns", "an", "opener", "that", "can", "read", "GCS", "and", "local", "paths", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/io/opener.go#L55-L69", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/io/opener.go", "func_name": "IsNotExist", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsNotExist will return true if the error is because the object does not exist.", "docstring_tokens": ["IsNotExist", "will", "return", "true", "if", "the", "error", "is", "because", "the", "object", "does", "not", "exist", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/io/opener.go#L72-L74", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/io/opener.go", "func_name": "LogClose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogClose will attempt a close an log any error", "docstring_tokens": ["LogClose", "will", "attempt", "a", "close", "an", "log", "any", "error"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/io/opener.go#L77-L81", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/io/opener.go", "func_name": "Writer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Writer returns a writer that overwrites the path.", "docstring_tokens": ["Writer", "returns", "a", "writer", "that", "overwrites", "the", "path", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/io/opener.go#L113-L122", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/config/githuboauth.go", "func_name": "InitGitHubOAuthConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitGitHubOAuthConfig creates an OAuthClient using GitHubOAuth config and a Cookie Store\n// to retain user credentials.", "docstring_tokens": ["InitGitHubOAuthConfig", "creates", "an", "OAuthClient", "using", "GitHubOAuth", "config", "and", "a", "Cookie", "Store", "to", "retain", "user", "credentials", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/config/githuboauth.go#L45-L48", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/coverage/diff/view.go", "func_name": "deltaDisplayed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deltaDisplayed converts a coverage ratio delta into a string value to be displayed by coverage robot", "docstring_tokens": ["deltaDisplayed", "converts", "a", "coverage", "ratio", "delta", "into", "a", "string", "value", "to", "be", "displayed", "by", "coverage", "robot"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/coverage/diff/view.go#L36-L41", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/coverage/diff/view.go", "func_name": "makeTable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeTable checks each coverage change and produce the table content for coverage bot post\n// It also report on whether any coverage fells below the given threshold", "docstring_tokens": ["makeTable", "checks", "each", "coverage", "change", "and", "produce", "the", "table", "content", "for", "coverage", "bot", "post", "It", "also", "report", "on", "whether", "any", "coverage", "fells", "below", "the", "given", "threshold"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/coverage/diff/view.go#L45-L61", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/coverage/diff/view.go", "func_name": "ContentForGitHubPost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContentForGitHubPost constructs the message covbot posts", "docstring_tokens": ["ContentForGitHubPost", "constructs", "the", "message", "covbot", "posts"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/coverage/diff/view.go#L64-L85", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/fetcher/client.go", "func_name": "AddFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFlags parses options for github client", "docstring_tokens": ["AddFlags", "parses", "options", "for", "github", "client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/fetcher/client.go#L48-L57", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/fetcher/client.go", "func_name": "CheckFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckFlags looks for organization and project flags to configure the client", "docstring_tokens": ["CheckFlags", "looks", "for", "organization", "and", "project", "flags", "to", "configure", "the", "client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/fetcher/client.go#L60-L72", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/fetcher/client.go", "func_name": "getGitHubClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getGitHubClient create the github client that we use to communicate with github", "docstring_tokens": ["getGitHubClient", "create", "the", "github", "client", "that", "we", "use", "to", "communicate", "with", "github"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/fetcher/client.go#L75-L96", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/fetcher/client.go", "func_name": "limitsCheckAndWait", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// limitsCheckAndWait make sure we have not reached the limit or wait", "docstring_tokens": ["limitsCheckAndWait", "make", "sure", "we", "have", "not", "reached", "the", "limit", "or", "wait"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/fetcher/client.go#L99-L118", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/fetcher/client.go", "func_name": "FetchIssues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FetchIssues from GitHub, until 'latest' time", "docstring_tokens": ["FetchIssues", "from", "GitHub", "until", "latest", "time"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/fetcher/client.go#L135-L174", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/fetcher/client.go", "func_name": "hasID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hasID look for a specific id in a list of events", "docstring_tokens": ["hasID", "look", "for", "a", "specific", "id", "in", "a", "list", "of", "events"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/fetcher/client.go#L177-L184", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/fetcher/client.go", "func_name": "FetchIssueEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FetchIssueEvents from github and return the full list, until it matches 'latest'\n// The entire last page will be included so you can have redundancy.", "docstring_tokens": ["FetchIssueEvents", "from", "github", "and", "return", "the", "full", "list", "until", "it", "matches", "latest", "The", "entire", "last", "page", "will", "be", "included", "so", "you", "can", "have", "redundancy", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/fetcher/client.go#L188-L227", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/size/size.go", "func_name": "isPRChanged", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// These are the only actions indicating the code diffs may have changed.", "docstring_tokens": ["These", "are", "the", "only", "actions", "indicating", "the", "code", "diffs", "may", "have", "changed", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/size/size.go#L217-L230", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/fetcher.go", "func_name": "NewFetcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFetcher creates a new Fetcher and initializes the output channels", "docstring_tokens": ["NewFetcher", "creates", "a", "new", "Fetcher", "and", "initializes", "the", "output", "channels"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/fetcher.go#L41-L47", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/fetcher.go", "func_name": "fetchRecentIssues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fetchRecentIssues retrieves issues from DB, but only fetches issues modified since last call", "docstring_tokens": ["fetchRecentIssues", "retrieves", "issues", "from", "DB", "but", "only", "fetches", "issues", "modified", "since", "last", "call"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/fetcher.go#L50-L72", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/fetcher.go", "func_name": "fetchRecentEventsAndComments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fetchRecentEventsAndComments retrieves events from DB, but only fetches events created since last call", "docstring_tokens": ["fetchRecentEventsAndComments", "retrieves", "events", "from", "DB", "but", "only", "fetches", "events", "created", "since", "last", "call"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/fetcher.go#L75-L137", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/fetcher.go", "func_name": "Fetch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch retrieves all types of events, and push them to output channels", "docstring_tokens": ["Fetch", "retrieves", "all", "types", "of", "events", "and", "push", "them", "to", "output", "channels"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/fetcher.go#L140-L148", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/sources/flakyjob-reporter.go", "func_name": "Issues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Issues is the main work method of FlakyJobReporter. It fetches and parses flaky job data,\n// then syncs the top issues to github with the IssueCreator.", "docstring_tokens": ["Issues", "is", "the", "main", "work", "method", "of", "FlakyJobReporter", ".", "It", "fetches", "and", "parses", "flaky", "job", "data", "then", "syncs", "the", "top", "issues", "to", "github", "with", "the", "IssueCreator", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/sources/flakyjob-reporter.go#L76-L98", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/sources/flakyjob-reporter.go", "func_name": "Title", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Title yields the initial title text of the github issue.", "docstring_tokens": ["Title", "yields", "the", "initial", "title", "text", "of", "the", "github", "issue", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/sources/flakyjob-reporter.go#L165-L167", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/sources/flakyjob-reporter.go", "func_name": "Labels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Labels returns the labels to apply to the issue created for this flaky job on github.", "docstring_tokens": ["Labels", "returns", "the", "labels", "to", "apply", "to", "the", "issue", "created", "for", "this", "flaky", "job", "on", "github", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/sources/flakyjob-reporter.go#L231-L238", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/sources/flakyjob-reporter.go", "func_name": "ReadHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadHTTP fetches file contents from a URL with retries.", "docstring_tokens": ["ReadHTTP", "fetches", "file", "contents", "from", "a", "URL", "with", "retries", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/sources/flakyjob-reporter.go#L256-L282", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "experiment/tracer/trace.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return valid json.", "docstring_tokens": ["Return", "valid", "json", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/experiment/tracer/trace.go#L71-L86", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/downwardapi/jobspec.go", "func_name": "NewJobSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewJobSpec converts a prowapi.ProwJobSpec invocation into a JobSpec", "docstring_tokens": ["NewJobSpec", "converts", "a", "prowapi", ".", "ProwJobSpec", "invocation", "into", "a", "JobSpec"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/downwardapi/jobspec.go#L50-L60", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/downwardapi/jobspec.go", "func_name": "ResolveSpecFromEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResolveSpecFromEnv will determine the Refs being\n// tested in by parsing Prow environment variable contents", "docstring_tokens": ["ResolveSpecFromEnv", "will", "determine", "the", "Refs", "being", "tested", "in", "by", "parsing", "Prow", "environment", "variable", "contents"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/downwardapi/jobspec.go#L64-L76", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/downwardapi/jobspec.go", "func_name": "EnvForSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnvForSpec returns a mapping of environment variables\n// to their values that should be available for a job spec", "docstring_tokens": ["EnvForSpec", "returns", "a", "mapping", "of", "environment", "variables", "to", "their", "values", "that", "should", "be", "available", "for", "a", "job", "spec"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/downwardapi/jobspec.go#L100-L138", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/downwardapi/jobspec.go", "func_name": "EnvForType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnvForType returns the slice of environment variables to export for jobType", "docstring_tokens": ["EnvForType", "returns", "the", "slice", "of", "environment", "variables", "to", "export", "for", "jobType"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/downwardapi/jobspec.go#L141-L156", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/downwardapi/jobspec.go", "func_name": "getRevisionFromRef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getRevisionFromRef returns a ref or sha from a refs object", "docstring_tokens": ["getRevisionFromRef", "returns", "a", "ref", "or", "sha", "from", "a", "refs", "object"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/downwardapi/jobspec.go#L159-L169", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/downwardapi/jobspec.go", "func_name": "GetRevisionFromSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRevisionFromSpec returns a main ref or sha from a spec object", "docstring_tokens": ["GetRevisionFromSpec", "returns", "a", "main", "ref", "or", "sha", "from", "a", "spec", "object"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/downwardapi/jobspec.go#L172-L179", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/mergecommitblocker/mergecommitblocker.go", "func_name": "helpProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// helpProvider provides information on the plugin", "docstring_tokens": ["helpProvider", "provides", "information", "on", "the", "plugin"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/mergecommitblocker/mergecommitblocker.go#L48-L53", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/genfiles/genfiles.go", "func_name": "load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Use load to read a generated files config file, and populate g with the commands.\n// \"paths-from-repo\" commands are aggregated into repoPaths. It is the caller's\n// responsibility to fetch these and load them via g.loadPaths.", "docstring_tokens": ["Use", "load", "to", "read", "a", "generated", "files", "config", "file", "and", "populate", "g", "with", "the", "commands", ".", "paths", "-", "from", "-", "repo", "commands", "are", "aggregated", "into", "repoPaths", ".", "It", "is", "the", "caller", "s", "responsibility", "to", "fetch", "these", "and", "load", "them", "via", "g", ".", "loadPaths", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/genfiles/genfiles.go#L109-L148", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/genfiles/genfiles.go", "func_name": "loadPaths", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Use loadPaths to load a file of new-line delimited paths, such as\n// resolving file data referenced in a \"paths-from-repo\" command.", "docstring_tokens": ["Use", "loadPaths", "to", "load", "a", "file", "of", "new", "-", "line", "delimited", "paths", "such", "as", "resolving", "file", "data", "referenced", "in", "a", "paths", "-", "from", "-", "repo", "command", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/genfiles/genfiles.go#L152-L170", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/genfiles/genfiles.go", "func_name": "Match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Match determines whether a file, given here by its full path\n// is included in the generated files group.", "docstring_tokens": ["Match", "determines", "whether", "a", "file", "given", "here", "by", "its", "full", "path", "is", "included", "in", "the", "generated", "files", "group", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/genfiles/genfiles.go#L174-L198", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/influx.go", "func_name": "CreateDatabase", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateDatabase creates and connects a new instance of an InfluxDB\n// It is created based on the fields set in the configuration.", "docstring_tokens": ["CreateDatabase", "creates", "and", "connects", "a", "new", "instance", "of", "an", "InfluxDB", "It", "is", "created", "based", "on", "the", "fields", "set", "in", "the", "configuration", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/influx.go#L58-L88", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/influx.go", "func_name": "mergeTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mergeTags merges the default tags with the exta tags. Default will be overridden if it conflicts.", "docstring_tokens": ["mergeTags", "merges", "the", "default", "tags", "with", "the", "exta", "tags", ".", "Default", "will", "be", "overridden", "if", "it", "conflicts", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/influx.go#L101-L112", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/influx.go", "func_name": "tagsToWhere", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tagsToWhere creates a where query to match tags element", "docstring_tokens": ["tagsToWhere", "creates", "a", "where", "query", "to", "match", "tags", "element"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/influx.go#L115-L131", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/influx.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Push a point to the database. This appends to current batchpoint", "docstring_tokens": ["Push", "a", "point", "to", "the", "database", ".", "This", "appends", "to", "current", "batchpoint"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/influx.go#L134-L144", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/podlogartifact_fetcher.go", "func_name": "artifact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// artifact constructs an artifact handle for the given job build", "docstring_tokens": ["artifact", "constructs", "an", "artifact", "handle", "for", "the", "given", "job", "build"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/podlogartifact_fetcher.go#L36-L43", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/plank/main.go", "func_name": "serve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// serve starts a http server and serves prometheus metrics.\n// Meant to be called inside a goroutine.", "docstring_tokens": ["serve", "starts", "a", "http", "server", "and", "serves", "prometheus", "metrics", ".", "Meant", "to", "be", "called", "inside", "a", "goroutine", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/plank/main.go#L180-L183", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/plank/main.go", "func_name": "gather", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// gather metrics from plank.\n// Meant to be called inside a goroutine.", "docstring_tokens": ["gather", "metrics", "from", "plank", ".", "Meant", "to", "be", "called", "inside", "a", "goroutine", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/plank/main.go#L187-L203", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/branchprotector/request.go", "func_name": "makeRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeRequest renders a branch protection policy into the corresponding GitHub api request.", "docstring_tokens": ["makeRequest", "renders", "a", "branch", "protection", "policy", "into", "the", "corresponding", "GitHub", "api", "request", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/branchprotector/request.go#L28-L36", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/branchprotector/request.go", "func_name": "makeReviews", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeReviews renders review policy into the corresponding GitHub api object.\n//\n// Returns nil if the policy is nil, or approvals is nil or 0.", "docstring_tokens": ["makeReviews", "renders", "review", "policy", "into", "the", "corresponding", "GitHub", "api", "object", ".", "Returns", "nil", "if", "the", "policy", "is", "nil", "or", "approvals", "is", "nil", "or", "0", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/branchprotector/request.go#L84-L103", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/lenses/buildlog/lens.go", "func_name": "Header", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Header executes the \"header\" section of the template.", "docstring_tokens": ["Header", "executes", "the", "header", "section", "of", "the", "template", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/lenses/buildlog/lens.go#L56-L58", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/lenses/buildlog/lens.go", "func_name": "Callback", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Callback is used to retrieve new log segments", "docstring_tokens": ["Callback", "is", "used", "to", "retrieve", "new", "log", "segments"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/lenses/buildlog/lens.go#L147-L170", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/lenses/buildlog/lens.go", "func_name": "logLinesAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// logLinesAll reads all of an artifact and splits it into lines.", "docstring_tokens": ["logLinesAll", "reads", "all", "of", "an", "artifact", "and", "splits", "it", "into", "lines", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/lenses/buildlog/lens.go#L182-L190", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/lenses/buildlog/lens.go", "func_name": "executeTemplate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogViewTemplate executes the log viewer template ready for rendering", "docstring_tokens": ["LogViewTemplate", "executes", "the", "log", "viewer", "template", "ready", "for", "rendering"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/lenses/buildlog/lens.go#L295-L306", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/resource_crd.go", "func_name": "DeepCopyObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopyObject implements runtime.Object interface", "docstring_tokens": ["DeepCopyObject", "implements", "runtime", ".", "Object", "interface"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/resource_crd.go#L97-L102", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/resource_crd.go", "func_name": "FromItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromItem implements Object interface", "docstring_tokens": ["FromItem", "implements", "Object", "interface"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/resource_crd.go#L130-L135", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/resource_crd.go", "func_name": "SetItems", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetItems implements Collection interface", "docstring_tokens": ["SetItems", "implements", "Collection", "interface"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/resource_crd.go#L147-L153", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/resource_crd.go", "func_name": "DeepCopyObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopyObject implements Collection interface", "docstring_tokens": ["DeepCopyObject", "implements", "Collection", "interface"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/resource_crd.go#L172-L177", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/mkbuild-cluster/main.go", "func_name": "useContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// useContext calls kubectl config use-context ctx", "docstring_tokens": ["useContext", "calls", "kubectl", "config", "use", "-", "context", "ctx"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/mkbuild-cluster/main.go#L107-L110", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/mkbuild-cluster/main.go", "func_name": "currentContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// currentContext returns kubectl config current-context", "docstring_tokens": ["currentContext", "returns", "kubectl", "config", "current", "-", "context"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/mkbuild-cluster/main.go#L113-L117", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/mkbuild-cluster/main.go", "func_name": "command", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// command creates an exec.Cmd with Stderr piped to os.Stderr and returns the args", "docstring_tokens": ["command", "creates", "an", "exec", ".", "Cmd", "with", "Stderr", "piped", "to", "os", ".", "Stderr", "and", "returns", "the", "args"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/mkbuild-cluster/main.go#L150-L154", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/mkbuild-cluster/main.go", "func_name": "describeCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// describeCluster returns details from gcloud container clusters describe.", "docstring_tokens": ["describeCluster", "returns", "details", "from", "gcloud", "container", "clusters", "describe", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/mkbuild-cluster/main.go#L173-L214", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gcsweb/cmd/gcsweb/gcsweb.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set appends a value onto the strslice.", "docstring_tokens": ["Set", "appends", "a", "value", "onto", "the", "strslice", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gcsweb/cmd/gcsweb/gcsweb.go#L65-L68", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gcsweb/cmd/gcsweb/gcsweb.go", "func_name": "parseXML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseXML extracts a gcsDir object from XML. If this returns a nil gcsDir,\n// the XML indicated that this was not a directory at all.", "docstring_tokens": ["parseXML", "extracts", "a", "gcsDir", "object", "from", "XML", ".", "If", "this", "returns", "a", "nil", "gcsDir", "the", "XML", "indicated", "that", "this", "was", "not", "a", "directory", "at", "all", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gcsweb/cmd/gcsweb/gcsweb.go#L297-L333", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gcsweb/cmd/gcsweb/gcsweb.go", "func_name": "Render", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Render writes HTML representing this gcsDir to the provided output.", "docstring_tokens": ["Render", "writes", "HTML", "representing", "this", "gcsDir", "to", "the", "provided", "output", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gcsweb/cmd/gcsweb/gcsweb.go#L500-L532", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gcsweb/cmd/gcsweb/gcsweb.go", "func_name": "Render", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Render writes HTML representing this Record to the provided output.", "docstring_tokens": ["Render", "writes", "HTML", "representing", "this", "Record", "to", "the", "provided", "output", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gcsweb/cmd/gcsweb/gcsweb.go#L543-L558", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gcsweb/cmd/gcsweb/gcsweb.go", "func_name": "Render", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Render writes HTML representing this Prefix to the provided output.", "docstring_tokens": ["Render", "writes", "HTML", "representing", "this", "Prefix", "to", "the", "provided", "output", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gcsweb/cmd/gcsweb/gcsweb.go#L566-L569", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "gcsweb/cmd/gcsweb/gcsweb.go", "func_name": "Printf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Printf logs a formatted line to the logging output.", "docstring_tokens": ["Printf", "logs", "a", "formatted", "line", "to", "the", "logging", "output", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/gcsweb/cmd/gcsweb/gcsweb.go#L577-L580", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/gerrit/client/client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient returns a new gerrit client", "docstring_tokens": ["NewClient", "returns", "a", "new", "gerrit", "client"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/gerrit/client/client.go#L124-L145", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/gerrit/client/client.go", "func_name": "SetReview", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetReview writes a review comment base on the change id + revision", "docstring_tokens": ["SetReview", "writes", "a", "review", "comment", "base", "on", "the", "change", "id", "+", "revision"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/gerrit/client/client.go#L208-L222", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/gerrit/client/client.go", "func_name": "GetBranchRevision", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBranchRevision returns SHA of HEAD of a branch", "docstring_tokens": ["GetBranchRevision", "returns", "SHA", "of", "HEAD", "of", "a", "branch"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/gerrit/client/client.go#L225-L237", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/gerrit/client/client.go", "func_name": "queryAllChanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// private handler implementation details", "docstring_tokens": ["private", "handler", "implementation", "details"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/gerrit/client/client.go#L241-L254", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/type_filter_wrapper.go", "func_name": "NewTypeFilterWrapperPlugin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTypeFilterWrapperPlugin is the constructor of TypeFilterWrapperPlugin", "docstring_tokens": ["NewTypeFilterWrapperPlugin", "is", "the", "constructor", "of", "TypeFilterWrapperPlugin"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/type_filter_wrapper.go#L41-L46", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/type_filter_wrapper.go", "func_name": "AddFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFlags adds \"no-pull-requests\" and \"no-issues\" to the command help", "docstring_tokens": ["AddFlags", "adds", "no", "-", "pull", "-", "requests", "and", "no", "-", "issues", "to", "the", "command", "help"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/type_filter_wrapper.go#L49-L52", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/transform/plugins/type_filter_wrapper.go", "func_name": "CheckFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckFlags makes sure not both PR and issues are ignored", "docstring_tokens": ["CheckFlags", "makes", "sure", "not", "both", "PR", "and", "issues", "are", "ignored"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/transform/plugins/type_filter_wrapper.go#L55-L61", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/client.go", "func_name": "AddFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFlags adds kube client flags to existing FlagSet.", "docstring_tokens": ["AddFlags", "adds", "kube", "client", "flags", "to", "existing", "FlagSet", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/client.go#L50-L54", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/client.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate validates Kubernetes client options.", "docstring_tokens": ["Validate", "validates", "Kubernetes", "client", "options", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/client.go#L57-L64", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/client.go", "func_name": "Client", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Client returns a ClientInterface based on the flags provided.", "docstring_tokens": ["Client", "returns", "a", "ClientInterface", "based", "on", "the", "flags", "provided", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/client.go#L67-L72", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/client.go", "func_name": "newCRDClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newClientFromFlags creates a CRD rest client from provided flags.", "docstring_tokens": ["newClientFromFlags", "creates", "a", "CRD", "rest", "client", "from", "provided", "flags", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/client.go#L75-L93", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/client.go", "func_name": "createRESTConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createRESTConfig for cluster API server, pass empty config file for in-cluster", "docstring_tokens": ["createRESTConfig", "for", "cluster", "API", "server", "pass", "empty", "config", "file", "for", "in", "-", "cluster"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/client.go#L120-L151", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/client.go", "func_name": "registerResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// registerResource sends a request to create CRDs and waits for them to initialize", "docstring_tokens": ["registerResource", "sends", "a", "request", "to", "create", "CRDs", "and", "waits", "for", "them", "to", "initialize"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/client.go#L154-L180", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/client.go", "func_name": "newDummyClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newDummyClient creates a in memory client representation for testing, such that we do not need to use a kubernetes API Server.", "docstring_tokens": ["newDummyClient", "creates", "a", "in", "memory", "client", "representation", "for", "testing", "such", "that", "we", "do", "not", "need", "to", "use", "a", "kubernetes", "API", "Server", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/client.go#L183-L189", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/crds/client.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update implements ClientInterface", "docstring_tokens": ["Update", "implements", "ClientInterface"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/crds/client.go#L232-L239", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/trigger/pull-request.go", "func_name": "TrustedPullRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TrustedPullRequest returns whether or not the given PR should be tested.\n// It first checks if the author is in the org, then looks for \"ok-to-test\" label.", "docstring_tokens": ["TrustedPullRequest", "returns", "whether", "or", "not", "the", "given", "PR", "should", "be", "tested", ".", "It", "first", "checks", "if", "the", "author", "is", "in", "the", "org", "then", "looks", "for", "ok", "-", "to", "-", "test", "label", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/trigger/pull-request.go#L207-L223", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/plugins/trigger/pull-request.go", "func_name": "buildAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildAll ensures that all builds that should run and will be required are built", "docstring_tokens": ["buildAll", "ensures", "that", "all", "builds", "that", "should", "run", "and", "will", "be", "required", "are", "built"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/plugins/trigger/pull-request.go#L226-L236", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/sidecar/run.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run will watch for the process being wrapped to exit\n// and then post the status of that process and any artifacts\n// to cloud storage.", "docstring_tokens": ["Run", "will", "watch", "for", "the", "process", "being", "wrapped", "to", "exit", "and", "then", "post", "the", "status", "of", "that", "process", "and", "any", "artifacts", "to", "cloud", "storage", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/sidecar/run.go#L63-L106", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/mason/storage.go", "func_name": "AddConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddConfig adds a new config", "docstring_tokens": ["AddConfig", "adds", "a", "new", "config"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/mason/storage.go#L43-L45", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/mason/storage.go", "func_name": "DeleteConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteConfig deletes an existing config if it exists or fail otherwise", "docstring_tokens": ["DeleteConfig", "deletes", "an", "existing", "config", "if", "it", "exists", "or", "fail", "otherwise"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/mason/storage.go#L48-L50", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/mason/storage.go", "func_name": "UpdateConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateConfig updates a given if it exists or fail otherwise", "docstring_tokens": ["UpdateConfig", "updates", "a", "given", "if", "it", "exists", "or", "fail", "otherwise"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/mason/storage.go#L53-L55", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/mason/storage.go", "func_name": "GetConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetConfig returns an existing if it exists errors out otherwise", "docstring_tokens": ["GetConfig", "returns", "an", "existing", "if", "it", "exists", "errors", "out", "otherwise"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/mason/storage.go#L58-L69", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/mason/storage.go", "func_name": "GetConfigs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetConfigs returns all configs", "docstring_tokens": ["GetConfigs", "returns", "all", "configs"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/mason/storage.go#L72-L87", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/mason/storage.go", "func_name": "SyncConfigs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SyncConfigs syncs new configs", "docstring_tokens": ["SyncConfigs", "syncs", "new", "configs"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/mason/storage.go#L90-L155", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/register.go", "func_name": "addKnownTypes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Adds the list of known types to the Scheme.", "docstring_tokens": ["Adds", "the", "list", "of", "known", "types", "to", "the", "Scheme", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/register.go#L48-L55", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/statusreconciler/controller.go", "func_name": "NewController", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewController constructs a new controller to reconcile stauses on config change", "docstring_tokens": ["NewController", "constructs", "a", "new", "controller", "to", "reconcile", "stauses", "on", "config", "change"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/statusreconciler/controller.go#L38-L57", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/statusreconciler/controller.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run monitors the incoming configuration changes to determine when statuses need to be\n// reconciled on PRs in flight when blocking presubmits change", "docstring_tokens": ["Run", "monitors", "the", "incoming", "configuration", "changes", "to", "determine", "when", "statuses", "need", "to", "be", "reconciled", "on", "PRs", "in", "flight", "when", "blocking", "presubmits", "change"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/statusreconciler/controller.go#L139-L153", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/statusreconciler/controller.go", "func_name": "addedBlockingPresubmits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addedBlockingPresubmits determines new blocking presubmits based on a\n// config update. New blocking presubmits are either brand-new presubmits\n// or extant presubmits that are now reporting. Previous presubmits that\n// reported but were optional that are no longer optional require no action\n// as their contexts will already exist on PRs.", "docstring_tokens": ["addedBlockingPresubmits", "determines", "new", "blocking", "presubmits", "based", "on", "a", "config", "update", ".", "New", "blocking", "presubmits", "are", "either", "brand", "-", "new", "presubmits", "or", "extant", "presubmits", "that", "are", "now", "reporting", ".", "Previous", "presubmits", "that", "reported", "but", "were", "optional", "that", "are", "no", "longer", "optional", "require", "no", "action", "as", "their", "contexts", "will", "already", "exist", "on", "PRs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/statusreconciler/controller.go#L293-L339", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/statusreconciler/controller.go", "func_name": "removedBlockingPresubmits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removedBlockingPresubmits determines stale blocking presubmits based on a\n// config update. Presubmits that are no longer blocking due to no longer\n// reporting or being optional require no action as Tide will honor those\n// statuses correctly.", "docstring_tokens": ["removedBlockingPresubmits", "determines", "stale", "blocking", "presubmits", "based", "on", "a", "config", "update", ".", "Presubmits", "that", "are", "no", "longer", "blocking", "due", "to", "no", "longer", "reporting", "or", "being", "optional", "require", "no", "action", "as", "Tide", "will", "honor", "those", "statuses", "correctly", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/statusreconciler/controller.go#L345-L377", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/statusreconciler/controller.go", "func_name": "migratedBlockingPresubmits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// migratedBlockingPresubmits determines blocking presubmits that have had\n// their status contexts migrated. This is a best-effort evaluation as we\n// can only track a presubmit between configuration versions by its name.\n// A presubmit \"migration\" that had its underlying job and context changed\n// will be treated as a deletion and creation.", "docstring_tokens": ["migratedBlockingPresubmits", "determines", "blocking", "presubmits", "that", "have", "had", "their", "status", "contexts", "migrated", ".", "This", "is", "a", "best", "-", "effort", "evaluation", "as", "we", "can", "only", "track", "a", "presubmit", "between", "configuration", "versions", "by", "its", "name", ".", "A", "presubmit", "migration", "that", "had", "its", "underlying", "job", "and", "context", "changed", "will", "be", "treated", "as", "a", "deletion", "and", "creation", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/statusreconciler/controller.go#L388-L417", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pod-utils/options/load.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load loads the set of options, preferring to use\n// JSON config from an env var, but falling back to\n// command line flags if not possible.", "docstring_tokens": ["Load", "loads", "the", "set", "of", "options", "preferring", "to", "use", "JSON", "config", "from", "an", "env", "var", "but", "falling", "back", "to", "command", "line", "flags", "if", "not", "possible", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pod-utils/options/load.go#L36-L50", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/controller.go", "func_name": "canExecuteConcurrently", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// canExecuteConcurrently checks whether the provided ProwJob can\n// be executed concurrently.", "docstring_tokens": ["canExecuteConcurrently", "checks", "whether", "the", "provided", "ProwJob", "can", "be", "executed", "concurrently", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/controller.go#L128-L155", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/controller.go", "func_name": "getJenkinsJobs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getJenkinsJobs returns all the Jenkins jobs for all active\n// prowjobs from the provided list. It handles deduplication.", "docstring_tokens": ["getJenkinsJobs", "returns", "all", "the", "Jenkins", "jobs", "for", "all", "active", "prowjobs", "from", "the", "provided", "list", ".", "It", "handles", "deduplication", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/controller.go#L241-L256", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/jenkins/controller.go", "func_name": "terminateDupes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// terminateDupes aborts presubmits that have a newer version. It modifies pjs\n// in-place when it aborts.", "docstring_tokens": ["terminateDupes", "aborts", "presubmits", "that", "have", "a", "newer", "version", ".", "It", "modifies", "pjs", "in", "-", "place", "when", "it", "aborts", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/jenkins/controller.go#L260-L307", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "Throttle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Throttle client to a rate of at most hourlyTokens requests per hour,\n// allowing burst tokens.", "docstring_tokens": ["Throttle", "client", "to", "a", "rate", "of", "at", "most", "hourlyTokens", "requests", "per", "hour", "allowing", "burst", "tokens", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L187-L224", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "NewClientWithFields", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClientWithFields creates a new fully operational GitHub client. With\n// added logging fields.\n// 'getToken' is a generator for the GitHub access token to use.\n// 'bases' is a variadic slice of endpoints to use in order of preference.\n// An endpoint is used when all preceding endpoints have returned a conn err.\n// This should be used when using the ghproxy GitHub proxy cache to allow\n// this client to bypass the cache if it is temporarily unavailable.", "docstring_tokens": ["NewClientWithFields", "creates", "a", "new", "fully", "operational", "GitHub", "client", ".", "With", "added", "logging", "fields", ".", "getToken", "is", "a", "generator", "for", "the", "GitHub", "access", "token", "to", "use", ".", "bases", "is", "a", "variadic", "slice", "of", "endpoints", "to", "use", "in", "order", "of", "preference", ".", "An", "endpoint", "is", "used", "when", "all", "preceding", "endpoints", "have", "returned", "a", "conn", "err", ".", "This", "should", "be", "used", "when", "using", "the", "ghproxy", "GitHub", "proxy", "cache", "to", "allow", "this", "client", "to", "bypass", "the", "cache", "if", "it", "is", "temporarily", "unavailable", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L233-L248", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient creates a new fully operational GitHub client.", "docstring_tokens": ["NewClient", "creates", "a", "new", "fully", "operational", "GitHub", "client", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L251-L253", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "NewDryRunClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDryRunClient creates a new client that will not perform mutating actions\n// such as setting statuses or commenting, but it will still query GitHub and\n// use up API tokens.\n// 'getToken' is a generator the GitHub access token to use.\n// 'bases' is a variadic slice of endpoints to use in order of preference.\n// An endpoint is used when all preceding endpoints have returned a conn err.\n// This should be used when using the ghproxy GitHub proxy cache to allow\n// this client to bypass the cache if it is temporarily unavailable.", "docstring_tokens": ["NewDryRunClient", "creates", "a", "new", "client", "that", "will", "not", "perform", "mutating", "actions", "such", "as", "setting", "statuses", "or", "commenting", "but", "it", "will", "still", "query", "GitHub", "and", "use", "up", "API", "tokens", ".", "getToken", "is", "a", "generator", "the", "GitHub", "access", "token", "to", "use", ".", "bases", "is", "a", "variadic", "slice", "of", "endpoints", "to", "use", "in", "order", "of", "preference", ".", "An", "endpoint", "is", "used", "when", "all", "preceding", "endpoints", "have", "returned", "a", "conn", "err", ".", "This", "should", "be", "used", "when", "using", "the", "ghproxy", "GitHub", "proxy", "cache", "to", "allow", "this", "client", "to", "bypass", "the", "cache", "if", "it", "is", "temporarily", "unavailable", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L288-L290", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "NewFakeClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFakeClient creates a new client that will not perform any actions at all.", "docstring_tokens": ["NewFakeClient", "creates", "a", "new", "client", "that", "will", "not", "perform", "any", "actions", "at", "all", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L293-L300", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "request", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Make a request with retries. If ret is not nil, unmarshal the response body\n// into it. Returns an error if the exit code is not one of the provided codes.", "docstring_tokens": ["Make", "a", "request", "with", "retries", ".", "If", "ret", "is", "not", "nil", "unmarshal", "the", "response", "body", "into", "it", ".", "Returns", "an", "error", "if", "the", "exit", "code", "is", "not", "one", "of", "the", "provided", "codes", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L348-L359", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "requestRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// requestRaw makes a request with retries and returns the response body.\n// Returns an error if the exit code is not one of the provided codes.", "docstring_tokens": ["requestRaw", "makes", "a", "request", "with", "retries", "and", "returns", "the", "response", "body", ".", "Returns", "an", "error", "if", "the", "exit", "code", "is", "not", "one", "of", "the", "provided", "codes", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L363-L391", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "getUserData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Not thread-safe - callers need to hold c.mut.", "docstring_tokens": ["Not", "thread", "-", "safe", "-", "callers", "need", "to", "hold", "c", ".", "mut", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L514-L531", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "readPaginatedResultsWithValues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readPaginatedResultsWithValues is an override that allows control over the query string.", "docstring_tokens": ["readPaginatedResultsWithValues", "is", "an", "override", "that", "allows", "control", "over", "the", "query", "string", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L983-L1021", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "UpdatePullRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdatePullRequest modifies the title, body, open state", "docstring_tokens": ["UpdatePullRequest", "modifies", "the", "title", "body", "open", "state"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L1154-L1188", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "getLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getLabels is a helper function that retrieves a paginated list of labels from a github URI path.", "docstring_tokens": ["getLabels", "is", "a", "helper", "function", "that", "retrieves", "a", "paginated", "list", "of", "labels", "from", "a", "github", "URI", "path", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L1496-L1515", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "stateCannotBeChangedOrOriginalError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// convert to a StateCannotBeChanged if appropriate or else return the original error", "docstring_tokens": ["convert", "to", "a", "StateCannotBeChanged", "if", "appropriate", "or", "else", "return", "the", "original", "error"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L1845-L1857", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "IsMergeable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsMergeable determines if a PR can be merged.\n// Mergeability is calculated by a background job on GitHub and is not immediately available when\n// new commits are added so the PR must be polled until the background job completes.", "docstring_tokens": ["IsMergeable", "determines", "if", "a", "PR", "can", "be", "merged", ".", "Mergeability", "is", "calculated", "by", "a", "background", "job", "on", "GitHub", "and", "is", "not", "immediately", "available", "when", "new", "commits", "are", "added", "so", "the", "PR", "must", "be", "polled", "until", "the", "background", "job", "completes", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L2480-L2503", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/github/client.go", "func_name": "Token", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Token is an implementation for oauth2.TokenSource interface.", "docstring_tokens": ["Token", "is", "an", "implementation", "for", "oauth2", ".", "TokenSource", "interface", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/github/client.go#L2603-L2607", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/artifacts.go", "func_name": "ListArtifacts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListArtifacts gets the names of all artifacts available from the given source", "docstring_tokens": ["ListArtifacts", "gets", "the", "names", "of", "all", "artifacts", "available", "from", "the", "given", "source"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/artifacts.go#L29-L58", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/artifacts.go", "func_name": "KeyToJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeyToJob takes a spyglass URL and returns the jobName and buildID.", "docstring_tokens": ["KeyToJob", "takes", "a", "spyglass", "URL", "and", "returns", "the", "jobName", "and", "buildID", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/artifacts.go#L61-L70", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/artifacts.go", "func_name": "prowToGCS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// prowToGCS returns the GCS key corresponding to the given prow key", "docstring_tokens": ["prowToGCS", "returns", "the", "GCS", "key", "corresponding", "to", "the", "given", "prow", "key"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/artifacts.go#L73-L90", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/artifacts.go", "func_name": "FetchArtifacts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FetchArtifacts constructs and returns Artifact objects for each artifact name in the list.\n// This includes getting any handles needed for read write operations, direct artifact links, etc.", "docstring_tokens": ["FetchArtifacts", "constructs", "and", "returns", "Artifact", "objects", "for", "each", "artifact", "name", "in", "the", "list", ".", "This", "includes", "getting", "any", "handles", "needed", "for", "read", "write", "operations", "direct", "artifact", "links", "etc", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/artifacts.go#L94-L146", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DecorationConfig.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "DecorationConfig", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/zz_generated.deepcopy.go#L64-L71", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCSConfiguration.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "GCSConfiguration", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/zz_generated.deepcopy.go#L96-L103", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JenkinsSpec.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "JenkinsSpec", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/zz_generated.deepcopy.go#L112-L119", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProwJob.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "ProwJob", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/zz_generated.deepcopy.go#L132-L139", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProwJobList.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "ProwJobList", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/zz_generated.deepcopy.go#L165-L172", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProwJobSpec.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "ProwJobSpec", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/zz_generated.deepcopy.go#L226-L233", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProwJobStatus.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "ProwJobStatus", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/zz_generated.deepcopy.go#L254-L261", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pull.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "Pull", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/zz_generated.deepcopy.go#L270-L277", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Refs.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "Refs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/zz_generated.deepcopy.go#L291-L298", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UtilityImages.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "UtilityImages", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/zz_generated.deepcopy.go#L307-L314", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "experiment/resultstore/upload.go", "func_name": "upload", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// upload the result downloaded from path into project.", "docstring_tokens": ["upload", "the", "result", "downloaded", "from", "path", "into", "project", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/experiment/resultstore/upload.go#L44-L70", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/types.go", "func_name": "ApplyDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyDefault applies the defaults for the ProwJob decoration. If a field has a zero value, it\n// replaces that with the value set in def.", "docstring_tokens": ["ApplyDefault", "applies", "the", "defaults", "for", "the", "ProwJob", "decoration", ".", "If", "a", "field", "has", "a", "zero", "value", "it", "replaces", "that", "with", "the", "value", "set", "in", "def", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/types.go#L233-L272", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/types.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate ensures all the values set in the DecorationConfig are valid.", "docstring_tokens": ["Validate", "ensures", "all", "the", "values", "set", "in", "the", "DecorationConfig", "are", "valid", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/types.go#L275-L306", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/types.go", "func_name": "ApplyDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyDefault applies the defaults for the UtilityImages decorations. If a field has a zero value,\n// it replaces that with the value set in def.", "docstring_tokens": ["ApplyDefault", "applies", "the", "defaults", "for", "the", "UtilityImages", "decorations", ".", "If", "a", "field", "has", "a", "zero", "value", "it", "replaces", "that", "with", "the", "value", "set", "in", "def", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/types.go#L323-L344", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/types.go", "func_name": "ApplyDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyDefault applies the defaults for GCSConfiguration decorations. If a field has a zero value,\n// it replaces that with the value set in def.", "docstring_tokens": ["ApplyDefault", "applies", "the", "defaults", "for", "GCSConfiguration", "decorations", ".", "If", "a", "field", "has", "a", "zero", "value", "it", "replaces", "that", "with", "the", "value", "set", "in", "def", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/types.go#L375-L405", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/types.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate ensures all the values set in the GCSConfiguration are valid.", "docstring_tokens": ["Validate", "ensures", "all", "the", "values", "set", "in", "the", "GCSConfiguration", "are", "valid", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/types.go#L408-L416", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/apis/prowjobs/v1/types.go", "func_name": "ClusterAlias", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClusterAlias specifies the key in the clusters map to use.\n//\n// This allows scheduling a prow job somewhere aside from the default build cluster.", "docstring_tokens": ["ClusterAlias", "specifies", "the", "key", "in", "the", "clusters", "map", "to", "use", ".", "This", "allows", "scheduling", "a", "prow", "job", "somewhere", "aside", "from", "the", "default", "build", "cluster", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/apis/prowjobs/v1/types.go#L465-L470", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/common.go", "func_name": "NewResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewResource creates a new Boskos Resource.", "docstring_tokens": ["NewResource", "creates", "a", "new", "Boskos", "Resource", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/common.go#L93-L102", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/common.go", "func_name": "NewResourcesFromConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewResourcesFromConfig parse the a ResourceEntry into a list of resources", "docstring_tokens": ["NewResourcesFromConfig", "parse", "the", "a", "ResourceEntry", "into", "a", "list", "of", "resources"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/common.go#L105-L111", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/common.go", "func_name": "UserDataFromMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UserDataFromMap returns a UserData from a map", "docstring_tokens": ["UserDataFromMap", "returns", "a", "UserData", "from", "a", "map"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/common.go#L114-L120", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/common.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set parses the flag value into a CommaSeparatedStrings", "docstring_tokens": ["Set", "parses", "the", "flag", "value", "into", "a", "CommaSeparatedStrings"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/common.go#L153-L161", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/common.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON implements JSON Unmarshaler interface", "docstring_tokens": ["UnmarshalJSON", "implements", "JSON", "Unmarshaler", "interface"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/common.go#L171-L178", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/common.go", "func_name": "Extract", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Extract unmarshalls a string a given struct if it exists", "docstring_tokens": ["Extract", "unmarshalls", "a", "string", "a", "given", "struct", "if", "it", "exists"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/common.go#L186-L192", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/common.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// User Data are used to store custom information mainly by Mason and Masonable implementation.\n// Mason used a LeasedResource keys to store information about other resources that used to\n// create the given resource.\n// Set marshalls a struct to a string into the UserData", "docstring_tokens": ["User", "Data", "are", "used", "to", "store", "custom", "information", "mainly", "by", "Mason", "and", "Masonable", "implementation", ".", "Mason", "used", "a", "LeasedResource", "keys", "to", "store", "information", "about", "other", "resources", "that", "used", "to", "create", "the", "given", "resource", ".", "Set", "marshalls", "a", "struct", "to", "a", "string", "into", "the", "UserData"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/common.go#L199-L206", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/common.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates existing UserData with new UserData.\n// If a key as an empty string, the key will be deleted", "docstring_tokens": ["Update", "updates", "existing", "UserData", "with", "new", "UserData", ".", "If", "a", "key", "as", "an", "empty", "string", "the", "key", "will", "be", "deleted"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/common.go#L210-L222", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/common.go", "func_name": "ToMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToMap converts a UserData to UserDataMap", "docstring_tokens": ["ToMap", "converts", "a", "UserData", "to", "UserDataMap"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/common.go#L225-L232", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/common.go", "func_name": "FromMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromMap feels updates user data from a map", "docstring_tokens": ["FromMap", "feels", "updates", "user", "data", "from", "a", "map"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/common.go#L235-L239", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "boskos/common/common.go", "func_name": "ItemToResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ItemToResource casts a Item back to a Resource", "docstring_tokens": ["ItemToResource", "casts", "a", "Item", "back", "to", "a", "Resource"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/boskos/common/common.go#L242-L248", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/clonerefs/run.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run clones the configured refs", "docstring_tokens": ["Run", "clones", "the", "configured", "refs"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/clonerefs/run.go#L37-L100", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/clonerefs/run.go", "func_name": "addSSHKeys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addSSHKeys will start the ssh-agent and add all the specified\n// keys, returning the ssh-agent environment variables for reuse", "docstring_tokens": ["addSSHKeys", "will", "start", "the", "ssh", "-", "agent", "and", "add", "all", "the", "specified", "keys", "returning", "the", "ssh", "-", "agent", "environment", "variables", "for", "reuse"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/clonerefs/run.go#L119-L161", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/sources/triage-filer.go", "func_name": "Issues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Issues is the main work function of the TriageFiler. It fetches and parses cluster data,\n// then syncs the top issues to github with the IssueCreator.", "docstring_tokens": ["Issues", "is", "the", "main", "work", "function", "of", "the", "TriageFiler", ".", "It", "fetches", "and", "parses", "cluster", "data", "then", "syncs", "the", "top", "issues", "to", "github", "with", "the", "IssueCreator", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/sources/triage-filer.go#L62-L78", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/sources/triage-filer.go", "func_name": "loadClusters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loadClusters parses and filters the json data, then populates every Cluster struct with\n// aggregated job data and totals. The job data specifies all jobs that failed in a cluster and the\n// builds that failed for each job, independent of which tests the jobs or builds failed.", "docstring_tokens": ["loadClusters", "parses", "and", "filters", "the", "json", "data", "then", "populates", "every", "Cluster", "struct", "with", "aggregated", "job", "data", "and", "totals", ".", "The", "job", "data", "specifies", "all", "jobs", "that", "failed", "in", "a", "cluster", "and", "the", "builds", "that", "failed", "for", "each", "job", "independent", "of", "which", "tests", "the", "jobs", "or", "builds", "failed", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/sources/triage-filer.go#L242-L281", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/sources/triage-filer.go", "func_name": "parseTriageData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseTriageData unmarshals raw json data into a triageData struct and creates a BuildIndexer for\n// every job.", "docstring_tokens": ["parseTriageData", "unmarshals", "raw", "json", "data", "into", "a", "triageData", "struct", "and", "creates", "a", "BuildIndexer", "for", "every", "job", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/sources/triage-filer.go#L285-L322", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/sources/triage-filer.go", "func_name": "topClusters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// topClusters gets the 'count' most important clusters from a slice of clusters based on number of build failures.", "docstring_tokens": ["topClusters", "gets", "the", "count", "most", "important", "clusters", "from", "a", "slice", "of", "clusters", "based", "on", "number", "of", "build", "failures", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/sources/triage-filer.go#L325-L333", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/sources/triage-filer.go", "func_name": "topJobsFailed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// topJobsFailed returns the top 'count' job names sorted by number of failing builds.", "docstring_tokens": ["topJobsFailed", "returns", "the", "top", "count", "job", "names", "sorted", "by", "number", "of", "failing", "builds", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/sources/triage-filer.go#L347-L361", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/sources/triage-filer.go", "func_name": "Title", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Title is the string to use as the github issue title.", "docstring_tokens": ["Title", "is", "the", "string", "to", "use", "as", "the", "github", "issue", "title", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/sources/triage-filer.go#L364-L372", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "robots/issue-creator/sources/triage-filer.go", "func_name": "Labels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Labels returns the labels to apply to the issue created for this cluster on github.", "docstring_tokens": ["Labels", "returns", "the", "labels", "to", "apply", "to", "the", "issue", "created", "for", "this", "cluster", "on", "github", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/robots/issue-creator/sources/triage-filer.go#L460-L472", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cron/cron.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New makes a new Cron object", "docstring_tokens": ["New", "makes", "a", "new", "Cron", "object"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cron/cron.go#L53-L59", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cron/cron.go", "func_name": "QueuedJobs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueuedJobs returns a list of jobs that need to be triggered\n// and reset trigger in jobStatus", "docstring_tokens": ["QueuedJobs", "returns", "a", "list", "of", "jobs", "that", "need", "to", "be", "triggered", "and", "reset", "trigger", "in", "jobStatus"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cron/cron.go#L73-L85", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cron/cron.go", "func_name": "HasJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasJob returns if a job has been scheduled in cronAgent or not", "docstring_tokens": ["HasJob", "returns", "if", "a", "job", "has", "been", "scheduled", "in", "cronAgent", "or", "not"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cron/cron.go#L120-L126", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cron/cron.go", "func_name": "addJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addJob adds a cron entry for a job to cronAgent", "docstring_tokens": ["addJob", "adds", "a", "cron", "entry", "for", "a", "job", "to", "cronAgent"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cron/cron.go#L151-L173", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cron/cron.go", "func_name": "removeJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeJob removes the job from cronAgent", "docstring_tokens": ["removeJob", "removes", "the", "job", "from", "cronAgent"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cron/cron.go#L176-L185", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "velodrome/fetcher/comments.go", "func_name": "UpdateComments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateComments downloads issue and pull-request comments and save in DB", "docstring_tokens": ["UpdateComments", "downloads", "issue", "and", "pull", "-", "request", "comments", "and", "save", "in", "DB"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/velodrome/fetcher/comments.go#L80-L87", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/kube/metrics.go", "func_name": "GatherProwJobMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GatherProwJobMetrics gathers prometheus metrics for prowjobs.", "docstring_tokens": ["GatherProwJobMetrics", "gathers", "prometheus", "metrics", "for", "prowjobs", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/kube/metrics.go#L44-L69", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/entrypoint/run.go", "func_name": "optionOrDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// optionOrDefault defaults to a value if option\n// is the zero value", "docstring_tokens": ["optionOrDefault", "defaults", "to", "a", "value", "if", "option", "is", "the", "zero", "value"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/entrypoint/run.go#L223-L229", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/gcsartifact_fetcher.go", "func_name": "newGCSJobSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newGCSJobSource creates a new gcsJobSource from a given bucket and jobPrefix", "docstring_tokens": ["newGCSJobSource", "creates", "a", "new", "gcsJobSource", "from", "a", "given", "bucket", "and", "jobPrefix"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/gcsartifact_fetcher.go#L79-L104", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/gcsartifact_fetcher.go", "func_name": "artifacts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Artifacts lists all artifacts available for the given job source", "docstring_tokens": ["Artifacts", "lists", "all", "artifacts", "available", "for", "the", "given", "job", "source"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/gcsartifact_fetcher.go#L107-L143", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/gcsartifact_fetcher.go", "func_name": "canonicalLink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CanonicalLink gets a link to the location of job-specific artifacts in GCS", "docstring_tokens": ["CanonicalLink", "gets", "a", "link", "to", "the", "location", "of", "job", "-", "specific", "artifacts", "in", "GCS"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/gcsartifact_fetcher.go#L183-L185", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/spyglass/gcsartifact_fetcher.go", "func_name": "jobPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JobPath gets the prefix to all artifacts in GCS in the job", "docstring_tokens": ["JobPath", "gets", "the", "prefix", "to", "all", "artifacts", "in", "GCS", "in", "the", "job"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/spyglass/gcsartifact_fetcher.go#L188-L190", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/tide/status.go", "func_name": "targetURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// targetURL determines the URL used for more details in the status\n// context on GitHub. If no PR dashboard is configured, we will use\n// the administrative Prow overview.", "docstring_tokens": ["targetURL", "determines", "the", "URL", "used", "for", "more", "details", "in", "the", "status", "context", "on", "GitHub", ".", "If", "no", "PR", "dashboard", "is", "configured", "we", "will", "use", "the", "administrative", "Prow", "overview", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/tide/status.go#L242-L259", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/build/main.go", "func_name": "newBuildConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newBuildConfig returns a client and informer capable of mutating and monitoring the specified config.", "docstring_tokens": ["newBuildConfig", "returns", "a", "client", "and", "informer", "capable", "of", "mutating", "and", "monitoring", "the", "specified", "config", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/build/main.go#L109-L129", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/ghclient/core.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient makes a new Client with the specified token and dry-run status.", "docstring_tokens": ["NewClient", "makes", "a", "new", "Client", "with", "the", "specified", "token", "and", "dry", "-", "run", "status", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/ghclient/core.go#L49-L67", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/ghclient/core.go", "func_name": "retry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// retry handles rate limiting and retry logic for a github API call.", "docstring_tokens": ["retry", "handles", "rate", "limiting", "and", "retry", "logic", "for", "a", "github", "API", "call", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/ghclient/core.go#L95-L120", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "pkg/ghclient/core.go", "func_name": "depaginate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// depaginate adds depagination on top of the retry and rate limiting logic provided by retry.", "docstring_tokens": ["depaginate", "adds", "depagination", "on", "top", "of", "the", "retry", "and", "rate", "limiting", "logic", "provided", "by", "retry", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/pkg/ghclient/core.go#L123-L146", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pluginhelp/hook/hook.go", "func_name": "NewHelpAgent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHelpAgent constructs a new HelpAgent.", "docstring_tokens": ["NewHelpAgent", "constructs", "a", "new", "HelpAgent", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pluginhelp/hook/hook.go#L69-L76", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/pluginhelp/hook/hook.go", "func_name": "GeneratePluginHelp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GeneratePluginHelp compiles and returns the help information for all plugins.", "docstring_tokens": ["GeneratePluginHelp", "compiles", "and", "returns", "the", "help", "information", "for", "all", "plugins", "."], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/pluginhelp/hook/hook.go#L145-L178", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/deck/pr_history.go", "func_name": "getPullCommitHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// gets the pull commit hash from metadata", "docstring_tokens": ["gets", "the", "pull", "commit", "hash", "from", "metadata"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/deck/pr_history.go#L99-L106", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/deck/pr_history.go", "func_name": "listJobBuilds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// listJobBuilds concurrently lists builds for the given job prefixes that have been run on a PR", "docstring_tokens": ["listJobBuilds", "concurrently", "lists", "builds", "for", "the", "given", "job", "prefixes", "that", "have", "been", "run", "on", "a", "PR"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/deck/pr_history.go#L109-L130", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/deck/pr_history.go", "func_name": "getPRBuildData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getPRBuildData concurrently fetches metadata on each build of each job run on a PR", "docstring_tokens": ["getPRBuildData", "concurrently", "fetches", "metadata", "on", "each", "build", "of", "each", "job", "run", "on", "a", "PR"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/deck/pr_history.go#L133-L161", "partition": "test"} +{"repo": "kubernetes/test-infra", "path": "prow/cmd/deck/pr_history.go", "func_name": "getGCSDirsForPR", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getGCSDirsForPR returns a map from bucket names -> set of \"directories\" containing presubmit data", "docstring_tokens": ["getGCSDirsForPR", "returns", "a", "map", "from", "bucket", "names", "-", ">", "set", "of", "directories", "containing", "presubmit", "data"], "sha": "8125fbda10178887be5dff9e901d6a0a519b67bc", "url": "https://github.com/kubernetes/test-infra/blob/8125fbda10178887be5dff9e901d6a0a519b67bc/prow/cmd/deck/pr_history.go#L204-L239", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/images.go", "func_name": "imageDeleteFromDisk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Helper to delete an image file from the local images directory.", "docstring_tokens": ["Helper", "to", "delete", "an", "image", "file", "from", "the", "local", "images", "directory", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/images.go#L1428-L1446", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/networks.go", "func_name": "doNetworksCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create the network on the system. The withDatabase flag is used to decide\n// whether to cleanup the database if an error occurs.", "docstring_tokens": ["Create", "the", "network", "on", "the", "system", ".", "The", "withDatabase", "flag", "is", "used", "to", "decide", "whether", "to", "cleanup", "the", "database", "if", "an", "error", "occurs", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/networks.go#L333-L347", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/networks.go", "func_name": "networkLoadByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// The network structs and functions", "docstring_tokens": ["The", "network", "structs", "and", "functions"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/networks.go#L828-L837", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/db.go", "func_name": "Transaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Transaction creates a new NodeTx object and transactionally executes the\n// node-level database interactions invoked by the given function. If the\n// function returns no error, all database changes are committed to the\n// node-level database, otherwise they are rolled back.", "docstring_tokens": ["Transaction", "creates", "a", "new", "NodeTx", "object", "and", "transactionally", "executes", "the", "node", "-", "level", "database", "interactions", "invoked", "by", "the", "given", "function", ".", "If", "the", "function", "returns", "no", "error", "all", "database", "changes", "are", "committed", "to", "the", "node", "-", "level", "database", "otherwise", "they", "are", "rolled", "back", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/db.go#L123-L129", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/db.go", "func_name": "ForLocalInspectionWithPreparedStmts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForLocalInspectionWithPreparedStmts is the same as ForLocalInspection but it\n// also prepares the statements used in auto-generated database code.", "docstring_tokens": ["ForLocalInspectionWithPreparedStmts", "is", "the", "same", "as", "ForLocalInspection", "but", "it", "also", "prepares", "the", "statements", "used", "in", "auto", "-", "generated", "database", "code", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/db.go#L274-L285", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/db.go", "func_name": "SetDefaultTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDefaultTimeout sets the default go-dqlite driver timeout.", "docstring_tokens": ["SetDefaultTimeout", "sets", "the", "default", "go", "-", "dqlite", "driver", "timeout", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/db.go#L288-L291", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/db.go", "func_name": "Transaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Transaction creates a new ClusterTx object and transactionally executes the\n// cluster database interactions invoked by the given function. If the function\n// returns no error, all database changes are committed to the cluster database\n// database, otherwise they are rolled back.\n//\n// If EnterExclusive has been called before, calling Transaction will block\n// until ExitExclusive has been called as well to release the lock.", "docstring_tokens": ["Transaction", "creates", "a", "new", "ClusterTx", "object", "and", "transactionally", "executes", "the", "cluster", "database", "interactions", "invoked", "by", "the", "given", "function", ".", "If", "the", "function", "returns", "no", "error", "all", "database", "changes", "are", "committed", "to", "the", "cluster", "database", "database", "otherwise", "they", "are", "rolled", "back", ".", "If", "EnterExclusive", "has", "been", "called", "before", "calling", "Transaction", "will", "block", "until", "ExitExclusive", "has", "been", "called", "as", "well", "to", "release", "the", "lock", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/db.go#L300-L304", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/db.go", "func_name": "EnterExclusive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnterExclusive acquires a lock on the cluster db, so any successive call to\n// Transaction will block until ExitExclusive has been called.", "docstring_tokens": ["EnterExclusive", "acquires", "a", "lock", "on", "the", "cluster", "db", "so", "any", "successive", "call", "to", "Transaction", "will", "block", "until", "ExitExclusive", "has", "been", "called", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/db.go#L308-L324", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/db.go", "func_name": "ExitExclusive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExitExclusive runs the given transaction and then releases the lock acquired\n// with EnterExclusive.", "docstring_tokens": ["ExitExclusive", "runs", "the", "given", "transaction", "and", "then", "releases", "the", "lock", "acquired", "with", "EnterExclusive", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/db.go#L328-L332", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/db.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close the database facade.", "docstring_tokens": ["Close", "the", "database", "facade", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/db.go#L357-L362", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/db.go", "func_name": "TxCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TxCommit commits the given transaction.", "docstring_tokens": ["TxCommit", "commits", "the", "given", "transaction", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/db.go#L408-L414", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/config/remote.go", "func_name": "ParseRemote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseRemote splits remote and object", "docstring_tokens": ["ParseRemote", "splits", "remote", "and", "object"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/config/remote.go#L33-L50", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/config/remote.go", "func_name": "GetContainerServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerServer returns a ContainerServer struct for the remote", "docstring_tokens": ["GetContainerServer", "returns", "a", "ContainerServer", "struct", "for", "the", "remote"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/config/remote.go#L53-L108", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/config/remote.go", "func_name": "GetImageServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetImageServer returns a ImageServer struct for the remote", "docstring_tokens": ["GetImageServer", "returns", "a", "ImageServer", "struct", "for", "the", "remote"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/config/remote.go#L111-L177", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/sys/apparmor.go", "func_name": "initAppArmor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Initialize AppArmor-specific attributes.", "docstring_tokens": ["Initialize", "AppArmor", "-", "specific", "attributes", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/sys/apparmor.go#L19-L64", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/sys/apparmor.go", "func_name": "appArmorCanStack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns true if AppArmor stacking support is available.", "docstring_tokens": ["Returns", "true", "if", "AppArmor", "stacking", "support", "is", "available", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/sys/apparmor.go#L78-L118", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/utils.go", "func_name": "containerDeviceAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add a device to a container", "docstring_tokens": ["Add", "a", "device", "to", "a", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/utils.go#L123-L144", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/utils.go", "func_name": "profileDeviceAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add a device to a profile", "docstring_tokens": ["Add", "a", "device", "to", "a", "profile"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/utils.go#L147-L169", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/utils.go", "func_name": "ensureImageAliases", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create the specified image alises, updating those that already exist", "docstring_tokens": ["Create", "the", "specified", "image", "alises", "updating", "those", "that", "already", "exist"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/utils.go#L172-L206", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/utils.go", "func_name": "GetExistingAliases", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetExistingAliases returns the intersection between a list of aliases and all the existing ones.", "docstring_tokens": ["GetExistingAliases", "returns", "the", "intersection", "between", "a", "list", "of", "aliases", "and", "all", "the", "existing", "ones", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/utils.go#L209-L219", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/api/status_code.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a suitable string representation for the status code", "docstring_tokens": ["String", "returns", "a", "suitable", "string", "representation", "for", "the", "status", "code"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/api/status_code.go#L29-L48", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImagesGetExpired", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImagesGetExpired returns the names of all images that have expired since the\n// given time.", "docstring_tokens": ["ImagesGetExpired", "returns", "the", "names", "of", "all", "images", "that", "have", "expired", "since", "the", "given", "time", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L66-L104", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageSourceInsert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageSourceInsert inserts a new image source.", "docstring_tokens": ["ImageSourceInsert", "inserts", "a", "new", "image", "source", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L107-L123", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageSourceGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageSourceGet returns the image source with the given ID.", "docstring_tokens": ["ImageSourceGet", "returns", "the", "image", "source", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L126-L153", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageExists returns whether an image with the given fingerprint exists.", "docstring_tokens": ["ImageExists", "returns", "whether", "an", "image", "with", "the", "given", "fingerprint", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L194-L224", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageGet gets an Image object from the database.\n// If strictMatching is false, The fingerprint argument will be queried with a LIKE query, means you can\n// pass a shortform and will get the full fingerprint.\n// There can never be more than one image with a given fingerprint, as it is\n// enforced by a UNIQUE constraint in the schema.", "docstring_tokens": ["ImageGet", "gets", "an", "Image", "object", "from", "the", "database", ".", "If", "strictMatching", "is", "false", "The", "fingerprint", "argument", "will", "be", "queried", "with", "a", "LIKE", "query", "means", "you", "can", "pass", "a", "shortform", "and", "will", "get", "the", "full", "fingerprint", ".", "There", "can", "never", "be", "more", "than", "one", "image", "with", "a", "given", "fingerprint", "as", "it", "is", "enforced", "by", "a", "UNIQUE", "constraint", "in", "the", "schema", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L265-L349", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageGetFromAnyProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageGetFromAnyProject returns an image matching the given fingerprint, if\n// it exists in any project.", "docstring_tokens": ["ImageGetFromAnyProject", "returns", "an", "image", "matching", "the", "given", "fingerprint", "if", "it", "exists", "in", "any", "project", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L353-L390", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "imageFill", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fill extra image fields such as properties and alias. This is called after\n// fetching a single row from the images table.", "docstring_tokens": ["Fill", "extra", "image", "fields", "such", "as", "properties", "and", "alias", ".", "This", "is", "called", "after", "fetching", "a", "single", "row", "from", "the", "images", "table", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L394-L463", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageLocate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageLocate returns the address of an online node that has a local copy of\n// the given image, or an empty string if the image is already available on this\n// node.\n//\n// If the image is not available on any online node, an error is returned.", "docstring_tokens": ["ImageLocate", "returns", "the", "address", "of", "an", "online", "node", "that", "has", "a", "local", "copy", "of", "the", "given", "image", "or", "an", "empty", "string", "if", "the", "image", "is", "already", "available", "on", "this", "node", ".", "If", "the", "image", "is", "not", "available", "on", "any", "online", "node", "an", "error", "is", "returned", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L470-L520", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageAssociateNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageAssociateNode creates a new entry in the images_nodes table for\n// tracking that the current node has the given image.", "docstring_tokens": ["ImageAssociateNode", "creates", "a", "new", "entry", "in", "the", "images_nodes", "table", "for", "tracking", "that", "the", "current", "node", "has", "the", "given", "image", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L524-L535", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageDelete deletes the image with the given ID.", "docstring_tokens": ["ImageDelete", "deletes", "the", "image", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L538-L545", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageAliasesGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageAliasesGet returns the names of the aliases of all images.", "docstring_tokens": ["ImageAliasesGet", "returns", "the", "names", "of", "the", "aliases", "of", "all", "images", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L548-L581", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageAliasGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageAliasGet returns the alias with the given name in the given project.", "docstring_tokens": ["ImageAliasGet", "returns", "the", "alias", "with", "the", "given", "name", "in", "the", "given", "project", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L584-L631", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageAliasRename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageAliasRename renames the alias with the given ID.", "docstring_tokens": ["ImageAliasRename", "renames", "the", "alias", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L634-L637", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageAliasDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageAliasDelete deletes the alias with the given name.", "docstring_tokens": ["ImageAliasDelete", "deletes", "the", "alias", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L640-L661", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageAliasesMove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageAliasesMove changes the image ID associated with an alias.", "docstring_tokens": ["ImageAliasesMove", "changes", "the", "image", "ID", "associated", "with", "an", "alias", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L664-L667", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageAliasAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageAliasAdd inserts an alias ento the database.", "docstring_tokens": ["ImageAliasAdd", "inserts", "an", "alias", "ento", "the", "database", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L670-L691", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageAliasUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageAliasUpdate updates the alias with the given ID.", "docstring_tokens": ["ImageAliasUpdate", "updates", "the", "alias", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L694-L698", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageLastAccessUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageLastAccessUpdate updates the last_use_date field of the image with the\n// given fingerprint.", "docstring_tokens": ["ImageLastAccessUpdate", "updates", "the", "last_use_date", "field", "of", "the", "image", "with", "the", "given", "fingerprint", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L702-L706", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageLastAccessInit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ImageLastAccessInit inits the last_use_date field of the image with the given fingerprint.", "docstring_tokens": ["ImageLastAccessInit", "inits", "the", "last_use_date", "field", "of", "the", "image", "with", "the", "given", "fingerprint", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L709-L713", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageUpdate updates the image with the given ID.", "docstring_tokens": ["ImageUpdate", "updates", "the", "image", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L716-L765", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageInsert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageInsert inserts a new image.", "docstring_tokens": ["ImageInsert", "inserts", "a", "new", "image", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L768-L842", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageGetPools", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageGetPools get the names of all storage pools on which a given image exists.", "docstring_tokens": ["ImageGetPools", "get", "the", "names", "of", "all", "storage", "pools", "on", "which", "a", "given", "image", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L845-L862", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageGetPoolNamesFromIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageGetPoolNamesFromIDs get the names of all storage pools on which a given image exists.", "docstring_tokens": ["ImageGetPoolNamesFromIDs", "get", "the", "names", "of", "all", "storage", "pools", "on", "which", "a", "given", "image", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L865-L885", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageUploadedAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageUploadedAt updates the upload_date column and an image row.", "docstring_tokens": ["ImageUploadedAt", "updates", "the", "upload_date", "column", "and", "an", "image", "row", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L888-L891", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImagesGetOnCurrentNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImagesGetOnCurrentNode returns all images that the current LXD node instance has.", "docstring_tokens": ["ImagesGetOnCurrentNode", "returns", "all", "images", "that", "the", "current", "LXD", "node", "instance", "has", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L894-L896", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImagesGetByNodeID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImagesGetByNodeID returns all images that the LXD node instance has with the given node id.", "docstring_tokens": ["ImagesGetByNodeID", "returns", "all", "images", "that", "the", "LXD", "node", "instance", "has", "with", "the", "given", "node", "id", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L899-L928", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageGetNodesWithImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageGetNodesWithImage returns the addresses of online nodes which already have the image.", "docstring_tokens": ["ImageGetNodesWithImage", "returns", "the", "addresses", "of", "online", "nodes", "which", "already", "have", "the", "image", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L931-L939", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/images.go", "func_name": "ImageGetNodesWithoutImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageGetNodesWithoutImage returns the addresses of online nodes which don't have the image.", "docstring_tokens": ["ImageGetNodesWithoutImage", "returns", "the", "addresses", "of", "online", "nodes", "which", "don", "t", "have", "the", "image", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/images.go#L942-L951", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/task/group.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add a new task to the group, returning its index.", "docstring_tokens": ["Add", "a", "new", "task", "to", "the", "group", "returning", "its", "index", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/task/group.go#L25-L33", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/task/group.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start all the tasks in the group.", "docstring_tokens": ["Start", "all", "the", "tasks", "in", "the", "group", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/task/group.go#L36-L67", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_zfs_utils.go", "func_name": "zfsIsEnabled", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// zfsIsEnabled returns whether zfs backend is supported.", "docstring_tokens": ["zfsIsEnabled", "returns", "whether", "zfs", "backend", "is", "supported", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_zfs_utils.go#L20-L27", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_zfs_utils.go", "func_name": "zfsToolVersionGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// zfsToolVersionGet returns the ZFS tools version", "docstring_tokens": ["zfsToolVersionGet", "returns", "the", "ZFS", "tools", "version"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_zfs_utils.go#L30-L39", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_zfs_utils.go", "func_name": "zfsModuleVersionGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// zfsModuleVersionGet returns the ZFS module version", "docstring_tokens": ["zfsModuleVersionGet", "returns", "the", "ZFS", "module", "version"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_zfs_utils.go#L42-L62", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_zfs_utils.go", "func_name": "zfsPoolVolumeCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// zfsPoolVolumeCreate creates a ZFS dataset with a set of given properties.", "docstring_tokens": ["zfsPoolVolumeCreate", "creates", "a", "ZFS", "dataset", "with", "a", "set", "of", "given", "properties", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_zfs_utils.go#L65-L75", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_zfs_utils.go", "func_name": "zfsPoolVolumeExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// zfsPoolVolumeExists verifies if a specific ZFS pool or volume exists.", "docstring_tokens": ["zfsPoolVolumeExists", "verifies", "if", "a", "specific", "ZFS", "pool", "or", "volume", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_zfs_utils.go#L93-L107", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkIDsNotPending", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkIDsNotPending returns a map associating each network name to its ID.\n//\n// Pending networks are skipped.", "docstring_tokens": ["NetworkIDsNotPending", "returns", "a", "map", "associating", "each", "network", "name", "to", "its", "ID", ".", "Pending", "networks", "are", "skipped", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L37-L64", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkConfigAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkConfigAdd adds a new entry in the networks_config table", "docstring_tokens": ["NetworkConfigAdd", "adds", "a", "new", "entry", "in", "the", "networks_config", "table"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L84-L86", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkNodeJoin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkNodeJoin adds a new entry in the networks_nodes table.\n//\n// It should only be used when a new node joins the cluster, when it's safe to\n// assume that the relevant network has already been created on the joining node,\n// and we just need to track it.", "docstring_tokens": ["NetworkNodeJoin", "adds", "a", "new", "entry", "in", "the", "networks_nodes", "table", ".", "It", "should", "only", "be", "used", "when", "a", "new", "node", "joins", "the", "cluster", "when", "it", "s", "safe", "to", "assume", "that", "the", "relevant", "network", "has", "already", "been", "created", "on", "the", "joining", "node", "and", "we", "just", "need", "to", "track", "it", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L93-L98", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkCreatePending", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkCreatePending creates a new pending network on the node with\n// the given name.", "docstring_tokens": ["NetworkCreatePending", "creates", "a", "new", "pending", "network", "on", "the", "node", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L149-L224", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkCreated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkCreated sets the state of the given network to \"Created\".", "docstring_tokens": ["NetworkCreated", "sets", "the", "state", "of", "the", "given", "network", "to", "Created", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L227-L229", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkErrored", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkErrored sets the state of the given network to \"Errored\".", "docstring_tokens": ["NetworkErrored", "sets", "the", "state", "of", "the", "given", "network", "to", "Errored", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L232-L234", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkGet returns the network with the given name.", "docstring_tokens": ["NetworkGet", "returns", "the", "network", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L298-L344", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "networkNodes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the names of the nodes the given network is defined on.", "docstring_tokens": ["Return", "the", "names", "of", "the", "nodes", "the", "given", "network", "is", "defined", "on", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L347-L363", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkGetInterface", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkGetInterface returns the network associated with the interface with\n// the given name.", "docstring_tokens": ["NetworkGetInterface", "returns", "the", "network", "associated", "with", "the", "interface", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L367-L408", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkConfigGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkConfigGet returns the config map of the network with the given ID.", "docstring_tokens": ["NetworkConfigGet", "returns", "the", "config", "map", "of", "the", "network", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L411-L453", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkCreate creates a new network.", "docstring_tokens": ["NetworkCreate", "creates", "a", "new", "network", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L456-L488", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkUpdate updates the network with the given name.", "docstring_tokens": ["NetworkUpdate", "updates", "the", "network", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L491-L516", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkUpdateDescription", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkUpdateDescription updates the description of the network with the\n// given ID.", "docstring_tokens": ["NetworkUpdateDescription", "updates", "the", "description", "of", "the", "network", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L520-L523", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkConfigClear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkConfigClear resets the config of the network with the given ID\n// associated with the node with the given ID.", "docstring_tokens": ["NetworkConfigClear", "resets", "the", "config", "of", "the", "network", "with", "the", "given", "ID", "associated", "with", "the", "node", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L555-L564", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkDelete deletes the network with the given name.", "docstring_tokens": ["NetworkDelete", "deletes", "the", "network", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L567-L579", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/networks.go", "func_name": "NetworkRename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkRename renames a network.", "docstring_tokens": ["NetworkRename", "renames", "a", "network", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/networks.go#L582-L594", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainers returns a list of containers", "docstring_tokens": ["GetContainers", "returns", "a", "list", "of", "containers"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L42-L52", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainersFull", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainersFull returns a list of containers including snapshots, backups and state", "docstring_tokens": ["GetContainersFull", "returns", "a", "list", "of", "containers", "including", "snapshots", "backups", "and", "state"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L55-L69", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainer returns the container entry for the provided name", "docstring_tokens": ["GetContainer", "returns", "the", "container", "entry", "for", "the", "provided", "name"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L72-L82", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "CreateContainerFromBackup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateContainerFromBackup is a convenience function to make it easier to\n// create a container from a backup", "docstring_tokens": ["CreateContainerFromBackup", "is", "a", "convenience", "function", "to", "make", "it", "easier", "to", "create", "a", "container", "from", "a", "backup"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L86-L151", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "CreateContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateContainer requests that LXD creates a new container", "docstring_tokens": ["CreateContainer", "requests", "that", "LXD", "creates", "a", "new", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L154-L168", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "CreateContainerFromImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateContainerFromImage is a convenience function to make it easier to create a container from an existing image", "docstring_tokens": ["CreateContainerFromImage", "is", "a", "convenience", "function", "to", "make", "it", "easier", "to", "create", "a", "container", "from", "an", "existing", "image"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L225-L285", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "UpdateContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateContainer updates the container definition", "docstring_tokens": ["UpdateContainer", "updates", "the", "container", "definition"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L587-L595", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "RenameContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenameContainer requests that LXD renames the container", "docstring_tokens": ["RenameContainer", "requests", "that", "LXD", "renames", "the", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L598-L611", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "ExecContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExecContainer requests that LXD spawns a command inside the container", "docstring_tokens": ["ExecContainer", "requests", "that", "LXD", "spawns", "a", "command", "inside", "the", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L697-L831", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainerFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerFile retrieves the provided path from the container", "docstring_tokens": ["GetContainerFile", "retrieves", "the", "provided", "path", "from", "the", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L834-L904", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "CreateContainerFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateContainerFile tells LXD to create a file in the container", "docstring_tokens": ["CreateContainerFile", "tells", "LXD", "to", "create", "a", "file", "in", "the", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L907-L978", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "DeleteContainerFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteContainerFile deletes a file in the container", "docstring_tokens": ["DeleteContainerFile", "deletes", "a", "file", "in", "the", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L981-L993", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainerSnapshotNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerSnapshotNames returns a list of snapshot names for the container", "docstring_tokens": ["GetContainerSnapshotNames", "returns", "a", "list", "of", "snapshot", "names", "for", "the", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L996-L1013", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainerSnapshots", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerSnapshots returns a list of snapshots for the container", "docstring_tokens": ["GetContainerSnapshots", "returns", "a", "list", "of", "snapshots", "for", "the", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1016-L1026", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainerSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerSnapshot returns a Snapshot struct for the provided container and snapshot names", "docstring_tokens": ["GetContainerSnapshot", "returns", "a", "Snapshot", "struct", "for", "the", "provided", "container", "and", "snapshot", "names"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1029-L1039", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "CreateContainerSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateContainerSnapshot requests that LXD creates a new snapshot for the container", "docstring_tokens": ["CreateContainerSnapshot", "requests", "that", "LXD", "creates", "a", "new", "snapshot", "for", "the", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1042-L1055", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "MigrateContainerSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MigrateContainerSnapshot requests that LXD prepares for a snapshot migration", "docstring_tokens": ["MigrateContainerSnapshot", "requests", "that", "LXD", "prepares", "for", "a", "snapshot", "migration"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1334-L1347", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "UpdateContainerSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateContainerSnapshot requests that LXD updates the container snapshot", "docstring_tokens": ["UpdateContainerSnapshot", "requests", "that", "LXD", "updates", "the", "container", "snapshot"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1361-L1374", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainerState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerState returns a ContainerState entry for the provided container name", "docstring_tokens": ["GetContainerState", "returns", "a", "ContainerState", "entry", "for", "the", "provided", "container", "name"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1377-L1387", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "UpdateContainerState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateContainerState updates the container to match the requested state", "docstring_tokens": ["UpdateContainerState", "updates", "the", "container", "to", "match", "the", "requested", "state"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1390-L1398", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainerLogfiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerLogfiles returns a list of logfiles for the container", "docstring_tokens": ["GetContainerLogfiles", "returns", "a", "list", "of", "logfiles", "for", "the", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1401-L1418", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainerLogfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerLogfile returns the content of the requested logfile\n//\n// Note that it's the caller's responsibility to close the returned ReadCloser", "docstring_tokens": ["GetContainerLogfile", "returns", "the", "content", "of", "the", "requested", "logfile", "Note", "that", "it", "s", "the", "caller", "s", "responsibility", "to", "close", "the", "returned", "ReadCloser"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1423-L1457", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainerMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerMetadata returns container metadata.", "docstring_tokens": ["GetContainerMetadata", "returns", "container", "metadata", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1471-L1485", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "SetContainerMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetContainerMetadata sets the content of the container metadata file.", "docstring_tokens": ["SetContainerMetadata", "sets", "the", "content", "of", "the", "container", "metadata", "file", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1488-L1500", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainerTemplateFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerTemplateFiles returns the list of names of template files for a container.", "docstring_tokens": ["GetContainerTemplateFiles", "returns", "the", "list", "of", "names", "of", "template", "files", "for", "a", "container", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1503-L1517", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "CreateContainerTemplateFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateContainerTemplateFile creates an a template for a container.", "docstring_tokens": ["CreateContainerTemplateFile", "creates", "an", "a", "template", "for", "a", "container", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1560-L1562", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "DeleteContainerTemplateFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteContainerTemplateFile deletes a template file for a container.", "docstring_tokens": ["DeleteContainerTemplateFile", "deletes", "a", "template", "file", "for", "a", "container", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1605-L1611", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "ConsoleContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConsoleContainer requests that LXD attaches to the console device of a container.", "docstring_tokens": ["ConsoleContainer", "requests", "that", "LXD", "attaches", "to", "the", "console", "device", "of", "a", "container", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1614-L1681", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainerConsoleLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerConsoleLog requests that LXD attaches to the console device of a container.\n//\n// Note that it's the caller's responsibility to close the returned ReadCloser", "docstring_tokens": ["GetContainerConsoleLog", "requests", "that", "LXD", "attaches", "to", "the", "console", "device", "of", "a", "container", ".", "Note", "that", "it", "s", "the", "caller", "s", "responsibility", "to", "close", "the", "returned", "ReadCloser"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1686-L1724", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "DeleteContainerConsoleLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteContainerConsoleLog deletes the requested container's console log", "docstring_tokens": ["DeleteContainerConsoleLog", "deletes", "the", "requested", "container", "s", "console", "log"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1727-L1739", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainerBackups", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerBackups returns a list of backups for the container", "docstring_tokens": ["GetContainerBackups", "returns", "a", "list", "of", "backups", "for", "the", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1767-L1781", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainerBackup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerBackup returns a Backup struct for the provided container and backup names", "docstring_tokens": ["GetContainerBackup", "returns", "a", "Backup", "struct", "for", "the", "provided", "container", "and", "backup", "names"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1784-L1797", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "CreateContainerBackup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateContainerBackup requests that LXD creates a new backup for the container", "docstring_tokens": ["CreateContainerBackup", "requests", "that", "LXD", "creates", "a", "new", "backup", "for", "the", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1800-L1813", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "RenameContainerBackup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenameContainerBackup requests that LXD renames the backup", "docstring_tokens": ["RenameContainerBackup", "requests", "that", "LXD", "renames", "the", "backup"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1816-L1829", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "DeleteContainerBackup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteContainerBackup requests that LXD deletes the container backup", "docstring_tokens": ["DeleteContainerBackup", "requests", "that", "LXD", "deletes", "the", "container", "backup"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1832-L1845", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_containers.go", "func_name": "GetContainerBackupFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainerBackupFile requests the container backup content", "docstring_tokens": ["GetContainerBackupFile", "requests", "the", "container", "backup", "content"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_containers.go#L1848-L1908", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/rsync.go", "func_name": "RsyncSend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RsyncSend sets up the sending half of an rsync, to recursively send the\n// directory pointed to by path over the websocket.", "docstring_tokens": ["RsyncSend", "sets", "up", "the", "sending", "half", "of", "an", "rsync", "to", "recursively", "send", "the", "directory", "pointed", "to", "by", "path", "over", "the", "websocket", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/rsync.go#L172-L213", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/patches.go", "func_name": "patchesGetNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the names of all available patches.", "docstring_tokens": ["Return", "the", "names", "of", "all", "available", "patches", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/patches.go#L96-L102", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/patches.go", "func_name": "patchRenameCustomVolumeLVs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Patches begin here", "docstring_tokens": ["Patches", "begin", "here"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/patches.go#L125-L177", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/patches.go", "func_name": "patchLvmNodeSpecificConfigKeys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// The lvm.thinpool_name and lvm.vg_name config keys are node-specific and need\n// to be linked to nodes.", "docstring_tokens": ["The", "lvm", ".", "thinpool_name", "and", "lvm", ".", "vg_name", "config", "keys", "are", "node", "-", "specific", "and", "need", "to", "be", "linked", "to", "nodes", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/patches.go#L2123-L2183", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd.go", "func_name": "GetHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHTTPClient returns the http client used for the connection. This can be used to set custom http options.", "docstring_tokens": ["GetHTTPClient", "returns", "the", "http", "client", "used", "for", "the", "connection", ".", "This", "can", "be", "used", "to", "set", "custom", "http", "options", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd.go#L76-L82", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd.go", "func_name": "do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do performs a Request, using macaroon authentication if set.", "docstring_tokens": ["Do", "performs", "a", "Request", "using", "macaroon", "authentication", "if", "set", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd.go#L85-L92", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd.go", "func_name": "RawQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RawQuery allows directly querying the LXD API\n//\n// This should only be used by internal LXD tools.", "docstring_tokens": ["RawQuery", "allows", "directly", "querying", "the", "LXD", "API", "This", "should", "only", "be", "used", "by", "internal", "LXD", "tools", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd.go#L110-L115", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd.go", "func_name": "RawWebsocket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RawWebsocket allows directly connection to LXD API websockets\n//\n// This should only be used by internal LXD tools.", "docstring_tokens": ["RawWebsocket", "allows", "directly", "connection", "to", "LXD", "API", "websockets", "This", "should", "only", "be", "used", "by", "internal", "LXD", "tools", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd.go#L120-L122", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd.go", "func_name": "RawOperation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RawOperation allows direct querying of a LXD API endpoint returning\n// background operations.", "docstring_tokens": ["RawOperation", "allows", "direct", "querying", "of", "a", "LXD", "API", "endpoint", "returning", "background", "operations", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd.go#L126-L128", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.go", "func_name": "ProfileToAPI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileToAPI is a convenience to convert a Profile db struct into\n// an API profile struct.", "docstring_tokens": ["ProfileToAPI", "is", "a", "convenience", "to", "convert", "a", "Profile", "db", "struct", "into", "an", "API", "profile", "struct", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.go#L64-L74", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.go", "func_name": "Profiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Profiles returns a string list of profiles.", "docstring_tokens": ["Profiles", "returns", "a", "string", "list", "of", "profiles", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.go#L83-L118", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.go", "func_name": "ProfileGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileGet returns the profile with the given name.", "docstring_tokens": ["ProfileGet", "returns", "the", "profile", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.go#L121-L149", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.go", "func_name": "ProfilesGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfilesGet returns the profiles with the given names in the given project.", "docstring_tokens": ["ProfilesGet", "returns", "the", "profiles", "with", "the", "given", "names", "in", "the", "given", "project", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.go#L152-L179", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.go", "func_name": "ProfileConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileConfig gets the profile configuration map from the DB.", "docstring_tokens": ["ProfileConfig", "gets", "the", "profile", "configuration", "map", "from", "the", "DB", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.go#L182-L239", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.go", "func_name": "ProfileConfigClear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileConfigClear resets the config of the profile with the given ID.", "docstring_tokens": ["ProfileConfigClear", "resets", "the", "config", "of", "the", "profile", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.go#L248-L267", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.go", "func_name": "ProfileConfigAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileConfigAdd adds a config to the profile with the given ID.", "docstring_tokens": ["ProfileConfigAdd", "adds", "a", "config", "to", "the", "profile", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.go#L270-L290", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.go", "func_name": "ProfileContainersGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileContainersGet gets the names of the containers associated with the\n// profile with the given name.", "docstring_tokens": ["ProfileContainersGet", "gets", "the", "names", "of", "the", "containers", "associated", "with", "the", "profile", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.go#L294-L337", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.go", "func_name": "ProfileCleanupLeftover", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileCleanupLeftover removes unreferenced profiles.", "docstring_tokens": ["ProfileCleanupLeftover", "removes", "unreferenced", "profiles", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.go#L340-L352", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.go", "func_name": "ProfilesExpandConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfilesExpandConfig expands the given container config with the config\n// values of the given profiles.", "docstring_tokens": ["ProfilesExpandConfig", "expands", "the", "given", "container", "config", "with", "the", "config", "values", "of", "the", "given", "profiles", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.go#L356-L377", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.go", "func_name": "ProfilesExpandDevices", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfilesExpandDevices expands the given container devices with the devices\n// defined in the given profiles.", "docstring_tokens": ["ProfilesExpandDevices", "expands", "the", "given", "container", "devices", "with", "the", "devices", "defined", "in", "the", "given", "profiles", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.go#L381-L401", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_server.go", "func_name": "GetServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Server handling functions\n// GetServer returns the server status as a Server struct", "docstring_tokens": ["Server", "handling", "functions", "GetServer", "returns", "the", "server", "status", "as", "a", "Server", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_server.go#L13-L40", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_server.go", "func_name": "UpdateServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateServer updates the server status to match the provided Server struct", "docstring_tokens": ["UpdateServer", "updates", "the", "server", "status", "to", "match", "the", "provided", "Server", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_server.go#L43-L51", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_server.go", "func_name": "HasExtension", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasExtension returns true if the server supports a given API extension", "docstring_tokens": ["HasExtension", "returns", "true", "if", "the", "server", "supports", "a", "given", "API", "extension"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_server.go#L54-L68", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_server.go", "func_name": "GetServerResources", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetServerResources returns the resources available to a given LXD server", "docstring_tokens": ["GetServerResources", "returns", "the", "resources", "available", "to", "a", "given", "LXD", "server"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_server.go#L76-L90", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_server.go", "func_name": "UseProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UseProject returns a client that will use a specific project.", "docstring_tokens": ["UseProject", "returns", "a", "client", "that", "will", "use", "a", "specific", "project", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_server.go#L93-L107", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node/sqlite.go", "func_name": "sqliteOpen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Opens the node-level database with the correct parameters for LXD.", "docstring_tokens": ["Opens", "the", "node", "-", "level", "database", "with", "the", "correct", "parameters", "for", "LXD", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node/sqlite.go#L15-L24", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/membership.go", "func_name": "Rebalance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rebalance the raft cluster, trying to see if we have a spare online node\n// that we can promote to database node if we are below membershipMaxRaftNodes.\n//\n// If there's such spare node, return its address as well as the new list of\n// raft nodes.", "docstring_tokens": ["Rebalance", "the", "raft", "cluster", "trying", "to", "see", "if", "we", "have", "a", "spare", "online", "node", "that", "we", "can", "promote", "to", "database", "node", "if", "we", "are", "below", "membershipMaxRaftNodes", ".", "If", "there", "s", "such", "spare", "node", "return", "its", "address", "as", "well", "as", "the", "new", "list", "of", "raft", "nodes", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/membership.go#L429-L501", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/membership.go", "func_name": "Promote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Promote makes a LXD node which is not a database node, become part of the\n// raft cluster.", "docstring_tokens": ["Promote", "makes", "a", "LXD", "node", "which", "is", "not", "a", "database", "node", "become", "part", "of", "the", "raft", "cluster", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/membership.go#L505-L606", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/membership.go", "func_name": "Purge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Purge removes a node entirely from the cluster database.", "docstring_tokens": ["Purge", "removes", "a", "node", "entirely", "from", "the", "cluster", "database", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/membership.go#L691-L712", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/membership.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List the nodes of the cluster.", "docstring_tokens": ["List", "the", "nodes", "of", "the", "cluster", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/membership.go#L715-L798", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/membership.go", "func_name": "Count", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Count is a convenience for checking the current number of nodes in the\n// cluster.", "docstring_tokens": ["Count", "is", "a", "convenience", "for", "checking", "the", "current", "number", "of", "nodes", "in", "the", "cluster", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/membership.go#L802-L810", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/membership.go", "func_name": "Enabled", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enabled is a convenience that returns true if clustering is enabled on this\n// node.", "docstring_tokens": ["Enabled", "is", "a", "convenience", "that", "returns", "true", "if", "clustering", "is", "enabled", "on", "this", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/membership.go#L814-L825", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/membership.go", "func_name": "membershipCheckNodeStateForBootstrapOrJoin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check that node-related preconditions are met for bootstrapping or joining a\n// cluster.", "docstring_tokens": ["Check", "that", "node", "-", "related", "preconditions", "are", "met", "for", "bootstrapping", "or", "joining", "a", "cluster", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/membership.go#L829-L853", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/membership.go", "func_name": "membershipCheckClusterStateForBootstrapOrJoin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check that cluster-related preconditions are met for bootstrapping or\n// joining a cluster.", "docstring_tokens": ["Check", "that", "cluster", "-", "related", "preconditions", "are", "met", "for", "bootstrapping", "or", "joining", "a", "cluster", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/membership.go#L857-L866", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/membership.go", "func_name": "membershipCheckClusterStateForAccept", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check that cluster-related preconditions are met for accepting a new node.", "docstring_tokens": ["Check", "that", "cluster", "-", "related", "preconditions", "are", "met", "for", "accepting", "a", "new", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/membership.go#L869-L894", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/membership.go", "func_name": "membershipCheckClusterStateForLeave", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check that cluster-related preconditions are met for leaving a cluster.", "docstring_tokens": ["Check", "that", "cluster", "-", "related", "preconditions", "are", "met", "for", "leaving", "a", "cluster", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/membership.go#L897-L916", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/membership.go", "func_name": "membershipCheckNoLeftoverClusterCert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check that there is no left-over cluster certificate in the LXD var dir of\n// this node.", "docstring_tokens": ["Check", "that", "there", "is", "no", "left", "-", "over", "cluster", "certificate", "in", "the", "LXD", "var", "dir", "of", "this", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/membership.go#L920-L928", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/node/config.go", "func_name": "ConfigLoad", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConfigLoad loads a new Config object with the current node-local configuration\n// values fetched from the database. An optional list of config value triggers\n// can be passed, each config key must have at most one trigger.", "docstring_tokens": ["ConfigLoad", "loads", "a", "new", "Config", "object", "with", "the", "current", "node", "-", "local", "configuration", "values", "fetched", "from", "the", "database", ".", "An", "optional", "list", "of", "config", "value", "triggers", "can", "be", "passed", "each", "config", "key", "must", "have", "at", "most", "one", "trigger", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/node/config.go#L19-L32", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/node/config.go", "func_name": "Replace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Replace the current configuration with the given values.", "docstring_tokens": ["Replace", "the", "current", "configuration", "with", "the", "given", "values", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/node/config.go#L64-L66", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/node/config.go", "func_name": "Patch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Patch changes only the configuration keys in the given map.", "docstring_tokens": ["Patch", "changes", "only", "the", "configuration", "keys", "in", "the", "given", "map", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/node/config.go#L69-L76", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/node/config.go", "func_name": "HTTPSAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTPSAddress is a convenience for loading the node configuration and\n// returning the value of core.https_address.", "docstring_tokens": ["HTTPSAddress", "is", "a", "convenience", "for", "loading", "the", "node", "configuration", "and", "returning", "the", "value", "of", "core", ".", "https_address", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/node/config.go#L80-L92", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/certificates.go", "func_name": "CertificatesGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CertificatesGet returns all certificates from the DB as CertBaseInfo objects.", "docstring_tokens": ["CertificatesGet", "returns", "all", "certificates", "from", "the", "DB", "as", "CertBaseInfo", "objects", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/certificates.go#L18-L48", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/certificates.go", "func_name": "CertificateGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CertificateGet gets an CertBaseInfo object from the database.\n// The argument fingerprint will be queried with a LIKE query, means you can\n// pass a shortform and will get the full fingerprint.\n// There can never be more than one image with a given fingerprint, as it is\n// enforced by a UNIQUE constraint in the schema.", "docstring_tokens": ["CertificateGet", "gets", "an", "CertBaseInfo", "object", "from", "the", "database", ".", "The", "argument", "fingerprint", "will", "be", "queried", "with", "a", "LIKE", "query", "means", "you", "can", "pass", "a", "shortform", "and", "will", "get", "the", "full", "fingerprint", ".", "There", "can", "never", "be", "more", "than", "one", "image", "with", "a", "given", "fingerprint", "as", "it", "is", "enforced", "by", "a", "UNIQUE", "constraint", "in", "the", "schema", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/certificates.go#L55-L83", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/certificates.go", "func_name": "CertSave", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CertSave stores a CertBaseInfo object in the db,\n// it will ignore the ID field from the CertInfo.", "docstring_tokens": ["CertSave", "stores", "a", "CertBaseInfo", "object", "in", "the", "db", "it", "will", "ignore", "the", "ID", "field", "from", "the", "CertInfo", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/certificates.go#L87-L113", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/certificates.go", "func_name": "CertDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CertDelete deletes a certificate from the db.", "docstring_tokens": ["CertDelete", "deletes", "a", "certificate", "from", "the", "db", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/certificates.go#L116-L123", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/certificates.go", "func_name": "CertUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CertUpdate updates the certificate with the given fingerprint.", "docstring_tokens": ["CertUpdate", "updates", "the", "certificate", "with", "the", "given", "fingerprint", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/certificates.go#L126-L132", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/devlxd.go", "func_name": "createDevLxdlListener", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a new net.Listener bound to the unix socket of the devlxd endpoint.", "docstring_tokens": ["Create", "a", "new", "net", ".", "Listener", "bound", "to", "the", "unix", "socket", "of", "the", "devlxd", "endpoint", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/devlxd.go#L9-L40", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/raft.go", "func_name": "Servers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Servers returns the servers that are currently part of the cluster.\n//\n// If this raft instance is not the leader, an error is returned.", "docstring_tokens": ["Servers", "returns", "the", "servers", "that", "are", "currently", "part", "of", "the", "cluster", ".", "If", "this", "raft", "instance", "is", "not", "the", "leader", "an", "error", "is", "returned", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/raft.go#L239-L250", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/raft.go", "func_name": "Shutdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Shutdown raft and any raft-related resource we have instantiated.", "docstring_tokens": ["Shutdown", "raft", "and", "any", "raft", "-", "related", "resource", "we", "have", "instantiated", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/raft.go#L273-L299", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/raft.go", "func_name": "raftNetworkTransport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a network raft transport that will handle connections using a\n// rafthttp.Handler.", "docstring_tokens": ["Create", "a", "network", "raft", "transport", "that", "will", "handle", "connections", "using", "a", "rafthttp", ".", "Handler", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/raft.go#L326-L349", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/raft.go", "func_name": "raftConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a base raft configuration tweaked for a network with the given latency measure.", "docstring_tokens": ["Create", "a", "base", "raft", "configuration", "tweaked", "for", "a", "network", "with", "the", "given", "latency", "measure", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/raft.go#L378-L397", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/raft.go", "func_name": "raftMaybeBootstrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Helper to bootstrap the raft cluster if needed.", "docstring_tokens": ["Helper", "to", "bootstrap", "the", "raft", "cluster", "if", "needed", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/raft.go#L400-L421", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/resources.go", "func_name": "CPUResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CPUResource returns the system CPU information", "docstring_tokens": ["CPUResource", "returns", "the", "system", "CPU", "information"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/resources.go#L266-L307", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/resources.go", "func_name": "MemoryResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MemoryResource returns the system memory information", "docstring_tokens": ["MemoryResource", "returns", "the", "system", "memory", "information"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/resources.go#L310-L398", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_operations.go", "func_name": "GetOperationUUIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOperationUUIDs returns a list of operation uuids", "docstring_tokens": ["GetOperationUUIDs", "returns", "a", "list", "of", "operation", "uuids"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_operations.go#L14-L31", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_operations.go", "func_name": "GetOperations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOperations returns a list of Operation struct", "docstring_tokens": ["GetOperations", "returns", "a", "list", "of", "Operation", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_operations.go#L34-L52", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_operations.go", "func_name": "GetOperation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOperation returns an Operation entry for the provided uuid", "docstring_tokens": ["GetOperation", "returns", "an", "Operation", "entry", "for", "the", "provided", "uuid"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_operations.go#L55-L65", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_operations.go", "func_name": "GetOperationWebsocket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOperationWebsocket returns a websocket connection for the provided operation", "docstring_tokens": ["GetOperationWebsocket", "returns", "a", "websocket", "connection", "for", "the", "provided", "operation"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_operations.go#L81-L88", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_utils.go", "func_name": "tryMount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Useful functions for unreliable backends", "docstring_tokens": ["Useful", "functions", "for", "unreliable", "backends"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_utils.go#L83-L100", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_utils.go", "func_name": "lxdUsesPool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Detect whether LXD already uses the given storage pool.", "docstring_tokens": ["Detect", "whether", "LXD", "already", "uses", "the", "given", "storage", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_utils.go#L172-L194", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/projects.mapper.go", "func_name": "ProjectURIs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectURIs returns all available project URIs.", "docstring_tokens": ["ProjectURIs", "returns", "all", "available", "project", "URIs", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/projects.mapper.go#L86-L111", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/projects.mapper.go", "func_name": "ProjectList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectList returns all available projects.", "docstring_tokens": ["ProjectList", "returns", "all", "available", "projects", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/projects.mapper.go#L114-L182", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/projects.mapper.go", "func_name": "ProjectGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectGet returns the project with the given key.", "docstring_tokens": ["ProjectGet", "returns", "the", "project", "with", "the", "given", "key", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/projects.mapper.go#L185-L202", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/projects.mapper.go", "func_name": "ProjectExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectExists checks if a project with the given key exists.", "docstring_tokens": ["ProjectExists", "checks", "if", "a", "project", "with", "the", "given", "key", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/projects.mapper.go#L270-L280", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/projects.mapper.go", "func_name": "ProjectCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectCreate adds a new project to the database.", "docstring_tokens": ["ProjectCreate", "adds", "a", "new", "project", "to", "the", "database", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/projects.mapper.go#L283-L323", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/projects.mapper.go", "func_name": "ProjectUsedByRef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectUsedByRef returns entities used by projects.", "docstring_tokens": ["ProjectUsedByRef", "returns", "entities", "used", "by", "projects", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/projects.mapper.go#L326-L384", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/projects.mapper.go", "func_name": "ProjectRename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectRename renames the project matching the given key parameters.", "docstring_tokens": ["ProjectRename", "renames", "the", "project", "matching", "the", "given", "key", "parameters", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/projects.mapper.go#L416-L431", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/projects.mapper.go", "func_name": "ProjectDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectDelete deletes the project matching the given key parameters.", "docstring_tokens": ["ProjectDelete", "deletes", "the", "project", "matching", "the", "given", "key", "parameters", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/projects.mapper.go#L434-L450", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/encryption.go", "func_name": "PasswordCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PasswordCheck validates the provided password against the encoded secret", "docstring_tokens": ["PasswordCheck", "validates", "the", "provided", "password", "against", "the", "encoded", "secret"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/encryption.go#L17-L40", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/encryption.go", "func_name": "LoadCert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadCert reads the LXD server certificate from the given var dir.\n//\n// If a cluster certificate is found it will be loaded instead.", "docstring_tokens": ["LoadCert", "reads", "the", "LXD", "server", "certificate", "from", "the", "given", "var", "dir", ".", "If", "a", "cluster", "certificate", "is", "found", "it", "will", "be", "loaded", "instead", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/encryption.go#L45-L55", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/encryption.go", "func_name": "WriteCert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteCert writes the given material to the appropriate certificate files in\n// the given LXD var directory.", "docstring_tokens": ["WriteCert", "writes", "the", "given", "material", "to", "the", "appropriate", "certificate", "files", "in", "the", "given", "LXD", "var", "directory", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/encryption.go#L59-L78", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/daemon.go", "func_name": "NewDaemon", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDaemon returns a new Daemon object with the given configuration.", "docstring_tokens": ["NewDaemon", "returns", "a", "new", "Daemon", "object", "with", "the", "given", "configuration", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/daemon.go#L124-L132", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/daemon.go", "func_name": "DefaultDaemon", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultDaemon returns a new, un-initialized Daemon object with default values.", "docstring_tokens": ["DefaultDaemon", "returns", "a", "new", "un", "-", "initialized", "Daemon", "object", "with", "default", "values", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/daemon.go#L143-L147", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/daemon.go", "func_name": "AllowProjectPermission", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllowProjectPermission is a wrapper to check access against the project, its features and RBAC permission", "docstring_tokens": ["AllowProjectPermission", "is", "a", "wrapper", "to", "check", "access", "against", "the", "project", "its", "features", "and", "RBAC", "permission"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/daemon.go#L172-L189", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/daemon.go", "func_name": "checkTrustedClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Convenience function around Authenticate", "docstring_tokens": ["Convenience", "function", "around", "Authenticate"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/daemon.go#L192-L203", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/daemon.go", "func_name": "Authenticate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Authenticate validates an incoming http Request\n// It will check over what protocol it came, what type of request it is and\n// will validate the TLS certificate or Macaroon.\n//\n// This does not perform authorization, only validates authentication", "docstring_tokens": ["Authenticate", "validates", "an", "incoming", "http", "Request", "It", "will", "check", "over", "what", "protocol", "it", "came", "what", "type", "of", "request", "it", "is", "and", "will", "validate", "the", "TLS", "certificate", "or", "Macaroon", ".", "This", "does", "not", "perform", "authorization", "only", "validates", "authentication"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/daemon.go#L210-L278", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/daemon.go", "func_name": "State", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// State creates a new State instance linked to our internal db and os.", "docstring_tokens": ["State", "creates", "a", "new", "State", "instance", "linked", "to", "our", "internal", "db", "and", "os", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/daemon.go#L317-L319", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/daemon.go", "func_name": "UnixSocket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnixSocket returns the full path to the unix.socket file that this daemon is\n// listening on. Used by tests.", "docstring_tokens": ["UnixSocket", "returns", "the", "full", "path", "to", "the", "unix", ".", "socket", "file", "that", "this", "daemon", "is", "listening", "on", ".", "Used", "by", "tests", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/daemon.go#L323-L330", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/daemon.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop stops the shared daemon.", "docstring_tokens": ["Stop", "stops", "the", "shared", "daemon", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/daemon.go#L997-L1081", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/daemon.go", "func_name": "setupExternalAuthentication", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Setup external authentication", "docstring_tokens": ["Setup", "external", "authentication"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/daemon.go#L1084-L1164", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/daemon.go", "func_name": "initializeDbObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a database connection and perform any updates needed.", "docstring_tokens": ["Create", "a", "database", "connection", "and", "perform", "any", "updates", "needed", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/daemon.go#L1255-L1314", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/http.go", "func_name": "WriteJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteJSON encodes the body as JSON and sends it back to the client", "docstring_tokens": ["WriteJSON", "encodes", "the", "body", "as", "JSON", "and", "sends", "it", "back", "to", "the", "client"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/http.go#L29-L46", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/http.go", "func_name": "EtagHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EtagHash hashes the provided data and returns the sha256", "docstring_tokens": ["EtagHash", "hashes", "the", "provided", "data", "and", "returns", "the", "sha256"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/http.go#L49-L57", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/http.go", "func_name": "EtagCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EtagCheck validates the hash of the current state with the hash\n// provided by the client", "docstring_tokens": ["EtagCheck", "validates", "the", "hash", "of", "the", "current", "state", "with", "the", "hash", "provided", "by", "the", "client"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/http.go#L61-L77", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/http.go", "func_name": "HTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTPClient returns an http.Client using the given certificate and proxy.", "docstring_tokens": ["HTTPClient", "returns", "an", "http", ".", "Client", "using", "the", "given", "certificate", "and", "proxy", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/http.go#L80-L121", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/http.go", "func_name": "IsRecursionRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsRecursionRequest checks whether the given HTTP request is marked with the\n// \"recursion\" flag in its form values.", "docstring_tokens": ["IsRecursionRequest", "checks", "whether", "the", "given", "HTTP", "request", "is", "marked", "with", "the", "recursion", "flag", "in", "its", "form", "values", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/http.go#L153-L162", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/http.go", "func_name": "GetListeners", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetListeners returns the socket-activated network listeners, if any.\n//\n// The 'start' parameter must be SystemdListenFDsStart, except in unit tests,\n// see the docstring of SystemdListenFDsStart below.", "docstring_tokens": ["GetListeners", "returns", "the", "socket", "-", "activated", "network", "listeners", "if", "any", ".", "The", "start", "parameter", "must", "be", "SystemdListenFDsStart", "except", "in", "unit", "tests", "see", "the", "docstring", "of", "SystemdListenFDsStart", "below", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/http.go#L229-L264", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api_internal.go", "func_name": "internalSQLGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Perform a database dump.", "docstring_tokens": ["Perform", "a", "database", "dump", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api_internal.go#L205-L238", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api_internal.go", "func_name": "internalSQLPost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Execute queries.", "docstring_tokens": ["Execute", "queries", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api_internal.go#L241-L304", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cert.go", "func_name": "PublicKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublicKey is a convenience to encode the underlying public key to ASCII.", "docstring_tokens": ["PublicKey", "is", "a", "convenience", "to", "encode", "the", "underlying", "public", "key", "to", "ASCII", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cert.go#L101-L104", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cert.go", "func_name": "PrivateKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrivateKey is a convenience to encode the underlying private key.", "docstring_tokens": ["PrivateKey", "is", "a", "convenience", "to", "encode", "the", "underlying", "private", "key", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cert.go#L107-L125", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cert.go", "func_name": "Fingerprint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fingerprint returns the fingerprint of the public key.", "docstring_tokens": ["Fingerprint", "returns", "the", "fingerprint", "of", "the", "public", "key", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cert.go#L128-L136", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cert.go", "func_name": "GenCert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenCert will create and populate a certificate file and a key file", "docstring_tokens": ["GenCert", "will", "create", "and", "populate", "a", "certificate", "file", "and", "a", "key", "file"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cert.go#L229-L261", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd-benchmark/benchmark/benchmark.go", "func_name": "PrintServerInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintServerInfo prints out information about the server.", "docstring_tokens": ["PrintServerInfo", "prints", "out", "information", "about", "the", "server", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd-benchmark/benchmark/benchmark.go#L18-L36", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd-benchmark/benchmark/benchmark.go", "func_name": "LaunchContainers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LaunchContainers launches a set of containers.", "docstring_tokens": ["LaunchContainers", "launches", "a", "set", "of", "containers", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd-benchmark/benchmark/benchmark.go#L39-L84", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd-benchmark/benchmark/benchmark.go", "func_name": "CreateContainers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateContainers create the specified number of containers.", "docstring_tokens": ["CreateContainers", "create", "the", "specified", "number", "of", "containers", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd-benchmark/benchmark/benchmark.go#L87-L110", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd-benchmark/benchmark/benchmark.go", "func_name": "GetContainers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContainers returns containers created by the benchmark.", "docstring_tokens": ["GetContainers", "returns", "containers", "created", "by", "the", "benchmark", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd-benchmark/benchmark/benchmark.go#L113-L128", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd-benchmark/benchmark/benchmark.go", "func_name": "StartContainers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartContainers starts containers created by the benchmark.", "docstring_tokens": ["StartContainers", "starts", "containers", "created", "by", "the", "benchmark", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd-benchmark/benchmark/benchmark.go#L131-L157", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/util.go", "func_name": "setQueryParam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set the value of a query parameter in the given URI.", "docstring_tokens": ["Set", "the", "value", "of", "a", "query", "parameter", "in", "the", "given", "URI", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/util.go#L176-L188", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "GetImages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Image handling functions\n// GetImages returns a list of available images as Image structs", "docstring_tokens": ["Image", "handling", "functions", "GetImages", "returns", "a", "list", "of", "available", "images", "as", "Image", "structs"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L24-L33", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "GetImageFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetImageFile downloads an image from the server, returning an ImageFileRequest struct", "docstring_tokens": ["GetImageFile", "downloads", "an", "image", "from", "the", "server", "returning", "an", "ImageFileRequest", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L61-L63", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "GetImageSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetImageSecret is a helper around CreateImageSecret that returns a secret for the image", "docstring_tokens": ["GetImageSecret", "is", "a", "helper", "around", "CreateImageSecret", "that", "returns", "a", "secret", "for", "the", "image"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L66-L74", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "GetPrivateImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrivateImage is similar to GetImage but allows passing a secret download token", "docstring_tokens": ["GetPrivateImage", "is", "similar", "to", "GetImage", "but", "allows", "passing", "a", "secret", "download", "token"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L77-L102", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "GetPrivateImageFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrivateImageFile is similar to GetImageFile but allows passing a secret download token", "docstring_tokens": ["GetPrivateImageFile", "is", "similar", "to", "GetImageFile", "but", "allows", "passing", "a", "secret", "download", "token"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L105-L143", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "GetImageAliases", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetImageAliases returns the list of available aliases as ImageAliasesEntry structs", "docstring_tokens": ["GetImageAliases", "returns", "the", "list", "of", "available", "aliases", "as", "ImageAliasesEntry", "structs"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L276-L286", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "tryCopyImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tryCopyImage iterates through the source server URLs until one lets it download the image", "docstring_tokens": ["tryCopyImage", "iterates", "through", "the", "source", "server", "URLs", "until", "one", "lets", "it", "download", "the", "image"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L483-L562", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "CopyImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyImage copies an image from a remote server. Additional options can be passed using ImageCopyArgs", "docstring_tokens": ["CopyImage", "copies", "an", "image", "from", "a", "remote", "server", ".", "Additional", "options", "can", "be", "passed", "using", "ImageCopyArgs"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L565-L615", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "UpdateImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateImage updates the image definition", "docstring_tokens": ["UpdateImage", "updates", "the", "image", "definition"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L618-L626", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "DeleteImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteImage requests that LXD removes an image from the store", "docstring_tokens": ["DeleteImage", "requests", "that", "LXD", "removes", "an", "image", "from", "the", "store"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L629-L637", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "RefreshImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RefreshImage requests that LXD issues an image refresh", "docstring_tokens": ["RefreshImage", "requests", "that", "LXD", "issues", "an", "image", "refresh"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L640-L652", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "CreateImageAlias", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateImageAlias sets up a new image alias", "docstring_tokens": ["CreateImageAlias", "sets", "up", "a", "new", "image", "alias"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L666-L674", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "UpdateImageAlias", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateImageAlias updates the image alias definition", "docstring_tokens": ["UpdateImageAlias", "updates", "the", "image", "alias", "definition"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L677-L685", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "RenameImageAlias", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenameImageAlias renames an existing image alias", "docstring_tokens": ["RenameImageAlias", "renames", "an", "existing", "image", "alias"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L688-L696", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_images.go", "func_name": "DeleteImageAlias", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteImageAlias removes an alias from the LXD image store", "docstring_tokens": ["DeleteImageAlias", "removes", "an", "alias", "from", "the", "LXD", "image", "store"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_images.go#L699-L707", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node/open.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open the node-local database object.", "docstring_tokens": ["Open", "the", "node", "-", "local", "database", "object", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node/open.go#L14-L22", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node/open.go", "func_name": "EnsureSchema", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnsureSchema applies all relevant schema updates to the node-local\n// database.\n//\n// Return the initial schema version found before starting the update, along\n// with any error occurred.", "docstring_tokens": ["EnsureSchema", "applies", "all", "relevant", "schema", "updates", "to", "the", "node", "-", "local", "database", ".", "Return", "the", "initial", "schema", "version", "found", "before", "starting", "the", "update", "along", "with", "any", "error", "occurred", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node/open.go#L29-L63", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/fs.go", "func_name": "FilesystemDetect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FilesystemDetect returns the filesystem on which the passed-in path sits.", "docstring_tokens": ["FilesystemDetect", "returns", "the", "filesystem", "on", "which", "the", "passed", "-", "in", "path", "sits", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/fs.go#L19-L44", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node/update.go", "func_name": "Schema", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Schema for the local database.", "docstring_tokens": ["Schema", "for", "the", "local", "database", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node/update.go#L19-L23", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node/update.go", "func_name": "updateFromV37", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Schema updates begin here\n// Copy core.https_address to cluster.https_address in case this node is\n// clustered.", "docstring_tokens": ["Schema", "updates", "begin", "here", "Copy", "core", ".", "https_address", "to", "cluster", ".", "https_address", "in", "case", "this", "node", "is", "clustered", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node/update.go#L106-L127", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/osarch/architectures_linux.go", "func_name": "ArchitectureGetLocal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArchitectureGetLocal returns the local hardware architecture", "docstring_tokens": ["ArchitectureGetLocal", "returns", "the", "local", "hardware", "architecture"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/osarch/architectures_linux.go#L10-L17", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/maas/controller.go", "func_name": "NewController", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewController returns a new Controller using the specific MAAS server and machine", "docstring_tokens": ["NewController", "returns", "a", "new", "Controller", "using", "the", "specific", "MAAS", "server", "and", "machine"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/maas/controller.go#L62-L103", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/maas/controller.go", "func_name": "CreateContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateContainer defines a new MAAS device for the controller", "docstring_tokens": ["CreateContainer", "defines", "a", "new", "MAAS", "device", "for", "the", "controller"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/maas/controller.go#L137-L212", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/maas/controller.go", "func_name": "DefinedContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefinedContainer returns true if the container is defined in MAAS", "docstring_tokens": ["DefinedContainer", "returns", "true", "if", "the", "container", "is", "defined", "in", "MAAS"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/maas/controller.go#L215-L226", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/maas/controller.go", "func_name": "UpdateContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateContainer updates the MAAS device's interfaces with the new provided state", "docstring_tokens": ["UpdateContainer", "updates", "the", "MAAS", "device", "s", "interfaces", "with", "the", "new", "provided", "state"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/maas/controller.go#L229-L345", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/maas/controller.go", "func_name": "RenameContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenameContainer renames the MAAS device for the container without releasing any allocation", "docstring_tokens": ["RenameContainer", "renames", "the", "MAAS", "device", "for", "the", "container", "without", "releasing", "any", "allocation"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/maas/controller.go#L348-L369", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/maas/controller.go", "func_name": "DeleteContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteContainer removes the MAAS device for the container", "docstring_tokens": ["DeleteContainer", "removes", "the", "MAAS", "device", "for", "the", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/maas/controller.go#L372-L384", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/schema/schema.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add a new update to the schema. It will be appended at the end of the\n// existing series.", "docstring_tokens": ["Add", "a", "new", "update", "to", "the", "schema", ".", "It", "will", "be", "appended", "at", "the", "end", "of", "the", "existing", "series", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/schema/schema.go#L88-L90", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/schema/schema.go", "func_name": "ensureSchemaTableExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ensure that the schema exists.", "docstring_tokens": ["Ensure", "that", "the", "schema", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/schema/schema.go#L276-L288", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/schema/schema.go", "func_name": "queryCurrentVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the highest update version currently applied. Zero means that no\n// updates have been applied yet.", "docstring_tokens": ["Return", "the", "highest", "update", "version", "currently", "applied", ".", "Zero", "means", "that", "no", "updates", "have", "been", "applied", "yet", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/schema/schema.go#L292-L338", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/schema/schema.go", "func_name": "ensureUpdatesAreApplied", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Apply any pending update that was not yet applied.", "docstring_tokens": ["Apply", "any", "pending", "update", "that", "was", "not", "yet", "applied", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/schema/schema.go#L341-L375", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/schema/schema.go", "func_name": "checkSchemaVersionsHaveNoHoles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check that the given list of update version numbers doesn't have \"holes\",\n// that is each version equal the preceding version plus 1.", "docstring_tokens": ["Check", "that", "the", "given", "list", "of", "update", "version", "numbers", "doesn", "t", "have", "holes", "that", "is", "each", "version", "equal", "the", "preceding", "version", "plus", "1", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/schema/schema.go#L379-L388", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/schema/schema.go", "func_name": "checkAllUpdatesAreApplied", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check that all the given updates are applied.", "docstring_tokens": ["Check", "that", "all", "the", "given", "updates", "are", "applied", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/schema/schema.go#L391-L411", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/schema/schema.go", "func_name": "formatSQL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Format the given SQL statement in a human-readable way.\n//\n// In particular make sure that each column definition in a CREATE TABLE clause\n// is in its own row, since SQLite dumps occasionally stuff more than one\n// column in the same line.", "docstring_tokens": ["Format", "the", "given", "SQL", "statement", "in", "a", "human", "-", "readable", "way", ".", "In", "particular", "make", "sure", "that", "each", "column", "definition", "in", "a", "CREATE", "TABLE", "clause", "is", "in", "its", "own", "row", "since", "SQLite", "dumps", "occasionally", "stuff", "more", "than", "one", "column", "in", "the", "same", "line", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/schema/schema.go#L418-L428", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/util_linux.go", "func_name": "GetAllXattr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAllXattr retrieves all extended attributes associated with a file,\n// directory or symbolic link.", "docstring_tokens": ["GetAllXattr", "retrieves", "all", "extended", "attributes", "associated", "with", "a", "file", "directory", "or", "symbolic", "link", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/util_linux.go#L150-L220", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/util_linux.go", "func_name": "GetErrno", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Detect whether err is an errno.", "docstring_tokens": ["Detect", "whether", "err", "is", "an", "errno", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/util_linux.go#L265-L282", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/util_linux.go", "func_name": "Uname", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uname returns Utsname as strings", "docstring_tokens": ["Uname", "returns", "Utsname", "as", "strings"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/util_linux.go#L295-L318", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/cluster/stmt.go", "func_name": "RegisterStmt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterStmt register a SQL statement.\n//\n// Registered statements will be prepared upfront and re-used, to speed up\n// execution.\n//\n// Return a unique registration code.", "docstring_tokens": ["RegisterStmt", "register", "a", "SQL", "statement", ".", "Registered", "statements", "will", "be", "prepared", "upfront", "and", "re", "-", "used", "to", "speed", "up", "execution", ".", "Return", "a", "unique", "registration", "code", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/cluster/stmt.go#L15-L19", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/cluster/stmt.go", "func_name": "PrepareStmts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrepareStmts prepares all registered statements and returns an index from\n// statement code to prepared statement object.", "docstring_tokens": ["PrepareStmts", "prepares", "all", "registered", "statements", "and", "returns", "an", "index", "from", "statement", "code", "to", "prepared", "statement", "object", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/cluster/stmt.go#L23-L35", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/gateway.go", "func_name": "NewGateway", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGateway creates a new Gateway for managing access to the dqlite cluster.\n//\n// When a new gateway is created, the node-level database is queried to check\n// what kind of role this node plays and if it's exposed over the network. It\n// will initialize internal data structures accordingly, for example starting a\n// dqlite driver if this node is a database node.\n//\n// After creation, the Daemon is expected to expose whatever http handlers the\n// HandlerFuncs method returns and to access the dqlite cluster using the gRPC\n// dialer returned by the Dialer method.", "docstring_tokens": ["NewGateway", "creates", "a", "new", "Gateway", "for", "managing", "access", "to", "the", "dqlite", "cluster", ".", "When", "a", "new", "gateway", "is", "created", "the", "node", "-", "level", "database", "is", "queried", "to", "check", "what", "kind", "of", "role", "this", "node", "plays", "and", "if", "it", "s", "exposed", "over", "the", "network", ".", "It", "will", "initialize", "internal", "data", "structures", "accordingly", "for", "example", "starting", "a", "dqlite", "driver", "if", "this", "node", "is", "a", "database", "node", ".", "After", "creation", "the", "Daemon", "is", "expected", "to", "expose", "whatever", "http", "handlers", "the", "HandlerFuncs", "method", "returns", "and", "to", "access", "the", "dqlite", "cluster", "using", "the", "gRPC", "dialer", "returned", "by", "the", "Dialer", "method", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/gateway.go#L37-L63", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/gateway.go", "func_name": "DialFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DialFunc returns a dial function that can be used to connect to one of the\n// dqlite nodes.", "docstring_tokens": ["DialFunc", "returns", "a", "dial", "function", "that", "can", "be", "used", "to", "connect", "to", "one", "of", "the", "dqlite", "nodes", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/gateway.go#L265-L274", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/gateway.go", "func_name": "Shutdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Shutdown this gateway, stopping the gRPC server and possibly the raft factory.", "docstring_tokens": ["Shutdown", "this", "gateway", "stopping", "the", "gRPC", "server", "and", "possibly", "the", "raft", "factory", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/gateway.go#L301-L321", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/gateway.go", "func_name": "Sync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sync dumps the content of the database to disk. This is useful for\n// inspection purposes, and it's also needed by the activateifneeded command so\n// it can inspect the database in order to decide whether to activate the\n// daemon or not.", "docstring_tokens": ["Sync", "dumps", "the", "content", "of", "the", "database", "to", "disk", ".", "This", "is", "useful", "for", "inspection", "purposes", "and", "it", "s", "also", "needed", "by", "the", "activateifneeded", "command", "so", "it", "can", "inspect", "the", "database", "in", "order", "to", "decide", "whether", "to", "activate", "the", "daemon", "or", "not", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/gateway.go#L327-L338", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/gateway.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset the gateway, shutting it down and starting against from scratch using\n// the given certificate.\n//\n// This is used when disabling clustering on a node.", "docstring_tokens": ["Reset", "the", "gateway", "shutting", "it", "down", "and", "starting", "against", "from", "scratch", "using", "the", "given", "certificate", ".", "This", "is", "used", "when", "disabling", "clustering", "on", "a", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/gateway.go#L344-L361", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/gateway.go", "func_name": "LeaderAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LeaderAddress returns the address of the current raft leader.", "docstring_tokens": ["LeaderAddress", "returns", "the", "address", "of", "the", "current", "raft", "leader", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/gateway.go#L364-L447", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/gateway.go", "func_name": "waitLeadership", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wait for the raft node to become leader. Should only be used by Bootstrap,\n// since we know that we'll self elect.", "docstring_tokens": ["Wait", "for", "the", "raft", "node", "to", "become", "leader", ".", "Should", "only", "be", "used", "by", "Bootstrap", "since", "we", "know", "that", "we", "ll", "self", "elect", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/gateway.go#L501-L511", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/gateway.go", "func_name": "currentRaftNodes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return information about the LXD nodes that a currently part of the raft\n// cluster, as configured in the raft log. It returns an error if this node is\n// not the leader.", "docstring_tokens": ["Return", "information", "about", "the", "LXD", "nodes", "that", "a", "currently", "part", "of", "the", "raft", "cluster", "as", "configured", "in", "the", "raft", "log", ".", "It", "returns", "an", "error", "if", "this", "node", "is", "not", "the", "leader", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/gateway.go#L516-L545", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/gateway.go", "func_name": "cachedRaftNodes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the addresses of the raft nodes as stored in the node-level\n// database.\n//\n// These values might leg behind the actual values, and are refreshed\n// periodically during heartbeats.", "docstring_tokens": ["Return", "the", "addresses", "of", "the", "raft", "nodes", "as", "stored", "in", "the", "node", "-", "level", "database", ".", "These", "values", "might", "leg", "behind", "the", "actual", "values", "and", "are", "refreshed", "periodically", "during", "heartbeats", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/gateway.go#L552-L563", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/gateway.go", "func_name": "dqliteMemoryDial", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a dial function that connects to the given listener.", "docstring_tokens": ["Create", "a", "dial", "function", "that", "connects", "to", "the", "given", "listener", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/gateway.go#L640-L644", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/gateway.go", "func_name": "DqliteLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DqliteLog redirects dqlite's logs to our own logger", "docstring_tokens": ["DqliteLog", "redirects", "dqlite", "s", "logs", "to", "our", "own", "logger"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/gateway.go#L651-L663", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/api/response.go", "func_name": "MetadataAsMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MetadataAsMap parses the Response metadata into a map", "docstring_tokens": ["MetadataAsMap", "parses", "the", "Response", "metadata", "into", "a", "map"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/api/response.go#L45-L53", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/api/response.go", "func_name": "MetadataAsOperation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MetadataAsOperation turns the Response metadata into an Operation", "docstring_tokens": ["MetadataAsOperation", "turns", "the", "Response", "metadata", "into", "an", "Operation"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/api/response.go#L56-L64", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/api/response.go", "func_name": "MetadataAsStringSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MetadataAsStringSlice parses the Response metadata into a slice of string", "docstring_tokens": ["MetadataAsStringSlice", "parses", "the", "Response", "metadata", "into", "a", "slice", "of", "string"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/api/response.go#L67-L75", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/api/response.go", "func_name": "MetadataAsStruct", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MetadataAsStruct parses the Response metadata into a provided struct", "docstring_tokens": ["MetadataAsStruct", "parses", "the", "Response", "metadata", "into", "a", "provided", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/api/response.go#L78-L80", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd-benchmark/benchmark/report.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load reads current content of the filename and loads records.", "docstring_tokens": ["Load", "reads", "current", "content", "of", "the", "filename", "and", "loads", "records", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd-benchmark/benchmark/report.go#L30-L53", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd-benchmark/benchmark/report.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes current records to file.", "docstring_tokens": ["Write", "writes", "current", "records", "to", "file", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd-benchmark/benchmark/report.go#L56-L71", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd-benchmark/benchmark/report.go", "func_name": "AddRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddRecord adds a record to the report.", "docstring_tokens": ["AddRecord", "adds", "a", "record", "to", "the", "report", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd-benchmark/benchmark/report.go#L74-L87", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/config/file.go", "func_name": "LoadConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadConfig reads the configuration from the config path; if the path does\n// not exist, it returns a default configuration.", "docstring_tokens": ["LoadConfig", "reads", "the", "configuration", "from", "the", "config", "path", ";", "if", "the", "path", "does", "not", "exist", "it", "returns", "a", "default", "configuration", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/config/file.go#L16-L60", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/config/file.go", "func_name": "SaveConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveConfig writes the provided configuration to the config file.", "docstring_tokens": ["SaveConfig", "writes", "the", "provided", "configuration", "to", "the", "config", "file", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/config/file.go#L63-L99", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/template/chroot.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get reads the path's content from your local filesystem.", "docstring_tokens": ["Get", "reads", "the", "path", "s", "content", "from", "your", "local", "filesystem", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/template/chroot.go#L27-L51", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/config/config.go", "func_name": "ConfigPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConfigPath returns a joined path of the configuration directory and passed arguments", "docstring_tokens": ["ConfigPath", "returns", "a", "joined", "path", "of", "the", "configuration", "directory", "and", "passed", "arguments"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/config/config.go#L40-L45", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/config/config.go", "func_name": "ServerCertPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServerCertPath returns the path for the remote's server certificate", "docstring_tokens": ["ServerCertPath", "returns", "the", "path", "for", "the", "remote", "s", "server", "certificate"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/config/config.go#L53-L55", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/config/config.go", "func_name": "NewConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConfig returns a Config, optionally using default remotes.", "docstring_tokens": ["NewConfig", "returns", "a", "Config", "optionally", "using", "default", "remotes", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/config/config.go#L65-L73", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/migrate_container.go", "func_name": "checkForPreDumpSupport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check if CRIU supports pre-dumping and number of\n// pre-dump iterations", "docstring_tokens": ["Check", "if", "CRIU", "supports", "pre", "-", "dumping", "and", "number", "of", "pre", "-", "dump", "iterations"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/migrate_container.go#L123-L177", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/migrate_container.go", "func_name": "preDumpLoop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// The function preDumpLoop is the main logic behind the pre-copy migration.\n// This function contains the actual pre-dump, the corresponding rsync\n// transfer and it tells the outer loop to abort if the threshold\n// of memory pages transferred by pre-dumping has been reached.", "docstring_tokens": ["The", "function", "preDumpLoop", "is", "the", "main", "logic", "behind", "the", "pre", "-", "copy", "migration", ".", "This", "function", "contains", "the", "actual", "pre", "-", "dump", "the", "corresponding", "rsync", "transfer", "and", "it", "tells", "the", "outer", "loop", "to", "abort", "if", "the", "threshold", "of", "memory", "pages", "transferred", "by", "pre", "-", "dumping", "has", "been", "reached", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/migrate_container.go#L230-L315", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/root.go", "func_name": "newRoot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a new root command.", "docstring_tokens": ["Return", "a", "new", "root", "command", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/root.go#L10-L23", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/version/api.go", "func_name": "APIExtensionsCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// APIExtensionsCount returns the number of available API extensions.", "docstring_tokens": ["APIExtensionsCount", "returns", "the", "number", "of", "available", "API", "extensions", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/version/api.go#L157-L173", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/slices.go", "func_name": "SelectURIs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SelectURIs returns a list of LXD API URI strings for the resource yielded by\n// the given query.\n//\n// The f argument must be a function that formats the entity URI using the\n// columns yielded by the query.", "docstring_tokens": ["SelectURIs", "returns", "a", "list", "of", "LXD", "API", "URI", "strings", "for", "the", "resource", "yielded", "by", "the", "given", "query", ".", "The", "f", "argument", "must", "be", "a", "function", "that", "formats", "the", "entity", "URI", "using", "the", "columns", "yielded", "by", "the", "query", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/slices.go#L16-L54", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/slices.go", "func_name": "SelectStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SelectStrings executes a statement which must yield rows with a single string\n// column. It returns the list of column values.", "docstring_tokens": ["SelectStrings", "executes", "a", "statement", "which", "must", "yield", "rows", "with", "a", "single", "string", "column", ".", "It", "returns", "the", "list", "of", "column", "values", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/slices.go#L58-L76", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/slices.go", "func_name": "scanSingleColumn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Execute the given query and ensure that it yields rows with a single column\n// of the given database type. For every row yielded, execute the given\n// scanner.", "docstring_tokens": ["Execute", "the", "given", "query", "and", "ensure", "that", "it", "yields", "rows", "with", "a", "single", "column", "of", "the", "given", "database", "type", ".", "For", "every", "row", "yielded", "execute", "the", "given", "scanner", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/slices.go#L126-L145", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/log15/handler.go", "func_name": "LazyHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LazyHandler writes all values to the wrapped handler after evaluating\n// any lazy functions in the record's context. It is already wrapped\n// around StreamHandler and SyslogHandler in this library, you'll only need\n// it if you write your own Handler.", "docstring_tokens": ["LazyHandler", "writes", "all", "values", "to", "the", "wrapped", "handler", "after", "evaluating", "any", "lazy", "functions", "in", "the", "record", "s", "context", ".", "It", "is", "already", "wrapped", "around", "StreamHandler", "and", "SyslogHandler", "in", "this", "library", "you", "ll", "only", "need", "it", "if", "you", "write", "your", "own", "Handler", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/log15/handler.go#L274-L302", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/log15/stack/stack.go", "func_name": "Callers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Callers returns a Trace for the current goroutine with element 0\n// identifying the calling function.", "docstring_tokens": ["Callers", "returns", "a", "Trace", "for", "the", "current", "goroutine", "with", "element", "0", "identifying", "the", "calling", "function", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/log15/stack/stack.go#L117-L127", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/log15/stack/stack.go", "func_name": "name", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// name returns the import path qualified name of the function containing the\n// call.", "docstring_tokens": ["name", "returns", "the", "import", "path", "qualified", "name", "of", "the", "function", "containing", "the", "call", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/log15/stack/stack.go#L131-L138", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/log15/stack/stack.go", "func_name": "TrimBelow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TrimBelow returns a slice of the Trace with all entries below pc removed.", "docstring_tokens": ["TrimBelow", "returns", "a", "slice", "of", "the", "Trace", "with", "all", "entries", "below", "pc", "removed", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/log15/stack/stack.go#L168-L173", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/log15/stack/stack.go", "func_name": "TrimAbove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TrimAbove returns a slice of the Trace with all entries above pc removed.", "docstring_tokens": ["TrimAbove", "returns", "a", "slice", "of", "the", "Trace", "with", "all", "entries", "above", "pc", "removed", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/log15/stack/stack.go#L176-L181", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/log15/stack/stack.go", "func_name": "TrimBelowName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TrimBelowName returns a slice of the Trace with all entries below the\n// lowest with function name name removed.", "docstring_tokens": ["TrimBelowName", "returns", "a", "slice", "of", "the", "Trace", "with", "all", "entries", "below", "the", "lowest", "with", "function", "name", "name", "removed", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/log15/stack/stack.go#L185-L190", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/log15/stack/stack.go", "func_name": "TrimAboveName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TrimAboveName returns a slice of the Trace with all entries above the\n// highest with function name name removed.", "docstring_tokens": ["TrimAboveName", "returns", "a", "slice", "of", "the", "Trace", "with", "all", "entries", "above", "the", "highest", "with", "function", "name", "name", "removed", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/log15/stack/stack.go#L194-L199", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/log15/stack/stack.go", "func_name": "TrimRuntime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TrimRuntime returns a slice of the Trace with the topmost entries from the\n// go runtime removed. It considers any calls originating from files under\n// GOROOT as part of the runtime.", "docstring_tokens": ["TrimRuntime", "returns", "a", "slice", "of", "the", "Trace", "with", "the", "topmost", "entries", "from", "the", "go", "runtime", "removed", ".", "It", "considers", "any", "calls", "originating", "from", "files", "under", "GOROOT", "as", "part", "of", "the", "runtime", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/log15/stack/stack.go#L220-L225", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/idmap/shift_linux.go", "func_name": "GetCaps", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCaps extracts the list of capabilities effective on the file", "docstring_tokens": ["GetCaps", "extracts", "the", "list", "of", "capabilities", "effective", "on", "the", "file"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/idmap/shift_linux.go#L171-L183", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/idmap/shift_linux.go", "func_name": "SetCaps", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetCaps applies the caps for a particular root uid", "docstring_tokens": ["SetCaps", "applies", "the", "caps", "for", "a", "particular", "root", "uid"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/idmap/shift_linux.go#L186-L199", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/ioprogress/reader.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read in ProgressReader is the same as io.Read", "docstring_tokens": ["Read", "in", "ProgressReader", "is", "the", "same", "as", "io", ".", "Read"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/ioprogress/reader.go#L14-L25", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage/quota/projectquota.go", "func_name": "Supported", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Supported check if the given path supports project quotas", "docstring_tokens": ["Supported", "check", "if", "the", "given", "path", "supports", "project", "quotas"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage/quota/projectquota.go#L193-L205", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage/quota/projectquota.go", "func_name": "GetProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProject returns the project quota ID for the given path", "docstring_tokens": ["GetProject", "returns", "the", "project", "quota", "ID", "for", "the", "given", "path"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage/quota/projectquota.go#L208-L219", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage/quota/projectquota.go", "func_name": "SetProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetProject sets the project quota ID for the given path", "docstring_tokens": ["SetProject", "sets", "the", "project", "quota", "ID", "for", "the", "given", "path"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage/quota/projectquota.go#L222-L232", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage/quota/projectquota.go", "func_name": "DeleteProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteProject unsets the project id from the path and clears the quota for the project id", "docstring_tokens": ["DeleteProject", "unsets", "the", "project", "id", "from", "the", "path", "and", "clears", "the", "quota", "for", "the", "project", "id"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage/quota/projectquota.go#L235-L249", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage/quota/projectquota.go", "func_name": "GetProjectUsage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProjectUsage returns the current consumption", "docstring_tokens": ["GetProjectUsage", "returns", "the", "current", "consumption"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage/quota/projectquota.go#L252-L269", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage/quota/projectquota.go", "func_name": "SetProjectQuota", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetProjectQuota sets the quota on the project id", "docstring_tokens": ["SetProjectQuota", "sets", "the", "quota", "on", "the", "project", "id"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage/quota/projectquota.go#L272-L288", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/backup.go", "func_name": "backupLoadByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load a backup from the database", "docstring_tokens": ["Load", "a", "backup", "from", "the", "database"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/backup.go#L28-L52", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/backup.go", "func_name": "backupCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a new backup", "docstring_tokens": ["Create", "a", "new", "backup"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/backup.go#L55-L80", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/backup.go", "func_name": "Rename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rename renames a container backup", "docstring_tokens": ["Rename", "renames", "a", "container", "backup"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/backup.go#L107-L142", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/backup.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete removes a container backup", "docstring_tokens": ["Delete", "removes", "a", "container", "backup"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/backup.go#L145-L147", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/backup.go", "func_name": "backupFixStoragePool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fixBackupStoragePool changes the pool information in the backup.yaml. This\n// is done only if the provided pool doesn't exist. In this case, the pool of\n// the default profile will be used.", "docstring_tokens": ["fixBackupStoragePool", "changes", "the", "pool", "information", "in", "the", "backup", ".", "yaml", ".", "This", "is", "done", "only", "if", "the", "provided", "pool", "doesn", "t", "exist", ".", "In", "this", "case", "the", "pool", "of", "the", "default", "profile", "will", "be", "used", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/backup.go#L232-L321", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/count.go", "func_name": "Count", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Count returns the number of rows in the given table.", "docstring_tokens": ["Count", "returns", "the", "number", "of", "rows", "in", "the", "given", "table", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/count.go#L11-L40", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/count.go", "func_name": "CountAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CountAll returns a map associating each table name in the database\n// with the total count of its rows.", "docstring_tokens": ["CountAll", "returns", "a", "map", "associating", "each", "table", "name", "in", "the", "database", "with", "the", "total", "count", "of", "its", "rows", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/count.go#L44-L60", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/network.go", "func_name": "InitTLSConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitTLSConfig returns a tls.Config populated with default encryption\n// parameters. This is used as baseline config for both client and server\n// certificates used by LXD.", "docstring_tokens": ["InitTLSConfig", "returns", "a", "tls", ".", "Config", "populated", "with", "default", "encryption", "parameters", ".", "This", "is", "used", "as", "baseline", "config", "for", "both", "client", "and", "server", "certificates", "used", "by", "LXD", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/network.go#L49-L64", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_lvm_utils.go", "func_name": "copyContainerThinpool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy a container on a storage pool that does use a thinpool.", "docstring_tokens": ["Copy", "a", "container", "on", "a", "storage", "pool", "that", "does", "use", "a", "thinpool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_lvm_utils.go#L302-L338", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_lvm_utils.go", "func_name": "copyContainerLv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy a container on a storage pool that does not use a thinpool.", "docstring_tokens": ["Copy", "a", "container", "on", "a", "storage", "pool", "that", "does", "not", "use", "a", "thinpool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_lvm_utils.go#L369-L441", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_lvm_utils.go", "func_name": "copyContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy an lvm container.", "docstring_tokens": ["Copy", "an", "lvm", "container", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_lvm_utils.go#L444-L480", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_lvm_utils.go", "func_name": "copyVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy an LVM custom volume.", "docstring_tokens": ["Copy", "an", "LVM", "custom", "volume", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_lvm_utils.go#L950-L968", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/simplestreams_images.go", "func_name": "GetPrivateImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrivateImage isn't relevant for the simplestreams protocol", "docstring_tokens": ["GetPrivateImage", "isn", "t", "relevant", "for", "the", "simplestreams", "protocol"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/simplestreams_images.go#L199-L201", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/simplestreams_images.go", "func_name": "GetPrivateImageFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrivateImageFile isn't relevant for the simplestreams protocol", "docstring_tokens": ["GetPrivateImageFile", "isn", "t", "relevant", "for", "the", "simplestreams", "protocol"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/simplestreams_images.go#L204-L206", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/simplestreams_images.go", "func_name": "GetImageAliasNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetImageAliasNames returns the list of available alias names", "docstring_tokens": ["GetImageAliasNames", "returns", "the", "list", "of", "available", "alias", "names"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/simplestreams_images.go#L214-L228", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/migration/wsproto.go", "func_name": "ProtoRecv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProtoRecv gets a protobuf message from a websocket", "docstring_tokens": ["ProtoRecv", "gets", "a", "protobuf", "message", "from", "a", "websocket"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/migration/wsproto.go#L14-L35", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/migration/wsproto.go", "func_name": "ProtoSend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProtoSend sends a protobuf message over a websocket", "docstring_tokens": ["ProtoSend", "sends", "a", "protobuf", "message", "over", "a", "websocket"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/migration/wsproto.go#L38-L56", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/migration/wsproto.go", "func_name": "ProtoSendControl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProtoSendControl sends a migration control message over a websocket", "docstring_tokens": ["ProtoSendControl", "sends", "a", "migration", "control", "message", "over", "a", "websocket"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/migration/wsproto.go#L59-L71", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/console.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// The pty has been switched to raw mode so we will only ever read a single\n// byte. The buffer size is therefore uninteresting to us.", "docstring_tokens": ["The", "pty", "has", "been", "switched", "to", "raw", "mode", "so", "we", "will", "only", "ever", "read", "a", "single", "byte", ".", "The", "buffer", "size", "is", "therefore", "uninteresting", "to", "us", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/console.go#L86-L106", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/containers_get.go", "func_name": "doContainersGetFromNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch information about the containers on the given remote node, using the\n// rest API and with a timeout of 30 seconds.", "docstring_tokens": ["Fetch", "information", "about", "the", "containers", "on", "the", "given", "remote", "node", "using", "the", "rest", "API", "and", "with", "a", "timeout", "of", "30", "seconds", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/containers_get.go#L265-L300", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/retry.go", "func_name": "Retry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Retry wraps a function that interacts with the database, and retries it in\n// case a transient error is hit.\n//\n// This should by typically used to wrap transactions.", "docstring_tokens": ["Retry", "wraps", "a", "function", "that", "interacts", "with", "the", "database", "and", "retries", "it", "in", "case", "a", "transient", "error", "is", "hit", ".", "This", "should", "by", "typically", "used", "to", "wrap", "transactions", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/retry.go#L16-L33", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/retry.go", "func_name": "IsRetriableError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsRetriableError returns true if the given error might be transient and the\n// interaction can be safely retried.", "docstring_tokens": ["IsRetriableError", "returns", "true", "if", "the", "given", "error", "might", "be", "transient", "and", "the", "interaction", "can", "be", "safely", "retried", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/retry.go#L37-L60", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/apparmor.go", "func_name": "AppArmorProfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppArmorProfile returns the current apparmor profile.", "docstring_tokens": ["AppArmorProfile", "returns", "the", "current", "apparmor", "profile", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/apparmor.go#L9-L16", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_btrfs.go", "func_name": "StoragePoolVolumeCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Functions dealing with storage volumes.", "docstring_tokens": ["Functions", "dealing", "with", "storage", "volumes", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_btrfs.go#L552-L607", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_btrfs.go", "func_name": "ContainerStorageReady", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Functions dealing with container storage.", "docstring_tokens": ["Functions", "dealing", "with", "container", "storage", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_btrfs.go#L817-L820", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_btrfs.go", "func_name": "ContainerCreateFromImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// And this function is why I started hating on btrfs...", "docstring_tokens": ["And", "this", "function", "is", "why", "I", "started", "hating", "on", "btrfs", "..."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_btrfs.go#L872-L953", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_btrfs.go", "func_name": "ContainerSnapshotRename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerSnapshotRename renames a snapshot of a container.", "docstring_tokens": ["ContainerSnapshotRename", "renames", "a", "snapshot", "of", "a", "container", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_btrfs.go#L1545-L1565", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_btrfs.go", "func_name": "ContainerSnapshotCreateEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Needed for live migration where an empty snapshot needs to be created before\n// rsyncing into it.", "docstring_tokens": ["Needed", "for", "live", "migration", "where", "an", "empty", "snapshot", "needs", "to", "be", "created", "before", "rsyncing", "into", "it", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_btrfs.go#L1569-L1605", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_btrfs.go", "func_name": "btrfsSubVolumesDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// btrfsPoolVolumesDelete is the recursive variant on btrfsPoolVolumeDelete,\n// it first deletes subvolumes of the subvolume and then the\n// subvolume itself.", "docstring_tokens": ["btrfsPoolVolumesDelete", "is", "the", "recursive", "variant", "on", "btrfsPoolVolumeDelete", "it", "first", "deletes", "subvolumes", "of", "the", "subvolume", "and", "then", "the", "subvolume", "itself", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_btrfs.go#L2242-L2264", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_btrfs.go", "func_name": "isBtrfsSubVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isBtrfsSubVolume returns true if the given Path is a btrfs subvolume else\n// false.", "docstring_tokens": ["isBtrfsSubVolume", "returns", "true", "if", "the", "given", "Path", "is", "a", "btrfs", "subvolume", "else", "false", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_btrfs.go#L2350-L2363", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/config.go", "func_name": "SelectConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SelectConfig executes a query statement against a \"config\" table, which must\n// have 'key' and 'value' columns. By default this query returns all keys, but\n// additional WHERE filters can be specified.\n//\n// Returns a map of key names to their associated values.", "docstring_tokens": ["SelectConfig", "executes", "a", "query", "statement", "against", "a", "config", "table", "which", "must", "have", "key", "and", "value", "columns", ".", "By", "default", "this", "query", "returns", "all", "keys", "but", "additional", "WHERE", "filters", "can", "be", "specified", ".", "Returns", "a", "map", "of", "key", "names", "to", "their", "associated", "values", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/config.go#L16-L47", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/config.go", "func_name": "UpdateConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateConfig updates the given keys in the given table. Config keys set to\n// empty values will be deleted.", "docstring_tokens": ["UpdateConfig", "updates", "the", "given", "keys", "in", "the", "given", "table", ".", "Config", "keys", "set", "to", "empty", "values", "will", "be", "deleted", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/config.go#L51-L74", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/config.go", "func_name": "deleteConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete the given key rows from the given config table.", "docstring_tokens": ["Delete", "the", "given", "key", "rows", "from", "the", "given", "config", "table", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/config.go#L96-L110", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cmd/format.go", "func_name": "FormatSection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatSection properly indents a text section", "docstring_tokens": ["FormatSection", "properly", "indents", "a", "text", "section"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cmd/format.go#L8-L34", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_projects.go", "func_name": "GetProjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProjects returns a list of available Project structs", "docstring_tokens": ["GetProjects", "returns", "a", "list", "of", "available", "Project", "structs"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_projects.go#L38-L52", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_projects.go", "func_name": "GetProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProject returns a Project entry for the provided name", "docstring_tokens": ["GetProject", "returns", "a", "Project", "entry", "for", "the", "provided", "name"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_projects.go#L55-L69", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_projects.go", "func_name": "CreateProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateProject defines a new container project", "docstring_tokens": ["CreateProject", "defines", "a", "new", "container", "project"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_projects.go#L72-L84", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_projects.go", "func_name": "UpdateProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateProject updates the project to match the provided Project struct", "docstring_tokens": ["UpdateProject", "updates", "the", "project", "to", "match", "the", "provided", "Project", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_projects.go#L87-L99", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_projects.go", "func_name": "RenameProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenameProject renames an existing project entry", "docstring_tokens": ["RenameProject", "renames", "an", "existing", "project", "entry"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_projects.go#L102-L114", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/eagain/file.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read behaves like io.Reader.Read but will retry on EAGAIN", "docstring_tokens": ["Read", "behaves", "like", "io", ".", "Reader", ".", "Read", "but", "will", "retry", "on", "EAGAIN"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/eagain/file.go#L16-L30", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/eagain/file.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write behaves like io.Writer.Write but will retry on EAGAIN", "docstring_tokens": ["Write", "behaves", "like", "io", ".", "Writer", ".", "Write", "but", "will", "retry", "on", "EAGAIN"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/eagain/file.go#L38-L52", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cancel/canceler.go", "func_name": "NewCanceler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCanceler returns a new Canceler struct", "docstring_tokens": ["NewCanceler", "returns", "a", "new", "Canceler", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cancel/canceler.go#L16-L24", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cancel/canceler.go", "func_name": "Cancelable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cancelable indicates whether there are operations that support cancelation", "docstring_tokens": ["Cancelable", "indicates", "whether", "there", "are", "operations", "that", "support", "cancelation"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cancel/canceler.go#L27-L33", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cancel/canceler.go", "func_name": "Cancel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cancel will attempt to cancel all ongoing operations", "docstring_tokens": ["Cancel", "will", "attempt", "to", "cancel", "all", "ongoing", "operations"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cancel/canceler.go#L36-L49", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cancel/canceler.go", "func_name": "CancelableDownload", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CancelableDownload performs an http request and allows for it to be canceled at any time", "docstring_tokens": ["CancelableDownload", "performs", "an", "http", "request", "and", "allows", "for", "it", "to", "be", "canceled", "at", "any", "time"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cancel/canceler.go#L52-L73", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api_cluster.go", "func_name": "clusterGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return information about the cluster.", "docstring_tokens": ["Return", "information", "about", "the", "cluster", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api_cluster.go#L68-L97", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api_cluster.go", "func_name": "clusterGetMemberConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch information about all node-specific configuration keys set on the\n// storage pools and networks of this cluster.", "docstring_tokens": ["Fetch", "information", "about", "all", "node", "-", "specific", "configuration", "keys", "set", "on", "the", "storage", "pools", "and", "networks", "of", "this", "cluster", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api_cluster.go#L101-L159", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api_cluster.go", "func_name": "clusterPutDisable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Disable clustering on a node.", "docstring_tokens": ["Disable", "clustering", "on", "a", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api_cluster.go#L617-L670", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api_cluster.go", "func_name": "tryClusterRebalance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This function is used to notify the leader that a node was removed, it will\n// decide whether to promote a new node as database node.", "docstring_tokens": ["This", "function", "is", "used", "to", "notify", "the", "leader", "that", "a", "node", "was", "removed", "it", "will", "decide", "whether", "to", "promote", "a", "new", "node", "as", "database", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api_cluster.go#L954-L970", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api_cluster.go", "func_name": "internalClusterPostRebalance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Used to update the cluster after a database node has been removed, and\n// possibly promote another one as database node.", "docstring_tokens": ["Used", "to", "update", "the", "cluster", "after", "a", "database", "node", "has", "been", "removed", "and", "possibly", "promote", "another", "one", "as", "database", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api_cluster.go#L1056-L1108", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api_cluster.go", "func_name": "internalClusterPostPromote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Used to promote the local non-database node to be a database one.", "docstring_tokens": ["Used", "to", "promote", "the", "local", "non", "-", "database", "node", "to", "be", "a", "database", "one", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api_cluster.go#L1111-L1136", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/parse.go", "func_name": "Filters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Filters parses all filtering statement defined for the given entity. It\n// returns all supported combinations of filters, sorted by number of criteria.", "docstring_tokens": ["Filters", "parses", "all", "filtering", "statement", "defined", "for", "the", "given", "entity", ".", "It", "returns", "all", "supported", "combinations", "of", "filters", "sorted", "by", "number", "of", "criteria", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/parse.go#L40-L59", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/parse.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse the structure declaration with the given name found in the given Go\n// package.", "docstring_tokens": ["Parse", "the", "structure", "declaration", "with", "the", "given", "name", "found", "in", "the", "given", "Go", "package", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/parse.go#L110-L128", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/parse.go", "func_name": "findStruct", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Find the StructType node for the structure with the given name", "docstring_tokens": ["Find", "the", "StructType", "node", "for", "the", "structure", "with", "the", "given", "name"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/parse.go#L131-L148", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/parse.go", "func_name": "parseStruct", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Extract field information from the given structure.", "docstring_tokens": ["Extract", "field", "information", "from", "the", "given", "structure", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/parse.go#L151-L194", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_profiles.go", "func_name": "GetProfileNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Profile handling functions\n// GetProfileNames returns a list of available profile names", "docstring_tokens": ["Profile", "handling", "functions", "GetProfileNames", "returns", "a", "list", "of", "available", "profile", "names"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_profiles.go#L14-L31", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_profiles.go", "func_name": "GetProfiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProfiles returns a list of available Profile structs", "docstring_tokens": ["GetProfiles", "returns", "a", "list", "of", "available", "Profile", "structs"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_profiles.go#L34-L44", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_profiles.go", "func_name": "GetProfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProfile returns a Profile entry for the provided name", "docstring_tokens": ["GetProfile", "returns", "a", "Profile", "entry", "for", "the", "provided", "name"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_profiles.go#L47-L57", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_profiles.go", "func_name": "CreateProfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateProfile defines a new container profile", "docstring_tokens": ["CreateProfile", "defines", "a", "new", "container", "profile"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_profiles.go#L60-L68", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_profiles.go", "func_name": "UpdateProfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateProfile updates the profile to match the provided Profile struct", "docstring_tokens": ["UpdateProfile", "updates", "the", "profile", "to", "match", "the", "provided", "Profile", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_profiles.go#L71-L79", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_profiles.go", "func_name": "RenameProfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenameProfile renames an existing profile entry", "docstring_tokens": ["RenameProfile", "renames", "an", "existing", "profile", "entry"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_profiles.go#L82-L90", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/map.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load creates a new configuration Map with the given schema and initial\n// values. It is meant to be called with a set of initial values that were set\n// at a previous time and persisted to some storage like a database.\n//\n// If one or more keys fail to be loaded, return an ErrorList describing what\n// went wrong. Non-failing keys are still loaded in the returned Map.", "docstring_tokens": ["Load", "creates", "a", "new", "configuration", "Map", "with", "the", "given", "schema", "and", "initial", "values", ".", "It", "is", "meant", "to", "be", "called", "with", "a", "set", "of", "initial", "values", "that", "were", "set", "at", "a", "previous", "time", "and", "persisted", "to", "some", "storage", "like", "a", "database", ".", "If", "one", "or", "more", "keys", "fail", "to", "be", "loaded", "return", "an", "ErrorList", "describing", "what", "went", "wrong", ".", "Non", "-", "failing", "keys", "are", "still", "loaded", "in", "the", "returned", "Map", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/map.go#L26-L34", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/map.go", "func_name": "Dump", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dump the current configuration held by this Map.\n//\n// Keys that match their default value will not be included in the dump. Also,\n// if a Key has its Hidden attribute set to true, it will be rendered as\n// \"true\", for obfuscating the actual value.", "docstring_tokens": ["Dump", "the", "current", "configuration", "held", "by", "this", "Map", ".", "Keys", "that", "match", "their", "default", "value", "will", "not", "be", "included", "in", "the", "dump", ".", "Also", "if", "a", "Key", "has", "its", "Hidden", "attribute", "set", "to", "true", "it", "will", "be", "rendered", "as", "true", "for", "obfuscating", "the", "actual", "value", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/map.go#L95-L110", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/map.go", "func_name": "GetRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRaw returns the value of the given key, which must be of type String.", "docstring_tokens": ["GetRaw", "returns", "the", "value", "of", "the", "given", "key", "which", "must", "be", "of", "type", "String", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/map.go#L113-L120", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/map.go", "func_name": "GetString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetString returns the value of the given key, which must be of type String.", "docstring_tokens": ["GetString", "returns", "the", "value", "of", "the", "given", "key", "which", "must", "be", "of", "type", "String", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/map.go#L123-L126", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/map.go", "func_name": "GetBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBool returns the value of the given key, which must be of type Bool.", "docstring_tokens": ["GetBool", "returns", "the", "value", "of", "the", "given", "key", "which", "must", "be", "of", "type", "Bool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/map.go#L129-L132", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/map.go", "func_name": "GetInt64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInt64 returns the value of the given key, which must be of type Int64.", "docstring_tokens": ["GetInt64", "returns", "the", "value", "of", "the", "given", "key", "which", "must", "be", "of", "type", "Int64", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/map.go#L135-L142", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/map.go", "func_name": "update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update the current values in the map using the newly provided ones. Return a\n// list of key names that were actually changed and an ErrorList with possible\n// errors.", "docstring_tokens": ["Update", "the", "current", "values", "in", "the", "map", "using", "the", "newly", "provided", "ones", ".", "Return", "a", "list", "of", "key", "names", "that", "were", "actually", "changed", "and", "an", "ErrorList", "with", "possible", "errors", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/map.go#L147-L179", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/map.go", "func_name": "set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set or change an individual key. Empty string means delete this value and\n// effectively revert it to the default. Return a boolean indicating whether\n// the value has changed, and error if something went wrong.", "docstring_tokens": ["Set", "or", "change", "an", "individual", "key", ".", "Empty", "string", "means", "delete", "this", "value", "and", "effectively", "revert", "it", "to", "the", "default", ".", "Return", "a", "boolean", "indicating", "whether", "the", "value", "has", "changed", "and", "error", "if", "something", "went", "wrong", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/map.go#L184-L224", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/schema/query.go", "func_name": "DoesSchemaTableExist", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DoesSchemaTableExist return whether the schema table is present in the\n// database.", "docstring_tokens": ["DoesSchemaTableExist", "return", "whether", "the", "schema", "table", "is", "present", "in", "the", "database", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/schema/query.go#L16-L38", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/schema/query.go", "func_name": "selectSchemaVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return all versions in the schema table, in increasing order.", "docstring_tokens": ["Return", "all", "versions", "in", "the", "schema", "table", "in", "increasing", "order", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/schema/query.go#L41-L46", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/schema/query.go", "func_name": "selectTablesSQL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a list of SQL statements that can be used to create all tables in the\n// database.", "docstring_tokens": ["Return", "a", "list", "of", "SQL", "statements", "that", "can", "be", "used", "to", "create", "all", "tables", "in", "the", "database", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/schema/query.go#L50-L59", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/schema/query.go", "func_name": "createSchemaTable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create the schema table.", "docstring_tokens": ["Create", "the", "schema", "table", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/schema/query.go#L62-L73", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/schema/query.go", "func_name": "insertSchemaVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Insert a new version into the schema table.", "docstring_tokens": ["Insert", "a", "new", "version", "into", "the", "schema", "table", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/schema/query.go#L76-L82", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/state/state.go", "func_name": "NewState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewState returns a new State object with the given database and operating\n// system components.", "docstring_tokens": ["NewState", "returns", "a", "new", "State", "object", "with", "the", "given", "database", "and", "operating", "system", "components", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/state/state.go#L23-L31", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_lxc.go", "func_name": "containerLXCUnload", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unload is called by the garbage collector", "docstring_tokens": ["Unload", "is", "called", "by", "the", "garbage", "collector"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_lxc.go#L512-L518", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_lxc.go", "func_name": "containerLXCInstantiate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a container struct without initializing it.", "docstring_tokens": ["Create", "a", "container", "struct", "without", "initializing", "it", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_lxc.go#L521-L540", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_lxc.go", "func_name": "initStorage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Initialize storage interface for this container", "docstring_tokens": ["Initialize", "storage", "interface", "for", "this", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_lxc.go#L1843-L1856", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_lxc.go", "func_name": "OnNetworkUp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnNetworkUp is called by the LXD callhook when the LXC network up script is run.", "docstring_tokens": ["OnNetworkUp", "is", "called", "by", "the", "LXD", "callhook", "when", "the", "LXC", "network", "up", "script", "is", "run", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_lxc.go#L3018-L3022", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_lxc.go", "func_name": "setupHostVethDevice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setupHostVethDevice configures a nic device's host side veth settings.", "docstring_tokens": ["setupHostVethDevice", "configures", "a", "nic", "device", "s", "host", "side", "veth", "settings", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_lxc.go#L3025-L3049", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_lxc.go", "func_name": "getLxcState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get lxc container state, with 1 second timeout\n// If we don't get a reply, assume the lxc monitor is hung", "docstring_tokens": ["Get", "lxc", "container", "state", "with", "1", "second", "timeout", "If", "we", "don", "t", "get", "a", "reply", "assume", "the", "lxc", "monitor", "is", "hung"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_lxc.go#L3149-L3172", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_lxc.go", "func_name": "StorageStartSensitive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Kill this function as soon as zfs is fixed.", "docstring_tokens": ["Kill", "this", "function", "as", "soon", "as", "zfs", "is", "fixed", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_lxc.go#L6553-L6568", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_lxc.go", "func_name": "deviceExistsInDevicesFolder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check if the unix device already exists.", "docstring_tokens": ["Check", "if", "the", "unix", "device", "already", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_lxc.go#L6698-L6704", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_lxc.go", "func_name": "createDiskDevice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Disk device handling", "docstring_tokens": ["Disk", "device", "handling"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_lxc.go#L8116-L8241", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_lxc.go", "func_name": "setNetworkRoutes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setNetworkRoutes applies any static routes configured from the host to the container nic.", "docstring_tokens": ["setNetworkRoutes", "applies", "any", "static", "routes", "configured", "from", "the", "host", "to", "the", "container", "nic", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_lxc.go#L8649-L8689", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_lxc.go", "func_name": "Path", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Various container paths", "docstring_tokens": ["Various", "container", "paths"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_lxc.go#L8913-L8916", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_lxc.go", "func_name": "maasInterfaces", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Internal MAAS handling", "docstring_tokens": ["Internal", "MAAS", "handling"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_lxc.go#L9001-L9049", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logging/log_posix.go", "func_name": "getSystemHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getSystemHandler on Linux writes messages to syslog.", "docstring_tokens": ["getSystemHandler", "on", "Linux", "writes", "messages", "to", "syslog", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logging/log_posix.go#L10-L24", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/devices.go", "func_name": "findNvidiaMinor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return string for minor number of nvidia device corresponding to the given pci id", "docstring_tokens": ["Return", "string", "for", "minor", "number", "of", "nvidia", "device", "corresponding", "to", "the", "given", "pci", "id"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/devices.go#L177-L203", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logging/log.go", "func_name": "GetLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLogger returns a logger suitable for using as logger.Log.", "docstring_tokens": ["GetLogger", "returns", "a", "logger", "suitable", "for", "using", "as", "logger", ".", "Log", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logging/log.go#L16-L82", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logging/log.go", "func_name": "SetLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLogger installs the given logger as global logger. It returns a function\n// that can be used to restore whatever logger was installed beforehand.", "docstring_tokens": ["SetLogger", "installs", "the", "given", "logger", "as", "global", "logger", ".", "It", "returns", "a", "function", "that", "can", "be", "used", "to", "restore", "whatever", "logger", "was", "installed", "beforehand", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logging/log.go#L86-L92", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logging/log.go", "func_name": "WaitRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitRecord blocks until a log.Record is received on the given channel. It\n// returns the emitted record, or nil if no record was received within the\n// given timeout. Useful in conjunction with log.ChannelHandler, for\n// asynchronous testing.", "docstring_tokens": ["WaitRecord", "blocks", "until", "a", "log", ".", "Record", "is", "received", "on", "the", "given", "channel", ".", "It", "returns", "the", "emitted", "record", "or", "nil", "if", "no", "record", "was", "received", "within", "the", "given", "timeout", ".", "Useful", "in", "conjunction", "with", "log", ".", "ChannelHandler", "for", "asynchronous", "testing", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logging/log.go#L98-L105", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logging/log.go", "func_name": "AddContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddContext will return a copy of the logger with extra context added", "docstring_tokens": ["AddContext", "will", "return", "a", "copy", "of", "the", "logger", "with", "extra", "context", "added"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logging/log.go#L108-L116", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/version/version.go", "func_name": "NewDottedVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDottedVersion returns a new Version.", "docstring_tokens": ["NewDottedVersion", "returns", "a", "new", "Version", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/version/version.go#L18-L48", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/version/version.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses a string starting with a dotted version and returns it.", "docstring_tokens": ["Parse", "parses", "a", "string", "starting", "with", "a", "dotted", "version", "and", "returns", "it", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/version/version.go#L51-L58", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/version/version.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns version as a string", "docstring_tokens": ["String", "returns", "version", "as", "a", "string"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/version/version.go#L61-L67", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/version/version.go", "func_name": "Compare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compare returns result of comparison between two versions", "docstring_tokens": ["Compare", "returns", "result", "of", "comparison", "between", "two", "versions"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/version/version.go#L70-L80", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api_project.go", "func_name": "projectCreateDefaultProfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create the default profile of a project.", "docstring_tokens": ["Create", "the", "default", "profile", "of", "a", "project", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api_project.go#L164-L178", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api_project.go", "func_name": "projectChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Common logic between PUT and PATCH.", "docstring_tokens": ["Common", "logic", "between", "PUT", "and", "PATCH", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api_project.go#L317-L367", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api_project.go", "func_name": "projectIsEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check if a project is empty.", "docstring_tokens": ["Check", "if", "a", "project", "is", "empty", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api_project.go#L477-L486", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_certificates.go", "func_name": "GetCertificateFingerprints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Certificate handling functions\n// GetCertificateFingerprints returns a list of certificate fingerprints", "docstring_tokens": ["Certificate", "handling", "functions", "GetCertificateFingerprints", "returns", "a", "list", "of", "certificate", "fingerprints"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_certificates.go#L14-L31", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_certificates.go", "func_name": "GetCertificates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCertificates returns a list of certificates", "docstring_tokens": ["GetCertificates", "returns", "a", "list", "of", "certificates"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_certificates.go#L34-L44", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_certificates.go", "func_name": "GetCertificate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCertificate returns the certificate entry for the provided fingerprint", "docstring_tokens": ["GetCertificate", "returns", "the", "certificate", "entry", "for", "the", "provided", "fingerprint"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_certificates.go#L47-L57", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_certificates.go", "func_name": "CreateCertificate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateCertificate adds a new certificate to the LXD trust store", "docstring_tokens": ["CreateCertificate", "adds", "a", "new", "certificate", "to", "the", "LXD", "trust", "store"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_certificates.go#L60-L68", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_certificates.go", "func_name": "UpdateCertificate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateCertificate updates the certificate definition", "docstring_tokens": ["UpdateCertificate", "updates", "the", "certificate", "definition"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_certificates.go#L71-L83", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_certificates.go", "func_name": "DeleteCertificate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteCertificate removes a certificate from the LXD trust store", "docstring_tokens": ["DeleteCertificate", "removes", "a", "certificate", "from", "the", "LXD", "trust", "store"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_certificates.go#L86-L94", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_metadata.go", "func_name": "containerMetadataTemplatesGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a list of templates used in a container or the content of a template", "docstring_tokens": ["Return", "a", "list", "of", "templates", "used", "in", "a", "container", "or", "the", "content", "of", "a", "template"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_metadata.go#L121-L203", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_metadata.go", "func_name": "containerMetadataTemplatesPostPut", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add a container template file", "docstring_tokens": ["Add", "a", "container", "template", "file"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_metadata.go#L206-L263", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_metadata.go", "func_name": "containerMetadataTemplatesDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete a container template", "docstring_tokens": ["Delete", "a", "container", "template"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_metadata.go#L266-L317", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_metadata.go", "func_name": "getContainerTemplatePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the full path of a container template.", "docstring_tokens": ["Return", "the", "full", "path", "of", "a", "container", "template", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_metadata.go#L320-L326", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/errors.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error implements the error interface.", "docstring_tokens": ["Error", "implements", "the", "error", "interface", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/errors.go#L16-L22", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/errors.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ErrorList implements the error interface.", "docstring_tokens": ["ErrorList", "implements", "the", "error", "interface", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/errors.go#L29-L37", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/errors.go", "func_name": "add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds an Error with given key name, value and reason.", "docstring_tokens": ["Add", "adds", "an", "Error", "with", "given", "key", "name", "value", "and", "reason", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/errors.go#L48-L50", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/schema.go", "func_name": "UpdateSchema", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateSchema updates the schema.go file of the cluster and node databases.", "docstring_tokens": ["UpdateSchema", "updates", "the", "schema", ".", "go", "file", "of", "the", "cluster", "and", "node", "databases", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/schema.go#L11-L23", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/profiles_utils.go", "func_name": "doProfileUpdateCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Like doProfileUpdate but does not update the database, since it was already\n// updated by doProfileUpdate itself, called on the notifying node.", "docstring_tokens": ["Like", "doProfileUpdate", "but", "does", "not", "update", "the", "database", "since", "it", "was", "already", "updated", "by", "doProfileUpdate", "itself", "called", "on", "the", "notifying", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/profiles_utils.go#L152-L185", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/profiles_utils.go", "func_name": "doProfileUpdateContainer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Profile update of a single container.", "docstring_tokens": ["Profile", "update", "of", "a", "single", "container", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/profiles_utils.go#L188-L221", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/profiles_utils.go", "func_name": "getProfileContainersInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Query the db for information about containers associated with the given\n// profile.", "docstring_tokens": ["Query", "the", "db", "for", "information", "about", "containers", "associated", "with", "the", "given", "profile", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/profiles_utils.go#L225-L253", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_networks.go", "func_name": "GetNetworkNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNetworkNames returns a list of network names", "docstring_tokens": ["GetNetworkNames", "returns", "a", "list", "of", "network", "names"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_networks.go#L12-L33", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_networks.go", "func_name": "GetNetworks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNetworks returns a list of Network struct", "docstring_tokens": ["GetNetworks", "returns", "a", "list", "of", "Network", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_networks.go#L36-L50", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_networks.go", "func_name": "GetNetwork", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNetwork returns a Network entry for the provided name", "docstring_tokens": ["GetNetwork", "returns", "a", "Network", "entry", "for", "the", "provided", "name"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_networks.go#L53-L67", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_networks.go", "func_name": "GetNetworkLeases", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNetworkLeases returns a list of Network struct", "docstring_tokens": ["GetNetworkLeases", "returns", "a", "list", "of", "Network", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_networks.go#L70-L84", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_networks.go", "func_name": "GetNetworkState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNetworkState returns metrics and information on the running network", "docstring_tokens": ["GetNetworkState", "returns", "metrics", "and", "information", "on", "the", "running", "network"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_networks.go#L87-L101", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_networks.go", "func_name": "CreateNetwork", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateNetwork defines a new network using the provided Network struct", "docstring_tokens": ["CreateNetwork", "defines", "a", "new", "network", "using", "the", "provided", "Network", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_networks.go#L104-L116", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_networks.go", "func_name": "UpdateNetwork", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateNetwork updates the network to match the provided Network struct", "docstring_tokens": ["UpdateNetwork", "updates", "the", "network", "to", "match", "the", "provided", "Network", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_networks.go#L119-L131", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_networks.go", "func_name": "RenameNetwork", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenameNetwork renames an existing network entry", "docstring_tokens": ["RenameNetwork", "renames", "an", "existing", "network", "entry"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_networks.go#L134-L146", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/cluster/open.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open the cluster database object.\n//\n// The name argument is the name of the cluster database. It defaults to\n// 'db.bin', but can be overwritten for testing.\n//\n// The dialer argument is a function that returns a gRPC dialer that can be\n// used to connect to a database node using the gRPC SQL package.", "docstring_tokens": ["Open", "the", "cluster", "database", "object", ".", "The", "name", "argument", "is", "the", "name", "of", "the", "cluster", "database", ".", "It", "defaults", "to", "db", ".", "bin", "but", "can", "be", "overwritten", "for", "testing", ".", "The", "dialer", "argument", "is", "a", "function", "that", "returns", "a", "gRPC", "dialer", "that", "can", "be", "used", "to", "connect", "to", "a", "database", "node", "using", "the", "gRPC", "SQL", "package", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/cluster/open.go#L26-L47", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/util.go", "func_name": "URLEncode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URLEncode encodes a path and query parameters to a URL.", "docstring_tokens": ["URLEncode", "encodes", "a", "path", "and", "query", "parameters", "to", "a", "URL", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/util.go#L38-L50", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/util.go", "func_name": "IsUnixSocket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsUnixSocket returns true if the given path is either a Unix socket\n// or a symbolic link pointing at a Unix socket.", "docstring_tokens": ["IsUnixSocket", "returns", "true", "if", "the", "given", "path", "is", "either", "a", "Unix", "socket", "or", "a", "symbolic", "link", "pointing", "at", "a", "Unix", "socket", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/util.go#L100-L106", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/util.go", "func_name": "HostPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HostPath returns the host path for the provided path\n// On a normal system, this does nothing\n// When inside of a snap environment, returns the real path", "docstring_tokens": ["HostPath", "returns", "the", "host", "path", "for", "the", "provided", "path", "On", "a", "normal", "system", "this", "does", "nothing", "When", "inside", "of", "a", "snap", "environment", "returns", "the", "real", "path"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/util.go#L111-L153", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/util.go", "func_name": "FileMove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FileMove tries to move a file by using os.Rename,\n// if that fails it tries to copy the file and remove the source.", "docstring_tokens": ["FileMove", "tries", "to", "move", "a", "file", "by", "using", "os", ".", "Rename", "if", "that", "fails", "it", "tries", "to", "copy", "the", "file", "and", "remove", "the", "source", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/util.go#L332-L346", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/util.go", "func_name": "DirCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DirCopy copies a directory recursively, overwriting the target if it exists.", "docstring_tokens": ["DirCopy", "copies", "a", "directory", "recursively", "overwriting", "the", "target", "if", "it", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/util.go#L389-L440", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/util.go", "func_name": "StringMapHasStringKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StringMapHasStringKey returns true if any of the supplied keys are present in the map.", "docstring_tokens": ["StringMapHasStringKey", "returns", "true", "if", "any", "of", "the", "supplied", "keys", "are", "present", "in", "the", "map", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/util.go#L551-L559", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/util.go", "func_name": "TextEditor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Spawn the editor with a temporary YAML file for editing configs", "docstring_tokens": ["Spawn", "the", "editor", "with", "a", "temporary", "YAML", "file", "for", "editing", "configs"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/util.go#L666-L729", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/util.go", "func_name": "WriteTempFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTempFile creates a temp file with the specified content", "docstring_tokens": ["WriteTempFile", "creates", "a", "temp", "file", "with", "the", "specified", "content"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/util.go#L999-L1008", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/util.go", "func_name": "RenderTemplate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenderTemplate renders a pongo2 template.", "docstring_tokens": ["RenderTemplate", "renders", "a", "pongo2", "template", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/util.go#L1153-L1172", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/task/schedule.go", "func_name": "Every", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Every returns a Schedule that always returns the given time interval.", "docstring_tokens": ["Every", "returns", "a", "Schedule", "that", "always", "returns", "the", "given", "time", "interval", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/task/schedule.go#L33-L47", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_lvm.go", "func_name": "StoragePoolMount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Currently only used for loop-backed LVM storage pools. Can be called without\n// overhead since it is essentially a noop for non-loop-backed LVM storage\n// pools.", "docstring_tokens": ["Currently", "only", "used", "for", "loop", "-", "backed", "LVM", "storage", "pools", ".", "Can", "be", "called", "without", "overhead", "since", "it", "is", "essentially", "a", "noop", "for", "non", "-", "loop", "-", "backed", "LVM", "storage", "pools", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_lvm.go#L423-L474", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/dump.go", "func_name": "Dump", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dump returns a SQL text dump of all rows across all tables, similar to\n// sqlite3's dump feature", "docstring_tokens": ["Dump", "returns", "a", "SQL", "text", "dump", "of", "all", "rows", "across", "all", "tables", "similar", "to", "sqlite3", "s", "dump", "feature"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/dump.go#L16-L62", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/dump.go", "func_name": "dumpTable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dump a single table, returning a SQL text containing statements for its\n// schema and data.", "docstring_tokens": ["Dump", "a", "single", "table", "returning", "a", "SQL", "text", "containing", "statements", "for", "its", "schema", "and", "data", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/dump.go#L81-L130", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/projects.go", "func_name": "ProjectHasProfiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectHasProfiles is a helper to check if a project has the profiles\n// feature enabled.", "docstring_tokens": ["ProjectHasProfiles", "is", "a", "helper", "to", "check", "if", "a", "project", "has", "the", "profiles", "feature", "enabled", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/projects.go#L50-L52", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/projects.go", "func_name": "ProjectNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectNames returns the names of all available projects.", "docstring_tokens": ["ProjectNames", "returns", "the", "names", "of", "all", "available", "projects", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/projects.go#L55-L64", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/projects.go", "func_name": "ProjectMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectMap returns the names and ids of all available projects.", "docstring_tokens": ["ProjectMap", "returns", "the", "names", "and", "ids", "of", "all", "available", "projects", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/projects.go#L67-L95", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/projects.go", "func_name": "ProjectHasImages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectHasImages is a helper to check if a project has the images\n// feature enabled.", "docstring_tokens": ["ProjectHasImages", "is", "a", "helper", "to", "check", "if", "a", "project", "has", "the", "images", "feature", "enabled", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/projects.go#L118-L127", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/projects.go", "func_name": "ProjectUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectUpdate updates the project matching the given key parameters.", "docstring_tokens": ["ProjectUpdate", "updates", "the", "project", "matching", "the", "given", "key", "parameters", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/projects.go#L130-L168", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_cluster.go", "func_name": "GetCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCluster returns information about a cluster\n//\n// If this client is not trusted, the password must be supplied", "docstring_tokens": ["GetCluster", "returns", "information", "about", "a", "cluster", "If", "this", "client", "is", "not", "trusted", "the", "password", "must", "be", "supplied"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_cluster.go#L12-L24", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_cluster.go", "func_name": "UpdateCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateCluster requests to bootstrap a new cluster or join an existing one.", "docstring_tokens": ["UpdateCluster", "requests", "to", "bootstrap", "a", "new", "cluster", "or", "join", "an", "existing", "one", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_cluster.go#L27-L44", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_cluster.go", "func_name": "GetClusterMemberNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClusterMemberNames returns the URLs of the current members in the cluster", "docstring_tokens": ["GetClusterMemberNames", "returns", "the", "URLs", "of", "the", "current", "members", "in", "the", "cluster"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_cluster.go#L67-L79", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_cluster.go", "func_name": "GetClusterMembers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClusterMembers returns the current members of the cluster", "docstring_tokens": ["GetClusterMembers", "returns", "the", "current", "members", "of", "the", "cluster"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_cluster.go#L82-L94", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_cluster.go", "func_name": "GetClusterMember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetClusterMember returns information about the given member", "docstring_tokens": ["GetClusterMember", "returns", "information", "about", "the", "given", "member"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_cluster.go#L97-L109", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_cluster.go", "func_name": "RenameClusterMember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenameClusterMember changes the name of an existing member", "docstring_tokens": ["RenameClusterMember", "changes", "the", "name", "of", "an", "existing", "member"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_cluster.go#L112-L123", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/events.go", "func_name": "Disconnect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Disconnect must be used once done listening for events", "docstring_tokens": ["Disconnect", "must", "be", "used", "once", "done", "listening", "for", "events"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/events.go#L73-L96", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/version.go", "func_name": "CompareVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CompareVersions the versions of two LXD nodes.\n//\n// A version consists of the version the node's schema and the number of API\n// extensions it supports.\n//\n// Return 0 if they equal, 1 if the first version is greater than the second\n// and 2 if the second is greater than the first.\n//\n// Return an error if inconsistent versions are detected, for example the first\n// node's schema is greater than the second's, but the number of extensions is\n// smaller.", "docstring_tokens": ["CompareVersions", "the", "versions", "of", "two", "LXD", "nodes", ".", "A", "version", "consists", "of", "the", "version", "the", "node", "s", "schema", "and", "the", "number", "of", "API", "extensions", "it", "supports", ".", "Return", "0", "if", "they", "equal", "1", "if", "the", "first", "version", "is", "greater", "than", "the", "second", "and", "2", "if", "the", "second", "is", "greater", "than", "the", "first", ".", "Return", "an", "error", "if", "inconsistent", "versions", "are", "detected", "for", "example", "the", "first", "node", "s", "schema", "is", "greater", "than", "the", "second", "s", "but", "the", "number", "of", "extensions", "is", "smaller", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/version.go#L16-L31", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/config/cert.go", "func_name": "HasClientCertificate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasClientCertificate will return true if a client certificate has already been generated", "docstring_tokens": ["HasClientCertificate", "will", "return", "true", "if", "a", "client", "certificate", "has", "already", "been", "generated"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/config/cert.go#L8-L16", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/config/cert.go", "func_name": "GenerateClientCertificate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateClientCertificate will generate the needed client.crt and client.key if needed", "docstring_tokens": ["GenerateClientCertificate", "will", "generate", "the", "needed", "client", ".", "crt", "and", "client", ".", "key", "if", "needed"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/config/cert.go#L19-L28", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/kernel.go", "func_name": "LoadModule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadModule loads the kernel module with the given name, by invoking\n// modprobe.", "docstring_tokens": ["LoadModule", "loads", "the", "kernel", "module", "with", "the", "given", "name", "by", "invoking", "modprobe", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/kernel.go#L11-L18", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/lex/parse.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse runs the Go parser against the given package name.", "docstring_tokens": ["Parse", "runs", "the", "Go", "parser", "against", "the", "given", "package", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/lex/parse.go#L16-L49", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/pprof.go", "func_name": "PprofAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PprofAddress returns the network addresss of the pprof endpoint, or an empty string if there's no pprof endpoint", "docstring_tokens": ["PprofAddress", "returns", "the", "network", "addresss", "of", "the", "pprof", "endpoint", "or", "an", "empty", "string", "if", "there", "s", "no", "pprof", "endpoint"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/pprof.go#L33-L43", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/pprof.go", "func_name": "PprofUpdateAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PprofUpdateAddress updates the address for the pprof endpoint, shutting it down and restarting it.", "docstring_tokens": ["PprofUpdateAddress", "updates", "the", "address", "for", "the", "pprof", "endpoint", "shutting", "it", "down", "and", "restarting", "it", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/pprof.go#L46-L109", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/method.go", "func_name": "NewMethod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMethod return a new method code snippet for executing a certain mapping.", "docstring_tokens": ["NewMethod", "return", "a", "new", "method", "code", "snippet", "for", "executing", "a", "certain", "mapping", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/method.go#L24-L40", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/method.go", "func_name": "Generate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Generate the desired method.", "docstring_tokens": ["Generate", "the", "desired", "method", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/method.go#L43-L69", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/method.go", "func_name": "fillSliceReferenceField", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Populate a field consisting of a slice of objects referencing the\n// entity. This information is available by joining a the view or table\n// associated with the type of the referenced objects, which must contain the\n// natural key of the entity.", "docstring_tokens": ["Populate", "a", "field", "consisting", "of", "a", "slice", "of", "objects", "referencing", "the", "entity", ".", "This", "information", "is", "available", "by", "joining", "a", "the", "view", "or", "table", "associated", "with", "the", "type", "of", "the", "referenced", "objects", "which", "must", "contain", "the", "natural", "key", "of", "the", "entity", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/method.go#L506-L539", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolID returns the ID of the pool with the given name.", "docstring_tokens": ["StoragePoolID", "returns", "the", "ID", "of", "the", "pool", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L39-L53", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolIDsNotPending", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolIDsNotPending returns a map associating each storage pool name to its ID.\n//\n// Pending storage pools are skipped.", "docstring_tokens": ["StoragePoolIDsNotPending", "returns", "a", "map", "associating", "each", "storage", "pool", "name", "to", "its", "ID", ".", "Pending", "storage", "pools", "are", "skipped", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L75-L102", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolNodeJoin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolNodeJoin adds a new entry in the storage_pools_nodes table.\n//\n// It should only be used when a new node joins the cluster, when it's safe to\n// assume that the relevant pool has already been created on the joining node,\n// and we just need to track it.", "docstring_tokens": ["StoragePoolNodeJoin", "adds", "a", "new", "entry", "in", "the", "storage_pools_nodes", "table", ".", "It", "should", "only", "be", "used", "when", "a", "new", "node", "joins", "the", "cluster", "when", "it", "s", "safe", "to", "assume", "that", "the", "relevant", "pool", "has", "already", "been", "created", "on", "the", "joining", "node", "and", "we", "just", "need", "to", "track", "it", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L109-L118", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolNodeJoinCeph", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolNodeJoinCeph updates internal state to reflect that nodeID is\n// joining a cluster where poolID is a ceph pool.", "docstring_tokens": ["StoragePoolNodeJoinCeph", "updates", "internal", "state", "to", "reflect", "that", "nodeID", "is", "joining", "a", "cluster", "where", "poolID", "is", "a", "ceph", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L122-L178", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolConfigAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolConfigAdd adds a new entry in the storage_pools_config table", "docstring_tokens": ["StoragePoolConfigAdd", "adds", "a", "new", "entry", "in", "the", "storage_pools_config", "table"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L181-L183", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolCreatePending", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolCreatePending creates a new pending storage pool on the node with\n// the given name.", "docstring_tokens": ["StoragePoolCreatePending", "creates", "a", "new", "pending", "storage", "pool", "on", "the", "node", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L194-L274", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolCreated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolCreated sets the state of the given pool to \"Created\".", "docstring_tokens": ["StoragePoolCreated", "sets", "the", "state", "of", "the", "given", "pool", "to", "Created", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L277-L279", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolErrored", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolErrored sets the state of the given pool to \"Errored\".", "docstring_tokens": ["StoragePoolErrored", "sets", "the", "state", "of", "the", "given", "pool", "to", "Errored", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L282-L284", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolNodeConfigs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolNodeConfigs returns the node-specific configuration of all\n// nodes grouped by node name, for the given poolID.\n//\n// If the storage pool is not defined on all nodes, an error is returned.", "docstring_tokens": ["StoragePoolNodeConfigs", "returns", "the", "node", "-", "specific", "configuration", "of", "all", "nodes", "grouped", "by", "node", "name", "for", "the", "given", "poolID", ".", "If", "the", "storage", "pool", "is", "not", "defined", "on", "all", "nodes", "an", "error", "is", "returned", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L306-L348", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolsGetDrivers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolsGetDrivers returns the names of all storage volumes attached to\n// a given storage pool.", "docstring_tokens": ["StoragePoolsGetDrivers", "returns", "the", "names", "of", "all", "storage", "volumes", "attached", "to", "a", "given", "storage", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L394-L415", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolGetID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolGetID returns the id of a single storage pool.", "docstring_tokens": ["StoragePoolGetID", "returns", "the", "id", "of", "a", "single", "storage", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L418-L432", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolGet returns a single storage pool.", "docstring_tokens": ["StoragePoolGet", "returns", "a", "single", "storage", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L435-L481", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "storagePoolNodes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the names of the nodes the given pool is defined on.", "docstring_tokens": ["Return", "the", "names", "of", "the", "nodes", "the", "given", "pool", "is", "defined", "on", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L484-L500", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolConfigGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolConfigGet returns the config of a storage pool.", "docstring_tokens": ["StoragePoolConfigGet", "returns", "the", "config", "of", "a", "storage", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L503-L524", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolCreate creates new storage pool.", "docstring_tokens": ["StoragePoolCreate", "creates", "new", "storage", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L527-L559", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "storagePoolConfigAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add new storage pool config.", "docstring_tokens": ["Add", "new", "storage", "pool", "config", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L562-L588", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolUpdate updates a storage pool.", "docstring_tokens": ["StoragePoolUpdate", "updates", "a", "storage", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L608-L633", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolConfigClear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolConfigClear deletes the storage pool config.", "docstring_tokens": ["StoragePoolConfigClear", "deletes", "the", "storage", "pool", "config", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L642-L649", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolDelete deletes storage pool.", "docstring_tokens": ["StoragePoolDelete", "deletes", "storage", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L652-L664", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolVolumesGetNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolVolumesGetNames gets the names of all storage volumes attached to\n// a given storage pool.", "docstring_tokens": ["StoragePoolVolumesGetNames", "gets", "the", "names", "of", "all", "storage", "volumes", "attached", "to", "a", "given", "storage", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L668-L686", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolVolumesGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolVolumesGet returns all storage volumes attached to a given\n// storage pool on any node.", "docstring_tokens": ["StoragePoolVolumesGet", "returns", "all", "storage", "volumes", "attached", "to", "a", "given", "storage", "pool", "on", "any", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L690-L716", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolNodeVolumesGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolNodeVolumesGet returns all storage volumes attached to a given\n// storage pool on the current node.", "docstring_tokens": ["StoragePoolNodeVolumesGet", "returns", "all", "storage", "volumes", "attached", "to", "a", "given", "storage", "pool", "on", "the", "current", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L720-L722", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "storagePoolVolumesGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns all storage volumes attached to a given storage pool on the given\n// node.", "docstring_tokens": ["Returns", "all", "storage", "volumes", "attached", "to", "a", "given", "storage", "pool", "on", "the", "given", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L726-L749", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolVolumesGetType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolVolumesGetType get all storage volumes attached to a given\n// storage pool of a given volume type, on the given node.", "docstring_tokens": ["StoragePoolVolumesGetType", "get", "all", "storage", "volumes", "attached", "to", "a", "given", "storage", "pool", "of", "a", "given", "volume", "type", "on", "the", "given", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L753-L775", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolVolumeSnapshotsGetType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolVolumeSnapshotsGetType get all snapshots of a storage volume\n// attached to a given storage pool of a given volume type, on the given node.", "docstring_tokens": ["StoragePoolVolumeSnapshotsGetType", "get", "all", "snapshots", "of", "a", "storage", "volume", "attached", "to", "a", "given", "storage", "pool", "of", "a", "given", "volume", "type", "on", "the", "given", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L779-L798", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolNodeVolumesGetType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolNodeVolumesGetType returns all storage volumes attached to a\n// given storage pool of a given volume type, on the current node.", "docstring_tokens": ["StoragePoolNodeVolumesGetType", "returns", "all", "storage", "volumes", "attached", "to", "a", "given", "storage", "pool", "of", "a", "given", "volume", "type", "on", "the", "current", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L802-L804", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolVolumeGetType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolVolumeGetType returns a single storage volume attached to a\n// given storage pool of a given type, on the node with the given ID.", "docstring_tokens": ["StoragePoolVolumeGetType", "returns", "a", "single", "storage", "volume", "attached", "to", "a", "given", "storage", "pool", "of", "a", "given", "type", "on", "the", "node", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L808-L849", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolNodeVolumeGetType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolNodeVolumeGetType gets a single storage volume attached to a\n// given storage pool of a given type, on the current node.", "docstring_tokens": ["StoragePoolNodeVolumeGetType", "gets", "a", "single", "storage", "volume", "attached", "to", "a", "given", "storage", "pool", "of", "a", "given", "type", "on", "the", "current", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L853-L855", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolNodeVolumeGetTypeByProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolNodeVolumeGetTypeByProject gets a single storage volume attached to a\n// given storage pool of a given type, on the current node in the given project.", "docstring_tokens": ["StoragePoolNodeVolumeGetTypeByProject", "gets", "a", "single", "storage", "volume", "attached", "to", "a", "given", "storage", "pool", "of", "a", "given", "type", "on", "the", "current", "node", "in", "the", "given", "project", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L859-L861", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolVolumeUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolVolumeUpdate updates the storage volume attached to a given storage\n// pool.", "docstring_tokens": ["StoragePoolVolumeUpdate", "updates", "the", "storage", "volume", "attached", "to", "a", "given", "storage", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L865-L892", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolVolumeDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolVolumeDelete deletes the storage volume attached to a given storage\n// pool.", "docstring_tokens": ["StoragePoolVolumeDelete", "deletes", "the", "storage", "volume", "attached", "to", "a", "given", "storage", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L896-L911", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolVolumeRename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolVolumeRename renames the storage volume attached to a given storage pool.", "docstring_tokens": ["StoragePoolVolumeRename", "renames", "the", "storage", "volume", "attached", "to", "a", "given", "storage", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L914-L929", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "storagePoolVolumeReplicateIfCeph", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This a convenience to replicate a certain volume change to all nodes if the\n// underlying driver is ceph.", "docstring_tokens": ["This", "a", "convenience", "to", "replicate", "a", "certain", "volume", "change", "to", "all", "nodes", "if", "the", "underlying", "driver", "is", "ceph", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L933-L957", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolVolumeCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolVolumeCreate creates a new storage volume attached to a given\n// storage pool.", "docstring_tokens": ["StoragePoolVolumeCreate", "creates", "a", "new", "storage", "volume", "attached", "to", "a", "given", "storage", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L961-L1009", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolVolumeGetTypeID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolVolumeGetTypeID returns the ID of a storage volume on a given\n// storage pool of a given storage volume type, on the given node.", "docstring_tokens": ["StoragePoolVolumeGetTypeID", "returns", "the", "ID", "of", "a", "storage", "volume", "on", "a", "given", "storage", "pool", "of", "a", "given", "storage", "volume", "type", "on", "the", "given", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L1013-L1033", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolNodeVolumeGetTypeID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolNodeVolumeGetTypeID get the ID of a storage volume on a given\n// storage pool of a given storage volume type, on the current node.", "docstring_tokens": ["StoragePoolNodeVolumeGetTypeID", "get", "the", "ID", "of", "a", "storage", "volume", "on", "a", "given", "storage", "pool", "of", "a", "given", "storage", "volume", "type", "on", "the", "current", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L1037-L1039", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_pools.go", "func_name": "StoragePoolVolumeTypeToName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoragePoolVolumeTypeToName converts a volume integer type code to its\n// human-readable name.", "docstring_tokens": ["StoragePoolVolumeTypeToName", "converts", "a", "volume", "integer", "type", "code", "to", "its", "human", "-", "readable", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_pools.go#L1071-L1082", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/devices.go", "func_name": "DevicesAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DevicesAdd adds a new device.", "docstring_tokens": ["DevicesAdd", "adds", "a", "new", "device", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/devices.go#L61-L110", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/devices.go", "func_name": "Devices", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Devices returns the devices matching the given filters.", "docstring_tokens": ["Devices", "returns", "the", "devices", "matching", "the", "given", "filters", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/devices.go#L141-L196", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/patches.go", "func_name": "Patches", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Patches returns the names of all patches currently applied on this node.", "docstring_tokens": ["Patches", "returns", "the", "names", "of", "all", "patches", "currently", "applied", "on", "this", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/patches.go#L8-L24", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/patches.go", "func_name": "PatchesMarkApplied", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PatchesMarkApplied marks the patch with the given name as applied on this node.", "docstring_tokens": ["PatchesMarkApplied", "marks", "the", "patch", "with", "the", "given", "name", "as", "applied", "on", "this", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/patches.go#L27-L31", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/lex.go", "func_name": "entityType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return Go type of the given database entity.", "docstring_tokens": ["Return", "Go", "type", "of", "the", "given", "database", "entity", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/lex.go#L16-L22", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/lex.go", "func_name": "entityPost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the name of the Post struct for the given entity.", "docstring_tokens": ["Return", "the", "name", "of", "the", "Post", "struct", "for", "the", "given", "entity", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/lex.go#L30-L32", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/lex.go", "func_name": "stmtCodeVar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the name of the global variable holding the registration code for\n// the given kind of statement aganst the given entity.", "docstring_tokens": ["Return", "the", "name", "of", "the", "global", "variable", "holding", "the", "registration", "code", "for", "the", "given", "kind", "of", "statement", "aganst", "the", "given", "entity", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/lex.go#L41-L50", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/lex.go", "func_name": "destFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the code for a \"dest\" function, to be passed as parameter to\n// query.SelectObjects in order to scan a single row.", "docstring_tokens": ["Return", "the", "code", "for", "a", "dest", "function", "to", "be", "passed", "as", "parameter", "to", "query", ".", "SelectObjects", "in", "order", "to", "scan", "a", "single", "row", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/lex.go#L73-L87", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/config.go", "func_name": "CompareConfigs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CompareConfigs compares two config maps and returns an error if they differ.", "docstring_tokens": ["CompareConfigs", "compares", "two", "config", "maps", "and", "returns", "an", "error", "if", "they", "differ", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/config.go#L12-L49", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/config.go", "func_name": "CopyConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyConfig creates a new map with a copy of the given config.", "docstring_tokens": ["CopyConfig", "creates", "a", "new", "map", "with", "a", "copy", "of", "the", "given", "config", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/config.go#L52-L58", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/notify.go", "func_name": "NewNotifier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewNotifier builds a Notifier that can be used to notify other peers using\n// the given policy.", "docstring_tokens": ["NewNotifier", "builds", "a", "Notifier", "that", "can", "be", "used", "to", "notify", "other", "peers", "using", "the", "given", "policy", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/notify.go#L33-L112", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/events.go", "func_name": "Events", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Events starts a task that continuously monitors the list of cluster nodes and\n// maintains a pool of websocket connections against all of them, in order to\n// get notified about events.\n//\n// Whenever an event is received the given callback is invoked.", "docstring_tokens": ["Events", "starts", "a", "task", "that", "continuously", "monitors", "the", "list", "of", "cluster", "nodes", "and", "maintains", "a", "pool", "of", "websocket", "connections", "against", "all", "of", "them", "in", "order", "to", "get", "notified", "about", "events", ".", "Whenever", "an", "event", "is", "received", "the", "given", "callback", "is", "invoked", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/events.go#L21-L43", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/events.go", "func_name": "eventsConnect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Establish a client connection to get events from the given node.", "docstring_tokens": ["Establish", "a", "client", "connection", "to", "get", "events", "from", "the", "given", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/events.go#L115-L126", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_dir.go", "func_name": "StoragePoolInit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Initialize a full storage interface.", "docstring_tokens": ["Initialize", "a", "full", "storage", "interface", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_dir.go#L44-L51", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/apparmor.go", "func_name": "getAAProfileContent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getProfileContent generates the apparmor profile template from the given\n// container. This includes the stock lxc includes as well as stuff from\n// raw.apparmor.", "docstring_tokens": ["getProfileContent", "generates", "the", "apparmor", "profile", "template", "from", "the", "given", "container", ".", "This", "includes", "the", "stock", "lxc", "includes", "as", "well", "as", "stuff", "from", "raw", ".", "apparmor", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/apparmor.go#L517-L604", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/apparmor.go", "func_name": "AALoadProfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ensure that the container's policy is loaded into the kernel so the\n// container can boot.", "docstring_tokens": ["Ensure", "that", "the", "container", "s", "policy", "is", "loaded", "into", "the", "kernel", "so", "the", "container", "can", "boot", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/apparmor.go#L663-L707", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/apparmor.go", "func_name": "AADestroy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ensure that the container's policy namespace is unloaded to free kernel\n// memory. This does not delete the policy from disk or cache.", "docstring_tokens": ["Ensure", "that", "the", "container", "s", "policy", "namespace", "is", "unloaded", "to", "free", "kernel", "memory", ".", "This", "does", "not", "delete", "the", "policy", "from", "disk", "or", "cache", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/apparmor.go#L711-L725", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/apparmor.go", "func_name": "AAParseProfile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse the profile without loading it into the kernel.", "docstring_tokens": ["Parse", "the", "profile", "without", "loading", "it", "into", "the", "kernel", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/apparmor.go#L728-L735", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logging/log_windows.go", "func_name": "getSystemHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getSystemHandler on Windows does nothing.", "docstring_tokens": ["getSystemHandler", "on", "Windows", "does", "nothing", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logging/log_windows.go#L10-L12", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/upgrade.go", "func_name": "NotifyUpgradeCompleted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotifyUpgradeCompleted sends a notification to all other nodes in the\n// cluster that any possible pending database update has been applied, and any\n// nodes which was waiting for this node to be upgraded should re-check if it's\n// okay to move forward.", "docstring_tokens": ["NotifyUpgradeCompleted", "sends", "a", "notification", "to", "all", "other", "nodes", "in", "the", "cluster", "that", "any", "possible", "pending", "database", "update", "has", "been", "applied", "and", "any", "nodes", "which", "was", "waiting", "for", "this", "node", "to", "be", "upgraded", "should", "re", "-", "check", "if", "it", "s", "okay", "to", "move", "forward", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/upgrade.go#L23-L56", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/upgrade.go", "func_name": "KeepUpdated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeepUpdated is a task that continuously monitor this node's version to see it\n// it's out of date with respect to other nodes. In the node is out of date,\n// and the LXD_CLUSTER_UPDATE environment variable is set, then the task\n// executes the executable that the variable is pointing at.", "docstring_tokens": ["KeepUpdated", "is", "a", "task", "that", "continuously", "monitor", "this", "node", "s", "version", "to", "see", "it", "it", "s", "out", "of", "date", "with", "respect", "to", "other", "nodes", ".", "In", "the", "node", "is", "out", "of", "date", "and", "the", "LXD_CLUSTER_UPDATE", "environment", "variable", "is", "set", "then", "the", "task", "executes", "the", "executable", "that", "the", "variable", "is", "pointing", "at", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/upgrade.go#L62-L78", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/upgrade.go", "func_name": "maybeUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check this node's version and possibly run LXD_CLUSTER_UPDATE.", "docstring_tokens": ["Check", "this", "node", "s", "version", "and", "possibly", "run", "LXD_CLUSTER_UPDATE", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/upgrade.go#L81-L128", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/rbac/server.go", "func_name": "NewServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServer returns a new RBAC server instance.", "docstring_tokens": ["NewServer", "returns", "a", "new", "RBAC", "server", "instance", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/rbac/server.go#L64-L102", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/rbac/server.go", "func_name": "StartStatusCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartStatusCheck starts a periodic status checker.", "docstring_tokens": ["StartStatusCheck", "starts", "a", "periodic", "status", "checker", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/rbac/server.go#L105-L122", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/rbac/server.go", "func_name": "SyncProjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SyncProjects updates the list of projects in RBAC", "docstring_tokens": ["SyncProjects", "updates", "the", "list", "of", "projects", "in", "RBAC"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/rbac/server.go#L130-L166", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/rbac/server.go", "func_name": "AddProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddProject adds a new project resource to RBAC.", "docstring_tokens": ["AddProject", "adds", "a", "new", "project", "resource", "to", "RBAC", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/rbac/server.go#L169-L187", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/rbac/server.go", "func_name": "DeleteProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteProject adds a new project resource to RBAC.", "docstring_tokens": ["DeleteProject", "adds", "a", "new", "project", "resource", "to", "RBAC", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/rbac/server.go#L190-L208", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/rbac/server.go", "func_name": "RenameProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenameProject renames an existing project resource in RBAC.", "docstring_tokens": ["RenameProject", "renames", "an", "existing", "project", "resource", "in", "RBAC", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/rbac/server.go#L211-L213", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/rbac/server.go", "func_name": "IsAdmin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsAdmin returns whether or not the provided user is an admin.", "docstring_tokens": ["IsAdmin", "returns", "whether", "or", "not", "the", "provided", "user", "is", "an", "admin", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/rbac/server.go#L216-L228", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/rbac/server.go", "func_name": "HasPermission", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasPermission returns whether or not the user has the permission to perform a certain task.", "docstring_tokens": ["HasPermission", "returns", "whether", "or", "not", "the", "user", "has", "the", "permission", "to", "perform", "a", "certain", "task", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/rbac/server.go#L231-L247", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd-p2c/transfer.go", "func_name": "rsyncSend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send an rsync stream of a path over a websocket", "docstring_tokens": ["Send", "an", "rsync", "stream", "of", "a", "path", "over", "a", "websocket"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd-p2c/transfer.go#L21-L49", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd-p2c/transfer.go", "func_name": "rsyncSendSetup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Spawn the rsync process", "docstring_tokens": ["Spawn", "the", "rsync", "process"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd-p2c/transfer.go#L52-L139", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/tls.go", "func_name": "tlsClientConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a TLS configuration suitable for establishing inter-node network\n// connections using the cluster certificate.", "docstring_tokens": ["Return", "a", "TLS", "configuration", "suitable", "for", "establishing", "inter", "-", "node", "network", "connections", "using", "the", "cluster", "certificate", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/tls.go#L15-L38", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/tls.go", "func_name": "tlsCheckCert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return true if the given request is presenting the given cluster certificate.", "docstring_tokens": ["Return", "true", "if", "the", "given", "request", "is", "presenting", "the", "given", "cluster", "certificate", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/tls.go#L41-L54", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_post.go", "func_name": "internalClusterContainerMovedPost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Notification that a container was moved.\n//\n// At the moment it's used for ceph-based containers, where the target node needs\n// to create the appropriate mount points.", "docstring_tokens": ["Notification", "that", "a", "container", "was", "moved", ".", "At", "the", "moment", "it", "s", "used", "for", "ceph", "-", "based", "containers", "where", "the", "target", "node", "needs", "to", "create", "the", "appropriate", "mount", "points", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_post.go#L505-L513", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container_post.go", "func_name": "containerPostCreateContainerMountPoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Used after to create the appropriate mounts point after a container has been\n// moved.", "docstring_tokens": ["Used", "after", "to", "create", "the", "appropriate", "mounts", "point", "after", "a", "container", "has", "been", "moved", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container_post.go#L517-L549", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/types/devices.go", "func_name": "Contains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Contains checks if a given device exists in the set and if it's\n// identical to that provided", "docstring_tokens": ["Contains", "checks", "if", "a", "given", "device", "exists", "in", "the", "set", "and", "if", "it", "s", "identical", "to", "that", "provided"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/types/devices.go#L17-L26", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/types/devices.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update returns the difference between two sets", "docstring_tokens": ["Update", "returns", "the", "difference", "between", "two", "sets"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/types/devices.go#L29-L77", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/types/devices.go", "func_name": "DeviceNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeviceNames returns the name of all devices in the set, sorted properly", "docstring_tokens": ["DeviceNames", "returns", "the", "name", "of", "all", "devices", "in", "the", "set", "sorted", "properly"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/types/devices.go#L80-L88", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logger/log.go", "func_name": "Infof", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Infof logs at the INFO log level using a standard printf format string", "docstring_tokens": ["Infof", "logs", "at", "the", "INFO", "log", "level", "using", "a", "standard", "printf", "format", "string"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logger/log.go#L69-L73", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logger/log.go", "func_name": "Debugf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Debugf logs at the DEBUG log level using a standard printf format string", "docstring_tokens": ["Debugf", "logs", "at", "the", "DEBUG", "log", "level", "using", "a", "standard", "printf", "format", "string"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logger/log.go#L76-L80", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logger/log.go", "func_name": "Warnf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Warnf logs at the WARNING log level using a standard printf format string", "docstring_tokens": ["Warnf", "logs", "at", "the", "WARNING", "log", "level", "using", "a", "standard", "printf", "format", "string"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logger/log.go#L83-L87", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logger/log.go", "func_name": "Errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Errorf logs at the ERROR log level using a standard printf format string", "docstring_tokens": ["Errorf", "logs", "at", "the", "ERROR", "log", "level", "using", "a", "standard", "printf", "format", "string"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logger/log.go#L90-L94", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logger/log.go", "func_name": "Critf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Critf logs at the CRITICAL log level using a standard printf format string", "docstring_tokens": ["Critf", "logs", "at", "the", "CRITICAL", "log", "level", "using", "a", "standard", "printf", "format", "string"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logger/log.go#L97-L101", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/events.go", "func_name": "eventForward", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Forward to the local events dispatcher an event received from another node .", "docstring_tokens": ["Forward", "to", "the", "local", "events", "dispatcher", "an", "event", "received", "from", "another", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/events.go#L232-L254", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage.go", "func_name": "StorageProgressReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageProgressReader reports the read progress.", "docstring_tokens": ["StorageProgressReader", "reports", "the", "read", "progress", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage.go#L807-L826", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage.go", "func_name": "StorageProgressWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageProgressWriter reports the write progress.", "docstring_tokens": ["StorageProgressWriter", "reports", "the", "write", "progress", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage.go#L829-L848", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/osarch/release.go", "func_name": "GetLSBRelease", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLSBRelease returns a map with Linux distribution information", "docstring_tokens": ["GetLSBRelease", "returns", "a", "map", "with", "Linux", "distribution", "information"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/osarch/release.go#L11-L17", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/file/write.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset an auto-generated source file, writing a new empty file header.", "docstring_tokens": ["Reset", "an", "auto", "-", "generated", "source", "file", "writing", "a", "new", "empty", "file", "header", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/file/write.go#L12-L44", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/file/write.go", "func_name": "Append", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Append a code snippet to a file.", "docstring_tokens": ["Append", "a", "code", "snippet", "to", "a", "file", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/file/write.go#L47-L79", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerToArgs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerToArgs is a convenience to convert the new Container db struct into\n// the legacy ContainerArgs.", "docstring_tokens": ["ContainerToArgs", "is", "a", "convenience", "to", "convert", "the", "new", "Container", "db", "struct", "into", "the", "legacy", "ContainerArgs", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L95-L119", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerNames returns the names of all containers the given project.", "docstring_tokens": ["ContainerNames", "returns", "the", "names", "of", "all", "containers", "the", "given", "project", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L170-L177", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerNodeAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerNodeAddress returns the address of the node hosting the container\n// with the given name in the given project.\n//\n// It returns the empty string if the container is hosted on this node.", "docstring_tokens": ["ContainerNodeAddress", "returns", "the", "address", "of", "the", "node", "hosting", "the", "container", "with", "the", "given", "name", "in", "the", "given", "project", ".", "It", "returns", "the", "empty", "string", "if", "the", "container", "is", "hosted", "on", "this", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L183-L222", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainersListByNodeAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainersListByNodeAddress returns the names of all containers grouped by\n// cluster node address.\n//\n// The node address of containers running on the local node is set to the empty\n// string, to distinguish it from remote nodes.\n//\n// Containers whose node is down are addeded to the special address \"0.0.0.0\".", "docstring_tokens": ["ContainersListByNodeAddress", "returns", "the", "names", "of", "all", "containers", "grouped", "by", "cluster", "node", "address", ".", "The", "node", "address", "of", "containers", "running", "on", "the", "local", "node", "is", "set", "to", "the", "empty", "string", "to", "distinguish", "it", "from", "remote", "nodes", ".", "Containers", "whose", "node", "is", "down", "are", "addeded", "to", "the", "special", "address", "0", ".", "0", ".", "0", ".", "0", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L231-L276", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerListExpanded", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerListExpanded loads all containers across all projects and expands\n// their config and devices using the profiles they are associated to.", "docstring_tokens": ["ContainerListExpanded", "loads", "all", "containers", "across", "all", "projects", "and", "expands", "their", "config", "and", "devices", "using", "the", "profiles", "they", "are", "associated", "to", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L280-L314", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainersByNodeName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainersByNodeName returns a map associating each container to the name of\n// its node.", "docstring_tokens": ["ContainersByNodeName", "returns", "a", "map", "associating", "each", "container", "to", "the", "name", "of", "its", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L318-L350", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "SnapshotIDsAndNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SnapshotIDsAndNames returns a map of snapshot IDs to snapshot names for the\n// container with the given name.", "docstring_tokens": ["SnapshotIDsAndNames", "returns", "a", "map", "of", "snapshot", "IDs", "to", "snapshot", "names", "for", "the", "container", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L354-L382", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerNodeList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerNodeList returns all container objects on the local node.", "docstring_tokens": ["ContainerNodeList", "returns", "all", "container", "objects", "on", "the", "local", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L494-L505", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerNodeProjectList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerNodeProjectList returns all container objects on the local node within the given project.", "docstring_tokens": ["ContainerNodeProjectList", "returns", "all", "container", "objects", "on", "the", "local", "node", "within", "the", "given", "project", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L508-L520", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerRemove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerRemove removes the container with the given name from the database.", "docstring_tokens": ["ContainerRemove", "removes", "the", "container", "with", "the", "given", "name", "from", "the", "database", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L528-L532", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerProjectAndName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerProjectAndName returns the project and the name of the container\n// with the given ID.", "docstring_tokens": ["ContainerProjectAndName", "returns", "the", "project", "and", "the", "name", "of", "the", "container", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L536-L553", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerConfigClear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerConfigClear removes any config associated with the container with\n// the given ID.", "docstring_tokens": ["ContainerConfigClear", "removes", "any", "config", "associated", "with", "the", "container", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L571-L590", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerConfigGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerConfigGet returns the value of the given key in the configuration\n// of the container with the given ID.", "docstring_tokens": ["ContainerConfigGet", "returns", "the", "value", "of", "the", "given", "key", "in", "the", "configuration", "of", "the", "container", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L619-L630", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerConfigRemove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerConfigRemove removes the given key from the config of the container\n// with the given ID.", "docstring_tokens": ["ContainerConfigRemove", "removes", "the", "given", "key", "from", "the", "config", "of", "the", "container", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L634-L637", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerSetStateful", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerSetStateful toggles the stateful flag of the container with the\n// given ID.", "docstring_tokens": ["ContainerSetStateful", "toggles", "the", "stateful", "flag", "of", "the", "container", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L641-L649", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerProfilesInsert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerProfilesInsert associates the container with the given ID with the\n// profiles with the given names in the given project.", "docstring_tokens": ["ContainerProfilesInsert", "associates", "the", "container", "with", "the", "given", "ID", "with", "the", "profiles", "with", "the", "given", "names", "in", "the", "given", "project", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L653-L690", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerProfiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerProfiles returns a list of profiles for a given container ID.", "docstring_tokens": ["ContainerProfiles", "returns", "a", "list", "of", "profiles", "for", "a", "given", "container", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L693-L717", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerConfig gets the container configuration map from the DB", "docstring_tokens": ["ContainerConfig", "gets", "the", "container", "configuration", "map", "from", "the", "DB"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L720-L743", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerSetState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerSetState sets the the power state of the container with the given ID.", "docstring_tokens": ["ContainerSetState", "sets", "the", "the", "power", "state", "of", "the", "container", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L795-L811", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerUpdate updates the description, architecture and ephemeral flag of\n// the container with the given ID.", "docstring_tokens": ["ContainerUpdate", "updates", "the", "description", "architecture", "and", "ephemeral", "flag", "of", "the", "container", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L815-L839", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerLastUsedUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerLastUsedUpdate updates the last_use_date field of the container\n// with the given ID.", "docstring_tokens": ["ContainerLastUsedUpdate", "updates", "the", "last_use_date", "field", "of", "the", "container", "with", "the", "given", "ID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L851-L855", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerGetSnapshots", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerGetSnapshots returns the names of all snapshots of the container\n// in the given project with the given name.", "docstring_tokens": ["ContainerGetSnapshots", "returns", "the", "names", "of", "all", "snapshots", "of", "the", "container", "in", "the", "given", "project", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L859-L882", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerGetSnapshotsFull", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerGetSnapshotsFull returns all container objects for snapshots of a given container", "docstring_tokens": ["ContainerGetSnapshotsFull", "returns", "all", "container", "objects", "for", "snapshots", "of", "a", "given", "container"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L885-L893", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerNextSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerNextSnapshot returns the index the next snapshot of the container\n// with the given name and pattern should have.", "docstring_tokens": ["ContainerNextSnapshot", "returns", "the", "index", "the", "next", "snapshot", "of", "the", "container", "with", "the", "given", "name", "and", "pattern", "should", "have", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L897-L929", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerPool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerPool returns the storage pool of a given container.", "docstring_tokens": ["ContainerPool", "returns", "the", "storage", "pool", "of", "a", "given", "container", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L945-L970", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerGetBackup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerGetBackup returns the backup with the given name.", "docstring_tokens": ["ContainerGetBackup", "returns", "the", "backup", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L987-L1023", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerGetBackups", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerGetBackups returns the names of all backups of the container\n// with the given name.", "docstring_tokens": ["ContainerGetBackups", "returns", "the", "names", "of", "all", "backups", "of", "the", "container", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L1027-L1046", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerBackupCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerBackupCreate creates a new backup", "docstring_tokens": ["ContainerBackupCreate", "creates", "a", "new", "backup"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L1049-L1088", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerBackupRemove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerBackupRemove removes the container backup with the given name from\n// the database.", "docstring_tokens": ["ContainerBackupRemove", "removes", "the", "container", "backup", "with", "the", "given", "name", "from", "the", "database", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L1092-L1104", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerBackupRename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerBackupRename renames a container backup from the given current name\n// to the new one.", "docstring_tokens": ["ContainerBackupRename", "renames", "a", "container", "backup", "from", "the", "given", "current", "name", "to", "the", "new", "one", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L1108-L1130", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.go", "func_name": "ContainerBackupsGetExpired", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerBackupsGetExpired returns a list of expired container backups.", "docstring_tokens": ["ContainerBackupsGetExpired", "returns", "a", "list", "of", "expired", "container", "backups", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.go#L1133-L1166", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/sys/os.go", "func_name": "DefaultOS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultOS returns a fresh uninitialized OS instance with default values.", "docstring_tokens": ["DefaultOS", "returns", "a", "fresh", "uninitialized", "OS", "instance", "with", "default", "values", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/sys/os.go#L71-L80", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/sys/os.go", "func_name": "Init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Init our internal data structures.", "docstring_tokens": ["Init", "our", "internal", "data", "structures", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/sys/os.go#L83-L109", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/operations.go", "func_name": "GetWebsocket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetWebsocket returns a raw websocket connection from the operation", "docstring_tokens": ["GetWebsocket", "returns", "a", "raw", "websocket", "connection", "from", "the", "operation"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/operations.go#L67-L69", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/operations.go", "func_name": "Refresh", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Refresh pulls the current version of the operation and updates the struct", "docstring_tokens": ["Refresh", "pulls", "the", "current", "version", "of", "the", "operation", "and", "updates", "the", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/operations.go#L86-L97", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/operations.go", "func_name": "CancelTarget", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CancelTarget attempts to cancel the target operation", "docstring_tokens": ["CancelTarget", "attempts", "to", "cancel", "the", "target", "operation"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/operations.go#L285-L291", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/operations.go", "func_name": "GetTarget", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTarget returns the target operation", "docstring_tokens": ["GetTarget", "returns", "the", "target", "operation"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/operations.go#L294-L301", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/endpoints.go", "func_name": "up", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Up brings up all configured endpoints and starts accepting HTTP requests.", "docstring_tokens": ["Up", "brings", "up", "all", "configured", "endpoints", "and", "starts", "accepting", "HTTP", "requests", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/endpoints.go#L151-L231", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/endpoints.go", "func_name": "Down", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Down brings down all endpoints and stops serving HTTP requests.", "docstring_tokens": ["Down", "brings", "down", "all", "endpoints", "and", "stops", "serving", "HTTP", "requests", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/endpoints.go#L234-L281", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/endpoints.go", "func_name": "serveHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start an HTTP server for the endpoint associated with the given code.", "docstring_tokens": ["Start", "an", "HTTP", "server", "for", "the", "endpoint", "associated", "with", "the", "given", "code", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/endpoints.go#L284-L311", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/endpoints.go", "func_name": "closeListener", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop the HTTP server of the endpoint associated with the given code. The\n// associated socket will be shutdown too.", "docstring_tokens": ["Stop", "the", "HTTP", "server", "of", "the", "endpoint", "associated", "with", "the", "given", "code", ".", "The", "associated", "socket", "will", "be", "shutdown", "too", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/endpoints.go#L315-L325", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/endpoints.go", "func_name": "activatedListeners", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Use the listeners associated with the file descriptors passed via\n// socket-based activation.", "docstring_tokens": ["Use", "the", "listeners", "associated", "with", "the", "file", "descriptors", "passed", "via", "socket", "-", "based", "activation", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/endpoints.go#L329-L345", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/config.go", "func_name": "CandidServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CandidServer returns all the Candid settings needed to connect to a server.", "docstring_tokens": ["CandidServer", "returns", "all", "the", "Candid", "settings", "needed", "to", "connect", "to", "a", "server", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/config.go#L68-L73", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/config.go", "func_name": "RBACServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RBACServer returns all the Candid settings needed to connect to a server.", "docstring_tokens": ["RBACServer", "returns", "all", "the", "Candid", "settings", "needed", "to", "connect", "to", "a", "server", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/config.go#L76-L84", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/config.go", "func_name": "AutoUpdateInterval", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AutoUpdateInterval returns the configured images auto update interval.", "docstring_tokens": ["AutoUpdateInterval", "returns", "the", "configured", "images", "auto", "update", "interval", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/config.go#L87-L90", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/config.go", "func_name": "MAASController", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MAASController the configured MAAS url and key, if any.", "docstring_tokens": ["MAASController", "the", "configured", "MAAS", "url", "and", "key", "if", "any", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/config.go#L114-L118", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/config.go", "func_name": "OfflineThreshold", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OfflineThreshold returns the configured heartbeat threshold, i.e. the\n// number of seconds before after which an unresponsive node is considered\n// offline..", "docstring_tokens": ["OfflineThreshold", "returns", "the", "configured", "heartbeat", "threshold", "i", ".", "e", ".", "the", "number", "of", "seconds", "before", "after", "which", "an", "unresponsive", "node", "is", "considered", "offline", ".."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/config.go#L123-L126", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/config.go", "func_name": "ConfigGetString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConfigGetString is a convenience for loading the cluster configuration and\n// returning the value of a particular key.\n//\n// It's a deprecated API meant to be used by call sites that are not\n// interacting with the database in a transactional way.", "docstring_tokens": ["ConfigGetString", "is", "a", "convenience", "for", "loading", "the", "cluster", "configuration", "and", "returning", "the", "value", "of", "a", "particular", "key", ".", "It", "s", "a", "deprecated", "API", "meant", "to", "be", "used", "by", "call", "sites", "that", "are", "not", "interacting", "with", "the", "database", "in", "a", "transactional", "way", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/config.go#L176-L182", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/config.go", "func_name": "ConfigGetBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConfigGetBool is a convenience for loading the cluster configuration and\n// returning the value of a particular boolean key.\n//\n// It's a deprecated API meant to be used by call sites that are not\n// interacting with the database in a transactional way.", "docstring_tokens": ["ConfigGetBool", "is", "a", "convenience", "for", "loading", "the", "cluster", "configuration", "and", "returning", "the", "value", "of", "a", "particular", "boolean", "key", ".", "It", "s", "a", "deprecated", "API", "meant", "to", "be", "used", "by", "call", "sites", "that", "are", "not", "interacting", "with", "the", "database", "in", "a", "transactional", "way", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/config.go#L189-L195", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/config.go", "func_name": "ConfigGetInt64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConfigGetInt64 is a convenience for loading the cluster configuration and\n// returning the value of a particular key.\n//\n// It's a deprecated API meant to be used by call sites that are not\n// interacting with the database in a transactional way.", "docstring_tokens": ["ConfigGetInt64", "is", "a", "convenience", "for", "loading", "the", "cluster", "configuration", "and", "returning", "the", "value", "of", "a", "particular", "key", ".", "It", "s", "a", "deprecated", "API", "meant", "to", "be", "used", "by", "call", "sites", "that", "are", "not", "interacting", "with", "the", "database", "in", "a", "transactional", "way", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/config.go#L202-L208", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/cluster.go", "func_name": "ClusterAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClusterAddress returns the cluster addresss of the cluster endpoint, or an\n// empty string if there's no cluster endpoint.", "docstring_tokens": ["ClusterAddress", "returns", "the", "cluster", "addresss", "of", "the", "cluster", "endpoint", "or", "an", "empty", "string", "if", "there", "s", "no", "cluster", "endpoint", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/cluster.go#L16-L25", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logger/log_debug.go", "func_name": "Debug", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// General wrappers around Logger interface functions.", "docstring_tokens": ["General", "wrappers", "around", "Logger", "interface", "functions", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logger/log_debug.go#L33-L39", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api.go", "func_name": "RestServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestServer creates an http.Server capable of handling requests against the LXD REST\n// API endpoint.", "docstring_tokens": ["RestServer", "creates", "an", "http", ".", "Server", "capable", "of", "handling", "requests", "against", "the", "LXD", "REST", "API", "endpoint", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api.go#L18-L47", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api.go", "func_name": "projectParam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Extract the project query parameter from the given request.", "docstring_tokens": ["Extract", "the", "project", "query", "parameter", "from", "the", "given", "request", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api.go#L113-L119", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/api.go", "func_name": "queryParam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Extract the given query parameter directly from the URL, never from an\n// encoded body.", "docstring_tokens": ["Extract", "the", "given", "query", "parameter", "directly", "from", "the", "URL", "never", "from", "an", "encoded", "body", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/api.go#L123-L140", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db.go", "func_name": "newDb", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a new db command.", "docstring_tokens": ["Return", "a", "new", "db", "command", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db.go#L15-L28", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/operations.go", "func_name": "Description", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Description return a human-readable description of the operation type.", "docstring_tokens": ["Description", "return", "a", "human", "-", "readable", "description", "of", "the", "operation", "type", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/operations.go#L68-L163", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/operations.go", "func_name": "Permission", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Permission returns the needed RBAC permission to cancel the oepration", "docstring_tokens": ["Permission", "returns", "the", "needed", "RBAC", "permission", "to", "cancel", "the", "oepration"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/operations.go#L166-L231", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/operations.go", "func_name": "OperationsUUIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OperationsUUIDs returns the UUIDs of all operations associated with this\n// node.", "docstring_tokens": ["OperationsUUIDs", "returns", "the", "UUIDs", "of", "all", "operations", "associated", "with", "this", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/operations.go#L249-L252", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/operations.go", "func_name": "OperationNodes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OperationNodes returns a list of nodes that have running operations", "docstring_tokens": ["OperationNodes", "returns", "a", "list", "of", "nodes", "that", "have", "running", "operations"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/operations.go#L255-L264", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/operations.go", "func_name": "OperationByUUID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OperationByUUID returns the operation with the given UUID.", "docstring_tokens": ["OperationByUUID", "returns", "the", "operation", "with", "the", "given", "UUID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/operations.go#L267-L281", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/operations.go", "func_name": "OperationAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OperationAdd adds a new operations to the table.", "docstring_tokens": ["OperationAdd", "adds", "a", "new", "operations", "to", "the", "table", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/operations.go#L284-L300", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/operations.go", "func_name": "OperationRemove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OperationRemove removes the operation with the given UUID.", "docstring_tokens": ["OperationRemove", "removes", "the", "operation", "with", "the", "given", "UUID", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/operations.go#L303-L316", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/operations.go", "func_name": "operations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Operations returns all operations in the cluster, filtered by the given clause.", "docstring_tokens": ["Operations", "returns", "all", "operations", "in", "the", "cluster", "filtered", "by", "the", "given", "clause", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/operations.go#L319-L346", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/logging.go", "func_name": "expireLogsTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This task function expires logs when executed. It's started by the Daemon\n// and will run once every 24h.", "docstring_tokens": ["This", "task", "function", "expires", "logs", "when", "executed", ".", "It", "s", "started", "by", "the", "Daemon", "and", "will", "run", "once", "every", "24h", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/logging.go#L20-L41", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/file/path.go", "func_name": "absPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Given its relative path with respect to the LXD surce tree, return the full\n// path of a file.", "docstring_tokens": ["Given", "its", "relative", "path", "with", "respect", "to", "the", "LXD", "surce", "tree", "return", "the", "full", "path", "of", "a", "file", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/file/path.go#L12-L28", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/schema.go", "func_name": "Keys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Keys returns all keys defined in the schema", "docstring_tokens": ["Keys", "returns", "all", "keys", "defined", "in", "the", "schema"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/schema.go#L17-L26", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/schema.go", "func_name": "Defaults", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Defaults returns a map of all key names in the schema along with their default\n// values.", "docstring_tokens": ["Defaults", "returns", "a", "map", "of", "all", "key", "names", "in", "the", "schema", "along", "with", "their", "default", "values", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/schema.go#L30-L36", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/schema.go", "func_name": "mustGetKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get the Key associated with the given name, or panic.", "docstring_tokens": ["Get", "the", "Key", "associated", "with", "the", "given", "name", "or", "panic", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/schema.go#L39-L45", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/schema.go", "func_name": "assertKeyType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Assert that the Key with the given name as the given type. Panic if no Key\n// with such name exists, or if it does not match the tiven type.", "docstring_tokens": ["Assert", "that", "the", "Key", "with", "the", "given", "name", "as", "the", "given", "type", ".", "Panic", "if", "no", "Key", "with", "such", "name", "exists", "or", "if", "it", "does", "not", "match", "the", "tiven", "type", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/schema.go#L49-L54", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/config/schema.go", "func_name": "validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tells if the given value can be assigned to this particular Value instance.", "docstring_tokens": ["Tells", "if", "the", "given", "value", "can", "be", "assigned", "to", "this", "particular", "Value", "instance", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/config/schema.go#L87-L120", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_volumes.go", "func_name": "GetStoragePoolVolumes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStoragePoolVolumes returns a list of StorageVolume entries for the provided pool", "docstring_tokens": ["GetStoragePoolVolumes", "returns", "a", "list", "of", "StorageVolume", "entries", "for", "the", "provided", "pool"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_volumes.go#L38-L52", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_volumes.go", "func_name": "GetStoragePoolVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStoragePoolVolume returns a StorageVolume entry for the provided pool and volume name", "docstring_tokens": ["GetStoragePoolVolume", "returns", "a", "StorageVolume", "entry", "for", "the", "provided", "pool", "and", "volume", "name"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_volumes.go#L55-L70", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_volumes.go", "func_name": "CreateStoragePoolVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateStoragePoolVolume defines a new storage volume", "docstring_tokens": ["CreateStoragePoolVolume", "defines", "a", "new", "storage", "volume"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_volumes.go#L73-L86", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_volumes.go", "func_name": "CreateStoragePoolVolumeSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateStoragePoolVolumeSnapshot defines a new storage volume", "docstring_tokens": ["CreateStoragePoolVolumeSnapshot", "defines", "a", "new", "storage", "volume"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_volumes.go#L89-L105", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_volumes.go", "func_name": "GetStoragePoolVolumeSnapshots", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStoragePoolVolumeSnapshots returns a list of snapshots for the storage\n// volume", "docstring_tokens": ["GetStoragePoolVolumeSnapshots", "returns", "a", "list", "of", "snapshots", "for", "the", "storage", "volume"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_volumes.go#L138-L155", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_volumes.go", "func_name": "GetStoragePoolVolumeSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStoragePoolVolumeSnapshot returns a snapshots for the storage volume", "docstring_tokens": ["GetStoragePoolVolumeSnapshot", "returns", "a", "snapshots", "for", "the", "storage", "volume"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_volumes.go#L158-L176", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_volumes.go", "func_name": "UpdateStoragePoolVolumeSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateStoragePoolVolumeSnapshot updates the volume to match the provided StoragePoolVolume struct", "docstring_tokens": ["UpdateStoragePoolVolumeSnapshot", "updates", "the", "volume", "to", "match", "the", "provided", "StoragePoolVolume", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_volumes.go#L214-L227", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_volumes.go", "func_name": "MigrateStoragePoolVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MigrateStoragePoolVolume requests that LXD prepares for a storage volume migration", "docstring_tokens": ["MigrateStoragePoolVolume", "requests", "that", "LXD", "prepares", "for", "a", "storage", "volume", "migration"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_volumes.go#L230-L248", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_volumes.go", "func_name": "MoveStoragePoolVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveStoragePoolVolume renames or moves an existing storage volume", "docstring_tokens": ["MoveStoragePoolVolume", "renames", "or", "moves", "an", "existing", "storage", "volume"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_volumes.go#L523-L555", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_volumes.go", "func_name": "UpdateStoragePoolVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateStoragePoolVolume updates the volume to match the provided StoragePoolVolume struct", "docstring_tokens": ["UpdateStoragePoolVolume", "updates", "the", "volume", "to", "match", "the", "provided", "StoragePoolVolume", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_volumes.go#L558-L575", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_volumes.go", "func_name": "DeleteStoragePoolVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteStoragePoolVolume deletes a storage pool", "docstring_tokens": ["DeleteStoragePoolVolume", "deletes", "a", "storage", "pool"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_volumes.go#L578-L591", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_volumes.go", "func_name": "RenameStoragePoolVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenameStoragePoolVolume renames a storage volume", "docstring_tokens": ["RenameStoragePoolVolume", "renames", "a", "storage", "volume"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_volumes.go#L594-L607", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_pools_utils.go", "func_name": "doStoragePoolCreateInternal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This performs all non-db related work needed to create the pool.", "docstring_tokens": ["This", "performs", "all", "non", "-", "db", "related", "work", "needed", "to", "create", "the", "pool", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_pools_utils.go#L232-L279", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container.go", "func_name": "containerGetParentAndSnapshotName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Helper functions\n// Returns the parent container name, snapshot name, and whether it actually was\n// a snapshot name.", "docstring_tokens": ["Helper", "functions", "Returns", "the", "parent", "container", "name", "snapshot", "name", "and", "whether", "it", "actually", "was", "a", "snapshot", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container.go#L39-L46", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container.go", "func_name": "containerLoadFromAllProjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load all containers across all projects.", "docstring_tokens": ["Load", "all", "containers", "across", "all", "projects", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container.go#L1427-L1449", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container.go", "func_name": "containerLoadNodeAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load all containers of this nodes.", "docstring_tokens": ["Load", "all", "containers", "of", "this", "nodes", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container.go#L1457-L1474", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/container.go", "func_name": "containerLoadNodeProjectAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load all containers of this nodes under the given project.", "docstring_tokens": ["Load", "all", "containers", "of", "this", "nodes", "under", "the", "given", "project", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/container.go#L1477-L1494", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/heartbeat.go", "func_name": "heartbeatNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Perform a single heartbeat request against the node with the given address.", "docstring_tokens": ["Perform", "a", "single", "heartbeat", "request", "against", "the", "node", "with", "the", "given", "address", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/heartbeat.go#L158-L205", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/list.go", "func_name": "dotPrefixMatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This seems a little excessive.", "docstring_tokens": ["This", "seems", "a", "little", "excessive", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/list.go#L127-L142", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_zfs.go", "func_name": "ContainerMount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Things we don't need to care about", "docstring_tokens": ["Things", "we", "don", "t", "need", "to", "care", "about"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_zfs.go#L777-L779", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_zfs.go", "func_name": "ContainerStorageReady", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Things we do have to care about", "docstring_tokens": ["Things", "we", "do", "have", "to", "care", "about"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_zfs.go#L826-L830", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cmd/ask.go", "func_name": "AskChoice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AskChoice asks the user to select one of multiple options", "docstring_tokens": ["AskChoice", "asks", "the", "user", "to", "select", "one", "of", "multiple", "options"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cmd/ask.go#L33-L43", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cmd/ask.go", "func_name": "AskInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AskInt asks the user to enter an integer between a min and max value", "docstring_tokens": ["AskInt", "asks", "the", "user", "to", "enter", "an", "integer", "between", "a", "min", "and", "max", "value"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cmd/ask.go#L46-L58", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cmd/ask.go", "func_name": "AskString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AskString asks the user to enter a string, which optionally\n// conforms to a validation function.", "docstring_tokens": ["AskString", "asks", "the", "user", "to", "enter", "a", "string", "which", "optionally", "conforms", "to", "a", "validation", "function", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cmd/ask.go#L62-L82", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cmd/ask.go", "func_name": "AskPassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AskPassword asks the user to enter a password.", "docstring_tokens": ["AskPassword", "asks", "the", "user", "to", "enter", "a", "password", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cmd/ask.go#L85-L106", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cmd/ask.go", "func_name": "AskPasswordOnce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AskPasswordOnce asks the user to enter a password.\n//\n// It's the same as AskPassword, but it won't ask to enter it again.", "docstring_tokens": ["AskPasswordOnce", "asks", "the", "user", "to", "enter", "a", "password", ".", "It", "s", "the", "same", "as", "AskPassword", "but", "it", "won", "t", "ask", "to", "enter", "it", "again", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cmd/ask.go#L111-L117", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cmd/ask.go", "func_name": "askQuestion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ask a question on the output stream and read the answer from the input stream", "docstring_tokens": ["Ask", "a", "question", "on", "the", "output", "stream", "and", "read", "the", "answer", "from", "the", "input", "stream"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cmd/ask.go#L120-L124", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/cmd/ask.go", "func_name": "readAnswer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read the user's answer from the input stream, trimming newline and providing a default.", "docstring_tokens": ["Read", "the", "user", "s", "answer", "from", "the", "input", "stream", "trimming", "newline", "and", "providing", "a", "default", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/cmd/ask.go#L127-L136", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/profiles.go", "func_name": "profilePost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// The handler for the post operation.", "docstring_tokens": ["The", "handler", "for", "the", "post", "operation", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/profiles.go#L362-L411", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/profiles.go", "func_name": "profileDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// The handler for the delete operation.", "docstring_tokens": ["The", "handler", "for", "the", "delete", "operation", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/profiles.go#L414-L447", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/container.go", "func_name": "IsRootDiskDevice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsRootDiskDevice returns true if the given device representation is\n// configured as root disk for a container. It typically get passed a specific\n// entry of api.Container.Devices.", "docstring_tokens": ["IsRootDiskDevice", "returns", "true", "if", "the", "given", "device", "representation", "is", "configured", "as", "root", "disk", "for", "a", "container", ".", "It", "typically", "get", "passed", "a", "specific", "entry", "of", "api", ".", "Container", ".", "Devices", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/container.go#L111-L117", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/container.go", "func_name": "GetRootDiskDevice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRootDiskDevice returns the container device that is configured as root disk", "docstring_tokens": ["GetRootDiskDevice", "returns", "the", "container", "device", "that", "is", "configured", "as", "root", "disk"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/container.go#L120-L140", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/response.go", "func_name": "ForwardedResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForwardedResponse takes a request directed to a node and forwards it to\n// another node, writing back the response it gegs.", "docstring_tokens": ["ForwardedResponse", "takes", "a", "request", "directed", "to", "a", "node", "and", "forwards", "it", "to", "another", "node", "writing", "back", "the", "response", "it", "gegs", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/response.go#L156-L161", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/response.go", "func_name": "ForwardedResponseIfTargetIsRemote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForwardedResponseIfTargetIsRemote redirects a request to the request has a\n// targetNode parameter pointing to a node which is not the local one.", "docstring_tokens": ["ForwardedResponseIfTargetIsRemote", "redirects", "a", "request", "to", "the", "request", "has", "a", "targetNode", "parameter", "pointing", "to", "a", "node", "which", "is", "not", "the", "local", "one", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/response.go#L165-L189", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/response.go", "func_name": "ForwardedResponseIfContainerIsRemote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForwardedResponseIfContainerIsRemote redirects a request to the node running\n// the container with the given name. If the container is local, nothing gets\n// done and nil is returned.", "docstring_tokens": ["ForwardedResponseIfContainerIsRemote", "redirects", "a", "request", "to", "the", "node", "running", "the", "container", "with", "the", "given", "name", ".", "If", "the", "container", "is", "local", "nothing", "gets", "done", "and", "nil", "is", "returned", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/response.go#L194-L204", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/response.go", "func_name": "ForwardedOperationResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForwardedOperationResponse creates a response that forwards the metadata of\n// an operation created on another node.", "docstring_tokens": ["ForwardedOperationResponse", "creates", "a", "response", "that", "forwards", "the", "metadata", "of", "an", "operation", "created", "on", "another", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/response.go#L419-L424", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/utils/progress.go", "func_name": "Done", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Done prints the final status and prevents any update", "docstring_tokens": ["Done", "prints", "the", "final", "status", "and", "prevents", "any", "update"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/utils/progress.go#L42-L81", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/utils/progress.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update changes the status message to the provided string", "docstring_tokens": ["Update", "changes", "the", "status", "message", "to", "the", "provided", "string"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/utils/progress.go#L84-L141", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/utils/progress.go", "func_name": "Warn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Warn shows a temporary message instead of the status", "docstring_tokens": ["Warn", "shows", "a", "temporary", "message", "instead", "of", "the", "status"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/utils/progress.go#L144-L173", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/utils/progress.go", "func_name": "UpdateProgress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateProgress is a helper to update the status using an iopgress instance", "docstring_tokens": ["UpdateProgress", "is", "a", "helper", "to", "update", "the", "status", "using", "an", "iopgress", "instance"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/utils/progress.go#L176-L178", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxc/utils/progress.go", "func_name": "UpdateOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateOp is a helper to update the status using a LXD API operation", "docstring_tokens": ["UpdateOp", "is", "a", "helper", "to", "update", "the", "status", "using", "a", "LXD", "API", "operation"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxc/utils/progress.go#L181-L194", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/cluster/update.go", "func_name": "updateFromV6", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// The zfs.pool_name config key is node-specific, and needs to be linked to\n// nodes.", "docstring_tokens": ["The", "zfs", ".", "pool_name", "config", "key", "is", "node", "-", "specific", "and", "needs", "to", "be", "linked", "to", "nodes", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/cluster/update.go#L636-L684", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/local.go", "func_name": "localCreateListener", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a new net.Listener bound to the unix socket of the local endpoint.", "docstring_tokens": ["Create", "a", "new", "net", ".", "Listener", "bound", "to", "the", "unix", "socket", "of", "the", "local", "endpoint", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/local.go#L8-L31", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/stmt.go", "func_name": "NewStmt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStmt return a new statement code snippet for running the given kind of\n// query against the given database entity.", "docstring_tokens": ["NewStmt", "return", "a", "new", "statement", "code", "snippet", "for", "running", "the", "given", "kind", "of", "query", "against", "the", "given", "database", "entity", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/stmt.go#L25-L41", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/stmt.go", "func_name": "Generate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Generate plumbing and wiring code for the desired statement.", "docstring_tokens": ["Generate", "plumbing", "and", "wiring", "code", "for", "the", "desired", "statement", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/stmt.go#L44-L75", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/stmt.go", "func_name": "register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Output a line of code that registers the given statement and declares the\n// associated statement code global variable.", "docstring_tokens": ["Output", "a", "line", "of", "code", "that", "registers", "the", "given", "statement", "and", "declares", "the", "associated", "statement", "code", "global", "variable", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/stmt.go#L541-L547", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/connection.go", "func_name": "httpsLXD", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Internal function called by ConnectLXD and ConnectPublicLXD", "docstring_tokens": ["Internal", "function", "called", "by", "ConnectLXD", "and", "ConnectPublicLXD"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/connection.go#L173-L214", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/api/container.go", "func_name": "IsActive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsActive checks whether the container state indicates the container is active", "docstring_tokens": ["IsActive", "checks", "whether", "the", "container", "state", "indicates", "the", "container", "is", "active"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/api/container.go#L95-L104", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/raft.go", "func_name": "RaftNodeAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RaftNodeAddress returns the address of the LXD raft node with the given ID,\n// if any matching row exists.", "docstring_tokens": ["RaftNodeAddress", "returns", "the", "address", "of", "the", "LXD", "raft", "node", "with", "the", "given", "ID", "if", "any", "matching", "row", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/raft.go#L46-L62", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/raft.go", "func_name": "RaftNodeFirst", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RaftNodeFirst adds a the first node of the cluster. It ensures that the\n// database ID is 1, to match the server ID of first raft log entry.\n//\n// This method is supposed to be called when there are no rows in raft_nodes,\n// and it will replace whatever existing row has ID 1.", "docstring_tokens": ["RaftNodeFirst", "adds", "a", "the", "first", "node", "of", "the", "cluster", ".", "It", "ensures", "that", "the", "database", "ID", "is", "1", "to", "match", "the", "server", "ID", "of", "first", "raft", "log", "entry", ".", "This", "method", "is", "supposed", "to", "be", "called", "when", "there", "are", "no", "rows", "in", "raft_nodes", "and", "it", "will", "replace", "whatever", "existing", "row", "has", "ID", "1", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/raft.go#L69-L80", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/raft.go", "func_name": "RaftNodeAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RaftNodeAdd adds a node to the current list of LXD nodes that are part of the\n// dqlite Raft cluster. It returns the ID of the newly inserted row.", "docstring_tokens": ["RaftNodeAdd", "adds", "a", "node", "to", "the", "current", "list", "of", "LXD", "nodes", "that", "are", "part", "of", "the", "dqlite", "Raft", "cluster", ".", "It", "returns", "the", "ID", "of", "the", "newly", "inserted", "row", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/raft.go#L84-L88", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/raft.go", "func_name": "RaftNodeDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RaftNodeDelete removes a node from the current list of LXD nodes that are\n// part of the dqlite Raft cluster.", "docstring_tokens": ["RaftNodeDelete", "removes", "a", "node", "from", "the", "current", "list", "of", "LXD", "nodes", "that", "are", "part", "of", "the", "dqlite", "Raft", "cluster", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/raft.go#L92-L101", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/raft.go", "func_name": "RaftNodesReplace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RaftNodesReplace replaces the current list of raft nodes.", "docstring_tokens": ["RaftNodesReplace", "replaces", "the", "current", "list", "of", "raft", "nodes", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/raft.go#L104-L119", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/sys/cgroup.go", "func_name": "initCGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Detect CGroup support.", "docstring_tokens": ["Detect", "CGroup", "support", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/sys/cgroup.go#L11-L30", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/main_activateifneeded.go", "func_name": "sqliteDirectAccess", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Configure the sqlite connection so that it's safe to access the\n// dqlite-managed sqlite file, also without setting up raft.", "docstring_tokens": ["Configure", "the", "sqlite", "connection", "so", "that", "it", "s", "safe", "to", "access", "the", "dqlite", "-", "managed", "sqlite", "file", "also", "without", "setting", "up", "raft", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/main_activateifneeded.go#L156-L180", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.mapper.go", "func_name": "ContainerGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerGet returns the container with the given key.", "docstring_tokens": ["ContainerGet", "returns", "the", "container", "with", "the", "given", "key", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.mapper.go#L322-L341", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.mapper.go", "func_name": "ContainerID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerID return the ID of the container with the given key.", "docstring_tokens": ["ContainerID", "return", "the", "ID", "of", "the", "container", "with", "the", "given", "key", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.mapper.go#L344-L370", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/containers.mapper.go", "func_name": "ContainerExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainerExists checks if a container with the given key exists.", "docstring_tokens": ["ContainerExists", "checks", "if", "a", "container", "with", "the", "given", "key", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/containers.mapper.go#L373-L383", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/mapping.go", "func_name": "ContainsFields", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContainsFields checks that the mapping contains fields with the same type\n// and name of given ones.", "docstring_tokens": ["ContainsFields", "checks", "that", "the", "mapping", "contains", "fields", "with", "the", "same", "type", "and", "name", "of", "given", "ones", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/mapping.go#L43-L55", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/mapping.go", "func_name": "FieldByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FieldByName returns the field with the given name, if any.", "docstring_tokens": ["FieldByName", "returns", "the", "field", "with", "the", "given", "name", "if", "any", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/mapping.go#L58-L66", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/mapping.go", "func_name": "FieldColumnName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FieldColumnName returns the column name of the field with the given name,\n// prefixed with the entity's table name.", "docstring_tokens": ["FieldColumnName", "returns", "the", "column", "name", "of", "the", "field", "with", "the", "given", "name", "prefixed", "with", "the", "entity", "s", "table", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/mapping.go#L70-L73", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/mapping.go", "func_name": "FilterFieldByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FilterFieldByName returns the field with the given name if that field can be\n// used as query filter, an error otherwise.", "docstring_tokens": ["FilterFieldByName", "returns", "the", "field", "with", "the", "given", "name", "if", "that", "field", "can", "be", "used", "as", "query", "filter", "an", "error", "otherwise", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/mapping.go#L77-L88", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/mapping.go", "func_name": "ColumnFields", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ColumnFields returns the fields that map directly to a database column,\n// either on this table or on a joined one.", "docstring_tokens": ["ColumnFields", "returns", "the", "fields", "that", "map", "directly", "to", "a", "database", "column", "either", "on", "this", "table", "or", "on", "a", "joined", "one", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/mapping.go#L92-L105", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/mapping.go", "func_name": "ScalarFields", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ScalarFields returns the fields that map directly to a single database\n// column on another table that can be joined to this one.", "docstring_tokens": ["ScalarFields", "returns", "the", "fields", "that", "map", "directly", "to", "a", "single", "database", "column", "on", "another", "table", "that", "can", "be", "joined", "to", "this", "one", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/mapping.go#L109-L119", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/mapping.go", "func_name": "RefFields", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RefFields returns the fields that are one-to-many references to other\n// tables.", "docstring_tokens": ["RefFields", "returns", "the", "fields", "that", "are", "one", "-", "to", "-", "many", "references", "to", "other", "tables", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/mapping.go#L123-L133", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/mapping.go", "func_name": "Column", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Column returns the name of the database column the field maps to. The type\n// code of the field must be TypeColumn.", "docstring_tokens": ["Column", "returns", "the", "name", "of", "the", "database", "column", "the", "field", "maps", "to", ".", "The", "type", "code", "of", "the", "field", "must", "be", "TypeColumn", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/mapping.go#L168-L182", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/mapping.go", "func_name": "ZeroValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ZeroValue returns the literal representing the zero value for this field. The type\n// code of the field must be TypeColumn.", "docstring_tokens": ["ZeroValue", "returns", "the", "literal", "representing", "the", "zero", "value", "for", "this", "field", ".", "The", "type", "code", "of", "the", "field", "must", "be", "TypeColumn", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/mapping.go#L186-L201", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/mapping.go", "func_name": "FieldColumns", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FieldColumns converts thegiven fields to list of column names separated\n// by a comma.", "docstring_tokens": ["FieldColumns", "converts", "thegiven", "fields", "to", "list", "of", "column", "names", "separated", "by", "a", "comma", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/mapping.go#L205-L213", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/mapping.go", "func_name": "FieldArgs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FieldArgs converts the given fields to function arguments, rendering their\n// name and type.", "docstring_tokens": ["FieldArgs", "converts", "the", "given", "fields", "to", "function", "arguments", "rendering", "their", "name", "and", "type", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/mapping.go#L217-L224", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/mapping.go", "func_name": "FieldParams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FieldParams converts the given fields to function parameters, rendering their\n// name.", "docstring_tokens": ["FieldParams", "converts", "the", "given", "fields", "to", "function", "parameters", "rendering", "their", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/mapping.go#L228-L235", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/db/mapping.go", "func_name": "FieldCriteria", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FieldCriteria converts the given fields to AND-separated WHERE criteria.", "docstring_tokens": ["FieldCriteria", "converts", "the", "given", "fields", "to", "AND", "-", "separated", "WHERE", "criteria", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/db/mapping.go#L238-L246", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/init.go", "func_name": "initDataClusterApply", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Helper to initialize LXD clustering.\n//\n// Used by the 'lxd init' command.", "docstring_tokens": ["Helper", "to", "initialize", "LXD", "clustering", ".", "Used", "by", "the", "lxd", "init", "command", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/init.go#L342-L368", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/log15/format.go", "func_name": "JsonFormatEx", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JsonFormatEx formats log records as JSON objects. If pretty is true,\n// records will be pretty-printed. If lineSeparated is true, records\n// will be logged with a new line between each record.", "docstring_tokens": ["JsonFormatEx", "formats", "log", "records", "as", "JSON", "objects", ".", "If", "pretty", "is", "true", "records", "will", "be", "pretty", "-", "printed", ".", "If", "lineSeparated", "is", "true", "records", "will", "be", "logged", "with", "a", "new", "line", "between", "each", "record", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/log15/format.go#L127-L164", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/log15/format.go", "func_name": "formatLogfmtValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// formatValue formats a value for serialization", "docstring_tokens": ["formatValue", "formats", "a", "value", "for", "serialization"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/log15/format.go#L203-L223", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/resolve.go", "func_name": "ResolveTarget", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResolveTarget is a convenience for handling the value ?targetNode query\n// parameter. It returns the address of the given node, or the empty string if\n// the given node is the local one.", "docstring_tokens": ["ResolveTarget", "is", "a", "convenience", "for", "handling", "the", "value", "?targetNode", "query", "parameter", ".", "It", "returns", "the", "address", "of", "the", "given", "node", "or", "the", "empty", "string", "if", "the", "given", "node", "is", "the", "local", "one", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/resolve.go#L12-L41", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/ioprogress/writer.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write in ProgressWriter is the same as io.Write", "docstring_tokens": ["Write", "in", "ProgressWriter", "is", "the", "same", "as", "io", ".", "Write"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/ioprogress/writer.go#L14-L25", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/cluster/query.go", "func_name": "updateNodeVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update the schema and api_extensions columns of the row in the nodes table\n// that matches the given id.\n//\n// If not such row is found, an error is returned.", "docstring_tokens": ["Update", "the", "schema", "and", "api_extensions", "columns", "of", "the", "row", "in", "the", "nodes", "table", "that", "matches", "the", "given", "id", ".", "If", "not", "such", "row", "is", "found", "an", "error", "is", "returned", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/cluster/query.go#L14-L28", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/cluster/query.go", "func_name": "selectNodesVersions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a slice of binary integer tuples. Each tuple contains the schema\n// version and number of api extensions of a node in the cluster.", "docstring_tokens": ["Return", "a", "slice", "of", "binary", "integer", "tuples", ".", "Each", "tuple", "contains", "the", "schema", "version", "and", "number", "of", "api", "extensions", "of", "a", "node", "in", "the", "cluster", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/cluster/query.go#L38-L56", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/sys.go", "func_name": "GetArchitectures", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetArchitectures returns the list of supported architectures.", "docstring_tokens": ["GetArchitectures", "returns", "the", "list", "of", "supported", "architectures", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/sys.go#L18-L40", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/sys.go", "func_name": "RuntimeLiblxcVersionAtLeast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RuntimeLiblxcVersionAtLeast checks if the system's liblxc matches the\n// provided version requirement", "docstring_tokens": ["RuntimeLiblxcVersionAtLeast", "checks", "if", "the", "system", "s", "liblxc", "matches", "the", "provided", "version", "requirement"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/sys.go#L89-L155", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/sys.go", "func_name": "GetExecPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetExecPath returns the path to the current binary", "docstring_tokens": ["GetExecPath", "returns", "the", "path", "to", "the", "current", "binary"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/sys.go#L158-L169", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/connect.go", "func_name": "Connect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Connect is a convenience around lxd.ConnectLXD that configures the client\n// with the correct parameters for node-to-node communication.\n//\n// If 'notify' switch is true, then the user agent will be set to the special\n// value 'lxd-cluster-notifier', which can be used in some cases to distinguish\n// between a regular client request and an internal cluster request.", "docstring_tokens": ["Connect", "is", "a", "convenience", "around", "lxd", ".", "ConnectLXD", "that", "configures", "the", "client", "with", "the", "correct", "parameters", "for", "node", "-", "to", "-", "node", "communication", ".", "If", "notify", "switch", "is", "true", "then", "the", "user", "agent", "will", "be", "set", "to", "the", "special", "value", "lxd", "-", "cluster", "-", "notifier", "which", "can", "be", "used", "in", "some", "cases", "to", "distinguish", "between", "a", "regular", "client", "request", "and", "an", "internal", "cluster", "request", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/connect.go#L21-L34", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/connect.go", "func_name": "ConnectIfContainerIsRemote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConnectIfContainerIsRemote figures out the address of the node which is\n// running the container with the given name. If it's not the local node will\n// connect to it and return the connected client, otherwise it will just return\n// nil.", "docstring_tokens": ["ConnectIfContainerIsRemote", "figures", "out", "the", "address", "of", "the", "node", "which", "is", "running", "the", "container", "with", "the", "given", "name", ".", "If", "it", "s", "not", "the", "local", "node", "will", "connect", "to", "it", "and", "return", "the", "connected", "client", "otherwise", "it", "will", "just", "return", "nil", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/connect.go#L40-L55", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/connect.go", "func_name": "ConnectIfVolumeIsRemote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConnectIfVolumeIsRemote figures out the address of the node on which the\n// volume with the given name is defined. If it's not the local node will\n// connect to it and return the connected client, otherwise it will just return\n// nil.\n//\n// If there is more than one node with a matching volume name, an error is\n// returned.", "docstring_tokens": ["ConnectIfVolumeIsRemote", "figures", "out", "the", "address", "of", "the", "node", "on", "which", "the", "volume", "with", "the", "given", "name", "is", "defined", ".", "If", "it", "s", "not", "the", "local", "node", "will", "connect", "to", "it", "and", "return", "the", "connected", "client", "otherwise", "it", "will", "just", "return", "nil", ".", "If", "there", "is", "more", "than", "one", "node", "with", "a", "matching", "volume", "name", "an", "error", "is", "returned", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/connect.go#L64-L99", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/cluster/connect.go", "func_name": "SetupTrust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetupTrust is a convenience around ContainerServer.CreateCertificate that\n// adds the given client certificate to the trusted pool of the cluster at the\n// given address, using the given password.", "docstring_tokens": ["SetupTrust", "is", "a", "convenience", "around", "ContainerServer", ".", "CreateCertificate", "that", "adds", "the", "given", "client", "certificate", "to", "the", "trusted", "pool", "of", "the", "cluster", "at", "the", "given", "address", "using", "the", "given", "password", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/cluster/connect.go#L104-L133", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_pools.go", "func_name": "GetStoragePools", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStoragePools returns a list of StoragePool entries", "docstring_tokens": ["GetStoragePools", "returns", "a", "list", "of", "StoragePool", "entries"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_pools.go#L38-L52", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_pools.go", "func_name": "GetStoragePool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStoragePool returns a StoragePool entry for the provided pool name", "docstring_tokens": ["GetStoragePool", "returns", "a", "StoragePool", "entry", "for", "the", "provided", "pool", "name"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_pools.go#L55-L69", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_pools.go", "func_name": "CreateStoragePool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateStoragePool defines a new storage pool using the provided StoragePool struct", "docstring_tokens": ["CreateStoragePool", "defines", "a", "new", "storage", "pool", "using", "the", "provided", "StoragePool", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_pools.go#L72-L88", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_pools.go", "func_name": "UpdateStoragePool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateStoragePool updates the pool to match the provided StoragePool struct", "docstring_tokens": ["UpdateStoragePool", "updates", "the", "pool", "to", "match", "the", "provided", "StoragePool", "struct"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_pools.go#L91-L103", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_pools.go", "func_name": "DeleteStoragePool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteStoragePool deletes a storage pool", "docstring_tokens": ["DeleteStoragePool", "deletes", "a", "storage", "pool"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_pools.go#L106-L118", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_storage_pools.go", "func_name": "GetStoragePoolResources", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStoragePoolResources gets the resources available to a given storage pool", "docstring_tokens": ["GetStoragePoolResources", "gets", "the", "resources", "available", "to", "a", "given", "storage", "pool"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_storage_pools.go#L121-L135", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/sys/fs.go", "func_name": "initDirs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Make sure all our directories are available.", "docstring_tokens": ["Make", "sure", "all", "our", "directories", "are", "available", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/sys/fs.go#L37-L67", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/config.go", "func_name": "Config", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Config fetches all LXD node-level config keys.", "docstring_tokens": ["Config", "fetches", "all", "LXD", "node", "-", "level", "config", "keys", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/config.go#L6-L8", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/config.go", "func_name": "UpdateConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateConfig updates the given LXD node-level configuration keys in the\n// config table. Config keys set to empty values will be deleted.", "docstring_tokens": ["UpdateConfig", "updates", "the", "given", "LXD", "node", "-", "level", "configuration", "keys", "in", "the", "config", "table", ".", "Config", "keys", "set", "to", "empty", "values", "will", "be", "deleted", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/config.go#L12-L14", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/config.go", "func_name": "Config", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Config fetches all LXD cluster config keys.", "docstring_tokens": ["Config", "fetches", "all", "LXD", "cluster", "config", "keys", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/config.go#L17-L19", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/config.go", "func_name": "UpdateConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateConfig updates the given LXD cluster configuration keys in the\n// config table. Config keys set to empty values will be deleted.", "docstring_tokens": ["UpdateConfig", "updates", "the", "given", "LXD", "cluster", "configuration", "keys", "in", "the", "config", "table", ".", "Config", "keys", "set", "to", "empty", "values", "will", "be", "deleted", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/config.go#L23-L25", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_pools.go", "func_name": "storagePoolClusterConfigForEtag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This helper deletes any node-specific values from the config object, since\n// they should not be part of the calculated etag.", "docstring_tokens": ["This", "helper", "deletes", "any", "node", "-", "specific", "values", "from", "the", "config", "object", "since", "they", "should", "not", "be", "part", "of", "the", "calculated", "etag", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_pools.go#L491-L497", "partition": "test"} +{"repo": "lxc/lxd", "path": "client/lxd_events.go", "func_name": "GetEvents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Event handling functions\n// GetEvents connects to the LXD monitoring interface", "docstring_tokens": ["Event", "handling", "functions", "GetEvents", "connects", "to", "the", "LXD", "monitoring", "interface"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/client/lxd_events.go#L14-L127", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logging/format.go", "func_name": "LogfmtFormat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogfmtFormat return a formatter for a text log file", "docstring_tokens": ["LogfmtFormat", "return", "a", "formatter", "for", "a", "text", "log", "file"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logging/format.go#L71-L82", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_volumes.go", "func_name": "StorageVolumeNodeAddresses", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageVolumeNodeAddresses returns the addresses of all nodes on which the\n// volume with the given name if defined.\n//\n// The empty string is used in place of the address of the current node.", "docstring_tokens": ["StorageVolumeNodeAddresses", "returns", "the", "addresses", "of", "all", "nodes", "on", "which", "the", "volume", "with", "the", "given", "name", "if", "defined", ".", "The", "empty", "string", "is", "used", "in", "place", "of", "the", "address", "of", "the", "current", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_volumes.go#L38-L84", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_volumes.go", "func_name": "StorageVolumeNodeGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageVolumeNodeGet returns the name of the node a storage volume is on.", "docstring_tokens": ["StorageVolumeNodeGet", "returns", "the", "name", "of", "the", "node", "a", "storage", "volume", "is", "on", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_volumes.go#L87-L107", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_volumes.go", "func_name": "StorageVolumeConfigGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageVolumeConfigGet gets the config of a storage volume.", "docstring_tokens": ["StorageVolumeConfigGet", "gets", "the", "config", "of", "a", "storage", "volume", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_volumes.go#L110-L131", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_volumes.go", "func_name": "StorageVolumeDescriptionGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageVolumeDescriptionGet gets the description of a storage volume.", "docstring_tokens": ["StorageVolumeDescriptionGet", "gets", "the", "description", "of", "a", "storage", "volume", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_volumes.go#L134-L149", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_volumes.go", "func_name": "StorageVolumeIsAvailable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageVolumeIsAvailable checks that if a custom volume available for being attached.\n//\n// Always return true for non-Ceph volumes.\n//\n// For Ceph volumes, return true if the volume is either not attached to any\n// other container, or attached to containers on this node.", "docstring_tokens": ["StorageVolumeIsAvailable", "checks", "that", "if", "a", "custom", "volume", "available", "for", "being", "attached", ".", "Always", "return", "true", "for", "non", "-", "Ceph", "volumes", ".", "For", "Ceph", "volumes", "return", "true", "if", "the", "volume", "is", "either", "not", "attached", "to", "any", "other", "container", "or", "attached", "to", "containers", "on", "this", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_volumes.go#L194-L250", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_volumes.go", "func_name": "StorageVolumeDescriptionUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageVolumeDescriptionUpdate updates the description of a storage volume.", "docstring_tokens": ["StorageVolumeDescriptionUpdate", "updates", "the", "description", "of", "a", "storage", "volume", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_volumes.go#L253-L256", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_volumes.go", "func_name": "StorageVolumeConfigAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageVolumeConfigAdd adds a new storage volume config into database.", "docstring_tokens": ["StorageVolumeConfigAdd", "adds", "a", "new", "storage", "volume", "config", "into", "database", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_volumes.go#L259-L279", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_volumes.go", "func_name": "StorageVolumeConfigClear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageVolumeConfigClear deletes storage volume config.", "docstring_tokens": ["StorageVolumeConfigClear", "deletes", "storage", "volume", "config", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_volumes.go#L282-L289", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_volumes.go", "func_name": "storageVolumeIDsGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get the IDs of all volumes with the given name and type associated with the\n// given pool, regardless of their node_id column.", "docstring_tokens": ["Get", "the", "IDs", "of", "all", "volumes", "with", "the", "given", "name", "and", "type", "associated", "with", "the", "given", "pool", "regardless", "of", "their", "node_id", "column", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_volumes.go#L293-L308", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_volumes.go", "func_name": "StorageVolumeCleanupImages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageVolumeCleanupImages removes the volumes with the given fingerprints.", "docstring_tokens": ["StorageVolumeCleanupImages", "removes", "the", "volumes", "with", "the", "given", "fingerprints", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_volumes.go#L311-L321", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/storage_volumes.go", "func_name": "StorageVolumeMoveToLVMThinPoolNameKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageVolumeMoveToLVMThinPoolNameKey upgrades the config keys of LVM\n// volumes.", "docstring_tokens": ["StorageVolumeMoveToLVMThinPoolNameKey", "upgrades", "the", "config", "keys", "of", "LVM", "volumes", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/storage_volumes.go#L325-L337", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/file/buffer.go", "func_name": "L", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// L accumulates a single line of source code.", "docstring_tokens": ["L", "accumulates", "a", "single", "line", "of", "source", "code", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/file/buffer.go#L26-L29", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/generate/file/buffer.go", "func_name": "code", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the source code to add to the target file.", "docstring_tokens": ["Returns", "the", "source", "code", "to", "add", "to", "the", "target", "file", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/generate/file/buffer.go#L37-L43", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/logger/format.go", "func_name": "Pretty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pretty will attempt to convert any Go structure into a string suitable for logging", "docstring_tokens": ["Pretty", "will", "attempt", "to", "convert", "any", "Go", "structure", "into", "a", "string", "suitable", "for", "logging"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/logger/format.go#L10-L17", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/network.go", "func_name": "NetworkPublicKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkPublicKey returns the public key of the TLS certificate used by the\n// network endpoint.", "docstring_tokens": ["NetworkPublicKey", "returns", "the", "public", "key", "of", "the", "TLS", "certificate", "used", "by", "the", "network", "endpoint", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/network.go#L18-L23", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/network.go", "func_name": "NetworkPrivateKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkPrivateKey returns the private key of the TLS certificate used by the\n// network endpoint.", "docstring_tokens": ["NetworkPrivateKey", "returns", "the", "private", "key", "of", "the", "TLS", "certificate", "used", "by", "the", "network", "endpoint", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/network.go#L27-L32", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/network.go", "func_name": "NetworkCert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkCert returns the full TLS certificate information for this endpoint.", "docstring_tokens": ["NetworkCert", "returns", "the", "full", "TLS", "certificate", "information", "for", "this", "endpoint", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/network.go#L35-L40", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/network.go", "func_name": "NetworkAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkAddress returns the network addresss of the network endpoint, or an\n// empty string if there's no network endpoint", "docstring_tokens": ["NetworkAddress", "returns", "the", "network", "addresss", "of", "the", "network", "endpoint", "or", "an", "empty", "string", "if", "there", "s", "no", "network", "endpoint"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/network.go#L44-L53", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/network.go", "func_name": "NetworkUpdateAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkUpdateAddress updates the address for the network endpoint, shutting\n// it down and restarting it.", "docstring_tokens": ["NetworkUpdateAddress", "updates", "the", "address", "for", "the", "network", "endpoint", "shutting", "it", "down", "and", "restarting", "it", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/network.go#L57-L128", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/network.go", "func_name": "NetworkUpdateCert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkUpdateCert updates the TLS keypair and CA used by the network\n// endpoint.\n//\n// If the network endpoint is active, in-flight requests will continue using\n// the old certificate, and only new requests will use the new one.", "docstring_tokens": ["NetworkUpdateCert", "updates", "the", "TLS", "keypair", "and", "CA", "used", "by", "the", "network", "endpoint", ".", "If", "the", "network", "endpoint", "is", "active", "in", "-", "flight", "requests", "will", "continue", "using", "the", "old", "certificate", "and", "only", "new", "requests", "will", "use", "the", "new", "one", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/network.go#L135-L151", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/network.go", "func_name": "networkCreateListener", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a new net.Listener bound to the tcp socket of the network endpoint.", "docstring_tokens": ["Create", "a", "new", "net", ".", "Listener", "bound", "to", "the", "tcp", "socket", "of", "the", "network", "endpoint", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/network.go#L154-L161", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/network.go", "func_name": "Accept", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Accept waits for and returns the next incoming TLS connection then use the\n// current TLS configuration to handle it.", "docstring_tokens": ["Accept", "waits", "for", "and", "returns", "the", "next", "incoming", "TLS", "connection", "then", "use", "the", "current", "TLS", "configuration", "to", "handle", "it", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/network.go#L182-L191", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/network.go", "func_name": "Config", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Config safely swaps the underlying TLS configuration.", "docstring_tokens": ["Config", "safely", "swaps", "the", "underlying", "TLS", "configuration", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/network.go#L194-L201", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "IsOffline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsOffline returns true if the last successful heartbeat time of the node is\n// older than the given threshold.", "docstring_tokens": ["IsOffline", "returns", "true", "if", "the", "last", "successful", "heartbeat", "time", "of", "the", "node", "is", "older", "than", "the", "given", "threshold", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L29-L31", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeByAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeByAddress returns the node with the given network address.", "docstring_tokens": ["NodeByAddress", "returns", "the", "node", "with", "the", "given", "network", "address", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L40-L54", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodePendingByAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodePendingByAddress returns the pending node with the given network address.", "docstring_tokens": ["NodePendingByAddress", "returns", "the", "pending", "node", "with", "the", "given", "network", "address", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L57-L71", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeByName returns the node with the given name.", "docstring_tokens": ["NodeByName", "returns", "the", "node", "with", "the", "given", "name", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L74-L88", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeName returns the name of the node this method is invoked on.", "docstring_tokens": ["NodeName", "returns", "the", "name", "of", "the", "node", "this", "method", "is", "invoked", "on", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L91-L105", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeAddress returns the address of the node this method is invoked on.", "docstring_tokens": ["NodeAddress", "returns", "the", "address", "of", "the", "node", "this", "method", "is", "invoked", "on", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L108-L122", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeIsOutdated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeIsOutdated returns true if there's some cluster node having an API or\n// schema version greater than the node this method is invoked on.", "docstring_tokens": ["NodeIsOutdated", "returns", "true", "if", "there", "s", "some", "cluster", "node", "having", "an", "API", "or", "schema", "version", "greater", "than", "the", "node", "this", "method", "is", "invoked", "on", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L126-L160", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodesCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodesCount returns the number of nodes in the LXD cluster.\n//\n// Since there's always at least one node row, even when not-clustered, the\n// return value is greater than zero", "docstring_tokens": ["NodesCount", "returns", "the", "number", "of", "nodes", "in", "the", "LXD", "cluster", ".", "Since", "there", "s", "always", "at", "least", "one", "node", "row", "even", "when", "not", "-", "clustered", "the", "return", "value", "is", "greater", "than", "zero"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L174-L180", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeRename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeRename changes the name of an existing node.\n//\n// Return an error if a node with the same name already exists.", "docstring_tokens": ["NodeRename", "changes", "the", "name", "of", "an", "existing", "node", ".", "Return", "an", "error", "if", "a", "node", "with", "the", "same", "name", "already", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L185-L206", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "nodes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Nodes returns all LXD nodes part of the cluster.", "docstring_tokens": ["Nodes", "returns", "all", "LXD", "nodes", "part", "of", "the", "cluster", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L209-L244", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeAdd adds a node to the current list of LXD nodes that are part of the\n// cluster. It returns the ID of the newly inserted row.", "docstring_tokens": ["NodeAdd", "adds", "a", "node", "to", "the", "current", "list", "of", "LXD", "nodes", "that", "are", "part", "of", "the", "cluster", ".", "It", "returns", "the", "ID", "of", "the", "newly", "inserted", "row", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L248-L252", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodePending", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodePending toggles the pending flag for the node. A node is pending when\n// it's been accepted in the cluster, but has not yet actually joined it.", "docstring_tokens": ["NodePending", "toggles", "the", "pending", "flag", "for", "the", "node", ".", "A", "node", "is", "pending", "when", "it", "s", "been", "accepted", "in", "the", "cluster", "but", "has", "not", "yet", "actually", "joined", "it", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L256-L273", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeUpdate updates the name an address of a node.", "docstring_tokens": ["NodeUpdate", "updates", "the", "name", "an", "address", "of", "a", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L276-L289", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeRemove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeRemove removes the node with the given id.", "docstring_tokens": ["NodeRemove", "removes", "the", "node", "with", "the", "given", "id", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L292-L305", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeHeartbeat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeHeartbeat updates the heartbeat column of the node with the given address.", "docstring_tokens": ["NodeHeartbeat", "updates", "the", "heartbeat", "column", "of", "the", "node", "with", "the", "given", "address", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L308-L322", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeIsEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeIsEmpty returns an empty string if the node with the given ID has no\n// containers or images associated with it. Otherwise, it returns a message\n// say what's left.", "docstring_tokens": ["NodeIsEmpty", "returns", "an", "empty", "string", "if", "the", "node", "with", "the", "given", "ID", "has", "no", "containers", "or", "images", "associated", "with", "it", ".", "Otherwise", "it", "returns", "a", "message", "say", "what", "s", "left", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L327-L397", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeClear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeClear removes any container or image associated with this node.", "docstring_tokens": ["NodeClear", "removes", "any", "container", "or", "image", "associated", "with", "this", "node", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L400-L434", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeOfflineThreshold", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeOfflineThreshold returns the amount of time that needs to elapse after\n// which a series of unsuccessful heartbeat will make the node be considered\n// offline.", "docstring_tokens": ["NodeOfflineThreshold", "returns", "the", "amount", "of", "time", "that", "needs", "to", "elapse", "after", "which", "a", "series", "of", "unsuccessful", "heartbeat", "will", "make", "the", "node", "be", "considered", "offline", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L439-L454", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/node.go", "func_name": "NodeUpdateVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NodeUpdateVersion updates the schema and API version of the node with the\n// given id. This is used only in tests.", "docstring_tokens": ["NodeUpdateVersion", "updates", "the", "schema", "and", "API", "version", "of", "the", "node", "with", "the", "given", "id", ".", "This", "is", "used", "only", "in", "tests", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/node.go#L500-L518", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/transaction.go", "func_name": "Transaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Transaction executes the given function within a database transaction.", "docstring_tokens": ["Transaction", "executes", "the", "given", "function", "within", "a", "database", "transaction", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/transaction.go#L11-L27", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/transaction.go", "func_name": "rollback", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rollback a transaction after the given error occurred. If the rollback\n// succeeds the given error is returned, otherwise a new error that wraps it\n// gets generated and returned.", "docstring_tokens": ["Rollback", "a", "transaction", "after", "the", "given", "error", "occurred", ".", "If", "the", "rollback", "succeeds", "the", "given", "error", "is", "returned", "otherwise", "a", "new", "error", "that", "wraps", "it", "gets", "generated", "and", "returned", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/transaction.go#L32-L39", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.mapper.go", "func_name": "ProfileURIs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileURIs returns all available profile URIs.", "docstring_tokens": ["ProfileURIs", "returns", "all", "available", "profile", "URIs", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.mapper.go#L121-L155", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.mapper.go", "func_name": "ProfileGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileGet returns the profile with the given key.", "docstring_tokens": ["ProfileGet", "returns", "the", "profile", "with", "the", "given", "key", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.mapper.go#L272-L290", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.mapper.go", "func_name": "ProfileExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileExists checks if a profile with the given key exists.", "docstring_tokens": ["ProfileExists", "checks", "if", "a", "profile", "with", "the", "given", "key", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.mapper.go#L293-L303", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.mapper.go", "func_name": "ProfileConfigRef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileConfigRef returns entities used by profiles.", "docstring_tokens": ["ProfileConfigRef", "returns", "entities", "used", "by", "profiles", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.mapper.go#L335-L415", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.mapper.go", "func_name": "ProfileUsedByRef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileUsedByRef returns entities used by profiles.", "docstring_tokens": ["ProfileUsedByRef", "returns", "entities", "used", "by", "profiles", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.mapper.go#L522-L598", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.mapper.go", "func_name": "ProfileCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileCreate adds a new profile to the database.", "docstring_tokens": ["ProfileCreate", "adds", "a", "new", "profile", "to", "the", "database", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.mapper.go#L601-L670", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.mapper.go", "func_name": "ProfileRename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileRename renames the profile matching the given key parameters.", "docstring_tokens": ["ProfileRename", "renames", "the", "profile", "matching", "the", "given", "key", "parameters", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.mapper.go#L673-L688", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/profiles.mapper.go", "func_name": "ProfileDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProfileDelete deletes the profile matching the given key parameters.", "docstring_tokens": ["ProfileDelete", "deletes", "the", "profile", "matching", "the", "given", "key", "parameters", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/profiles.mapper.go#L691-L707", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/net.go", "func_name": "ServerTLSConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServerTLSConfig returns a new server-side tls.Config generated from the give\n// certificate info.", "docstring_tokens": ["ServerTLSConfig", "returns", "a", "new", "server", "-", "side", "tls", ".", "Config", "generated", "from", "the", "give", "certificate", "info", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/net.go#L88-L105", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/net.go", "func_name": "NetworkInterfaceAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkInterfaceAddress returns the first non-loopback address of any of the\n// system network interfaces.\n//\n// Return the empty string if none is found.", "docstring_tokens": ["NetworkInterfaceAddress", "returns", "the", "first", "non", "-", "loopback", "address", "of", "any", "of", "the", "system", "network", "interfaces", ".", "Return", "the", "empty", "string", "if", "none", "is", "found", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/net.go#L111-L134", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/util/net.go", "func_name": "IsAddressCovered", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsAddressCovered detects if network address1 is actually covered by\n// address2, in the sense that they are either the same address or address2 is\n// specified using a wildcard with the same port of address1.", "docstring_tokens": ["IsAddressCovered", "detects", "if", "network", "address1", "is", "actually", "covered", "by", "address2", "in", "the", "sense", "that", "they", "are", "either", "the", "same", "address", "or", "address2", "is", "specified", "using", "a", "wildcard", "with", "the", "same", "port", "of", "address1", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/util/net.go#L139-L177", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/objects.go", "func_name": "SelectObjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SelectObjects executes a statement which must yield rows with a specific\n// columns schema. It invokes the given Dest hook for each yielded row.", "docstring_tokens": ["SelectObjects", "executes", "a", "statement", "which", "must", "yield", "rows", "with", "a", "specific", "columns", "schema", ".", "It", "invokes", "the", "given", "Dest", "hook", "for", "each", "yielded", "row", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/objects.go#L11-L30", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/db/query/objects.go", "func_name": "DeleteObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteObject removes the row identified by the given ID. The given table\n// must have a primary key column called 'id'.\n//\n// It returns a flag indicating if a matching row was actually found and\n// deleted or not.", "docstring_tokens": ["DeleteObject", "removes", "the", "row", "identified", "by", "the", "given", "ID", ".", "The", "given", "table", "must", "have", "a", "primary", "key", "column", "called", "id", ".", "It", "returns", "a", "flag", "indicating", "if", "a", "matching", "row", "was", "actually", "found", "and", "deleted", "or", "not", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/db/query/objects.go#L71-L85", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/task/task.go", "func_name": "loop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Execute the our task function according to our schedule, until the given\n// context gets cancelled.", "docstring_tokens": ["Execute", "the", "our", "task", "function", "according", "to", "our", "schedule", "until", "the", "given", "context", "gets", "cancelled", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/task/task.go#L28-L89", "partition": "test"} +{"repo": "lxc/lxd", "path": "shared/termios/termios_unix.go", "func_name": "IsTerminal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsTerminal returns true if the given file descriptor is a terminal.", "docstring_tokens": ["IsTerminal", "returns", "true", "if", "the", "given", "file", "descriptor", "is", "a", "terminal", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/shared/termios/termios_unix.go#L22-L25", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/socket.go", "func_name": "socketUnixListen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Bind to the given unix socket path.", "docstring_tokens": ["Bind", "to", "the", "given", "unix", "socket", "path", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/socket.go#L15-L28", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/socket.go", "func_name": "socketUnixRemoveStale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove any stale socket file at the given path.", "docstring_tokens": ["Remove", "any", "stale", "socket", "file", "at", "the", "given", "path", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/socket.go#L62-L75", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/socket.go", "func_name": "socketUnixSetPermissions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Change the file mode of the given unix socket file,", "docstring_tokens": ["Change", "the", "file", "mode", "of", "the", "given", "unix", "socket", "file"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/socket.go#L78-L84", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/endpoints/socket.go", "func_name": "socketUnixSetOwnership", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Change the ownership of the given unix socket file,", "docstring_tokens": ["Change", "the", "ownership", "of", "the", "given", "unix", "socket", "file"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/endpoints/socket.go#L87-L107", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "cephOSDPoolExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cephOSDPoolExists checks whether a given OSD pool exists.", "docstring_tokens": ["cephOSDPoolExists", "checks", "whether", "a", "given", "OSD", "pool", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L22-L37", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "cephOSDPoolDestroy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cephOSDPoolDestroy destroys an OSD pool.\n// - A call to cephOSDPoolDestroy will destroy a pool including any storage\n// volumes that still exist in the pool.\n// - In case the OSD pool that is supposed to be deleted does not exist this\n// command will still exit 0. This means that if the caller wants to be sure\n// that this call actually deleted an OSD pool it needs to check for the\n// existence of the pool first.", "docstring_tokens": ["cephOSDPoolDestroy", "destroys", "an", "OSD", "pool", ".", "-", "A", "call", "to", "cephOSDPoolDestroy", "will", "destroy", "a", "pool", "including", "any", "storage", "volumes", "that", "still", "exist", "in", "the", "pool", ".", "-", "In", "case", "the", "OSD", "pool", "that", "is", "supposed", "to", "be", "deleted", "does", "not", "exist", "this", "command", "will", "still", "exit", "0", ".", "This", "means", "that", "if", "the", "caller", "wants", "to", "be", "sure", "that", "this", "call", "actually", "deleted", "an", "OSD", "pool", "it", "needs", "to", "check", "for", "the", "existence", "of", "the", "pool", "first", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L46-L61", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "cephRBDVolumeExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cephRBDVolumeExists checks whether a given RBD storage volume exists.", "docstring_tokens": ["cephRBDVolumeExists", "checks", "whether", "a", "given", "RBD", "storage", "volume", "exists", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L84-L98", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "cephRBDSnapshotProtect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cephRBDSnapshotProtect protects a given snapshot from being deleted\n// This is a precondition to be able to create RBD clones from a given snapshot.", "docstring_tokens": ["cephRBDSnapshotProtect", "protects", "a", "given", "snapshot", "from", "being", "deleted", "This", "is", "a", "precondition", "to", "be", "able", "to", "create", "RBD", "clones", "from", "a", "given", "snapshot", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L279-L307", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "cephRBDCloneCreate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cephRBDCloneCreate creates a clone from a protected RBD snapshot", "docstring_tokens": ["cephRBDCloneCreate", "creates", "a", "clone", "from", "a", "protected", "RBD", "snapshot"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L343-L363", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "cephRBDSnapshotListClones", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cephRBDSnapshotListClones list all clones of an RBD snapshot", "docstring_tokens": ["cephRBDSnapshotListClones", "list", "all", "clones", "of", "an", "RBD", "snapshot"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L366-L388", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "cephRBDVolumeMarkDeleted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cephRBDVolumeMarkDeleted marks an RBD storage volume as being in \"zombie\"\n// state\n// An RBD storage volume that is in zombie state is not tracked in LXD's\n// database anymore but still needs to be kept around for the sake of any\n// dependent storage entities in the storage pool. This usually happens when an\n// RBD storage volume has protected snapshots; a scenario most common when\n// creating a sparse copy of a container or when LXD updated an image and the\n// image still has dependent container clones.", "docstring_tokens": ["cephRBDVolumeMarkDeleted", "marks", "an", "RBD", "storage", "volume", "as", "being", "in", "zombie", "state", "An", "RBD", "storage", "volume", "that", "is", "in", "zombie", "state", "is", "not", "tracked", "in", "LXD", "s", "database", "anymore", "but", "still", "needs", "to", "be", "kept", "around", "for", "the", "sake", "of", "any", "dependent", "storage", "entities", "in", "the", "storage", "pool", ".", "This", "usually", "happens", "when", "an", "RBD", "storage", "volume", "has", "protected", "snapshots", ";", "a", "scenario", "most", "common", "when", "creating", "a", "sparse", "copy", "of", "a", "container", "or", "when", "LXD", "updated", "an", "image", "and", "the", "image", "still", "has", "dependent", "container", "clones", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L398-L418", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "cephRBDVolumeUnmarkDeleted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cephRBDVolumeUnmarkDeleted unmarks an RBD storage volume as being in \"zombie\"\n// state\n// - An RBD storage volume that is in zombie is not tracked in LXD's database\n// anymore but still needs to be kept around for the sake of any dependent\n// storage entities in the storage pool.\n// - This function is mostly used when a user has deleted the storage volume of\n// an image from the storage pool and then triggers a container creation. If\n// LXD detects that the storage volume for the given hash already exists in\n// the pool but is marked as \"zombie\" it will unmark it as a zombie instead of\n// creating another storage volume for the image.", "docstring_tokens": ["cephRBDVolumeUnmarkDeleted", "unmarks", "an", "RBD", "storage", "volume", "as", "being", "in", "zombie", "state", "-", "An", "RBD", "storage", "volume", "that", "is", "in", "zombie", "is", "not", "tracked", "in", "LXD", "s", "database", "anymore", "but", "still", "needs", "to", "be", "kept", "around", "for", "the", "sake", "of", "any", "dependent", "storage", "entities", "in", "the", "storage", "pool", ".", "-", "This", "function", "is", "mostly", "used", "when", "a", "user", "has", "deleted", "the", "storage", "volume", "of", "an", "image", "from", "the", "storage", "pool", "and", "then", "triggers", "a", "container", "creation", ".", "If", "LXD", "detects", "that", "the", "storage", "volume", "for", "the", "given", "hash", "already", "exists", "in", "the", "pool", "but", "is", "marked", "as", "zombie", "it", "will", "unmark", "it", "as", "a", "zombie", "instead", "of", "creating", "another", "storage", "volume", "for", "the", "image", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L430-L455", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "cephRBDVolumeRename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cephRBDVolumeRename renames a given RBD storage volume\n// Note that this usually requires that the image be unmapped under its original\n// name, then renamed, and finally will be remapped again. If it is not unmapped\n// under its original name and the callers maps it under its new name the image\n// will be mapped twice. This will prevent it from being deleted.", "docstring_tokens": ["cephRBDVolumeRename", "renames", "a", "given", "RBD", "storage", "volume", "Note", "that", "this", "usually", "requires", "that", "the", "image", "be", "unmapped", "under", "its", "original", "name", "then", "renamed", "and", "finally", "will", "be", "remapped", "again", ".", "If", "it", "is", "not", "unmapped", "under", "its", "original", "name", "and", "the", "callers", "maps", "it", "under", "its", "new", "name", "the", "image", "will", "be", "mapped", "twice", ".", "This", "will", "prevent", "it", "from", "being", "deleted", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L462-L476", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "cephRBDVolumeSnapshotRename", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cephRBDVolumeRename renames a given RBD storage volume\n// Note that if the snapshot is mapped - which it usually shouldn't be - this\n// usually requires that the snapshot be unmapped under its original name, then\n// renamed, and finally will be remapped again. If it is not unmapped under its\n// original name and the caller maps it under its new name the snapshot will be\n// mapped twice. This will prevent it from being deleted.", "docstring_tokens": ["cephRBDVolumeRename", "renames", "a", "given", "RBD", "storage", "volume", "Note", "that", "if", "the", "snapshot", "is", "mapped", "-", "which", "it", "usually", "shouldn", "t", "be", "-", "this", "usually", "requires", "that", "the", "snapshot", "be", "unmapped", "under", "its", "original", "name", "then", "renamed", "and", "finally", "will", "be", "remapped", "again", ".", "If", "it", "is", "not", "unmapped", "under", "its", "original", "name", "and", "the", "caller", "maps", "it", "under", "its", "new", "name", "the", "snapshot", "will", "be", "mapped", "twice", ".", "This", "will", "prevent", "it", "from", "being", "deleted", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L484-L502", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "cephRBDSnapshotDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cephRBDSnapshotDelete deletes an RBD snapshot\n// This requires that the snapshot does not have any clones and is unmapped and\n// unprotected.", "docstring_tokens": ["cephRBDSnapshotDelete", "deletes", "an", "RBD", "snapshot", "This", "requires", "that", "the", "snapshot", "does", "not", "have", "any", "clones", "and", "is", "unmapped", "and", "unprotected", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L547-L563", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "cephRBDVolumeCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cephRBDVolumeCopy copies an RBD storage volume\n// This is a non-sparse copy which doesn't introduce any dependency relationship\n// between the source RBD storage volume and the target RBD storage volume. The\n// operations is similar to creating an empty RBD storage volume and rsyncing\n// the contents of the source RBD storage volume into it.", "docstring_tokens": ["cephRBDVolumeCopy", "copies", "an", "RBD", "storage", "volume", "This", "is", "a", "non", "-", "sparse", "copy", "which", "doesn", "t", "introduce", "any", "dependency", "relationship", "between", "the", "source", "RBD", "storage", "volume", "and", "the", "target", "RBD", "storage", "volume", ".", "The", "operations", "is", "similar", "to", "creating", "an", "empty", "RBD", "storage", "volume", "and", "rsyncing", "the", "contents", "of", "the", "source", "RBD", "storage", "volume", "into", "it", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L570-L584", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "cephRBDVolumeListSnapshots", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cephRBDVolumeListSnapshots retrieves the snapshots of an RBD storage volume\n// The format of the snapshot names is simply the part after the @. So given a\n// valid RBD path relative to a pool\n// /@\n// this will only return\n// ", "docstring_tokens": ["cephRBDVolumeListSnapshots", "retrieves", "the", "snapshots", "of", "an", "RBD", "storage", "volume", "The", "format", "of", "the", "snapshot", "names", "is", "simply", "the", "part", "after", "the"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L592-L634", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "getRBDSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getRBDSize returns the size the RBD storage volume is supposed to be created\n// with", "docstring_tokens": ["getRBDSize", "returns", "the", "size", "the", "RBD", "storage", "volume", "is", "supposed", "to", "be", "created", "with"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L658-L670", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "getRBDFilesystem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getRBDFilesystem returns the filesystem the RBD storage volume is supposed to\n// be created with", "docstring_tokens": ["getRBDFilesystem", "returns", "the", "filesystem", "the", "RBD", "storage", "volume", "is", "supposed", "to", "be", "created", "with"], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L674-L684", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "copyWithoutSnapshotsFull", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyWithoutSnapshotsFull creates a non-sparse copy of a container\n// This does not introduce a dependency relation between the source RBD storage\n// volume and the target RBD storage volume.", "docstring_tokens": ["copyWithoutSnapshotsFull", "creates", "a", "non", "-", "sparse", "copy", "of", "a", "container", "This", "does", "not", "introduce", "a", "dependency", "relation", "between", "the", "source", "RBD", "storage", "volume", "and", "the", "target", "RBD", "storage", "volume", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L710-L767", "partition": "test"} +{"repo": "lxc/lxd", "path": "lxd/storage_ceph_utils.go", "func_name": "copyWithoutSnapshotsSparse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyWithoutSnapshotsFull creates a sparse copy of a container\n// This introduces a dependency relation between the source RBD storage volume\n// and the target RBD storage volume.", "docstring_tokens": ["copyWithoutSnapshotsFull", "creates", "a", "sparse", "copy", "of", "a", "container", "This", "introduces", "a", "dependency", "relation", "between", "the", "source", "RBD", "storage", "volume", "and", "the", "target", "RBD", "storage", "volume", "."], "sha": "7a41d14e4c1a6bc25918aca91004d594774dcdd3", "url": "https://github.com/lxc/lxd/blob/7a41d14e4c1a6bc25918aca91004d594774dcdd3/lxd/storage_ceph_utils.go#L772-L848", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/configure.go", "func_name": "GetConfigCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetConfigCmd returns a cobra command that lets the caller see the configured\n// auth backends in Pachyderm", "docstring_tokens": ["GetConfigCmd", "returns", "a", "cobra", "command", "that", "lets", "the", "caller", "see", "the", "configured", "auth", "backends", "in", "Pachyderm"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/configure.go#L21-L62", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/configure.go", "func_name": "SetConfigCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetConfigCmd returns a cobra command that lets the caller configure auth\n// backends in Pachyderm", "docstring_tokens": ["SetConfigCmd", "returns", "a", "cobra", "command", "that", "lets", "the", "caller", "configure", "auth", "backends", "in", "Pachyderm"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/configure.go#L66-L109", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/shard/shard.go", "func_name": "NewSharder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSharder creates a Sharder using a discovery client.", "docstring_tokens": ["NewSharder", "creates", "a", "Sharder", "using", "a", "discovery", "client", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/shard/shard.go#L20-L22", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/shard/shard.go", "func_name": "NewRouter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRouter creates a Router.", "docstring_tokens": ["NewRouter", "creates", "a", "Router", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/shard/shard.go#L53-L63", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/plugin/vault/pachyderm/renew.go", "func_name": "renewUserCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// renewUserCredentials extends the TTL of the Pachyderm authentication token\n// 'userToken', using the vault plugin's Admin credentials. 'userToken' belongs\n// to the user who is calling vault, and would like to extend their Pachyderm\n// session.", "docstring_tokens": ["renewUserCredentials", "extends", "the", "TTL", "of", "the", "Pachyderm", "authentication", "token", "userToken", "using", "the", "vault", "plugin", "s", "Admin", "credentials", ".", "userToken", "belongs", "to", "the", "user", "who", "is", "calling", "vault", "and", "would", "like", "to", "extend", "their", "Pachyderm", "session", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/plugin/vault/pachyderm/renew.go#L71-L92", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/local_client.go", "func_name": "NewLocalClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLocalClient returns a Client that stores data on the local file system", "docstring_tokens": ["NewLocalClient", "returns", "a", "Client", "that", "stores", "data", "on", "the", "local", "file", "system"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/local_client.go#L12-L17", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/tracing/tracing.go", "func_name": "AddSpanToAnyExisting", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddSpanToAnyExisting checks 'ctx' for Jaeger tracing information, and if\n// tracing metadata is present, it generates a new span for 'operation', marks\n// it as a child of the existing span, and returns it.", "docstring_tokens": ["AddSpanToAnyExisting", "checks", "ctx", "for", "Jaeger", "tracing", "information", "and", "if", "tracing", "metadata", "is", "present", "it", "generates", "a", "new", "span", "for", "operation", "marks", "it", "as", "a", "child", "of", "the", "existing", "span", "and", "returns", "it", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/tracing/tracing.go#L57-L64", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/tracing/tracing.go", "func_name": "InstallJaegerTracerFromEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InstallJaegerTracerFromEnv installs a Jaeger client as then opentracing\n// global tracer, relying on environment variables to configure the client. It\n// returns the address used to initialize the global tracer, if any\n// initialization occurred", "docstring_tokens": ["InstallJaegerTracerFromEnv", "installs", "a", "Jaeger", "client", "as", "then", "opentracing", "global", "tracer", "relying", "on", "environment", "variables", "to", "configure", "the", "client", ".", "It", "returns", "the", "address", "used", "to", "initialize", "the", "global", "tracer", "if", "any", "initialization", "occurred"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/tracing/tracing.go#L78-L128", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/tracing/tracing.go", "func_name": "UnaryClientInterceptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnaryClientInterceptor returns a GRPC interceptor for non-streaming GRPC RPCs", "docstring_tokens": ["UnaryClientInterceptor", "returns", "a", "GRPC", "interceptor", "for", "non", "-", "streaming", "GRPC", "RPCs"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/tracing/tracing.go#L161-L164", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/tracing/tracing.go", "func_name": "StreamClientInterceptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StreamClientInterceptor returns a GRPC interceptor for non-streaming GRPC RPCs", "docstring_tokens": ["StreamClientInterceptor", "returns", "a", "GRPC", "interceptor", "for", "non", "-", "streaming", "GRPC", "RPCs"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/tracing/tracing.go#L167-L170", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/tracing/tracing.go", "func_name": "UnaryServerInterceptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnaryServerInterceptor returns a GRPC interceptor for non-streaming GRPC RPCs", "docstring_tokens": ["UnaryServerInterceptor", "returns", "a", "GRPC", "interceptor", "for", "non", "-", "streaming", "GRPC", "RPCs"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/tracing/tracing.go#L173-L176", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/tracing/tracing.go", "func_name": "StreamServerInterceptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StreamServerInterceptor returns a GRPC interceptor for non-streaming GRPC RPCs", "docstring_tokens": ["StreamServerInterceptor", "returns", "a", "GRPC", "interceptor", "for", "non", "-", "streaming", "GRPC", "RPCs"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/tracing/tracing.go#L179-L182", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/tracing/tracing.go", "func_name": "CloseAndReportTraces", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloseAndReportTraces tries to close the global tracer, which, in the case of\n// the Jaeger tracer, causes it to send any unreported traces to the collector", "docstring_tokens": ["CloseAndReportTraces", "tries", "to", "close", "the", "global", "tracer", "which", "in", "the", "case", "of", "the", "Jaeger", "tracer", "causes", "it", "to", "send", "any", "unreported", "traces", "to", "the", "collector"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/tracing/tracing.go#L186-L190", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/storage/chunk/writer.go", "func_name": "newWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newWriter creates a new Writer.", "docstring_tokens": ["newWriter", "creates", "a", "new", "Writer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/storage/chunk/writer.go#L47-L60", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/backoff/backoff.go", "func_name": "For", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// For sets b.MaxElapsedTime to 'maxElapsed' and returns b", "docstring_tokens": ["For", "sets", "b", ".", "MaxElapsedTime", "to", "maxElapsed", "and", "returns", "b"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/backoff/backoff.go#L107-L110", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/log/log.go", "func_name": "Log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Helper function used to log requests and responses from our GRPC method\n// implementations", "docstring_tokens": ["Helper", "function", "used", "to", "log", "requests", "and", "responses", "from", "our", "GRPC", "method", "implementations"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/log/log.go#L88-L97", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/log/log.go", "func_name": "Format", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Format proxies the closure in order to satisfy `logrus.Formatter`'s\n// interface.", "docstring_tokens": ["Format", "proxies", "the", "closure", "in", "order", "to", "satisfy", "logrus", ".", "Formatter", "s", "interface", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/log/log.go#L246-L248", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/log/log.go", "func_name": "NewGRPCLogWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGRPCLogWriter creates a new GRPC log writer. `logger` specifies the\n// underlying logger, and `source` specifies where these logs are coming from;\n// it is added as a entry field for all log messages.", "docstring_tokens": ["NewGRPCLogWriter", "creates", "a", "new", "GRPC", "log", "writer", ".", "logger", "specifies", "the", "underlying", "logger", "and", "source", "specifies", "where", "these", "logs", "are", "coming", "from", ";", "it", "is", "added", "as", "a", "entry", "field", "for", "all", "log", "messages", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/log/log.go#L296-L301", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/config/config.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read loads the Pachyderm config on this machine.\n// If an existing configuration cannot be found, it sets up the defaults. Read\n// returns a nil Config if and only if it returns a non-nil error.", "docstring_tokens": ["Read", "loads", "the", "Pachyderm", "config", "on", "this", "machine", ".", "If", "an", "existing", "configuration", "cannot", "be", "found", "it", "sets", "up", "the", "defaults", ".", "Read", "returns", "a", "nil", "Config", "if", "and", "only", "if", "it", "returns", "a", "non", "-", "nil", "error", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/config/config.go#L28-L58", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/config/config.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes the configuration in 'c' to this machine's Pachyderm config\n// file.", "docstring_tokens": ["Write", "writes", "the", "configuration", "in", "c", "to", "this", "machine", "s", "Pachyderm", "config", "file", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/config/config.go#L62-L84", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/pbutil/pbutil.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads val from r.", "docstring_tokens": ["Read", "reads", "val", "from", "r", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/pbutil/pbutil.go#L54-L60", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/pbutil/pbutil.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes val to r.", "docstring_tokens": ["Write", "writes", "val", "to", "r", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/pbutil/pbutil.go#L72-L78", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/pbutil/pbutil.go", "func_name": "NewReadWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReadWriter returns a new ReadWriter with rw as both its source and its sink.", "docstring_tokens": ["NewReadWriter", "returns", "a", "new", "ReadWriter", "with", "rw", "as", "both", "its", "source", "and", "its", "sink", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/pbutil/pbutil.go#L91-L93", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/server/githook/githook.go", "func_name": "RunGitHookServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunGitHookServer starts the webhook server", "docstring_tokens": ["RunGitHookServer", "starts", "the", "webhook", "server"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/server/githook/githook.go#L59-L82", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cert/logging_conn.go", "func_name": "newLoggingPipe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newLoggingPipe initializes a loggingPipe", "docstring_tokens": ["newLoggingPipe", "initializes", "a", "loggingPipe"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cert/logging_conn.go#L40-L47", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cert/logging_conn.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read implements the corresponding method of net.Conn", "docstring_tokens": ["Read", "implements", "the", "corresponding", "method", "of", "net", ".", "Conn"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cert/logging_conn.go#L89-L91", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cert/logging_conn.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write implements the corresponding method of net.Conn", "docstring_tokens": ["Write", "implements", "the", "corresponding", "method", "of", "net", ".", "Conn"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cert/logging_conn.go#L94-L96", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cert/logging_conn.go", "func_name": "Accept", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Accept implements the corresponding method of net.Listener for\n// TestListener", "docstring_tokens": ["Accept", "implements", "the", "corresponding", "method", "of", "net", ".", "Listener", "for", "TestListener"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cert/logging_conn.go#L182-L188", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cert/logging_conn.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close implements the corresponding method of net.Listener for\n// TestListener. Any blocked Accept operations will be unblocked and return\n// errors.", "docstring_tokens": ["Close", "implements", "the", "corresponding", "method", "of", "net", ".", "Listener", "for", "TestListener", ".", "Any", "blocked", "Accept", "operations", "will", "be", "unblocked", "and", "return", "errors", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cert/logging_conn.go#L193-L201", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/error.go", "func_name": "errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// errorf is analogous to fmt.Errorf, but generates hashTreeErrors instead of\n// errorStrings.", "docstring_tokens": ["errorf", "is", "analogous", "to", "fmt", ".", "Errorf", "but", "generates", "hashTreeErrors", "instead", "of", "errorStrings", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/error.go#L32-L37", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/serviceenv/service_env.go", "func_name": "InitWithKube", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitWithKube is like InitServiceEnv, but also assumes that it's run inside\n// a kubernetes cluster and tries to connect to the kubernetes API server.", "docstring_tokens": ["InitWithKube", "is", "like", "InitServiceEnv", "but", "also", "assumes", "that", "it", "s", "run", "inside", "a", "kubernetes", "cluster", "and", "tries", "to", "connect", "to", "the", "kubernetes", "API", "server", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/serviceenv/service_env.go#L85-L89", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/serviceenv/service_env.go", "func_name": "GetEtcdClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEtcdClient returns the already connected etcd client without modification.", "docstring_tokens": ["GetEtcdClient", "returns", "the", "already", "connected", "etcd", "client", "without", "modification", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/serviceenv/service_env.go#L174-L182", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/serviceenv/service_env.go", "func_name": "GetKubeClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetKubeClient returns the already connected Kubernetes API client without\n// modification.", "docstring_tokens": ["GetKubeClient", "returns", "the", "already", "connected", "Kubernetes", "API", "client", "without", "modification", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/serviceenv/service_env.go#L186-L194", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/hash.go", "func_name": "NewHasher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHasher creates a hasher.", "docstring_tokens": ["NewHasher", "creates", "a", "hasher", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/hash.go#L14-L19", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/hash.go", "func_name": "HashJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HashJob computes and returns the hash of a job.", "docstring_tokens": ["HashJob", "computes", "and", "returns", "the", "hash", "of", "a", "job", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/hash.go#L22-L24", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/hash.go", "func_name": "HashPipeline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HashPipeline computes and returns the hash of a pipeline.", "docstring_tokens": ["HashPipeline", "computes", "and", "returns", "the", "hash", "of", "a", "pipeline", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/hash.go#L27-L29", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/client.go", "func_name": "Status", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Status returns the statuses of workers referenced by pipelineRcName.\n// pipelineRcName is the name of the pipeline's RC and can be gotten with\n// ppsutil.PipelineRcName. You can also pass \"\" for pipelineRcName to get all\n// clients for all workers.", "docstring_tokens": ["Status", "returns", "the", "statuses", "of", "workers", "referenced", "by", "pipelineRcName", ".", "pipelineRcName", "is", "the", "name", "of", "the", "pipeline", "s", "RC", "and", "can", "be", "gotten", "with", "ppsutil", ".", "PipelineRcName", ".", "You", "can", "also", "pass", "for", "pipelineRcName", "to", "get", "all", "clients", "for", "all", "workers", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/client.go#L28-L42", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/client.go", "func_name": "Cancel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cancel cancels a set of datums running on workers.\n// pipelineRcName is the name of the pipeline's RC and can be gotten with\n// ppsutil.PipelineRcName.", "docstring_tokens": ["Cancel", "cancels", "a", "set", "of", "datums", "running", "on", "workers", ".", "pipelineRcName", "is", "the", "name", "of", "the", "pipeline", "s", "RC", "and", "can", "be", "gotten", "with", "ppsutil", ".", "PipelineRcName", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/client.go#L47-L70", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/client.go", "func_name": "Conns", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Conns returns a slice of connections to worker servers.\n// pipelineRcName is the name of the pipeline's RC and can be gotten with\n// ppsutil.PipelineRcName. You can also pass \"\" for pipelineRcName to get all\n// clients for all workers.", "docstring_tokens": ["Conns", "returns", "a", "slice", "of", "connections", "to", "worker", "servers", ".", "pipelineRcName", "is", "the", "name", "of", "the", "pipeline", "s", "RC", "and", "can", "be", "gotten", "with", "ppsutil", ".", "PipelineRcName", ".", "You", "can", "also", "pass", "for", "pipelineRcName", "to", "get", "all", "clients", "for", "all", "workers", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/client.go#L76-L91", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/client.go", "func_name": "Clients", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clients returns a slice of worker clients for a pipeline.\n// pipelineRcName is the name of the pipeline's RC and can be gotten with\n// ppsutil.PipelineRcName. You can also pass \"\" for pipelineRcName to get all\n// clients for all workers.", "docstring_tokens": ["Clients", "returns", "a", "slice", "of", "worker", "clients", "for", "a", "pipeline", ".", "pipelineRcName", "is", "the", "name", "of", "the", "pipeline", "s", "RC", "and", "can", "be", "gotten", "with", "ppsutil", ".", "PipelineRcName", ".", "You", "can", "also", "pass", "for", "pipelineRcName", "to", "get", "all", "clients", "for", "all", "workers", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/client.go#L110-L120", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient returns a worker client for the worker at the IP address passed in.", "docstring_tokens": ["NewClient", "returns", "a", "worker", "client", "for", "the", "worker", "at", "the", "IP", "address", "passed", "in", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/client.go#L123-L134", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cmdutil/cobra.go", "func_name": "RunFixedArgs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunFixedArgs wraps a function in a function\n// that checks its exact argument count.", "docstring_tokens": ["RunFixedArgs", "wraps", "a", "function", "in", "a", "function", "that", "checks", "its", "exact", "argument", "count", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cmdutil/cobra.go#L16-L27", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cmdutil/cobra.go", "func_name": "RunBoundedArgs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunBoundedArgs wraps a function in a function\n// that checks its argument count is within a range.", "docstring_tokens": ["RunBoundedArgs", "wraps", "a", "function", "in", "a", "function", "that", "checks", "its", "argument", "count", "is", "within", "a", "range", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cmdutil/cobra.go#L31-L42", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cmdutil/cobra.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run makes a new cobra run function that wraps the given function.", "docstring_tokens": ["Run", "makes", "a", "new", "cobra", "run", "function", "that", "wraps", "the", "given", "function", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cmdutil/cobra.go#L45-L51", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cmdutil/cobra.go", "func_name": "ErrorAndExit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ErrorAndExit errors with the given format and args, and then exits.", "docstring_tokens": ["ErrorAndExit", "errors", "with", "the", "given", "format", "and", "args", "and", "then", "exits", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cmdutil/cobra.go#L54-L59", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cmdutil/cobra.go", "func_name": "ParseCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseCommit takes an argument of the form \"repo[@branch-or-commit]\" and\n// returns the corresponding *pfs.Commit.", "docstring_tokens": ["ParseCommit", "takes", "an", "argument", "of", "the", "form", "repo", "["], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cmdutil/cobra.go#L63-L78", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cmdutil/cobra.go", "func_name": "ParseBranch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseBranch takes an argument of the form \"repo[@branch]\" and\n// returns the corresponding *pfs.Branch. This uses ParseCommit under the hood\n// because a branch name is usually interchangeable with a commit-id.", "docstring_tokens": ["ParseBranch", "takes", "an", "argument", "of", "the", "form", "repo", "["], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cmdutil/cobra.go#L97-L103", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cmdutil/cobra.go", "func_name": "ParseFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseFile takes an argument of the form \"repo[@branch-or-commit[:path]]\", and\n// returns the corresponding *pfs.File.", "docstring_tokens": ["ParseFile", "takes", "an", "argument", "of", "the", "form", "repo", "["], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cmdutil/cobra.go#L121-L146", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cmdutil/cobra.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set adds a string to r", "docstring_tokens": ["Set", "adds", "a", "string", "to", "r"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cmdutil/cobra.go#L177-L180", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cmdutil/cobra.go", "func_name": "SetDocsUsage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDocsUsage sets the usage string for a docs-style command. Docs commands\n// have no functionality except to output some docs and related commands, and\n// should not specify a 'Run' attribute.", "docstring_tokens": ["SetDocsUsage", "sets", "the", "usage", "string", "for", "a", "docs", "-", "style", "command", ".", "Docs", "commands", "have", "no", "functionality", "except", "to", "output", "some", "docs", "and", "related", "commands", "and", "should", "not", "specify", "a", "Run", "attribute", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cmdutil/cobra.go#L275-L323", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/server/master.go", "func_name": "makeCronCommits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeCronCommits makes commits to a single cron input's repo. It's\n// a helper function called by monitorPipeline.", "docstring_tokens": ["makeCronCommits", "makes", "commits", "to", "a", "single", "cron", "input", "s", "repo", ".", "It", "s", "a", "helper", "function", "called", "by", "monitorPipeline", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/server/master.go#L561-L633", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/tracing.go", "func_name": "Writer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Writer implements the corresponding method in the Client interface", "docstring_tokens": ["Writer", "implements", "the", "corresponding", "method", "in", "the", "Client", "interface"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/tracing.go#L23-L29", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/tracing.go", "func_name": "Reader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reader implements the corresponding method in the Client interface", "docstring_tokens": ["Reader", "implements", "the", "corresponding", "method", "in", "the", "Client", "interface"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/tracing.go#L32-L39", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/tracing.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete implements the corresponding method in the Client interface", "docstring_tokens": ["Delete", "implements", "the", "corresponding", "method", "in", "the", "Client", "interface"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/tracing.go#L42-L47", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/tracing.go", "func_name": "Walk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Walk implements the corresponding method in the Client interface", "docstring_tokens": ["Walk", "implements", "the", "corresponding", "method", "in", "the", "Client", "interface"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/tracing.go#L50-L55", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/tracing.go", "func_name": "Exists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exists implements the corresponding method in the Client interface", "docstring_tokens": ["Exists", "implements", "the", "corresponding", "method", "in", "the", "Client", "interface"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/tracing.go#L58-L63", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs/pfs.go", "func_name": "GetBlock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBlock encodes a hash into a readable format in the form of a Block.", "docstring_tokens": ["GetBlock", "encodes", "a", "hash", "into", "a", "readable", "format", "in", "the", "form", "of", "a", "Block", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs/pfs.go#L37-L41", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/health/health.go", "func_name": "Health", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Health implements the Health method for healthServer.", "docstring_tokens": ["Health", "implements", "the", "Health", "method", "for", "healthServer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/health/health.go#L27-L32", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/path.go", "func_name": "split", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// split is like path.Split, but uses this library's defaults for canonical\n// paths", "docstring_tokens": ["split", "is", "like", "path", ".", "Split", "but", "uses", "this", "library", "s", "defaults", "for", "canonical", "paths"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/path.go#L63-L65", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/path.go", "func_name": "ValidatePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidatePath checks if a file path is legal", "docstring_tokens": ["ValidatePath", "checks", "if", "a", "file", "path", "is", "legal"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/path.go#L74-L87", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/worker.go", "func_name": "MatchDatum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MatchDatum checks if a datum matches a filter. To match each string in\n// filter must correspond match at least 1 datum's Path or Hash. Order of\n// filter and data is irrelevant.", "docstring_tokens": ["MatchDatum", "checks", "if", "a", "datum", "matches", "a", "filter", ".", "To", "match", "each", "string", "in", "filter", "must", "correspond", "match", "at", "least", "1", "datum", "s", "Path", "or", "Hash", ".", "Order", "of", "filter", "and", "data", "is", "irrelevant", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/worker.go#L12-L29", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cache/server/server.go", "func_name": "NewCacheServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCacheServer creates a new CacheServer.", "docstring_tokens": ["NewCacheServer", "creates", "a", "new", "CacheServer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cache/server/server.go#L26-L35", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/server/api_server.go", "func_name": "authorizePipelineOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// authorizePipelineOp checks if the user indicated by 'ctx' is authorized\n// to perform 'operation' on the pipeline in 'info'", "docstring_tokens": ["authorizePipelineOp", "checks", "if", "the", "user", "indicated", "by", "ctx", "is", "authorized", "to", "perform", "operation", "on", "the", "pipeline", "in", "info"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/server/api_server.go#L377-L468", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/server/api_server.go", "func_name": "sudo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sudo is a helper function that copies 'pachClient' grants it PPS's superuser\n// token, and calls 'f' with the superuser client. This helps isolate PPS's use\n// of its superuser token so that it's not widely copied and is unlikely to\n// leak authority to parts of the code that aren't supposed to have it.\n//\n// Note that because the argument to 'f' is a superuser client, it should not\n// be used to make any calls with unvalidated user input. Any such use could be\n// exploited to make PPS a confused deputy", "docstring_tokens": ["sudo", "is", "a", "helper", "function", "that", "copies", "pachClient", "grants", "it", "PPS", "s", "superuser", "token", "and", "calls", "f", "with", "the", "superuser", "client", ".", "This", "helps", "isolate", "PPS", "s", "use", "of", "its", "superuser", "token", "so", "that", "it", "s", "not", "widely", "copied", "and", "is", "unlikely", "to", "leak", "authority", "to", "parts", "of", "the", "code", "that", "aren", "t", "supposed", "to", "have", "it", ".", "Note", "that", "because", "the", "argument", "to", "f", "is", "a", "superuser", "client", "it", "should", "not", "be", "used", "to", "make", "any", "calls", "with", "unvalidated", "user", "input", ".", "Any", "such", "use", "could", "be", "exploited", "to", "make", "PPS", "a", "confused", "deputy"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/server/api_server.go#L1588-L1612", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/server/api_server.go", "func_name": "setPipelineDefaults", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setPipelineDefaults sets the default values for a pipeline info", "docstring_tokens": ["setPipelineDefaults", "sets", "the", "default", "values", "for", "a", "pipeline", "info"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/server/api_server.go#L1970-L2023", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/server/api_server.go", "func_name": "incrementGCGeneration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// incrementGCGeneration increments the GC generation number in etcd", "docstring_tokens": ["incrementGCGeneration", "increments", "the", "GC", "generation", "number", "in", "etcd"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/server/api_server.go#L2692-L2716", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/debug/server/server.go", "func_name": "NewDebugServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDebugServer creates a new server that serves the debug api over GRPC", "docstring_tokens": ["NewDebugServer", "creates", "a", "new", "server", "that", "serves", "the", "debug", "api", "over", "GRPC"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/debug/server/server.go#L22-L29", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/health.go", "func_name": "Health", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Health health checks pachd, it returns an error if pachd isn't healthy.", "docstring_tokens": ["Health", "health", "checks", "pachd", "it", "returns", "an", "error", "if", "pachd", "isn", "t", "healthy", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/health.go#L10-L13", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/obj_block_api_server.go", "func_name": "newObjBlockAPIServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// In test mode, we use unique names for cache groups, since we might want\n// to run multiple block servers locally, which would conflict if groups\n// had the same name. We also do not report stats to prometheus", "docstring_tokens": ["In", "test", "mode", "we", "use", "unique", "names", "for", "cache", "groups", "since", "we", "might", "want", "to", "run", "multiple", "block", "servers", "locally", "which", "would", "conflict", "if", "groups", "had", "the", "same", "name", ".", "We", "also", "do", "not", "report", "stats", "to", "prometheus"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/obj_block_api_server.go#L69-L110", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/obj_block_api_server.go", "func_name": "watchGC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// watchGC watches for GC runs and invalidate all cache when GC happens.", "docstring_tokens": ["watchGC", "watches", "for", "GC", "runs", "and", "invalidate", "all", "cache", "when", "GC", "happens", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/obj_block_api_server.go#L113-L148", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/obj_block_api_server.go", "func_name": "splitKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// splitKey splits a key into the format we want, and also postpends\n// the generation number", "docstring_tokens": ["splitKey", "splits", "a", "key", "into", "the", "format", "we", "want", "and", "also", "postpends", "the", "generation", "number"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/obj_block_api_server.go#L1101-L1107", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/tabwriter/tabwriter.go", "func_name": "NewWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWriter returns a new Writer, it will flush when\n// it gets termHeight many lines, including the header line.\n// The header line will be reprinted termHeight many lines have been written.\n// NewStreamingWriter will panic if it's given a header that doesn't end in \\n.", "docstring_tokens": ["NewWriter", "returns", "a", "new", "Writer", "it", "will", "flush", "when", "it", "gets", "termHeight", "many", "lines", "including", "the", "header", "line", ".", "The", "header", "line", "will", "be", "reprinted", "termHeight", "many", "lines", "have", "been", "written", ".", "NewStreamingWriter", "will", "panic", "if", "it", "s", "given", "a", "header", "that", "doesn", "t", "end", "in", "\\", "n", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/tabwriter/tabwriter.go#L28-L39", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/tabwriter/tabwriter.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes a line to the tabwriter.", "docstring_tokens": ["Write", "writes", "a", "line", "to", "the", "tabwriter", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/tabwriter/tabwriter.go#L42-L54", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pretty/pretty.go", "func_name": "PrintRepoHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintRepoHeader prints a repo header.", "docstring_tokens": ["PrintRepoHeader", "prints", "a", "repo", "header", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pretty/pretty.go#L28-L34", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pretty/pretty.go", "func_name": "PrintRepoInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintRepoInfo pretty-prints repo info.", "docstring_tokens": ["PrintRepoInfo", "pretty", "-", "prints", "repo", "info", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pretty/pretty.go#L37-L49", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pretty/pretty.go", "func_name": "PrintDetailedRepoInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintDetailedRepoInfo pretty-prints detailed repo info.", "docstring_tokens": ["PrintDetailedRepoInfo", "pretty", "-", "prints", "detailed", "repo", "info", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pretty/pretty.go#L66-L83", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pretty/pretty.go", "func_name": "PrintBranch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintBranch pretty-prints a Branch.", "docstring_tokens": ["PrintBranch", "pretty", "-", "prints", "a", "Branch", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pretty/pretty.go#L91-L98", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pretty/pretty.go", "func_name": "PrintCommitInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintCommitInfo pretty-prints commit info.", "docstring_tokens": ["PrintCommitInfo", "pretty", "-", "prints", "commit", "info", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pretty/pretty.go#L106-L128", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pretty/pretty.go", "func_name": "PrintDetailedCommitInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintDetailedCommitInfo pretty-prints detailed commit info.", "docstring_tokens": ["PrintDetailedCommitInfo", "pretty", "-", "prints", "detailed", "commit", "info", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pretty/pretty.go#L145-L166", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pretty/pretty.go", "func_name": "PrintFileInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintFileInfo pretty-prints file info.\n// If recurse is false and directory size is 0, display \"-\" instead\n// If fast is true and file size is 0, display \"-\" instead", "docstring_tokens": ["PrintFileInfo", "pretty", "-", "prints", "file", "info", ".", "If", "recurse", "is", "false", "and", "directory", "size", "is", "0", "display", "-", "instead", "If", "fast", "is", "true", "and", "file", "size", "is", "0", "display", "-", "instead"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pretty/pretty.go#L176-L192", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pretty/pretty.go", "func_name": "PrintDetailedFileInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintDetailedFileInfo pretty-prints detailed file info.", "docstring_tokens": ["PrintDetailedFileInfo", "pretty", "-", "prints", "detailed", "file", "info", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pretty/pretty.go#L195-L206", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ancestry/ancestry.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds an ancestry reference to the given string.", "docstring_tokens": ["Add", "adds", "an", "ancestry", "reference", "to", "the", "given", "string", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ancestry/ancestry.go#L54-L56", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/backoff/retry.go", "func_name": "RetryNotify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RetryNotify calls notify function with the error and wait duration\n// for each failed attempt before sleep.", "docstring_tokens": ["RetryNotify", "calls", "notify", "function", "with", "the", "error", "and", "wait", "duration", "for", "each", "failed", "attempt", "before", "sleep", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/backoff/retry.go#L29-L51", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/cache.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get does a filtered write of id's hashtree to the passed in io.Writer.", "docstring_tokens": ["Get", "does", "a", "filtered", "write", "of", "id", "s", "hashtree", "to", "the", "passed", "in", "io", ".", "Writer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/cache.go#L56-L67", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/cache.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes a hashtree from the cache.", "docstring_tokens": ["Delete", "deletes", "a", "hashtree", "from", "the", "cache", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/cache.go#L70-L72", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/pretty/pretty.go", "func_name": "PrintJobInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintJobInfo pretty-prints job info.", "docstring_tokens": ["PrintJobInfo", "pretty", "-", "prints", "job", "info", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/pretty/pretty.go#L46-L72", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/pretty/pretty.go", "func_name": "PrintPipelineInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintPipelineInfo pretty-prints pipeline info.", "docstring_tokens": ["PrintPipelineInfo", "pretty", "-", "prints", "pipeline", "info", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/pretty/pretty.go#L80-L89", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/pretty/pretty.go", "func_name": "PrintWorkerStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintWorkerStatus pretty prints a worker status.", "docstring_tokens": ["PrintWorkerStatus", "pretty", "prints", "a", "worker", "status", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/pretty/pretty.go#L97-L110", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/pretty/pretty.go", "func_name": "PrintDetailedJobInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintDetailedJobInfo pretty-prints detailed job info.", "docstring_tokens": ["PrintDetailedJobInfo", "pretty", "-", "prints", "detailed", "job", "info", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/pretty/pretty.go#L127-L179", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/pretty/pretty.go", "func_name": "PrintDetailedPipelineInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintDetailedPipelineInfo pretty-prints detailed pipeline info.", "docstring_tokens": ["PrintDetailedPipelineInfo", "pretty", "-", "prints", "detailed", "pipeline", "info", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/pretty/pretty.go#L196-L236", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/pretty/pretty.go", "func_name": "PrintDatumInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintDatumInfo pretty-prints file info.\n// If recurse is false and directory size is 0, display \"-\" instead\n// If fast is true and file size is 0, display \"-\" instead", "docstring_tokens": ["PrintDatumInfo", "pretty", "-", "prints", "file", "info", ".", "If", "recurse", "is", "false", "and", "directory", "size", "is", "0", "display", "-", "instead", "If", "fast", "is", "true", "and", "file", "size", "is", "0", "display", "-", "instead"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/pretty/pretty.go#L246-L252", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/pretty/pretty.go", "func_name": "PrintDetailedDatumInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintDetailedDatumInfo pretty-prints detailed info about a datum", "docstring_tokens": ["PrintDetailedDatumInfo", "pretty", "-", "prints", "detailed", "info", "about", "a", "datum"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/pretty/pretty.go#L255-L301", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/pretty/pretty.go", "func_name": "PrintFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintFile values for a pfs file.", "docstring_tokens": ["PrintFile", "values", "for", "a", "pfs", "file", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/pretty/pretty.go#L309-L311", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/pretty/pretty.go", "func_name": "ShorthandInput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShorthandInput renders a pps.Input as a short, readable string", "docstring_tokens": ["ShorthandInput", "renders", "a", "pps", ".", "Input", "as", "a", "short", "readable", "string"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/pretty/pretty.go#L414-L436", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/amazon_client.go", "func_name": "Retrieve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Retrieve returns nil if it successfully retrieved the value. Error is\n// returned if the value were not obtainable, or empty.", "docstring_tokens": ["Retrieve", "returns", "nil", "if", "it", "successfully", "retrieved", "the", "value", ".", "Error", "is", "returned", "if", "the", "value", "were", "not", "obtainable", "or", "empty", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/amazon_client.go#L90-L143", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/amazon_client.go", "func_name": "IsExpired", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsExpired returns if the credentials are no longer valid, and need to be\n// retrieved.", "docstring_tokens": ["IsExpired", "returns", "if", "the", "credentials", "are", "no", "longer", "valid", "and", "need", "to", "be", "retrieved", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/amazon_client.go#L147-L151", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "NewBranch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBranch creates a pfs.Branch", "docstring_tokens": ["NewBranch", "creates", "a", "pfs", ".", "Branch"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L22-L27", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "NewCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCommit creates a pfs.Commit.", "docstring_tokens": ["NewCommit", "creates", "a", "pfs", ".", "Commit", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L30-L35", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "NewCommitProvenance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCommitProvenance creates a pfs.CommitProvenance.", "docstring_tokens": ["NewCommitProvenance", "creates", "a", "pfs", ".", "CommitProvenance", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L38-L43", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "NewFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFile creates a pfs.File.", "docstring_tokens": ["NewFile", "creates", "a", "pfs", ".", "File", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L46-L51", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "CreateRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateRepo creates a new Repo object in pfs with the given name. Repos are\n// the top level data object in pfs and should be used to store data of a\n// similar type. For example rather than having a single Repo for an entire\n// project you might have separate Repos for logs, metrics, database dumps etc.", "docstring_tokens": ["CreateRepo", "creates", "a", "new", "Repo", "object", "in", "pfs", "with", "the", "given", "name", ".", "Repos", "are", "the", "top", "level", "data", "object", "in", "pfs", "and", "should", "be", "used", "to", "store", "data", "of", "a", "similar", "type", ".", "For", "example", "rather", "than", "having", "a", "single", "Repo", "for", "an", "entire", "project", "you", "might", "have", "separate", "Repos", "for", "logs", "metrics", "database", "dumps", "etc", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L78-L86", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "InspectRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InspectRepo returns info about a specific Repo.", "docstring_tokens": ["InspectRepo", "returns", "info", "about", "a", "specific", "Repo", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L89-L100", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "ListRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListRepo returns info about all Repos.\n// provenance specifies a set of provenance repos, only repos which have ALL of\n// the specified repos as provenance will be returned unless provenance is nil\n// in which case it is ignored.", "docstring_tokens": ["ListRepo", "returns", "info", "about", "all", "Repos", ".", "provenance", "specifies", "a", "set", "of", "provenance", "repos", "only", "repos", "which", "have", "ALL", "of", "the", "specified", "repos", "as", "provenance", "will", "be", "returned", "unless", "provenance", "is", "nil", "in", "which", "case", "it", "is", "ignored", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L106-L116", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "DeleteRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteRepo deletes a repo and reclaims the storage space it was using. Note\n// that as of 1.0 we do not reclaim the blocks that the Repo was referencing,\n// this is because they may also be referenced by other Repos and deleting them\n// would make those Repos inaccessible. This will be resolved in later\n// versions.\n// If \"force\" is set to true, the repo will be removed regardless of errors.\n// This argument should be used with care.", "docstring_tokens": ["DeleteRepo", "deletes", "a", "repo", "and", "reclaims", "the", "storage", "space", "it", "was", "using", ".", "Note", "that", "as", "of", "1", ".", "0", "we", "do", "not", "reclaim", "the", "blocks", "that", "the", "Repo", "was", "referencing", "this", "is", "because", "they", "may", "also", "be", "referenced", "by", "other", "Repos", "and", "deleting", "them", "would", "make", "those", "Repos", "inaccessible", ".", "This", "will", "be", "resolved", "in", "later", "versions", ".", "If", "force", "is", "set", "to", "true", "the", "repo", "will", "be", "removed", "regardless", "of", "errors", ".", "This", "argument", "should", "be", "used", "with", "care", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L125-L134", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "BuildCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BuildCommit builds a commit in a single call from an existing HashTree that\n// has already been written to the object store. Note this is a more advanced\n// pattern for creating commits that's mostly used internally.", "docstring_tokens": ["BuildCommit", "builds", "a", "commit", "in", "a", "single", "call", "from", "an", "existing", "HashTree", "that", "has", "already", "been", "written", "to", "the", "object", "store", ".", "Note", "this", "is", "a", "more", "advanced", "pattern", "for", "creating", "commits", "that", "s", "mostly", "used", "internally", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L166-L179", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "StartCommitParent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartCommitParent begins the process of committing data to a Repo. Once started\n// you can write to the Commit with PutFile and when all the data has been\n// written you must finish the Commit with FinishCommit. NOTE, data is not\n// persisted until FinishCommit is called.\n// branch is a more convenient way to build linear chains of commits. When a\n// commit is started with a non empty branch the value of branch becomes an\n// alias for the created Commit. This enables a more intuitive access pattern.\n// When the commit is started on a branch the previous head of the branch is\n// used as the parent of the commit.\n// parentCommit specifies the parent Commit, upon creation the new Commit will\n// appear identical to the parent Commit, data can safely be added to the new\n// commit without affecting the contents of the parent Commit. You may pass \"\"\n// as parentCommit in which case the new Commit will have no parent and will\n// initially appear empty.", "docstring_tokens": ["StartCommitParent", "begins", "the", "process", "of", "committing", "data", "to", "a", "Repo", ".", "Once", "started", "you", "can", "write", "to", "the", "Commit", "with", "PutFile", "and", "when", "all", "the", "data", "has", "been", "written", "you", "must", "finish", "the", "Commit", "with", "FinishCommit", ".", "NOTE", "data", "is", "not", "persisted", "until", "FinishCommit", "is", "called", ".", "branch", "is", "a", "more", "convenient", "way", "to", "build", "linear", "chains", "of", "commits", ".", "When", "a", "commit", "is", "started", "with", "a", "non", "empty", "branch", "the", "value", "of", "branch", "becomes", "an", "alias", "for", "the", "created", "Commit", ".", "This", "enables", "a", "more", "intuitive", "access", "pattern", ".", "When", "the", "commit", "is", "started", "on", "a", "branch", "the", "previous", "head", "of", "the", "branch", "is", "used", "as", "the", "parent", "of", "the", "commit", ".", "parentCommit", "specifies", "the", "parent", "Commit", "upon", "creation", "the", "new", "Commit", "will", "appear", "identical", "to", "the", "parent", "Commit", "data", "can", "safely", "be", "added", "to", "the", "new", "commit", "without", "affecting", "the", "contents", "of", "the", "parent", "Commit", ".", "You", "may", "pass", "as", "parentCommit", "in", "which", "case", "the", "new", "Commit", "will", "have", "no", "parent", "and", "will", "initially", "appear", "empty", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L195-L212", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "FinishCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FinishCommit ends the process of committing data to a Repo and persists the\n// Commit. Once a Commit is finished the data becomes immutable and future\n// attempts to write to it with PutFile will error.", "docstring_tokens": ["FinishCommit", "ends", "the", "process", "of", "committing", "data", "to", "a", "Repo", "and", "persists", "the", "Commit", ".", "Once", "a", "Commit", "is", "finished", "the", "data", "becomes", "immutable", "and", "future", "attempts", "to", "write", "to", "it", "with", "PutFile", "will", "error", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L217-L225", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "InspectCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InspectCommit returns info about a specific Commit.", "docstring_tokens": ["InspectCommit", "returns", "info", "about", "a", "specific", "Commit", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L228-L230", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "BlockCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BlockCommit returns info about a specific Commit, but blocks until that\n// commit has been finished.", "docstring_tokens": ["BlockCommit", "returns", "info", "about", "a", "specific", "Commit", "but", "blocks", "until", "that", "commit", "has", "been", "finished", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L234-L236", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "ListCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListCommit lists commits.\n// If only `repo` is given, all commits in the repo are returned.\n// If `to` is given, only the ancestors of `to`, including `to` itself,\n// are considered.\n// If `from` is given, only the descendents of `from`, including `from`\n// itself, are considered.\n// `number` determines how many commits are returned. If `number` is 0,\n// all commits that match the aforementioned criteria are returned.", "docstring_tokens": ["ListCommit", "lists", "commits", ".", "If", "only", "repo", "is", "given", "all", "commits", "in", "the", "repo", "are", "returned", ".", "If", "to", "is", "given", "only", "the", "ancestors", "of", "to", "including", "to", "itself", "are", "considered", ".", "If", "from", "is", "given", "only", "the", "descendents", "of", "from", "including", "from", "itself", "are", "considered", ".", "number", "determines", "how", "many", "commits", "are", "returned", ".", "If", "number", "is", "0", "all", "commits", "that", "match", "the", "aforementioned", "criteria", "are", "returned", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L260-L269", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "ListCommitF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListCommitF lists commits, calling f with each commit.\n// If only `repo` is given, all commits in the repo are returned.\n// If `to` is given, only the ancestors of `to`, including `to` itself,\n// are considered.\n// If `from` is given, only the descendents of `from`, including `from`\n// itself, are considered.\n// `number` determines how many commits are returned. If `number` is 0,\n// all commits that match the aforementioned criteria are returned.", "docstring_tokens": ["ListCommitF", "lists", "commits", "calling", "f", "with", "each", "commit", ".", "If", "only", "repo", "is", "given", "all", "commits", "in", "the", "repo", "are", "returned", ".", "If", "to", "is", "given", "only", "the", "ancestors", "of", "to", "including", "to", "itself", "are", "considered", ".", "If", "from", "is", "given", "only", "the", "descendents", "of", "from", "including", "from", "itself", "are", "considered", ".", "number", "determines", "how", "many", "commits", "are", "returned", ".", "If", "number", "is", "0", "all", "commits", "that", "match", "the", "aforementioned", "criteria", "are", "returned", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L279-L309", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "ListCommitByRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListCommitByRepo lists all commits in a repo.", "docstring_tokens": ["ListCommitByRepo", "lists", "all", "commits", "in", "a", "repo", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L312-L314", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "CreateBranch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateBranch creates a new branch", "docstring_tokens": ["CreateBranch", "creates", "a", "new", "branch"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L317-L331", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "InspectBranch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InspectBranch returns information on a specific PFS branch", "docstring_tokens": ["InspectBranch", "returns", "information", "on", "a", "specific", "PFS", "branch"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L334-L342", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "ListBranch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListBranch lists the active branches on a Repo.", "docstring_tokens": ["ListBranch", "lists", "the", "active", "branches", "on", "a", "Repo", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L345-L356", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "SetBranch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBranch sets a commit and its ancestors as a branch.\n// SetBranch is deprecated in favor of CommitBranch.", "docstring_tokens": ["SetBranch", "sets", "a", "commit", "and", "its", "ancestors", "as", "a", "branch", ".", "SetBranch", "is", "deprecated", "in", "favor", "of", "CommitBranch", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L360-L362", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "DeleteBranch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteBranch deletes a branch, but leaves the commits themselves intact.\n// In other words, those commits can still be accessed via commit IDs and\n// other branches they happen to be on.", "docstring_tokens": ["DeleteBranch", "deletes", "a", "branch", "but", "leaves", "the", "commits", "themselves", "intact", ".", "In", "other", "words", "those", "commits", "can", "still", "be", "accessed", "via", "commit", "IDs", "and", "other", "branches", "they", "happen", "to", "be", "on", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L367-L376", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "DeleteCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteCommit deletes a commit.", "docstring_tokens": ["DeleteCommit", "deletes", "a", "commit", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L379-L387", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "FlushCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FlushCommit returns an iterator that returns commits that have the\n// specified `commits` as provenance. Note that the iterator can block if\n// jobs have not successfully completed. This in effect waits for all of the\n// jobs that are triggered by a set of commits to complete.\n//\n// If toRepos is not nil then only the commits up to and including those\n// repos will be considered, otherwise all repos are considered.\n//\n// Note that it's never necessary to call FlushCommit to run jobs, they'll\n// run no matter what, FlushCommit just allows you to wait for them to\n// complete and see their output once they do.", "docstring_tokens": ["FlushCommit", "returns", "an", "iterator", "that", "returns", "commits", "that", "have", "the", "specified", "commits", "as", "provenance", ".", "Note", "that", "the", "iterator", "can", "block", "if", "jobs", "have", "not", "successfully", "completed", ".", "This", "in", "effect", "waits", "for", "all", "of", "the", "jobs", "that", "are", "triggered", "by", "a", "set", "of", "commits", "to", "complete", ".", "If", "toRepos", "is", "not", "nil", "then", "only", "the", "commits", "up", "to", "and", "including", "those", "repos", "will", "be", "considered", "otherwise", "all", "repos", "are", "considered", ".", "Note", "that", "it", "s", "never", "necessary", "to", "call", "FlushCommit", "to", "run", "jobs", "they", "ll", "run", "no", "matter", "what", "FlushCommit", "just", "allows", "you", "to", "wait", "for", "them", "to", "complete", "and", "see", "their", "output", "once", "they", "do", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L400-L414", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "FlushCommitF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FlushCommitF calls f with commits that have the specified `commits` as\n// provenance. Note that it can block if jobs have not successfully\n// completed. This in effect waits for all of the jobs that are triggered by a\n// set of commits to complete.\n//\n// If toRepos is not nil then only the commits up to and including those repos\n// will be considered, otherwise all repos are considered.\n//\n// Note that it's never necessary to call FlushCommit to run jobs, they'll run\n// no matter what, FlushCommitF just allows you to wait for them to complete and\n// see their output once they do.", "docstring_tokens": ["FlushCommitF", "calls", "f", "with", "commits", "that", "have", "the", "specified", "commits", "as", "provenance", ".", "Note", "that", "it", "can", "block", "if", "jobs", "have", "not", "successfully", "completed", ".", "This", "in", "effect", "waits", "for", "all", "of", "the", "jobs", "that", "are", "triggered", "by", "a", "set", "of", "commits", "to", "complete", ".", "If", "toRepos", "is", "not", "nil", "then", "only", "the", "commits", "up", "to", "and", "including", "those", "repos", "will", "be", "considered", "otherwise", "all", "repos", "are", "considered", ".", "Note", "that", "it", "s", "never", "necessary", "to", "call", "FlushCommit", "to", "run", "jobs", "they", "ll", "run", "no", "matter", "what", "FlushCommitF", "just", "allows", "you", "to", "wait", "for", "them", "to", "complete", "and", "see", "their", "output", "once", "they", "do", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L427-L450", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "FlushCommitAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FlushCommitAll returns commits that have the specified `commits` as\n// provenance. Note that it can block if jobs have not successfully\n// completed. This in effect waits for all of the jobs that are triggered by a\n// set of commits to complete.\n//\n// If toRepos is not nil then only the commits up to and including those repos\n// will be considered, otherwise all repos are considered.\n//\n// Note that it's never necessary to call FlushCommit to run jobs, they'll run\n// no matter what, FlushCommitAll just allows you to wait for them to complete and\n// see their output once they do.", "docstring_tokens": ["FlushCommitAll", "returns", "commits", "that", "have", "the", "specified", "commits", "as", "provenance", ".", "Note", "that", "it", "can", "block", "if", "jobs", "have", "not", "successfully", "completed", ".", "This", "in", "effect", "waits", "for", "all", "of", "the", "jobs", "that", "are", "triggered", "by", "a", "set", "of", "commits", "to", "complete", ".", "If", "toRepos", "is", "not", "nil", "then", "only", "the", "commits", "up", "to", "and", "including", "those", "repos", "will", "be", "considered", "otherwise", "all", "repos", "are", "considered", ".", "Note", "that", "it", "s", "never", "necessary", "to", "call", "FlushCommit", "to", "run", "jobs", "they", "ll", "run", "no", "matter", "what", "FlushCommitAll", "just", "allows", "you", "to", "wait", "for", "them", "to", "complete", "and", "see", "their", "output", "once", "they", "do", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L463-L472", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "SubscribeCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SubscribeCommit is like ListCommit but it keeps listening for commits as\n// they come in.", "docstring_tokens": ["SubscribeCommit", "is", "like", "ListCommit", "but", "it", "keeps", "listening", "for", "commits", "as", "they", "come", "in", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L503-L519", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "SubscribeCommitF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SubscribeCommitF is like ListCommit but it calls a callback function with\n// the results rather than returning an iterator.", "docstring_tokens": ["SubscribeCommitF", "is", "like", "ListCommit", "but", "it", "calls", "a", "callback", "function", "with", "the", "results", "rather", "than", "returning", "an", "iterator", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L523-L545", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "PutObjectAsync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutObjectAsync puts a value into the object store asynchronously.", "docstring_tokens": ["PutObjectAsync", "puts", "a", "value", "into", "the", "object", "store", "asynchronously", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L548-L554", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "PutObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutObject puts a value into the object store and tags it with 0 or more tags.", "docstring_tokens": ["PutObject", "puts", "a", "value", "into", "the", "object", "store", "and", "tags", "it", "with", "0", "or", "more", "tags", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L557-L579", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "PutObjectSplit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutObjectSplit is the same as PutObject except that the data is splitted\n// into several smaller objects. This is primarily useful if you'd like to\n// be able to resume upload.", "docstring_tokens": ["PutObjectSplit", "is", "the", "same", "as", "PutObject", "except", "that", "the", "data", "is", "splitted", "into", "several", "smaller", "objects", ".", "This", "is", "primarily", "useful", "if", "you", "d", "like", "to", "be", "able", "to", "resume", "upload", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L584-L606", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "GetObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetObject gets an object out of the object store by hash.", "docstring_tokens": ["GetObject", "gets", "an", "object", "out", "of", "the", "object", "store", "by", "hash", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L609-L621", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "GetObjectReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetObjectReader returns a reader for an object in object store by hash.", "docstring_tokens": ["GetObjectReader", "returns", "a", "reader", "for", "an", "object", "in", "object", "store", "by", "hash", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L624-L634", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "GetObjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetObjects gets several objects out of the object store by hash.", "docstring_tokens": ["GetObjects", "gets", "several", "objects", "out", "of", "the", "object", "store", "by", "hash", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L646-L667", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "TagObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TagObject applies a tag to an existing object.", "docstring_tokens": ["TagObject", "applies", "a", "tag", "to", "an", "existing", "object", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L679-L694", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "ListObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListObject lists objects stored in pfs.", "docstring_tokens": ["ListObject", "lists", "objects", "stored", "in", "pfs", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L697-L714", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "InspectObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InspectObject returns info about an Object.", "docstring_tokens": ["InspectObject", "returns", "info", "about", "an", "Object", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L717-L726", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "GetTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTag gets an object out of the object store by tag.", "docstring_tokens": ["GetTag", "gets", "an", "object", "out", "of", "the", "object", "store", "by", "tag", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L729-L741", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "GetTagReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTagReader returns a reader for an object in object store by tag.", "docstring_tokens": ["GetTagReader", "returns", "a", "reader", "for", "an", "object", "in", "object", "store", "by", "tag", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L744-L754", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "ListTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListTag lists tags stored in pfs.", "docstring_tokens": ["ListTag", "lists", "tags", "stored", "in", "pfs", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L766-L783", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "Compact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compact forces compaction of objects.", "docstring_tokens": ["Compact", "forces", "compaction", "of", "objects", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L786-L792", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "NewPutFileClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPutFileClient returns a new client for putting files into pfs in a single request.", "docstring_tokens": ["NewPutFileClient", "returns", "a", "new", "client", "for", "putting", "files", "into", "pfs", "in", "a", "single", "request", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L839-L845", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "PutFileOverwrite", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutFileOverwrite is like PutFile but it overwrites the file rather than\n// appending to it. overwriteIndex allows you to specify the index of the\n// object starting from which you'd like to overwrite. If you want to\n// overwrite the entire file, specify an index of 0.", "docstring_tokens": ["PutFileOverwrite", "is", "like", "PutFile", "but", "it", "overwrites", "the", "file", "rather", "than", "appending", "to", "it", ".", "overwriteIndex", "allows", "you", "to", "specify", "the", "index", "of", "the", "object", "starting", "from", "which", "you", "d", "like", "to", "overwrite", ".", "If", "you", "want", "to", "overwrite", "the", "entire", "file", "specify", "an", "index", "of", "0", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L885-L897", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close must be called after you're done using a putFileClient.\n// Further requests will throw errors.", "docstring_tokens": ["Close", "must", "be", "called", "after", "you", "re", "done", "using", "a", "putFileClient", ".", "Further", "requests", "will", "throw", "errors", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L947-L950", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "CopyFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CopyFile copys a file from one pfs location to another. It can be used on\n// directories or regular files.", "docstring_tokens": ["CopyFile", "copys", "a", "file", "from", "one", "pfs", "location", "to", "another", ".", "It", "can", "be", "used", "on", "directories", "or", "regular", "files", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L1021-L1031", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "GetFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFile returns the contents of a file at a specific Commit.\n// offset specifies a number of bytes that should be skipped in the beginning of the file.\n// size limits the total amount of data returned, note you will get fewer bytes\n// than size if you pass a value larger than the size of the file.\n// If size is set to 0 then all of the data will be returned.", "docstring_tokens": ["GetFile", "returns", "the", "contents", "of", "a", "file", "at", "a", "specific", "Commit", ".", "offset", "specifies", "a", "number", "of", "bytes", "that", "should", "be", "skipped", "in", "the", "beginning", "of", "the", "file", ".", "size", "limits", "the", "total", "amount", "of", "data", "returned", "note", "you", "will", "get", "fewer", "bytes", "than", "size", "if", "you", "pass", "a", "value", "larger", "than", "the", "size", "of", "the", "file", ".", "If", "size", "is", "set", "to", "0", "then", "all", "of", "the", "data", "will", "be", "returned", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L1038-L1051", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "GetFileReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFileReader returns a reader for the contents of a file at a specific Commit.\n// offset specifies a number of bytes that should be skipped in the beginning of the file.\n// size limits the total amount of data returned, note you will get fewer bytes\n// than size if you pass a value larger than the size of the file.\n// If size is set to 0 then all of the data will be returned.", "docstring_tokens": ["GetFileReader", "returns", "a", "reader", "for", "the", "contents", "of", "a", "file", "at", "a", "specific", "Commit", ".", "offset", "specifies", "a", "number", "of", "bytes", "that", "should", "be", "skipped", "in", "the", "beginning", "of", "the", "file", ".", "size", "limits", "the", "total", "amount", "of", "data", "returned", "note", "you", "will", "get", "fewer", "bytes", "than", "size", "if", "you", "pass", "a", "value", "larger", "than", "the", "size", "of", "the", "file", ".", "If", "size", "is", "set", "to", "0", "then", "all", "of", "the", "data", "will", "be", "returned", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L1058-L1064", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "GetFileReadSeeker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFileReadSeeker returns a reader for the contents of a file at a specific\n// Commit that permits Seeking to different points in the file.", "docstring_tokens": ["GetFileReadSeeker", "returns", "a", "reader", "for", "the", "contents", "of", "a", "file", "at", "a", "specific", "Commit", "that", "permits", "Seeking", "to", "different", "points", "in", "the", "file", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L1068-L1084", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "InspectFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InspectFile returns info about a specific file.", "docstring_tokens": ["InspectFile", "returns", "info", "about", "a", "specific", "file", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L1099-L1101", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "ListFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListFile returns info about all files in a Commit under path.", "docstring_tokens": ["ListFile", "returns", "info", "about", "all", "files", "in", "a", "Commit", "under", "path", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L1117-L1126", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "ListFileHistory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListFileHistory returns info about all files and their history in a Commit under path.", "docstring_tokens": ["ListFileHistory", "returns", "info", "about", "all", "files", "and", "their", "history", "in", "a", "Commit", "under", "path", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L1129-L1138", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "ListFileF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListFileF returns info about all files in a Commit under path, calling f with each FileInfo.", "docstring_tokens": ["ListFileF", "returns", "info", "about", "all", "files", "in", "a", "Commit", "under", "path", "calling", "f", "with", "each", "FileInfo", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L1141-L1166", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "Walk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Walk walks the pfs filesystem rooted at path. walkFn will be called for each\n// file found under path in lexicographical order. This includes both regular\n// files and directories.", "docstring_tokens": ["Walk", "walks", "the", "pfs", "filesystem", "rooted", "at", "path", ".", "walkFn", "will", "be", "called", "for", "each", "file", "found", "under", "path", "in", "lexicographical", "order", ".", "This", "includes", "both", "regular", "files", "and", "directories", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L1258-L1279", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "DeleteFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteFile deletes a file from a Commit.\n// DeleteFile leaves a tombstone in the Commit, assuming the file isn't written\n// to later attempting to get the file from the finished commit will result in\n// not found error.\n// The file will of course remain intact in the Commit's parent.", "docstring_tokens": ["DeleteFile", "deletes", "a", "file", "from", "a", "Commit", ".", "DeleteFile", "leaves", "a", "tombstone", "in", "the", "Commit", "assuming", "the", "file", "isn", "t", "written", "to", "later", "attempting", "to", "get", "the", "file", "from", "the", "finished", "commit", "will", "result", "in", "not", "found", "error", ".", "The", "file", "will", "of", "course", "remain", "intact", "in", "the", "Commit", "s", "parent", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L1286-L1294", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write performs a write.", "docstring_tokens": ["Write", "performs", "a", "write", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L1443-L1462", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pfs.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the writer.", "docstring_tokens": ["Close", "closes", "the", "writer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pfs.go#L1465-L1474", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/version/client.go", "func_name": "PrettyPrintVersionNoAdditional", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrettyPrintVersionNoAdditional returns a version string without\n// version.Additional.", "docstring_tokens": ["PrettyPrintVersionNoAdditional", "returns", "a", "version", "string", "without", "version", ".", "Additional", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/version/client.go#L52-L54", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/cmd/pachctl-doc/main.go", "func_name": "recursiveBlockQuoteExamples", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Walk the command tree, wrap any examples in a block-quote with shell highlighting", "docstring_tokens": ["Walk", "the", "command", "tree", "wrap", "any", "examples", "in", "a", "block", "-", "quote", "with", "shell", "highlighting"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/cmd/pachctl-doc/main.go#L21-L29", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/plugin/vault/pachyderm/helpers.go", "func_name": "errMissingField", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// errMissingField returns a logical response error that prints a consistent\n// error message for when a required field is missing.", "docstring_tokens": ["errMissingField", "returns", "a", "logical", "response", "error", "that", "prints", "a", "consistent", "error", "message", "for", "when", "a", "required", "field", "is", "missing", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/plugin/vault/pachyderm/helpers.go#L14-L16", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/plugin/vault/pachyderm/helpers.go", "func_name": "validateFields", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateFields verifies that no bad arguments were given to the request.", "docstring_tokens": ["validateFields", "verifies", "that", "no", "bad", "arguments", "were", "given", "to", "the", "request", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/plugin/vault/pachyderm/helpers.go#L19-L32", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/plugin/vault/pachyderm/helpers.go", "func_name": "putConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// putConfig parses and returns the configuration data from the storage backend.", "docstring_tokens": ["putConfig", "parses", "and", "returns", "the", "configuration", "data", "from", "the", "storage", "backend", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/plugin/vault/pachyderm/helpers.go#L35-L44", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/plugin/vault/pachyderm/helpers.go", "func_name": "getConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getConfig parses and returns the configuration data from the storage backend.", "docstring_tokens": ["getConfig", "parses", "and", "returns", "the", "configuration", "data", "from", "the", "storage", "backend", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/plugin/vault/pachyderm/helpers.go#L47-L62", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/grpcutil/server.go", "func_name": "Serve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Serve serves stuff.", "docstring_tokens": ["Serve", "serves", "stuff", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/grpcutil/server.go#L63-L127", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/sync/sync.go", "func_name": "NewPuller", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPuller creates a new Puller struct.", "docstring_tokens": ["NewPuller", "creates", "a", "new", "Puller", "struct", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/sync/sync.go#L40-L45", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/sync/sync.go", "func_name": "PullTree", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PullTree pulls from a raw HashTree rather than a repo.", "docstring_tokens": ["PullTree", "pulls", "from", "a", "raw", "HashTree", "rather", "than", "a", "repo", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/sync/sync.go#L284-L312", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/sync/sync.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Push puts files under root into an open commit.", "docstring_tokens": ["Push", "puts", "files", "under", "root", "into", "an", "open", "commit", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/sync/sync.go#L357-L395", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/sync/sync.go", "func_name": "PushObj", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushObj pushes data from commit to an object store.", "docstring_tokens": ["PushObj", "pushes", "data", "from", "commit", "to", "an", "object", "store", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/sync/sync.go#L398-L424", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/sync/sync.go", "func_name": "PushFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushFile makes sure that pfsFile has the same content as osFile.", "docstring_tokens": ["PushFile", "makes", "sure", "that", "pfsFile", "has", "the", "same", "content", "as", "osFile", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/sync/sync.go#L431-L461", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/debug.go", "func_name": "Dump", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dump writes debug information from the server to w.", "docstring_tokens": ["Dump", "writes", "debug", "information", "from", "the", "server", "to", "w", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/debug.go#L13-L19", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/debug.go", "func_name": "Profile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Profile writes a pprof profile for pachd to w.", "docstring_tokens": ["Profile", "writes", "a", "pprof", "profile", "for", "pachd", "to", "w", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/debug.go#L22-L35", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/debug.go", "func_name": "Binary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Binary writes the running pachd binary to w.", "docstring_tokens": ["Binary", "writes", "the", "running", "pachd", "binary", "to", "w", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/debug.go#L38-L44", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/cache_stats.go", "func_name": "RegisterCacheStats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterCacheStats creates a new wrapper for groupcache stats that implements\n// the prometheus.Collector interface, and registers it", "docstring_tokens": ["RegisterCacheStats", "creates", "a", "new", "wrapper", "for", "groupcache", "stats", "that", "implements", "the", "prometheus", ".", "Collector", "interface", "and", "registers", "it"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/cache_stats.go#L24-L36", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/fuse/file.go", "func_name": "wait", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// wait until more than n bytes have been written", "docstring_tokens": ["wait", "until", "more", "than", "n", "bytes", "have", "been", "written"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/fuse/file.go#L164-L170", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/workload/workload.go", "func_name": "RunWorkload", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunWorkload runs a test workload against a Pachyderm cluster.", "docstring_tokens": ["RunWorkload", "runs", "a", "test", "workload", "against", "a", "Pachyderm", "cluster", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/workload/workload.go#L14-L35", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/workload/workload.go", "func_name": "createRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createRepo creates a new repo in the cluster", "docstring_tokens": ["createRepo", "creates", "a", "new", "repo", "in", "the", "cluster"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/workload/workload.go#L101-L117", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/workload/workload.go", "func_name": "advanceCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// advanceCommit either starts or finishes a commit, depending on the state of\n// the cluster.", "docstring_tokens": ["advanceCommit", "either", "starts", "or", "finishes", "a", "commit", "depending", "on", "the", "state", "of", "the", "cluster", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/workload/workload.go#L121-L151", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/workload/workload.go", "func_name": "RandString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RandString returns a random alphabetical string of size n", "docstring_tokens": ["RandString", "returns", "a", "random", "alphabetical", "string", "of", "size", "n"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/workload/workload.go#L217-L223", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/workload/workload.go", "func_name": "NewReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReader returns a Reader which generates strings of characters.", "docstring_tokens": ["NewReader", "returns", "a", "Reader", "which", "generates", "strings", "of", "characters", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/workload/workload.go#L255-L260", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "iterDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// iterDir iterates through the nodes under path, it errors with PathNotFound if path doesn't exist, it errors with PathConflict if path exists but isn't a directory.", "docstring_tokens": ["iterDir", "iterates", "through", "the", "nodes", "under", "path", "it", "errors", "with", "PathNotFound", "if", "path", "doesn", "t", "exist", "it", "errors", "with", "PathConflict", "if", "path", "exists", "but", "isn", "t", "a", "directory", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L199-L218", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "FSSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FSSize gets the size of the hashtree", "docstring_tokens": ["FSSize", "gets", "the", "size", "of", "the", "hashtree"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L323-L329", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Diff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Diff returns the diff of two hashtrees at particular paths.", "docstring_tokens": ["Diff", "returns", "the", "diff", "of", "two", "hashtrees", "at", "particular", "paths", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L464-L499", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Serialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Serialize serializes a binary version of the hashtree.", "docstring_tokens": ["Serialize", "serializes", "a", "binary", "version", "of", "the", "hashtree", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L502-L528", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Deserialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Deserialize deserializes a hashtree.", "docstring_tokens": ["Deserialize", "deserializes", "a", "hashtree", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L535-L617", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy returns a copy of the hashtree.", "docstring_tokens": ["Copy", "returns", "a", "copy", "of", "the", "hashtree", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L620-L644", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Destroy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Destroy cleans up the on disk structures for the hashtree.", "docstring_tokens": ["Destroy", "cleans", "up", "the", "on", "disk", "structures", "for", "the", "hashtree", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L647-L653", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "PutFileOverwrite", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutFileOverwrite is the same as PutFile, except that instead of\n// appending the objects to the end of the given file, the objects\n// are inserted to the given index, and the existing objects starting\n// from the given index are removed.", "docstring_tokens": ["PutFileOverwrite", "is", "the", "same", "as", "PutFile", "except", "that", "instead", "of", "appending", "the", "objects", "to", "the", "end", "of", "the", "given", "file", "the", "objects", "are", "inserted", "to", "the", "given", "index", "and", "the", "existing", "objects", "starting", "from", "the", "given", "index", "are", "removed", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L710-L712", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "PutDirHeaderFooter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutDirHeaderFooter implements the hashtree.PutDirHeaderFooter interface\n// method", "docstring_tokens": ["PutDirHeaderFooter", "implements", "the", "hashtree", ".", "PutDirHeaderFooter", "interface", "method"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L716-L762", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "PutFileHeaderFooter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutFileHeaderFooter implements the HashTree PutFileHeaderFooter method", "docstring_tokens": ["PutFileHeaderFooter", "implements", "the", "HashTree", "PutFileHeaderFooter", "method"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L765-L767", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "deleteDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deleteDir deletes a directory and all the children under it", "docstring_tokens": ["deleteDir", "deletes", "a", "directory", "and", "all", "the", "children", "under", "it"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L874-L883", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "NewReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReader creates a new hashtree reader.", "docstring_tokens": ["NewReader", "creates", "a", "new", "hashtree", "reader", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L956-L961", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads the next merge node.", "docstring_tokens": ["Read", "reads", "the", "next", "merge", "node", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L964-L997", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "NewWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWriter creates a new hashtree writer.", "docstring_tokens": ["NewWriter", "creates", "a", "new", "hashtree", "writer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1008-L1012", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes the next merge node.", "docstring_tokens": ["Write", "writes", "the", "next", "merge", "node", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1015-L1052", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy copies a hashtree reader in a writer.", "docstring_tokens": ["Copy", "copies", "a", "hashtree", "reader", "in", "a", "writer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1055-L1068", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Index", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Index returns the index for a hashtree writer.", "docstring_tokens": ["Index", "returns", "the", "index", "for", "a", "hashtree", "writer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1077-L1086", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "GetRangeFromIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRangeFromIndex returns a subtree byte range in a serialized hashtree based on a passed in prefix.", "docstring_tokens": ["GetRangeFromIndex", "returns", "a", "subtree", "byte", "range", "in", "a", "serialized", "hashtree", "based", "on", "a", "passed", "in", "prefix", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1089-L1144", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "NewFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFilter creates a filter for a hashtree shard.", "docstring_tokens": ["NewFilter", "creates", "a", "filter", "for", "a", "hashtree", "shard", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1147-L1154", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "PathToTree", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PathToTree computes the hashtree shard for a path.", "docstring_tokens": ["PathToTree", "computes", "the", "hashtree", "shard", "for", "a", "path", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1157-L1160", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Merge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge merges a collection of hashtree readers into a hashtree writer.", "docstring_tokens": ["Merge", "merges", "a", "collection", "of", "hashtree", "readers", "into", "a", "hashtree", "writer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1287-L1315", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Hash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Hash updates all of the hashes and node size metadata, it also checks\n// for conflicts.", "docstring_tokens": ["Hash", "updates", "all", "of", "the", "hashes", "and", "node", "size", "metadata", "it", "also", "checks", "for", "conflicts", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1417-L1421", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "IsGlob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsGlob checks if the pattern contains a glob character", "docstring_tokens": ["IsGlob", "checks", "if", "the", "pattern", "contains", "a", "glob", "character"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1474-L1477", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "GlobLiteralPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GlobLiteralPrefix returns the prefix before the first glob character", "docstring_tokens": ["GlobLiteralPrefix", "returns", "the", "prefix", "before", "the", "first", "glob", "character"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1480-L1487", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "GetHashTreeObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHashTreeObject is a convenience function to deserialize a HashTree from an object in the object store.", "docstring_tokens": ["GetHashTreeObject", "is", "a", "convenience", "function", "to", "deserialize", "a", "HashTree", "from", "an", "object", "in", "the", "object", "store", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1490-L1494", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "GetHashTreeTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHashTreeTag is a convenience function to deserialize a HashTree from an tagged object in the object store.", "docstring_tokens": ["GetHashTreeTag", "is", "a", "convenience", "function", "to", "deserialize", "a", "HashTree", "from", "an", "tagged", "object", "in", "the", "object", "store", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1497-L1501", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "PutHashTree", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutHashTree is a convenience function for putting a HashTree to an object store.", "docstring_tokens": ["PutHashTree", "is", "a", "convenience", "function", "for", "putting", "a", "HashTree", "to", "an", "object", "store", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1530-L1551", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "NewChildCursor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewChildCursor creates a new child cursor.", "docstring_tokens": ["NewChildCursor", "creates", "a", "new", "child", "cursor", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1563-L1580", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next gets the next key, value pair.", "docstring_tokens": ["Next", "gets", "the", "next", "key", "value", "pair", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1593-L1603", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "NewOrdered", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOrdered creates a new ordered hashtree.", "docstring_tokens": ["NewOrdered", "creates", "a", "new", "ordered", "hashtree", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1632-L1648", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "MkdirAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MkdirAll puts all of the parent directories of a given\n// path into the hashtree.", "docstring_tokens": ["MkdirAll", "puts", "all", "of", "the", "parent", "directories", "of", "a", "given", "path", "into", "the", "hashtree", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1652-L1661", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "PutDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutDir puts a directory in the hashtree.", "docstring_tokens": ["PutDir", "puts", "a", "directory", "in", "the", "hashtree", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1664-L1674", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Serialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Serialize serializes an ordered hashtree.", "docstring_tokens": ["Serialize", "serializes", "an", "ordered", "hashtree", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1725-L1746", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "NewUnordered", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewUnordered creates a new unordered hashtree.", "docstring_tokens": ["NewUnordered", "creates", "a", "new", "unordered", "hashtree", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1755-L1760", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/db.go", "func_name": "Ordered", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ordered converts an unordered hashtree into an ordered hashtree.", "docstring_tokens": ["Ordered", "converts", "an", "unordered", "hashtree", "into", "an", "ordered", "hashtree", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/db.go#L1794-L1813", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/plugin/vault/pachyderm/revoke.go", "func_name": "revokeUserCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// revokeUserCredentials revokes the Pachyderm authentication token 'userToken'\n// using the vault plugin's Admin credentials.", "docstring_tokens": ["revokeUserCredentials", "revokes", "the", "Pachyderm", "authentication", "token", "userToken", "using", "the", "vault", "plugin", "s", "Admin", "credentials", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/plugin/vault/pachyderm/revoke.go#L57-L71", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/version/api_server.go", "func_name": "NewAPIServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAPIServer creates a new APIServer for the given Version.", "docstring_tokens": ["NewAPIServer", "creates", "a", "new", "APIServer", "for", "the", "given", "Version", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/version/api_server.go#L32-L34", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/version/api_server.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a string representation of the Version.", "docstring_tokens": ["String", "returns", "a", "string", "representation", "of", "the", "Version", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/version/api_server.go#L45-L47", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/cmd/worker/main.go", "func_name": "getPipelineInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getPipelineInfo gets the PipelineInfo proto describing the pipeline that this\n// worker is part of.\n// getPipelineInfo has the side effect of adding auth to the passed pachClient\n// which is necessary to get the PipelineInfo from pfs.", "docstring_tokens": ["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", "is", "necessary", "to", "get", "the", "PipelineInfo", "from", "pfs", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/cmd/worker/main.go#L104-L125", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/hashtree/sorted_list.go", "func_name": "removeStr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeStr removes 's' from 'ss', preserving the sorted order of 'ss' (for\n// removing child strings from DirectoryNodes.", "docstring_tokens": ["removeStr", "removes", "s", "from", "ss", "preserving", "the", "sorted", "order", "of", "ss", "(", "for", "removing", "child", "strings", "from", "DirectoryNodes", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/hashtree/sorted_list.go#L54-L62", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cert/cert.go", "func_name": "PublicCertToPEM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublicCertToPEM serializes the public x509 cert in 'cert' to a PEM-formatted\n// block", "docstring_tokens": ["PublicCertToPEM", "serializes", "the", "public", "x509", "cert", "in", "cert", "to", "a", "PEM", "-", "formatted", "block"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cert/cert.go#L29-L34", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cert/cert.go", "func_name": "GenerateSelfSignedCert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateSelfSignedCert generates a self-signed TLS cert for the domain name\n// 'address', with a private key. Other attributes of the subject can be set in\n// 'name' and ip addresses can be set in 'ipAddresses'", "docstring_tokens": ["GenerateSelfSignedCert", "generates", "a", "self", "-", "signed", "TLS", "cert", "for", "the", "domain", "name", "address", "with", "a", "private", "key", ".", "Other", "attributes", "of", "the", "subject", "can", "be", "set", "in", "name", "and", "ip", "addresses", "can", "be", "set", "in", "ipAddresses"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cert/cert.go#L54-L124", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/cmds.go", "func_name": "ActivateCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ActivateCmd returns a cobra.Command to activate Pachyderm's auth system", "docstring_tokens": ["ActivateCmd", "returns", "a", "cobra", ".", "Command", "to", "activate", "Pachyderm", "s", "auth", "system"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/cmds.go#L54-L108", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/cmds.go", "func_name": "DeactivateCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeactivateCmd returns a cobra.Command to delete all ACLs, tokens, and admins,\n// deactivating Pachyderm's auth system", "docstring_tokens": ["DeactivateCmd", "returns", "a", "cobra", ".", "Command", "to", "delete", "all", "ACLs", "tokens", "and", "admins", "deactivating", "Pachyderm", "s", "auth", "system"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/cmds.go#L112-L135", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/cmds.go", "func_name": "LoginCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoginCmd returns a cobra.Command to login to a Pachyderm cluster with your\n// GitHub account. Any resources that have been restricted to the email address\n// registered with your GitHub account will subsequently be accessible.", "docstring_tokens": ["LoginCmd", "returns", "a", "cobra", ".", "Command", "to", "login", "to", "a", "Pachyderm", "cluster", "with", "your", "GitHub", "account", ".", "Any", "resources", "that", "have", "been", "restricted", "to", "the", "email", "address", "registered", "with", "your", "GitHub", "account", "will", "subsequently", "be", "accessible", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/cmds.go#L140-L197", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/cmds.go", "func_name": "LogoutCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogoutCmd returns a cobra.Command that deletes your local Pachyderm\n// credential, logging you out of your cluster. Note that this is not necessary\n// to do before logging in as another user, but is useful for testing.", "docstring_tokens": ["LogoutCmd", "returns", "a", "cobra", ".", "Command", "that", "deletes", "your", "local", "Pachyderm", "credential", "logging", "you", "out", "of", "your", "cluster", ".", "Note", "that", "this", "is", "not", "necessary", "to", "do", "before", "logging", "in", "as", "another", "user", "but", "is", "useful", "for", "testing", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/cmds.go#L202-L223", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/cmds.go", "func_name": "WhoamiCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WhoamiCmd returns a cobra.Command that deletes your local Pachyderm\n// credential, logging you out of your cluster. Note that this is not necessary\n// to do before logging in as another user, but is useful for testing.", "docstring_tokens": ["WhoamiCmd", "returns", "a", "cobra", ".", "Command", "that", "deletes", "your", "local", "Pachyderm", "credential", "logging", "you", "out", "of", "your", "cluster", ".", "Note", "that", "this", "is", "not", "necessary", "to", "do", "before", "logging", "in", "as", "another", "user", "but", "is", "useful", "for", "testing", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/cmds.go#L228-L253", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/cmds.go", "func_name": "CheckCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckCmd returns a cobra command that sends an \"Authorize\" RPC to Pachd, to\n// determine whether the specified user has access to the specified repo.", "docstring_tokens": ["CheckCmd", "returns", "a", "cobra", "command", "that", "sends", "an", "Authorize", "RPC", "to", "Pachd", "to", "determine", "whether", "the", "specified", "user", "has", "access", "to", "the", "specified", "repo", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/cmds.go#L257-L290", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/cmds.go", "func_name": "GetCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCmd returns a cobra command that gets either the ACL for a Pachyderm\n// repo or another user's scope of access to that repo", "docstring_tokens": ["GetCmd", "returns", "a", "cobra", "command", "that", "gets", "either", "the", "ACL", "for", "a", "Pachyderm", "repo", "or", "another", "user", "s", "scope", "of", "access", "to", "that", "repo"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/cmds.go#L294-L337", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/cmds.go", "func_name": "SetScopeCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetScopeCmd returns a cobra command that lets a user set the level of access\n// that another user has to a repo", "docstring_tokens": ["SetScopeCmd", "returns", "a", "cobra", "command", "that", "lets", "a", "user", "set", "the", "level", "of", "access", "that", "another", "user", "has", "to", "a", "repo"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/cmds.go#L341-L373", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/cmds.go", "func_name": "ListAdminsCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListAdminsCmd returns a cobra command that lists the current cluster admins", "docstring_tokens": ["ListAdminsCmd", "returns", "a", "cobra", "command", "that", "lists", "the", "current", "cluster", "admins"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/cmds.go#L376-L397", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/cmds.go", "func_name": "ModifyAdminsCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ModifyAdminsCmd returns a cobra command that modifies the set of current\n// cluster admins", "docstring_tokens": ["ModifyAdminsCmd", "returns", "a", "cobra", "command", "that", "modifies", "the", "set", "of", "current", "cluster", "admins"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/cmds.go#L401-L432", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/cmds.go", "func_name": "GetAuthTokenCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAuthTokenCmd returns a cobra command that lets a user get a pachyderm\n// token on behalf of themselves or another user", "docstring_tokens": ["GetAuthTokenCmd", "returns", "a", "cobra", "command", "that", "lets", "a", "user", "get", "a", "pachyderm", "token", "on", "behalf", "of", "themselves", "or", "another", "user"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/cmds.go#L436-L468", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/cmds.go", "func_name": "UseAuthTokenCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UseAuthTokenCmd returns a cobra command that lets a user get a pachyderm\n// token on behalf of themselves or another user", "docstring_tokens": ["UseAuthTokenCmd", "returns", "a", "cobra", "command", "that", "lets", "a", "user", "get", "a", "pachyderm", "token", "on", "behalf", "of", "themselves", "or", "another", "user"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/cmds.go#L472-L489", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/cmds/cmds.go", "func_name": "Cmds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cmds returns a list of cobra commands for authenticating and authorizing\n// users in an auth-enabled Pachyderm cluster.", "docstring_tokens": ["Cmds", "returns", "a", "list", "of", "cobra", "commands", "for", "authenticating", "and", "authorizing", "users", "in", "an", "auth", "-", "enabled", "Pachyderm", "cluster", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/cmds/cmds.go#L493-L518", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/auth/auth.go", "func_name": "ParseScope", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseScope parses the string 's' to a scope (for example, parsing a command-\n// line argument.", "docstring_tokens": ["ParseScope", "parses", "the", "string", "s", "to", "a", "scope", "(", "for", "example", "parsing", "a", "command", "-", "line", "argument", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/auth/auth.go#L39-L46", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/auth/auth.go", "func_name": "IsErrNotActivated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsErrNotActivated checks if an error is a ErrNotActivated", "docstring_tokens": ["IsErrNotActivated", "checks", "if", "an", "error", "is", "a", "ErrNotActivated"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/auth/auth.go#L77-L84", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/auth/auth.go", "func_name": "IsErrPartiallyActivated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsErrPartiallyActivated checks if an error is a ErrPartiallyActivated", "docstring_tokens": ["IsErrPartiallyActivated", "checks", "if", "an", "error", "is", "a", "ErrPartiallyActivated"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/auth/auth.go#L87-L94", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/auth/auth.go", "func_name": "IsErrNotSignedIn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsErrNotSignedIn returns true if 'err' is a ErrNotSignedIn", "docstring_tokens": ["IsErrNotSignedIn", "returns", "true", "if", "err", "is", "a", "ErrNotSignedIn"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/auth/auth.go#L97-L104", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/auth/auth.go", "func_name": "IsErrBadToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsErrBadToken returns true if 'err' is a ErrBadToken", "docstring_tokens": ["IsErrBadToken", "returns", "true", "if", "err", "is", "a", "ErrBadToken"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/auth/auth.go#L116-L121", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/auth/auth.go", "func_name": "IsErrNotAuthorized", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsErrNotAuthorized checks if an error is a ErrNotAuthorized", "docstring_tokens": ["IsErrNotAuthorized", "checks", "if", "an", "error", "is", "a", "ErrNotAuthorized"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/auth/auth.go#L165-L172", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/auth/auth.go", "func_name": "IsErrInvalidPrincipal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsErrInvalidPrincipal returns true if 'err' is an ErrInvalidPrincipal", "docstring_tokens": ["IsErrInvalidPrincipal", "returns", "true", "if", "err", "is", "an", "ErrInvalidPrincipal"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/auth/auth.go#L185-L191", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/auth/auth.go", "func_name": "IsErrTooShortTTL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsErrTooShortTTL returns true if 'err' is a ErrTooShortTTL", "docstring_tokens": ["IsErrTooShortTTL", "returns", "true", "if", "err", "is", "a", "ErrTooShortTTL"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/auth/auth.go#L206-L214", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/datum_set.go", "func_name": "NewDatumFactory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDatumFactory creates a datumFactory for an input.", "docstring_tokens": ["NewDatumFactory", "creates", "a", "datumFactory", "for", "an", "input", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/datum_set.go#L195-L209", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/collection.go", "func_name": "NewCollection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCollection creates a new collection.", "docstring_tokens": ["NewCollection", "creates", "a", "new", "collection", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/collection.go#L61-L79", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/collection.go", "func_name": "Path", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Path returns the full path of a key in the etcd namespace", "docstring_tokens": ["Path", "returns", "the", "full", "path", "of", "a", "key", "in", "the", "etcd", "namespace"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/collection.go#L148-L150", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/collection.go", "func_name": "getIndexPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Giving a value, an index, and the key of the item, return the path\n// under which the new index item should be stored.", "docstring_tokens": ["Giving", "a", "value", "an", "index", "and", "the", "key", "of", "the", "item", "return", "the", "path", "under", "which", "the", "new", "index", "item", "should", "be", "stored", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/collection.go#L219-L223", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/collection.go", "func_name": "getMultiIndexPaths", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Giving a value, a multi-index, and the key of the item, return the\n// paths under which the multi-index items should be stored.", "docstring_tokens": ["Giving", "a", "value", "a", "multi", "-", "index", "and", "the", "key", "of", "the", "item", "return", "the", "paths", "under", "which", "the", "multi", "-", "index", "items", "should", "be", "stored", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/collection.go#L227-L234", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/collection.go", "func_name": "Upsert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Upsert is like Update but 'key' is not required to be present", "docstring_tokens": ["Upsert", "is", "like", "Update", "but", "key", "is", "not", "required", "to", "be", "present"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/collection.go#L341-L352", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/collection.go", "func_name": "get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// get is an internal wrapper around etcdClient.Get that wraps the call in a\n// trace", "docstring_tokens": ["get", "is", "an", "internal", "wrapper", "around", "etcdClient", ".", "Get", "that", "wraps", "the", "call", "in", "a", "trace"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/collection.go#L482-L487", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/collection.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List returns objects sorted based on the options passed in. f will be called with each key, val will contain the\n// corresponding value. Val is not an argument to f because that would require\n// f to perform a cast before it could be used.\n// You can break out of iteration by returning errutil.ErrBreak.", "docstring_tokens": ["List", "returns", "objects", "sorted", "based", "on", "the", "options", "passed", "in", ".", "f", "will", "be", "called", "with", "each", "key", "val", "will", "contain", "the", "corresponding", "value", ".", "Val", "is", "not", "an", "argument", "to", "f", "because", "that", "would", "require", "f", "to", "perform", "a", "cast", "before", "it", "could", "be", "used", ".", "You", "can", "break", "out", "of", "iteration", "by", "returning", "errutil", ".", "ErrBreak", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/collection.go#L582-L592", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/collection.go", "func_name": "Watch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Watch a collection, returning the current content of the collection as\n// well as any future additions.", "docstring_tokens": ["Watch", "a", "collection", "returning", "the", "current", "content", "of", "the", "collection", "as", "well", "as", "any", "future", "additions", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/collection.go#L612-L614", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/collection.go", "func_name": "WatchByIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WatchByIndex watches items in a collection that match a particular index", "docstring_tokens": ["WatchByIndex", "watches", "items", "in", "a", "collection", "that", "match", "a", "particular", "index"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/collection.go#L617-L681", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/collection.go", "func_name": "WatchOne", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WatchOne watches a given item. The first value returned from the watch\n// will be the current value of the item.", "docstring_tokens": ["WatchOne", "watches", "a", "given", "item", ".", "The", "first", "value", "returned", "from", "the", "watch", "will", "be", "the", "current", "value", "of", "the", "item", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/collection.go#L685-L687", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/collection.go", "func_name": "WatchOneF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WatchOneF watches a given item and executes a callback function each time an event occurs.\n// The first value returned from the watch will be the current value of the item.", "docstring_tokens": ["WatchOneF", "watches", "a", "given", "item", "and", "executes", "a", "callback", "function", "each", "time", "an", "event", "occurs", ".", "The", "first", "value", "returned", "from", "the", "watch", "will", "be", "the", "current", "value", "of", "the", "item", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/collection.go#L691-L710", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/localcache/cache.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get gets a key's value by returning an io.ReadCloser that should be closed when done.", "docstring_tokens": ["Get", "gets", "a", "key", "s", "value", "by", "returning", "an", "io", ".", "ReadCloser", "that", "should", "be", "closed", "when", "done", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/localcache/cache.go#L52-L63", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/localcache/cache.go", "func_name": "Keys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Keys returns the keys in sorted order.", "docstring_tokens": ["Keys", "returns", "the", "keys", "in", "sorted", "order", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/localcache/cache.go#L66-L75", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/localcache/cache.go", "func_name": "Clear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clear clears the cache.", "docstring_tokens": ["Clear", "clears", "the", "cache", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/localcache/cache.go#L89-L101", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/http/http.go", "func_name": "NewHTTPServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHTTPServer returns a Pachyderm HTTP server.", "docstring_tokens": ["NewHTTPServer", "returns", "a", "Pachyderm", "HTTP", "server", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/http/http.go#L47-L64", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/deploy/deploy.go", "func_name": "NewDeployServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDeployServer creates a deploy server", "docstring_tokens": ["NewDeployServer", "creates", "a", "deploy", "server"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/deploy/deploy.go#L20-L25", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/images/images.go", "func_name": "Export", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Export a tarball of the images needed by a deployment.", "docstring_tokens": ["Export", "a", "tarball", "of", "the", "images", "needed", "by", "a", "deployment", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/images/images.go#L13-L57", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/images/images.go", "func_name": "Import", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Import a tarball of the images needed by a deployment such as the one\n// created by Export and push those images to the registry specific in opts.", "docstring_tokens": ["Import", "a", "tarball", "of", "the", "images", "needed", "by", "a", "deployment", "such", "as", "the", "one", "created", "by", "Export", "and", "push", "those", "images", "to", "the", "registry", "specific", "in", "opts", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/images/images.go#L61-L119", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "DatumTagPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DatumTagPrefix hashes a pipeline salt to a string of a fixed size for use as\n// the prefix for datum output trees. This prefix allows us to do garbage\n// collection correctly.", "docstring_tokens": ["DatumTagPrefix", "hashes", "a", "pipeline", "salt", "to", "a", "string", "of", "a", "fixed", "size", "for", "use", "as", "the", "prefix", "for", "datum", "output", "trees", ".", "This", "prefix", "allows", "us", "to", "do", "garbage", "collection", "correctly", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L81-L87", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "NewPFSInput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPFSInput returns a new PFS input. It only includes required options.", "docstring_tokens": ["NewPFSInput", "returns", "a", "new", "PFS", "input", ".", "It", "only", "includes", "required", "options", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L90-L97", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "NewPFSInputOpts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPFSInputOpts returns a new PFS input. It includes all options.", "docstring_tokens": ["NewPFSInputOpts", "returns", "a", "new", "PFS", "input", ".", "It", "includes", "all", "options", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L100-L110", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "NewJobInput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewJobInput creates a pps.JobInput.", "docstring_tokens": ["NewJobInput", "creates", "a", "pps", ".", "JobInput", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L144-L149", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "NewPipelineInput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPipelineInput creates a new pps.PipelineInput", "docstring_tokens": ["NewPipelineInput", "creates", "a", "new", "pps", ".", "PipelineInput"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L157-L162", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "CreateJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateJob creates and runs a job in PPS.\n// This function is mostly useful internally, users should generally run work\n// by creating pipelines as well.", "docstring_tokens": ["CreateJob", "creates", "and", "runs", "a", "job", "in", "PPS", ".", "This", "function", "is", "mostly", "useful", "internally", "users", "should", "generally", "run", "work", "by", "creating", "pipelines", "as", "well", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L167-L176", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "ListJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListJob returns info about all jobs.\n// If pipelineName is non empty then only jobs that were started by the named pipeline will be returned\n// If inputCommit is non-nil then only jobs which took the specific commits as inputs will be returned.\n// The order of the inputCommits doesn't matter.\n// If outputCommit is non-nil then only the job which created that commit as output will be returned.", "docstring_tokens": ["ListJob", "returns", "info", "about", "all", "jobs", ".", "If", "pipelineName", "is", "non", "empty", "then", "only", "jobs", "that", "were", "started", "by", "the", "named", "pipeline", "will", "be", "returned", "If", "inputCommit", "is", "non", "-", "nil", "then", "only", "jobs", "which", "took", "the", "specific", "commits", "as", "inputs", "will", "be", "returned", ".", "The", "order", "of", "the", "inputCommits", "doesn", "t", "matter", ".", "If", "outputCommit", "is", "non", "-", "nil", "then", "only", "the", "job", "which", "created", "that", "commit", "as", "output", "will", "be", "returned", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L207-L216", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "ListJobF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListJobF returns info about all jobs, calling f with each JobInfo.\n// If f returns an error iteration of jobs will stop and ListJobF will return\n// that error, unless the error is errutil.ErrBreak in which case it will\n// return nil.\n// If pipelineName is non empty then only jobs that were started by the named pipeline will be returned\n// If inputCommit is non-nil then only jobs which took the specific commits as inputs will be returned.\n// The order of the inputCommits doesn't matter.\n// If outputCommit is non-nil then only the job which created that commit as output will be returned.", "docstring_tokens": ["ListJobF", "returns", "info", "about", "all", "jobs", "calling", "f", "with", "each", "JobInfo", ".", "If", "f", "returns", "an", "error", "iteration", "of", "jobs", "will", "stop", "and", "ListJobF", "will", "return", "that", "error", "unless", "the", "error", "is", "errutil", ".", "ErrBreak", "in", "which", "case", "it", "will", "return", "nil", ".", "If", "pipelineName", "is", "non", "empty", "then", "only", "jobs", "that", "were", "started", "by", "the", "named", "pipeline", "will", "be", "returned", "If", "inputCommit", "is", "non", "-", "nil", "then", "only", "jobs", "which", "took", "the", "specific", "commits", "as", "inputs", "will", "be", "returned", ".", "The", "order", "of", "the", "inputCommits", "doesn", "t", "matter", ".", "If", "outputCommit", "is", "non", "-", "nil", "then", "only", "the", "job", "which", "created", "that", "commit", "as", "output", "will", "be", "returned", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L226-L255", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "FlushJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FlushJob calls f with all the jobs which were triggered by commits.\n// If toPipelines is non-nil then only the jobs between commits and those\n// pipelines in the DAG will be returned.", "docstring_tokens": ["FlushJob", "calls", "f", "with", "all", "the", "jobs", "which", "were", "triggered", "by", "commits", ".", "If", "toPipelines", "is", "non", "-", "nil", "then", "only", "the", "jobs", "between", "commits", "and", "those", "pipelines", "in", "the", "DAG", "will", "be", "returned", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L260-L283", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "FlushJobAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FlushJobAll returns all the jobs which were triggered by commits.\n// If toPipelines is non-nil then only the jobs between commits and those\n// pipelines in the DAG will be returned.", "docstring_tokens": ["FlushJobAll", "returns", "all", "the", "jobs", "which", "were", "triggered", "by", "commits", ".", "If", "toPipelines", "is", "non", "-", "nil", "then", "only", "the", "jobs", "between", "commits", "and", "those", "pipelines", "in", "the", "DAG", "will", "be", "returned", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L288-L297", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "DeleteJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteJob deletes a job.", "docstring_tokens": ["DeleteJob", "deletes", "a", "job", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L300-L308", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "StopJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StopJob stops a job.", "docstring_tokens": ["StopJob", "stops", "a", "job", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L311-L319", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "RestartDatum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestartDatum restarts a datum that's being processed as part of a job.\n// datumFilter is a slice of strings which are matched against either the Path\n// or Hash of the datum, the order of the strings in datumFilter is irrelevant.", "docstring_tokens": ["RestartDatum", "restarts", "a", "datum", "that", "s", "being", "processed", "as", "part", "of", "a", "job", ".", "datumFilter", "is", "a", "slice", "of", "strings", "which", "are", "matched", "against", "either", "the", "Path", "or", "Hash", "of", "the", "datum", "the", "order", "of", "the", "strings", "in", "datumFilter", "is", "irrelevant", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L324-L333", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "ListDatum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListDatum returns info about all datums in a Job", "docstring_tokens": ["ListDatum", "returns", "info", "about", "all", "datums", "in", "a", "Job"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L336-L365", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "ListDatumF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListDatumF returns info about all datums in a Job, calling f with each datum info.", "docstring_tokens": ["ListDatumF", "returns", "info", "about", "all", "datums", "in", "a", "Job", "calling", "f", "with", "each", "datum", "info", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L368-L394", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "InspectDatum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InspectDatum returns info about a single datum", "docstring_tokens": ["InspectDatum", "returns", "info", "about", "a", "single", "datum"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L397-L411", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next retrieves the next relevant log message from pachd", "docstring_tokens": ["Next", "retrieves", "the", "next", "relevant", "log", "message", "from", "pachd"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L423-L433", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "InspectPipeline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InspectPipeline returns info about a specific pipeline.", "docstring_tokens": ["InspectPipeline", "returns", "info", "about", "a", "specific", "pipeline", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L534-L542", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "ListPipeline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListPipeline returns info about all pipelines.", "docstring_tokens": ["ListPipeline", "returns", "info", "about", "all", "pipelines", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L545-L554", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "DeletePipeline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeletePipeline deletes a pipeline along with its output Repo.", "docstring_tokens": ["DeletePipeline", "deletes", "a", "pipeline", "along", "with", "its", "output", "Repo", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L557-L566", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "StartPipeline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartPipeline restarts a stopped pipeline.", "docstring_tokens": ["StartPipeline", "restarts", "a", "stopped", "pipeline", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L569-L577", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "StopPipeline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StopPipeline prevents a pipeline from processing things, it can be restarted\n// with StartPipeline.", "docstring_tokens": ["StopPipeline", "prevents", "a", "pipeline", "from", "processing", "things", "it", "can", "be", "restarted", "with", "StartPipeline", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L581-L589", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "RerunPipeline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RerunPipeline reruns a pipeline over a given set of commits. Exclude and\n// include are filters that either include or exclude the ancestors of the\n// given commits. A commit is considered the ancestor of itself. The behavior\n// is the same as that of ListCommit.", "docstring_tokens": ["RerunPipeline", "reruns", "a", "pipeline", "over", "a", "given", "set", "of", "commits", ".", "Exclude", "and", "include", "are", "filters", "that", "either", "include", "or", "exclude", "the", "ancestors", "of", "the", "given", "commits", ".", "A", "commit", "is", "considered", "the", "ancestor", "of", "itself", ".", "The", "behavior", "is", "the", "same", "as", "that", "of", "ListCommit", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L595-L605", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "CreatePipelineService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreatePipelineService creates a new pipeline service.", "docstring_tokens": ["CreatePipelineService", "creates", "a", "new", "pipeline", "service", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L608-L638", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps.go", "func_name": "GetDatumTotalTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDatumTotalTime sums the timing stats from a DatumInfo", "docstring_tokens": ["GetDatumTotalTime", "sums", "the", "timing", "stats", "from", "a", "DatumInfo"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps.go#L658-L667", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/fuse/filesystem.go", "func_name": "Mount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Mount pfs to mountPoint, opts may be left nil.", "docstring_tokens": ["Mount", "pfs", "to", "mountPoint", "opts", "may", "be", "left", "nil", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/fuse/filesystem.go#L25-L42", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/grpcutil/buffer.go", "func_name": "NewBufPool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBufPool creates a new BufPool that returns buffers of the given size.", "docstring_tokens": ["NewBufPool", "creates", "a", "new", "BufPool", "that", "returns", "buffers", "of", "the", "given", "size", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/grpcutil/buffer.go#L14-L18", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "StorageRootFromEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorageRootFromEnv gets the storage root based on environment variables.", "docstring_tokens": ["StorageRootFromEnv", "gets", "the", "storage", "root", "based", "on", "environment", "variables", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L106-L125", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "BlockPathFromEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BlockPathFromEnv gets the path to an object storage block based on environment variables.", "docstring_tokens": ["BlockPathFromEnv", "gets", "the", "path", "to", "an", "object", "storage", "block", "based", "on", "environment", "variables", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L128-L134", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "NewGoogleClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGoogleClient creates a google client with the given bucket name.", "docstring_tokens": ["NewGoogleClient", "creates", "a", "google", "client", "with", "the", "given", "bucket", "name", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L164-L166", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "NewGoogleClientFromSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGoogleClientFromSecret creates a google client by reading credentials\n// from a mounted GoogleSecret. You may pass \"\" for bucket in which case it\n// will read the bucket from the secret.", "docstring_tokens": ["NewGoogleClientFromSecret", "creates", "a", "google", "client", "by", "reading", "credentials", "from", "a", "mounted", "GoogleSecret", ".", "You", "may", "pass", "for", "bucket", "in", "which", "case", "it", "will", "read", "the", "bucket", "from", "the", "secret", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L183-L202", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "NewGoogleClientFromEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGoogleClientFromEnv creates a Google client based on environment variables.", "docstring_tokens": ["NewGoogleClientFromEnv", "creates", "a", "Google", "client", "based", "on", "environment", "variables", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L205-L216", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "NewMicrosoftClientFromSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMicrosoftClientFromSecret creates a microsoft client by reading\n// credentials from a mounted MicrosoftSecret. You may pass \"\" for container in\n// which case it will read the container from the secret.", "docstring_tokens": ["NewMicrosoftClientFromSecret", "creates", "a", "microsoft", "client", "by", "reading", "credentials", "from", "a", "mounted", "MicrosoftSecret", ".", "You", "may", "pass", "for", "container", "in", "which", "case", "it", "will", "read", "the", "container", "from", "the", "secret", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L229-L246", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "NewMicrosoftClientFromEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMicrosoftClientFromEnv creates a Microsoft client based on environment variables.", "docstring_tokens": ["NewMicrosoftClientFromEnv", "creates", "a", "Microsoft", "client", "based", "on", "environment", "variables", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L249-L263", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "NewMinioClientFromSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMinioClientFromSecret constructs an s3 compatible client by reading\n// credentials from a mounted AmazonSecret. You may pass \"\" for bucket in which case it\n// will read the bucket from the secret.", "docstring_tokens": ["NewMinioClientFromSecret", "constructs", "an", "s3", "compatible", "client", "by", "reading", "credentials", "from", "a", "mounted", "AmazonSecret", ".", "You", "may", "pass", "for", "bucket", "in", "which", "case", "it", "will", "read", "the", "bucket", "from", "the", "secret", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L293-L322", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "NewMinioClientFromEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMinioClientFromEnv creates a Minio client based on environment variables.", "docstring_tokens": ["NewMinioClientFromEnv", "creates", "a", "Minio", "client", "based", "on", "environment", "variables", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L325-L351", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "NewAmazonClientFromSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAmazonClientFromSecret constructs an amazon client by reading credentials\n// from a mounted AmazonSecret. You may pass \"\" for bucket in which case it\n// will read the bucket from the secret.", "docstring_tokens": ["NewAmazonClientFromSecret", "constructs", "an", "amazon", "client", "by", "reading", "credentials", "from", "a", "mounted", "AmazonSecret", ".", "You", "may", "pass", "for", "bucket", "in", "which", "case", "it", "will", "read", "the", "bucket", "from", "the", "secret", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L356-L402", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "NewAmazonClientFromEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAmazonClientFromEnv creates a Amazon client based on environment variables.", "docstring_tokens": ["NewAmazonClientFromEnv", "creates", "a", "Amazon", "client", "based", "on", "environment", "variables", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L405-L425", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "NewClientFromURLAndSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClientFromURLAndSecret constructs a client by parsing `URL` and then\n// constructing the correct client for that URL using secrets.", "docstring_tokens": ["NewClientFromURLAndSecret", "constructs", "a", "client", "by", "parsing", "URL", "and", "then", "constructing", "the", "correct", "client", "for", "that", "URL", "using", "secrets", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L429-L453", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "ParseURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseURL parses an URL into ObjectStoreURL.", "docstring_tokens": ["ParseURL", "parses", "an", "URL", "into", "ObjectStoreURL", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L466-L491", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "NewClientFromEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClientFromEnv creates a client based on environment variables.", "docstring_tokens": ["NewClientFromEnv", "creates", "a", "client", "based", "on", "environment", "variables", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L494-L519", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "NewExponentialBackOffConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewExponentialBackOffConfig creates an exponential back-off config with\n// longer wait times than the default.", "docstring_tokens": ["NewExponentialBackOffConfig", "creates", "an", "exponential", "back", "-", "off", "config", "with", "longer", "wait", "times", "than", "the", "default", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L523-L530", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the ReaderCloser contained in b.", "docstring_tokens": ["Close", "closes", "the", "ReaderCloser", "contained", "in", "b", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L581-L585", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the WriteCloser contained in b.", "docstring_tokens": ["Close", "closes", "the", "WriteCloser", "contained", "in", "b", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L629-L637", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/obj.go", "func_name": "IsRetryable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsRetryable determines if an operation should be retried given an error", "docstring_tokens": ["IsRetryable", "determines", "if", "an", "operation", "should", "be", "retried", "given", "an", "error"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/obj.go#L640-L642", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cmdutil/exec.go", "func_name": "RunStdin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunStdin runs the command with the given stdin and arguments.", "docstring_tokens": ["RunStdin", "runs", "the", "command", "with", "the", "given", "stdin", "and", "arguments", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cmdutil/exec.go#L25-L27", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/cmdutil/exec.go", "func_name": "RunIODirPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunIODirPath runs the command with the given IO and arguments in the given directory specified by dirPath.", "docstring_tokens": ["RunIODirPath", "runs", "the", "command", "with", "the", "given", "IO", "and", "arguments", "in", "the", "given", "directory", "specified", "by", "dirPath", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/cmdutil/exec.go#L30-L49", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/server/api_server.go", "func_name": "NewAuthServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAuthServer returns an implementation of authclient.APIServer.", "docstring_tokens": ["NewAuthServer", "returns", "an", "implementation", "of", "authclient", ".", "APIServer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/server/api_server.go#L159-L233", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/server/api_server.go", "func_name": "expiredClusterAdminCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expiredClusterAdminCheck enforces that if the cluster's enterprise token is\n// expired, only admins may log in.", "docstring_tokens": ["expiredClusterAdminCheck", "enforces", "that", "if", "the", "cluster", "s", "enterprise", "token", "is", "expired", "only", "admins", "may", "log", "in", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/server/api_server.go#L793-L809", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/server/api_server.go", "func_name": "getOneTimePassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getOneTimePassword contains the implementation of GetOneTimePassword,\n// but is also called directly by handleSAMLREsponse. It generates a\n// short-lived authentication code for 'username', writes it to\n// a.authenticationCodes, and returns it", "docstring_tokens": ["getOneTimePassword", "contains", "the", "implementation", "of", "GetOneTimePassword", "but", "is", "also", "called", "directly", "by", "handleSAMLREsponse", ".", "It", "generates", "a", "short", "-", "lived", "authentication", "code", "for", "username", "writes", "it", "to", "a", ".", "authenticationCodes", "and", "returns", "it"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/server/api_server.go#L1019-L1042", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/server/api_server.go", "func_name": "hashToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hashToken converts a token to a cryptographic hash.\n// We don't want to store tokens verbatim in the database, as then whoever\n// that has access to the database has access to all tokens.", "docstring_tokens": ["hashToken", "converts", "a", "token", "to", "a", "cryptographic", "hash", ".", "We", "don", "t", "want", "to", "store", "tokens", "verbatim", "in", "the", "database", "as", "then", "whoever", "that", "has", "access", "to", "the", "database", "has", "access", "to", "all", "tokens", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/server/api_server.go#L2146-L2149", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/server/api_server.go", "func_name": "getAuthToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getAuthToken extracts the auth token embedded in 'ctx', if there is on", "docstring_tokens": ["getAuthToken", "extracts", "the", "auth", "token", "embedded", "in", "ctx", "if", "there", "is", "on"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/server/api_server.go#L2152-L2163", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/auth/server/api_server.go", "func_name": "canonicalizeSubjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// canonicalizeSubjects applies canonicalizeSubject to a list", "docstring_tokens": ["canonicalizeSubjects", "applies", "canonicalizeSubject", "to", "a", "list"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/auth/server/api_server.go#L2195-L2218", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/require/require.go", "func_name": "Matches", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Matches checks that a string matches a regular-expression.", "docstring_tokens": ["Matches", "checks", "that", "a", "string", "matches", "a", "regular", "-", "expression", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/require/require.go#L13-L22", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/require/require.go", "func_name": "OneOfMatches", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OneOfMatches checks whether one element of a slice matches a regular-expression.", "docstring_tokens": ["OneOfMatches", "checks", "whether", "one", "element", "of", "a", "slice", "matches", "a", "regular", "-", "expression", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/require/require.go#L25-L38", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/require/require.go", "func_name": "Equal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equal checks equality of two values.", "docstring_tokens": ["Equal", "checks", "equality", "of", "two", "values", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/require/require.go#L41-L58", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/require/require.go", "func_name": "NotEqual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotEqual checks inequality of two values.", "docstring_tokens": ["NotEqual", "checks", "inequality", "of", "two", "values", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/require/require.go#L61-L70", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/require/require.go", "func_name": "oneOfEquals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// oneOfEquals is a helper function for EqualOneOf, OneOfEquals and NoneEquals, that simply\n// returns a bool indicating whether 'elem' is in 'slice'. 'sliceName' is used for errors", "docstring_tokens": ["oneOfEquals", "is", "a", "helper", "function", "for", "EqualOneOf", "OneOfEquals", "and", "NoneEquals", "that", "simply", "returns", "a", "bool", "indicating", "whether", "elem", "is", "in", "slice", ".", "sliceName", "is", "used", "for", "errors"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/require/require.go#L235-L256", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/require/require.go", "func_name": "NoneEquals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NoneEquals checks one element of a slice equals a value. Like\n// EqualsOneOf, NoneEquals unwraps pointers.", "docstring_tokens": ["NoneEquals", "checks", "one", "element", "of", "a", "slice", "equals", "a", "value", ".", "Like", "EqualsOneOf", "NoneEquals", "unwraps", "pointers", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/require/require.go#L294-L304", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/require/require.go", "func_name": "NoError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NoError checks for no error.", "docstring_tokens": ["NoError", "checks", "for", "no", "error", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/require/require.go#L307-L312", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/require/require.go", "func_name": "NoErrorWithinT", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NoErrorWithinT checks that 'f' finishes within time 't' and does not emit an\n// error", "docstring_tokens": ["NoErrorWithinT", "checks", "that", "f", "finishes", "within", "time", "t", "and", "does", "not", "emit", "an", "error"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/require/require.go#L316-L332", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/require/require.go", "func_name": "NoErrorWithinTRetry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NoErrorWithinTRetry checks that 'f' finishes within time 't' and does not\n// emit an error. Unlike NoErrorWithinT if f does error, it will retry it.", "docstring_tokens": ["NoErrorWithinTRetry", "checks", "that", "f", "finishes", "within", "time", "t", "and", "does", "not", "emit", "an", "error", ".", "Unlike", "NoErrorWithinT", "if", "f", "does", "error", "it", "will", "retry", "it", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/require/require.go#L336-L355", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/require/require.go", "func_name": "YesError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// YesError checks for an error.", "docstring_tokens": ["YesError", "checks", "for", "an", "error", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/require/require.go#L358-L363", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/require/require.go", "func_name": "NotNil", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotNil checks a value is non-nil.", "docstring_tokens": ["NotNil", "checks", "a", "value", "is", "non", "-", "nil", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/require/require.go#L366-L383", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/require/require.go", "func_name": "Nil", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Nil checks a value is nil.", "docstring_tokens": ["Nil", "checks", "a", "value", "is", "nil", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/require/require.go#L386-L398", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/require/require.go", "func_name": "False", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// False checks a value is false.", "docstring_tokens": ["False", "checks", "a", "value", "is", "false", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/require/require.go#L409-L414", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/transaction.go", "func_name": "NewSTM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSTM intiates a new STM operation. It uses a serializable model.", "docstring_tokens": ["NewSTM", "intiates", "a", "new", "STM", "operation", ".", "It", "uses", "a", "serializable", "model", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/transaction.go#L63-L65", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/transaction.go", "func_name": "NewDryrunSTM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDryrunSTM intiates a new STM operation, but the final commit is skipped.\n// It uses a serializable model.", "docstring_tokens": ["NewDryrunSTM", "intiates", "a", "new", "STM", "operation", "but", "the", "final", "commit", "is", "skipped", ".", "It", "uses", "a", "serializable", "model", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/transaction.go#L69-L72", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/transaction.go", "func_name": "newSTMRepeatable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newSTMRepeatable initiates new repeatable read transaction; reads within\n// the same transaction attempt to always return the same data.", "docstring_tokens": ["newSTMRepeatable", "initiates", "new", "repeatable", "read", "transaction", ";", "reads", "within", "the", "same", "transaction", "attempt", "to", "always", "return", "the", "same", "data", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/transaction.go#L76-L79", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/transaction.go", "func_name": "newSTMSerializable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newSTMSerializable initiates a new serialized transaction; reads within the\n// same transaction attempt to return data from the revision of the first read.", "docstring_tokens": ["newSTMSerializable", "initiates", "a", "new", "serialized", "transaction", ";", "reads", "within", "the", "same", "transaction", "attempt", "to", "return", "data", "from", "the", "revision", "of", "the", "first", "read", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/transaction.go#L83-L89", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/transaction.go", "func_name": "newSTMReadCommitted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newSTMReadCommitted initiates a new read committed transaction.", "docstring_tokens": ["newSTMReadCommitted", "initiates", "a", "new", "read", "committed", "transaction", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/transaction.go#L92-L95", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/collection/transaction.go", "func_name": "commit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// commit always goes through when read committed", "docstring_tokens": ["commit", "always", "goes", "through", "when", "read", "committed"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/collection/transaction.go#L360-L363", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsdb/ppsdb.go", "func_name": "Pipelines", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pipelines returns a Collection of pipelines", "docstring_tokens": ["Pipelines", "returns", "a", "Collection", "of", "pipelines"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsdb/ppsdb.go#L31-L40", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsdb/ppsdb.go", "func_name": "Jobs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Jobs returns a Collection of jobs", "docstring_tokens": ["Jobs", "returns", "a", "Collection", "of", "jobs"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsdb/ppsdb.go#L43-L52", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/backoff/ticker.go", "func_name": "NewTicker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTicker returns a new Ticker containing a channel that will send the time at times\n// specified by the BackOff argument. Ticker is guaranteed to tick at least once.\n// The channel is closed when Stop method is called or BackOff stops.", "docstring_tokens": ["NewTicker", "returns", "a", "new", "Ticker", "containing", "a", "channel", "that", "will", "send", "the", "time", "at", "times", "specified", "by", "the", "BackOff", "argument", ".", "Ticker", "is", "guaranteed", "to", "tick", "at", "least", "once", ".", "The", "channel", "is", "closed", "when", "Stop", "method", "is", "called", "or", "BackOff", "stops", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/backoff/ticker.go#L24-L35", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/discovery/etcd_client.go", "func_name": "nodeToMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// nodeToMap translates the contents of a node into a map\n// nodeToMap can be called on the same map with successive results from watch\n// to accumulate a value\n// nodeToMap returns true if out was modified", "docstring_tokens": ["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", "true", "if", "out", "was", "modified"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/discovery/etcd_client.go#L186-L207", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "ServiceAccount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServiceAccount returns a kubernetes service account for use with Pachyderm.", "docstring_tokens": ["ServiceAccount", "returns", "a", "kubernetes", "service", "account", "for", "use", "with", "Pachyderm", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L283-L291", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "ClusterRole", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClusterRole returns a ClusterRole that should be bound to the Pachyderm service account.", "docstring_tokens": ["ClusterRole", "returns", "a", "ClusterRole", "that", "should", "be", "bound", "to", "the", "Pachyderm", "service", "account", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L294-L303", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "RoleBinding", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RoleBinding returns a RoleBinding that binds Pachyderm's Role to its\n// ServiceAccount.", "docstring_tokens": ["RoleBinding", "returns", "a", "RoleBinding", "that", "binds", "Pachyderm", "s", "Role", "to", "its", "ServiceAccount", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L340-L357", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "GetSecretEnvVars", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSecretEnvVars returns the environment variable specs for the storage secret.", "docstring_tokens": ["GetSecretEnvVars", "returns", "the", "environment", "variable", "specs", "for", "the", "storage", "secret", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L377-L401", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "PachdService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PachdService returns a pachd service.", "docstring_tokens": ["PachdService", "returns", "a", "pachd", "service", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L613-L663", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "GithookService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GithookService returns a k8s service that exposes a public IP", "docstring_tokens": ["GithookService", "returns", "a", "k8s", "service", "that", "exposes", "a", "public", "IP"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L666-L688", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "EtcdDeployment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EtcdDeployment returns an etcd k8s Deployment.", "docstring_tokens": ["EtcdDeployment", "returns", "an", "etcd", "k8s", "Deployment", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L691-L782", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "EtcdStorageClass", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EtcdStorageClass creates a storage class used for dynamic volume\n// provisioning. Currently dynamic volume provisioning only works\n// on AWS and GCE.", "docstring_tokens": ["EtcdStorageClass", "creates", "a", "storage", "class", "used", "for", "dynamic", "volume", "provisioning", ".", "Currently", "dynamic", "volume", "provisioning", "only", "works", "on", "AWS", "and", "GCE", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L787-L812", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "EtcdVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EtcdVolume creates a persistent volume backed by a volume with name \"name\"", "docstring_tokens": ["EtcdVolume", "creates", "a", "persistent", "volume", "backed", "by", "a", "volume", "with", "name", "name"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L815-L870", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "EtcdNodePortService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EtcdNodePortService returns a NodePort etcd service. This will let non-etcd\n// pods talk to etcd", "docstring_tokens": ["EtcdNodePortService", "returns", "a", "NodePort", "etcd", "service", ".", "This", "will", "let", "non", "-", "etcd", "pods", "talk", "to", "etcd"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L897-L922", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "EtcdHeadlessService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EtcdHeadlessService returns a headless etcd service, which is only for DNS\n// resolution.", "docstring_tokens": ["EtcdHeadlessService", "returns", "a", "headless", "etcd", "service", "which", "is", "only", "for", "DNS", "resolution", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L926-L946", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "EtcdStatefulSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EtcdStatefulSet returns a stateful set that manages an etcd cluster", "docstring_tokens": ["EtcdStatefulSet", "returns", "a", "stateful", "set", "that", "manages", "an", "etcd", "cluster"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L949-L1108", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "DashDeployment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DashDeployment creates a Deployment for the pachyderm dashboard.", "docstring_tokens": ["DashDeployment", "creates", "a", "Deployment", "for", "the", "pachyderm", "dashboard", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L1111-L1154", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "DashService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DashService creates a Service for the pachyderm dashboard.", "docstring_tokens": ["DashService", "creates", "a", "Service", "for", "the", "pachyderm", "dashboard", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L1157-L1181", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "WriteSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteSecret writes a JSON-encoded k8s secret to the given writer.\n// The secret uses the given map as data.", "docstring_tokens": ["WriteSecret", "writes", "a", "JSON", "-", "encoded", "k8s", "secret", "to", "the", "given", "writer", ".", "The", "secret", "uses", "the", "given", "map", "as", "data", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L1211-L1224", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "GoogleSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GoogleSecret creates a google secret with a bucket name.", "docstring_tokens": ["GoogleSecret", "creates", "a", "google", "secret", "with", "a", "bucket", "name", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L1280-L1285", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "WriteDashboardAssets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteDashboardAssets writes the k8s config for deploying the Pachyderm\n// dashboard to 'encoder'", "docstring_tokens": ["WriteDashboardAssets", "writes", "the", "k8s", "config", "for", "deploying", "the", "Pachyderm", "dashboard", "to", "encoder"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L1301-L1306", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "WriteLocalAssets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteLocalAssets writes assets to a local backend.", "docstring_tokens": ["WriteLocalAssets", "writes", "assets", "to", "a", "local", "backend", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L1463-L1471", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "WriteCustomAssets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteCustomAssets writes assets to a custom combination of object-store and persistent disk.", "docstring_tokens": ["WriteCustomAssets", "writes", "assets", "to", "a", "custom", "combination", "of", "object", "-", "store", "and", "persistent", "disk", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L1474-L1505", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "WriteAmazonAssets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteAmazonAssets writes assets to an amazon backend.", "docstring_tokens": ["WriteAmazonAssets", "writes", "assets", "to", "an", "amazon", "backend", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L1523-L1536", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "WriteGoogleAssets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteGoogleAssets writes assets to a google backend.", "docstring_tokens": ["WriteGoogleAssets", "writes", "assets", "to", "a", "google", "backend", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L1539-L1544", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "WriteMicrosoftAssets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteMicrosoftAssets writes assets to a microsoft backend", "docstring_tokens": ["WriteMicrosoftAssets", "writes", "assets", "to", "a", "microsoft", "backend"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L1547-L1552", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "Images", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Images returns a list of all the images that are used by a pachyderm deployment.", "docstring_tokens": ["Images", "returns", "a", "list", "of", "all", "the", "images", "that", "are", "used", "by", "a", "pachyderm", "deployment", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L1555-L1564", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/assets/assets.go", "func_name": "AddRegistry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddRegistry switches the registry that an image is targeting, unless registry is blank", "docstring_tokens": ["AddRegistry", "switches", "the", "registry", "that", "an", "image", "is", "targeting", "unless", "registry", "is", "blank"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/assets/assets.go#L1583-L1592", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/backoff/exponential.go", "func_name": "withCanonicalRandomizationFactor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// withCanonicalRandomizationFactor is a utility function used by all\n// NewXYZBackoff functions to clamp b.RandomizationFactor to either 0 or 1", "docstring_tokens": ["withCanonicalRandomizationFactor", "is", "a", "utility", "function", "used", "by", "all", "NewXYZBackoff", "functions", "to", "clamp", "b", ".", "RandomizationFactor", "to", "either", "0", "or", "1"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/backoff/exponential.go#L84-L91", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/backoff/exponential.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset the interval back to the initial retry interval and restarts the timer.", "docstring_tokens": ["Reset", "the", "interval", "back", "to", "the", "initial", "retry", "interval", "and", "restarts", "the", "timer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/backoff/exponential.go#L169-L172", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/backoff/exponential.go", "func_name": "incrementCurrentInterval", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Increments the current interval by multiplying it with the multiplier.", "docstring_tokens": ["Increments", "the", "current", "interval", "by", "multiplying", "it", "with", "the", "multiplier", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/backoff/exponential.go#L194-L201", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/server.go", "func_name": "NewBlockAPIServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBlockAPIServer creates a BlockAPIServer using the credentials it finds in\n// the environment", "docstring_tokens": ["NewBlockAPIServer", "creates", "a", "BlockAPIServer", "using", "the", "credentials", "it", "finds", "in", "the", "environment"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/server.go#L35-L79", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/storage/chunk/util.go", "func_name": "LocalStorage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LocalStorage creates a local chunk storage instance.\n// Useful for storage layer tests.", "docstring_tokens": ["LocalStorage", "creates", "a", "local", "chunk", "storage", "instance", ".", "Useful", "for", "storage", "layer", "tests", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/storage/chunk/util.go#L18-L24", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/master.go", "func_name": "deleteJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deleteJob is identical to updateJobState, except that jobPtr points to a job\n// that should be deleted rather than marked failed. Jobs may be deleted if\n// their output commit is deleted.", "docstring_tokens": ["deleteJob", "is", "identical", "to", "updateJobState", "except", "that", "jobPtr", "points", "to", "a", "job", "that", "should", "be", "deleted", "rather", "than", "marked", "failed", ".", "Jobs", "may", "be", "deleted", "if", "their", "output", "commit", "is", "deleted", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/master.go#L766-L780", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/s3/util.go", "func_name": "writeXML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeXML serializes a struct to a response as XML", "docstring_tokens": ["writeXML", "serializes", "a", "struct", "to", "a", "response", "as", "XML"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/s3/util.go#L24-L33", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/admin/server/convert1_7.go", "func_name": "clean1_7HashtreePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// clean canonicalizes 'path' for a Pachyderm 1.7 hashtree", "docstring_tokens": ["clean", "canonicalizes", "path", "for", "a", "Pachyderm", "1", ".", "7", "hashtree"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/admin/server/convert1_7.go#L303-L308", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/client.go", "func_name": "NewFromAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFromAddress constructs a new APIClient for the server at addr.", "docstring_tokens": ["NewFromAddress", "constructs", "a", "new", "APIClient", "for", "the", "server", "at", "addr", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/client.go#L147-L167", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/client.go", "func_name": "getUserMachineAddrAndOpts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getUserMachineAddrAndOpts is a helper for NewOnUserMachine that uses\n// environment variables, config files, etc to figure out which address a user\n// running a command should connect to.", "docstring_tokens": ["getUserMachineAddrAndOpts", "is", "a", "helper", "for", "NewOnUserMachine", "that", "uses", "environment", "variables", "config", "files", "etc", "to", "figure", "out", "which", "address", "a", "user", "running", "a", "command", "should", "connect", "to", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/client.go#L276-L308", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/client.go", "func_name": "NewInCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInCluster constructs a new APIClient using env vars that Kubernetes creates.\n// This should be used to access Pachyderm from within a Kubernetes cluster\n// with Pachyderm running on it.", "docstring_tokens": ["NewInCluster", "constructs", "a", "new", "APIClient", "using", "env", "vars", "that", "Kubernetes", "creates", ".", "This", "should", "be", "used", "to", "access", "Pachyderm", "from", "within", "a", "Kubernetes", "cluster", "with", "Pachyderm", "running", "on", "it", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/client.go#L415-L426", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/client.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close the connection to gRPC", "docstring_tokens": ["Close", "the", "connection", "to", "gRPC"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/client.go#L429-L439", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/client.go", "func_name": "DeleteAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteAll deletes everything in the cluster.\n// Use with caution, there is no undo.", "docstring_tokens": ["DeleteAll", "deletes", "everything", "in", "the", "cluster", ".", "Use", "with", "caution", "there", "is", "no", "undo", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/client.go#L443-L463", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/client.go", "func_name": "SetMaxConcurrentStreams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMaxConcurrentStreams Sets the maximum number of concurrent streams the\n// client can have. It is not safe to call this operations while operations are\n// outstanding.", "docstring_tokens": ["SetMaxConcurrentStreams", "Sets", "the", "maximum", "number", "of", "concurrent", "streams", "the", "client", "can", "have", ".", "It", "is", "not", "safe", "to", "call", "this", "operations", "while", "operations", "are", "outstanding", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/client.go#L468-L470", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/client.go", "func_name": "WithCtx", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithCtx returns a new APIClient that uses ctx for requests it sends. Note\n// that the new APIClient will still use the authentication token and metrics\n// metadata of this client, so this is only useful for propagating other\n// context-associated metadata.", "docstring_tokens": ["WithCtx", "returns", "a", "new", "APIClient", "that", "uses", "ctx", "for", "requests", "it", "sends", ".", "Note", "that", "the", "new", "APIClient", "will", "still", "use", "the", "authentication", "token", "and", "metrics", "metadata", "of", "this", "client", "so", "this", "is", "only", "useful", "for", "propagating", "other", "context", "-", "associated", "metadata", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/client.go#L578-L582", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/dlock/dlock.go", "func_name": "NewDLock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDLock attempts to acquire a distributed lock that locks a given prefix\n// in the data store.", "docstring_tokens": ["NewDLock", "attempts", "to", "acquire", "a", "distributed", "lock", "that", "locks", "a", "given", "prefix", "in", "the", "data", "store", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/dlock/dlock.go#L32-L37", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/api_server.go", "func_name": "DatumID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DatumID computes the id for a datum, this value is used in ListDatum and\n// InspectDatum.", "docstring_tokens": ["DatumID", "computes", "the", "id", "for", "a", "datum", "this", "value", "is", "used", "in", "ListDatum", "and", "InspectDatum", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/api_server.go#L179-L188", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/api_server.go", "func_name": "runUserErrorHandlingCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run user error code and return the combined output of stdout and stderr.", "docstring_tokens": ["Run", "user", "error", "code", "and", "return", "the", "combined", "output", "of", "stdout", "and", "stderr", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/api_server.go#L693-L758", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/api_server.go", "func_name": "HashDatum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HashDatum computes and returns the hash of datum + pipeline, with a\n// pipeline-specific prefix.", "docstring_tokens": ["HashDatum", "computes", "and", "returns", "the", "hash", "of", "datum", "+", "pipeline", "with", "a", "pipeline", "-", "specific", "prefix", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/api_server.go#L1003-L1015", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/api_server.go", "func_name": "HashDatum15", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HashDatum15 computes and returns the hash of datum + pipeline for version <= 1.5.0, with a\n// pipeline-specific prefix.", "docstring_tokens": ["HashDatum15", "computes", "and", "returns", "the", "hash", "of", "datum", "+", "pipeline", "for", "version", "<", "=", "1", ".", "5", ".", "0", "with", "a", "pipeline", "-", "specific", "prefix", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/api_server.go#L1019-L1046", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/api_server.go", "func_name": "Status", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Status returns the status of the current worker.", "docstring_tokens": ["Status", "returns", "the", "status", "of", "the", "current", "worker", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/api_server.go#L1049-L1064", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/api_server.go", "func_name": "Cancel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cancel cancels the currently running datum", "docstring_tokens": ["Cancel", "cancels", "the", "currently", "running", "datum"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/api_server.go#L1067-L1083", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/api_server.go", "func_name": "mergeStats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mergeStats merges y into x", "docstring_tokens": ["mergeStats", "merges", "y", "into", "x"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/api_server.go#L2202-L2216", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/worker/api_server.go", "func_name": "mergeChunk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mergeChunk merges the datum hashtrees into a chunk hashtree and stores it.", "docstring_tokens": ["mergeChunk", "merges", "the", "datum", "hashtrees", "into", "a", "chunk", "hashtree", "and", "stores", "it", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/worker/api_server.go#L2219-L2245", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pfs.go", "func_name": "IsCommitNotFoundErr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsCommitNotFoundErr returns true if 'err' has an error message that matches\n// ErrCommitNotFound", "docstring_tokens": ["IsCommitNotFoundErr", "returns", "true", "if", "err", "has", "an", "error", "message", "that", "matches", "ErrCommitNotFound"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pfs.go#L112-L117", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pfs.go", "func_name": "IsCommitDeletedErr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsCommitDeletedErr returns true if 'err' has an error message that matches\n// ErrCommitDeleted", "docstring_tokens": ["IsCommitDeletedErr", "returns", "true", "if", "err", "has", "an", "error", "message", "that", "matches", "ErrCommitDeleted"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pfs.go#L121-L126", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pfs.go", "func_name": "IsCommitFinishedErr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsCommitFinishedErr returns true of 'err' has an error message that matches\n// ErrCommitFinished", "docstring_tokens": ["IsCommitFinishedErr", "returns", "true", "of", "err", "has", "an", "error", "message", "that", "matches", "ErrCommitFinished"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pfs.go#L130-L135", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pfs.go", "func_name": "IsRepoNotFoundErr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsRepoNotFoundErr returns true if 'err' is an error message about a repo\n// not being found", "docstring_tokens": ["IsRepoNotFoundErr", "returns", "true", "if", "err", "is", "an", "error", "message", "about", "a", "repo", "not", "being", "found"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pfs.go#L139-L144", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pfs.go", "func_name": "IsBranchNotFoundErr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsBranchNotFoundErr returns true if 'err' is an error message about a\n// branch not being found", "docstring_tokens": ["IsBranchNotFoundErr", "returns", "true", "if", "err", "is", "an", "error", "message", "about", "a", "branch", "not", "being", "found"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pfs.go#L148-L153", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/pfs.go", "func_name": "IsFileNotFoundErr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsFileNotFoundErr returns true if 'err' is an error message about a PFS\n// file not being found", "docstring_tokens": ["IsFileNotFoundErr", "returns", "true", "if", "err", "is", "an", "error", "message", "about", "a", "PFS", "file", "not", "being", "found"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/pfs.go#L157-L162", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/version.go", "func_name": "Version", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Version returns the version of pachd as a string.", "docstring_tokens": ["Version", "returns", "the", "version", "of", "pachd", "as", "a", "string", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/version.go#L10-L16", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/driver.go", "func_name": "validateRepoName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateRepoName determines if a repo name is valid", "docstring_tokens": ["validateRepoName", "determines", "if", "a", "repo", "name", "is", "valid"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/driver.go#L71-L77", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/driver.go", "func_name": "newDriver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newDriver is used to create a new Driver instance", "docstring_tokens": ["newDriver", "is", "used", "to", "create", "a", "new", "Driver", "instance"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/driver.go#L121-L158", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/driver.go", "func_name": "inspectCommit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// inspectCommit takes a Commit and returns the corresponding CommitInfo.\n//\n// As a side effect, this function also replaces the ID in the given commit\n// with a real commit ID.", "docstring_tokens": ["inspectCommit", "takes", "a", "Commit", "and", "returns", "the", "corresponding", "CommitInfo", ".", "As", "a", "side", "effect", "this", "function", "also", "replaces", "the", "ID", "in", "the", "given", "commit", "with", "a", "real", "commit", "ID", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/driver.go#L979-L1038", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/driver.go", "func_name": "scratchCommitPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// scratchCommitPrefix returns an etcd prefix that's used to temporarily\n// store the state of a file in an open commit. Once the commit is finished,\n// the scratch space is removed.", "docstring_tokens": ["scratchCommitPrefix", "returns", "an", "etcd", "prefix", "that", "s", "used", "to", "temporarily", "store", "the", "state", "of", "a", "file", "in", "an", "open", "commit", ".", "Once", "the", "commit", "is", "finished", "the", "scratch", "space", "is", "removed", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/driver.go#L1827-L1832", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/driver.go", "func_name": "scratchFilePrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// scratchFilePrefix returns an etcd prefix that's used to temporarily\n// store the state of a file in an open commit. Once the commit is finished,\n// the scratch space is removed.", "docstring_tokens": ["scratchFilePrefix", "returns", "an", "etcd", "prefix", "that", "s", "used", "to", "temporarily", "store", "the", "state", "of", "a", "file", "in", "an", "open", "commit", ".", "Once", "the", "commit", "is", "finished", "the", "scratch", "space", "is", "removed", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/driver.go#L1837-L1839", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/driver.go", "func_name": "getTreeForFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getTreeForFile is like getTreeForCommit except that it can handle open commits.\n// It takes a file instead of a commit so that it can apply the changes for\n// that path to the tree before it returns it.", "docstring_tokens": ["getTreeForFile", "is", "like", "getTreeForCommit", "except", "that", "it", "can", "handle", "open", "commits", ".", "It", "takes", "a", "file", "instead", "of", "a", "commit", "so", "that", "it", "can", "apply", "the", "changes", "for", "that", "path", "to", "the", "tree", "before", "it", "returns", "it", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/driver.go#L2405-L2429", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/driver.go", "func_name": "provenantOnInput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// this is a helper function to check if the given provenance has provenance on an input branch", "docstring_tokens": ["this", "is", "a", "helper", "function", "to", "check", "if", "the", "given", "provenance", "has", "provenance", "on", "an", "input", "branch"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/driver.go#L2459-L2469", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/driver.go", "func_name": "nodeToFileInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// If full is false, exclude potentially large fields such as `Objects`\n// and `Children`", "docstring_tokens": ["If", "full", "is", "false", "exclude", "potentially", "large", "fields", "such", "as", "Objects", "and", "Children"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/driver.go#L2619-L2642", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/driver.go", "func_name": "fileHistory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fileHistory calls f with FileInfos for the file, starting with how it looked\n// at the referenced commit and then all past versions that are different.", "docstring_tokens": ["fileHistory", "calls", "f", "with", "FileInfos", "for", "the", "file", "starting", "with", "how", "it", "looked", "at", "the", "referenced", "commit", "and", "then", "all", "past", "versions", "that", "are", "different", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/driver.go#L2819-L2850", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pfs/server/driver.go", "func_name": "upsertPutFileRecords", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Put the tree into the blob store\n// Only write the records to etcd if the commit does exist and is open.\n// To check that a key exists in etcd, we assert that its CreateRevision\n// is greater than zero.", "docstring_tokens": ["Put", "the", "tree", "into", "the", "blob", "store", "Only", "write", "the", "records", "to", "etcd", "if", "the", "commit", "does", "exist", "and", "is", "open", ".", "To", "check", "that", "a", "key", "exists", "in", "etcd", "we", "assert", "that", "its", "CreateRevision", "is", "greater", "than", "zero", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pfs/server/driver.go#L3064-L3102", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/sql/sql.go", "func_name": "ReadRow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadRow parses the pgdump file and populates the header and the footer\n// It returns EOF when done, and at that time both the Header and Footer will\n// be populated. Both header and footer are required. If either are missing, an\n// error is returned", "docstring_tokens": ["ReadRow", "parses", "the", "pgdump", "file", "and", "populates", "the", "header", "and", "the", "footer", "It", "returns", "EOF", "when", "done", "and", "at", "that", "time", "both", "the", "Header", "and", "Footer", "will", "be", "populated", ".", "Both", "header", "and", "footer", "are", "required", ".", "If", "either", "are", "missing", "an", "error", "is", "returned"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/sql/sql.go#L28-L55", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/metrics/metrics.go", "func_name": "NewReporter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReporter creates a new reporter and kicks off the loop to report cluster\n// metrics", "docstring_tokens": ["NewReporter", "creates", "a", "new", "reporter", "and", "kicks", "off", "the", "loop", "to", "report", "cluster", "metrics"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/metrics/metrics.go#L27-L35", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/metrics/metrics.go", "func_name": "ReportUserAction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ReportUserAction pushes the action into a queue for reporting,\n// and reports the start, finish, and error conditions", "docstring_tokens": ["ReportUserAction", "pushes", "the", "action", "into", "a", "queue", "for", "reporting", "and", "reports", "the", "start", "finish", "and", "error", "conditions"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/metrics/metrics.go#L39-L53", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/metrics/metrics.go", "func_name": "FinishReportAndFlushUserAction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FinishReportAndFlushUserAction immediately reports the metric but does\n// not block execution. It returns a wait function which waits or times\n// out after 5s.\n// It is used by the pachctl binary and runs on users' machines", "docstring_tokens": ["FinishReportAndFlushUserAction", "immediately", "reports", "the", "metric", "but", "does", "not", "block", "execution", ".", "It", "returns", "a", "wait", "function", "which", "waits", "or", "times", "out", "after", "5s", ".", "It", "is", "used", "by", "the", "pachctl", "binary", "and", "runs", "on", "users", "machines"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/metrics/metrics.go#L126-L134", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/storage/chunk/reader.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads from the byte stream produced by the set of DataRefs.", "docstring_tokens": ["Read", "reads", "from", "the", "byte", "stream", "produced", "by", "the", "set", "of", "DataRefs", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/storage/chunk/reader.go#L37-L61", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/enterprise/cmds/cmds.go", "func_name": "ActivateCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ActivateCmd returns a cobra.Command to activate the enterprise features of\n// Pachyderm within a Pachyderm cluster. All repos will go from\n// publicly-accessible to accessible only by the owner, who can subsequently add\n// users", "docstring_tokens": ["ActivateCmd", "returns", "a", "cobra", ".", "Command", "to", "activate", "the", "enterprise", "features", "of", "Pachyderm", "within", "a", "Pachyderm", "cluster", ".", "All", "repos", "will", "go", "from", "publicly", "-", "accessible", "to", "accessible", "only", "by", "the", "owner", "who", "can", "subsequently", "add", "users"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/enterprise/cmds/cmds.go#L35-L82", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/enterprise/cmds/cmds.go", "func_name": "GetStateCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStateCmd returns a cobra.Command to activate the enterprise features of\n// Pachyderm within a Pachyderm cluster. All repos will go from\n// publicly-accessible to accessible only by the owner, who can subsequently add\n// users", "docstring_tokens": ["GetStateCmd", "returns", "a", "cobra", ".", "Command", "to", "activate", "the", "enterprise", "features", "of", "Pachyderm", "within", "a", "Pachyderm", "cluster", ".", "All", "repos", "will", "go", "from", "publicly", "-", "accessible", "to", "accessible", "only", "by", "the", "owner", "who", "can", "subsequently", "add", "users"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/enterprise/cmds/cmds.go#L88-L119", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/enterprise/cmds/cmds.go", "func_name": "Cmds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cmds returns pachctl commands related to Pachyderm Enterprise", "docstring_tokens": ["Cmds", "returns", "pachctl", "commands", "related", "to", "Pachyderm", "Enterprise"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/enterprise/cmds/cmds.go#L122-L135", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/serviceenv/config.go", "func_name": "NewConfiguration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConfiguration creates a generic configuration from a specific type of configuration.", "docstring_tokens": ["NewConfiguration", "creates", "a", "generic", "configuration", "from", "a", "specific", "type", "of", "configuration", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/serviceenv/config.go#L83-L100", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/pfsdb/pfsdb.go", "func_name": "Repos", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Repos returns a collection of repos", "docstring_tokens": ["Repos", "returns", "a", "collection", "of", "repos"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/pfsdb/pfsdb.go#L28-L37", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/pfsdb/pfsdb.go", "func_name": "PutFileRecords", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutFileRecords returns a collection of putFileRecords", "docstring_tokens": ["PutFileRecords", "returns", "a", "collection", "of", "putFileRecords"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/pfsdb/pfsdb.go#L40-L49", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/pfsdb/pfsdb.go", "func_name": "Commits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Commits returns a collection of commits", "docstring_tokens": ["Commits", "returns", "a", "collection", "of", "commits"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/pfsdb/pfsdb.go#L52-L61", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/pfsdb/pfsdb.go", "func_name": "Branches", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Branches returns a collection of branches", "docstring_tokens": ["Branches", "returns", "a", "collection", "of", "branches"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/pfsdb/pfsdb.go#L64-L78", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/pfsdb/pfsdb.go", "func_name": "OpenCommits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpenCommits returns a collection of open commits", "docstring_tokens": ["OpenCommits", "returns", "a", "collection", "of", "open", "commits"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/pfsdb/pfsdb.go#L81-L90", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/dag/dag.go", "func_name": "NewDAG", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDAG creates a DAG and populates it with the given nodes.", "docstring_tokens": ["NewDAG", "creates", "a", "DAG", "and", "populates", "it", "with", "the", "given", "nodes", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/dag/dag.go#L11-L21", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/dag/dag.go", "func_name": "NewNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewNode adds a node to d.", "docstring_tokens": ["NewNode", "adds", "a", "node", "to", "d", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/dag/dag.go#L24-L33", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/dag/dag.go", "func_name": "Sorted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sorted returns all nodes in a topologically sorted order", "docstring_tokens": ["Sorted", "returns", "all", "nodes", "in", "a", "topologically", "sorted", "order"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/dag/dag.go#L36-L43", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/dag/dag.go", "func_name": "Leaves", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Leaves returns a slice containing all leaves in d.", "docstring_tokens": ["Leaves", "returns", "a", "slice", "containing", "all", "leaves", "in", "d", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/dag/dag.go#L46-L55", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/dag/dag.go", "func_name": "Ancestors", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ancestors returns a slice containing all ancestors of a node, 'id',\n// in d which are a descendant of at least one of the nodes in 'from'.", "docstring_tokens": ["Ancestors", "returns", "a", "slice", "containing", "all", "ancestors", "of", "a", "node", "id", "in", "d", "which", "are", "a", "descendant", "of", "at", "least", "one", "of", "the", "nodes", "in", "from", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/dag/dag.go#L59-L65", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/dag/dag.go", "func_name": "Descendants", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Descendants returns a slice containing all descendants of a node, 'id',\n// in d which are an ancestor of at least one of the nodes in 'to'.", "docstring_tokens": ["Descendants", "returns", "a", "slice", "containing", "all", "descendants", "of", "a", "node", "id", "in", "d", "which", "are", "an", "ancestor", "of", "at", "least", "one", "of", "the", "nodes", "in", "to", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/dag/dag.go#L69-L75", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/dag/dag.go", "func_name": "Ghosts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ghosts returns nodes that were referenced as parents but never created.", "docstring_tokens": ["Ghosts", "returns", "nodes", "that", "were", "referenced", "as", "parents", "but", "never", "created", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/dag/dag.go#L78-L86", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/portforwarder.go", "func_name": "NewPortForwarder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPortForwarder creates a new port forwarder", "docstring_tokens": ["NewPortForwarder", "creates", "a", "new", "port", "forwarder"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/portforwarder.go#L49-L79", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/portforwarder.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run starts the port forwarder. Returns after initialization is begun,\n// returning any initialization errors.", "docstring_tokens": ["Run", "starts", "the", "port", "forwarder", ".", "Returns", "after", "initialization", "is", "begun", "returning", "any", "initialization", "errors", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/portforwarder.go#L83-L147", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/portforwarder.go", "func_name": "RunForDaemon", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunForDaemon creates a port forwarder for the pachd daemon.", "docstring_tokens": ["RunForDaemon", "creates", "a", "port", "forwarder", "for", "the", "pachd", "daemon", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/portforwarder.go#L150-L158", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/portforwarder.go", "func_name": "RunForSAMLACS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunForSAMLACS creates a port forwarder for SAML ACS.", "docstring_tokens": ["RunForSAMLACS", "creates", "a", "port", "forwarder", "for", "SAML", "ACS", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/portforwarder.go#L161-L166", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/portforwarder.go", "func_name": "RunForDashUI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunForDashUI creates a port forwarder for the dash UI.", "docstring_tokens": ["RunForDashUI", "creates", "a", "port", "forwarder", "for", "the", "dash", "UI", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/portforwarder.go#L169-L174", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/portforwarder.go", "func_name": "RunForDashWebSocket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunForDashWebSocket creates a port forwarder for the dash websocket.", "docstring_tokens": ["RunForDashWebSocket", "creates", "a", "port", "forwarder", "for", "the", "dash", "websocket", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/portforwarder.go#L177-L182", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/portforwarder.go", "func_name": "RunForPFS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunForPFS creates a port forwarder for PFS over HTTP.", "docstring_tokens": ["RunForPFS", "creates", "a", "port", "forwarder", "for", "PFS", "over", "HTTP", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/portforwarder.go#L185-L190", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/portforwarder.go", "func_name": "RunForS3Gateway", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunForS3Gateway creates a port forwarder for the s3gateway.", "docstring_tokens": ["RunForS3Gateway", "creates", "a", "port", "forwarder", "for", "the", "s3gateway", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/portforwarder.go#L193-L198", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/portforwarder.go", "func_name": "Lock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Lock uses pidfiles to ensure that only one port forwarder is running across\n// one or more `pachctl` instances", "docstring_tokens": ["Lock", "uses", "pidfiles", "to", "ensure", "that", "only", "one", "port", "forwarder", "is", "running", "across", "one", "or", "more", "pachctl", "instances"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/portforwarder.go#L202-L205", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/portforwarder.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close shuts down port forwarding.", "docstring_tokens": ["Close", "shuts", "down", "port", "forwarding", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/portforwarder.go#L208-L223", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/watch/watch.go", "func_name": "Unmarshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unmarshal unmarshals the item in an event into a protobuf message.", "docstring_tokens": ["Unmarshal", "unmarshals", "the", "item", "in", "an", "event", "into", "a", "protobuf", "message", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/watch/watch.go#L41-L47", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/watch/watch.go", "func_name": "UnmarshalPrev", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalPrev unmarshals the prev item in an event into a protobuf\n// message.", "docstring_tokens": ["UnmarshalPrev", "unmarshals", "the", "prev", "item", "in", "an", "event", "into", "a", "protobuf", "message", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/watch/watch.go#L51-L57", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/watch/watch.go", "func_name": "MakeWatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakeWatcher returns a Watcher that uses the given event channel and done\n// channel internally to deliver events and signal closure, respectively.", "docstring_tokens": ["MakeWatcher", "returns", "a", "Watcher", "that", "uses", "the", "given", "event", "channel", "and", "done", "channel", "internally", "to", "deliver", "events", "and", "signal", "closure", "respectively", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/watch/watch.go#L195-L200", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/watch/watch.go", "func_name": "CheckType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckType checks to make sure val has the same type as template, unless\n// template is nil in which case it always returns nil.", "docstring_tokens": ["CheckType", "checks", "to", "make", "sure", "val", "has", "the", "same", "type", "as", "template", "unless", "template", "is", "nil", "in", "which", "case", "it", "always", "returns", "nil", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/watch/watch.go#L204-L212", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/pool/pool.go", "func_name": "NewPool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPool creates a new connection pool with connections to pods in the\n// given service.", "docstring_tokens": ["NewPool", "creates", "a", "new", "connection", "pool", "with", "connections", "to", "pods", "in", "the", "given", "service", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/pool/pool.go#L38-L61", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/pool/pool.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do allows you to do something with a grpc.ClientConn.\n// Errors returned from f will be returned by Do.", "docstring_tokens": ["Do", "allows", "you", "to", "do", "something", "with", "a", "grpc", ".", "ClientConn", ".", "Errors", "returned", "from", "f", "will", "be", "returned", "by", "Do", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/pool/pool.go#L102-L140", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/pool/pool.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes all connections stored in the pool, it returns an error if any\n// of the calls to Close error.", "docstring_tokens": ["Close", "closes", "all", "connections", "stored", "in", "the", "pool", "it", "returns", "an", "error", "if", "any", "of", "the", "calls", "to", "Close", "error", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/pool/pool.go#L144-L155", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/cmds/cmds.go", "func_name": "buildImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildImage builds a new docker image.", "docstring_tokens": ["buildImage", "builds", "a", "new", "docker", "image", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/cmds/cmds.go#L898-L915", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/cmds/cmds.go", "func_name": "pushImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// pushImage pushes a docker image.", "docstring_tokens": ["pushImage", "pushes", "a", "docker", "image", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/cmds/cmds.go#L918-L945", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/minio_client.go", "func_name": "newMinioClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Creates a new minioClient structure and returns", "docstring_tokens": ["Creates", "a", "new", "minioClient", "structure", "and", "returns"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/minio_client.go#L19-L28", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/minio_client.go", "func_name": "newMinioClientV2", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Creates a new minioClient S3V2 structure and returns", "docstring_tokens": ["Creates", "a", "new", "minioClient", "S3V2", "structure", "and", "returns"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/minio_client.go#L31-L40", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/minio_client.go", "func_name": "newMinioWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Creates a new minio writer and a go routine to upload objects to minio server", "docstring_tokens": ["Creates", "a", "new", "minio", "writer", "and", "a", "go", "routine", "to", "upload", "objects", "to", "minio", "server"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/minio_client.go#L50-L65", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/obj/minio_client.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This will block till upload is done", "docstring_tokens": ["This", "will", "block", "till", "upload", "is", "done"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/obj/minio_client.go#L74-L81", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "PipelineRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PipelineRepo creates a pfs repo for a given pipeline.", "docstring_tokens": ["PipelineRepo", "creates", "a", "pfs", "repo", "for", "a", "given", "pipeline", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L51-L53", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "PipelineRcName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PipelineRcName generates the name of the k8s replication controller that\n// manages a pipeline's workers", "docstring_tokens": ["PipelineRcName", "generates", "the", "name", "of", "the", "k8s", "replication", "controller", "that", "manages", "a", "pipeline", "s", "workers"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L57-L63", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "GetRequestsResourceListFromPipeline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRequestsResourceListFromPipeline returns a list of resources that the pipeline,\n// minimally requires.", "docstring_tokens": ["GetRequestsResourceListFromPipeline", "returns", "a", "list", "of", "resources", "that", "the", "pipeline", "minimally", "requires", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L67-L69", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "GetLimitsResourceListFromPipeline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLimitsResourceListFromPipeline returns a list of resources that the pipeline,\n// maximally is limited to.", "docstring_tokens": ["GetLimitsResourceListFromPipeline", "returns", "a", "list", "of", "resources", "that", "the", "pipeline", "maximally", "is", "limited", "to", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L121-L123", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "getNumNodes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getNumNodes attempts to retrieve the number of nodes in the current k8s\n// cluster", "docstring_tokens": ["getNumNodes", "attempts", "to", "retrieve", "the", "number", "of", "nodes", "in", "the", "current", "k8s", "cluster"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L127-L136", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "GetExpectedNumWorkers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetExpectedNumWorkers computes the expected number of workers that\n// pachyderm will start given the ParallelismSpec 'spec'.\n//\n// This is only exported for testing", "docstring_tokens": ["GetExpectedNumWorkers", "computes", "the", "expected", "number", "of", "workers", "that", "pachyderm", "will", "start", "given", "the", "ParallelismSpec", "spec", ".", "This", "is", "only", "exported", "for", "testing"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L142-L157", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "GetExpectedNumHashtrees", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetExpectedNumHashtrees computes the expected number of hashtrees that\n// Pachyderm will create given the HashtreeSpec 'spec'.", "docstring_tokens": ["GetExpectedNumHashtrees", "computes", "the", "expected", "number", "of", "hashtrees", "that", "Pachyderm", "will", "create", "given", "the", "HashtreeSpec", "spec", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L161-L168", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "FailPipeline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FailPipeline updates the pipeline's state to failed and sets the failure reason", "docstring_tokens": ["FailPipeline", "updates", "the", "pipeline", "s", "state", "to", "failed", "and", "sets", "the", "failure", "reason"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L192-L205", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "JobInput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JobInput fills in the commits for a JobInfo", "docstring_tokens": ["JobInput", "fills", "in", "the", "commits", "for", "a", "JobInfo"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L208-L234", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "PipelineReqFromInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PipelineReqFromInfo converts a PipelineInfo into a CreatePipelineRequest.", "docstring_tokens": ["PipelineReqFromInfo", "converts", "a", "PipelineInfo", "into", "a", "CreatePipelineRequest", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L237-L260", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "NewPipelineManifestReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPipelineManifestReader creates a new manifest reader from a path.", "docstring_tokens": ["NewPipelineManifestReader", "creates", "a", "new", "manifest", "reader", "from", "a", "path", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L270-L301", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "NextCreatePipelineRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NextCreatePipelineRequest gets the next request from the manifest reader.", "docstring_tokens": ["NextCreatePipelineRequest", "gets", "the", "next", "request", "from", "the", "manifest", "reader", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L304-L313", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "DescribeSyntaxError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DescribeSyntaxError describes a syntax error encountered parsing json.", "docstring_tokens": ["DescribeSyntaxError", "describes", "a", "syntax", "error", "encountered", "parsing", "json", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L316-L342", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/ppsutil/util.go", "func_name": "UpdateJobState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateJobState performs the operations involved with a job state transition.", "docstring_tokens": ["UpdateJobState", "performs", "the", "operations", "involved", "with", "a", "job", "state", "transition", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/ppsutil/util.go#L359-L390", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/uuid/uuid.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new uuid.", "docstring_tokens": ["New", "returns", "a", "new", "uuid", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/uuid/uuid.go#L14-L28", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/errutil/http.go", "func_name": "Code", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Code returns the HTTP error code associated with 'h'", "docstring_tokens": ["Code", "returns", "the", "HTTP", "error", "code", "associated", "with", "h"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/errutil/http.go#L25-L30", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/errutil/http.go", "func_name": "NewHTTPError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHTTPError returns a new HTTPError where the HTTP error code is 'code' and\n// the error message is based on 'formatStr' and 'args'", "docstring_tokens": ["NewHTTPError", "returns", "a", "new", "HTTPError", "where", "the", "HTTP", "error", "code", "is", "code", "and", "the", "error", "message", "is", "based", "on", "formatStr", "and", "args"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/errutil/http.go#L41-L46", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/storage/chunk/storage.go", "func_name": "NewStorage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStorage creates a new Storage.", "docstring_tokens": ["NewStorage", "creates", "a", "new", "Storage", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/storage/chunk/storage.go#L19-L24", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/storage/chunk/storage.go", "func_name": "DeleteAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteAll deletes all of the chunks in object storage.", "docstring_tokens": ["DeleteAll", "deletes", "all", "of", "the", "chunks", "in", "object", "storage", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/storage/chunk/storage.go#L46-L50", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/grpcutil/stream.go", "func_name": "Chunk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Chunk splits a piece of data up, this is useful for splitting up data that's\n// bigger than MaxMsgSize", "docstring_tokens": ["Chunk", "splits", "a", "piece", "of", "data", "up", "this", "is", "useful", "for", "splitting", "up", "data", "that", "s", "bigger", "than", "MaxMsgSize"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/grpcutil/stream.go#L18-L28", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/grpcutil/stream.go", "func_name": "ChunkReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChunkReader splits a reader into reasonably sized chunks for the purpose\n// of transmitting the chunks over gRPC. For each chunk, it calls the given\n// function.", "docstring_tokens": ["ChunkReader", "splits", "a", "reader", "into", "reasonably", "sized", "chunks", "for", "the", "purpose", "of", "transmitting", "the", "chunks", "over", "gRPC", ".", "For", "each", "chunk", "it", "calls", "the", "given", "function", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/grpcutil/stream.go#L33-L50", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/grpcutil/stream.go", "func_name": "NewStreamingBytesReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStreamingBytesReader returns an io.Reader for a StreamingBytesClient.", "docstring_tokens": ["NewStreamingBytesReader", "returns", "an", "io", ".", "Reader", "for", "a", "StreamingBytesClient", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/grpcutil/stream.go#L65-L67", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/grpcutil/stream.go", "func_name": "WriteToStreamingBytesServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteToStreamingBytesServer writes the data from the io.Reader to the StreamingBytesServer.", "docstring_tokens": ["WriteToStreamingBytesServer", "writes", "the", "data", "from", "the", "io", ".", "Reader", "to", "the", "StreamingBytesServer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/grpcutil/stream.go#L131-L136", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pkg/grpcutil/stream.go", "func_name": "WriteFromStreamingBytesClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteFromStreamingBytesClient writes from the StreamingBytesClient to the io.Writer.", "docstring_tokens": ["WriteFromStreamingBytesClient", "writes", "from", "the", "StreamingBytesClient", "to", "the", "io", ".", "Writer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pkg/grpcutil/stream.go#L139-L149", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pps/server/server.go", "func_name": "NewSidecarAPIServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSidecarAPIServer creates an APIServer that has limited functionalities\n// and is meant to be run as a worker sidecar. It cannot, for instance,\n// create pipelines.", "docstring_tokens": ["NewSidecarAPIServer", "creates", "an", "APIServer", "that", "has", "limited", "functionalities", "and", "is", "meant", "to", "be", "run", "as", "a", "worker", "sidecar", ".", "It", "cannot", "for", "instance", "create", "pipelines", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pps/server/server.go#L66-L91", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/enterprise/server/api_server.go", "func_name": "NewEnterpriseServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEnterpriseServer returns an implementation of ec.APIServer.", "docstring_tokens": ["NewEnterpriseServer", "returns", "an", "implementation", "of", "ec", ".", "APIServer", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/enterprise/server/api_server.go#L72-L88", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/enterprise/server/api_server.go", "func_name": "validateActivationCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateActivationCode checks the validity of an activation code", "docstring_tokens": ["validateActivationCode", "checks", "the", "validity", "of", "an", "activation", "code"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/enterprise/server/api_server.go#L143-L202", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/enterprise/server/api_server.go", "func_name": "Activate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Activate implements the Activate RPC", "docstring_tokens": ["Activate", "implements", "the", "Activate", "RPC"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/enterprise/server/api_server.go#L205-L252", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/enterprise/server/api_server.go", "func_name": "Deactivate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Deactivate deletes the current cluster's enterprise token, and puts the\n// cluster in the \"NONE\" enterprise state. It also deletes all data in the\n// cluster, to avoid invalid cluster states. This call only makes sense for\n// testing", "docstring_tokens": ["Deactivate", "deletes", "the", "current", "cluster", "s", "enterprise", "token", "and", "puts", "the", "cluster", "in", "the", "NONE", "enterprise", "state", ".", "It", "also", "deletes", "all", "data", "in", "the", "cluster", "to", "avoid", "invalid", "cluster", "states", ".", "This", "call", "only", "makes", "sense", "for", "testing"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/enterprise/server/api_server.go#L287-L315", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/exec/exec.go", "func_name": "lookExtensions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lookExtensions finds windows executable by its dir and path.\n// It uses LookPath to try appropriate extensions.\n// lookExtensions does not search PATH, instead it converts `prog` into `.\\prog`.", "docstring_tokens": ["lookExtensions", "finds", "windows", "executable", "by", "its", "dir", "and", "path", ".", "It", "uses", "LookPath", "to", "try", "appropriate", "extensions", ".", "lookExtensions", "does", "not", "search", "PATH", "instead", "it", "converts", "prog", "into", ".", "\\", "prog", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/exec/exec.go#L296-L317", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/exec/exec.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts the specified command but does not wait for it to complete.\n//\n// The Wait method will return the exit code and release associated resources\n// once the command exits.", "docstring_tokens": ["Start", "starts", "the", "specified", "command", "but", "does", "not", "wait", "for", "it", "to", "complete", ".", "The", "Wait", "method", "will", "return", "the", "exit", "code", "and", "release", "associated", "resources", "once", "the", "command", "exits", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/exec/exec.go#L323-L397", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/exec/exec.go", "func_name": "CombinedOutput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CombinedOutput runs the command and returns its combined standard\n// output and standard error.", "docstring_tokens": ["CombinedOutput", "runs", "the", "command", "and", "returns", "its", "combined", "standard", "output", "and", "standard", "error", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/exec/exec.go#L500-L512", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/exec/exec.go", "func_name": "StdinPipe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StdinPipe returns a pipe that will be connected to the command's\n// standard input when the command starts.\n// The pipe will be closed automatically after Wait sees the command exit.\n// A caller need only call Close to force the pipe to close sooner.\n// For example, if the command being run will not exit until standard input\n// is closed, the caller must close the pipe.", "docstring_tokens": ["StdinPipe", "returns", "a", "pipe", "that", "will", "be", "connected", "to", "the", "command", "s", "standard", "input", "when", "the", "command", "starts", ".", "The", "pipe", "will", "be", "closed", "automatically", "after", "Wait", "sees", "the", "command", "exit", ".", "A", "caller", "need", "only", "call", "Close", "to", "force", "the", "pipe", "to", "close", "sooner", ".", "For", "example", "if", "the", "command", "being", "run", "will", "not", "exit", "until", "standard", "input", "is", "closed", "the", "caller", "must", "close", "the", "pipe", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/exec/exec.go#L520-L536", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/exec/exec.go", "func_name": "StdoutPipe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StdoutPipe returns a pipe that will be connected to the command's\n// standard output when the command starts.\n//\n// Wait will close the pipe after seeing the command exit, so most callers\n// need not close the pipe themselves; however, an implication is that\n// it is incorrect to call Wait before all reads from the pipe have completed.\n// For the same reason, it is incorrect to call Run when using StdoutPipe.\n// See the example for idiomatic usage.", "docstring_tokens": ["StdoutPipe", "returns", "a", "pipe", "that", "will", "be", "connected", "to", "the", "command", "s", "standard", "output", "when", "the", "command", "starts", ".", "Wait", "will", "close", "the", "pipe", "after", "seeing", "the", "command", "exit", "so", "most", "callers", "need", "not", "close", "the", "pipe", "themselves", ";", "however", "an", "implication", "is", "that", "it", "is", "incorrect", "to", "call", "Wait", "before", "all", "reads", "from", "the", "pipe", "have", "completed", ".", "For", "the", "same", "reason", "it", "is", "incorrect", "to", "call", "Run", "when", "using", "StdoutPipe", ".", "See", "the", "example", "for", "idiomatic", "usage", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/exec/exec.go#L612-L627", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/exec/exec.go", "func_name": "dedupEnvCase", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dedupEnvCase is dedupEnv with a case option for testing.\n// If caseInsensitive is true, the case of keys is ignored.", "docstring_tokens": ["dedupEnvCase", "is", "dedupEnv", "with", "a", "case", "option", "for", "testing", ".", "If", "caseInsensitive", "is", "true", "the", "case", "of", "keys", "is", "ignored", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/exec/exec.go#L740-L761", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps/util.go", "func_name": "InputName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InputName computes the name of an Input.", "docstring_tokens": ["InputName", "computes", "the", "name", "of", "an", "Input", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps/util.go#L31-L47", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps/util.go", "func_name": "SortInput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SortInput sorts an Input.", "docstring_tokens": ["SortInput", "sorts", "an", "Input", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps/util.go#L50-L62", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps/util.go", "func_name": "InputBranches", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InputBranches returns the branches in an Input.", "docstring_tokens": ["InputBranches", "returns", "the", "branches", "in", "an", "Input", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps/util.go#L65-L88", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/pps/util.go", "func_name": "ValidateGitCloneURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateGitCloneURL returns an error if the provided URL is invalid", "docstring_tokens": ["ValidateGitCloneURL", "returns", "an", "error", "if", "the", "provided", "URL", "is", "invalid"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/pps/util.go#L91-L122", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/deploy/cmds/cmds.go", "func_name": "containsEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// containsEmpty is a helper function used for validation (particularly for\n// validating that creds arguments aren't empty", "docstring_tokens": ["containsEmpty", "is", "a", "helper", "function", "used", "for", "validation", "(", "particularly", "for", "validating", "that", "creds", "arguments", "aren", "t", "empty"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/deploy/cmds/cmds.go#L139-L146", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/admin/server/server.go", "func_name": "NewAPIServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAPIServer returns a new admin.APIServer", "docstring_tokens": ["NewAPIServer", "returns", "a", "new", "admin", ".", "APIServer"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/admin/server/server.go#L14-L21", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/pretty/pretty.go", "func_name": "Ago", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ago pretty-prints the amount of time that has passed\n// since timestamp as a human-readable string.", "docstring_tokens": ["Ago", "pretty", "-", "prints", "the", "amount", "of", "time", "that", "has", "passed", "since", "timestamp", "as", "a", "human", "-", "readable", "string", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/pretty/pretty.go#L21-L27", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/pretty/pretty.go", "func_name": "TimeDifference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TimeDifference pretty-prints the duration of time between from\n// and to as a human-reabable string.", "docstring_tokens": ["TimeDifference", "pretty", "-", "prints", "the", "duration", "of", "time", "between", "from", "and", "to", "as", "a", "human", "-", "reabable", "string", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/pretty/pretty.go#L31-L35", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/server/pkg/pretty/pretty.go", "func_name": "Duration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Duration pretty prints a duration in a human readable way.", "docstring_tokens": ["Duration", "pretty", "prints", "a", "duration", "in", "a", "human", "readable", "way", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/server/pkg/pretty/pretty.go#L38-L41", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/admin.go", "func_name": "InspectCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InspectCluster retrieves cluster state", "docstring_tokens": ["InspectCluster", "retrieves", "cluster", "state"], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/admin.go#L15-L21", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/admin.go", "func_name": "Extract", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Extract all cluster state, call f with each operation.", "docstring_tokens": ["Extract", "all", "cluster", "state", "call", "f", "with", "each", "operation", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/admin.go#L24-L42", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/admin.go", "func_name": "ExtractAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExtractAll cluster state as a slice of operations.", "docstring_tokens": ["ExtractAll", "cluster", "state", "as", "a", "slice", "of", "operations", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/admin.go#L45-L54", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/admin.go", "func_name": "ExtractWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExtractWriter extracts all cluster state and marshals it to w.", "docstring_tokens": ["ExtractWriter", "extracts", "all", "cluster", "state", "and", "marshals", "it", "to", "w", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/admin.go#L57-L63", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/admin.go", "func_name": "ExtractURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExtractURL extracts all cluster state and marshalls it to object storage.", "docstring_tokens": ["ExtractURL", "extracts", "all", "cluster", "state", "and", "marshalls", "it", "to", "object", "storage", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/admin.go#L66-L79", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/admin.go", "func_name": "ExtractPipeline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExtractPipeline extracts a single pipeline.", "docstring_tokens": ["ExtractPipeline", "extracts", "a", "single", "pipeline", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/admin.go#L82-L91", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/admin.go", "func_name": "Restore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Restore cluster state from an extract series of operations.", "docstring_tokens": ["Restore", "cluster", "state", "from", "an", "extract", "series", "of", "operations", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/admin.go#L94-L110", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/admin.go", "func_name": "RestoreReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestoreReader restores cluster state from a reader containing marshaled ops.\n// Such as those written by ExtractWriter.", "docstring_tokens": ["RestoreReader", "restores", "cluster", "state", "from", "a", "reader", "containing", "marshaled", "ops", ".", "Such", "as", "those", "written", "by", "ExtractWriter", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/admin.go#L114-L138", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/admin.go", "func_name": "RestoreFrom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestoreFrom restores state from another cluster which can be access through otherC.", "docstring_tokens": ["RestoreFrom", "restores", "state", "from", "another", "cluster", "which", "can", "be", "access", "through", "otherC", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/admin.go#L141-L154", "partition": "test"} +{"repo": "pachyderm/pachyderm", "path": "src/client/admin.go", "func_name": "RestoreURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestoreURL restures cluster state from object storage.", "docstring_tokens": ["RestoreURL", "restures", "cluster", "state", "from", "object", "storage", "."], "sha": "94fb2d536cb6852a77a49e8f777dc9c1bde2c723", "url": "https://github.com/pachyderm/pachyderm/blob/94fb2d536cb6852a77a49e8f777dc9c1bde2c723/src/client/admin.go#L157-L168", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/cmpopts/ignore.go", "func_name": "IgnoreTypes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IgnoreTypes returns an Option that ignores all values assignable to\n// certain types, which are specified by passing in a value of each type.", "docstring_tokens": ["IgnoreTypes", "returns", "an", "Option", "that", "ignores", "all", "values", "assignable", "to", "certain", "types", "which", "are", "specified", "by", "passing", "in", "a", "value", "of", "each", "type", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/cmpopts/ignore.go#L32-L35", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/report_text.go", "func_name": "AppendEllipsis", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendEllipsis appends a new ellipsis node to the list if none already\n// exists at the end. If cs is non-zero it coalesces the statistics with the\n// previous diffStats.", "docstring_tokens": ["AppendEllipsis", "appends", "a", "new", "ellipsis", "node", "to", "the", "list", "if", "none", "already", "exists", "at", "the", "end", ".", "If", "cs", "is", "non", "-", "zero", "it", "coalesces", "the", "statistics", "with", "the", "previous", "diffStats", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/report_text.go#L143-L156", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/internal/function/func.go", "func_name": "IsType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsType reports whether the reflect.Type is of the specified function type.", "docstring_tokens": ["IsType", "reports", "whether", "the", "reflect", ".", "Type", "is", "of", "the", "specified", "function", "type", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/internal/function/func.go#L38-L66", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/internal/function/func.go", "func_name": "NameOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NameOf returns the name of the function value.", "docstring_tokens": ["NameOf", "returns", "the", "name", "of", "the", "function", "value", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/internal/function/func.go#L71-L99", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/internal/value/pointer_unsafe.go", "func_name": "PointerOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PointerOf returns a Pointer from v, which must be a\n// reflect.Ptr, reflect.Slice, or reflect.Map.", "docstring_tokens": ["PointerOf", "returns", "a", "Pointer", "from", "v", "which", "must", "be", "a", "reflect", ".", "Ptr", "reflect", ".", "Slice", "or", "reflect", ".", "Map", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/internal/value/pointer_unsafe.go#L22-L26", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/internal/diff/diff.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a human-readable string representing the edit-script where\n// Identity, UniqueX, UniqueY, and Modified are represented by the\n// '.', 'X', 'Y', and 'M' characters, respectively.", "docstring_tokens": ["String", "returns", "a", "human", "-", "readable", "string", "representing", "the", "edit", "-", "script", "where", "Identity", "UniqueX", "UniqueY", "and", "Modified", "are", "represented", "by", "the", ".", "X", "Y", "and", "M", "characters", "respectively", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/internal/diff/diff.go#L35-L52", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/internal/diff/diff.go", "func_name": "stats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stats returns a histogram of the number of each type of edit operation.", "docstring_tokens": ["stats", "returns", "a", "histogram", "of", "the", "number", "of", "each", "type", "of", "edit", "operation", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/internal/diff/diff.go#L55-L71", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/internal/diff/diff.go", "func_name": "connect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// connect appends any necessary Identity, Modified, UniqueX, or UniqueY types\n// to the edit-script to connect p.point to dst.", "docstring_tokens": ["connect", "appends", "any", "necessary", "Identity", "Modified", "UniqueX", "or", "UniqueY", "types", "to", "the", "edit", "-", "script", "to", "connect", "p", ".", "point", "to", "dst", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/internal/diff/diff.go#L304-L346", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/cmpopts/equate.go", "func_name": "EquateNaNs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EquateNaNs returns a Comparer option that determines float32 and float64\n// NaN values to be equal.\n//\n// EquateNaNs can be used in conjunction with EquateApprox.", "docstring_tokens": ["EquateNaNs", "returns", "a", "Comparer", "option", "that", "determines", "float32", "and", "float64", "NaN", "values", "to", "be", "equal", ".", "EquateNaNs", "can", "be", "used", "in", "conjunction", "with", "EquateApprox", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/cmpopts/equate.go#L77-L82", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/path.go", "func_name": "Index", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Index returns the ith step in the Path and supports negative indexing.\n// A negative index starts counting from the tail of the Path such that -1\n// refers to the last step, -2 refers to the second-to-last step, and so on.\n// If index is invalid, this returns a non-nil PathStep that reports a nil Type.", "docstring_tokens": ["Index", "returns", "the", "ith", "step", "in", "the", "Path", "and", "supports", "negative", "indexing", ".", "A", "negative", "index", "starts", "counting", "from", "the", "tail", "of", "the", "Path", "such", "that", "-", "1", "refers", "to", "the", "last", "step", "-", "2", "refers", "to", "the", "second", "-", "to", "-", "last", "step", "and", "so", "on", ".", "If", "index", "is", "invalid", "this", "returns", "a", "non", "-", "nil", "PathStep", "that", "reports", "a", "nil", "Type", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/path.go#L81-L89", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/path.go", "func_name": "Key", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Key is the index key; it may return -1 if in a split state", "docstring_tokens": ["Key", "is", "the", "index", "key", ";", "it", "may", "return", "-", "1", "if", "in", "a", "split", "state"], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/path.go#L231-L236", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/report.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String provides a full report of the differences detected as a structured\n// literal in pseudo-Go syntax. String may only be called after the entire tree\n// has been traversed.", "docstring_tokens": ["String", "provides", "a", "full", "report", "of", "the", "differences", "detected", "as", "a", "structured", "literal", "in", "pseudo", "-", "Go", "syntax", ".", "String", "may", "only", "be", "called", "after", "the", "entire", "tree", "has", "been", "traversed", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/report.go#L39-L45", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/report_reflect.go", "func_name": "FormatType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatType prints the type as if it were wrapping s.\n// This may return s as-is depending on the current type and TypeMode mode.", "docstring_tokens": ["FormatType", "prints", "the", "type", "as", "if", "it", "were", "wrapping", "s", ".", "This", "may", "return", "s", "as", "-", "is", "depending", "on", "the", "current", "type", "and", "TypeMode", "mode", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/report_reflect.go#L35-L73", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/report_reflect.go", "func_name": "formatMapKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// formatMapKey formats v as if it were a map key.\n// The result is guaranteed to be a single line.", "docstring_tokens": ["formatMapKey", "formats", "v", "as", "if", "it", "were", "a", "map", "key", ".", "The", "result", "is", "guaranteed", "to", "be", "a", "single", "line", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/report_reflect.go#L208-L215", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/report_reflect.go", "func_name": "formatString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// formatString prints s as a double-quoted or backtick-quoted string.", "docstring_tokens": ["formatString", "prints", "s", "as", "a", "double", "-", "quoted", "or", "backtick", "-", "quoted", "string", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/report_reflect.go#L218-L235", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/report_reflect.go", "func_name": "formatHex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// formatHex prints u as a hexadecimal integer in Go notation.", "docstring_tokens": ["formatHex", "prints", "u", "as", "a", "hexadecimal", "integer", "in", "Go", "notation", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/report_reflect.go#L238-L259", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/report_reflect.go", "func_name": "formatPointer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// formatPointer prints the address of the pointer.", "docstring_tokens": ["formatPointer", "prints", "the", "address", "of", "the", "pointer", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/report_reflect.go#L262-L268", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/report_reflect.go", "func_name": "Visit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Visit inserts pointer v into the visited map and reports whether it had\n// already been visited before.", "docstring_tokens": ["Visit", "inserts", "pointer", "v", "into", "the", "visited", "map", "and", "reports", "whether", "it", "had", "already", "been", "visited", "before", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/report_reflect.go#L274-L279", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/export_unsafe.go", "func_name": "retrieveUnexportedField", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// retrieveUnexportedField uses unsafe to forcibly retrieve any field from\n// a struct such that the value has read-write permissions.\n//\n// The parent struct, v, must be addressable, while f must be a StructField\n// describing the field to retrieve.", "docstring_tokens": ["retrieveUnexportedField", "uses", "unsafe", "to", "forcibly", "retrieve", "any", "field", "from", "a", "struct", "such", "that", "the", "value", "has", "read", "-", "write", "permissions", ".", "The", "parent", "struct", "v", "must", "be", "addressable", "while", "f", "must", "be", "a", "StructField", "describing", "the", "field", "to", "retrieve", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/export_unsafe.go#L21-L23", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/cmpopts/struct_filter.go", "func_name": "insert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// insert inserts a sequence of field accesses into the tree.", "docstring_tokens": ["insert", "inserts", "a", "sequence", "of", "field", "accesses", "into", "the", "tree", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/cmpopts/struct_filter.go#L95-L106", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/cmpopts/struct_filter.go", "func_name": "matchPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// matchPrefix reports whether any selector in the fieldTree matches\n// the start of path p.", "docstring_tokens": ["matchPrefix", "reports", "whether", "any", "selector", "in", "the", "fieldTree", "matches", "the", "start", "of", "path", "p", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/cmpopts/struct_filter.go#L110-L127", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/cmpopts/struct_filter.go", "func_name": "canonicalName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// canonicalName returns a list of identifiers where any struct field access\n// through an embedded field is expanded to include the names of the embedded\n// types themselves.\n//\n// For example, suppose field \"Foo\" is not directly in the parent struct,\n// but actually from an embedded struct of type \"Bar\". Then, the canonical name\n// of \"Foo\" is actually \"Bar.Foo\".\n//\n// Suppose field \"Foo\" is not directly in the parent struct, but actually\n// a field in two different embedded structs of types \"Bar\" and \"Baz\".\n// Then the selector \"Foo\" causes a panic since it is ambiguous which one it\n// refers to. The user must specify either \"Bar.Foo\" or \"Baz.Foo\".", "docstring_tokens": ["canonicalName", "returns", "a", "list", "of", "identifiers", "where", "any", "struct", "field", "access", "through", "an", "embedded", "field", "is", "expanded", "to", "include", "the", "names", "of", "the", "embedded", "types", "themselves", ".", "For", "example", "suppose", "field", "Foo", "is", "not", "directly", "in", "the", "parent", "struct", "but", "actually", "from", "an", "embedded", "struct", "of", "type", "Bar", ".", "Then", "the", "canonical", "name", "of", "Foo", "is", "actually", "Bar", ".", "Foo", ".", "Suppose", "field", "Foo", "is", "not", "directly", "in", "the", "parent", "struct", "but", "actually", "a", "field", "in", "two", "different", "embedded", "structs", "of", "types", "Bar", "and", "Baz", ".", "Then", "the", "selector", "Foo", "causes", "a", "panic", "since", "it", "is", "ambiguous", "which", "one", "it", "refers", "to", ".", "The", "user", "must", "specify", "either", "Bar", ".", "Foo", "or", "Baz", ".", "Foo", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/cmpopts/struct_filter.go#L141-L182", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/options.go", "func_name": "FilterPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FilterPath returns a new Option where opt is only evaluated if filter f\n// returns true for the current Path in the value tree.\n//\n// This filter is called even if a slice element or map entry is missing and\n// provides an opportunity to ignore such cases. The filter function must be\n// symmetric such that the filter result is identical regardless of whether the\n// missing value is from x or y.\n//\n// The option passed in may be an Ignore, Transformer, Comparer, Options, or\n// a previously filtered Option.", "docstring_tokens": ["FilterPath", "returns", "a", "new", "Option", "where", "opt", "is", "only", "evaluated", "if", "filter", "f", "returns", "true", "for", "the", "current", "Path", "in", "the", "value", "tree", ".", "This", "filter", "is", "called", "even", "if", "a", "slice", "element", "or", "map", "entry", "is", "missing", "and", "provides", "an", "opportunity", "to", "ignore", "such", "cases", ".", "The", "filter", "function", "must", "be", "symmetric", "such", "that", "the", "filter", "result", "is", "identical", "regardless", "of", "whether", "the", "missing", "value", "is", "from", "x", "or", "y", ".", "The", "option", "passed", "in", "may", "be", "an", "Ignore", "Transformer", "Comparer", "Options", "or", "a", "previously", "filtered", "Option", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/options.go#L116-L124", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/options.go", "func_name": "normalizeOption", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// normalizeOption normalizes the input options such that all Options groups\n// are flattened and groups with a single element are reduced to that element.\n// Only coreOptions and Options containing coreOptions are allowed.", "docstring_tokens": ["normalizeOption", "normalizes", "the", "input", "options", "such", "that", "all", "Options", "groups", "are", "flattened", "and", "groups", "with", "a", "single", "element", "are", "reduced", "to", "that", "element", ".", "Only", "coreOptions", "and", "Options", "containing", "coreOptions", "are", "allowed", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/options.go#L497-L506", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/options.go", "func_name": "flattenOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flattenOptions copies all options in src to dst as a flat list.\n// Only coreOptions and Options containing coreOptions are allowed.", "docstring_tokens": ["flattenOptions", "copies", "all", "options", "in", "src", "to", "dst", "as", "a", "flat", "list", ".", "Only", "coreOptions", "and", "Options", "containing", "coreOptions", "are", "allowed", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/options.go#L510-L524", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/report_slices.go", "func_name": "CanFormatDiffSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CanFormatDiffSlice reports whether we support custom formatting for nodes\n// that are slices of primitive kinds or strings.", "docstring_tokens": ["CanFormatDiffSlice", "reports", "whether", "we", "support", "custom", "formatting", "for", "nodes", "that", "are", "slices", "of", "primitive", "kinds", "or", "strings", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/report_slices.go#L20-L57", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/report_slices.go", "func_name": "formatASCII", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// formatASCII formats s as an ASCII string.\n// This is useful for printing binary strings in a semi-legible way.", "docstring_tokens": ["formatASCII", "formats", "s", "as", "an", "ASCII", "string", ".", "This", "is", "useful", "for", "printing", "binary", "strings", "in", "a", "semi", "-", "legible", "way", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/report_slices.go#L214-L222", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/report_slices.go", "func_name": "coalesceAdjacentEdits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// coalesceAdjacentEdits coalesces the list of edits into groups of adjacent\n// equal or unequal counts.", "docstring_tokens": ["coalesceAdjacentEdits", "coalesces", "the", "list", "of", "edits", "into", "groups", "of", "adjacent", "equal", "or", "unequal", "counts", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/report_slices.go#L287-L309", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/internal/value/sort.go", "func_name": "SortKeys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SortKeys sorts a list of map keys, deduplicating keys if necessary.\n// The type of each value must be comparable.", "docstring_tokens": ["SortKeys", "sorts", "a", "list", "of", "map", "keys", "deduplicating", "keys", "if", "necessary", ".", "The", "type", "of", "each", "value", "must", "be", "comparable", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/internal/value/sort.go#L16-L32", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/report_compare.go", "func_name": "FormatDiff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatDiff converts a valueNode tree into a textNode tree, where the later\n// is a textual representation of the differences detected in the former.", "docstring_tokens": ["FormatDiff", "converts", "a", "valueNode", "tree", "into", "a", "textNode", "tree", "where", "the", "later", "is", "a", "textual", "representation", "of", "the", "differences", "detected", "in", "the", "former", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/report_compare.go#L77-L139", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/report_compare.go", "func_name": "coalesceAdjacentRecords", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// coalesceAdjacentRecords coalesces the list of records into groups of\n// adjacent equal, or unequal counts.", "docstring_tokens": ["coalesceAdjacentRecords", "coalesces", "the", "list", "of", "records", "into", "groups", "of", "adjacent", "equal", "or", "unequal", "counts", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/report_compare.go#L272-L296", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/compare.go", "func_name": "Diff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Diff returns a human-readable report of the differences between two values.\n// It returns an empty string if and only if Equal returns true for the same\n// input values and options.\n//\n// The output is displayed as a literal in pseudo-Go syntax.\n// At the start of each line, a \"-\" prefix indicates an element removed from x,\n// a \"+\" prefix to indicates an element added to y, and the lack of a prefix\n// indicates an element common to both x and y. If possible, the output\n// uses fmt.Stringer.String or error.Error methods to produce more humanly\n// readable outputs. In such cases, the string is prefixed with either an\n// 's' or 'e' character, respectively, to indicate that the method was called.\n//\n// Do not depend on this output being stable. If you need the ability to\n// programmatically interpret the difference, consider using a custom Reporter.", "docstring_tokens": ["Diff", "returns", "a", "human", "-", "readable", "report", "of", "the", "differences", "between", "two", "values", ".", "It", "returns", "an", "empty", "string", "if", "and", "only", "if", "Equal", "returns", "true", "for", "the", "same", "input", "values", "and", "options", ".", "The", "output", "is", "displayed", "as", "a", "literal", "in", "pseudo", "-", "Go", "syntax", ".", "At", "the", "start", "of", "each", "line", "a", "-", "prefix", "indicates", "an", "element", "removed", "from", "x", "a", "+", "prefix", "to", "indicates", "an", "element", "added", "to", "y", "and", "the", "lack", "of", "a", "prefix", "indicates", "an", "element", "common", "to", "both", "x", "and", "y", ".", "If", "possible", "the", "output", "uses", "fmt", ".", "Stringer", ".", "String", "or", "error", ".", "Error", "methods", "to", "produce", "more", "humanly", "readable", "outputs", ".", "In", "such", "cases", "the", "string", "is", "prefixed", "with", "either", "an", "s", "or", "e", "character", "respectively", "to", "indicate", "that", "the", "method", "was", "called", ".", "Do", "not", "depend", "on", "this", "output", "being", "stable", ".", "If", "you", "need", "the", "ability", "to", "programmatically", "interpret", "the", "difference", "consider", "using", "a", "custom", "Reporter", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/compare.go#L125-L133", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/compare.go", "func_name": "statelessCompare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// statelessCompare compares two values and returns the result.\n// This function is stateless in that it does not alter the current result,\n// or output to any registered reporters.", "docstring_tokens": ["statelessCompare", "compares", "two", "values", "and", "returns", "the", "result", ".", "This", "function", "is", "stateless", "in", "that", "it", "does", "not", "alter", "the", "current", "result", "or", "output", "to", "any", "registered", "reporters", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/compare.go#L194-L207", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/compare.go", "func_name": "sanitizeValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sanitizeValue converts nil interfaces of type T to those of type R,\n// assuming that T is assignable to R.\n// Otherwise, it returns the input value as is.", "docstring_tokens": ["sanitizeValue", "converts", "nil", "interfaces", "of", "type", "T", "to", "those", "of", "type", "R", "assuming", "that", "T", "is", "assignable", "to", "R", ".", "Otherwise", "it", "returns", "the", "input", "value", "as", "is", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/compare.go#L344-L352", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/compare.go", "func_name": "Check", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check scans the Path for any recursive transformers and panics when any\n// recursive transformers are detected. Note that the presence of a\n// recursive Transformer does not necessarily imply an infinite cycle.\n// As such, this check only activates after some minimal number of path steps.", "docstring_tokens": ["Check", "scans", "the", "Path", "for", "any", "recursive", "transformers", "and", "panics", "when", "any", "recursive", "transformers", "are", "detected", ".", "Note", "that", "the", "presence", "of", "a", "recursive", "Transformer", "does", "not", "necessarily", "imply", "an", "infinite", "cycle", ".", "As", "such", "this", "check", "only", "activates", "after", "some", "minimal", "number", "of", "path", "steps", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/compare.go#L552-L581", "partition": "test"} +{"repo": "google/go-cmp", "path": "cmp/compare.go", "func_name": "makeAddressable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeAddressable returns a value that is always addressable.\n// It returns the input verbatim if it is already addressable,\n// otherwise it creates a new value and returns an addressable copy.", "docstring_tokens": ["makeAddressable", "returns", "a", "value", "that", "is", "always", "addressable", ".", "It", "returns", "the", "input", "verbatim", "if", "it", "is", "already", "addressable", "otherwise", "it", "creates", "a", "new", "value", "and", "returns", "an", "addressable", "copy", "."], "sha": "6f77996f0c42f7b84e5a2b252227263f93432e9b", "url": "https://github.com/google/go-cmp/blob/6f77996f0c42f7b84e5a2b252227263f93432e9b/cmp/compare.go#L609-L616", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "log/field.go", "func_name": "Marshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Marshal passes a Field instance through to the appropriate\n// field-type-specific method of an Encoder.", "docstring_tokens": ["Marshal", "passes", "a", "Field", "instance", "through", "to", "the", "appropriate", "field", "-", "type", "-", "specific", "method", "of", "an", "Encoder", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/log/field.go#L196-L229", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "log/field.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a string representation of the key and value.", "docstring_tokens": ["String", "returns", "a", "string", "representation", "of", "the", "key", "and", "value", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/log/field.go#L267-L269", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "tracer.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set applies the tag to an existing Span.", "docstring_tokens": ["Set", "applies", "the", "tag", "to", "an", "existing", "Span", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/tracer.go#L302-L304", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/propagation.go", "func_name": "Inject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Inject implements the Injector interface", "docstring_tokens": ["Inject", "implements", "the", "Injector", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/propagation.go#L47-L65", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/propagation.go", "func_name": "Extract", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Extract implements the Extractor interface", "docstring_tokens": ["Extract", "implements", "the", "Extractor", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/propagation.go#L68-L120", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "span.go", "func_name": "ToLogRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToLogRecord converts a deprecated LogData to a non-deprecated LogRecord", "docstring_tokens": ["ToLogRecord", "converts", "a", "deprecated", "LogData", "to", "a", "non", "-", "deprecated", "LogRecord"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/span.go#L168-L189", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mocktracer.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a MockTracer opentracing.Tracer implementation that's intended\n// to facilitate tests of OpenTracing instrumentation.", "docstring_tokens": ["New", "returns", "a", "MockTracer", "opentracing", ".", "Tracer", "implementation", "that", "s", "intended", "to", "facilitate", "tests", "of", "OpenTracing", "instrumentation", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mocktracer.go#L11-L28", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mocktracer.go", "func_name": "StartSpan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartSpan belongs to the Tracer interface.", "docstring_tokens": ["StartSpan", "belongs", "to", "the", "Tracer", "interface", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mocktracer.go#L61-L67", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mocktracer.go", "func_name": "RegisterInjector", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterInjector registers injector for given format", "docstring_tokens": ["RegisterInjector", "registers", "injector", "for", "given", "format"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mocktracer.go#L70-L72", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mocktracer.go", "func_name": "RegisterExtractor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterExtractor registers extractor for given format", "docstring_tokens": ["RegisterExtractor", "registers", "extractor", "for", "given", "format"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mocktracer.go#L75-L77", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mocktracer.go", "func_name": "Inject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Inject belongs to the Tracer interface.", "docstring_tokens": ["Inject", "belongs", "to", "the", "Tracer", "interface", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mocktracer.go#L80-L90", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mocktracer.go", "func_name": "Extract", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Extract belongs to the Tracer interface.", "docstring_tokens": ["Extract", "belongs", "to", "the", "Tracer", "interface", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mocktracer.go#L93-L99", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "gocontext.go", "func_name": "ContextWithSpan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ContextWithSpan returns a new `context.Context` that holds a reference to\n// `span`'s SpanContext.", "docstring_tokens": ["ContextWithSpan", "returns", "a", "new", "context", ".", "Context", "that", "holds", "a", "reference", "to", "span", "s", "SpanContext", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/gocontext.go#L11-L13", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "ext/tags.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set adds a uint32 tag to the `span`", "docstring_tokens": ["Set", "adds", "a", "uint32", "tag", "to", "the", "span"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/ext/tags.go#L178-L180", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "ext/tags.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set adds a uint16 tag to the `span`", "docstring_tokens": ["Set", "adds", "a", "uint16", "tag", "to", "the", "span"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/ext/tags.go#L187-L189", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "ext/tags.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds a bool tag to the `span`", "docstring_tokens": ["Add", "adds", "a", "bool", "tag", "to", "the", "span"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/ext/tags.go#L196-L198", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "ext/tags.go", "func_name": "SetString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetString records IP v4 host address of the peer as a .-separated tuple to the `span`. E.g., \"127.0.0.1\"", "docstring_tokens": ["SetString", "records", "IP", "v4", "host", "address", "of", "the", "peer", "as", "a", ".", "-", "separated", "tuple", "to", "the", "span", ".", "E", ".", "g", ".", "127", ".", "0", ".", "0", ".", "1"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/ext/tags.go#L208-L210", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mocklogrecord.go", "func_name": "EmitString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EmitString belongs to the log.Encoder interface", "docstring_tokens": ["EmitString", "belongs", "to", "the", "log", ".", "Encoder", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mocklogrecord.go#L29-L33", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mocklogrecord.go", "func_name": "EmitLazyLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EmitLazyLogger belongs to the log.Encoder interface", "docstring_tokens": ["EmitLazyLogger", "belongs", "to", "the", "log", ".", "Encoder", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mocklogrecord.go#L99-L105", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "harness/api_checkers.go", "func_name": "RunAPIChecks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunAPIChecks runs a test suite to check a Tracer against the OpenTracing API.\n// It is provided a function that will be executed to create and destroy a tracer for each test\n// in the suite, and the given APICheckOption functional options `opts`.", "docstring_tokens": ["RunAPIChecks", "runs", "a", "test", "suite", "to", "check", "a", "Tracer", "against", "the", "OpenTracing", "API", ".", "It", "is", "provided", "a", "function", "that", "will", "be", "executed", "to", "create", "and", "destroy", "a", "tracer", "for", "each", "test", "in", "the", "suite", "and", "the", "given", "APICheckOption", "functional", "options", "opts", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/harness/api_checkers.go#L63-L73", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "harness/api_checkers.go", "func_name": "CheckBaggageValues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckBaggageValues returns an option that sets whether to check for propagation of baggage values.", "docstring_tokens": ["CheckBaggageValues", "returns", "an", "option", "that", "sets", "whether", "to", "check", "for", "propagation", "of", "baggage", "values", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/harness/api_checkers.go#L79-L83", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "harness/api_checkers.go", "func_name": "CheckExtract", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckExtract returns an option that sets whether to check if extracting contexts from carriers works.", "docstring_tokens": ["CheckExtract", "returns", "an", "option", "that", "sets", "whether", "to", "check", "if", "extracting", "contexts", "from", "carriers", "works", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/harness/api_checkers.go#L86-L90", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "harness/api_checkers.go", "func_name": "CheckInject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckInject returns an option that sets whether to check if injecting contexts works.", "docstring_tokens": ["CheckInject", "returns", "an", "option", "that", "sets", "whether", "to", "check", "if", "injecting", "contexts", "works", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/harness/api_checkers.go#L93-L97", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "harness/api_checkers.go", "func_name": "CheckEverything", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckEverything returns an option that enables all API checks.", "docstring_tokens": ["CheckEverything", "returns", "an", "option", "that", "enables", "all", "API", "checks", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/harness/api_checkers.go#L100-L106", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "harness/api_checkers.go", "func_name": "UseProbe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UseProbe returns an option that specifies an APICheckProbe implementation to use.", "docstring_tokens": ["UseProbe", "returns", "an", "option", "that", "specifies", "an", "APICheckProbe", "implementation", "to", "use", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/harness/api_checkers.go#L109-L113", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "WithBaggageItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBaggageItem creates a new context with an extra baggage item.", "docstring_tokens": ["WithBaggageItem", "creates", "a", "new", "context", "with", "an", "extra", "baggage", "item", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L44-L57", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "Tags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tags returns a copy of tags accumulated by the span so far", "docstring_tokens": ["Tags", "returns", "a", "copy", "of", "tags", "accumulated", "by", "the", "span", "so", "far"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L110-L118", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "Tag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tag returns a single tag", "docstring_tokens": ["Tag", "returns", "a", "single", "tag"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L121-L125", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "Logs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Logs returns a copy of logs accumulated in the span so far", "docstring_tokens": ["Logs", "returns", "a", "copy", "of", "logs", "accumulated", "in", "the", "span", "so", "far"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L128-L134", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "Context", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Context belongs to the Span interface", "docstring_tokens": ["Context", "belongs", "to", "the", "Span", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L137-L141", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "SetTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTag belongs to the Span interface", "docstring_tokens": ["SetTag", "belongs", "to", "the", "Span", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L144-L159", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "SetBaggageItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBaggageItem belongs to the Span interface", "docstring_tokens": ["SetBaggageItem", "belongs", "to", "the", "Span", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L162-L167", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "BaggageItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BaggageItem belongs to the Span interface", "docstring_tokens": ["BaggageItem", "belongs", "to", "the", "Span", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L170-L174", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "Finish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Finish belongs to the Span interface", "docstring_tokens": ["Finish", "belongs", "to", "the", "Span", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L177-L182", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "FinishWithOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FinishWithOptions belongs to the Span interface", "docstring_tokens": ["FinishWithOptions", "belongs", "to", "the", "Span", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L185-L209", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String allows printing span for debugging", "docstring_tokens": ["String", "allows", "printing", "span", "for", "debugging"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L212-L217", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "LogFields", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogFields belongs to the Span interface", "docstring_tokens": ["LogFields", "belongs", "to", "the", "Span", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L220-L222", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "logFieldsWithTimestamp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// The caller MUST NOT hold s.Lock", "docstring_tokens": ["The", "caller", "MUST", "NOT", "hold", "s", ".", "Lock"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L225-L238", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "LogKV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogKV belongs to the Span interface.\n//\n// This implementations coerces all \"values\" to strings, though that is not\n// something all implementations need to do. Indeed, a motivated person can and\n// probably should have this do a typed switch on the values.", "docstring_tokens": ["LogKV", "belongs", "to", "the", "Span", "interface", ".", "This", "implementations", "coerces", "all", "values", "to", "strings", "though", "that", "is", "not", "something", "all", "implementations", "need", "to", "do", ".", "Indeed", "a", "motivated", "person", "can", "and", "probably", "should", "have", "this", "do", "a", "typed", "switch", "on", "the", "values", "."], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L245-L256", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "LogEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogEvent belongs to the Span interface", "docstring_tokens": ["LogEvent", "belongs", "to", "the", "Span", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L259-L261", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "LogEventWithPayload", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogEventWithPayload belongs to the Span interface", "docstring_tokens": ["LogEventWithPayload", "belongs", "to", "the", "Span", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L264-L266", "partition": "test"} +{"repo": "opentracing/opentracing-go", "path": "mocktracer/mockspan.go", "func_name": "SetOperationName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetOperationName belongs to the Span interface", "docstring_tokens": ["SetOperationName", "belongs", "to", "the", "Span", "interface"], "sha": "659c90643e714681897ec2521c60567dd21da733", "url": "https://github.com/opentracing/opentracing-go/blob/659c90643e714681897ec2521c60567dd21da733/mocktracer/mockspan.go#L274-L279", "partition": "test"} +{"repo": "containers/image", "path": "docker/lookaside.go", "func_name": "registriesDirPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// registriesDirPath returns a path to registries.d", "docstring_tokens": ["registriesDirPath", "returns", "a", "path", "to", "registries", ".", "d"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/lookaside.go#L77-L87", "partition": "test"} +{"repo": "containers/image", "path": "docker/lookaside.go", "func_name": "loadAndMergeConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loadAndMergeConfig loads configuration files in dirPath", "docstring_tokens": ["loadAndMergeConfig", "loads", "configuration", "files", "in", "dirPath"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/lookaside.go#L90-L142", "partition": "test"} +{"repo": "containers/image", "path": "openshift/openshift_transport.go", "func_name": "ParseReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseReference converts a string, which should not start with the ImageTransport.Name prefix, into an OpenShift ImageReference.", "docstring_tokens": ["ParseReference", "converts", "a", "string", "which", "should", "not", "start", "with", "the", "ImageTransport", ".", "Name", "prefix", "into", "an", "OpenShift", "ImageReference", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/openshift/openshift_transport.go#L59-L69", "partition": "test"} +{"repo": "containers/image", "path": "openshift/openshift_transport.go", "func_name": "NewReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReference returns an OpenShift reference for a reference.NamedTagged", "docstring_tokens": ["NewReference", "returns", "an", "OpenShift", "reference", "for", "a", "reference", ".", "NamedTagged"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/openshift/openshift_transport.go#L72-L83", "partition": "test"} +{"repo": "containers/image", "path": "docker/docker_client.go", "func_name": "CheckAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckAuth validates the credentials by attempting to log into the registry\n// returns an error if an error occurred while making the http request or the status code received was 401", "docstring_tokens": ["CheckAuth", "validates", "the", "credentials", "by", "attempting", "to", "log", "into", "the", "registry", "returns", "an", "error", "if", "an", "error", "occurred", "while", "making", "the", "http", "request", "or", "the", "status", "code", "received", "was", "401"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/docker_client.go#L270-L292", "partition": "test"} +{"repo": "containers/image", "path": "docker/docker_client.go", "func_name": "doHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// doHttp uses the clients internal TLS configuration for doing the\n// provided HTTP request. It returns the response and an error on failure.", "docstring_tokens": ["doHttp", "uses", "the", "clients", "internal", "TLS", "configuration", "for", "doing", "the", "provided", "HTTP", "request", ".", "It", "returns", "the", "response", "and", "an", "error", "on", "failure", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/docker_client.go#L449-L454", "partition": "test"} +{"repo": "containers/image", "path": "docker/docker_client.go", "func_name": "detectPropertiesHelper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// detectPropertiesHelper performs the work of detectProperties which executes\n// it at most once.", "docstring_tokens": ["detectPropertiesHelper", "performs", "the", "work", "of", "detectProperties", "which", "executes", "it", "at", "most", "once", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/docker_client.go#L560-L621", "partition": "test"} +{"repo": "containers/image", "path": "docker/docker_client.go", "func_name": "detectProperties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// detectProperties detects various properties of the registry.\n// See the dockerClient documentation for members which are affected by this.", "docstring_tokens": ["detectProperties", "detects", "various", "properties", "of", "the", "registry", ".", "See", "the", "dockerClient", "documentation", "for", "members", "which", "are", "affected", "by", "this", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/docker_client.go#L625-L628", "partition": "test"} +{"repo": "containers/image", "path": "docker/docker_client.go", "func_name": "getExtensionsSignatures", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getExtensionsSignatures returns signatures from the X-Registry-Supports-Signatures API extension,\n// using the original data structures.", "docstring_tokens": ["getExtensionsSignatures", "returns", "signatures", "from", "the", "X", "-", "Registry", "-", "Supports", "-", "Signatures", "API", "extension", "using", "the", "original", "data", "structures", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/docker_client.go#L632-L652", "partition": "test"} +{"repo": "containers/image", "path": "pkg/tlsclientconfig/tlsclientconfig.go", "func_name": "NewTransport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTransport Creates a default transport", "docstring_tokens": ["NewTransport", "Creates", "a", "default", "transport"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/tlsclientconfig/tlsclientconfig.go#L94-L112", "partition": "test"} +{"repo": "containers/image", "path": "pkg/sysregistries/system_registries.go", "func_name": "readRegistryConf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reads the global registry file from the filesystem. Returns\n// a byte array", "docstring_tokens": ["Reads", "the", "global", "registry", "file", "from", "the", "filesystem", ".", "Returns", "a", "byte", "array"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/sysregistries/system_registries.go#L44-L46", "partition": "test"} +{"repo": "containers/image", "path": "pkg/sysregistries/system_registries.go", "func_name": "GetRegistries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRegistries returns an array of strings that contain the names\n// of the registries as defined in the system-wide\n// registries file. it returns an empty array if none are\n// defined", "docstring_tokens": ["GetRegistries", "returns", "an", "array", "of", "strings", "that", "contain", "the", "names", "of", "the", "registries", "as", "defined", "in", "the", "system", "-", "wide", "registries", "file", ".", "it", "returns", "an", "empty", "array", "if", "none", "are", "defined"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/sysregistries/system_registries.go#L72-L78", "partition": "test"} +{"repo": "containers/image", "path": "pkg/sysregistries/system_registries.go", "func_name": "GetInsecureRegistries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInsecureRegistries returns an array of strings that contain the names\n// of the insecure registries as defined in the system-wide\n// registries file. it returns an empty array if none are\n// defined", "docstring_tokens": ["GetInsecureRegistries", "returns", "an", "array", "of", "strings", "that", "contain", "the", "names", "of", "the", "insecure", "registries", "as", "defined", "in", "the", "system", "-", "wide", "registries", "file", ".", "it", "returns", "an", "empty", "array", "if", "none", "are", "defined"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/sysregistries/system_registries.go#L84-L90", "partition": "test"} +{"repo": "containers/image", "path": "pkg/sysregistries/system_registries.go", "func_name": "RegistriesConfPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegistriesConfPath is the path to the system-wide registry configuration file", "docstring_tokens": ["RegistriesConfPath", "is", "the", "path", "to", "the", "system", "-", "wide", "registry", "configuration", "file"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/sysregistries/system_registries.go#L93-L103", "partition": "test"} +{"repo": "containers/image", "path": "types/types.go", "func_name": "NewOptionalBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOptionalBool converts the input bool into either OptionalBoolTrue or\n// OptionalBoolFalse. The function is meant to avoid boilerplate code of users.", "docstring_tokens": ["NewOptionalBool", "converts", "the", "input", "bool", "into", "either", "OptionalBoolTrue", "or", "OptionalBoolFalse", ".", "The", "function", "is", "meant", "to", "avoid", "boilerplate", "code", "of", "users", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/types/types.go#L425-L431", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_eval.go", "func_name": "changeState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// changeContextState changes pc.state, or fails if the state is unexpected", "docstring_tokens": ["changeContextState", "changes", "pc", ".", "state", "or", "fails", "if", "the", "state", "is", "unexpected"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_eval.go#L97-L103", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_eval.go", "func_name": "Destroy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Destroy should be called when the user of the context is done with it.", "docstring_tokens": ["Destroy", "should", "be", "called", "when", "the", "user", "of", "the", "context", "is", "done", "with", "it", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_eval.go#L120-L126", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_eval.go", "func_name": "policyIdentityLogName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// policyIdentityLogName returns a string description of the image identity for policy purposes.\n// ONLY use this for log messages, not for any decisions!", "docstring_tokens": ["policyIdentityLogName", "returns", "a", "string", "description", "of", "the", "image", "identity", "for", "policy", "purposes", ".", "ONLY", "use", "this", "for", "log", "messages", "not", "for", "any", "decisions!"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_eval.go#L130-L132", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_eval.go", "func_name": "requirementsForImageRef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// requirementsForImageRef selects the appropriate requirements for ref.", "docstring_tokens": ["requirementsForImageRef", "selects", "the", "appropriate", "requirements", "for", "ref", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_eval.go#L135-L163", "partition": "test"} +{"repo": "containers/image", "path": "transports/alltransports/alltransports.go", "func_name": "ParseImageName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseImageName converts a URL-like image name to a types.ImageReference.", "docstring_tokens": ["ParseImageName", "converts", "a", "URL", "-", "like", "image", "name", "to", "a", "types", ".", "ImageReference", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/transports/alltransports/alltransports.go#L24-L34", "partition": "test"} +{"repo": "containers/image", "path": "manifest/oci.go", "func_name": "BlobInfoFromOCI1Descriptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BlobInfoFromOCI1Descriptor returns a types.BlobInfo based on the input OCI1 descriptor.", "docstring_tokens": ["BlobInfoFromOCI1Descriptor", "returns", "a", "types", ".", "BlobInfo", "based", "on", "the", "input", "OCI1", "descriptor", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/manifest/oci.go#L14-L22", "partition": "test"} +{"repo": "containers/image", "path": "manifest/oci.go", "func_name": "OCI1FromManifest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OCI1FromManifest creates an OCI1 manifest instance from a manifest blob.", "docstring_tokens": ["OCI1FromManifest", "creates", "an", "OCI1", "manifest", "instance", "from", "a", "manifest", "blob", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/manifest/oci.go#L31-L37", "partition": "test"} +{"repo": "containers/image", "path": "manifest/oci.go", "func_name": "OCI1FromComponents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OCI1FromComponents creates an OCI1 manifest instance from the supplied data.", "docstring_tokens": ["OCI1FromComponents", "creates", "an", "OCI1", "manifest", "instance", "from", "the", "supplied", "data", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/manifest/oci.go#L40-L48", "partition": "test"} +{"repo": "containers/image", "path": "docker/docker_transport.go", "func_name": "newReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newReference returns a dockerReference for a named reference.", "docstring_tokens": ["newReference", "returns", "a", "dockerReference", "for", "a", "named", "reference", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/docker_transport.go#L68-L86", "partition": "test"} +{"repo": "containers/image", "path": "docker/docker_transport.go", "func_name": "tagOrDigest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tagOrDigest returns a tag or digest from the reference.", "docstring_tokens": ["tagOrDigest", "returns", "a", "tag", "or", "digest", "from", "the", "reference", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/docker_transport.go#L159-L168", "partition": "test"} +{"repo": "containers/image", "path": "copy/copy.go", "func_name": "updateEmbeddedDockerReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updateEmbeddedDockerReference handles the Docker reference embedded in Docker schema1 manifests.", "docstring_tokens": ["updateEmbeddedDockerReference", "handles", "the", "Docker", "reference", "embedded", "in", "Docker", "schema1", "manifests", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/copy/copy.go#L406-L424", "partition": "test"} +{"repo": "containers/image", "path": "copy/copy.go", "func_name": "isTTY", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isTTY returns true if the io.Writer is a file and a tty.", "docstring_tokens": ["isTTY", "returns", "true", "if", "the", "io", ".", "Writer", "is", "a", "file", "and", "a", "tty", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/copy/copy.go#L427-L432", "partition": "test"} +{"repo": "containers/image", "path": "copy/copy.go", "func_name": "copyUpdatedConfigAndManifest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyUpdatedConfigAndManifest updates the image per ic.manifestUpdates, if necessary,\n// stores the resulting config and manifest to the destination, and returns the stored manifest.", "docstring_tokens": ["copyUpdatedConfigAndManifest", "updates", "the", "image", "per", "ic", ".", "manifestUpdates", "if", "necessary", "stores", "the", "resulting", "config", "and", "manifest", "to", "the", "destination", "and", "returns", "the", "stored", "manifest", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/copy/copy.go#L539-L574", "partition": "test"} +{"repo": "containers/image", "path": "copy/copy.go", "func_name": "createProgressBar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createProgressBar creates a mpb.Bar in pool. Note that if the copier's reportWriter\n// is ioutil.Discard, the progress bar's output will be discarded", "docstring_tokens": ["createProgressBar", "creates", "a", "mpb", ".", "Bar", "in", "pool", ".", "Note", "that", "if", "the", "copier", "s", "reportWriter", "is", "ioutil", ".", "Discard", "the", "progress", "bar", "s", "output", "will", "be", "discarded"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/copy/copy.go#L589-L613", "partition": "test"} +{"repo": "containers/image", "path": "copy/copy.go", "func_name": "copyConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyConfig copies config.json, if any, from src to dest.", "docstring_tokens": ["copyConfig", "copies", "config", ".", "json", "if", "any", "from", "src", "to", "dest", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/copy/copy.go#L616-L643", "partition": "test"} +{"repo": "containers/image", "path": "copy/copy.go", "func_name": "diffIDComputationGoroutine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// diffIDComputationGoroutine reads all input from layerStream, uncompresses using decompressor if necessary, and sends its digest, and status, if any, to dest.", "docstring_tokens": ["diffIDComputationGoroutine", "reads", "all", "input", "from", "layerStream", "uncompresses", "using", "decompressor", "if", "necessary", "and", "sends", "its", "digest", "and", "status", "if", "any", "to", "dest", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/copy/copy.go#L742-L751", "partition": "test"} +{"repo": "containers/image", "path": "copy/copy.go", "func_name": "computeDiffID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// computeDiffID reads all input from layerStream, uncompresses it using decompressor if necessary, and returns its digest.", "docstring_tokens": ["computeDiffID", "reads", "all", "input", "from", "layerStream", "uncompresses", "it", "using", "decompressor", "if", "necessary", "and", "returns", "its", "digest", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/copy/copy.go#L754-L765", "partition": "test"} +{"repo": "containers/image", "path": "copy/copy.go", "func_name": "compressGoroutine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// compressGoroutine reads all input from src and writes its compressed equivalent to dest.", "docstring_tokens": ["compressGoroutine", "reads", "all", "input", "from", "src", "and", "writes", "its", "compressed", "equivalent", "to", "dest", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/copy/copy.go#L893-L903", "partition": "test"} +{"repo": "containers/image", "path": "docker/daemon/client.go", "func_name": "newDockerClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDockerClient initializes a new API client based on the passed SystemContext.", "docstring_tokens": ["NewDockerClient", "initializes", "a", "new", "API", "client", "based", "on", "the", "passed", "SystemContext", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/daemon/client.go#L18-L51", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "defaultPolicyPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// defaultPolicyPath returns a path to the default policy of the system.", "docstring_tokens": ["defaultPolicyPath", "returns", "a", "path", "to", "the", "default", "policy", "of", "the", "system", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L55-L65", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "NewPolicyFromFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPolicyFromFile returns a policy configured in the specified file.", "docstring_tokens": ["NewPolicyFromFile", "returns", "a", "policy", "configured", "in", "the", "specified", "file", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L68-L78", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "NewPolicyFromBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPolicyFromBytes returns a policy parsed from the specified blob.\n// Use this function instead of calling json.Unmarshal directly.", "docstring_tokens": ["NewPolicyFromBytes", "returns", "a", "policy", "parsed", "from", "the", "specified", "blob", ".", "Use", "this", "function", "instead", "of", "calling", "json", ".", "Unmarshal", "directly", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L82-L88", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "newPolicyRequirementFromJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPolicyRequirementFromJSON parses JSON data into a PolicyRequirement implementation.", "docstring_tokens": ["newPolicyRequirementFromJSON", "parses", "JSON", "data", "into", "a", "PolicyRequirement", "implementation", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L221-L243", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "newPRSignedBy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPRSignedBy returns a new prSignedBy if parameters are valid.", "docstring_tokens": ["newPRSignedBy", "returns", "a", "new", "prSignedBy", "if", "parameters", "are", "valid", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L306-L323", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "newPRSignedByKeyPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPRSignedByKeyPath is NewPRSignedByKeyPath, except it returns the private type.", "docstring_tokens": ["newPRSignedByKeyPath", "is", "NewPRSignedByKeyPath", "except", "it", "returns", "the", "private", "type", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L326-L328", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "NewPRSignedByKeyPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPRSignedByKeyPath returns a new \"signedBy\" PolicyRequirement using a KeyPath", "docstring_tokens": ["NewPRSignedByKeyPath", "returns", "a", "new", "signedBy", "PolicyRequirement", "using", "a", "KeyPath"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L331-L333", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "newPRSignedByKeyData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPRSignedByKeyData is NewPRSignedByKeyData, except it returns the private type.", "docstring_tokens": ["newPRSignedByKeyData", "is", "NewPRSignedByKeyData", "except", "it", "returns", "the", "private", "type", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L336-L338", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "NewPRSignedByKeyData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPRSignedByKeyData returns a new \"signedBy\" PolicyRequirement using a KeyData", "docstring_tokens": ["NewPRSignedByKeyData", "returns", "a", "new", "signedBy", "PolicyRequirement", "using", "a", "KeyData"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L341-L343", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "IsValid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsValid returns true iff kt is a recognized value", "docstring_tokens": ["IsValid", "returns", "true", "iff", "kt", "is", "a", "recognized", "value"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L411-L419", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "newPRSignedBaseLayer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPRSignedBaseLayer is NewPRSignedBaseLayer, except it returns the private type.", "docstring_tokens": ["newPRSignedBaseLayer", "is", "NewPRSignedBaseLayer", "except", "it", "returns", "the", "private", "type", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L439-L447", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "newPolicyReferenceMatchFromJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPolicyReferenceMatchFromJSON parses JSON data into a PolicyReferenceMatch implementation.", "docstring_tokens": ["newPolicyReferenceMatchFromJSON", "parses", "JSON", "data", "into", "a", "PolicyReferenceMatch", "implementation", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L486-L510", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "newPRMExactReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPRMExactReference is NewPRMExactReference, except it resturns the private type.", "docstring_tokens": ["newPRMExactReference", "is", "NewPRMExactReference", "except", "it", "resturns", "the", "private", "type", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L603-L615", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_config.go", "func_name": "newPRMExactRepository", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPRMExactRepository is NewPRMExactRepository, except it resturns the private type.", "docstring_tokens": ["newPRMExactRepository", "is", "NewPRMExactRepository", "except", "it", "resturns", "the", "private", "type", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_config.go#L649-L657", "partition": "test"} +{"repo": "containers/image", "path": "storage/storage_image.go", "func_name": "newImageSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newImageSource sets up an image for reading.", "docstring_tokens": ["newImageSource", "sets", "up", "an", "image", "for", "reading", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/storage/storage_image.go#L82-L102", "partition": "test"} +{"repo": "containers/image", "path": "storage/storage_image.go", "func_name": "getBlobAndLayerID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getBlobAndLayer reads the data blob or filesystem layer which matches the digest and size, if given.", "docstring_tokens": ["getBlobAndLayer", "reads", "the", "data", "blob", "or", "filesystem", "layer", "which", "matches", "the", "digest", "and", "size", "if", "given", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/storage/storage_image.go#L131-L180", "partition": "test"} +{"repo": "containers/image", "path": "storage/storage_image.go", "func_name": "computeID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// computeID computes a recommended image ID based on information we have so far. If\n// the manifest is not of a type that we recognize, we return an empty value, indicating\n// that since we don't have a recommendation, a random ID should be used if one needs\n// to be allocated.", "docstring_tokens": ["computeID", "computes", "a", "recommended", "image", "ID", "based", "on", "information", "we", "have", "so", "far", ".", "If", "the", "manifest", "is", "not", "of", "a", "type", "that", "we", "recognize", "we", "return", "an", "empty", "value", "indicating", "that", "since", "we", "don", "t", "have", "a", "recommendation", "a", "random", "ID", "should", "be", "used", "if", "one", "needs", "to", "be", "allocated", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/storage/storage_image.go#L520-L552", "partition": "test"} +{"repo": "containers/image", "path": "storage/storage_image.go", "func_name": "PutManifest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutManifest writes the manifest to the destination.", "docstring_tokens": ["PutManifest", "writes", "the", "manifest", "to", "the", "destination", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/storage/storage_image.go#L826-L842", "partition": "test"} +{"repo": "containers/image", "path": "storage/storage_image.go", "func_name": "PutSignatures", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutSignatures records the image's signatures for committing as a single data blob.", "docstring_tokens": ["PutSignatures", "records", "the", "image", "s", "signatures", "for", "committing", "as", "a", "single", "data", "blob", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/storage/storage_image.go#L869-L882", "partition": "test"} +{"repo": "containers/image", "path": "storage/storage_image.go", "func_name": "newImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newImage creates an image that also knows its size", "docstring_tokens": ["newImage", "creates", "an", "image", "that", "also", "knows", "its", "size"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/storage/storage_image.go#L935-L949", "partition": "test"} +{"repo": "containers/image", "path": "oci/archive/oci_src.go", "func_name": "newImageSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newImageSource returns an ImageSource for reading from an existing directory.\n// newImageSource untars the file and saves it in a temp directory", "docstring_tokens": ["newImageSource", "returns", "an", "ImageSource", "for", "reading", "from", "an", "existing", "directory", ".", "newImageSource", "untars", "the", "file", "and", "saves", "it", "in", "a", "temp", "directory"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/archive/oci_src.go#L22-L38", "partition": "test"} +{"repo": "containers/image", "path": "oci/archive/oci_src.go", "func_name": "LoadManifestDescriptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadManifestDescriptor loads the manifest", "docstring_tokens": ["LoadManifestDescriptor", "loads", "the", "manifest"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/archive/oci_src.go#L41-L57", "partition": "test"} +{"repo": "containers/image", "path": "oci/archive/oci_src.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close removes resources associated with an initialized ImageSource, if any.\n// Close deletes the temporary directory at dst", "docstring_tokens": ["Close", "removes", "resources", "associated", "with", "an", "initialized", "ImageSource", "if", "any", ".", "Close", "deletes", "the", "temporary", "directory", "at", "dst"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/archive/oci_src.go#L66-L69", "partition": "test"} +{"repo": "containers/image", "path": "copy/manifest.go", "func_name": "append", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// append adds s to the end of os, only if it is not included already.", "docstring_tokens": ["append", "adds", "s", "to", "the", "end", "of", "os", "only", "if", "it", "is", "not", "included", "already", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/copy/manifest.go#L34-L39", "partition": "test"} +{"repo": "containers/image", "path": "copy/manifest.go", "func_name": "isMultiImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isMultiImage returns true if img is a list of images", "docstring_tokens": ["isMultiImage", "returns", "true", "if", "img", "is", "a", "list", "of", "images"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/copy/manifest.go#L115-L121", "partition": "test"} +{"repo": "containers/image", "path": "pkg/blobinfocache/boltdb/boltdb.go", "func_name": "lockPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lockPath obtains the pathLock for path.\n// The caller must call unlockPath eventually.", "docstring_tokens": ["lockPath", "obtains", "the", "pathLock", "for", "path", ".", "The", "caller", "must", "call", "unlockPath", "eventually", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/blobinfocache/boltdb/boltdb.go#L54-L68", "partition": "test"} +{"repo": "containers/image", "path": "pkg/blobinfocache/boltdb/boltdb.go", "func_name": "unlockPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// unlockPath releases the pathLock for path.", "docstring_tokens": ["unlockPath", "releases", "the", "pathLock", "for", "path", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/blobinfocache/boltdb/boltdb.go#L71-L84", "partition": "test"} +{"repo": "containers/image", "path": "pkg/blobinfocache/boltdb/boltdb.go", "func_name": "view", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// view returns runs the specified fn within a read-only transaction on the database.", "docstring_tokens": ["view", "returns", "runs", "the", "specified", "fn", "within", "a", "read", "-", "only", "transaction", "on", "the", "database", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/blobinfocache/boltdb/boltdb.go#L102-L125", "partition": "test"} +{"repo": "containers/image", "path": "pkg/blobinfocache/boltdb/boltdb.go", "func_name": "update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// update returns runs the specified fn within a read-write transaction on the database.", "docstring_tokens": ["update", "returns", "runs", "the", "specified", "fn", "within", "a", "read", "-", "write", "transaction", "on", "the", "database", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/blobinfocache/boltdb/boltdb.go#L128-L142", "partition": "test"} +{"repo": "containers/image", "path": "pkg/blobinfocache/boltdb/boltdb.go", "func_name": "uncompressedDigest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// uncompressedDigest implements BlobInfoCache.UncompressedDigest within the provided read-only transaction.", "docstring_tokens": ["uncompressedDigest", "implements", "BlobInfoCache", ".", "UncompressedDigest", "within", "the", "provided", "read", "-", "only", "transaction", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/blobinfocache/boltdb/boltdb.go#L145-L167", "partition": "test"} +{"repo": "containers/image", "path": "pkg/blobinfocache/boltdb/boltdb.go", "func_name": "appendReplacementCandidates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// appendReplacementCandiates creates prioritize.CandidateWithTime values for digest in scopeBucket, and returns the result of appending them to candidates.", "docstring_tokens": ["appendReplacementCandiates", "creates", "prioritize", ".", "CandidateWithTime", "values", "for", "digest", "in", "scopeBucket", "and", "returns", "the", "result", "of", "appending", "them", "to", "candidates", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/blobinfocache/boltdb/boltdb.go#L255-L275", "partition": "test"} +{"repo": "containers/image", "path": "oci/layout/oci_dest.go", "func_name": "indexExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// indexExists checks whether the index location specified in the OCI reference exists.\n// The implementation is opinionated, since in case of unexpected errors false is returned", "docstring_tokens": ["indexExists", "checks", "whether", "the", "index", "location", "specified", "in", "the", "OCI", "reference", "exists", ".", "The", "implementation", "is", "opinionated", "since", "in", "case", "of", "unexpected", "errors", "false", "is", "returned"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/layout/oci_dest.go#L297-L306", "partition": "test"} +{"repo": "containers/image", "path": "copy/sign.go", "func_name": "createSignature", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createSignature creates a new signature of manifest using keyIdentity.", "docstring_tokens": ["createSignature", "creates", "a", "new", "signature", "of", "manifest", "using", "keyIdentity", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/copy/sign.go#L10-L31", "partition": "test"} +{"repo": "containers/image", "path": "oci/layout/oci_transport.go", "func_name": "ParseReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseReference converts a string, which should not start with the ImageTransport.Name prefix, into an OCI ImageReference.", "docstring_tokens": ["ParseReference", "converts", "a", "string", "which", "should", "not", "start", "with", "the", "ImageTransport", ".", "Name", "prefix", "into", "an", "OCI", "ImageReference", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/layout/oci_transport.go#L70-L73", "partition": "test"} +{"repo": "containers/image", "path": "oci/layout/oci_transport.go", "func_name": "NewReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReference returns an OCI reference for a directory and a image.\n//\n// We do not expose an API supplying the resolvedDir; we could, but recomputing it\n// is generally cheap enough that we prefer being confident about the properties of resolvedDir.", "docstring_tokens": ["NewReference", "returns", "an", "OCI", "reference", "for", "a", "directory", "and", "a", "image", ".", "We", "do", "not", "expose", "an", "API", "supplying", "the", "resolvedDir", ";", "we", "could", "but", "recomputing", "it", "is", "generally", "cheap", "enough", "that", "we", "prefer", "being", "confident", "about", "the", "properties", "of", "resolvedDir", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/layout/oci_transport.go#L79-L94", "partition": "test"} +{"repo": "containers/image", "path": "oci/layout/oci_transport.go", "func_name": "getIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getIndex returns a pointer to the index references by this ociReference. If an error occurs opening an index nil is returned together\n// with an error.", "docstring_tokens": ["getIndex", "returns", "a", "pointer", "to", "the", "index", "references", "by", "this", "ociReference", ".", "If", "an", "error", "occurs", "opening", "an", "index", "nil", "is", "returned", "together", "with", "an", "error", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/layout/oci_transport.go#L166-L178", "partition": "test"} +{"repo": "containers/image", "path": "oci/layout/oci_transport.go", "func_name": "LoadManifestDescriptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadManifestDescriptor loads the manifest descriptor to be used to retrieve the image name\n// when pulling an image", "docstring_tokens": ["LoadManifestDescriptor", "loads", "the", "manifest", "descriptor", "to", "be", "used", "to", "retrieve", "the", "image", "name", "when", "pulling", "an", "image"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/layout/oci_transport.go#L219-L225", "partition": "test"} +{"repo": "containers/image", "path": "oci/layout/oci_transport.go", "func_name": "blobPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// blobPath returns a path for a blob within a directory using OCI image-layout conventions.", "docstring_tokens": ["blobPath", "returns", "a", "path", "for", "a", "blob", "within", "a", "directory", "using", "OCI", "image", "-", "layout", "conventions", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/layout/oci_transport.go#L255-L264", "partition": "test"} +{"repo": "containers/image", "path": "signature/docker.go", "func_name": "SignDockerManifest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SignDockerManifest returns a signature for manifest as the specified dockerReference,\n// using mech and keyIdentity.", "docstring_tokens": ["SignDockerManifest", "returns", "a", "signature", "for", "manifest", "as", "the", "specified", "dockerReference", "using", "mech", "and", "keyIdentity", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/docker.go#L15-L22", "partition": "test"} +{"repo": "containers/image", "path": "signature/docker.go", "func_name": "VerifyDockerManifestSignature", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifyDockerManifestSignature checks that unverifiedSignature uses expectedKeyIdentity to sign unverifiedManifest as expectedDockerReference,\n// using mech.", "docstring_tokens": ["VerifyDockerManifestSignature", "checks", "that", "unverifiedSignature", "uses", "expectedKeyIdentity", "to", "sign", "unverifiedManifest", "as", "expectedDockerReference", "using", "mech", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/docker.go#L26-L65", "partition": "test"} +{"repo": "containers/image", "path": "openshift/openshift.go", "func_name": "newOpenshiftClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newOpenshiftClient creates a new openshiftClient for the specified reference.", "docstring_tokens": ["newOpenshiftClient", "creates", "a", "new", "openshiftClient", "for", "the", "specified", "reference", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/openshift/openshift.go#L37-L71", "partition": "test"} +{"repo": "containers/image", "path": "openshift/openshift.go", "func_name": "doRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// doRequest performs a correctly authenticated request to a specified path, and returns response body or an error object.", "docstring_tokens": ["doRequest", "performs", "a", "correctly", "authenticated", "request", "to", "a", "specified", "path", "and", "returns", "response", "body", "or", "an", "error", "object", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/openshift/openshift.go#L74-L134", "partition": "test"} +{"repo": "containers/image", "path": "openshift/openshift.go", "func_name": "getImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getImage loads the specified image object.", "docstring_tokens": ["getImage", "loads", "the", "specified", "image", "object", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/openshift/openshift.go#L137-L150", "partition": "test"} +{"repo": "containers/image", "path": "openshift/openshift.go", "func_name": "convertDockerImageReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// convertDockerImageReference takes an image API DockerImageReference value and returns a reference we can actually use;\n// currently OpenShift stores the cluster-internal service IPs here, which are unusable from the outside.", "docstring_tokens": ["convertDockerImageReference", "takes", "an", "image", "API", "DockerImageReference", "value", "and", "returns", "a", "reference", "we", "can", "actually", "use", ";", "currently", "OpenShift", "stores", "the", "cluster", "-", "internal", "service", "IPs", "here", "which", "are", "unusable", "from", "the", "outside", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/openshift/openshift.go#L154-L160", "partition": "test"} +{"repo": "containers/image", "path": "openshift/openshift.go", "func_name": "ensureImageIsResolved", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ensureImageIsResolved sets up s.docker and s.imageStreamImageName", "docstring_tokens": ["ensureImageIsResolved", "sets", "up", "s", ".", "docker", "and", "s", ".", "imageStreamImageName"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/openshift/openshift.go#L262-L308", "partition": "test"} +{"repo": "containers/image", "path": "openshift/openshift.go", "func_name": "newImageDestination", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newImageDestination creates a new ImageDestination for the specified reference.", "docstring_tokens": ["newImageDestination", "creates", "a", "new", "ImageDestination", "for", "the", "specified", "reference", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/openshift/openshift.go#L318-L341", "partition": "test"} +{"repo": "containers/image", "path": "signature/signature.go", "func_name": "newUntrustedSignature", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newUntrustedSignature returns an untrustedSignature object with\n// the specified primary contents and appropriate metadata.", "docstring_tokens": ["newUntrustedSignature", "returns", "an", "untrustedSignature", "object", "with", "the", "specified", "primary", "contents", "and", "appropriate", "metadata", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/signature.go#L68-L79", "partition": "test"} +{"repo": "containers/image", "path": "signature/signature.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON implements the json.Marshaler interface.", "docstring_tokens": ["MarshalJSON", "implements", "the", "json", ".", "Marshaler", "interface", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/signature.go#L85-L106", "partition": "test"} +{"repo": "containers/image", "path": "signature/signature.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON implements the json.Unmarshaler interface", "docstring_tokens": ["UnmarshalJSON", "implements", "the", "json", ".", "Unmarshaler", "interface"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/signature.go#L112-L120", "partition": "test"} +{"repo": "containers/image", "path": "signature/signature.go", "func_name": "verifyAndExtractSignature", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// verifyAndExtractSignature verifies that unverifiedSignature has been signed, and that its principial components\n// match expected values, both as specified by rules, and returns it", "docstring_tokens": ["verifyAndExtractSignature", "verifies", "that", "unverifiedSignature", "has", "been", "signed", "and", "that", "its", "principial", "components", "match", "expected", "values", "both", "as", "specified", "by", "rules", "and", "returns", "it"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/signature.go#L216-L240", "partition": "test"} +{"repo": "containers/image", "path": "pkg/sysregistriesv2/system_registries_v2.go", "func_name": "RewriteReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RewriteReference will substitute the provided reference `prefix` to the\n// endpoints `location` from the `ref` and creates a new named reference from it.\n// The function errors if the newly created reference is not parsable.", "docstring_tokens": ["RewriteReference", "will", "substitute", "the", "provided", "reference", "prefix", "to", "the", "endpoints", "location", "from", "the", "ref", "and", "creates", "a", "new", "named", "reference", "from", "it", ".", "The", "function", "errors", "if", "the", "newly", "created", "reference", "is", "not", "parsable", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/sysregistriesv2/system_registries_v2.go#L41-L62", "partition": "test"} +{"repo": "containers/image", "path": "pkg/sysregistriesv2/system_registries_v2.go", "func_name": "getV1Registries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getV1Registries transforms v1 registries in the config into an array of v2\n// registries of type Registry.", "docstring_tokens": ["getV1Registries", "transforms", "v1", "registries", "in", "the", "config", "into", "an", "array", "of", "v2", "registries", "of", "type", "Registry", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/sysregistriesv2/system_registries_v2.go#L133-L189", "partition": "test"} +{"repo": "containers/image", "path": "pkg/sysregistriesv2/system_registries_v2.go", "func_name": "getConfigPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getConfigPath returns the system-registries config path if specified.\n// Otherwise, systemRegistriesConfPath is returned.", "docstring_tokens": ["getConfigPath", "returns", "the", "system", "-", "registries", "config", "path", "if", "specified", ".", "Otherwise", "systemRegistriesConfPath", "is", "returned", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/sysregistriesv2/system_registries_v2.go#L253-L263", "partition": "test"} +{"repo": "containers/image", "path": "pkg/sysregistriesv2/system_registries_v2.go", "func_name": "GetRegistries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRegistries loads and returns the registries specified in the config.\n// Note the parsed content of registry config files is cached. For reloading,\n// use `InvalidateCache` and re-call `GetRegistries`.", "docstring_tokens": ["GetRegistries", "loads", "and", "returns", "the", "registries", "specified", "in", "the", "config", ".", "Note", "the", "parsed", "content", "of", "registry", "config", "files", "is", "cached", ".", "For", "reloading", "use", "InvalidateCache", "and", "re", "-", "call", "GetRegistries", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/sysregistriesv2/system_registries_v2.go#L285-L331", "partition": "test"} +{"repo": "containers/image", "path": "pkg/sysregistriesv2/system_registries_v2.go", "func_name": "readRegistryConf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reads the global registry file from the filesystem. Returns a byte array.", "docstring_tokens": ["Reads", "the", "global", "registry", "file", "from", "the", "filesystem", ".", "Returns", "a", "byte", "array", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/sysregistriesv2/system_registries_v2.go#L405-L408", "partition": "test"} +{"repo": "containers/image", "path": "image/sourced.go", "func_name": "Manifest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Manifest overrides the UnparsedImage.Manifest to always use the fields which we have already fetched.", "docstring_tokens": ["Manifest", "overrides", "the", "UnparsedImage", ".", "Manifest", "to", "always", "use", "the", "fields", "which", "we", "have", "already", "fetched", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/image/sourced.go#L97-L99", "partition": "test"} +{"repo": "containers/image", "path": "tarball/tarball_reference.go", "func_name": "ConfigUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConfigUpdate updates the image's default configuration and adds annotations\n// which will be visible in source images created using this reference.", "docstring_tokens": ["ConfigUpdate", "updates", "the", "image", "s", "default", "configuration", "and", "adds", "annotations", "which", "will", "be", "visible", "in", "source", "images", "created", "using", "this", "reference", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/tarball/tarball_reference.go#L34-L43", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_reference_match.go", "func_name": "parseImageAndDockerReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseImageAndDockerReference converts an image and a reference string into two parsed entities, failing on any error and handling unidentified images.", "docstring_tokens": ["parseImageAndDockerReference", "converts", "an", "image", "and", "a", "reference", "string", "into", "two", "parsed", "entities", "failing", "on", "any", "error", "and", "handling", "unidentified", "images", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_reference_match.go#L14-L25", "partition": "test"} +{"repo": "containers/image", "path": "signature/policy_reference_match.go", "func_name": "parseDockerReferences", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseDockerReferences converts two reference strings into parsed entities, failing on any error", "docstring_tokens": ["parseDockerReferences", "converts", "two", "reference", "strings", "into", "parsed", "entities", "failing", "on", "any", "error"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/signature/policy_reference_match.go#L71-L81", "partition": "test"} +{"repo": "containers/image", "path": "transports/transports.go", "func_name": "ListNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListNames returns a list of non deprecated transport names.\n// Deprecated transports can be used, but are not presented to users.", "docstring_tokens": ["ListNames", "returns", "a", "list", "of", "non", "deprecated", "transport", "names", ".", "Deprecated", "transports", "can", "be", "used", "but", "are", "not", "presented", "to", "users", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/transports/transports.go#L76-L90", "partition": "test"} +{"repo": "containers/image", "path": "ostree/ostree_transport.go", "func_name": "NewReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReference returns an OSTree reference for a specified repo and image.", "docstring_tokens": ["NewReference", "returns", "an", "OSTree", "reference", "for", "a", "specified", "repo", "and", "image", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/ostree/ostree_transport.go#L89-L127", "partition": "test"} +{"repo": "containers/image", "path": "ostree/ostree_transport.go", "func_name": "signaturePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// signaturePath returns a path for a signature within a ostree using our conventions.", "docstring_tokens": ["signaturePath", "returns", "a", "path", "for", "a", "signature", "within", "a", "ostree", "using", "our", "conventions", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/ostree/ostree_transport.go#L250-L252", "partition": "test"} +{"repo": "containers/image", "path": "oci/internal/oci_util.go", "func_name": "ValidateImageName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateImageName returns nil if the image name is empty or matches the open-containers image name specs.\n// In any other case an error is returned.", "docstring_tokens": ["ValidateImageName", "returns", "nil", "if", "the", "image", "name", "is", "empty", "or", "matches", "the", "open", "-", "containers", "image", "name", "specs", ".", "In", "any", "other", "case", "an", "error", "is", "returned", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/internal/oci_util.go#L23-L33", "partition": "test"} +{"repo": "containers/image", "path": "oci/internal/oci_util.go", "func_name": "SplitPathAndImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SplitPathAndImage tries to split the provided OCI reference into the OCI path and image.\n// Neither path nor image parts are validated at this stage.", "docstring_tokens": ["SplitPathAndImage", "tries", "to", "split", "the", "provided", "OCI", "reference", "into", "the", "OCI", "path", "and", "image", ".", "Neither", "path", "nor", "image", "parts", "are", "validated", "at", "this", "stage", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/internal/oci_util.go#L37-L42", "partition": "test"} +{"repo": "containers/image", "path": "oci/internal/oci_util.go", "func_name": "ValidateOCIPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateOCIPath takes the OCI path and validates it.", "docstring_tokens": ["ValidateOCIPath", "takes", "the", "OCI", "path", "and", "validates", "it", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/internal/oci_util.go#L71-L83", "partition": "test"} +{"repo": "containers/image", "path": "oci/internal/oci_util.go", "func_name": "ValidateScope", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateScope validates a policy configuration scope for an OCI transport.", "docstring_tokens": ["ValidateScope", "validates", "a", "policy", "configuration", "scope", "for", "an", "OCI", "transport", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/internal/oci_util.go#L86-L103", "partition": "test"} +{"repo": "containers/image", "path": "manifest/docker_schema2.go", "func_name": "BlobInfoFromSchema2Descriptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BlobInfoFromSchema2Descriptor returns a types.BlobInfo based on the input schema 2 descriptor.", "docstring_tokens": ["BlobInfoFromSchema2Descriptor", "returns", "a", "types", ".", "BlobInfo", "based", "on", "the", "input", "schema", "2", "descriptor", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/manifest/docker_schema2.go#L22-L29", "partition": "test"} +{"repo": "containers/image", "path": "manifest/docker_schema2.go", "func_name": "Schema2FromManifest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Schema2FromManifest creates a Schema2 manifest instance from a manifest blob.", "docstring_tokens": ["Schema2FromManifest", "creates", "a", "Schema2", "manifest", "instance", "from", "a", "manifest", "blob", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/manifest/docker_schema2.go#L159-L165", "partition": "test"} +{"repo": "containers/image", "path": "manifest/docker_schema2.go", "func_name": "Schema2FromComponents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Schema2FromComponents creates an Schema2 manifest instance from the supplied data.", "docstring_tokens": ["Schema2FromComponents", "creates", "an", "Schema2", "manifest", "instance", "from", "the", "supplied", "data", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/manifest/docker_schema2.go#L168-L175", "partition": "test"} +{"repo": "containers/image", "path": "pkg/docker/config/config.go", "func_name": "SetAuthentication", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAuthentication stores the username and password in the auth.json file", "docstring_tokens": ["SetAuthentication", "stores", "the", "username", "and", "password", "in", "the", "auth", ".", "json", "file"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/docker/config/config.go#L41-L52", "partition": "test"} +{"repo": "containers/image", "path": "pkg/docker/config/config.go", "func_name": "RemoveAuthentication", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveAuthentication deletes the credentials stored in auth.json", "docstring_tokens": ["RemoveAuthentication", "deletes", "the", "credentials", "stored", "in", "auth", ".", "json"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/docker/config/config.go#L89-L105", "partition": "test"} +{"repo": "containers/image", "path": "pkg/docker/config/config.go", "func_name": "RemoveAllAuthentication", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveAllAuthentication deletes all the credentials stored in auth.json", "docstring_tokens": ["RemoveAllAuthentication", "deletes", "all", "the", "credentials", "stored", "in", "auth", ".", "json"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/docker/config/config.go#L108-L114", "partition": "test"} +{"repo": "containers/image", "path": "pkg/docker/config/config.go", "func_name": "readJSONFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readJSONFile unmarshals the authentications stored in the auth.json file and returns it\n// or returns an empty dockerConfigFile data structure if auth.json does not exist\n// if the file exists and is empty, readJSONFile returns an error", "docstring_tokens": ["readJSONFile", "unmarshals", "the", "authentications", "stored", "in", "the", "auth", ".", "json", "file", "and", "returns", "it", "or", "returns", "an", "empty", "dockerConfigFile", "data", "structure", "if", "auth", ".", "json", "does", "not", "exist", "if", "the", "file", "exists", "and", "is", "empty", "readJSONFile", "returns", "an", "error"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/docker/config/config.go#L149-L173", "partition": "test"} +{"repo": "containers/image", "path": "pkg/docker/config/config.go", "func_name": "modifyJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// modifyJSON writes to auth.json if the dockerConfigFile has been updated", "docstring_tokens": ["modifyJSON", "writes", "to", "auth", ".", "json", "if", "the", "dockerConfigFile", "has", "been", "updated"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/docker/config/config.go#L176-L210", "partition": "test"} +{"repo": "containers/image", "path": "pkg/docker/config/config.go", "func_name": "findAuthentication", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findAuthentication looks for auth of registry in path", "docstring_tokens": ["findAuthentication", "looks", "for", "auth", "of", "registry", "in", "path"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/docker/config/config.go#L240-L266", "partition": "test"} +{"repo": "containers/image", "path": "docker/tarfile/dest.go", "func_name": "NewDestination", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDestination returns a tarfile.Destination for the specified io.Writer.", "docstring_tokens": ["NewDestination", "returns", "a", "tarfile", ".", "Destination", "for", "the", "specified", "io", ".", "Writer", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/tarfile/dest.go#L35-L46", "partition": "test"} +{"repo": "containers/image", "path": "docker/tarfile/dest.go", "func_name": "AddRepoTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddRepoTags adds the specified tags to the destination's repoTags.", "docstring_tokens": ["AddRepoTags", "adds", "the", "specified", "tags", "to", "the", "destination", "s", "repoTags", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/tarfile/dest.go#L49-L51", "partition": "test"} +{"repo": "containers/image", "path": "docker/tarfile/dest.go", "func_name": "writeLegacyLayerMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeLegacyLayerMetadata writes legacy VERSION and configuration files for all layers", "docstring_tokens": ["writeLegacyLayerMetadata", "writes", "legacy", "VERSION", "and", "configuration", "files", "for", "all", "layers"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/tarfile/dest.go#L262-L327", "partition": "test"} +{"repo": "containers/image", "path": "docker/tarfile/dest.go", "func_name": "sendSymlink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendSymlink sends a symlink into the tar stream.", "docstring_tokens": ["sendSymlink", "sends", "a", "symlink", "into", "the", "tar", "stream", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/tarfile/dest.go#L358-L365", "partition": "test"} +{"repo": "containers/image", "path": "docker/tarfile/dest.go", "func_name": "sendBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendBytes sends a path into the tar stream.", "docstring_tokens": ["sendBytes", "sends", "a", "path", "into", "the", "tar", "stream", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/tarfile/dest.go#L368-L370", "partition": "test"} +{"repo": "containers/image", "path": "docker/tarfile/dest.go", "func_name": "sendFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sendFile sends a file into the tar stream.", "docstring_tokens": ["sendFile", "sends", "a", "file", "into", "the", "tar", "stream", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/tarfile/dest.go#L373-L391", "partition": "test"} +{"repo": "containers/image", "path": "docker/tarfile/dest.go", "func_name": "Commit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Commit finishes writing data to the underlying io.Writer.\n// It is the caller's responsibility to close it, if necessary.", "docstring_tokens": ["Commit", "finishes", "writing", "data", "to", "the", "underlying", "io", ".", "Writer", ".", "It", "is", "the", "caller", "s", "responsibility", "to", "close", "it", "if", "necessary", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/tarfile/dest.go#L405-L407", "partition": "test"} +{"repo": "containers/image", "path": "storage/storage_reference.go", "func_name": "imageMatchesRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// imageMatchesRepo returns true iff image.Names contains an element with the same repo as ref", "docstring_tokens": ["imageMatchesRepo", "returns", "true", "iff", "image", ".", "Names", "contains", "an", "element", "with", "the", "same", "repo", "as", "ref"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/storage/storage_reference.go#L42-L52", "partition": "test"} +{"repo": "containers/image", "path": "storage/storage_reference.go", "func_name": "resolveImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Resolve the reference's name to an image ID in the store, if there's already\n// one present with the same name or ID, and return the image.", "docstring_tokens": ["Resolve", "the", "reference", "s", "name", "to", "an", "image", "ID", "in", "the", "store", "if", "there", "s", "already", "one", "present", "with", "the", "same", "name", "or", "ID", "and", "return", "the", "image", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/storage/storage_reference.go#L56-L119", "partition": "test"} +{"repo": "containers/image", "path": "storage/storage_reference.go", "func_name": "Transport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a Transport object that defaults to using the same store that we used\n// to build this reference object.", "docstring_tokens": ["Return", "a", "Transport", "object", "that", "defaults", "to", "using", "the", "same", "store", "that", "we", "used", "to", "build", "this", "reference", "object", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/storage/storage_reference.go#L123-L129", "partition": "test"} +{"repo": "containers/image", "path": "storage/storage_reference.go", "func_name": "StringWithinTransport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a name with a tag, prefixed with the graph root and driver name, to\n// disambiguate between images which may be present in multiple stores and\n// share only their names.", "docstring_tokens": ["Return", "a", "name", "with", "a", "tag", "prefixed", "with", "the", "graph", "root", "and", "driver", "name", "to", "disambiguate", "between", "images", "which", "may", "be", "present", "in", "multiple", "stores", "and", "share", "only", "their", "names", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/storage/storage_reference.go#L139-L153", "partition": "test"} +{"repo": "containers/image", "path": "storage/storage_reference.go", "func_name": "PolicyConfigurationNamespaces", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Also accept policy that's tied to the combination of the graph root and\n// driver name, to apply to all images stored in the Store, and to just the\n// graph root, in case we're using multiple drivers in the same directory for\n// some reason.", "docstring_tokens": ["Also", "accept", "policy", "that", "s", "tied", "to", "the", "combination", "of", "the", "graph", "root", "and", "driver", "name", "to", "apply", "to", "all", "images", "stored", "in", "the", "Store", "and", "to", "just", "the", "graph", "root", "in", "case", "we", "re", "using", "multiple", "drivers", "in", "the", "same", "directory", "for", "some", "reason", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/storage/storage_reference.go#L170-L193", "partition": "test"} +{"repo": "containers/image", "path": "pkg/compression/compression.go", "func_name": "GzipDecompressor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GzipDecompressor is a DecompressorFunc for the gzip compression algorithm.", "docstring_tokens": ["GzipDecompressor", "is", "a", "DecompressorFunc", "for", "the", "gzip", "compression", "algorithm", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/compression/compression.go#L20-L22", "partition": "test"} +{"repo": "containers/image", "path": "pkg/compression/compression.go", "func_name": "Bzip2Decompressor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Bzip2Decompressor is a DecompressorFunc for the bzip2 compression algorithm.", "docstring_tokens": ["Bzip2Decompressor", "is", "a", "DecompressorFunc", "for", "the", "bzip2", "compression", "algorithm", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/compression/compression.go#L25-L27", "partition": "test"} +{"repo": "containers/image", "path": "pkg/compression/compression.go", "func_name": "XzDecompressor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// XzDecompressor is a DecompressorFunc for the xz compression algorithm.", "docstring_tokens": ["XzDecompressor", "is", "a", "DecompressorFunc", "for", "the", "xz", "compression", "algorithm", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/compression/compression.go#L30-L36", "partition": "test"} +{"repo": "containers/image", "path": "pkg/compression/compression.go", "func_name": "DetectCompression", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DetectCompression returns a DecompressorFunc if the input is recognized as a compressed format, nil otherwise.\n// Because it consumes the start of input, other consumers must use the returned io.Reader instead to also read from the beginning.", "docstring_tokens": ["DetectCompression", "returns", "a", "DecompressorFunc", "if", "the", "input", "is", "recognized", "as", "a", "compressed", "format", "nil", "otherwise", ".", "Because", "it", "consumes", "the", "start", "of", "input", "other", "consumers", "must", "use", "the", "returned", "io", ".", "Reader", "instead", "to", "also", "read", "from", "the", "beginning", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/compression/compression.go#L50-L73", "partition": "test"} +{"repo": "containers/image", "path": "docker/docker_image_dest.go", "func_name": "newImageDestination", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newImageDestination creates a new ImageDestination for the specified image reference.", "docstring_tokens": ["newImageDestination", "creates", "a", "new", "ImageDestination", "for", "the", "specified", "image", "reference", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/docker_image_dest.go#L38-L47", "partition": "test"} +{"repo": "containers/image", "path": "docker/docker_image_dest.go", "func_name": "mountBlob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// mountBlob tries to mount blob srcDigest from srcRepo to the current destination.", "docstring_tokens": ["mountBlob", "tries", "to", "mount", "blob", "srcDigest", "from", "srcRepo", "to", "the", "current", "destination", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/docker_image_dest.go#L222-L265", "partition": "test"} +{"repo": "containers/image", "path": "docker/cache.go", "func_name": "bicTransportScope", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// bicTransportScope returns a BICTransportScope appropriate for ref.", "docstring_tokens": ["bicTransportScope", "returns", "a", "BICTransportScope", "appropriate", "for", "ref", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/cache.go#L9-L12", "partition": "test"} +{"repo": "containers/image", "path": "docker/cache.go", "func_name": "newBICLocationReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newBICLocationReference returns a BICLocationReference appropriate for ref.", "docstring_tokens": ["newBICLocationReference", "returns", "a", "BICLocationReference", "appropriate", "for", "ref", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/cache.go#L15-L18", "partition": "test"} +{"repo": "containers/image", "path": "docker/cache.go", "func_name": "parseBICLocationReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseBICLocationReference returns a repository for encoded lr.", "docstring_tokens": ["parseBICLocationReference", "returns", "a", "repository", "for", "encoded", "lr", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/cache.go#L21-L23", "partition": "test"} +{"repo": "containers/image", "path": "docker/tarfile/src.go", "func_name": "NewSourceFromStream", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSourceFromStream returns a tarfile.Source for the specified inputStream,\n// which can be either compressed or uncompressed. The caller can close the\n// inputStream immediately after NewSourceFromFile returns.", "docstring_tokens": ["NewSourceFromStream", "returns", "a", "tarfile", ".", "Source", "for", "the", "specified", "inputStream", "which", "can", "be", "either", "compressed", "or", "uncompressed", ".", "The", "caller", "can", "close", "the", "inputStream", "immediately", "after", "NewSourceFromFile", "returns", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/tarfile/src.go#L74-L112", "partition": "test"} +{"repo": "containers/image", "path": "docker/tarfile/src.go", "func_name": "readTarComponent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readTarComponent returns full contents of componentPath.", "docstring_tokens": ["readTarComponent", "returns", "full", "contents", "of", "componentPath", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/tarfile/src.go#L190-L201", "partition": "test"} +{"repo": "containers/image", "path": "docker/tarfile/src.go", "func_name": "ensureCachedDataIsPresent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ensureCachedDataIsPresent loads data necessary for any of the public accessors.", "docstring_tokens": ["ensureCachedDataIsPresent", "loads", "data", "necessary", "for", "any", "of", "the", "public", "accessors", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/tarfile/src.go#L204-L245", "partition": "test"} +{"repo": "containers/image", "path": "docker/tarfile/src.go", "func_name": "loadTarManifest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loadTarManifest loads and decodes the manifest.json.", "docstring_tokens": ["loadTarManifest", "loads", "and", "decodes", "the", "manifest", ".", "json", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/tarfile/src.go#L248-L259", "partition": "test"} +{"repo": "containers/image", "path": "docker/tarfile/src.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close removes resources associated with an initialized Source, if any.", "docstring_tokens": ["Close", "removes", "resources", "associated", "with", "an", "initialized", "Source", "if", "any", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/tarfile/src.go#L262-L267", "partition": "test"} +{"repo": "containers/image", "path": "docker/daemon/daemon_dest.go", "func_name": "newImageDestination", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newImageDestination returns a types.ImageDestination for the specified image reference.", "docstring_tokens": ["newImageDestination", "returns", "a", "types", ".", "ImageDestination", "for", "the", "specified", "image", "reference", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/daemon/daemon_dest.go#L28-L63", "partition": "test"} +{"repo": "containers/image", "path": "docker/daemon/daemon_dest.go", "func_name": "imageLoadGoroutine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// imageLoadGoroutine accepts tar stream on reader, sends it to c, and reports error or success by writing to statusChannel", "docstring_tokens": ["imageLoadGoroutine", "accepts", "tar", "stream", "on", "reader", "sends", "it", "to", "c", "and", "reports", "error", "or", "success", "by", "writing", "to", "statusChannel"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/daemon/daemon_dest.go#L66-L86", "partition": "test"} +{"repo": "containers/image", "path": "oci/archive/oci_transport.go", "func_name": "NewReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReference returns an OCI reference for a file and a image.", "docstring_tokens": ["NewReference", "returns", "an", "OCI", "reference", "for", "a", "file", "and", "a", "image", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/archive/oci_transport.go#L62-L77", "partition": "test"} +{"repo": "containers/image", "path": "oci/archive/oci_transport.go", "func_name": "createOCIRef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createOCIRef creates the oci reference of the image", "docstring_tokens": ["createOCIRef", "creates", "the", "oci", "reference", "of", "the", "image"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/archive/oci_transport.go#L162-L174", "partition": "test"} +{"repo": "containers/image", "path": "oci/archive/oci_transport.go", "func_name": "createUntarTempDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// creates the temporary directory and copies the tarred content to it", "docstring_tokens": ["creates", "the", "temporary", "directory", "and", "copies", "the", "tarred", "content", "to", "it"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/archive/oci_transport.go#L177-L192", "partition": "test"} +{"repo": "containers/image", "path": "pkg/blobinfocache/internal/prioritize/prioritize.go", "func_name": "destructivelyPrioritizeReplacementCandidatesWithMax", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// destructivelyPrioritizeReplacementCandidatesWithMax is destructivelyPrioritizeReplacementCandidates with a parameter for the\n// number of entries to limit, only to make testing simpler.", "docstring_tokens": ["destructivelyPrioritizeReplacementCandidatesWithMax", "is", "destructivelyPrioritizeReplacementCandidates", "with", "a", "parameter", "for", "the", "number", "of", "entries", "to", "limit", "only", "to", "make", "testing", "simpler", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/blobinfocache/internal/prioritize/prioritize.go#L82-L100", "partition": "test"} +{"repo": "containers/image", "path": "ostree/ostree_dest.go", "func_name": "newImageDestination", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newImageDestination returns an ImageDestination for writing to an existing ostree.", "docstring_tokens": ["newImageDestination", "returns", "an", "ImageDestination", "for", "writing", "to", "an", "existing", "ostree", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/ostree/ostree_dest.go#L78-L84", "partition": "test"} +{"repo": "containers/image", "path": "directory/explicitfilepath/path.go", "func_name": "resolveExistingPathToFullyExplicit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// resolveExistingPathToFullyExplicit is the same as ResolvePathToFullyExplicit,\n// but without the special case for missing final component.", "docstring_tokens": ["resolveExistingPathToFullyExplicit", "is", "the", "same", "as", "ResolvePathToFullyExplicit", "but", "without", "the", "special", "case", "for", "missing", "final", "component", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/directory/explicitfilepath/path.go#L46-L56", "partition": "test"} +{"repo": "containers/image", "path": "directory/directory_dest.go", "func_name": "newImageDestination", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newImageDestination returns an ImageDestination for writing to a directory.", "docstring_tokens": ["newImageDestination", "returns", "an", "ImageDestination", "for", "writing", "to", "a", "directory", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/directory/directory_dest.go#L28-L79", "partition": "test"} +{"repo": "containers/image", "path": "directory/directory_dest.go", "func_name": "isDirEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// returns true if directory is empty", "docstring_tokens": ["returns", "true", "if", "directory", "is", "empty"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/directory/directory_dest.go#L239-L245", "partition": "test"} +{"repo": "containers/image", "path": "directory/directory_dest.go", "func_name": "removeDirContents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deletes the contents of a directory", "docstring_tokens": ["deletes", "the", "contents", "of", "a", "directory"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/directory/directory_dest.go#L248-L260", "partition": "test"} +{"repo": "containers/image", "path": "docker/docker_image.go", "func_name": "GetRepositoryTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRepositoryTags list all tags available in the repository. The tag\n// provided inside the ImageReference will be ignored.", "docstring_tokens": ["GetRepositoryTags", "list", "all", "tags", "available", "in", "the", "repository", ".", "The", "tag", "provided", "inside", "the", "ImageReference", "will", "be", "ignored", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/docker_image.go#L54-L107", "partition": "test"} +{"repo": "containers/image", "path": "pkg/blobinfocache/default.go", "func_name": "DefaultCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultCache returns the default BlobInfoCache implementation appropriate for sys.", "docstring_tokens": ["DefaultCache", "returns", "the", "default", "BlobInfoCache", "implementation", "appropriate", "for", "sys", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/blobinfocache/default.go#L61-L75", "partition": "test"} +{"repo": "containers/image", "path": "pkg/blobinfocache/memory/memory.go", "func_name": "uncompressedDigestLocked", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// uncompressedDigestLocked implements types.BlobInfoCache.UncompressedDigest, but must be called only with mem.mutex held.", "docstring_tokens": ["uncompressedDigestLocked", "implements", "types", ".", "BlobInfoCache", ".", "UncompressedDigest", "but", "must", "be", "called", "only", "with", "mem", ".", "mutex", "held", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/pkg/blobinfocache/memory/memory.go#L56-L67", "partition": "test"} +{"repo": "containers/image", "path": "oci/archive/oci_dest.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close removes resources associated with an initialized ImageDestination, if any\n// Close deletes the temp directory of the oci-archive image", "docstring_tokens": ["Close", "removes", "resources", "associated", "with", "an", "initialized", "ImageDestination", "if", "any", "Close", "deletes", "the", "temp", "directory", "of", "the", "oci", "-", "archive", "image"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/archive/oci_dest.go#L44-L47", "partition": "test"} +{"repo": "containers/image", "path": "oci/archive/oci_dest.go", "func_name": "PutManifest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutManifest writes manifest to the destination", "docstring_tokens": ["PutManifest", "writes", "manifest", "to", "the", "destination"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/archive/oci_dest.go#L109-L111", "partition": "test"} +{"repo": "containers/image", "path": "oci/archive/oci_dest.go", "func_name": "Commit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Commit marks the process of storing the image as successful and asks for the image to be persisted\n// after the directory is made, it is tarred up into a file and the directory is deleted", "docstring_tokens": ["Commit", "marks", "the", "process", "of", "storing", "the", "image", "as", "successful", "and", "asks", "for", "the", "image", "to", "be", "persisted", "after", "the", "directory", "is", "made", "it", "is", "tarred", "up", "into", "a", "file", "and", "the", "directory", "is", "deleted"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/archive/oci_dest.go#L119-L129", "partition": "test"} +{"repo": "containers/image", "path": "oci/archive/oci_dest.go", "func_name": "tarDirectory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tar converts the directory at src and saves it to dst", "docstring_tokens": ["tar", "converts", "the", "directory", "at", "src", "and", "saves", "it", "to", "dst"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/oci/archive/oci_dest.go#L132-L151", "partition": "test"} +{"repo": "containers/image", "path": "storage/storage_transport.go", "func_name": "ParseStoreReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseStoreReference takes a name or an ID, tries to figure out which it is\n// relative to the given store, and returns it in a reference object.", "docstring_tokens": ["ParseStoreReference", "takes", "a", "name", "or", "an", "ID", "tries", "to", "figure", "out", "which", "it", "is", "relative", "to", "the", "given", "store", "and", "returns", "it", "in", "a", "reference", "object", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/storage/storage_transport.go#L108-L177", "partition": "test"} +{"repo": "containers/image", "path": "image/docker_list.go", "func_name": "chooseDigestFromManifestList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// chooseDigestFromManifestList parses blob as a schema2 manifest list,\n// and returns the digest of the image appropriate for the current environment.", "docstring_tokens": ["chooseDigestFromManifestList", "parses", "blob", "as", "a", "schema2", "manifest", "list", "and", "returns", "the", "digest", "of", "the", "image", "appropriate", "for", "the", "current", "environment", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/image/docker_list.go#L38-L58", "partition": "test"} +{"repo": "containers/image", "path": "image/docker_list.go", "func_name": "ChooseManifestInstanceFromManifestList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChooseManifestInstanceFromManifestList returns a digest of a manifest appropriate\n// for the current system from the manifest available from src.", "docstring_tokens": ["ChooseManifestInstanceFromManifestList", "returns", "a", "digest", "of", "a", "manifest", "appropriate", "for", "the", "current", "system", "from", "the", "manifest", "available", "from", "src", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/image/docker_list.go#L83-L94", "partition": "test"} +{"repo": "containers/image", "path": "image/docker_schema1.go", "func_name": "manifestSchema1FromComponents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// manifestSchema1FromComponents builds a new manifestSchema1 from the supplied data.", "docstring_tokens": ["manifestSchema1FromComponents", "builds", "a", "new", "manifestSchema1", "from", "the", "supplied", "data", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/image/docker_schema1.go#L27-L33", "partition": "test"} +{"repo": "containers/image", "path": "docker/docker_image_src.go", "func_name": "manifestDigest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// manifestDigest returns a digest of the manifest, from instanceDigest if non-nil; or from the supplied reference,\n// or finally, from a fetched manifest.", "docstring_tokens": ["manifestDigest", "returns", "a", "digest", "of", "the", "manifest", "from", "instanceDigest", "if", "non", "-", "nil", ";", "or", "from", "the", "supplied", "reference", "or", "finally", "from", "a", "fetched", "manifest", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/docker_image_src.go#L284-L298", "partition": "test"} +{"repo": "containers/image", "path": "docker/docker_image_src.go", "func_name": "deleteImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deleteImage deletes the named image from the registry, if supported.", "docstring_tokens": ["deleteImage", "deletes", "the", "named", "image", "from", "the", "registry", "if", "supported", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/docker/docker_image_src.go#L393-L474", "partition": "test"} +{"repo": "containers/image", "path": "manifest/docker_schema1.go", "func_name": "Schema1FromComponents", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Schema1FromComponents creates an Schema1 manifest instance from the supplied data.", "docstring_tokens": ["Schema1FromComponents", "creates", "an", "Schema1", "manifest", "instance", "from", "the", "supplied", "data", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/manifest/docker_schema1.go#L73-L93", "partition": "test"} +{"repo": "containers/image", "path": "manifest/docker_schema1.go", "func_name": "initialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initialize initializes ExtractedV1Compatibility and verifies invariants, so that the rest of this code can assume a minimally healthy manifest.", "docstring_tokens": ["initialize", "initializes", "ExtractedV1Compatibility", "and", "verifies", "invariants", "so", "that", "the", "rest", "of", "this", "code", "can", "assume", "a", "minimally", "healthy", "manifest", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/manifest/docker_schema1.go#L102-L116", "partition": "test"} +{"repo": "containers/image", "path": "manifest/docker_schema1.go", "func_name": "ToSchema2Config", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToSchema2Config builds a schema2-style configuration blob using the supplied diffIDs.", "docstring_tokens": ["ToSchema2Config", "builds", "a", "schema2", "-", "style", "configuration", "blob", "using", "the", "supplied", "diffIDs", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/manifest/docker_schema1.go#L234-L306", "partition": "test"} +{"repo": "containers/image", "path": "manifest/manifest.go", "func_name": "Digest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Digest returns the a digest of a docker manifest, with any necessary implied transformations like stripping v1s1 signatures.", "docstring_tokens": ["Digest", "returns", "the", "a", "digest", "of", "a", "docker", "manifest", "with", "any", "necessary", "implied", "transformations", "like", "stripping", "v1s1", "signatures", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/manifest/manifest.go#L139-L154", "partition": "test"} +{"repo": "containers/image", "path": "manifest/manifest.go", "func_name": "MatchesDigest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MatchesDigest returns true iff the manifest matches expectedDigest.\n// Error may be set if this returns false.\n// Note that this is not doing ConstantTimeCompare; by the time we get here, the cryptographic signature must already have been verified,\n// or we are not using a cryptographic channel and the attacker can modify the digest along with the manifest blob.", "docstring_tokens": ["MatchesDigest", "returns", "true", "iff", "the", "manifest", "matches", "expectedDigest", ".", "Error", "may", "be", "set", "if", "this", "returns", "false", ".", "Note", "that", "this", "is", "not", "doing", "ConstantTimeCompare", ";", "by", "the", "time", "we", "get", "here", "the", "cryptographic", "signature", "must", "already", "have", "been", "verified", "or", "we", "are", "not", "using", "a", "cryptographic", "channel", "and", "the", "attacker", "can", "modify", "the", "digest", "along", "with", "the", "manifest", "blob", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/manifest/manifest.go#L160-L167", "partition": "test"} +{"repo": "containers/image", "path": "manifest/manifest.go", "func_name": "NormalizedMIMEType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NormalizedMIMEType returns the effective MIME type of a manifest MIME type returned by a server,\n// centralizing various workarounds.", "docstring_tokens": ["NormalizedMIMEType", "returns", "the", "effective", "MIME", "type", "of", "a", "manifest", "MIME", "type", "returned", "by", "a", "server", "centralizing", "various", "workarounds", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/manifest/manifest.go#L194-L218", "partition": "test"} +{"repo": "containers/image", "path": "manifest/manifest.go", "func_name": "FromBlob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromBlob returns a Manifest instance for the specified manifest blob and the corresponding MIME type", "docstring_tokens": ["FromBlob", "returns", "a", "Manifest", "instance", "for", "the", "specified", "manifest", "blob", "and", "the", "corresponding", "MIME", "type"], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/manifest/manifest.go#L221-L234", "partition": "test"} +{"repo": "containers/image", "path": "directory/directory_transport.go", "func_name": "NewReference", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// There is no directory.ParseReference because it is rather pointless.\n// Callers who need a transport-independent interface will go through\n// dirTransport.ParseReference; callers who intentionally deal with directories\n// can use directory.NewReference.\n// NewReference returns a directory reference for a specified path.\n//\n// We do not expose an API supplying the resolvedPath; we could, but recomputing it\n// is generally cheap enough that we prefer being confident about the properties of resolvedPath.", "docstring_tokens": ["There", "is", "no", "directory", ".", "ParseReference", "because", "it", "is", "rather", "pointless", ".", "Callers", "who", "need", "a", "transport", "-", "independent", "interface", "will", "go", "through", "dirTransport", ".", "ParseReference", ";", "callers", "who", "intentionally", "deal", "with", "directories", "can", "use", "directory", ".", "NewReference", ".", "NewReference", "returns", "a", "directory", "reference", "for", "a", "specified", "path", ".", "We", "do", "not", "expose", "an", "API", "supplying", "the", "resolvedPath", ";", "we", "could", "but", "recomputing", "it", "is", "generally", "cheap", "enough", "that", "we", "prefer", "being", "confident", "about", "the", "properties", "of", "resolvedPath", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/directory/directory_transport.go#L77-L83", "partition": "test"} +{"repo": "containers/image", "path": "directory/directory_transport.go", "func_name": "layerPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// layerPath returns a path for a layer tarball within a directory using our conventions.", "docstring_tokens": ["layerPath", "returns", "a", "path", "for", "a", "layer", "tarball", "within", "a", "directory", "using", "our", "conventions", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/directory/directory_transport.go#L174-L177", "partition": "test"} +{"repo": "containers/image", "path": "directory/directory_transport.go", "func_name": "signaturePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// signaturePath returns a path for a signature within a directory using our conventions.", "docstring_tokens": ["signaturePath", "returns", "a", "path", "for", "a", "signature", "within", "a", "directory", "using", "our", "conventions", "."], "sha": "da9ab3561ad2031aeb5e036b7cf2755d4e246fec", "url": "https://github.com/containers/image/blob/da9ab3561ad2031aeb5e036b7cf2755d4e246fec/directory/directory_transport.go#L180-L182", "partition": "test"} +{"repo": "Jeffail/tunny", "path": "tunny.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new Pool of workers that starts with n workers. You must\n// provide a constructor function that creates new Worker types and when you\n// change the size of the pool the constructor will be called to create each new\n// Worker.", "docstring_tokens": ["New", "creates", "a", "new", "Pool", "of", "workers", "that", "starts", "with", "n", "workers", ".", "You", "must", "provide", "a", "constructor", "function", "that", "creates", "new", "Worker", "types", "and", "when", "you", "change", "the", "size", "of", "the", "pool", "the", "constructor", "will", "be", "called", "to", "create", "each", "new", "Worker", "."], "sha": "4921fff29480bad359ad2fb3271fb461c8ffe1fc", "url": "https://github.com/Jeffail/tunny/blob/4921fff29480bad359ad2fb3271fb461c8ffe1fc/tunny.go#L119-L127", "partition": "test"} +{"repo": "Jeffail/tunny", "path": "tunny.go", "func_name": "NewFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFunc creates a new Pool of workers where each worker will process using\n// the provided func.", "docstring_tokens": ["NewFunc", "creates", "a", "new", "Pool", "of", "workers", "where", "each", "worker", "will", "process", "using", "the", "provided", "func", "."], "sha": "4921fff29480bad359ad2fb3271fb461c8ffe1fc", "url": "https://github.com/Jeffail/tunny/blob/4921fff29480bad359ad2fb3271fb461c8ffe1fc/tunny.go#L131-L137", "partition": "test"} +{"repo": "Jeffail/tunny", "path": "tunny.go", "func_name": "ProcessTimed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProcessTimed will use the Pool to process a payload and synchronously return\n// the result. If the timeout occurs before the job has finished the worker will\n// be interrupted and ErrJobTimedOut will be returned. ProcessTimed can be\n// called safely by any goroutines.", "docstring_tokens": ["ProcessTimed", "will", "use", "the", "Pool", "to", "process", "a", "payload", "and", "synchronously", "return", "the", "result", ".", "If", "the", "timeout", "occurs", "before", "the", "job", "has", "finished", "the", "worker", "will", "be", "interrupted", "and", "ErrJobTimedOut", "will", "be", "returned", ".", "ProcessTimed", "can", "be", "called", "safely", "by", "any", "goroutines", "."], "sha": "4921fff29480bad359ad2fb3271fb461c8ffe1fc", "url": "https://github.com/Jeffail/tunny/blob/4921fff29480bad359ad2fb3271fb461c8ffe1fc/tunny.go#L175-L215", "partition": "test"} +{"repo": "Jeffail/tunny", "path": "tunny.go", "func_name": "SetSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSize changes the total number of workers in the Pool. This can be called\n// by any goroutine at any time unless the Pool has been stopped, in which case\n// a panic will occur.", "docstring_tokens": ["SetSize", "changes", "the", "total", "number", "of", "workers", "in", "the", "Pool", ".", "This", "can", "be", "called", "by", "any", "goroutine", "at", "any", "time", "unless", "the", "Pool", "has", "been", "stopped", "in", "which", "case", "a", "panic", "will", "occur", "."], "sha": "4921fff29480bad359ad2fb3271fb461c8ffe1fc", "url": "https://github.com/Jeffail/tunny/blob/4921fff29480bad359ad2fb3271fb461c8ffe1fc/tunny.go#L225-L251", "partition": "test"} +{"repo": "Jeffail/tunny", "path": "tunny.go", "func_name": "GetSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSize returns the current size of the pool.", "docstring_tokens": ["GetSize", "returns", "the", "current", "size", "of", "the", "pool", "."], "sha": "4921fff29480bad359ad2fb3271fb461c8ffe1fc", "url": "https://github.com/Jeffail/tunny/blob/4921fff29480bad359ad2fb3271fb461c8ffe1fc/tunny.go#L254-L259", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxtype.go", "func_name": "TL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the Top-Left Point of the rectangle", "docstring_tokens": ["Returns", "the", "Top", "-", "Left", "Point", "of", "the", "rectangle"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxtype.go#L526-L528", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxtype.go", "func_name": "BR", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the Bottom-Right Point of the rectangle", "docstring_tokens": ["Returns", "the", "Bottom", "-", "Right", "Point", "of", "the", "rectangle"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxtype.go#L531-L533", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxtype.go", "func_name": "CVBox", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a CvBox2D", "docstring_tokens": ["Returns", "a", "CvBox2D"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxtype.go#L833-L841", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxtype.go", "func_name": "Points", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Finds box vertices", "docstring_tokens": ["Finds", "box", "vertices"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxtype.go#L844-L856", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/highgui.go", "func_name": "FOURCC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Prototype for CV_FOURCC so that swig can generate wrapper without mixing up the define", "docstring_tokens": ["Prototype", "for", "CV_FOURCC", "so", "that", "swig", "can", "generate", "wrapper", "without", "mixing", "up", "the", "define"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/highgui.go#L574-L577", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "Merge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge creates one multichannel array out of several single-channel ones.", "docstring_tokens": ["Merge", "creates", "one", "multichannel", "array", "out", "of", "several", "single", "-", "channel", "ones", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L58-L66", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "Split", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Split divides a multi-channel array into several single-channel arrays.", "docstring_tokens": ["Split", "divides", "a", "multi", "-", "channel", "array", "into", "several", "single", "-", "channel", "arrays", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L69-L77", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "AddWeighted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddWeighted calculates the weighted sum of two images.", "docstring_tokens": ["AddWeighted", "calculates", "the", "weighted", "sum", "of", "two", "images", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L80-L89", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "And", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element bit-wise conjunction of two arrays.", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "bit", "-", "wise", "conjunction", "of", "two", "arrays", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L556-L558", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "AndWithMask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element bit-wise conjunction of two arrays with a mask.", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "bit", "-", "wise", "conjunction", "of", "two", "arrays", "with", "a", "mask", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L561-L568", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "AndScalar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element bit-wise conjunction of an array and a scalar.", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "bit", "-", "wise", "conjunction", "of", "an", "array", "and", "a", "scalar", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L571-L573", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "AndScalarWithMask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element bit-wise conjunction of an array and a scalar with a mask.", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "bit", "-", "wise", "conjunction", "of", "an", "array", "and", "a", "scalar", "with", "a", "mask", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L576-L583", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "Or", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element bit-wise disjunction of two arrays.", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "bit", "-", "wise", "disjunction", "of", "two", "arrays", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L586-L588", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "OrWithMask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element bit-wise disjunction of two arrays with a mask.", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "bit", "-", "wise", "disjunction", "of", "two", "arrays", "with", "a", "mask", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L591-L598", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "OrScalar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element bit-wise disjunction of an array and a scalar.", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "bit", "-", "wise", "disjunction", "of", "an", "array", "and", "a", "scalar", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L601-L603", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "OrScalarWithMask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element bit-wise disjunction of an array and a scalar with a mask.", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "bit", "-", "wise", "disjunction", "of", "an", "array", "and", "a", "scalar", "with", "a", "mask", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L606-L613", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "AddWithMask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element sum of two arrays with a mask.\n// dst = src1 + src2", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "sum", "of", "two", "arrays", "with", "a", "mask", ".", "dst", "=", "src1", "+", "src2"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L657-L664", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "AddScalar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element sum of an array and a scalar.\n// dst = src + value", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "sum", "of", "an", "array", "and", "a", "scalar", ".", "dst", "=", "src", "+", "value"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L668-L670", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "AddScalarWithMask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element sum of an array and a scalar with a mask.\n// dst = src + value", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "sum", "of", "an", "array", "and", "a", "scalar", "with", "a", "mask", ".", "dst", "=", "src", "+", "value"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L674-L681", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "Subtract", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element difference between two arrays.\n// dst = src1 - src2", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "difference", "between", "two", "arrays", ".", "dst", "=", "src1", "-", "src2"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L685-L687", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "SubtractWithMask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element difference between two arrays with a mask.\n// dst = src1 - src2", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "difference", "between", "two", "arrays", "with", "a", "mask", ".", "dst", "=", "src1", "-", "src2"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L691-L698", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "SubScalar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element difference between an array and a scalar.\n// dst = src - value", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "difference", "between", "an", "array", "and", "a", "scalar", ".", "dst", "=", "src", "-", "value"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L702-L704", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "SubScalarWithMask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element difference between an array and a scalar with a mask.\n// dst = src - value", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "difference", "between", "an", "array", "and", "a", "scalar", "with", "a", "mask", ".", "dst", "=", "src", "-", "value"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L708-L715", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "SubScalarRev", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element difference between a scalar and an array.\n// dst = value - src", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "difference", "between", "a", "scalar", "and", "an", "array", ".", "dst", "=", "value", "-", "src"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L719-L721", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "SubScalarWithMaskRev", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element difference between a scalar and an array with a mask.\n// dst = value - src", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "difference", "between", "a", "scalar", "and", "an", "array", "with", "a", "mask", ".", "dst", "=", "value", "-", "src"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L725-L732", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "AbsDiff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element absolute difference between two arrays.", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "absolute", "difference", "between", "two", "arrays", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L735-L741", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "AbsDiffScalar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the per-element absolute difference between an array and a scalar.", "docstring_tokens": ["Calculates", "the", "per", "-", "element", "absolute", "difference", "between", "an", "array", "and", "a", "scalar", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L744-L750", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "MeanStdDevWithMask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MeanStdDevWithMask calculates mean and standard deviation of pixel values with mask", "docstring_tokens": ["MeanStdDevWithMask", "calculates", "mean", "and", "standard", "deviation", "of", "pixel", "values", "with", "mask"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L775-L785", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "CreateSeq", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Creates a new sequence.", "docstring_tokens": ["Creates", "a", "new", "sequence", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L803-L810", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Adds an element to the sequence end.\n// Returns a pointer to the element added.", "docstring_tokens": ["Adds", "an", "element", "to", "the", "sequence", "end", ".", "Returns", "a", "pointer", "to", "the", "element", "added", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L814-L816", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "Pop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Removes element from the sequence end.\n// Copies the element into the paramter element.", "docstring_tokens": ["Removes", "element", "from", "the", "sequence", "end", ".", "Copies", "the", "element", "into", "the", "paramter", "element", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L820-L822", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "PushFront", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Adds an element to the sequence beginning.\n// Returns a pointer to the element added.", "docstring_tokens": ["Adds", "an", "element", "to", "the", "sequence", "beginning", ".", "Returns", "a", "pointer", "to", "the", "element", "added", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L826-L828", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "PopFront", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Removes element from the sequence beginning.\n// Copies the element into the paramter element.", "docstring_tokens": ["Removes", "element", "from", "the", "sequence", "beginning", ".", "Copies", "the", "element", "into", "the", "paramter", "element", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L832-L834", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "GetElemAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Gets a pointer to the element at the index", "docstring_tokens": ["Gets", "a", "pointer", "to", "the", "element", "at", "the", "index"], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L867-L872", "partition": "test"} +{"repo": "go-opencv/go-opencv", "path": "opencv/cxcore.go", "func_name": "RemoveAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Removes an element from the middle of a sequence.", "docstring_tokens": ["Removes", "an", "element", "from", "the", "middle", "of", "a", "sequence", "."], "sha": "a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db", "url": "https://github.com/go-opencv/go-opencv/blob/a4fe8ec027ccc9eb8b7d0797db7c76e61083f1db/opencv/cxcore.go#L875-L877", "partition": "test"} +{"repo": "avast/retry-go", "path": "options.go", "func_name": "Delay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delay set delay between retry\n// default is 100ms", "docstring_tokens": ["Delay", "set", "delay", "between", "retry", "default", "is", "100ms"], "sha": "88ef2130df9642aa2849152b2985af9ba3676ee9", "url": "https://github.com/avast/retry-go/blob/88ef2130df9642aa2849152b2985af9ba3676ee9/options.go#L46-L50", "partition": "test"} +{"repo": "avast/retry-go", "path": "options.go", "func_name": "BackOffDelay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BackOffDelay is a DelayType which increases delay between consecutive retries", "docstring_tokens": ["BackOffDelay", "is", "a", "DelayType", "which", "increases", "delay", "between", "consecutive", "retries"], "sha": "88ef2130df9642aa2849152b2985af9ba3676ee9", "url": "https://github.com/avast/retry-go/blob/88ef2130df9642aa2849152b2985af9ba3676ee9/options.go#L61-L63", "partition": "test"} +{"repo": "avast/retry-go", "path": "retry.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error method return string representation of Error\n// It is an implementation of error interface", "docstring_tokens": ["Error", "method", "return", "string", "representation", "of", "Error", "It", "is", "an", "implementation", "of", "error", "interface"], "sha": "88ef2130df9642aa2849152b2985af9ba3676ee9", "url": "https://github.com/avast/retry-go/blob/88ef2130df9642aa2849152b2985af9ba3676ee9/retry.go#L132-L141", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "requestbuilder.go", "func_name": "Arguments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Arguments adds the arguments to the args.", "docstring_tokens": ["Arguments", "adds", "the", "arguments", "to", "the", "args", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/requestbuilder.go#L24-L27", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "requestbuilder.go", "func_name": "BodyString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BodyString sets the request body to the given string.", "docstring_tokens": ["BodyString", "sets", "the", "request", "body", "to", "the", "given", "string", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/requestbuilder.go#L30-L32", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "requestbuilder.go", "func_name": "BodyBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BodyBytes sets the request body to the given buffer.", "docstring_tokens": ["BodyBytes", "sets", "the", "request", "body", "to", "the", "given", "buffer", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/requestbuilder.go#L35-L37", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "requestbuilder.go", "func_name": "Body", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Body sets the request body to the given reader.", "docstring_tokens": ["Body", "sets", "the", "request", "body", "to", "the", "given", "reader", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/requestbuilder.go#L40-L43", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "requestbuilder.go", "func_name": "Option", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Option sets the given option.", "docstring_tokens": ["Option", "sets", "the", "given", "option", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/requestbuilder.go#L46-L64", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "requestbuilder.go", "func_name": "Header", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Header sets the given header.", "docstring_tokens": ["Header", "sets", "the", "given", "header", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/requestbuilder.go#L67-L73", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "requestbuilder.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends the request and return the response.", "docstring_tokens": ["Send", "sends", "the", "request", "and", "return", "the", "response", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/requestbuilder.go#L76-L82", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "requestbuilder.go", "func_name": "Exec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exec sends the request a request and decodes the response.", "docstring_tokens": ["Exec", "sends", "the", "request", "a", "request", "and", "decodes", "the", "response", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/requestbuilder.go#L85-L100", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "pubsub.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next waits for the next record and returns that.", "docstring_tokens": ["Next", "waits", "for", "the", "next", "record", "and", "returns", "that", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/pubsub.go#L31-L60", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "pubsub.go", "func_name": "Cancel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cancel cancels the given subscription.", "docstring_tokens": ["Cancel", "cancels", "the", "given", "subscription", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/pubsub.go#L63-L69", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "unixfs.go", "func_name": "FileList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FileList entries at the given path using the UnixFS commands", "docstring_tokens": ["FileList", "entries", "at", "the", "given", "path", "using", "the", "UnixFS", "commands"], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/unixfs.go#L27-L38", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "shell.go", "func_name": "Cat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cat the content at the given path. Callers need to drain and close the returned reader after usage.", "docstring_tokens": ["Cat", "the", "content", "at", "the", "given", "path", ".", "Callers", "need", "to", "drain", "and", "close", "the", "returned", "reader", "after", "usage", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/shell.go#L129-L139", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "shell.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List entries at the given path", "docstring_tokens": ["List", "entries", "at", "the", "given", "path"], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/shell.go#L150-L160", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "shell.go", "func_name": "Pin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pin the given path", "docstring_tokens": ["Pin", "the", "given", "path"], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/shell.go#L175-L179", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "shell.go", "func_name": "Pins", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pins returns a map of the pin hashes to their info (currently just the\n// pin type, one of DirectPin, RecursivePin, or IndirectPin. A map is returned\n// instead of a slice because it is easier to do existence lookup by map key\n// than unordered array searching. The map is likely to be more useful to a\n// client than a flat list.", "docstring_tokens": ["Pins", "returns", "a", "map", "of", "the", "pin", "hashes", "to", "their", "info", "(", "currently", "just", "the", "pin", "type", "one", "of", "DirectPin", "RecursivePin", "or", "IndirectPin", ".", "A", "map", "is", "returned", "instead", "of", "a", "slice", "because", "it", "is", "easier", "to", "do", "existence", "lookup", "by", "map", "key", "than", "unordered", "array", "searching", ".", "The", "map", "is", "likely", "to", "be", "more", "useful", "to", "a", "client", "than", "a", "flat", "list", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/shell.go#L203-L206", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "shell.go", "func_name": "Version", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// returns ipfs version and commit sha", "docstring_tokens": ["returns", "ipfs", "version", "and", "commit", "sha"], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/shell.go#L339-L349", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "shell.go", "func_name": "SwarmPeers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SwarmPeers gets all the swarm peers", "docstring_tokens": ["SwarmPeers", "gets", "all", "the", "swarm", "peers"], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/shell.go#L500-L504", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "shell.go", "func_name": "SwarmConnect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SwarmConnect opens a swarm connection to a specific address.", "docstring_tokens": ["SwarmConnect", "opens", "a", "swarm", "connection", "to", "a", "specific", "address", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/shell.go#L511-L517", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "options/dag.go", "func_name": "DagPutOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DagPutOptions applies the given options to a DagPutSettings instance.", "docstring_tokens": ["DagPutOptions", "applies", "the", "given", "options", "to", "a", "DagPutSettings", "instance", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/options/dag.go#L15-L30", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "options/dag.go", "func_name": "Pin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pin is an option for Dag.Put which specifies whether to pin the added\n// dags. Default is \"false\".", "docstring_tokens": ["Pin", "is", "an", "option", "for", "Dag", ".", "Put", "which", "specifies", "whether", "to", "pin", "the", "added", "dags", ".", "Default", "is", "false", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/options/dag.go#L38-L43", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "options/dag.go", "func_name": "Kind", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Kind is an option for Dag.Put which specifies the format that the dag\n// will be added as. Default is \"cbor\".", "docstring_tokens": ["Kind", "is", "an", "option", "for", "Dag", ".", "Put", "which", "specifies", "the", "format", "that", "the", "dag", "will", "be", "added", "as", ".", "Default", "is", "cbor", "."], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/options/dag.go#L56-L61", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "options/dag.go", "func_name": "Hash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Hash is an option for Dag.Put which specifies the hash function to use", "docstring_tokens": ["Hash", "is", "an", "option", "for", "Dag", ".", "Put", "which", "specifies", "the", "hash", "function", "to", "use"], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/options/dag.go#L64-L69", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "add.go", "func_name": "AddDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddDir adds a directory recursively with all of the files under it", "docstring_tokens": ["AddDir", "adds", "a", "directory", "recursively", "with", "all", "of", "the", "files", "under", "it"], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/add.go#L83-L129", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "ipns.go", "func_name": "Publish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Publish updates a mutable name to point to a given value", "docstring_tokens": ["Publish", "updates", "a", "mutable", "name", "to", "point", "to", "a", "given", "value"], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/ipns.go#L14-L23", "partition": "test"} +{"repo": "ipfs/go-ipfs-api", "path": "ipns.go", "func_name": "PublishWithDetails", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublishWithDetails is used for fine grained control over record publishing", "docstring_tokens": ["PublishWithDetails", "is", "used", "for", "fine", "grained", "control", "over", "record", "publishing"], "sha": "a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32", "url": "https://github.com/ipfs/go-ipfs-api/blob/a1b28da48b3763f67654ec4cfcba5fcbfb3dfb32/ipns.go#L26-L43", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "dependency/sqltypes/plan_value.go", "func_name": "ResolveValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResolveValue resolves a PlanValue as a single value based on the supplied bindvars.", "docstring_tokens": ["ResolveValue", "resolves", "a", "PlanValue", "as", "a", "single", "value", "based", "on", "the", "supplied", "bindvars", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/dependency/sqltypes/plan_value.go#L77-L93", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "parsed_query.go", "func_name": "GenerateQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateQuery generates a query by substituting the specified\n// bindVariables. The extras parameter specifies special parameters\n// that can perform custom encoding.", "docstring_tokens": ["GenerateQuery", "generates", "a", "query", "by", "substituting", "the", "specified", "bindVariables", ".", "The", "extras", "parameter", "specifies", "special", "parameters", "that", "can", "perform", "custom", "encoding", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/parsed_query.go#L48-L70", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "parsed_query.go", "func_name": "EncodeValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EncodeValue encodes one bind variable value into the query.", "docstring_tokens": ["EncodeValue", "encodes", "one", "bind", "variable", "value", "into", "the", "query", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/parsed_query.go#L73-L90", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "token.go", "func_name": "Lex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Lex returns the next token form the Tokenizer.\n// This function is used by go yacc.", "docstring_tokens": ["Lex", "returns", "the", "next", "token", "form", "the", "Tokenizer", ".", "This", "function", "is", "used", "by", "go", "yacc", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/token.go#L420-L431", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "token.go", "func_name": "skipStatement", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// skipStatement scans until the EOF, or end of statement is encountered.", "docstring_tokens": ["skipStatement", "scans", "until", "the", "EOF", "or", "end", "of", "statement", "is", "encountered", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/token.go#L609-L615", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "token.go", "func_name": "reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// reset clears any internal state.", "docstring_tokens": ["reset", "clears", "any", "internal", "state", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/token.go#L919-L926", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "analyzer.go", "func_name": "Preview", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Preview analyzes the beginning of the query using a simpler and faster\n// textual comparison to identify the statement type.", "docstring_tokens": ["Preview", "analyzes", "the", "beginning", "of", "the", "query", "using", "a", "simpler", "and", "faster", "textual", "comparison", "to", "identify", "the", "statement", "type", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/analyzer.go#L53-L107", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "analyzer.go", "func_name": "NewPlanValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPlanValue builds a sqltypes.PlanValue from an Expr.", "docstring_tokens": ["NewPlanValue", "builds", "a", "sqltypes", ".", "PlanValue", "from", "an", "Expr", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/analyzer.go#L211-L253", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "analyzer.go", "func_name": "StringIn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StringIn is a convenience function that returns\n// true if str matches any of the values.", "docstring_tokens": ["StringIn", "is", "a", "convenience", "function", "that", "returns", "true", "if", "str", "matches", "any", "of", "the", "values", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/analyzer.go#L257-L264", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "tracked_buffer.go", "func_name": "NewTrackedBuffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTrackedBuffer creates a new TrackedBuffer.", "docstring_tokens": ["NewTrackedBuffer", "creates", "a", "new", "TrackedBuffer", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/tracked_buffer.go#L42-L47", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "dependency/hack/hack.go", "func_name": "NewStringArena", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStringArena creates an arena of the specified size.", "docstring_tokens": ["NewStringArena", "creates", "an", "arena", "of", "the", "specified", "size", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/dependency/hack/hack.go#L34-L41", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "dependency/hack/hack.go", "func_name": "NewString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewString copies a byte slice into the arena and returns it as a string.\n// If the arena is full, it returns a traditional go string.", "docstring_tokens": ["NewString", "copies", "a", "byte", "slice", "into", "the", "arena", "and", "returns", "it", "as", "a", "string", ".", "If", "the", "arena", "is", "full", "it", "returns", "a", "traditional", "go", "string", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/dependency/hack/hack.go#L45-L55", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "dependency/hack/hack.go", "func_name": "SpaceLeft", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SpaceLeft returns the amount of space left in the arena.", "docstring_tokens": ["SpaceLeft", "returns", "the", "amount", "of", "space", "left", "in", "the", "arena", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/dependency/hack/hack.go#L58-L60", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "ast.go", "func_name": "ParseStrictDDL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseStrictDDL is the same as Parse except it errors on\n// partially parsed DDL statements.", "docstring_tokens": ["ParseStrictDDL", "is", "the", "same", "as", "Parse", "except", "it", "errors", "on", "partially", "parsed", "DDL", "statements", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/ast.go#L63-L69", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "ast.go", "func_name": "ParseNext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseNext parses a single SQL statement from the tokenizer\n// returning a Statement which is the AST representation of the query.\n// The tokenizer will always read up to the end of the statement, allowing for\n// the next call to ParseNext to parse any subsequent SQL statements. When\n// there are no more statements to parse, a error of io.EOF is returned.", "docstring_tokens": ["ParseNext", "parses", "a", "single", "SQL", "statement", "from", "the", "tokenizer", "returning", "a", "Statement", "which", "is", "the", "AST", "representation", "of", "the", "query", ".", "The", "tokenizer", "will", "always", "read", "up", "to", "the", "end", "of", "the", "statement", "allowing", "for", "the", "next", "call", "to", "ParseNext", "to", "parse", "any", "subsequent", "SQL", "statements", ".", "When", "there", "are", "no", "more", "statements", "to", "parse", "a", "error", "of", "io", ".", "EOF", "is", "returned", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/ast.go#L76-L95", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "ast.go", "func_name": "Append", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Append appends the SQLNode to the buffer.", "docstring_tokens": ["Append", "appends", "the", "SQLNode", "to", "the", "buffer", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/ast.go#L197-L202", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "ast.go", "func_name": "ExprFromValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExprFromValue converts the given Value into an Expr or returns an error.", "docstring_tokens": ["ExprFromValue", "converts", "the", "given", "Value", "into", "an", "Expr", "or", "returns", "an", "error", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/ast.go#L2236-L2251", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "ast.go", "func_name": "Backtick", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Backtick produces a backticked literal given an input string.", "docstring_tokens": ["Backtick", "produces", "a", "backticked", "literal", "given", "an", "input", "string", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/ast.go#L3395-L3406", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "dependency/sqltypes/value.go", "func_name": "NewValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewValue builds a Value using typ and val. If the value and typ\n// don't match, it returns an error.", "docstring_tokens": ["NewValue", "builds", "a", "Value", "using", "typ", "and", "val", ".", "If", "the", "value", "and", "typ", "don", "t", "match", "it", "returns", "an", "error", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/dependency/sqltypes/value.go#L60-L82", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "dependency/sqltypes/value.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a printable version of the value.", "docstring_tokens": ["String", "returns", "a", "printable", "version", "of", "the", "value", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/dependency/sqltypes/value.go#L204-L212", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "dependency/sqltypes/value.go", "func_name": "EncodeSQL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EncodeSQL encodes the value into an SQL statement. Can be binary.", "docstring_tokens": ["EncodeSQL", "encodes", "the", "value", "into", "an", "SQL", "statement", ".", "Can", "be", "binary", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/dependency/sqltypes/value.go#L215-L224", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "encodable.go", "func_name": "EncodeSQL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EncodeSQL performs the SQL encoding for InsertValues.", "docstring_tokens": ["EncodeSQL", "performs", "the", "SQL", "encoding", "for", "InsertValues", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/encodable.go#L38-L52", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "encodable.go", "func_name": "EncodeSQL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EncodeSQL generates the where clause constraints for the tuple\n// equality.", "docstring_tokens": ["EncodeSQL", "generates", "the", "where", "clause", "constraints", "for", "the", "tuple", "equality", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/encodable.go#L63-L69", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "normalizer.go", "func_name": "WalkStatement", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WalkStatement is the top level walk function.\n// If it encounters a Select, it switches to a mode\n// where variables are deduped.", "docstring_tokens": ["WalkStatement", "is", "the", "top", "level", "walk", "function", ".", "If", "it", "encounters", "a", "Select", "it", "switches", "to", "a", "mode", "where", "variables", "are", "deduped", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/normalizer.go#L62-L74", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "normalizer.go", "func_name": "WalkSelect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WalkSelect normalizes the AST in Select mode.", "docstring_tokens": ["WalkSelect", "normalizes", "the", "AST", "in", "Select", "mode", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/normalizer.go#L77-L85", "partition": "test"} +{"repo": "xwb1989/sqlparser", "path": "dependency/sqltypes/bind_variables.go", "func_name": "BindVariablesEqual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BindVariablesEqual compares two maps of bind variables.", "docstring_tokens": ["BindVariablesEqual", "compares", "two", "maps", "of", "bind", "variables", "."], "sha": "120387863bf27d04bc07db8015110a6e96d0146c", "url": "https://github.com/xwb1989/sqlparser/blob/120387863bf27d04bc07db8015110a6e96d0146c/dependency/sqltypes/bind_variables.go#L255-L257", "partition": "test"} +{"repo": "auth0/go-jwt-middleware", "path": "jwtmiddleware.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New constructs a new Secure instance with supplied options.", "docstring_tokens": ["New", "constructs", "a", "new", "Secure", "instance", "with", "supplied", "options", "."], "sha": "5493cabe49f7bfa6e2ec444a09d334d90cd4e2bd", "url": "https://github.com/auth0/go-jwt-middleware/blob/5493cabe49f7bfa6e2ec444a09d334d90cd4e2bd/jwtmiddleware.go#L64-L88", "partition": "test"} +{"repo": "auth0/go-jwt-middleware", "path": "jwtmiddleware.go", "func_name": "HandlerWithNext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Special implementation for Negroni, but could be used elsewhere.", "docstring_tokens": ["Special", "implementation", "for", "Negroni", "but", "could", "be", "used", "elsewhere", "."], "sha": "5493cabe49f7bfa6e2ec444a09d334d90cd4e2bd", "url": "https://github.com/auth0/go-jwt-middleware/blob/5493cabe49f7bfa6e2ec444a09d334d90cd4e2bd/jwtmiddleware.go#L97-L104", "partition": "test"} +{"repo": "auth0/go-jwt-middleware", "path": "jwtmiddleware.go", "func_name": "FromAuthHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromAuthHeader is a \"TokenExtractor\" that takes a give request and extracts\n// the JWT token from the Authorization header.", "docstring_tokens": ["FromAuthHeader", "is", "a", "TokenExtractor", "that", "takes", "a", "give", "request", "and", "extracts", "the", "JWT", "token", "from", "the", "Authorization", "header", "."], "sha": "5493cabe49f7bfa6e2ec444a09d334d90cd4e2bd", "url": "https://github.com/auth0/go-jwt-middleware/blob/5493cabe49f7bfa6e2ec444a09d334d90cd4e2bd/jwtmiddleware.go#L123-L136", "partition": "test"} +{"repo": "auth0/go-jwt-middleware", "path": "jwtmiddleware.go", "func_name": "FromParameter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromParameter returns a function that extracts the token from the specified\n// query string parameter", "docstring_tokens": ["FromParameter", "returns", "a", "function", "that", "extracts", "the", "token", "from", "the", "specified", "query", "string", "parameter"], "sha": "5493cabe49f7bfa6e2ec444a09d334d90cd4e2bd", "url": "https://github.com/auth0/go-jwt-middleware/blob/5493cabe49f7bfa6e2ec444a09d334d90cd4e2bd/jwtmiddleware.go#L140-L144", "partition": "test"} +{"repo": "auth0/go-jwt-middleware", "path": "jwtmiddleware.go", "func_name": "FromFirst", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromFirst returns a function that runs multiple token extractors and takes the\n// first token it finds", "docstring_tokens": ["FromFirst", "returns", "a", "function", "that", "runs", "multiple", "token", "extractors", "and", "takes", "the", "first", "token", "it", "finds"], "sha": "5493cabe49f7bfa6e2ec444a09d334d90cd4e2bd", "url": "https://github.com/auth0/go-jwt-middleware/blob/5493cabe49f7bfa6e2ec444a09d334d90cd4e2bd/jwtmiddleware.go#L148-L161", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "comm.go", "func_name": "getHelloPacket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// get the initial RPC containing all of our subscriptions to send to new peers", "docstring_tokens": ["get", "the", "initial", "RPC", "containing", "all", "of", "our", "subscriptions", "to", "send", "to", "new", "peers"], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/comm.go#L18-L28", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "floodsub.go", "func_name": "NewFloodsubWithProtocols", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFloodsubWithProtocols returns a new floodsub-enabled PubSub objecting using the protocols specified in ps.", "docstring_tokens": ["NewFloodsubWithProtocols", "returns", "a", "new", "floodsub", "-", "enabled", "PubSub", "objecting", "using", "the", "protocols", "specified", "in", "ps", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/floodsub.go#L18-L23", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "floodsub.go", "func_name": "NewFloodSub", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFloodSub returns a new PubSub object using the FloodSubRouter.", "docstring_tokens": ["NewFloodSub", "returns", "a", "new", "PubSub", "object", "using", "the", "FloodSubRouter", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/floodsub.go#L26-L28", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "blacklist.go", "func_name": "NewLRUBlacklist", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLRUBlacklist creates a new LRUBlacklist with capacity cap", "docstring_tokens": ["NewLRUBlacklist", "creates", "a", "new", "LRUBlacklist", "with", "capacity", "cap"], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/blacklist.go#L37-L45", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "randomsub.go", "func_name": "NewRandomSub", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRandomSub returns a new PubSub object using RandomSubRouter as the router.", "docstring_tokens": ["NewRandomSub", "returns", "a", "new", "PubSub", "object", "using", "RandomSubRouter", "as", "the", "router", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/randomsub.go#L22-L27", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "gossipsub.go", "func_name": "NewGossipSub", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGossipSub returns a new PubSub object using GossipSubRouter as the router.", "docstring_tokens": ["NewGossipSub", "returns", "a", "new", "PubSub", "object", "using", "GossipSubRouter", "as", "the", "router", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/gossipsub.go#L39-L50", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "NewPubSub", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPubSub returns a new PubSub management object.", "docstring_tokens": ["NewPubSub", "returns", "a", "new", "PubSub", "management", "object", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L160-L214", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "WithValidateThrottle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithValidateThrottle sets the upper bound on the number of active validation\n// goroutines.", "docstring_tokens": ["WithValidateThrottle", "sets", "the", "upper", "bound", "on", "the", "number", "of", "active", "validation", "goroutines", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L218-L223", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "WithBlacklist", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBlacklist provides an implementation of the blacklist; the default is a\n// MapBlacklist", "docstring_tokens": ["WithBlacklist", "provides", "an", "implementation", "of", "the", "blacklist", ";", "the", "default", "is", "a", "MapBlacklist"], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L272-L277", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "handleRemoveSubscription", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleRemoveSubscription removes Subscription sub from bookeeping.\n// If this was the last Subscription for a given topic, it will also announce\n// that this node is not subscribing to this topic anymore.\n// Only called from processLoop.", "docstring_tokens": ["handleRemoveSubscription", "removes", "Subscription", "sub", "from", "bookeeping", ".", "If", "this", "was", "the", "last", "Subscription", "for", "a", "given", "topic", "it", "will", "also", "announce", "that", "this", "node", "is", "not", "subscribing", "to", "this", "topic", "anymore", ".", "Only", "called", "from", "processLoop", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L427-L443", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "handleAddSubscription", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleAddSubscription adds a Subscription for a particular topic. If it is\n// the first Subscription for the topic, it will announce that this node\n// subscribes to the topic.\n// Only called from processLoop.", "docstring_tokens": ["handleAddSubscription", "adds", "a", "Subscription", "for", "a", "particular", "topic", ".", "If", "it", "is", "the", "first", "Subscription", "for", "the", "topic", "it", "will", "announce", "that", "this", "node", "subscribes", "to", "the", "topic", ".", "Only", "called", "from", "processLoop", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L449-L471", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "announce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// announce announces whether or not this node is interested in a given topic\n// Only called from processLoop.", "docstring_tokens": ["announce", "announces", "whether", "or", "not", "this", "node", "is", "interested", "in", "a", "given", "topic", "Only", "called", "from", "processLoop", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L475-L490", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "notifySubs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// notifySubs sends a given message to all corresponding subscribers.\n// Only called from processLoop.", "docstring_tokens": ["notifySubs", "sends", "a", "given", "message", "to", "all", "corresponding", "subscribers", ".", "Only", "called", "from", "processLoop", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L530-L541", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "seenMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// seenMessage returns whether we already saw this message before", "docstring_tokens": ["seenMessage", "returns", "whether", "we", "already", "saw", "this", "message", "before"], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L544-L546", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "subscribedToMsg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// subscribedToMessage returns whether we are subscribed to one of the topics\n// of a given message", "docstring_tokens": ["subscribedToMessage", "returns", "whether", "we", "are", "subscribed", "to", "one", "of", "the", "topics", "of", "a", "given", "message"], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L555-L566", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "msgID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// msgID returns a unique ID of the passed Message", "docstring_tokens": ["msgID", "returns", "a", "unique", "ID", "of", "the", "passed", "Message"], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L603-L605", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "pushMsg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// pushMsg pushes a message performing validation as necessary", "docstring_tokens": ["pushMsg", "pushes", "a", "message", "performing", "validation", "as", "necessary"], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L608-L651", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validate performs validation and only sends the message if all validators succeed", "docstring_tokens": ["validate", "performs", "validation", "and", "only", "sends", "the", "message", "if", "all", "validators", "succeed"], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L654-L674", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "validateSingleTopic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fast path for single topic validation that avoids the extra goroutine", "docstring_tokens": ["fast", "path", "for", "single", "topic", "validation", "that", "avoids", "the", "extra", "goroutine"], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L731-L746", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "getValidators", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getValidators returns all validators that apply to a given message", "docstring_tokens": ["getValidators", "returns", "all", "validators", "that", "apply", "to", "a", "given", "message"], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L760-L773", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "Subscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subscribe returns a new Subscription for the given topic.\n// Note that subscription is not an instanteneous operation. It may take some time\n// before the subscription is processed by the pubsub main loop and propagated to our peers.", "docstring_tokens": ["Subscribe", "returns", "a", "new", "Subscription", "for", "the", "given", "topic", ".", "Note", "that", "subscription", "is", "not", "an", "instanteneous", "operation", ".", "It", "may", "take", "some", "time", "before", "the", "subscription", "is", "processed", "by", "the", "pubsub", "main", "loop", "and", "propagated", "to", "our", "peers", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L785-L789", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "SubscribeByTopicDescriptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SubscribeByTopicDescriptor lets you subscribe a topic using a pb.TopicDescriptor.", "docstring_tokens": ["SubscribeByTopicDescriptor", "lets", "you", "subscribe", "a", "topic", "using", "a", "pb", ".", "TopicDescriptor", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L792-L819", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "GetTopics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTopics returns the topics this node is subscribed to.", "docstring_tokens": ["GetTopics", "returns", "the", "topics", "this", "node", "is", "subscribed", "to", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L826-L830", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "Publish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Publish publishes data to the given topic.", "docstring_tokens": ["Publish", "publishes", "data", "to", "the", "given", "topic", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L833-L850", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "ListPeers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListPeers returns a list of peers we are connected to in the given topic.", "docstring_tokens": ["ListPeers", "returns", "a", "list", "of", "peers", "we", "are", "connected", "to", "in", "the", "given", "topic", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L872-L879", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "WithValidatorTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithValidatorTimeout is an option that sets the topic validator timeout.", "docstring_tokens": ["WithValidatorTimeout", "is", "an", "option", "that", "sets", "the", "topic", "validator", "timeout", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L914-L919", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "WithValidatorConcurrency", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithValidatorConcurrency is an option that sets topic validator throttle.", "docstring_tokens": ["WithValidatorConcurrency", "is", "an", "option", "that", "sets", "topic", "validator", "throttle", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L922-L927", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "RegisterTopicValidator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterTopicValidator registers a validator for topic.", "docstring_tokens": ["RegisterTopicValidator", "registers", "a", "validator", "for", "topic", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L930-L946", "partition": "test"} +{"repo": "libp2p/go-libp2p-pubsub", "path": "pubsub.go", "func_name": "UnregisterTopicValidator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnregisterTopicValidator removes a validator from a topic.\n// Returns an error if there was no validator registered with the topic.", "docstring_tokens": ["UnregisterTopicValidator", "removes", "a", "validator", "from", "a", "topic", ".", "Returns", "an", "error", "if", "there", "was", "no", "validator", "registered", "with", "the", "topic", "."], "sha": "9db3dbdde90f44d1c420192c5cefd60682fbdbb9", "url": "https://github.com/libp2p/go-libp2p-pubsub/blob/9db3dbdde90f44d1c420192c5cefd60682fbdbb9/pubsub.go#L978-L986", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "stats/metrickey.go", "func_name": "DefaultMetricPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultMetricPrefix is the default mapping for metrics to statsd keys.\n// It uses a \"tchannel\" prefix for all stats.", "docstring_tokens": ["DefaultMetricPrefix", "is", "the", "default", "mapping", "for", "metrics", "to", "statsd", "keys", ".", "It", "uses", "a", "tchannel", "prefix", "for", "all", "stats", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/stats/metrickey.go#L31-L33", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "stats/metrickey.go", "func_name": "MetricWithPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MetricWithPrefix is the default mapping for metrics to statsd keys.", "docstring_tokens": ["MetricWithPrefix", "is", "the", "default", "mapping", "for", "metrics", "to", "statsd", "keys", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/stats/metrickey.go#L40-L74", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "json/call.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient returns a json.Client used to make outbound JSON calls.", "docstring_tokens": ["NewClient", "returns", "a", "json", ".", "Client", "used", "to", "make", "outbound", "JSON", "calls", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/json/call.go#L51-L60", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "json/call.go", "func_name": "Call", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Call makes a JSON call, with retries.", "docstring_tokens": ["Call", "makes", "a", "JSON", "call", "with", "retries", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/json/call.go#L102-L136", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "json/call.go", "func_name": "CallPeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CallPeer makes a JSON call using the given peer.", "docstring_tokens": ["CallPeer", "makes", "a", "JSON", "call", "using", "the", "given", "peer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/json/call.go#L155-L162", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "json/call.go", "func_name": "CallSC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CallSC makes a JSON call using the given subchannel.", "docstring_tokens": ["CallSC", "makes", "a", "JSON", "call", "using", "the", "given", "subchannel", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/json/call.go#L165-L172", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "http/response.go", "func_name": "ReadResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadResponse reads a http.Response from the given readers.", "docstring_tokens": ["ReadResponse", "reads", "a", "http", ".", "Response", "from", "the", "given", "readers", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/http/response.go#L33-L63", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "http/response.go", "func_name": "writeHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeHeaders writes out the HTTP headers as arg2, and creates the arg3 writer.", "docstring_tokens": ["writeHeaders", "writes", "out", "the", "HTTP", "headers", "as", "arg2", "and", "creates", "the", "arg3", "writer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/http/response.go#L90-L110", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "http/response.go", "func_name": "ResponseWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResponseWriter returns a http.ResponseWriter that will write to an underlying writer.\n// It also returns a function that should be called once the handler has completed.", "docstring_tokens": ["ResponseWriter", "returns", "a", "http", ".", "ResponseWriter", "that", "will", "write", "to", "an", "underlying", "writer", ".", "It", "also", "returns", "a", "function", "that", "should", "be", "called", "once", "the", "handler", "has", "completed", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/http/response.go#L136-L139", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/headers.go", "func_name": "ReadHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadHeaders reads key-value pairs encoded using WriteHeaders.", "docstring_tokens": ["ReadHeaders", "reads", "key", "-", "value", "pairs", "encoded", "using", "WriteHeaders", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/headers.go#L84-L90", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "benchmark/tcp_raw_relay.go", "func_name": "NewTCPRawRelay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTCPRawRelay creates a relay that just pipes data from one connection\n// to another directly.", "docstring_tokens": ["NewTCPRawRelay", "creates", "a", "relay", "that", "just", "pipes", "data", "from", "one", "connection", "to", "another", "directly", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/benchmark/tcp_raw_relay.go#L55-L59", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "hyperbahn/client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient creates a new Hyperbahn client using the given channel.\n// config is the environment-specific configuration for Hyperbahn such as the list of initial nodes.\n// opts are optional, and are used to customize the client.", "docstring_tokens": ["NewClient", "creates", "a", "new", "Hyperbahn", "client", "using", "the", "given", "channel", ".", "config", "is", "the", "environment", "-", "specific", "configuration", "for", "Hyperbahn", "such", "as", "the", "list", "of", "initial", "nodes", ".", "opts", "are", "optional", "and", "are", "used", "to", "customize", "the", "client", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/hyperbahn/client.go#L94-L126", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "hyperbahn/client.go", "func_name": "Advertise", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Advertise advertises the service with Hyperbahn, and returns any errors on initial advertisement.\n// Advertise can register multiple services hosted on the same endpoint.\n// If the advertisement succeeds, a goroutine is started to re-advertise periodically.", "docstring_tokens": ["Advertise", "advertises", "the", "service", "with", "Hyperbahn", "and", "returns", "any", "errors", "on", "initial", "advertisement", ".", "Advertise", "can", "register", "multiple", "services", "hosted", "on", "the", "same", "endpoint", ".", "If", "the", "advertisement", "succeeds", "a", "goroutine", "is", "started", "to", "re", "-", "advertise", "periodically", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/hyperbahn/client.go#L175-L185", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "json/handler.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle deserializes the JSON arguments and calls the underlying handler.", "docstring_tokens": ["Handle", "deserializes", "the", "JSON", "arguments", "and", "calls", "the", "underlying", "handler", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/json/handler.go#L127-L177", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "crossdock/server/server.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts the test server called by the Client and other upstream servers.", "docstring_tokens": ["Start", "starts", "the", "test", "server", "called", "by", "the", "Client", "and", "other", "upstream", "servers", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/crossdock/server/server.go#L60-L79", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "crossdock/server/server.go", "func_name": "Port", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Port returns the actual port the server listens to", "docstring_tokens": ["Port", "returns", "the", "actual", "port", "the", "server", "listens", "to"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/crossdock/server/server.go#L87-L91", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "SetStrategy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetStrategy sets customized peer selection strategy.", "docstring_tokens": ["SetStrategy", "sets", "customized", "peer", "selection", "strategy", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L83-L92", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds a peer to the list if it does not exist, or returns any existing peer.", "docstring_tokens": ["Add", "adds", "a", "peer", "to", "the", "list", "if", "it", "does", "not", "exist", "or", "returns", "any", "existing", "peer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L102-L120", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "GetNew", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNew returns a new, previously unselected peer from the peer list, or nil,\n// if no new unselected peer can be found.", "docstring_tokens": ["GetNew", "returns", "a", "new", "previously", "unselected", "peer", "from", "the", "peer", "list", "or", "nil", "if", "no", "new", "unselected", "peer", "can", "be", "found", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L124-L141", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns a peer from the peer list, or nil if none can be found,\n// will avoid previously selected peers if possible.", "docstring_tokens": ["Get", "returns", "a", "peer", "from", "the", "peer", "list", "or", "nil", "if", "none", "can", "be", "found", "will", "avoid", "previously", "selected", "peers", "if", "possible", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L145-L158", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove removes a peer from the peer list. It returns an error if the peer cannot be found.\n// Remove does not affect connections to the peer in any way.", "docstring_tokens": ["Remove", "removes", "a", "peer", "from", "the", "peer", "list", ".", "It", "returns", "an", "error", "if", "the", "peer", "cannot", "be", "found", ".", "Remove", "does", "not", "affect", "connections", "to", "the", "peer", "in", "any", "way", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L162-L176", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy returns a copy of the PeerList as a map from hostPort to peer.", "docstring_tokens": ["Copy", "returns", "a", "copy", "of", "the", "PeerList", "as", "a", "map", "from", "hostPort", "to", "peer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L226-L235", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "Len", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Len returns the length of the PeerList.", "docstring_tokens": ["Len", "returns", "the", "length", "of", "the", "PeerList", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L238-L242", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "exists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// exists checks if a hostport exists in the peer list.", "docstring_tokens": ["exists", "checks", "if", "a", "hostport", "exists", "in", "the", "peer", "list", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L245-L251", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "getPeerScore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getPeerScore is called to find the peer and its score from a host port key.\n// Note that at least a Read lock must be held to call this function.", "docstring_tokens": ["getPeerScore", "is", "called", "to", "find", "the", "peer", "and", "its", "score", "from", "a", "host", "port", "key", ".", "Note", "that", "at", "least", "a", "Read", "lock", "must", "be", "held", "to", "call", "this", "function", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L255-L261", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "onPeerChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// onPeerChange is called when there is a change that may cause the peer's score to change.\n// The new score is calculated, and the peer heap is updated with the new score if the score changes.", "docstring_tokens": ["onPeerChange", "is", "called", "when", "there", "is", "a", "change", "that", "may", "cause", "the", "peer", "s", "score", "to", "change", ".", "The", "new", "score", "is", "calculated", "and", "the", "peer", "heap", "is", "updated", "with", "the", "new", "score", "if", "the", "score", "changes", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L265-L282", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "updatePeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updatePeer is called to update the score of the peer given the existing score.\n// Note that a Write lock must be held to call this function.", "docstring_tokens": ["updatePeer", "is", "called", "to", "update", "the", "score", "of", "the", "peer", "given", "the", "existing", "score", ".", "Note", "that", "a", "Write", "lock", "must", "be", "held", "to", "call", "this", "function", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L286-L293", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "getConn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getConn treats inbound and outbound connections as a single virtual list\n// that can be indexed. The peer must be read-locked.", "docstring_tokens": ["getConn", "treats", "inbound", "and", "outbound", "connections", "as", "a", "single", "virtual", "list", "that", "can", "be", "indexed", ".", "The", "peer", "must", "be", "read", "-", "locked", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L361-L368", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "GetConnection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetConnection returns an active connection to this peer. If no active connections\n// are found, it will create a new outbound connection and return it.", "docstring_tokens": ["GetConnection", "returns", "an", "active", "connection", "to", "this", "peer", ".", "If", "no", "active", "connections", "are", "found", "it", "will", "create", "a", "new", "outbound", "connection", "and", "return", "it", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L402-L418", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "getConnectionRelay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getConnectionRelay gets a connection, and uses the given timeout to lazily\n// create a context if a new connection is required.", "docstring_tokens": ["getConnectionRelay", "gets", "a", "connection", "and", "uses", "the", "given", "timeout", "to", "lazily", "create", "a", "context", "if", "a", "new", "connection", "is", "required", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L422-L444", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "canRemove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// canRemove returns whether this peer can be safely removed from the root peer list.", "docstring_tokens": ["canRemove", "returns", "whether", "this", "peer", "can", "be", "safely", "removed", "from", "the", "root", "peer", "list", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L461-L466", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "addConnection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addConnection adds an active connection to the peer's connection list.\n// If a connection is not active, returns ErrInvalidConnectionState.", "docstring_tokens": ["addConnection", "adds", "an", "active", "connection", "to", "the", "peer", "s", "connection", "list", ".", "If", "a", "connection", "is", "not", "active", "returns", "ErrInvalidConnectionState", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L470-L485", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "removeConnection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeConnection will check remove the connection if it exists on connsPtr\n// and returns whether it removed the connection.", "docstring_tokens": ["removeConnection", "will", "check", "remove", "the", "connection", "if", "it", "exists", "on", "connsPtr", "and", "returns", "whether", "it", "removed", "the", "connection", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L496-L509", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "connectionCloseStateChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// connectionStateChanged is called when one of the peers' connections states changes.\n// All non-active connections are removed from the peer. The connection will\n// still be tracked by the channel until it's completely closed.", "docstring_tokens": ["connectionStateChanged", "is", "called", "when", "one", "of", "the", "peers", "connections", "states", "changes", ".", "All", "non", "-", "active", "connections", "are", "removed", "from", "the", "peer", ".", "The", "connection", "will", "still", "be", "tracked", "by", "the", "channel", "until", "it", "s", "completely", "closed", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L514-L531", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "Connect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Connect adds a new outbound connection to the peer.", "docstring_tokens": ["Connect", "adds", "a", "new", "outbound", "connection", "to", "the", "peer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L534-L536", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "BeginCall", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BeginCall starts a new call to this specific peer, returning an OutboundCall that can\n// be used to write the arguments of the call.", "docstring_tokens": ["BeginCall", "starts", "a", "new", "call", "to", "this", "specific", "peer", "returning", "an", "OutboundCall", "that", "can", "be", "used", "to", "write", "the", "arguments", "of", "the", "call", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L540-L561", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "NumConnections", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NumConnections returns the number of inbound and outbound connections for this peer.", "docstring_tokens": ["NumConnections", "returns", "the", "number", "of", "inbound", "and", "outbound", "connections", "for", "this", "peer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L564-L570", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "NumPendingOutbound", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NumPendingOutbound returns the number of pending outbound calls.", "docstring_tokens": ["NumPendingOutbound", "returns", "the", "number", "of", "pending", "outbound", "calls", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L573-L585", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer.go", "func_name": "isEphemeralHostPort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isEphemeralHostPort returns if hostPort is the default ephemeral hostPort.", "docstring_tokens": ["isEphemeralHostPort", "returns", "if", "hostPort", "is", "the", "default", "ephemeral", "hostPort", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer.go#L612-L614", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "examples/keyvalue/server/server.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns the value stored for the given key.", "docstring_tokens": ["Get", "returns", "the", "value", "stored", "for", "the", "given", "key", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/examples/keyvalue/server/server.go#L91-L104", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "examples/keyvalue/server/server.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set sets the value for a given key.", "docstring_tokens": ["Set", "sets", "the", "value", "for", "a", "given", "key", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/examples/keyvalue/server/server.go#L107-L119", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "examples/keyvalue/server/server.go", "func_name": "ClearAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClearAll clears all the keys.", "docstring_tokens": ["ClearAll", "clears", "all", "the", "keys", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/examples/keyvalue/server/server.go#L127-L137", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "NewChannel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewChannel creates a new Channel. The new channel can be used to send outbound requests\n// to peers, but will not listen or handling incoming requests until one of ListenAndServe\n// or Serve is called. The local service name should be passed to serviceName.", "docstring_tokens": ["NewChannel", "creates", "a", "new", "Channel", ".", "The", "new", "channel", "can", "be", "used", "to", "send", "outbound", "requests", "to", "peers", "but", "will", "not", "listen", "or", "handling", "incoming", "requests", "until", "one", "of", "ListenAndServe", "or", "Serve", "is", "called", ".", "The", "local", "service", "name", "should", "be", "passed", "to", "serviceName", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L201-L304", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "Serve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Serve serves incoming requests using the provided listener.\n// The local peer info is set synchronously, but the actual socket listening is done in\n// a separate goroutine.", "docstring_tokens": ["Serve", "serves", "incoming", "requests", "using", "the", "provided", "listener", ".", "The", "local", "peer", "info", "is", "set", "synchronously", "but", "the", "actual", "socket", "listening", "is", "done", "in", "a", "separate", "goroutine", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L314-L335", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "ListenAndServe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenAndServe listens on the given address and serves incoming requests.\n// The port may be 0, in which case the channel will use an OS assigned port\n// This method does not block as the handling of connections is done in a goroutine.", "docstring_tokens": ["ListenAndServe", "listens", "on", "the", "given", "address", "and", "serves", "incoming", "requests", ".", "The", "port", "may", "be", "0", "in", "which", "case", "the", "channel", "will", "use", "an", "OS", "assigned", "port", "This", "method", "does", "not", "block", "as", "the", "handling", "of", "connections", "is", "done", "in", "a", "goroutine", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L340-L357", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register registers a handler for a method.\n//\n// The handler is registered with the service name used when the Channel was\n// created. To register a handler with a different service name, obtain a\n// SubChannel for that service with GetSubChannel, and Register a handler\n// under that. You may also use SetHandler on a SubChannel to set up a\n// catch-all Handler for that service. See the docs for SetHandler for more\n// information.\n//\n// Register panics if the channel was constructed with an alternate root\n// handler.", "docstring_tokens": ["Register", "registers", "a", "handler", "for", "a", "method", ".", "The", "handler", "is", "registered", "with", "the", "service", "name", "used", "when", "the", "Channel", "was", "created", ".", "To", "register", "a", "handler", "with", "a", "different", "service", "name", "obtain", "a", "SubChannel", "for", "that", "service", "with", "GetSubChannel", "and", "Register", "a", "handler", "under", "that", ".", "You", "may", "also", "use", "SetHandler", "on", "a", "SubChannel", "to", "set", "up", "a", "catch", "-", "all", "Handler", "for", "that", "service", ".", "See", "the", "docs", "for", "SetHandler", "for", "more", "information", ".", "Register", "panics", "if", "the", "channel", "was", "constructed", "with", "an", "alternate", "root", "handler", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L392-L397", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "PeerInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeerInfo returns the current peer info for the channel", "docstring_tokens": ["PeerInfo", "returns", "the", "current", "peer", "info", "for", "the", "channel"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L400-L406", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "GetSubChannel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSubChannel returns a SubChannel for the given service name. If the subchannel does not\n// exist, it is created.", "docstring_tokens": ["GetSubChannel", "returns", "a", "SubChannel", "for", "the", "given", "service", "name", ".", "If", "the", "subchannel", "does", "not", "exist", "it", "is", "created", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L424-L432", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "serve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// serve runs the listener to accept and manage new incoming connections, blocking\n// until the channel is closed.", "docstring_tokens": ["serve", "runs", "the", "listener", "to", "accept", "and", "manage", "new", "incoming", "connections", "blocking", "until", "the", "channel", "is", "closed", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L456-L503", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "Ping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ping sends a ping message to the given hostPort and waits for a response.", "docstring_tokens": ["Ping", "sends", "a", "ping", "message", "to", "the", "given", "hostPort", "and", "waits", "for", "a", "response", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L506-L514", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "StatsTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StatsTags returns the common tags that should be used when reporting stats.\n// It returns a new map for each call.", "docstring_tokens": ["StatsTags", "returns", "the", "common", "tags", "that", "should", "be", "used", "when", "reporting", "stats", ".", "It", "returns", "a", "new", "map", "for", "each", "call", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L528-L534", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "Connect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Connect creates a new outbound connection to hostPort.", "docstring_tokens": ["Connect", "creates", "a", "new", "outbound", "connection", "to", "hostPort", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L542-L608", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "exchangeUpdated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// exchangeUpdated updates the peer heap.", "docstring_tokens": ["exchangeUpdated", "updates", "the", "peer", "heap", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L611-L623", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "updatePeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updatePeer updates the score of the peer and update it's position in heap as well.", "docstring_tokens": ["updatePeer", "updates", "the", "score", "of", "the", "peer", "and", "update", "it", "s", "position", "in", "heap", "as", "well", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L626-L630", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "addConnection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addConnection adds the connection to the channel's list of connection\n// if the channel is in a valid state to accept this connection. It returns\n// whether the connection was added.", "docstring_tokens": ["addConnection", "adds", "the", "connection", "to", "the", "channel", "s", "list", "of", "connection", "if", "the", "channel", "is", "in", "a", "valid", "state", "to", "accept", "this", "connection", ".", "It", "returns", "whether", "the", "connection", "was", "added", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L635-L652", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "removeClosedConn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeClosedConn removes a connection if it's closed.\n// Until a connection is fully closed, the channel must keep track of it.", "docstring_tokens": ["removeClosedConn", "removes", "a", "connection", "if", "it", "s", "closed", ".", "Until", "a", "connection", "is", "fully", "closed", "the", "channel", "must", "keep", "track", "of", "it", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L689-L697", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "connectionCloseStateChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// connectionCloseStateChange is called when a connection's close state changes.", "docstring_tokens": ["connectionCloseStateChange", "is", "called", "when", "a", "connection", "s", "close", "state", "changes", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L710-L759", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "channel.go", "func_name": "State", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// State returns the current channel state.", "docstring_tokens": ["State", "returns", "the", "current", "channel", "state", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/channel.go#L780-L786", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/reader.go", "func_name": "NewReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReader returns a reader that reads typed values from the reader.", "docstring_tokens": ["NewReader", "returns", "a", "reader", "that", "reads", "typed", "values", "from", "the", "reader", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/reader.go#L45-L50", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/reader.go", "func_name": "ReadUint16", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadUint16 reads a uint16.", "docstring_tokens": ["ReadUint16", "reads", "a", "uint16", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/reader.go#L53-L66", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/reader.go", "func_name": "ReadString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadString reads a string of length n.", "docstring_tokens": ["ReadString", "reads", "a", "string", "of", "length", "n", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/reader.go#L69-L89", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/reader.go", "func_name": "ReadLen16String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadLen16String reads a uint16-length prefixed string.", "docstring_tokens": ["ReadLen16String", "reads", "a", "uint16", "-", "length", "prefixed", "string", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/reader.go#L92-L95", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "crossdock/behavior/trace/behavior.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register function adds JSON and Thrift handlers to the server channel ch", "docstring_tokens": ["Register", "function", "adds", "JSON", "and", "Thrift", "handlers", "to", "the", "server", "channel", "ch"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/crossdock/behavior/trace/behavior.go#L60-L63", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "crossdock/behavior/trace/behavior.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run executes the trace behavior", "docstring_tokens": ["Run", "executes", "the", "trace", "behavior"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/crossdock/behavior/trace/behavior.go#L66-L119", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay_timer_pool.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns a relay timer that has not started. Timers must be started explicitly\n// using the Start function.", "docstring_tokens": ["Get", "returns", "a", "relay", "timer", "that", "has", "not", "started", ".", "Timers", "must", "be", "started", "explicitly", "using", "the", "Start", "function", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay_timer_pool.go#L66-L85", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay_timer_pool.go", "func_name": "Put", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Put returns a relayTimer back to the pool.", "docstring_tokens": ["Put", "returns", "a", "relayTimer", "back", "to", "the", "pool", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay_timer_pool.go#L88-L95", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay_timer_pool.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts a timer with the given duration for the specified ID.", "docstring_tokens": ["Start", "starts", "a", "timer", "with", "the", "given", "duration", "for", "the", "specified", "ID", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay_timer_pool.go#L98-L112", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay_timer_pool.go", "func_name": "Release", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Release releases a timer back to the timer pool. The timer MUST have run or be\n// stopped before Release is called.", "docstring_tokens": ["Release", "releases", "a", "timer", "back", "to", "the", "timer", "pool", ".", "The", "timer", "MUST", "have", "run", "or", "be", "stopped", "before", "Release", "is", "called", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay_timer_pool.go#L137-L144", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "logger.go", "func_name": "NewLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLogger returns a Logger that writes to the given writer.", "docstring_tokens": ["NewLogger", "returns", "a", "Logger", "that", "writes", "to", "the", "given", "writer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/logger.go#L119-L121", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "benchmark/tcp_frame_relay.go", "func_name": "NewTCPFrameRelay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTCPFrameRelay relays frames from one connection to another. It reads\n// and writes frames using the TChannel frame functions.", "docstring_tokens": ["NewTCPFrameRelay", "relays", "frames", "from", "one", "connection", "to", "another", ".", "It", "reads", "and", "writes", "frames", "using", "the", "TChannel", "frame", "functions", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/benchmark/tcp_frame_relay.go#L36-L46", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "stats/tally.go", "func_name": "tallyTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a sub-scope for this set of known tags.", "docstring_tokens": ["Create", "a", "sub", "-", "scope", "for", "this", "set", "of", "known", "tags", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/stats/tally.go#L117-L134", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "subchannel.go", "func_name": "Isolated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Isolated is a SubChannelOption that creates an isolated subchannel.", "docstring_tokens": ["Isolated", "is", "a", "SubChannelOption", "that", "creates", "an", "isolated", "subchannel", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/subchannel.go#L35-L40", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "subchannel.go", "func_name": "Isolated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Isolated returns whether this subchannel is an isolated subchannel.", "docstring_tokens": ["Isolated", "returns", "whether", "this", "subchannel", "is", "an", "isolated", "subchannel", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/subchannel.go#L100-L104", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "subchannel.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register registers a handler on the subchannel for the given method.\n//\n// This function panics if the Handler for the SubChannel was overwritten with\n// SetHandler.", "docstring_tokens": ["Register", "registers", "a", "handler", "on", "the", "subchannel", "for", "the", "given", "method", ".", "This", "function", "panics", "if", "the", "Handler", "for", "the", "SubChannel", "was", "overwritten", "with", "SetHandler", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/subchannel.go#L110-L119", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "subchannel.go", "func_name": "GetHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHandlers returns all handlers registered on this subchannel by method name.\n//\n// This function panics if the Handler for the SubChannel was overwritten with\n// SetHandler.", "docstring_tokens": ["GetHandlers", "returns", "all", "handlers", "registered", "on", "this", "subchannel", "by", "method", "name", ".", "This", "function", "panics", "if", "the", "Handler", "for", "the", "SubChannel", "was", "overwritten", "with", "SetHandler", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/subchannel.go#L125-L141", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "subchannel.go", "func_name": "StatsTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StatsTags returns the stats tags for this subchannel.", "docstring_tokens": ["StatsTags", "returns", "the", "stats", "tags", "for", "this", "subchannel", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/subchannel.go#L164-L168", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "subchannel.go", "func_name": "registerNewSubChannel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register a new subchannel for the given serviceName", "docstring_tokens": ["Register", "a", "new", "subchannel", "for", "the", "given", "serviceName"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/subchannel.go#L176-L191", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "subchannel.go", "func_name": "get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get subchannel if, we have one", "docstring_tokens": ["Get", "subchannel", "if", "we", "have", "one"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/subchannel.go#L194-L199", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "subchannel.go", "func_name": "getOrAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOrAdd a subchannel for the given serviceName on the map", "docstring_tokens": ["GetOrAdd", "a", "subchannel", "for", "the", "given", "serviceName", "on", "the", "map"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/subchannel.go#L202-L208", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "hyperbahn/discover.go", "func_name": "Discover", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Discover queries Hyperbahn for a list of peers that are currently\n// advertised with the specified service name.", "docstring_tokens": ["Discover", "queries", "Hyperbahn", "for", "a", "list", "of", "peers", "that", "are", "currently", "advertised", "with", "the", "specified", "service", "name", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/hyperbahn/discover.go#L32-L47", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "crossdock/client/client.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start begins a Crossdock client in the background.", "docstring_tokens": ["Start", "begins", "a", "Crossdock", "client", "in", "the", "background", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/crossdock/client/client.go#L43-L51", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "crossdock/client/client.go", "func_name": "listen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Listen initializes the server", "docstring_tokens": ["Listen", "initializes", "the", "server"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/crossdock/client/client.go#L54-L68", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "http/request.go", "func_name": "WriteRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteRequest writes a http.Request to the given writers.", "docstring_tokens": ["WriteRequest", "writes", "a", "http", ".", "Request", "to", "the", "given", "writers", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/http/request.go#L32-L61", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "http/request.go", "func_name": "ReadRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadRequest reads a http.Request from the given readers.", "docstring_tokens": ["ReadRequest", "reads", "a", "http", ".", "Request", "from", "the", "given", "readers", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/http/request.go#L64-L85", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "NewReadBufferWithSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReadBufferWithSize returns a ReadBuffer with a given capacity", "docstring_tokens": ["NewReadBufferWithSize", "returns", "a", "ReadBuffer", "with", "a", "given", "capacity"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L56-L58", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "ReadByte", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadByte returns the next byte from the buffer.", "docstring_tokens": ["ReadByte", "returns", "the", "next", "byte", "from", "the", "buffer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L67-L80", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "ReadBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadBytes returns the next n bytes from the buffer", "docstring_tokens": ["ReadBytes", "returns", "the", "next", "n", "bytes", "from", "the", "buffer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L83-L96", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "ReadString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadString returns a string of size n from the buffer", "docstring_tokens": ["ReadString", "returns", "a", "string", "of", "size", "n", "from", "the", "buffer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L99-L106", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "ReadUint16", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadUint16 returns the next value in the buffer as a uint16", "docstring_tokens": ["ReadUint16", "returns", "the", "next", "value", "in", "the", "buffer", "as", "a", "uint16"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L109-L115", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "ReadUint32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadUint32 returns the next value in the buffer as a uint32", "docstring_tokens": ["ReadUint32", "returns", "the", "next", "value", "in", "the", "buffer", "as", "a", "uint32"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L118-L124", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "ReadUint64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadUint64 returns the next value in the buffer as a uint64", "docstring_tokens": ["ReadUint64", "returns", "the", "next", "value", "in", "the", "buffer", "as", "a", "uint64"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L127-L133", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "ReadUvarint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadUvarint reads an unsigned varint from the buffer.", "docstring_tokens": ["ReadUvarint", "reads", "an", "unsigned", "varint", "from", "the", "buffer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L136-L139", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "ReadLen8String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadLen8String reads an 8-bit length preceded string value", "docstring_tokens": ["ReadLen8String", "reads", "an", "8", "-", "bit", "length", "preceded", "string", "value"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L142-L145", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "ReadLen16String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadLen16String reads a 16-bit length preceded string value", "docstring_tokens": ["ReadLen16String", "reads", "a", "16", "-", "bit", "length", "preceded", "string", "value"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L148-L151", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "FillFrom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FillFrom fills the buffer from a reader", "docstring_tokens": ["FillFrom", "fills", "the", "buffer", "from", "a", "reader"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L159-L167", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "Wrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap initializes the buffer to read from the given byte slice", "docstring_tokens": ["Wrap", "initializes", "the", "buffer", "to", "read", "from", "the", "given", "byte", "slice"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L170-L174", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "WriteSingleByte", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteSingleByte writes a single byte to the buffer", "docstring_tokens": ["WriteSingleByte", "writes", "a", "single", "byte", "to", "the", "buffer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L198-L210", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "WriteBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteBytes writes a slice of bytes to the buffer", "docstring_tokens": ["WriteBytes", "writes", "a", "slice", "of", "bytes", "to", "the", "buffer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L213-L217", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "WriteUint16", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteUint16 writes a big endian encoded uint16 value to the buffer", "docstring_tokens": ["WriteUint16", "writes", "a", "big", "endian", "encoded", "uint16", "value", "to", "the", "buffer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L220-L224", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "WriteUint32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteUint32 writes a big endian uint32 value to the buffer", "docstring_tokens": ["WriteUint32", "writes", "a", "big", "endian", "uint32", "value", "to", "the", "buffer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L227-L231", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "WriteUint64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteUint64 writes a big endian uint64 to the buffer", "docstring_tokens": ["WriteUint64", "writes", "a", "big", "endian", "uint64", "to", "the", "buffer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L234-L238", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "WriteUvarint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteUvarint writes an unsigned varint to the buffer", "docstring_tokens": ["WriteUvarint", "writes", "an", "unsigned", "varint", "to", "the", "buffer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L241-L248", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "WriteString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteString writes a string to the buffer", "docstring_tokens": ["WriteString", "writes", "a", "string", "to", "the", "buffer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L251-L257", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "WriteLen8String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteLen8String writes an 8-bit length preceded string", "docstring_tokens": ["WriteLen8String", "writes", "an", "8", "-", "bit", "length", "preceded", "string"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L260-L267", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "WriteLen16String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteLen16String writes a 16-bit length preceded string", "docstring_tokens": ["WriteLen16String", "writes", "a", "16", "-", "bit", "length", "preceded", "string"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L270-L277", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "DeferByte", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeferByte reserves space in the buffer for a single byte, and returns a\n// reference that can be used to update that byte later", "docstring_tokens": ["DeferByte", "reserves", "space", "in", "the", "buffer", "for", "a", "single", "byte", "and", "returns", "a", "reference", "that", "can", "be", "used", "to", "update", "that", "byte", "later"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L281-L292", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "DeferBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeferBytes reserves space in the buffer for a fixed sequence of bytes, and\n// returns a reference that can be used to update those bytes", "docstring_tokens": ["DeferBytes", "reserves", "space", "in", "the", "buffer", "for", "a", "fixed", "sequence", "of", "bytes", "and", "returns", "a", "reference", "that", "can", "be", "used", "to", "update", "those", "bytes"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L314-L316", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "FlushTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FlushTo flushes the written buffer to the given writer", "docstring_tokens": ["FlushTo", "flushes", "the", "written", "buffer", "to", "the", "given", "writer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L347-L350", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset resets the buffer to an empty state, ready for writing", "docstring_tokens": ["Reset", "resets", "the", "buffer", "to", "an", "empty", "state", "ready", "for", "writing"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L356-L359", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "Wrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap initializes the buffer to wrap the given byte slice", "docstring_tokens": ["Wrap", "initializes", "the", "buffer", "to", "wrap", "the", "given", "byte", "slice"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L374-L377", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates the uint16 in the buffer", "docstring_tokens": ["Update", "updates", "the", "uint16", "in", "the", "buffer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L393-L397", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates the uint32 in the buffer", "docstring_tokens": ["Update", "updates", "the", "uint32", "in", "the", "buffer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L403-L407", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates the uint64 in the buffer", "docstring_tokens": ["Update", "updates", "the", "uint64", "in", "the", "buffer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L413-L417", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates the bytes in the buffer", "docstring_tokens": ["Update", "updates", "the", "bytes", "in", "the", "buffer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L423-L427", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "typed/buffer.go", "func_name": "UpdateString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateString updates the bytes in the buffer from a string", "docstring_tokens": ["UpdateString", "updates", "the", "bytes", "in", "the", "buffer", "from", "a", "string"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/typed/buffer.go#L430-L434", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "fragmenting_reader.go", "func_name": "ArgReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// The ArgReader will handle fragmentation as needed. Once the argument has\n// been read, the ArgReader must be closed.", "docstring_tokens": ["The", "ArgReader", "will", "handle", "fragmentation", "as", "needed", ".", "Once", "the", "argument", "has", "been", "read", "the", "ArgReader", "must", "be", "closed", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/fragmenting_reader.go#L105-L110", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "fragmenting_writer.go", "func_name": "finish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// finish finishes the fragment, updating the final checksum and fragment flags", "docstring_tokens": ["finish", "finishes", "the", "fragment", "updating", "the", "final", "checksum", "and", "fragment", "flags"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/fragmenting_writer.go#L53-L60", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "fragmenting_writer.go", "func_name": "newWritableChunk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newWritableChunk creates a new writable chunk around a checksum and a buffer to hold data", "docstring_tokens": ["newWritableChunk", "creates", "a", "new", "writable", "chunk", "around", "a", "checksum", "and", "a", "buffer", "to", "hold", "data"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/fragmenting_writer.go#L72-L79", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "fragmenting_writer.go", "func_name": "writeAsFits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeAsFits writes as many bytes from the given slice as fits into the chunk", "docstring_tokens": ["writeAsFits", "writes", "as", "many", "bytes", "from", "the", "given", "slice", "as", "fits", "into", "the", "chunk"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/fragmenting_writer.go#L82-L93", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "fragmenting_writer.go", "func_name": "newFragmentingWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newFragmentingWriter creates a new fragmenting writer", "docstring_tokens": ["newFragmentingWriter", "creates", "a", "new", "fragmenting", "writer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/fragmenting_writer.go#L141-L148", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "fragmenting_writer.go", "func_name": "ArgWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArgWriter returns an ArgWriter to write an argument. The ArgWriter will handle\n// fragmentation as needed. Once the argument is written, the ArgWriter must be closed.", "docstring_tokens": ["ArgWriter", "returns", "an", "ArgWriter", "to", "write", "an", "argument", ".", "The", "ArgWriter", "will", "handle", "fragmentation", "as", "needed", ".", "Once", "the", "argument", "is", "written", "the", "ArgWriter", "must", "be", "closed", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/fragmenting_writer.go#L152-L157", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "fragmenting_writer.go", "func_name": "BeginArgument", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BeginArgument tells the writer that the caller is starting a new argument.\n// Must not be called while an existing argument is in place", "docstring_tokens": ["BeginArgument", "tells", "the", "writer", "that", "the", "caller", "is", "starting", "a", "new", "argument", ".", "Must", "not", "be", "called", "while", "an", "existing", "argument", "is", "in", "place"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/fragmenting_writer.go#L161-L197", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "fragmenting_writer.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes argument data, breaking it into fragments as needed", "docstring_tokens": ["Write", "writes", "argument", "data", "breaking", "it", "into", "fragments", "as", "needed"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/fragmenting_writer.go#L200-L227", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "fragmenting_writer.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush flushes the current fragment, and starts a new fragment and chunk.", "docstring_tokens": ["Flush", "flushes", "the", "current", "fragment", "and", "starts", "a", "new", "fragment", "and", "chunk", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/fragmenting_writer.go#L230-L243", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "fragmenting_writer.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close ends the current argument.", "docstring_tokens": ["Close", "ends", "the", "current", "argument", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/fragmenting_writer.go#L246-L296", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "outbound.go", "func_name": "handleCallRes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleCallRes handles an incoming call req message, forwarding the\n// frame to the response channel waiting for it", "docstring_tokens": ["handleCallRes", "handles", "an", "incoming", "call", "req", "message", "forwarding", "the", "frame", "to", "the", "response", "channel", "waiting", "for", "it"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/outbound.go#L142-L147", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "outbound.go", "func_name": "Arg2Reader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Arg2Reader returns an ArgReader to read the second argument.\n// The ReadCloser must be closed once the argument has been read.", "docstring_tokens": ["Arg2Reader", "returns", "an", "ArgReader", "to", "read", "the", "second", "argument", ".", "The", "ReadCloser", "must", "be", "closed", "once", "the", "argument", "has", "been", "read", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/outbound.go#L251-L258", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "outbound.go", "func_name": "handleError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleError handles an error coming back from the peer. If the error is a\n// protocol level error, the entire connection will be closed. If the error is\n// a request specific error, it will be written to the request's response\n// channel and converted into a SystemError returned from the next reader or\n// access call.\n// The return value is whether the frame should be released immediately.", "docstring_tokens": ["handleError", "handles", "an", "error", "coming", "back", "from", "the", "peer", ".", "If", "the", "error", "is", "a", "protocol", "level", "error", "the", "entire", "connection", "will", "be", "closed", ".", "If", "the", "error", "is", "a", "request", "specific", "error", "it", "will", "be", "written", "to", "the", "request", "s", "response", "channel", "and", "converted", "into", "a", "SystemError", "returned", "from", "the", "next", "reader", "or", "access", "call", ".", "The", "return", "value", "is", "whether", "the", "frame", "should", "be", "released", "immediately", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/outbound.go#L272-L308", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "outbound.go", "func_name": "doneReading", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// doneReading shuts down the message exchange for this call.\n// For outgoing calls, the last message is reading the call response.", "docstring_tokens": ["doneReading", "shuts", "down", "the", "message", "exchange", "for", "this", "call", ".", "For", "outgoing", "calls", "the", "last", "message", "is", "reading", "the", "call", "response", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/outbound.go#L320-L363", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "reqres.go", "func_name": "newFragment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newFragment creates a new fragment for marshaling into", "docstring_tokens": ["newFragment", "creates", "a", "new", "fragment", "for", "marshaling", "into"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/reqres.go#L111-L136", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "reqres.go", "func_name": "flushFragment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flushFragment sends a fragment to the peer over the connection", "docstring_tokens": ["flushFragment", "sends", "a", "fragment", "to", "the", "peer", "over", "the", "connection"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/reqres.go#L139-L158", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "reqres.go", "func_name": "failed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// failed marks the writer as having failed", "docstring_tokens": ["failed", "marks", "the", "writer", "as", "having", "failed"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/reqres.go#L161-L170", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "reqres.go", "func_name": "arg1Reader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// arg1Reader returns an ArgReader to read arg1.", "docstring_tokens": ["arg1Reader", "returns", "an", "ArgReader", "to", "read", "arg1", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/reqres.go#L195-L197", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "reqres.go", "func_name": "arg2Reader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// arg2Reader returns an ArgReader to read arg2.", "docstring_tokens": ["arg2Reader", "returns", "an", "ArgReader", "to", "read", "arg2", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/reqres.go#L200-L202", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "reqres.go", "func_name": "arg3Reader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// arg3Reader returns an ArgReader to read arg3.", "docstring_tokens": ["arg3Reader", "returns", "an", "ArgReader", "to", "read", "arg3", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/reqres.go#L205-L207", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "reqres.go", "func_name": "argReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// argReader returns an ArgReader that can be used to read an argument. The\n// ReadCloser must be closed once the argument has been read.", "docstring_tokens": ["argReader", "returns", "an", "ArgReader", "that", "can", "be", "used", "to", "read", "an", "argument", ".", "The", "ReadCloser", "must", "be", "closed", "once", "the", "argument", "has", "been", "read", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/reqres.go#L211-L223", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "reqres.go", "func_name": "recvNextFragment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recvNextFragment receives the next fragment from the underlying message exchange.", "docstring_tokens": ["recvNextFragment", "receives", "the", "next", "fragment", "from", "the", "underlying", "message", "exchange", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/reqres.go#L226-L256", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "reqres.go", "func_name": "releasePreviousFragment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// releasePreviousFrament releases the last fragment returned by the reader if\n// it's still around. This operation is idempotent.", "docstring_tokens": ["releasePreviousFrament", "releases", "the", "last", "fragment", "returned", "by", "the", "reader", "if", "it", "s", "still", "around", ".", "This", "operation", "is", "idempotent", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/reqres.go#L260-L266", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "reqres.go", "func_name": "failed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// failed indicates the reader failed", "docstring_tokens": ["failed", "indicates", "the", "reader", "failed"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/reqres.go#L269-L278", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "reqres.go", "func_name": "parseInboundFragment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseInboundFragment parses an incoming fragment based on the given message", "docstring_tokens": ["parseInboundFragment", "parses", "an", "incoming", "fragment", "based", "on", "the", "given", "message"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/reqres.go#L281-L296", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/context.go", "func_name": "NewContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewContext returns a Context that can be used to make Thrift calls.", "docstring_tokens": ["NewContext", "returns", "a", "Context", "that", "can", "be", "used", "to", "make", "Thrift", "calls", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/context.go#L34-L37", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/context.go", "func_name": "WithHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHeaders returns a Context that can be used to make a call with request headers.", "docstring_tokens": ["WithHeaders", "returns", "a", "Context", "that", "can", "be", "used", "to", "make", "a", "call", "with", "request", "headers", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/context.go#L45-L47", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "health.go", "func_name": "healthCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// healthCheck will do periodic pings on the connection to check the state of the connection.\n// We accept connID on the stack so can more easily debug panics or leaked goroutines.", "docstring_tokens": ["healthCheck", "will", "do", "periodic", "pings", "on", "the", "connection", "to", "check", "the", "state", "of", "the", "connection", ".", "We", "accept", "connID", "on", "the", "stack", "so", "can", "more", "easily", "debug", "panics", "or", "leaked", "goroutines", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/health.go#L111-L161", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_builder.go", "func_name": "SetTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTimeout sets the timeout for the Context.", "docstring_tokens": ["SetTimeout", "sets", "the", "timeout", "for", "the", "Context", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_builder.go#L77-L80", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_builder.go", "func_name": "AddHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddHeader adds a single application header to the Context.", "docstring_tokens": ["AddHeader", "adds", "a", "single", "application", "header", "to", "the", "Context", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_builder.go#L83-L90", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_builder.go", "func_name": "SetHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHeaders sets the application headers for this Context.\n// If there is a ParentContext, its headers will be ignored after the call to this method.", "docstring_tokens": ["SetHeaders", "sets", "the", "application", "headers", "for", "this", "Context", ".", "If", "there", "is", "a", "ParentContext", "its", "headers", "will", "be", "ignored", "after", "the", "call", "to", "this", "method", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_builder.go#L94-L98", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_builder.go", "func_name": "SetConnectTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetConnectTimeout sets the ConnectionTimeout for this context.\n// The context timeout applies to the whole call, while the connect\n// timeout only applies to creating a new connection.", "docstring_tokens": ["SetConnectTimeout", "sets", "the", "ConnectionTimeout", "for", "this", "context", ".", "The", "context", "timeout", "applies", "to", "the", "whole", "call", "while", "the", "connect", "timeout", "only", "applies", "to", "creating", "a", "new", "connection", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_builder.go#L139-L142", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_builder.go", "func_name": "SetRetryOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetRetryOptions sets RetryOptions in the context.", "docstring_tokens": ["SetRetryOptions", "sets", "RetryOptions", "in", "the", "context", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_builder.go#L164-L167", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_builder.go", "func_name": "SetTimeoutPerAttempt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTimeoutPerAttempt sets TimeoutPerAttempt in RetryOptions.", "docstring_tokens": ["SetTimeoutPerAttempt", "sets", "TimeoutPerAttempt", "in", "RetryOptions", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_builder.go#L170-L176", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_builder.go", "func_name": "SetParentContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetParentContext sets the parent for the Context.", "docstring_tokens": ["SetParentContext", "sets", "the", "parent", "for", "the", "Context", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_builder.go#L179-L182", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_builder.go", "func_name": "Build", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Build returns a ContextWithHeaders that can be used to make calls.", "docstring_tokens": ["Build", "returns", "a", "ContextWithHeaders", "that", "can", "be", "used", "to", "make", "calls", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_builder.go#L210-L244", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "calloptions.go", "func_name": "overrideHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// overrideHeaders sets headers if the call options contains non-default values.", "docstring_tokens": ["overrideHeaders", "sets", "headers", "if", "the", "call", "options", "contains", "non", "-", "default", "values", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/calloptions.go#L72-L88", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "arguments.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads from the reader into the byte slice.", "docstring_tokens": ["Read", "reads", "from", "the", "reader", "into", "the", "byte", "slice", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/arguments.go#L86-L92", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "arguments.go", "func_name": "ReadJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadJSON deserializes JSON from the underlying reader into data.", "docstring_tokens": ["ReadJSON", "deserializes", "JSON", "from", "the", "underlying", "reader", "into", "data", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/arguments.go#L95-L110", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "arguments.go", "func_name": "NewArgWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewArgWriter wraps the result of calling ArgXWriter to provider a simpler\n// interface for writing arguments.", "docstring_tokens": ["NewArgWriter", "wraps", "the", "result", "of", "calling", "ArgXWriter", "to", "provider", "a", "simpler", "interface", "for", "writing", "arguments", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/arguments.go#L120-L122", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "arguments.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes the given bytes to the underlying writer.", "docstring_tokens": ["Write", "writes", "the", "given", "bytes", "to", "the", "underlying", "writer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/arguments.go#L137-L142", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "arguments.go", "func_name": "WriteJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteJSON writes the given object as JSON.", "docstring_tokens": ["WriteJSON", "writes", "the", "given", "object", "as", "JSON", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/arguments.go#L145-L150", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "pprof/pprof.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register registers pprof endpoints on the given registrar under _pprof.\n// The _pprof endpoint uses as-http and is a tunnel to the default serve mux.", "docstring_tokens": ["Register", "registers", "pprof", "endpoints", "on", "the", "given", "registrar", "under", "_pprof", ".", "The", "_pprof", "endpoint", "uses", "as", "-", "http", "and", "is", "a", "tunnel", "to", "the", "default", "serve", "mux", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/pprof/pprof.go#L41-L54", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay.go", "func_name": "Count", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Count returns the number of non-tombstone items in the relay.", "docstring_tokens": ["Count", "returns", "the", "number", "of", "non", "-", "tombstone", "items", "in", "the", "relay", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay.go#L86-L91", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get checks for a relay item by ID, returning the item and a bool indicating\n// whether the item was found.", "docstring_tokens": ["Get", "checks", "for", "a", "relay", "item", "by", "ID", "returning", "the", "item", "and", "a", "bool", "indicating", "whether", "the", "item", "was", "found", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay.go#L95-L101", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds a relay item.", "docstring_tokens": ["Add", "adds", "a", "relay", "item", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay.go#L104-L108", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay.go", "func_name": "Entomb", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Entomb sets the tomb bit on a relayItem and schedules a garbage collection. It\n// returns the entombed item, along with a bool indicating whether we completed\n// a relayed call.", "docstring_tokens": ["Entomb", "sets", "the", "tomb", "bit", "on", "a", "relayItem", "and", "schedules", "a", "garbage", "collection", ".", "It", "returns", "the", "entombed", "item", "along", "with", "a", "bool", "indicating", "whether", "we", "completed", "a", "relayed", "call", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay.go#L135-L162", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay.go", "func_name": "NewRelayer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRelayer constructs a Relayer.", "docstring_tokens": ["NewRelayer", "constructs", "a", "Relayer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay.go#L202-L220", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay.go", "func_name": "Relay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Relay is called for each frame that is read on the connection.", "docstring_tokens": ["Relay", "is", "called", "for", "each", "frame", "that", "is", "read", "on", "the", "connection", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay.go#L223-L237", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay.go", "func_name": "Receive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Receive receives frames intended for this connection.\n// It returns whether the frame was sent and a reason for failure if it failed.", "docstring_tokens": ["Receive", "receives", "frames", "intended", "for", "this", "connection", ".", "It", "returns", "whether", "the", "frame", "was", "sent", "and", "a", "reason", "for", "failure", "if", "it", "failed", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay.go#L241-L299", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay.go", "func_name": "handleNonCallReq", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle all frames except messageTypeCallReq.", "docstring_tokens": ["Handle", "all", "frames", "except", "messageTypeCallReq", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay.go#L439-L473", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay.go", "func_name": "addRelayItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addRelayItem adds a relay item to either outbound or inbound.", "docstring_tokens": ["addRelayItem", "adds", "a", "relay", "item", "to", "either", "outbound", "or", "inbound", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay.go#L476-L492", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay.go", "func_name": "failRelayItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// failRelayItem tombs the relay item so that future frames for this call are not\n// forwarded. We keep the relay item tombed, rather than delete it to ensure that\n// future frames do not cause error logs.", "docstring_tokens": ["failRelayItem", "tombs", "the", "relay", "item", "so", "that", "future", "frames", "for", "this", "call", "are", "not", "forwarded", ".", "We", "keep", "the", "relay", "item", "tombed", "rather", "than", "delete", "it", "to", "ensure", "that", "future", "frames", "do", "not", "cause", "error", "logs", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay.go#L511-L540", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/struct.go", "func_name": "WriteStruct", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteStruct writes the given Thrift struct to a writer. It pools TProtocols.", "docstring_tokens": ["WriteStruct", "writes", "the", "given", "Thrift", "struct", "to", "a", "writer", ".", "It", "pools", "TProtocols", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/struct.go#L30-L35", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/struct.go", "func_name": "ReadStruct", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadStruct reads the given Thrift struct. It pools TProtocols.", "docstring_tokens": ["ReadStruct", "reads", "the", "given", "Thrift", "struct", ".", "It", "pools", "TProtocols", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/struct.go#L38-L43", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "internal/argreader/empty.go", "func_name": "EnsureEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnsureEmpty ensures that the specified reader is empty. If the reader is\n// not empty, it returns an error with the specified stage in the message.", "docstring_tokens": ["EnsureEmpty", "ensures", "that", "the", "specified", "reader", "is", "empty", ".", "If", "the", "reader", "is", "not", "empty", "it", "returns", "an", "error", "with", "the", "specified", "stage", "in", "the", "message", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/internal/argreader/empty.go#L38-L50", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "benchmark/internal_server.go", "func_name": "NewServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServer returns a new Server that can recieve Thrift calls or raw calls.", "docstring_tokens": ["NewServer", "returns", "a", "new", "Server", "that", "can", "recieve", "Thrift", "calls", "or", "raw", "calls", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/benchmark/internal_server.go#L46-L78", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "benchmark/internal_server.go", "func_name": "Advertise", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Advertise advertises with Hyperbahn.", "docstring_tokens": ["Advertise", "advertises", "with", "Hyperbahn", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/benchmark/internal_server.go#L86-L93", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "inbound.go", "func_name": "handleCallReqContinue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleCallReqContinue handles the continuation of a call request, forwarding\n// it to the request channel for that request, where it can be pulled during\n// defragmentation", "docstring_tokens": ["handleCallReqContinue", "handles", "the", "continuation", "of", "a", "call", "request", "forwarding", "it", "to", "the", "request", "channel", "for", "that", "request", "where", "it", "can", "be", "pulled", "during", "defragmentation"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/inbound.go#L132-L138", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "inbound.go", "func_name": "dispatchInbound", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dispatchInbound ispatches an inbound call to the appropriate handler", "docstring_tokens": ["dispatchInbound", "ispatches", "an", "inbound", "call", "to", "the", "appropriate", "handler"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/inbound.go#L151-L195", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "inbound.go", "func_name": "CallOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CallOptions returns a CallOptions struct suitable for forwarding a request.", "docstring_tokens": ["CallOptions", "returns", "a", "CallOptions", "struct", "suitable", "for", "forwarding", "a", "request", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/inbound.go#L262-L270", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "inbound.go", "func_name": "Response", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Response provides access to the InboundCallResponse object which can be used\n// to write back to the calling peer", "docstring_tokens": ["Response", "provides", "access", "to", "the", "InboundCallResponse", "object", "which", "can", "be", "used", "to", "write", "back", "to", "the", "calling", "peer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/inbound.go#L298-L307", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "inbound.go", "func_name": "SendSystemError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendSystemError returns a system error response to the peer. The call is considered\n// complete after this method is called, and no further data can be written.", "docstring_tokens": ["SendSystemError", "returns", "a", "system", "error", "response", "to", "the", "peer", ".", "The", "call", "is", "considered", "complete", "after", "this", "method", "is", "called", "and", "no", "further", "data", "can", "be", "written", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/inbound.go#L330-L343", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "inbound.go", "func_name": "SetApplicationError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetApplicationError marks the response as being an application error. This method can\n// only be called before any arguments have been sent to the calling peer.", "docstring_tokens": ["SetApplicationError", "marks", "the", "response", "as", "being", "an", "application", "error", ".", "This", "method", "can", "only", "be", "called", "before", "any", "arguments", "have", "been", "sent", "to", "the", "calling", "peer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/inbound.go#L347-L356", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "inbound.go", "func_name": "Arg2Writer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Arg2Writer returns a WriteCloser that can be used to write the second argument.\n// The returned writer must be closed once the write is complete.", "docstring_tokens": ["Arg2Writer", "returns", "a", "WriteCloser", "that", "can", "be", "used", "to", "write", "the", "second", "argument", ".", "The", "returned", "writer", "must", "be", "closed", "once", "the", "write", "is", "complete", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/inbound.go#L367-L372", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "inbound.go", "func_name": "doneSending", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// doneSending shuts down the message exchange for this call.\n// For incoming calls, the last message is sending the call response.", "docstring_tokens": ["doneSending", "shuts", "down", "the", "message", "exchange", "for", "this", "call", ".", "For", "incoming", "calls", "the", "last", "message", "is", "sending", "the", "call", "response", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/inbound.go#L382-L412", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/typestate.go", "func_name": "newState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newState parses the type information for a parsed Thrift file and returns the state.", "docstring_tokens": ["newState", "parses", "the", "type", "information", "for", "a", "parsed", "Thrift", "file", "and", "returns", "the", "state", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/typestate.go#L42-L55", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/typestate.go", "func_name": "rootType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rootType recurses through typedefs and returns the underlying type.", "docstring_tokens": ["rootType", "recurses", "through", "typedefs", "and", "returns", "the", "underlying", "type", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/typestate.go#L69-L78", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/typestate.go", "func_name": "checkInclude", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkInclude will check if the type is an included type, and if so, return the\n// state and type from the state for that file.", "docstring_tokens": ["checkInclude", "will", "check", "if", "the", "type", "is", "an", "included", "type", "and", "if", "so", "return", "the", "state", "and", "type", "from", "the", "state", "for", "that", "file", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/typestate.go#L82-L94", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/typestate.go", "func_name": "isResultPointer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isResultPointer returns whether the result for this method is a pointer.", "docstring_tokens": ["isResultPointer", "returns", "whether", "the", "result", "for", "this", "method", "is", "a", "pointer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/typestate.go#L97-L100", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/typestate.go", "func_name": "goType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// goType returns the Go type name for the given thrift type.", "docstring_tokens": ["goType", "returns", "the", "Go", "type", "name", "for", "the", "given", "thrift", "type", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/typestate.go#L103-L105", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/typestate.go", "func_name": "goTypePrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// goTypePrefix returns the Go type name for the given thrift type with the prefix.", "docstring_tokens": ["goTypePrefix", "returns", "the", "Go", "type", "name", "for", "the", "given", "thrift", "type", "with", "the", "prefix", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/typestate.go#L108-L152", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context.go", "func_name": "NewContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewContext returns a new root context used to make TChannel requests.", "docstring_tokens": ["NewContext", "returns", "a", "new", "root", "context", "used", "to", "make", "TChannel", "requests", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context.go#L85-L87", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context.go", "func_name": "newIncomingContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newIncomingContext creates a new context for an incoming call with the given span.", "docstring_tokens": ["newIncomingContext", "creates", "a", "new", "context", "for", "an", "incoming", "call", "with", "the", "given", "span", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context.go#L98-L102", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context.go", "func_name": "CurrentCall", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CurrentCall returns the current incoming call, or nil if this is not an incoming call context.", "docstring_tokens": ["CurrentCall", "returns", "the", "current", "incoming", "call", "or", "nil", "if", "this", "is", "not", "an", "incoming", "call", "context", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context.go#L105-L110", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "trand/rand.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a rand.Rand that is threadsafe.", "docstring_tokens": ["New", "returns", "a", "rand", ".", "Rand", "that", "is", "threadsafe", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/trand/rand.go#L40-L42", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/meta.go", "func_name": "Health", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Health returns true as default Health endpoint.", "docstring_tokens": ["Health", "returns", "true", "as", "default", "Health", "endpoint", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/meta.go#L71-L77", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_header.go", "func_name": "Headers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Headers gets application headers out of the context.", "docstring_tokens": ["Headers", "gets", "application", "headers", "out", "of", "the", "context", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_header.go#L61-L66", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_header.go", "func_name": "ResponseHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResponseHeaders returns the response headers.", "docstring_tokens": ["ResponseHeaders", "returns", "the", "response", "headers", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_header.go#L69-L74", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_header.go", "func_name": "SetResponseHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetResponseHeaders sets the response headers.", "docstring_tokens": ["SetResponseHeaders", "sets", "the", "response", "headers", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_header.go#L77-L83", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_header.go", "func_name": "Child", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Child creates a child context with a separate container for headers.", "docstring_tokens": ["Child", "creates", "a", "child", "context", "with", "a", "separate", "container", "for", "headers", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_header.go#L86-L93", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_header.go", "func_name": "Wrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap wraps an existing context.Context into a ContextWithHeaders.\n// If the underlying context has headers, they are preserved.", "docstring_tokens": ["Wrap", "wraps", "an", "existing", "context", ".", "Context", "into", "a", "ContextWithHeaders", ".", "If", "the", "underlying", "context", "has", "headers", "they", "are", "preserved", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_header.go#L97-L105", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_header.go", "func_name": "WrapWithHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WrapWithHeaders returns a Context that can be used to make a call with request headers.\n// If the parent `ctx` is already an instance of ContextWithHeaders, its existing headers\n// will be ignored. In order to merge new headers with parent headers, use ContextBuilder.", "docstring_tokens": ["WrapWithHeaders", "returns", "a", "Context", "that", "can", "be", "used", "to", "make", "a", "call", "with", "request", "headers", ".", "If", "the", "parent", "ctx", "is", "already", "an", "instance", "of", "ContextWithHeaders", "its", "existing", "headers", "will", "be", "ignored", ".", "In", "order", "to", "merge", "new", "headers", "with", "parent", "headers", "use", "ContextBuilder", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_header.go#L110-L116", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "context_header.go", "func_name": "WithoutHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithoutHeaders hides any TChannel headers from the given context.", "docstring_tokens": ["WithoutHeaders", "hides", "any", "TChannel", "headers", "from", "the", "given", "context", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/context_header.go#L119-L121", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "Notify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Notify will store the error and notify all waiters on c that there's an error.", "docstring_tokens": ["Notify", "will", "store", "the", "error", "and", "notify", "all", "waiters", "on", "c", "that", "there", "s", "an", "error", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L61-L75", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "forwardPeerFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// forwardPeerFrame forwards a frame from a peer to the message exchange, where\n// it can be pulled by whatever application thread is handling the exchange", "docstring_tokens": ["forwardPeerFrame", "forwards", "a", "frame", "from", "a", "peer", "to", "the", "message", "exchange", "where", "it", "can", "be", "pulled", "by", "whatever", "application", "thread", "is", "handling", "the", "exchange"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L116-L144", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "recvPeerFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recvPeerFrame waits for a new frame from the peer, or until the context\n// expires or is cancelled", "docstring_tokens": ["recvPeerFrame", "waits", "for", "a", "new", "frame", "from", "the", "peer", "or", "until", "the", "context", "expires", "or", "is", "cancelled"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L159-L191", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "recvPeerFrameOfType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recvPeerFrameOfType waits for a new frame of a given type from the peer, failing\n// if the next frame received is not of that type.\n// If an error frame is returned, then the errorMessage is returned as the error.", "docstring_tokens": ["recvPeerFrameOfType", "waits", "for", "a", "new", "frame", "of", "a", "given", "type", "from", "the", "peer", "failing", "if", "the", "next", "frame", "received", "is", "not", "of", "that", "type", ".", "If", "an", "error", "frame", "is", "returned", "then", "the", "errorMessage", "is", "returned", "as", "the", "error", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L196-L229", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "shutdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shutdown shuts down the message exchange, removing it from the message\n// exchange set so that it cannot receive more messages from the peer. The\n// receive channel remains open, however, in case there are concurrent\n// goroutines sending to it.", "docstring_tokens": ["shutdown", "shuts", "down", "the", "message", "exchange", "removing", "it", "from", "the", "message", "exchange", "set", "so", "that", "it", "cannot", "receive", "more", "messages", "from", "the", "peer", ".", "The", "receive", "channel", "remains", "open", "however", "in", "case", "there", "are", "concurrent", "goroutines", "sending", "to", "it", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L235-L247", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "newMessageExchangeSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newMessageExchangeSet creates a new messageExchangeSet with a given name.", "docstring_tokens": ["newMessageExchangeSet", "creates", "a", "new", "messageExchangeSet", "with", "a", "given", "name", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L280-L287", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "addExchange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addExchange adds an exchange, it must be called with the mexset locked.", "docstring_tokens": ["addExchange", "adds", "an", "exchange", "it", "must", "be", "called", "with", "the", "mexset", "locked", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L290-L301", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "newExchange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newExchange creates and adds a new message exchange to this set", "docstring_tokens": ["newExchange", "creates", "and", "adds", "a", "new", "message", "exchange", "to", "this", "set"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L304-L343", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "deleteExchange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deleteExchange will delete msgID, and return whether it was found or whether it was\n// timed out. This method must be called with the lock.", "docstring_tokens": ["deleteExchange", "will", "delete", "msgID", "and", "return", "whether", "it", "was", "found", "or", "whether", "it", "was", "timed", "out", ".", "This", "method", "must", "be", "called", "with", "the", "lock", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L347-L359", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "removeExchange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeExchange removes a message exchange from the set, if it exists.", "docstring_tokens": ["removeExchange", "removes", "a", "message", "exchange", "from", "the", "set", "if", "it", "exists", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L362-L381", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "expireExchange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expireExchange is similar to removeExchange, but it marks the exchange as\n// expired.", "docstring_tokens": ["expireExchange", "is", "similar", "to", "removeExchange", "but", "it", "marks", "the", "exchange", "as", "expired", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L385-L406", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "forwardPeerFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// forwardPeerFrame forwards a frame from the peer to the appropriate message\n// exchange", "docstring_tokens": ["forwardPeerFrame", "forwards", "a", "frame", "from", "the", "peer", "to", "the", "appropriate", "message", "exchange"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L418-L447", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "copyExchanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyExchanges returns a copy of the exchanges if the exchange is active.\n// The caller must lock the mexset.", "docstring_tokens": ["copyExchanges", "returns", "a", "copy", "of", "the", "exchanges", "if", "the", "exchange", "is", "active", ".", "The", "caller", "must", "lock", "the", "mexset", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L451-L462", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "mex.go", "func_name": "stopExchanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stopExchanges stops all message exchanges to unblock all waiters on the mex.\n// This should only be called on connection failures.", "docstring_tokens": ["stopExchanges", "stops", "all", "message", "exchanges", "to", "unblock", "all", "waiters", "on", "the", "mex", ".", "This", "should", "only", "be", "called", "on", "connection", "failures", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/mex.go#L466-L492", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "frame.go", "func_name": "NewFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFrame allocates a new frame with the given payload capacity", "docstring_tokens": ["NewFrame", "allocates", "a", "new", "frame", "with", "the", "given", "payload", "capacity"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/frame.go#L119-L125", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "frame.go", "func_name": "ReadBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadBody takes in a previously read frame header, and only reads in the body\n// based on the size specified in the header. This allows callers to defer\n// the frame allocation till the body needs to be read.", "docstring_tokens": ["ReadBody", "takes", "in", "a", "previously", "read", "frame", "header", "and", "only", "reads", "in", "the", "body", "based", "on", "the", "size", "specified", "in", "the", "header", ".", "This", "allows", "callers", "to", "defer", "the", "frame", "allocation", "till", "the", "body", "needs", "to", "be", "read", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/frame.go#L130-L150", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "frame.go", "func_name": "WriteOut", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteOut writes the frame to the given io.Writer", "docstring_tokens": ["WriteOut", "writes", "the", "frame", "to", "the", "given", "io", ".", "Writer"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/frame.go#L165-L179", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "retry.go", "func_name": "CanRetry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CanRetry returns whether an error can be retried for the given retry option.", "docstring_tokens": ["CanRetry", "returns", "whether", "an", "error", "can", "be", "retried", "for", "the", "given", "retry", "option", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/retry.go#L89-L117", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "retry.go", "func_name": "HasRetries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasRetries will return true if there are more retries left.", "docstring_tokens": ["HasRetries", "will", "return", "true", "if", "there", "are", "more", "retries", "left", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/retry.go#L159-L165", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "retry.go", "func_name": "SinceStart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SinceStart returns the time since the start of the request. If there is no request state,\n// then the fallback is returned.", "docstring_tokens": ["SinceStart", "returns", "the", "time", "since", "the", "start", "of", "the", "request", ".", "If", "there", "is", "no", "request", "state", "then", "the", "fallback", "is", "returned", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/retry.go#L169-L174", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "retry.go", "func_name": "AddSelectedPeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddSelectedPeer adds a given peer to the set of selected peers.", "docstring_tokens": ["AddSelectedPeer", "adds", "a", "given", "peer", "to", "the", "set", "of", "selected", "peers", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/retry.go#L185-L200", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "retry.go", "func_name": "RunWithRetry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunWithRetry will take a function that makes the TChannel call, and will\n// rerun it as specifed in the RetryOptions in the Context.", "docstring_tokens": ["RunWithRetry", "will", "take", "a", "function", "that", "makes", "the", "TChannel", "call", "and", "will", "rerun", "it", "as", "specifed", "in", "the", "RetryOptions", "in", "the", "Context", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/retry.go#L212-L249", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "checksum.go", "func_name": "ChecksumSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChecksumSize returns the size in bytes of the checksum calculation", "docstring_tokens": ["ChecksumSize", "returns", "the", "size", "in", "bytes", "of", "the", "checksum", "calculation"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/checksum.go#L70-L81", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "checksum.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new Checksum of the given type", "docstring_tokens": ["New", "creates", "a", "new", "Checksum", "of", "the", "given", "type"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/checksum.go#L89-L93", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/main.go", "func_name": "parseTemplates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseTemplates returns a list of Templates that must be rendered given the template files.", "docstring_tokens": ["parseTemplates", "returns", "a", "list", "of", "Templates", "that", "must", "be", "rendered", "given", "the", "template", "files", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/main.go#L139-L159", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/main.go", "func_name": "NewStringSliceFlag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStringSliceFlag creates a new string slice flag. The default value is always nil.", "docstring_tokens": ["NewStringSliceFlag", "creates", "a", "new", "string", "slice", "flag", ".", "The", "default", "value", "is", "always", "nil", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/main.go#L232-L236", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/template.go", "func_name": "withStateFuncs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// withStateFuncs adds functions to the template that are dependent upon state.", "docstring_tokens": ["withStateFuncs", "adds", "functions", "to", "the", "template", "that", "are", "dependent", "upon", "state", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/template.go#L87-L91", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "introspection.go", "func_name": "IntrospectOthers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntrospectOthers returns the ChannelInfo for all other channels in this process.", "docstring_tokens": ["IntrospectOthers", "returns", "the", "ChannelInfo", "for", "all", "other", "channels", "in", "this", "process", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/introspection.go#L244-L265", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "introspection.go", "func_name": "ReportInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReportInfo returns ChannelInfo for a channel.", "docstring_tokens": ["ReportInfo", "returns", "ChannelInfo", "for", "a", "channel", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/introspection.go#L268-L274", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "introspection.go", "func_name": "IntrospectState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntrospectState returns the runtime state of the", "docstring_tokens": ["IntrospectState", "returns", "the", "runtime", "state", "of", "the"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/introspection.go#L292-L294", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "introspection.go", "func_name": "IntrospectState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntrospectState returns the runtime state of the subchannels.", "docstring_tokens": ["IntrospectState", "returns", "the", "runtime", "state", "of", "the", "subchannels", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/introspection.go#L297-L323", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "introspection.go", "func_name": "IntrospectState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntrospectState returns the runtime state for this peer.", "docstring_tokens": ["IntrospectState", "returns", "the", "runtime", "state", "for", "this", "peer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/introspection.go#L336-L347", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "introspection.go", "func_name": "IntrospectState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntrospectState returns the runtime state for this connection.", "docstring_tokens": ["IntrospectState", "returns", "the", "runtime", "state", "for", "this", "connection", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/introspection.go#L350-L371", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "introspection.go", "func_name": "IntrospectState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntrospectState returns the runtime state for this relayer.", "docstring_tokens": ["IntrospectState", "returns", "the", "runtime", "state", "for", "this", "relayer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/introspection.go#L374-L382", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "introspection.go", "func_name": "IntrospectState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntrospectState returns the runtime state for this relayItems.", "docstring_tokens": ["IntrospectState", "returns", "the", "runtime", "state", "for", "this", "relayItems", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/introspection.go#L385-L410", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "introspection.go", "func_name": "IntrospectState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntrospectState returns the runtime state for this messsage exchange set.", "docstring_tokens": ["IntrospectState", "returns", "the", "runtime", "state", "for", "this", "messsage", "exchange", "set", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/introspection.go#L413-L433", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "json/context.go", "func_name": "NewContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewContext returns a Context that can be used to make JSON calls.", "docstring_tokens": ["NewContext", "returns", "a", "Context", "that", "can", "be", "used", "to", "make", "JSON", "calls", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/json/context.go#L35-L38", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "raw/handler.go", "func_name": "WriteResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteResponse writes the given Res to the InboundCallResponse.", "docstring_tokens": ["WriteResponse", "writes", "the", "given", "Res", "to", "the", "InboundCallResponse", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/raw/handler.go#L71-L84", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "raw/handler.go", "func_name": "Wrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap wraps a Handler as a tchannel.Handler that can be passed to tchannel.Register.", "docstring_tokens": ["Wrap", "wraps", "a", "Handler", "as", "a", "tchannel", ".", "Handler", "that", "can", "be", "passed", "to", "tchannel", ".", "Register", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/raw/handler.go#L87-L106", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "tracing.go", "func_name": "initFromOpenTracing", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initFromOpenTracing initializes injectableSpan fields from an OpenTracing Span,\n// assuming the tracing implementation supports Zipkin-style span IDs.", "docstring_tokens": ["initFromOpenTracing", "initializes", "injectableSpan", "fields", "from", "an", "OpenTracing", "Span", "assuming", "the", "tracing", "implementation", "supports", "Zipkin", "-", "style", "span", "IDs", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/tracing.go#L114-L116", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "tracing.go", "func_name": "startOutboundSpan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startOutboundSpan creates a new tracing span to represent the outbound RPC call.\n// If the context already contains a span, it will be used as a parent, otherwise\n// a new root span is created.\n//\n// If the tracer supports Zipkin-style trace IDs, then call.callReq.Tracing is\n// initialized with those IDs. Otherwise it is assigned random values.", "docstring_tokens": ["startOutboundSpan", "creates", "a", "new", "tracing", "span", "to", "represent", "the", "outbound", "RPC", "call", ".", "If", "the", "context", "already", "contains", "a", "span", "it", "will", "be", "used", "as", "a", "parent", "otherwise", "a", "new", "root", "span", "is", "created", ".", "If", "the", "tracer", "supports", "Zipkin", "-", "style", "trace", "IDs", "then", "call", ".", "callReq", ".", "Tracing", "is", "initialized", "with", "those", "IDs", ".", "Otherwise", "it", "is", "assigned", "random", "values", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/tracing.go#L139-L163", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "hyperbahn/utils.go", "func_name": "intToIP4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// intToIP4 converts an integer IP representation into a 4-byte net.IP struct", "docstring_tokens": ["intToIP4", "converts", "an", "integer", "IP", "representation", "into", "a", "4", "-", "byte", "net", ".", "IP", "struct"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/hyperbahn/utils.go#L31-L38", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "hyperbahn/utils.go", "func_name": "servicePeerToHostPort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// servicePeerToHostPort converts a Hyperbahn ServicePeer into a hostPort string.", "docstring_tokens": ["servicePeerToHostPort", "converts", "a", "Hyperbahn", "ServicePeer", "into", "a", "hostPort", "string", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/hyperbahn/utils.go#L41-L45", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "stats/statsdreporter.go", "func_name": "NewStatsdReporter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStatsdReporter returns a StatsReporter that reports to statsd on the given addr.", "docstring_tokens": ["NewStatsdReporter", "returns", "a", "StatsReporter", "that", "reports", "to", "statsd", "on", "the", "given", "addr", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/stats/statsdreporter.go#L40-L47", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "tos/tos_string.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText implements TextUnMarshaler from encoding", "docstring_tokens": ["UnmarshalText", "implements", "TextUnMarshaler", "from", "encoding"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/tos/tos_string.go#L46-L53", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer_heap.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Push implements heap Push interface", "docstring_tokens": ["Push", "implements", "heap", "Push", "interface"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer_heap.go#L58-L63", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer_heap.go", "func_name": "Pop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pop implements heap Pop interface", "docstring_tokens": ["Pop", "implements", "heap", "Pop", "interface"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer_heap.go#L66-L73", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer_heap.go", "func_name": "updatePeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updatePeer updates the score for the given peer.", "docstring_tokens": ["updatePeer", "updates", "the", "score", "for", "the", "given", "peer", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer_heap.go#L76-L78", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer_heap.go", "func_name": "removePeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removePeer remove peer at specific index.", "docstring_tokens": ["removePeer", "remove", "peer", "at", "specific", "index", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer_heap.go#L81-L83", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer_heap.go", "func_name": "pushPeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// pushPeer pushes the new peer into the heap.", "docstring_tokens": ["pushPeer", "pushes", "the", "new", "peer", "into", "the", "heap", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer_heap.go#L91-L98", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "peer_heap.go", "func_name": "addPeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddPeer adds a peer to the peer heap.", "docstring_tokens": ["AddPeer", "adds", "a", "peer", "to", "the", "peer", "heap", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/peer_heap.go#L111-L117", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient returns a Client that makes calls over the given tchannel to the given Hyperbahn service.", "docstring_tokens": ["NewClient", "returns", "a", "Client", "that", "makes", "calls", "over", "the", "given", "tchannel", "to", "the", "given", "Hyperbahn", "service", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/client.go#L46-L56", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "root_peer_list.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds a peer to the root peer list if it does not exist, or return\n// an existing peer if it exists.", "docstring_tokens": ["Add", "adds", "a", "peer", "to", "the", "root", "peer", "list", "if", "it", "does", "not", "exist", "or", "return", "an", "existing", "peer", "if", "it", "exists", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/root_peer_list.go#L51-L73", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "root_peer_list.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns a peer for the given hostPort if it exists.", "docstring_tokens": ["Get", "returns", "a", "peer", "for", "the", "given", "hostPort", "if", "it", "exists", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/root_peer_list.go#L86-L91", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "benchmark/options.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout sets the timeout to use for each call.", "docstring_tokens": ["WithTimeout", "sets", "the", "timeout", "to", "use", "for", "each", "call", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/benchmark/options.go#L48-L52", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/wrap.go", "func_name": "Methods", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Methods returns the methods on this service, not including methods from inherited services.", "docstring_tokens": ["Methods", "returns", "the", "methods", "on", "this", "service", "not", "including", "methods", "from", "inherited", "services", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/wrap.go#L107-L117", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/wrap.go", "func_name": "InheritedMethods", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InheritedMethods returns names for inherited methods on this service.", "docstring_tokens": ["InheritedMethods", "returns", "names", "for", "inherited", "methods", "on", "this", "service", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/wrap.go#L120-L133", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/wrap.go", "func_name": "Arguments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Arguments returns the argument declarations for this method.", "docstring_tokens": ["Arguments", "returns", "the", "argument", "declarations", "for", "this", "method", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/wrap.go#L159-L165", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/wrap.go", "func_name": "ArgList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArgList returns the argument list for the function.", "docstring_tokens": ["ArgList", "returns", "the", "argument", "list", "for", "the", "function", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/wrap.go#L201-L207", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/wrap.go", "func_name": "CallList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CallList creates the call to a function satisfying Interface from an Args struct.", "docstring_tokens": ["CallList", "creates", "the", "call", "to", "a", "function", "satisfying", "Interface", "from", "an", "Args", "struct", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/wrap.go#L210-L216", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/wrap.go", "func_name": "RetType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RetType returns the go return type of the method.", "docstring_tokens": ["RetType", "returns", "the", "go", "return", "type", "of", "the", "method", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/wrap.go#L219-L224", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/wrap.go", "func_name": "WrapResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WrapResult wraps the result variable before being used in the result struct.", "docstring_tokens": ["WrapResult", "wraps", "the", "result", "variable", "before", "being", "used", "in", "the", "result", "struct", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/wrap.go#L227-L236", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/wrap.go", "func_name": "ReturnWith", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReturnWith takes the result name and the error name, and generates the return expression.", "docstring_tokens": ["ReturnWith", "takes", "the", "result", "name", "and", "the", "error", "name", "and", "generates", "the", "return", "expression", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/wrap.go#L239-L244", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/wrap.go", "func_name": "Declaration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Declaration returns the declaration for this field.", "docstring_tokens": ["Declaration", "returns", "the", "declaration", "for", "this", "field", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/wrap.go#L254-L256", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "idle_sweep.go", "func_name": "startIdleSweep", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startIdleSweep starts a poller that checks for idle connections at given\n// intervals.", "docstring_tokens": ["startIdleSweep", "starts", "a", "poller", "that", "checks", "for", "idle", "connections", "at", "given", "intervals", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/idle_sweep.go#L39-L48", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "idle_sweep.go", "func_name": "start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start runs the goroutine responsible for checking idle connections.", "docstring_tokens": ["Start", "runs", "the", "goroutine", "responsible", "for", "checking", "idle", "connections", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/idle_sweep.go#L51-L64", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "idle_sweep.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop kills the poller checking for idle connections.", "docstring_tokens": ["Stop", "kills", "the", "poller", "checking", "for", "idle", "connections", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/idle_sweep.go#L67-L75", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/gopath.go", "func_name": "ResolveWithGoPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResolveWithGoPath will resolve the filename relative to GOPATH and returns\n// the first file that exists, or an error otherwise.", "docstring_tokens": ["ResolveWithGoPath", "will", "resolve", "the", "filename", "relative", "to", "GOPATH", "and", "returns", "the", "first", "file", "that", "exists", "or", "an", "error", "otherwise", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/gopath.go#L31-L39", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/extends.go", "func_name": "setExtends", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setExtends will set the ExtendsService for all services.\n// It is done after all files are parsed, as services may extend those\n// found in an included file.", "docstring_tokens": ["setExtends", "will", "set", "the", "ExtendsService", "for", "all", "services", ".", "It", "is", "done", "after", "all", "files", "are", "parsed", "as", "services", "may", "extend", "those", "found", "in", "an", "included", "file", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/extends.go#L32-L64", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "handlers.go", "func_name": "register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Registers a handler", "docstring_tokens": ["Registers", "a", "handler"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/handlers.go#L81-L90", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "benchmark/internal_client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient returns a new Client that can make calls to a benchmark server.", "docstring_tokens": ["NewClient", "returns", "a", "new", "Client", "that", "can", "make", "calls", "to", "a", "benchmark", "server", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/benchmark/internal_client.go#L47-L56", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "localip.go", "func_name": "ListenIP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenIP returns the IP to bind to in Listen. It tries to find an IP that can be used\n// by other machines to reach this machine.", "docstring_tokens": ["ListenIP", "returns", "the", "IP", "to", "bind", "to", "in", "Listen", ".", "It", "tries", "to", "find", "an", "IP", "that", "can", "be", "used", "by", "other", "machines", "to", "reach", "this", "machine", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/localip.go#L89-L95", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "tnet/listener.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the listener.\n// Any blocked Accept operations will be unblocked and return errors.", "docstring_tokens": ["Close", "closes", "the", "listener", ".", "Any", "blocked", "Accept", "operations", "will", "be", "unblocked", "and", "return", "errors", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/tnet/listener.go#L85-L96", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "raw/call.go", "func_name": "ReadArgsV2", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadArgsV2 reads arg2 and arg3 from a reader.", "docstring_tokens": ["ReadArgsV2", "reads", "arg2", "and", "arg3", "from", "a", "reader", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/raw/call.go#L35-L47", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "raw/call.go", "func_name": "WriteArgs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteArgs writes the given arguments to the call, and returns the response args.", "docstring_tokens": ["WriteArgs", "writes", "the", "given", "arguments", "to", "the", "call", "and", "returns", "the", "response", "args", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/raw/call.go#L50-L71", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "raw/call.go", "func_name": "Call", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Call makes a call to the given hostPort with the given arguments and returns the response args.", "docstring_tokens": ["Call", "makes", "a", "call", "to", "the", "given", "hostPort", "with", "the", "given", "arguments", "and", "returns", "the", "response", "args", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/raw/call.go#L74-L83", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "raw/call.go", "func_name": "CallSC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CallSC makes a call using the given subcahnnel", "docstring_tokens": ["CallSC", "makes", "a", "call", "using", "the", "given", "subcahnnel"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/raw/call.go#L86-L95", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "raw/call.go", "func_name": "CallV2", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CallV2 makes a call and does not attempt any retries.", "docstring_tokens": ["CallV2", "makes", "a", "call", "and", "does", "not", "attempt", "any", "retries", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/raw/call.go#L113-L129", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "benchmark/real_relay.go", "func_name": "NewRealRelay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRealRelay creates a TChannel relay.", "docstring_tokens": ["NewRealRelay", "creates", "a", "TChannel", "relay", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/benchmark/real_relay.go#L55-L73", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/server.go", "func_name": "NewServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServer returns a server that can serve thrift services over TChannel.", "docstring_tokens": ["NewServer", "returns", "a", "server", "that", "can", "serve", "thrift", "services", "over", "TChannel", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/server.go#L51-L66", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/server.go", "func_name": "RegisterHealthHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterHealthHandler uses the user-specified function f for the Health endpoint.", "docstring_tokens": ["RegisterHealthHandler", "uses", "the", "user", "-", "specified", "function", "f", "for", "the", "Health", "endpoint", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/server.go#L87-L92", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/server.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle handles an incoming TChannel call and forwards it to the correct handler.", "docstring_tokens": ["Handle", "handles", "an", "incoming", "TChannel", "call", "and", "forwards", "it", "to", "the", "correct", "handler", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/server.go#L223-L240", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "errors.go", "func_name": "MetricsKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MetricsKey is a string representation of the error code that's suitable for\n// inclusion in metrics tags.", "docstring_tokens": ["MetricsKey", "is", "a", "string", "representation", "of", "the", "error", "code", "that", "s", "suitable", "for", "inclusion", "in", "metrics", "tags", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/errors.go#L102-L126", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "errors.go", "func_name": "NewSystemError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSystemError defines a new SystemError with a code and message", "docstring_tokens": ["NewSystemError", "defines", "a", "new", "SystemError", "with", "a", "code", "and", "message"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/errors.go#L163-L165", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "errors.go", "func_name": "NewWrappedSystemError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWrappedSystemError defines a new SystemError wrapping an existing error", "docstring_tokens": ["NewWrappedSystemError", "defines", "a", "new", "SystemError", "wrapping", "an", "existing", "error"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/errors.go#L168-L174", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "errors.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error returns the code and message, conforming to the error interface", "docstring_tokens": ["Error", "returns", "the", "code", "and", "message", "conforming", "to", "the", "error", "interface"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/errors.go#L177-L179", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "errors.go", "func_name": "GetContextError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContextError converts the context error to a tchannel error.", "docstring_tokens": ["GetContextError", "converts", "the", "context", "error", "to", "a", "tchannel", "error", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/errors.go#L195-L203", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "errors.go", "func_name": "GetSystemErrorCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSystemErrorCode returns the code to report for the given error. If the error is a\n// SystemError, we can get the code directly. Otherwise treat it as an unexpected error", "docstring_tokens": ["GetSystemErrorCode", "returns", "the", "code", "to", "report", "for", "the", "given", "error", ".", "If", "the", "error", "is", "a", "SystemError", "we", "can", "get", "the", "code", "directly", ".", "Otherwise", "treat", "it", "as", "an", "unexpected", "error"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/errors.go#L207-L217", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "connection.go", "func_name": "ping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ping sends a ping message and waits for a ping response.", "docstring_tokens": ["ping", "sends", "a", "ping", "message", "and", "waits", "for", "a", "ping", "response", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/connection.go#L390-L403", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "connection.go", "func_name": "handlePingRes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handlePingRes calls registered ping handlers.", "docstring_tokens": ["handlePingRes", "calls", "registered", "ping", "handlers", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/connection.go#L406-L413", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "connection.go", "func_name": "handlePingReq", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handlePingReq responds to the pingReq message with a pingRes.", "docstring_tokens": ["handlePingReq", "responds", "to", "the", "pingReq", "message", "with", "a", "pingRes", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/connection.go#L416-L426", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "connection.go", "func_name": "SendSystemError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendSystemError sends an error frame for the given system error.", "docstring_tokens": ["SendSystemError", "sends", "an", "error", "frame", "for", "the", "given", "system", "error", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/connection.go#L471-L514", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "connection.go", "func_name": "connectionError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// connectionError handles a connection level error", "docstring_tokens": ["connectionError", "handles", "a", "connection", "level", "error"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/connection.go#L539-L563", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "connection.go", "func_name": "withStateLock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// withStateLock performs an action with the connection state mutex locked", "docstring_tokens": ["withStateLock", "performs", "an", "action", "with", "the", "connection", "state", "mutex", "locked"], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/connection.go#L584-L590", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "connection.go", "func_name": "withStateRLock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// withStateRLock performs an action with the connection state mutex rlocked.", "docstring_tokens": ["withStateRLock", "performs", "an", "action", "with", "the", "connection", "state", "mutex", "rlocked", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/connection.go#L593-L599", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "connection.go", "func_name": "readFrames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readFrames is the loop that reads frames from the network connection and\n// dispatches to the appropriate handler. Run within its own goroutine to\n// prevent overlapping reads on the socket. Most handlers simply send the\n// incoming frame to a channel; the init handlers are a notable exception,\n// since we cannot process new frames until the initialization is complete.", "docstring_tokens": ["readFrames", "is", "the", "loop", "that", "reads", "frames", "from", "the", "network", "connection", "and", "dispatches", "to", "the", "appropriate", "handler", ".", "Run", "within", "its", "own", "goroutine", "to", "prevent", "overlapping", "reads", "on", "the", "socket", ".", "Most", "handlers", "simply", "send", "the", "incoming", "frame", "to", "a", "channel", ";", "the", "init", "handlers", "are", "a", "notable", "exception", "since", "we", "cannot", "process", "new", "frames", "until", "the", "initialization", "is", "complete", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/connection.go#L613-L651", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "connection.go", "func_name": "writeFrames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeFrames is the main loop that pulls frames from the send channel and\n// writes them to the connection.", "docstring_tokens": ["writeFrames", "is", "the", "main", "loop", "that", "pulls", "frames", "from", "the", "send", "channel", "and", "writes", "them", "to", "the", "connection", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/connection.go#L701-L726", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "connection.go", "func_name": "hasPendingCalls", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hasPendingCalls returns whether there's any pending inbound or outbound calls on this connection.", "docstring_tokens": ["hasPendingCalls", "returns", "whether", "there", "s", "any", "pending", "inbound", "or", "outbound", "calls", "on", "this", "connection", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/connection.go#L739-L748", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "connection.go", "func_name": "checkExchanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkExchanges is called whenever an exchange is removed, and when Close is called.", "docstring_tokens": ["checkExchanges", "is", "called", "whenever", "an", "exchange", "is", "removed", "and", "when", "Close", "is", "called", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/connection.go#L751-L809", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "connection.go", "func_name": "closeNetwork", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// closeNetwork closes the network connection and all network-related channels.\n// This should only be done in response to a fatal connection or protocol\n// error, or after all pending frames have been sent.", "docstring_tokens": ["closeNetwork", "closes", "the", "network", "connection", "and", "all", "network", "-", "related", "channels", ".", "This", "should", "only", "be", "done", "in", "response", "to", "a", "fatal", "connection", "or", "protocol", "error", "or", "after", "all", "pending", "frames", "have", "been", "sent", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/connection.go#L853-L866", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "connection.go", "func_name": "getLastActivityTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getLastActivityTime returns the timestamp of the last frame read or written,\n// excluding pings. If no frames were transmitted yet, it will return the time\n// this connection was created.", "docstring_tokens": ["getLastActivityTime", "returns", "the", "timestamp", "of", "the", "last", "frame", "read", "or", "written", "excluding", "pings", ".", "If", "no", "frames", "were", "transmitted", "yet", "it", "will", "return", "the", "time", "this", "connection", "was", "created", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/connection.go#L871-L873", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "thrift/thrift-gen/validate.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate validates that the given spec is supported by thrift-gen.", "docstring_tokens": ["Validate", "validates", "that", "the", "given", "spec", "is", "supported", "by", "thrift", "-", "gen", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/thrift/thrift-gen/validate.go#L30-L37", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "hyperbahn/advertise.go", "func_name": "logFailedRegistrationRetry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// logFailedRegistrationRetry logs either a warning or info depending on the number of\n// consecutiveFailures. If consecutiveFailures > maxAdvertiseFailures, then we log a warning.", "docstring_tokens": ["logFailedRegistrationRetry", "logs", "either", "a", "warning", "or", "info", "depending", "on", "the", "number", "of", "consecutiveFailures", ".", "If", "consecutiveFailures", ">", "maxAdvertiseFailures", "then", "we", "log", "a", "warning", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/hyperbahn/advertise.go#L69-L76", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "hyperbahn/advertise.go", "func_name": "initialAdvertise", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initialAdvertise will do the initial Advertise call to Hyperbahn with additional\n// retries on top of the built-in TChannel retries. It will use exponential backoff\n// between each of the call attempts.", "docstring_tokens": ["initialAdvertise", "will", "do", "the", "initial", "Advertise", "call", "to", "Hyperbahn", "with", "additional", "retries", "on", "top", "of", "the", "built", "-", "in", "TChannel", "retries", ".", "It", "will", "use", "exponential", "backoff", "between", "each", "of", "the", "call", "attempts", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/hyperbahn/advertise.go#L116-L132", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay_messages.go", "func_name": "Service", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Service returns the name of the destination service for this callReq.", "docstring_tokens": ["Service", "returns", "the", "name", "of", "the", "destination", "service", "for", "this", "callReq", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay_messages.go#L144-L147", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay_messages.go", "func_name": "TTL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TTL returns the time to live for this callReq.", "docstring_tokens": ["TTL", "returns", "the", "time", "to", "live", "for", "this", "callReq", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay_messages.go#L165-L168", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay_messages.go", "func_name": "SetTTL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTTL overwrites the frame's TTL.", "docstring_tokens": ["SetTTL", "overwrites", "the", "frame", "s", "TTL", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay_messages.go#L171-L174", "partition": "test"} +{"repo": "uber/tchannel-go", "path": "relay_messages.go", "func_name": "finishesCall", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// finishesCall checks whether this frame is the last one we should expect for\n// this RPC req-res.", "docstring_tokens": ["finishesCall", "checks", "whether", "this", "frame", "is", "the", "last", "one", "we", "should", "expect", "for", "this", "RPC", "req", "-", "res", "."], "sha": "3c9ced6d946fe2fec6c915703a533e966c09e07a", "url": "https://github.com/uber/tchannel-go/blob/3c9ced6d946fe2fec6c915703a533e966c09e07a/relay_messages.go#L188-L198", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/platform_strings.go", "func_name": "Flat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flat returns all the strings in the set, sorted and de-duplicated.", "docstring_tokens": ["Flat", "returns", "all", "the", "strings", "in", "the", "set", "sorted", "and", "de", "-", "duplicated", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/platform_strings.go#L59-L85", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/platform_strings.go", "func_name": "Map", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Map applies a function that processes individual strings to the strings\n// in \"ps\" and returns a new PlatformStrings with the result. Empty strings\n// returned by the function are dropped.", "docstring_tokens": ["Map", "applies", "a", "function", "that", "processes", "individual", "strings", "to", "the", "strings", "in", "ps", "and", "returns", "a", "new", "PlatformStrings", "with", "the", "result", ".", "Empty", "strings", "returned", "by", "the", "function", "are", "dropped", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/platform_strings.go#L120-L135", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/platform_strings.go", "func_name": "MapSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MapSlice applies a function that processes slices of strings to the strings\n// in \"ps\" and returns a new PlatformStrings with the results.", "docstring_tokens": ["MapSlice", "applies", "a", "function", "that", "processes", "slices", "of", "strings", "to", "the", "strings", "in", "ps", "and", "returns", "a", "new", "PlatformStrings", "with", "the", "results", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/platform_strings.go#L139-L192", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/proto/config.go", "func_name": "GetProtoConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProtoConfig returns the proto language configuration. If the proto\n// extension was not run, it will return nil.", "docstring_tokens": ["GetProtoConfig", "returns", "the", "proto", "language", "configuration", ".", "If", "the", "proto", "extension", "was", "not", "run", "it", "will", "return", "nil", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/proto/config.go#L64-L70", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/expr.go", "func_name": "MapExprStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MapExprStrings applies a function to string sub-expressions within e.\n// An expression containing the results with the same structure as e is\n// returned.", "docstring_tokens": ["MapExprStrings", "applies", "a", "function", "to", "string", "sub", "-", "expressions", "within", "e", ".", "An", "expression", "containing", "the", "results", "with", "the", "same", "structure", "as", "e", "is", "returned", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/expr.go#L30-L111", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/expr.go", "func_name": "FlattenExpr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FlattenExpr takes an expression that may have been generated from\n// PlatformStrings and returns its values in a flat, sorted, de-duplicated\n// list. Comments are accumulated and de-duplicated across duplicate\n// expressions. If the expression could not have been generted by\n// PlatformStrings, the expression will be returned unmodified.", "docstring_tokens": ["FlattenExpr", "takes", "an", "expression", "that", "may", "have", "been", "generated", "from", "PlatformStrings", "and", "returns", "its", "values", "in", "a", "flat", "sorted", "de", "-", "duplicated", "list", ".", "Comments", "are", "accumulated", "and", "de", "-", "duplicated", "across", "duplicate", "expressions", ".", "If", "the", "expression", "could", "not", "have", "been", "generted", "by", "PlatformStrings", "the", "expression", "will", "be", "returned", "unmodified", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/expr.go#L118-L169", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/expr.go", "func_name": "makePlatformStringsExpr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makePlatformStringsExpr constructs a single expression from the\n// sub-expressions in ps.", "docstring_tokens": ["makePlatformStringsExpr", "constructs", "a", "single", "expression", "from", "the", "sub", "-", "expressions", "in", "ps", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/expr.go#L307-L354", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/platform.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns OS, Arch, or \"OS_Arch\" if both are set. This must match\n// the names of config_setting rules in @io_bazel_rules_go//go/platform.", "docstring_tokens": ["String", "returns", "OS", "Arch", "or", "OS_Arch", "if", "both", "are", "set", ".", "This", "must", "match", "the", "names", "of", "config_setting", "rules", "in"], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/platform.go#L30-L41", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "internal/wspace/finder.go", "func_name": "Find", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Find searches from the given dir and up for the WORKSPACE file\n// returning the directory containing it, or an error if none found in the tree.", "docstring_tokens": ["Find", "searches", "from", "the", "given", "dir", "and", "up", "for", "the", "WORKSPACE", "file", "returning", "the", "directory", "containing", "it", "or", "an", "error", "if", "none", "found", "in", "the", "tree", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/internal/wspace/finder.go#L26-L45", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/autogazelle/autogazelle.go", "func_name": "runGazelle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// runGazelle invokes gazelle with \"bazel run\". In fullMode, gazelle will\n// run in the entire repository. In fastMode, gazelle will only run\n// in the given directories.", "docstring_tokens": ["runGazelle", "invokes", "gazelle", "with", "bazel", "run", ".", "In", "fullMode", "gazelle", "will", "run", "in", "the", "entire", "repository", ".", "In", "fastMode", "gazelle", "will", "only", "run", "in", "the", "given", "directories", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/autogazelle/autogazelle.go#L99-L116", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/autogazelle/autogazelle.go", "func_name": "restoreBuildFilesInRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// restoreBuildFilesInRepo copies BUILD.in and BUILD.bazel.in files and\n// copies them to BUILD and BUILD.bazel.", "docstring_tokens": ["restoreBuildFilesInRepo", "copies", "BUILD", ".", "in", "and", "BUILD", ".", "bazel", ".", "in", "files", "and", "copies", "them", "to", "BUILD", "and", "BUILD", ".", "bazel", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/autogazelle/autogazelle.go#L120-L132", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "merger/fix.go", "func_name": "FixLoads", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FixLoads removes loads of unused go rules and adds loads of newly used rules.\n// This should be called after FixFile and MergeFile, since symbols\n// may be introduced that aren't loaded.\n//\n// This function calls File.Sync before processing loads.", "docstring_tokens": ["FixLoads", "removes", "loads", "of", "unused", "go", "rules", "and", "adds", "loads", "of", "newly", "used", "rules", ".", "This", "should", "be", "called", "after", "FixFile", "and", "MergeFile", "since", "symbols", "may", "be", "introduced", "that", "aren", "t", "loaded", ".", "This", "function", "calls", "File", ".", "Sync", "before", "processing", "loads", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/merger/fix.go#L30-L98", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "merger/fix.go", "func_name": "fixLoad", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fixLoad updates a load statement with the given symbols. If load is nil,\n// a new load may be created and returned. Symbols in kinds will be added\n// to the load if they're not already present. Known symbols not in kinds\n// will be removed if present. Other symbols will be preserved. If load is\n// empty, nil is returned.", "docstring_tokens": ["fixLoad", "updates", "a", "load", "statement", "with", "the", "given", "symbols", ".", "If", "load", "is", "nil", "a", "new", "load", "may", "be", "created", "and", "returned", ".", "Symbols", "in", "kinds", "will", "be", "added", "to", "the", "load", "if", "they", "re", "not", "already", "present", ".", "Known", "symbols", "not", "in", "kinds", "will", "be", "removed", "if", "present", ".", "Other", "symbols", "will", "be", "preserved", ".", "If", "load", "is", "empty", "nil", "is", "returned", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/merger/fix.go#L105-L122", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "merger/fix.go", "func_name": "newLoadIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newLoadIndex returns the index in stmts where a new load statement should\n// be inserted. after is a list of function names that the load should not\n// be inserted before.", "docstring_tokens": ["newLoadIndex", "returns", "the", "index", "in", "stmts", "where", "a", "new", "load", "statement", "should", "be", "inserted", ".", "after", "is", "a", "list", "of", "function", "names", "that", "the", "load", "should", "not", "be", "inserted", "before", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/merger/fix.go#L127-L140", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "merger/fix.go", "func_name": "removeLegacyGoRepository", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeLegacyGoRepository removes loads of go_repository from\n// @io_bazel_rules_go. FixLoads should be called after this; it will load from\n// @bazel_gazelle.", "docstring_tokens": ["removeLegacyGoRepository", "removes", "loads", "of", "go_repository", "from"], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/merger/fix.go#L190-L199", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "internal/version/version.go", "func_name": "Compare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compare returns an integer comparing two versions lexicographically.", "docstring_tokens": ["Compare", "returns", "an", "integer", "comparing", "two", "versions", "lexicographically", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/internal/version/version.go#L37-L49", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "internal/version/version.go", "func_name": "ParseVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseVersion parses a version of the form \"12.34.56-abcd\". Non-negative\n// integer components are separated by dots. An arbitrary suffix may appear\n// after '-', which is ignored.", "docstring_tokens": ["ParseVersion", "parses", "a", "version", "of", "the", "form", "12", ".", "34", ".", "56", "-", "abcd", ".", "Non", "-", "negative", "integer", "components", "are", "separated", "by", "dots", ".", "An", "arbitrary", "suffix", "may", "appear", "after", "-", "which", "is", "ignored", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/internal/version/version.go#L54-L72", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "EmptyFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EmptyFile creates a File wrapped around an empty syntax tree.", "docstring_tokens": ["EmptyFile", "creates", "a", "File", "wrapped", "around", "an", "empty", "syntax", "tree", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L73-L79", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "LoadWorkspaceFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadWorkspaceFile is similar to LoadFile but parses the file as a WORKSPACE\n// file.", "docstring_tokens": ["LoadWorkspaceFile", "is", "similar", "to", "LoadFile", "but", "parses", "the", "file", "as", "a", "WORKSPACE", "file", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L97-L103", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "LoadMacroFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadMacroFile loads a bzl file from disk, parses it, then scans for the load\n// statements and the rules called from the given Starlark function. If there is\n// no matching function name, then a new function with that name will be created.\n// The function's syntax tree will be returned within File and can be modified by\n// Sync and Save calls.", "docstring_tokens": ["LoadMacroFile", "loads", "a", "bzl", "file", "from", "disk", "parses", "it", "then", "scans", "for", "the", "load", "statements", "and", "the", "rules", "called", "from", "the", "given", "Starlark", "function", ".", "If", "there", "is", "no", "matching", "function", "name", "then", "a", "new", "function", "with", "that", "name", "will", "be", "created", ".", "The", "function", "s", "syntax", "tree", "will", "be", "returned", "within", "File", "and", "can", "be", "modified", "by", "Sync", "and", "Save", "calls", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L110-L116", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "EmptyMacroFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EmptyMacroFile creates a bzl file at the given path and within the file creates\n// a Starlark function with the provided name. The function can then be modified\n// by Sync and Save calls.", "docstring_tokens": ["EmptyMacroFile", "creates", "a", "bzl", "file", "at", "the", "given", "path", "and", "within", "the", "file", "creates", "a", "Starlark", "function", "with", "the", "provided", "name", ".", "The", "function", "can", "then", "be", "modified", "by", "Sync", "and", "Save", "calls", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L121-L127", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "LoadData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadData parses a build file from a byte slice and scans it for rules and\n// load statements. The syntax tree within the returned File will be modified\n// by editing methods.", "docstring_tokens": ["LoadData", "parses", "a", "build", "file", "from", "a", "byte", "slice", "and", "scans", "it", "for", "rules", "and", "load", "statements", ".", "The", "syntax", "tree", "within", "the", "returned", "File", "will", "be", "modified", "by", "editing", "methods", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L132-L138", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "LoadWorkspaceData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadWorkspaceData is similar to LoadData but parses the data as a\n// WORKSPACE file.", "docstring_tokens": ["LoadWorkspaceData", "is", "similar", "to", "LoadData", "but", "parses", "the", "data", "as", "a", "WORKSPACE", "file", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L142-L148", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "LoadMacroData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadMacroData parses a bzl file from a byte slice and scans for the load\n// statements and the rules called from the given Starlark function. If there is\n// no matching function name, then a new function will be created, and added to the\n// File the next time Sync is called. The function's syntax tree will be returned\n// within File and can be modified by Sync and Save calls.", "docstring_tokens": ["LoadMacroData", "parses", "a", "bzl", "file", "from", "a", "byte", "slice", "and", "scans", "for", "the", "load", "statements", "and", "the", "rules", "called", "from", "the", "given", "Starlark", "function", ".", "If", "there", "is", "no", "matching", "function", "name", "then", "a", "new", "function", "will", "be", "created", "and", "added", "to", "the", "File", "the", "next", "time", "Sync", "is", "called", ".", "The", "function", "s", "syntax", "tree", "will", "be", "returned", "within", "File", "and", "can", "be", "modified", "by", "Sync", "and", "Save", "calls", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L155-L161", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "ScanAST", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ScanAST creates a File wrapped around the given syntax tree. This tree\n// will be modified by editing methods.", "docstring_tokens": ["ScanAST", "creates", "a", "File", "wrapped", "around", "the", "given", "syntax", "tree", ".", "This", "tree", "will", "be", "modified", "by", "editing", "methods", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L165-L167", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "ScanASTBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ScanASTBody creates a File wrapped around the given syntax tree. It will also\n// scan the AST for a function matching the given defName, and if the function\n// does not exist it will create a new one and mark it to be added to the File\n// the next time Sync is called.", "docstring_tokens": ["ScanASTBody", "creates", "a", "File", "wrapped", "around", "the", "given", "syntax", "tree", ".", "It", "will", "also", "scan", "the", "AST", "for", "a", "function", "matching", "the", "given", "defName", "and", "if", "the", "function", "does", "not", "exist", "it", "will", "create", "a", "new", "one", "and", "mark", "it", "to", "be", "added", "to", "the", "File", "the", "next", "time", "Sync", "is", "called", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L178-L205", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "MatchBuildFileName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MatchBuildFileName looks for a file in files that has a name from names.\n// If there is at least one matching file, a path will be returned by joining\n// dir and the first matching name. If there are no matching files, the\n// empty string is returned.", "docstring_tokens": ["MatchBuildFileName", "looks", "for", "a", "file", "in", "files", "that", "has", "a", "name", "from", "names", ".", "If", "there", "is", "at", "least", "one", "matching", "file", "a", "path", "will", "be", "returned", "by", "joining", "dir", "and", "the", "first", "matching", "name", ".", "If", "there", "are", "no", "matching", "files", "the", "empty", "string", "is", "returned", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L230-L239", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "SyncMacroFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SyncMacroFile syncs the file's syntax tree with another file's. This is\n// useful for keeping multiple macro definitions from the same .bzl file in sync.", "docstring_tokens": ["SyncMacroFile", "syncs", "the", "file", "s", "syntax", "tree", "with", "another", "file", "s", ".", "This", "is", "useful", "for", "keeping", "multiple", "macro", "definitions", "from", "the", "same", ".", "bzl", "file", "in", "sync", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L243-L251", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "MacroName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MacroName returns the name of the macro function that this file is editing,\n// or an empty string if a macro function is not being edited.", "docstring_tokens": ["MacroName", "returns", "the", "name", "of", "the", "macro", "function", "that", "this", "file", "is", "editing", "or", "an", "empty", "string", "if", "a", "macro", "function", "is", "not", "being", "edited", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L255-L260", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "Sync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sync writes all changes back to the wrapped syntax tree. This should be\n// called after editing operations, before reading the syntax tree again.", "docstring_tokens": ["Sync", "writes", "all", "changes", "back", "to", "the", "wrapped", "syntax", "tree", ".", "This", "should", "be", "called", "after", "editing", "operations", "before", "reading", "the", "syntax", "tree", "again", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L264-L324", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "Format", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Format formats the build file in a form that can be written to disk.\n// This method calls Sync internally.", "docstring_tokens": ["Format", "formats", "the", "build", "file", "in", "a", "form", "that", "can", "be", "written", "to", "disk", ".", "This", "method", "calls", "Sync", "internally", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L358-L361", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "Save", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Save writes the build file to disk. This method calls Sync internally.", "docstring_tokens": ["Save", "writes", "the", "build", "file", "to", "disk", ".", "This", "method", "calls", "Sync", "internally", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L364-L368", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "HasDefaultVisibility", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasDefaultVisibility returns whether the File contains a \"package\" rule with\n// a \"default_visibility\" attribute. Rules generated by Gazelle should not\n// have their own visibility attributes if this is the case.", "docstring_tokens": ["HasDefaultVisibility", "returns", "whether", "the", "File", "contains", "a", "package", "rule", "with", "a", "default_visibility", "attribute", ".", "Rules", "generated", "by", "Gazelle", "should", "not", "have", "their", "own", "visibility", "attributes", "if", "this", "is", "the", "case", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L373-L380", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "NewLoad", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLoad creates a new, empty load statement for the given file name.", "docstring_tokens": ["NewLoad", "creates", "a", "new", "empty", "load", "statement", "for", "the", "given", "file", "name", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L426-L437", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "Symbols", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Symbols returns a list of symbols this statement loads.", "docstring_tokens": ["Symbols", "returns", "a", "list", "of", "symbols", "this", "statement", "loads", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L458-L465", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "Has", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Has returns true if sym is loaded by this statement.", "docstring_tokens": ["Has", "returns", "true", "if", "sym", "is", "loaded", "by", "this", "statement", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L468-L471", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add inserts a new symbol into the load statement. This has no effect if\n// the symbol is already loaded. Symbols will be sorted, so the order\n// doesn't matter.", "docstring_tokens": ["Add", "inserts", "a", "new", "symbol", "into", "the", "load", "statement", ".", "This", "has", "no", "effect", "if", "the", "symbol", "is", "already", "loaded", ".", "Symbols", "will", "be", "sorted", "so", "the", "order", "doesn", "t", "matter", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L476-L482", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove deletes a symbol from the load statement. This has no effect if\n// the symbol is not loaded.", "docstring_tokens": ["Remove", "deletes", "a", "symbol", "from", "the", "load", "statement", ".", "This", "has", "no", "effect", "if", "the", "symbol", "is", "not", "loaded", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L486-L491", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "Insert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Insert marks this statement for insertion at the given index. If multiple\n// statements are inserted at the same index, they will be inserted in the\n// order Insert is called.", "docstring_tokens": ["Insert", "marks", "this", "statement", "for", "insertion", "at", "the", "given", "index", ".", "If", "multiple", "statements", "are", "inserted", "at", "the", "same", "index", "they", "will", "be", "inserted", "in", "the", "order", "Insert", "is", "called", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L501-L505", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "NewRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRule creates a new, empty rule with the given kind and name.", "docstring_tokens": ["NewRule", "creates", "a", "new", "empty", "rule", "with", "the", "given", "kind", "and", "name", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L551-L569", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "SetKind", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetKind changes the kind of rule this is.", "docstring_tokens": ["SetKind", "changes", "the", "kind", "of", "rule", "this", "is", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L616-L619", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "AttrKeys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AttrKeys returns a sorted list of attribute keys used in this rule.", "docstring_tokens": ["AttrKeys", "returns", "a", "sorted", "list", "of", "attribute", "keys", "used", "in", "this", "rule", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L633-L645", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "Attr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Attr returns the value of the named attribute. nil is returned when the\n// attribute is not set.", "docstring_tokens": ["Attr", "returns", "the", "value", "of", "the", "named", "attribute", ".", "nil", "is", "returned", "when", "the", "attribute", "is", "not", "set", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L649-L655", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "AttrString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AttrString returns the value of the named attribute if it is a scalar string.\n// \"\" is returned if the attribute is not set or is not a string.", "docstring_tokens": ["AttrString", "returns", "the", "value", "of", "the", "named", "attribute", "if", "it", "is", "a", "scalar", "string", ".", "is", "returned", "if", "the", "attribute", "is", "not", "set", "or", "is", "not", "a", "string", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L659-L669", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "AttrStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AttrStrings returns the string values of an attribute if it is a list.\n// nil is returned if the attribute is not set or is not a list. Non-string\n// values within the list won't be returned.", "docstring_tokens": ["AttrStrings", "returns", "the", "string", "values", "of", "an", "attribute", "if", "it", "is", "a", "list", ".", "nil", "is", "returned", "if", "the", "attribute", "is", "not", "set", "or", "is", "not", "a", "list", ".", "Non", "-", "string", "values", "within", "the", "list", "won", "t", "be", "returned", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L674-L690", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "DelAttr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DelAttr removes the named attribute from the rule.", "docstring_tokens": ["DelAttr", "removes", "the", "named", "attribute", "from", "the", "rule", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L693-L696", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "SetAttr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAttr adds or replaces the named attribute with an expression produced\n// by ExprFromValue.", "docstring_tokens": ["SetAttr", "adds", "or", "replaces", "the", "named", "attribute", "with", "an", "expression", "produced", "by", "ExprFromValue", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L700-L712", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "PrivateAttrKeys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrivateAttrKeys returns a sorted list of private attribute names.", "docstring_tokens": ["PrivateAttrKeys", "returns", "a", "sorted", "list", "of", "private", "attribute", "names", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L715-L722", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "SetPrivateAttr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPrivateAttr associates a value with a key. Unlike SetAttr, this value\n// is not converted to a build syntax tree and will not be written to a build\n// file.", "docstring_tokens": ["SetPrivateAttr", "associates", "a", "value", "with", "a", "key", ".", "Unlike", "SetAttr", "this", "value", "is", "not", "converted", "to", "a", "build", "syntax", "tree", "and", "will", "not", "be", "written", "to", "a", "build", "file", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L732-L734", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "Insert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Insert marks this statement for insertion at the end of the file. Multiple\n// statements will be inserted in the order Insert is called.", "docstring_tokens": ["Insert", "marks", "this", "statement", "for", "insertion", "at", "the", "end", "of", "the", "file", ".", "Multiple", "statements", "will", "be", "inserted", "in", "the", "order", "Insert", "is", "called", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L743-L755", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "IsEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsEmpty returns true when the rule contains none of the attributes in attrs\n// for its kind. attrs should contain attributes that make the rule buildable\n// like srcs or deps and not descriptive attributes like name or visibility.", "docstring_tokens": ["IsEmpty", "returns", "true", "when", "the", "rule", "contains", "none", "of", "the", "attributes", "in", "attrs", "for", "its", "kind", ".", "attrs", "should", "contain", "attributes", "that", "make", "the", "rule", "buildable", "like", "srcs", "or", "deps", "and", "not", "descriptive", "attributes", "like", "name", "or", "visibility", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L760-L770", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/rule.go", "func_name": "CheckInternalVisibility", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckInternalVisibility overrides the given visibility if the package is\n// internal.", "docstring_tokens": ["CheckInternalVisibility", "overrides", "the", "given", "visibility", "if", "the", "package", "is", "internal", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/rule.go#L824-L831", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "label/label.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New constructs a new label from components.", "docstring_tokens": ["New", "constructs", "a", "new", "label", "from", "components", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/label/label.go#L54-L56", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "label/label.go", "func_name": "Rel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rel attempts to compute a relative label from this label. If this label\n// is already relative or is in a different package, this label may be\n// returned unchanged.", "docstring_tokens": ["Rel", "attempts", "to", "compute", "a", "relative", "label", "from", "this", "label", ".", "If", "this", "label", "is", "already", "relative", "or", "is", "in", "a", "different", "package", "this", "label", "may", "be", "returned", "unchanged", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/label/label.go#L156-L164", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "label/label.go", "func_name": "Equal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equal returns whether two labels are exactly the same. It does not return\n// true for different labels that refer to the same target.", "docstring_tokens": ["Equal", "returns", "whether", "two", "labels", "are", "exactly", "the", "same", ".", "It", "does", "not", "return", "true", "for", "different", "labels", "that", "refer", "to", "the", "same", "target", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/label/label.go#L168-L173", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "label/label.go", "func_name": "Contains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Contains returns whether other is contained by the package of l or a\n// sub-package. Neither label may be relative.", "docstring_tokens": ["Contains", "returns", "whether", "other", "is", "contained", "by", "the", "package", "of", "l", "or", "a", "sub", "-", "package", ".", "Neither", "label", "may", "be", "relative", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/label/label.go#L177-L186", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/proto/gen/update_proto_csv.go", "func_name": "generateFromPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//\n// Process -go_googleapis case\n//", "docstring_tokens": ["Process", "-", "go_googleapis", "case"], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/proto/gen/update_proto_csv.go#L289-L325", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "walk/walk.go", "func_name": "shouldCall", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shouldCall returns true if Walk should call the callback in the\n// directory rel.", "docstring_tokens": ["shouldCall", "returns", "true", "if", "Walk", "should", "call", "the", "callback", "in", "the", "directory", "rel", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/walk/walk.go#L209-L211", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "walk/walk.go", "func_name": "shouldUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shouldUpdate returns true if Walk should pass true to the callback's update\n// parameter in the directory rel. This indicates the build file should be\n// updated.", "docstring_tokens": ["shouldUpdate", "returns", "true", "if", "Walk", "should", "pass", "true", "to", "the", "callback", "s", "update", "parameter", "in", "the", "directory", "rel", ".", "This", "indicates", "the", "build", "file", "should", "be", "updated", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/walk/walk.go#L216-L218", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "walk/walk.go", "func_name": "shouldVisit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shouldVisit returns true if Walk should visit the subdirectory rel.", "docstring_tokens": ["shouldVisit", "returns", "true", "if", "Walk", "should", "visit", "the", "subdirectory", "rel", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/walk/walk.go#L221-L227", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/merge.go", "func_name": "SquashRules", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SquashRules copies information from src into dst without discarding\n// information in dst. SquashRules detects duplicate elements in lists and\n// dictionaries, but it doesn't sort elements after squashing. If squashing\n// fails because the expression is not understood, an error is returned,\n// and neither rule is modified.", "docstring_tokens": ["SquashRules", "copies", "information", "from", "src", "into", "dst", "without", "discarding", "information", "in", "dst", ".", "SquashRules", "detects", "duplicate", "elements", "in", "lists", "and", "dictionaries", "but", "it", "doesn", "t", "sort", "elements", "after", "squashing", ".", "If", "squashing", "fails", "because", "the", "expression", "is", "not", "understood", "an", "error", "is", "returned", "and", "neither", "rule", "is", "modified", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/merge.go#L272-L295", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/autogazelle/client_unix.go", "func_name": "runClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// runClient performs the main work of the client. It attempts to connect\n// to the server via a UNIX-domain socket. If the server is not running,\n// it starts the server and tries again. The server does all the work, so\n// the client just waits for the server to complete, then exits.", "docstring_tokens": ["runClient", "performs", "the", "main", "work", "of", "the", "client", ".", "It", "attempts", "to", "connect", "to", "the", "server", "via", "a", "UNIX", "-", "domain", "socket", ".", "If", "the", "server", "is", "not", "running", "it", "starts", "the", "server", "and", "tries", "again", ".", "The", "server", "does", "all", "the", "work", "so", "the", "client", "just", "waits", "for", "the", "server", "to", "complete", "then", "exits", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/autogazelle/client_unix.go#L33-L61", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "repo/remote.go", "func_name": "UpdateRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateRepo returns an object describing a repository at the most recent\n// commit or version tag.\n//\n// This function uses RemoteCache to retrieve information about the repository.\n// Depending on how the RemoteCache was initialized and used earlier, some\n// information may already be locally available. Frequently though, information\n// will be fetched over the network, so this function may be slow.", "docstring_tokens": ["UpdateRepo", "returns", "an", "object", "describing", "a", "repository", "at", "the", "most", "recent", "commit", "or", "version", "tag", ".", "This", "function", "uses", "RemoteCache", "to", "retrieve", "information", "about", "the", "repository", ".", "Depending", "on", "how", "the", "RemoteCache", "was", "initialized", "and", "used", "earlier", "some", "information", "may", "already", "be", "locally", "available", ".", "Frequently", "though", "information", "will", "be", "fetched", "over", "the", "network", "so", "this", "function", "may", "be", "slow", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/repo/remote.go#L42-L64", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "repo/remote.go", "func_name": "NewRemoteCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRemoteCache creates a new RemoteCache with a set of known repositories.\n// The Root and Remote methods will return information about repositories listed\n// here without accessing the network. However, the Head method will still\n// access the network for these repositories to retrieve information about new\n// versions.\n//\n// A cleanup function is also returned. The caller must call this when\n// RemoteCache is no longer needed. RemoteCache may write files to a temporary\n// directory. This will delete them.", "docstring_tokens": ["NewRemoteCache", "creates", "a", "new", "RemoteCache", "with", "a", "set", "of", "known", "repositories", ".", "The", "Root", "and", "Remote", "methods", "will", "return", "information", "about", "repositories", "listed", "here", "without", "accessing", "the", "network", ".", "However", "the", "Head", "method", "will", "still", "access", "the", "network", "for", "these", "repositories", "to", "retrieve", "information", "about", "new", "versions", ".", "A", "cleanup", "function", "is", "also", "returned", ".", "The", "caller", "must", "call", "this", "when", "RemoteCache", "is", "no", "longer", "needed", ".", "RemoteCache", "may", "write", "files", "to", "a", "temporary", "directory", ".", "This", "will", "delete", "them", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/repo/remote.go#L139-L175", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "repo/remote.go", "func_name": "Remote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remote returns the VCS name and the remote URL for a repository with the\n// given root import path. This is suitable for creating new repository rules.", "docstring_tokens": ["Remote", "returns", "the", "VCS", "name", "and", "the", "remote", "URL", "for", "a", "repository", "with", "the", "given", "root", "import", "path", ".", "This", "is", "suitable", "for", "creating", "new", "repository", "rules", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/repo/remote.go#L268-L281", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "repo/remote.go", "func_name": "get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// get retrieves a value associated with the given key from the cache. ok will\n// be true if the key exists in the cache, even if it's in the process of\n// being fetched.", "docstring_tokens": ["get", "retrieves", "a", "value", "associated", "with", "the", "given", "key", "from", "the", "cache", ".", "ok", "will", "be", "true", "if", "the", "key", "exists", "in", "the", "cache", "even", "if", "it", "s", "in", "the", "process", "of", "being", "fetched", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/repo/remote.go#L416-L427", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "repo/remote.go", "func_name": "ensure", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ensure retreives a value associated with the given key from the cache. If\n// the key does not exist in the cache, the load function will be called,\n// and its result will be associated with the key. The load function will not\n// be called more than once for any key.", "docstring_tokens": ["ensure", "retreives", "a", "value", "associated", "with", "the", "given", "key", "from", "the", "cache", ".", "If", "the", "key", "does", "not", "exist", "in", "the", "cache", "the", "load", "function", "will", "be", "called", "and", "its", "result", "will", "be", "associated", "with", "the", "key", ".", "The", "load", "function", "will", "not", "be", "called", "more", "than", "once", "for", "any", "key", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/repo/remote.go#L433-L449", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "pathtools/path.go", "func_name": "RelBaseName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RelBaseName returns the base name for rel, a slash-separated path relative\n// to the repository root. If rel is empty, RelBaseName returns the base name\n// of prefix. If prefix is empty, RelBaseName returns the base name of root,\n// the absolute file path of the repository root directory. If that's empty\n// to, then RelBaseName returns \"root\".", "docstring_tokens": ["RelBaseName", "returns", "the", "base", "name", "for", "rel", "a", "slash", "-", "separated", "path", "relative", "to", "the", "repository", "root", ".", "If", "rel", "is", "empty", "RelBaseName", "returns", "the", "base", "name", "of", "prefix", ".", "If", "prefix", "is", "empty", "RelBaseName", "returns", "the", "base", "name", "of", "root", "the", "absolute", "file", "path", "of", "the", "repository", "root", "directory", ".", "If", "that", "s", "empty", "to", "then", "RelBaseName", "returns", "root", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/pathtools/path.go#L55-L67", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "config/config.go", "func_name": "Clone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clone creates a copy of the configuration for use in a subdirectory.\n// Note that the Exts map is copied, but its contents are not.\n// Configurer.Configure should do this, if needed.", "docstring_tokens": ["Clone", "creates", "a", "copy", "of", "the", "configuration", "for", "use", "in", "a", "subdirectory", ".", "Note", "that", "the", "Exts", "map", "is", "copied", "but", "its", "contents", "are", "not", ".", "Configurer", ".", "Configure", "should", "do", "this", "if", "needed", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/config/config.go#L105-L116", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "config/config.go", "func_name": "IsValidBuildFileName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsValidBuildFileName returns true if a file with the given base name\n// should be treated as a build file.", "docstring_tokens": ["IsValidBuildFileName", "returns", "true", "if", "a", "file", "with", "the", "given", "base", "name", "should", "be", "treated", "as", "a", "build", "file", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/config/config.go#L122-L129", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/fileinfo.go", "func_name": "check", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// check returns true if at least one of the tag groups is satisfied.", "docstring_tokens": ["check", "returns", "true", "if", "at", "least", "one", "of", "the", "tag", "groups", "is", "satisfied", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/fileinfo.go#L92-L102", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/fileinfo.go", "func_name": "fileNameInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fileNameInfo returns information that can be inferred from the name of\n// a file. It does not read data from the file.", "docstring_tokens": ["fileNameInfo", "returns", "information", "that", "can", "be", "inferred", "from", "the", "name", "of", "a", "file", ".", "It", "does", "not", "read", "data", "from", "the", "file", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/fileinfo.go#L199-L249", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/fileinfo.go", "func_name": "otherFileInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// otherFileInfo returns information about a non-.go file. It will parse\n// part of the file to determine build tags. If the file can't be read, an\n// error will be logged, and partial information will be returned.", "docstring_tokens": ["otherFileInfo", "returns", "information", "about", "a", "non", "-", ".", "go", "file", ".", "It", "will", "parse", "part", "of", "the", "file", "to", "determine", "build", "tags", ".", "If", "the", "file", "can", "t", "be", "read", "an", "error", "will", "be", "logged", "and", "partial", "information", "will", "be", "returned", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/fileinfo.go#L254-L267", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/fileinfo.go", "func_name": "protoFileInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// protoFileInfo extracts metadata from a proto file. The proto extension\n// already \"parses\" these and stores metadata in proto.FileInfo, so this is\n// just processing relevant options.", "docstring_tokens": ["protoFileInfo", "extracts", "metadata", "from", "a", "proto", "file", ".", "The", "proto", "extension", "already", "parses", "these", "and", "stores", "metadata", "in", "proto", ".", "FileInfo", "so", "this", "is", "just", "processing", "relevant", "options", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/fileinfo.go#L650-L681", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "resolve/index.go", "func_name": "AddRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddRule adds a rule r to the index. The rule will only be indexed if there\n// is a known resolver for the rule's kind and Resolver.Imports returns a\n// non-nil slice.\n//\n// AddRule may only be called before Finish.", "docstring_tokens": ["AddRule", "adds", "a", "rule", "r", "to", "the", "index", ".", "The", "rule", "will", "only", "be", "indexed", "if", "there", "is", "a", "known", "resolver", "for", "the", "rule", "s", "kind", "and", "Resolver", ".", "Imports", "returns", "a", "non", "-", "nil", "slice", ".", "AddRule", "may", "only", "be", "called", "before", "Finish", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/resolve/index.go#L112-L135", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "resolve/index.go", "func_name": "Finish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Finish constructs the import index and performs any other necessary indexing\n// actions after all rules have been added. This step is necessary because\n// a rule may be indexed differently based on what rules are added later.\n//\n// Finish must be called after all AddRule calls and before any\n// FindRulesByImport calls.", "docstring_tokens": ["Finish", "constructs", "the", "import", "index", "and", "performs", "any", "other", "necessary", "indexing", "actions", "after", "all", "rules", "have", "been", "added", ".", "This", "step", "is", "necessary", "because", "a", "rule", "may", "be", "indexed", "differently", "based", "on", "what", "rules", "are", "added", "later", ".", "Finish", "must", "be", "called", "after", "all", "AddRule", "calls", "and", "before", "any", "FindRulesByImport", "calls", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/resolve/index.go#L143-L148", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "resolve/index.go", "func_name": "buildImportIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildImportIndex constructs the map used by FindRulesByImport.", "docstring_tokens": ["buildImportIndex", "constructs", "the", "map", "used", "by", "FindRulesByImport", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/resolve/index.go#L173-L188", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "resolve/index.go", "func_name": "IsSelfImport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsSelfImport returns true if the result's label matches the given label\n// or the result's rule transitively embeds the rule with the given label.\n// Self imports cause cyclic dependencies, so the caller may want to omit\n// the dependency or report an error.", "docstring_tokens": ["IsSelfImport", "returns", "true", "if", "the", "result", "s", "label", "matches", "the", "given", "label", "or", "the", "result", "s", "rule", "transitively", "embeds", "the", "rule", "with", "the", "given", "label", ".", "Self", "imports", "cause", "cyclic", "dependencies", "so", "the", "caller", "may", "want", "to", "omit", "the", "dependency", "or", "report", "an", "error", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/resolve/index.go#L236-L246", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/gazelle/fix-update.go", "func_name": "applyKindMappings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// applyKindMappings returns a copy of LoadInfo that includes c.KindMap.", "docstring_tokens": ["applyKindMappings", "returns", "a", "copy", "of", "LoadInfo", "that", "includes", "c", ".", "KindMap", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/gazelle/fix-update.go#L517-L529", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/gazelle/fix-update.go", "func_name": "appendOrMergeKindMapping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// appendOrMergeKindMapping adds LoadInfo for the given replacement.", "docstring_tokens": ["appendOrMergeKindMapping", "adds", "LoadInfo", "for", "the", "given", "replacement", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/gazelle/fix-update.go#L532-L546", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/proto/generate.go", "func_name": "RuleName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RuleName returns a name for a proto_library derived from the given strings.\n// For each string, RuleName will look for a non-empty suffix of identifier\n// characters and then append \"_proto\" to that.", "docstring_tokens": ["RuleName", "returns", "a", "name", "for", "a", "proto_library", "derived", "from", "the", "given", "strings", ".", "For", "each", "string", "RuleName", "will", "look", "for", "a", "non", "-", "empty", "suffix", "of", "identifier", "characters", "and", "then", "append", "_proto", "to", "that", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/proto/generate.go#L75-L93", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/proto/generate.go", "func_name": "buildPackages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildPackage extracts metadata from the .proto files in a directory and\n// constructs possibly several packages, then selects a package to generate\n// a proto_library rule for.", "docstring_tokens": ["buildPackage", "extracts", "metadata", "from", "the", ".", "proto", "files", "in", "a", "directory", "and", "constructs", "possibly", "several", "packages", "then", "selects", "a", "package", "to", "generate", "a", "proto_library", "rule", "for", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/proto/generate.go#L98-L141", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/proto/generate.go", "func_name": "selectPackage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// selectPackage chooses a package to generate rules for.", "docstring_tokens": ["selectPackage", "chooses", "a", "package", "to", "generate", "rules", "for", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/proto/generate.go#L144-L160", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/proto/generate.go", "func_name": "generateProto", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// generateProto creates a new proto_library rule for a package. The rule may\n// be empty if there are no sources.", "docstring_tokens": ["generateProto", "creates", "a", "new", "proto_library", "rule", "for", "a", "package", ".", "The", "rule", "may", "be", "empty", "if", "there", "are", "no", "sources", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/proto/generate.go#L191-L230", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/proto/generate.go", "func_name": "generateEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// generateEmpty generates a list of proto_library rules that may be deleted.\n// This is generated from existing proto_library rules with srcs lists that\n// don't match any static or generated files.", "docstring_tokens": ["generateEmpty", "generates", "a", "list", "of", "proto_library", "rules", "that", "may", "be", "deleted", ".", "This", "is", "generated", "from", "existing", "proto_library", "rules", "with", "srcs", "lists", "that", "don", "t", "match", "any", "static", "or", "generated", "files", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/proto/generate.go#L235-L265", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "repo/repo.go", "func_name": "ImportRepoRules", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImportRepoRules reads the lock file of a vendoring tool and returns\n// a list of equivalent repository rules that can be merged into a WORKSPACE\n// file. The format of the file is inferred from its basename.", "docstring_tokens": ["ImportRepoRules", "reads", "the", "lock", "file", "of", "a", "vendoring", "tool", "and", "returns", "a", "list", "of", "equivalent", "repository", "rules", "that", "can", "be", "merged", "into", "a", "WORKSPACE", "file", ".", "The", "format", "of", "the", "file", "is", "inferred", "from", "its", "basename", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/repo/repo.go#L95-L112", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "repo/repo.go", "func_name": "MergeRules", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MergeRules merges a list of generated repo rules with the already defined repo rules,\n// and then updates each rule's underlying file. If the generated rule matches an existing\n// one, then it inherits the file where the existing rule was defined. If the rule is new then\n// its file is set as the destFile parameter. A list of the updated files is returned.", "docstring_tokens": ["MergeRules", "merges", "a", "list", "of", "generated", "repo", "rules", "with", "the", "already", "defined", "repo", "rules", "and", "then", "updates", "each", "rule", "s", "underlying", "file", ".", "If", "the", "generated", "rule", "matches", "an", "existing", "one", "then", "it", "inherits", "the", "file", "where", "the", "existing", "rule", "was", "defined", ".", "If", "the", "rule", "is", "new", "then", "its", "file", "is", "set", "as", "the", "destFile", "parameter", ".", "A", "list", "of", "the", "updated", "files", "is", "returned", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/repo/repo.go#L118-L155", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "repo/repo.go", "func_name": "GenerateRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateRule returns a repository rule for the given repository that can\n// be written in a WORKSPACE file.", "docstring_tokens": ["GenerateRule", "returns", "a", "repository", "rule", "for", "the", "given", "repository", "that", "can", "be", "written", "in", "a", "WORKSPACE", "file", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/repo/repo.go#L172-L197", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "repo/repo.go", "func_name": "FindExternalRepo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindExternalRepo attempts to locate the directory where Bazel has fetched\n// the external repository with the given name. An error is returned if the\n// repository directory cannot be located.", "docstring_tokens": ["FindExternalRepo", "attempts", "to", "locate", "the", "directory", "where", "Bazel", "has", "fetched", "the", "external", "repository", "with", "the", "given", "name", ".", "An", "error", "is", "returned", "if", "the", "repository", "directory", "cannot", "be", "located", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/repo/repo.go#L202-L224", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "repo/repo.go", "func_name": "ListRepositories", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListRepositories extracts metadata about repositories declared in a\n// file.", "docstring_tokens": ["ListRepositories", "extracts", "metadata", "about", "repositories", "declared", "in", "a", "file", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/repo/repo.go#L228-L250", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/fix.go", "func_name": "migrateLibraryEmbed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// migrateLibraryEmbed converts \"library\" attributes to \"embed\" attributes,\n// preserving comments. This only applies to Go rules, and only if there is\n// no keep comment on \"library\" and no existing \"embed\" attribute.", "docstring_tokens": ["migrateLibraryEmbed", "converts", "library", "attributes", "to", "embed", "attributes", "preserving", "comments", ".", "This", "only", "applies", "to", "Go", "rules", "and", "only", "if", "there", "is", "no", "keep", "comment", "on", "library", "and", "no", "existing", "embed", "attribute", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/fix.go#L40-L52", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/fix.go", "func_name": "migrateGrpcCompilers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// migrateGrpcCompilers converts \"go_grpc_library\" rules into \"go_proto_library\"\n// rules with a \"compilers\" attribute.", "docstring_tokens": ["migrateGrpcCompilers", "converts", "go_grpc_library", "rules", "into", "go_proto_library", "rules", "with", "a", "compilers", "attribute", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/fix.go#L56-L64", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/fix.go", "func_name": "squashCgoLibrary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// squashCgoLibrary removes cgo_library rules with the default name and\n// merges their attributes with go_library with the default name. If no\n// go_library rule exists, a new one will be created.\n//\n// Note that the library attribute is disregarded, so cgo_library and\n// go_library attributes will be squashed even if the cgo_library was unlinked.\n// MergeFile will remove unused values and attributes later.", "docstring_tokens": ["squashCgoLibrary", "removes", "cgo_library", "rules", "with", "the", "default", "name", "and", "merges", "their", "attributes", "with", "go_library", "with", "the", "default", "name", ".", "If", "no", "go_library", "rule", "exists", "a", "new", "one", "will", "be", "created", ".", "Note", "that", "the", "library", "attribute", "is", "disregarded", "so", "cgo_library", "and", "go_library", "attributes", "will", "be", "squashed", "even", "if", "the", "cgo_library", "was", "unlinked", ".", "MergeFile", "will", "remove", "unused", "values", "and", "attributes", "later", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/fix.go#L73-L116", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/fix.go", "func_name": "removeLegacyProto", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeLegacyProto removes uses of the old proto rules. It deletes loads\n// from go_proto_library.bzl. It deletes proto filegroups. It removes\n// go_proto_library attributes which are no longer recognized. New rules\n// are generated in place of the deleted rules, but attributes and comments\n// are not migrated.", "docstring_tokens": ["removeLegacyProto", "removes", "uses", "of", "the", "old", "proto", "rules", ".", "It", "deletes", "loads", "from", "go_proto_library", ".", "bzl", ".", "It", "deletes", "proto", "filegroups", ".", "It", "removes", "go_proto_library", "attributes", "which", "are", "no", "longer", "recognized", ".", "New", "rules", "are", "generated", "in", "place", "of", "the", "deleted", "rules", "but", "attributes", "and", "comments", "are", "not", "migrated", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/fix.go#L188-L231", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/fix.go", "func_name": "removeLegacyGazelle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeLegacyGazelle removes loads of the \"gazelle\" macro from\n// @io_bazel_rules_go//go:def.bzl. The definition has moved to\n// @bazel_gazelle//:def.bzl, and the old one will be deleted soon.", "docstring_tokens": ["removeLegacyGazelle", "removes", "loads", "of", "the", "gazelle", "macro", "from"], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/fix.go#L236-L245", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/generate.go", "func_name": "selectPackage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// selectPackages selects one Go packages out of the buildable packages found\n// in a directory. If multiple packages are found, it returns the package\n// whose name matches the directory if such a package exists.", "docstring_tokens": ["selectPackages", "selects", "one", "Go", "packages", "out", "of", "the", "buildable", "packages", "found", "in", "a", "directory", ".", "If", "multiple", "packages", "are", "found", "it", "returns", "the", "package", "whose", "name", "matches", "the", "directory", "if", "such", "a", "package", "exists", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/generate.go#L299-L331", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/gazelle/metaresolver.go", "func_name": "AddBuiltin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddBuiltin registers a builtin kind with its info.", "docstring_tokens": ["AddBuiltin", "registers", "a", "builtin", "kind", "with", "its", "info", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/gazelle/metaresolver.go#L41-L43", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/gazelle/metaresolver.go", "func_name": "MappedKind", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MappedKind records the fact that the given mapping was applied while\n// processing the given package.", "docstring_tokens": ["MappedKind", "records", "the", "fact", "that", "the", "given", "mapping", "was", "applied", "while", "processing", "the", "given", "package", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/gazelle/metaresolver.go#L47-L49", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/gazelle/metaresolver.go", "func_name": "Resolver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Resolver returns a resolver for the given rule and package, and a bool\n// indicating whether one was found. Empty string may be passed for pkgRel,\n// which results in consulting the builtin kinds only.", "docstring_tokens": ["Resolver", "returns", "a", "resolver", "for", "the", "given", "rule", "and", "package", "and", "a", "bool", "indicating", "whether", "one", "was", "found", ".", "Empty", "string", "may", "be", "passed", "for", "pkgRel", "which", "results", "in", "consulting", "the", "builtin", "kinds", "only", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/gazelle/metaresolver.go#L54-L61", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "rule/sort_labels.go", "func_name": "sortExprLabels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sortExprLabels sorts lists of strings using the same order as buildifier.\n// Buildifier also sorts string lists, but not those involved with \"select\"\n// expressions. This function is intended to be used with bzl.Walk.", "docstring_tokens": ["sortExprLabels", "sorts", "lists", "of", "strings", "using", "the", "same", "order", "as", "buildifier", ".", "Buildifier", "also", "sorts", "string", "lists", "but", "not", "those", "involved", "with", "select", "expressions", ".", "This", "function", "is", "intended", "to", "be", "used", "with", "bzl", ".", "Walk", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/rule/sort_labels.go#L28-L50", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/gazelle/version.go", "func_name": "checkRulesGoVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkRulesGoVersion checks whether a compatible version of rules_go is\n// being used in the workspace. A message will be logged if an incompatible\n// version is found.\n//\n// Note that we can't always determine the version of rules_go in use. Also,\n// if we find an incompatible version, we shouldn't bail out since the\n// incompatibility may not matter in the current workspace.", "docstring_tokens": ["checkRulesGoVersion", "checks", "whether", "a", "compatible", "version", "of", "rules_go", "is", "being", "used", "in", "the", "workspace", ".", "A", "message", "will", "be", "logged", "if", "an", "incompatible", "version", "is", "found", ".", "Note", "that", "we", "can", "t", "always", "determine", "the", "version", "of", "rules_go", "in", "use", ".", "Also", "if", "we", "find", "an", "incompatible", "version", "we", "shouldn", "t", "bail", "out", "since", "the", "incompatibility", "may", "not", "matter", "in", "the", "current", "workspace", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/gazelle/version.go#L38-L65", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/config.go", "func_name": "preprocessTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// preprocessTags adds some tags which are on by default before they are\n// used to match files.", "docstring_tokens": ["preprocessTags", "adds", "some", "tags", "which", "are", "on", "by", "default", "before", "they", "are", "used", "to", "match", "files", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/config.go#L111-L116", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/config.go", "func_name": "setBuildTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setBuildTags sets genericTags by parsing as a comma separated list. An\n// error will be returned for tags that wouldn't be recognized by \"go build\".\n// preprocessTags should be called before this.", "docstring_tokens": ["setBuildTags", "sets", "genericTags", "by", "parsing", "as", "a", "comma", "separated", "list", ".", "An", "error", "will", "be", "returned", "for", "tags", "that", "wouldn", "t", "be", "recognized", "by", "go", "build", ".", "preprocessTags", "should", "be", "called", "before", "this", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/config.go#L121-L132", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/config.go", "func_name": "splitValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// splitDirective splits a comma-separated directive value into its component\n// parts, trimming each of any whitespace characters.", "docstring_tokens": ["splitDirective", "splits", "a", "comma", "-", "separated", "directive", "value", "into", "its", "component", "parts", "trimming", "each", "of", "any", "whitespace", "characters", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/config.go#L360-L367", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "repo/modules.go", "func_name": "copyGoModToTemp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyGoModToTemp copies to given go.mod file to a temporary directory.\n// go list tends to mutate go.mod files, but gazelle shouldn't do that.", "docstring_tokens": ["copyGoModToTemp", "copies", "to", "given", "go", ".", "mod", "file", "to", "a", "temporary", "directory", ".", "go", "list", "tends", "to", "mutate", "go", ".", "mod", "files", "but", "gazelle", "shouldn", "t", "do", "that", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/repo/modules.go#L174-L203", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "repo/modules.go", "func_name": "findGoTool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findGoTool attempts to locate the go executable. If GOROOT is set, we'll\n// prefer the one in there; otherwise, we'll rely on PATH. If the wrapper\n// script generated by the gazelle rule is invoked by Bazel, it will set\n// GOROOT to the configured SDK. We don't want to rely on the host SDK in\n// that situation.", "docstring_tokens": ["findGoTool", "attempts", "to", "locate", "the", "go", "executable", ".", "If", "GOROOT", "is", "set", "we", "ll", "prefer", "the", "one", "in", "there", ";", "otherwise", "we", "ll", "rely", "on", "PATH", ".", "If", "the", "wrapper", "script", "generated", "by", "the", "gazelle", "rule", "is", "invoked", "by", "Bazel", "it", "will", "set", "GOROOT", "to", "the", "configured", "SDK", ".", "We", "don", "t", "want", "to", "rely", "on", "the", "host", "SDK", "in", "that", "situation", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/repo/modules.go#L210-L219", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "language/go/package.go", "func_name": "isBuildable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isBuildable returns true if anything in the package is buildable.\n// This is true if the package has Go code that satisfies build constraints\n// on any platform or has proto files not in legacy mode.", "docstring_tokens": ["isBuildable", "returns", "true", "if", "anything", "in", "the", "package", "is", "buildable", ".", "This", "is", "true", "if", "the", "package", "has", "Go", "code", "that", "satisfies", "build", "constraints", "on", "any", "platform", "or", "has", "proto", "files", "not", "in", "legacy", "mode", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/language/go/package.go#L121-L123", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/autogazelle/server_unix.go", "func_name": "startServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startServer starts a new server process. This is called by the client.", "docstring_tokens": ["startServer", "starts", "a", "new", "server", "process", ".", "This", "is", "called", "by", "the", "client", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/autogazelle/server_unix.go#L36-L52", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/autogazelle/server_unix.go", "func_name": "watchDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// watchDir listens for file system changes in root and its\n// subdirectories. The record function is called with directories whose\n// contents have changed. New directories are watched recursively.\n// The returned cancel function may be called to stop watching.", "docstring_tokens": ["watchDir", "listens", "for", "file", "system", "changes", "in", "root", "and", "its", "subdirectories", ".", "The", "record", "function", "is", "called", "with", "directories", "whose", "contents", "have", "changed", ".", "New", "directories", "are", "watched", "recursively", ".", "The", "returned", "cancel", "function", "may", "be", "called", "to", "stop", "watching", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/autogazelle/server_unix.go#L143-L200", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/autogazelle/server_unix.go", "func_name": "listDirs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// listDirs returns a slice containing all the subdirectories under dir,\n// including dir itself.", "docstring_tokens": ["listDirs", "returns", "a", "slice", "containing", "all", "the", "subdirectories", "under", "dir", "including", "dir", "itself", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/autogazelle/server_unix.go#L204-L221", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/autogazelle/server_unix.go", "func_name": "shouldIgnore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shouldIgnore returns whether a write to the given file should be ignored\n// because they were caused by gazelle or autogazelle or something unrelated\n// to the build.", "docstring_tokens": ["shouldIgnore", "returns", "whether", "a", "write", "to", "the", "given", "file", "should", "be", "ignored", "because", "they", "were", "caused", "by", "gazelle", "or", "autogazelle", "or", "something", "unrelated", "to", "the", "build", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/autogazelle/server_unix.go#L226-L230", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/autogazelle/server_unix.go", "func_name": "recordWrite", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recordWrite records that a directory has been modified and that its build\n// file should be updated the next time gazelle runs.", "docstring_tokens": ["recordWrite", "records", "that", "a", "directory", "has", "been", "modified", "and", "that", "its", "build", "file", "should", "be", "updated", "the", "next", "time", "gazelle", "runs", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/autogazelle/server_unix.go#L239-L243", "partition": "test"} +{"repo": "bazelbuild/bazel-gazelle", "path": "cmd/autogazelle/server_unix.go", "func_name": "getAndClearWrittenDirs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getAndClearWrittenDirs retrieves a list of directories that have been\n// modified since the last time getAndClearWrittenDirs was called.", "docstring_tokens": ["getAndClearWrittenDirs", "retrieves", "a", "list", "of", "directories", "that", "have", "been", "modified", "since", "the", "last", "time", "getAndClearWrittenDirs", "was", "called", "."], "sha": "e3805aaca69a9deb949b47bfc45b9b1870712f4f", "url": "https://github.com/bazelbuild/bazel-gazelle/blob/e3805aaca69a9deb949b47bfc45b9b1870712f4f/cmd/autogazelle/server_unix.go#L247-L256", "partition": "test"} +{"repo": "onsi/gomega", "path": "ghttp/handlers.go", "func_name": "CombineHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//CombineHandler takes variadic list of handlers and produces one handler\n//that calls each handler in order.", "docstring_tokens": ["CombineHandler", "takes", "variadic", "list", "of", "handlers", "and", "produces", "one", "handler", "that", "calls", "each", "handler", "in", "order", "."], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/ghttp/handlers.go#L20-L26", "partition": "test"} +{"repo": "onsi/gomega", "path": "ghttp/handlers.go", "func_name": "VerifyContentType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//VerifyContentType returns a handler that verifies that a request has a Content-Type header set to the\n//specified value", "docstring_tokens": ["VerifyContentType", "returns", "a", "handler", "that", "verifies", "that", "a", "request", "has", "a", "Content", "-", "Type", "header", "set", "to", "the", "specified", "value"], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/ghttp/handlers.go#L53-L57", "partition": "test"} +{"repo": "onsi/gomega", "path": "ghttp/handlers.go", "func_name": "VerifyMimeType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//VerifyMimeType returns a handler that verifies that a request has a specified mime type set\n//in Content-Type header", "docstring_tokens": ["VerifyMimeType", "returns", "a", "handler", "that", "verifies", "that", "a", "request", "has", "a", "specified", "mime", "type", "set", "in", "Content", "-", "Type", "header"], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/ghttp/handlers.go#L61-L65", "partition": "test"} +{"repo": "onsi/gomega", "path": "ghttp/handlers.go", "func_name": "VerifyBasicAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//VerifyBasicAuth returns a handler that verifies the request contains a BasicAuth Authorization header\n//matching the passed in username and password", "docstring_tokens": ["VerifyBasicAuth", "returns", "a", "handler", "that", "verifies", "the", "request", "contains", "a", "BasicAuth", "Authorization", "header", "matching", "the", "passed", "in", "username", "and", "password"], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/ghttp/handlers.go#L69-L79", "partition": "test"} +{"repo": "onsi/gomega", "path": "ghttp/handlers.go", "func_name": "VerifyJSONRepresenting", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//VerifyJSONRepresenting is similar to VerifyJSON. Instead of taking a JSON string, however, it\n//takes an arbitrary JSON-encodable object and verifies that the requests's body is a JSON representation\n//that matches the object", "docstring_tokens": ["VerifyJSONRepresenting", "is", "similar", "to", "VerifyJSON", ".", "Instead", "of", "taking", "a", "JSON", "string", "however", "it", "takes", "an", "arbitrary", "JSON", "-", "encodable", "object", "and", "verifies", "that", "the", "requests", "s", "body", "is", "a", "JSON", "representation", "that", "matches", "the", "object"], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/ghttp/handlers.go#L134-L141", "partition": "test"} +{"repo": "onsi/gomega", "path": "ghttp/handlers.go", "func_name": "VerifyFormKV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//VerifyFormKV returns a handler that verifies a request contains a form key with the specified values.\n//\n//It is a convenience wrapper around `VerifyForm` that lets you avoid having to create a `url.Values` object.", "docstring_tokens": ["VerifyFormKV", "returns", "a", "handler", "that", "verifies", "a", "request", "contains", "a", "form", "key", "with", "the", "specified", "values", ".", "It", "is", "a", "convenience", "wrapper", "around", "VerifyForm", "that", "lets", "you", "avoid", "having", "to", "create", "a", "url", ".", "Values", "object", "."], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/ghttp/handlers.go#L160-L162", "partition": "test"} +{"repo": "onsi/gomega", "path": "ghttp/handlers.go", "func_name": "RespondWithProto", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//RespondWithProto returns a handler that responds to a request with the specified status code and a body\n//containing the protobuf serialization of the provided message.\n//\n//Also, RespondWithProto can be given an optional http.Header. The headers defined therein will be added to the response headers.", "docstring_tokens": ["RespondWithProto", "returns", "a", "handler", "that", "responds", "to", "a", "request", "with", "the", "specified", "status", "code", "and", "a", "body", "containing", "the", "protobuf", "serialization", "of", "the", "provided", "message", ".", "Also", "RespondWithProto", "can", "be", "given", "an", "optional", "http", ".", "Header", ".", "The", "headers", "defined", "therein", "will", "be", "added", "to", "the", "response", "headers", "."], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/ghttp/handlers.go#L303-L322", "partition": "test"} +{"repo": "onsi/gomega", "path": "gomega_dsl.go", "func_name": "RegisterFailHandlerWithT", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterFailHandlerWithT ensures that the given types.TWithHelper and fail handler\n// are used globally.", "docstring_tokens": ["RegisterFailHandlerWithT", "ensures", "that", "the", "given", "types", ".", "TWithHelper", "and", "fail", "handler", "are", "used", "globally", "."], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/gomega_dsl.go#L50-L60", "partition": "test"} +{"repo": "onsi/gomega", "path": "gomega_dsl.go", "func_name": "EventuallyWithOffset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EventuallyWithOffset operates like Eventually but takes an additional\n// initial argument to indicate an offset in the call stack. This is useful when building helper\n// functions that contain matchers. To learn more, read about `ExpectWithOffset`.", "docstring_tokens": ["EventuallyWithOffset", "operates", "like", "Eventually", "but", "takes", "an", "additional", "initial", "argument", "to", "indicate", "an", "offset", "in", "the", "call", "stack", ".", "This", "is", "useful", "when", "building", "helper", "functions", "that", "contain", "matchers", ".", "To", "learn", "more", "read", "about", "ExpectWithOffset", "."], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/gomega_dsl.go#L213-L226", "partition": "test"} +{"repo": "onsi/gomega", "path": "gomega_dsl.go", "func_name": "ConsistentlyWithOffset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConsistentlyWithOffset operates like Consistnetly but takes an additional\n// initial argument to indicate an offset in the call stack. This is useful when building helper\n// functions that contain matchers. To learn more, read about `ExpectWithOffset`.", "docstring_tokens": ["ConsistentlyWithOffset", "operates", "like", "Consistnetly", "but", "takes", "an", "additional", "initial", "argument", "to", "indicate", "an", "offset", "in", "the", "call", "stack", ".", "This", "is", "useful", "when", "building", "helper", "functions", "that", "contain", "matchers", ".", "To", "learn", "more", "read", "about", "ExpectWithOffset", "."], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/gomega_dsl.go#L258-L271", "partition": "test"} +{"repo": "onsi/gomega", "path": "gomega_dsl.go", "func_name": "Expect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Expect is used to make assertions. See documentation for Expect.", "docstring_tokens": ["Expect", "is", "used", "to", "make", "assertions", ".", "See", "documentation", "for", "Expect", "."], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/gomega_dsl.go#L375-L377", "partition": "test"} +{"repo": "onsi/gomega", "path": "gomega_dsl.go", "func_name": "Eventually", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Eventually is used to make asynchronous assertions. See documentation for Eventually.", "docstring_tokens": ["Eventually", "is", "used", "to", "make", "asynchronous", "assertions", ".", "See", "documentation", "for", "Eventually", "."], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/gomega_dsl.go#L380-L390", "partition": "test"} +{"repo": "onsi/gomega", "path": "gomega_dsl.go", "func_name": "Consistently", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Consistently is used to make asynchronous assertions. See documentation for Consistently.", "docstring_tokens": ["Consistently", "is", "used", "to", "make", "asynchronous", "assertions", ".", "See", "documentation", "for", "Consistently", "."], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/gomega_dsl.go#L393-L403", "partition": "test"} +{"repo": "onsi/gomega", "path": "gbytes/io_wrappers.go", "func_name": "TimeoutCloser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TimeoutCloser returns an io.Closer that wraps the passed-in io.Closer. If the underlying Closer fails to close within the alloted timeout ErrTimeout is returned.", "docstring_tokens": ["TimeoutCloser", "returns", "an", "io", ".", "Closer", "that", "wraps", "the", "passed", "-", "in", "io", ".", "Closer", ".", "If", "the", "underlying", "Closer", "fails", "to", "close", "within", "the", "alloted", "timeout", "ErrTimeout", "is", "returned", "."], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/gbytes/io_wrappers.go#L13-L15", "partition": "test"} +{"repo": "onsi/gomega", "path": "gbytes/io_wrappers.go", "func_name": "TimeoutReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TimeoutReader returns an io.Reader that wraps the passed-in io.Reader. If the underlying Reader fails to read within the alloted timeout ErrTimeout is returned.", "docstring_tokens": ["TimeoutReader", "returns", "an", "io", ".", "Reader", "that", "wraps", "the", "passed", "-", "in", "io", ".", "Reader", ".", "If", "the", "underlying", "Reader", "fails", "to", "read", "within", "the", "alloted", "timeout", "ErrTimeout", "is", "returned", "."], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/gbytes/io_wrappers.go#L18-L20", "partition": "test"} +{"repo": "onsi/gomega", "path": "gbytes/io_wrappers.go", "func_name": "TimeoutWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TimeoutWriter returns an io.Writer that wraps the passed-in io.Writer. If the underlying Writer fails to write within the alloted timeout ErrTimeout is returned.", "docstring_tokens": ["TimeoutWriter", "returns", "an", "io", ".", "Writer", "that", "wraps", "the", "passed", "-", "in", "io", ".", "Writer", ".", "If", "the", "underlying", "Writer", "fails", "to", "write", "within", "the", "alloted", "timeout", "ErrTimeout", "is", "returned", "."], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/gbytes/io_wrappers.go#L23-L25", "partition": "test"} +{"repo": "onsi/gomega", "path": "gstruct/errors/nested_types.go", "func_name": "Nest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a NestedError with the given path.\n// If err is a NestedError, prepend the path to it.\n// If err is an AggregateError, recursively Nest each error.", "docstring_tokens": ["Create", "a", "NestedError", "with", "the", "given", "path", ".", "If", "err", "is", "a", "NestedError", "prepend", "the", "path", "to", "it", ".", "If", "err", "is", "an", "AggregateError", "recursively", "Nest", "each", "error", "."], "sha": "f0e010e04c08c48a875f83d17df37b04eb3a985b", "url": "https://github.com/onsi/gomega/blob/f0e010e04c08c48a875f83d17df37b04eb3a985b/gstruct/errors/nested_types.go#L34-L52", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "servicemanager/mock/servicemanager_mock.go", "func_name": "SetMockService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMockService return a new MockService and set as a servicemanager", "docstring_tokens": ["SetMockService", "return", "a", "new", "MockService", "and", "set", "as", "a", "servicemanager"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/servicemanager/mock/servicemanager_mock.go#L33-L54", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "iaas/machine.go", "func_name": "FindMachineByIdOrAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uses id or address, this is only used because previously we didn't have\n// iaas-id in node metadata.", "docstring_tokens": ["Uses", "id", "or", "address", "this", "is", "only", "used", "because", "previously", "we", "didn", "t", "have", "iaas", "-", "id", "in", "node", "metadata", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/iaas/machine.go#L124-L142", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "io/flushing_writer.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes and flushes the data.", "docstring_tokens": ["Write", "writes", "and", "flushes", "the", "data", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/io/flushing_writer.go#L32-L51", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "io/flushing_writer.go", "func_name": "Hijack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Hijack will hijack the underlying TCP connection, if available in the\n// ResponseWriter.", "docstring_tokens": ["Hijack", "will", "hijack", "the", "underlying", "TCP", "connection", "if", "available", "in", "the", "ResponseWriter", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/io/flushing_writer.go#L60-L65", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/deploy.go", "func_name": "ListDeploys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListDeploys returns the list of deploy that match a given filter.", "docstring_tokens": ["ListDeploys", "returns", "the", "list", "of", "deploy", "that", "match", "a", "given", "filter", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/deploy.go#L75-L104", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "api/router/router.go", "func_name": "AddAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddAll binds a path to GET, POST, PUT and DELETE methods.", "docstring_tokens": ["AddAll", "binds", "a", "path", "to", "GET", "POST", "PUT", "and", "DELETE", "methods", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/api/router/router.go#L63-L65", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "cmd/saml.go", "func_name": "samlRequestTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Return timeout in seconds", "docstring_tokens": ["Return", "timeout", "in", "seconds"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/cmd/saml.go#L66-L70", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "api/server.go", "func_name": "RegisterHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterHandler inserts a handler on a list of handlers for version 1.0", "docstring_tokens": ["RegisterHandler", "inserts", "a", "handler", "on", "a", "list", "of", "handlers", "for", "version", "1", ".", "0"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/api/server.go#L71-L73", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "api/server.go", "func_name": "RegisterHandlerVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterHandlerVersion inserts a handler on a list of handlers", "docstring_tokens": ["RegisterHandlerVersion", "inserts", "a", "handler", "on", "a", "list", "of", "handlers"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/api/server.go#L76-L83", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "hc/healthchecker.go", "func_name": "Check", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check check the status of registered checkers matching names and return a\n// list of results.", "docstring_tokens": ["Check", "check", "the", "status", "of", "registered", "checkers", "matching", "names", "and", "return", "a", "list", "of", "results", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/hc/healthchecker.go#L47-L71", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "git/git.go", "func_name": "DiscoverRepositoryPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DiscoverRepositoryPath finds the path of the repository from a given\n// directory. It returns the path to the repository, or an an empty string and\n// a non-nil error if it can't find the repository.", "docstring_tokens": ["DiscoverRepositoryPath", "finds", "the", "path", "of", "the", "repository", "from", "a", "given", "directory", ".", "It", "returns", "the", "path", "to", "the", "repository", "or", "an", "an", "empty", "string", "and", "a", "non", "-", "nil", "error", "if", "it", "can", "t", "find", "the", "repository", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/git/git.go#L27-L41", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "git/git.go", "func_name": "OpenRepository", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpenRepository opens a repository by its filepath. You can use\n// DiscoverRepositoryPath to discover the repository from any directory, and\n// use the result of this call as parameter for OpenRepository.\n//\n// OpenRepository will return an error if the given path does not appear to be\n// a git repository.", "docstring_tokens": ["OpenRepository", "opens", "a", "repository", "by", "its", "filepath", ".", "You", "can", "use", "DiscoverRepositoryPath", "to", "discover", "the", "repository", "from", "any", "directory", "and", "use", "the", "result", "of", "this", "call", "as", "parameter", "for", "OpenRepository", ".", "OpenRepository", "will", "return", "an", "error", "if", "the", "given", "path", "does", "not", "appear", "to", "be", "a", "git", "repository", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/git/git.go#L54-L64", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "git/git.go", "func_name": "RemoteURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoteURL returns the URL of a remote by its name. Or an error, if the\n// remote is not declared.", "docstring_tokens": ["RemoteURL", "returns", "the", "URL", "of", "a", "remote", "by", "its", "name", ".", "Or", "an", "error", "if", "the", "remote", "is", "not", "declared", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/git/git.go#L68-L84", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/listers/tsuru/v1/app.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List lists all Apps in the indexer.", "docstring_tokens": ["List", "lists", "all", "Apps", "in", "the", "indexer", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/listers/tsuru/v1/app.go#L38-L43", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/listers/tsuru/v1/app.go", "func_name": "Apps", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Apps returns an object that can list and get Apps.", "docstring_tokens": ["Apps", "returns", "an", "object", "that", "can", "list", "and", "get", "Apps", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/listers/tsuru/v1/app.go#L46-L48", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/listers/tsuru/v1/app.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List lists all Apps in the indexer for a given namespace.", "docstring_tokens": ["List", "lists", "all", "Apps", "in", "the", "indexer", "for", "a", "given", "namespace", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/listers/tsuru/v1/app.go#L67-L72", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "cmd/client.go", "func_name": "StreamJSONResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StreamJSONResponse supports the JSON streaming format from the tsuru API.", "docstring_tokens": ["StreamJSONResponse", "supports", "the", "JSON", "streaming", "format", "from", "the", "tsuru", "API", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/cmd/client.go#L133-L150", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "db/storage/storage.go", "func_name": "DropDatabase", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DropDatabase drop database of any given name", "docstring_tokens": ["DropDatabase", "drop", "database", "of", "any", "given", "name"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/db/storage/storage.go#L88-L90", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "db/storage/storage.go", "func_name": "Collection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Collection returns a collection by its name.\n//\n// If the collection does not exist, MongoDB will create it.", "docstring_tokens": ["Collection", "returns", "a", "collection", "by", "its", "name", ".", "If", "the", "collection", "does", "not", "exist", "MongoDB", "will", "create", "it", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/db/storage/storage.go#L95-L97", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "log/log.go", "func_name": "SetLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLogger defines a new logger for the current target.\n//\n// See the builtin log package for more details.", "docstring_tokens": ["SetLogger", "defines", "a", "new", "logger", "for", "the", "current", "target", ".", "See", "the", "builtin", "log", "package", "for", "more", "details", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/log/log.go#L68-L72", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "log/log.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error writes the given values to the Target\n// logger.", "docstring_tokens": ["Error", "writes", "the", "given", "values", "to", "the", "Target", "logger", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/log/log.go#L76-L82", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "log/log.go", "func_name": "Errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Errorf writes the formatted string to the Target\n// logger.", "docstring_tokens": ["Errorf", "writes", "the", "formatted", "string", "to", "the", "Target", "logger", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/log/log.go#L90-L101", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "log/log.go", "func_name": "Fatal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fatal writes the given values to the Target\n// logger.", "docstring_tokens": ["Fatal", "writes", "the", "given", "values", "to", "the", "Target", "logger", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/log/log.go#L105-L111", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "log/log.go", "func_name": "Debugf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Debugf writes the formatted string to the Target\n// logger.", "docstring_tokens": ["Debugf", "writes", "the", "formatted", "string", "to", "the", "Target", "logger", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/log/log.go#L135-L141", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "log/log.go", "func_name": "GetStdLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStdLogger returns a standard Logger instance\n// useful for configuring log in external packages.", "docstring_tokens": ["GetStdLogger", "returns", "a", "standard", "Logger", "instance", "useful", "for", "configuring", "log", "in", "external", "packages", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/log/log.go#L145-L152", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/cluster.go", "func_name": "Namespace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Namespace returns the namespace to be used by Custom Resources", "docstring_tokens": ["Namespace", "returns", "the", "namespace", "to", "be", "used", "by", "Custom", "Resources"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/cluster.go#L210-L215", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/docker/nodecontainer/nodecontainer.go", "func_name": "recreateContainers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recreateContainers relaunch all node containers in the cluster for the given\n// DockerProvisioner, logging progress to the given writer.\n//\n// It assumes that the given writer is thread safe.", "docstring_tokens": ["recreateContainers", "relaunch", "all", "node", "containers", "in", "the", "cluster", "for", "the", "given", "DockerProvisioner", "logging", "progress", "to", "the", "given", "writer", ".", "It", "assumes", "that", "the", "given", "writer", "is", "thread", "safe", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/docker/nodecontainer/nodecontainer.go#L37-L39", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "cmd/tsurud/checker.go", "func_name": "checkProvisioner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check provisioner configs", "docstring_tokens": ["Check", "provisioner", "configs"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/cmd/tsurud/checker.go#L40-L45", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "cmd/tsurud/checker.go", "func_name": "checkDocker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check Docker configs", "docstring_tokens": ["Check", "Docker", "configs"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/cmd/tsurud/checker.go#L66-L83", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "cmd/tsurud/checker.go", "func_name": "checkScheduler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check Schedulers\n// It verifies your scheduler configuration and validates related confs.", "docstring_tokens": ["Check", "Schedulers", "It", "verifies", "your", "scheduler", "configuration", "and", "validates", "related", "confs", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/cmd/tsurud/checker.go#L108-L121", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "cmd/tsurud/checker.go", "func_name": "checkRouter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check Router\n// It verifies your router configuration and validates related confs.", "docstring_tokens": ["Check", "Router", "It", "verifies", "your", "router", "configuration", "and", "validates", "related", "confs", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/cmd/tsurud/checker.go#L125-L147", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/provision.go", "func_name": "Available", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Available returns true if the unit is available. It will return true\n// whenever the unit itself is available, even when the application process is\n// not.", "docstring_tokens": ["Available", "returns", "true", "if", "the", "unit", "is", "available", ".", "It", "will", "return", "true", "whenever", "the", "unit", "itself", "is", "available", "even", "when", "the", "application", "process", "is", "not", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/provision.go#L189-L193", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/provision.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get gets the named provisioner from the registry.", "docstring_tokens": ["Get", "gets", "the", "named", "provisioner", "from", "the", "registry", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/provision.go#L621-L627", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/provision.go", "func_name": "Registry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Registry returns the list of registered provisioners.", "docstring_tokens": ["Registry", "returns", "the", "list", "of", "registered", "provisioners", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/provision.go#L637-L647", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/provision.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error is the string representation of a provisioning error.", "docstring_tokens": ["Error", "is", "the", "string", "representation", "of", "a", "provisioning", "error", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/provision.go#L679-L687", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "cmd/cmd.go", "func_name": "validateVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateVersion checks whether current version is greater or equal to\n// supported version.", "docstring_tokens": ["validateVersion", "checks", "whether", "current", "version", "is", "greater", "or", "equal", "to", "supported", "version", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/cmd/cmd.go#L641-L654", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "cmd/target.go", "func_name": "ReadTarget", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadTarget returns the current target, as defined in the TSURU_TARGET\n// environment variable or in the target file.", "docstring_tokens": ["ReadTarget", "returns", "the", "current", "target", "as", "defined", "in", "the", "TSURU_TARGET", "environment", "variable", "or", "in", "the", "target", "file", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/cmd/target.go#L97-L114", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "cmd/target.go", "func_name": "WriteTarget", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTarget writes the given endpoint to the target file.", "docstring_tokens": ["WriteTarget", "writes", "the", "given", "endpoint", "to", "the", "target", "file", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/cmd/target.go#L177-L189", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "cmd/target.go", "func_name": "WriteOnTargetList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteOnTargetList writes the given target in the target list file.", "docstring_tokens": ["WriteOnTargetList", "writes", "the", "given", "target", "in", "the", "target", "list", "file", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/cmd/target.go#L246-L268", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "db/storage.go", "func_name": "Conn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Conn reads the tsuru config and calls storage.Open to get a database connection.\n//\n// Most tsuru packages should probably use this function. storage.Open is intended for\n// use when supporting more than one database.", "docstring_tokens": ["Conn", "reads", "the", "tsuru", "config", "and", "calls", "storage", ".", "Open", "to", "get", "a", "database", "connection", ".", "Most", "tsuru", "packages", "should", "probably", "use", "this", "function", ".", "storage", ".", "Open", "is", "intended", "for", "use", "when", "supporting", "more", "than", "one", "database", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/db/storage.go#L71-L79", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "db/storage.go", "func_name": "Apps", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Apps returns the apps collection from MongoDB.", "docstring_tokens": ["Apps", "returns", "the", "apps", "collection", "from", "MongoDB", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/db/storage.go#L92-L97", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "db/storage.go", "func_name": "PoolsConstraints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PoolsConstraints return the pool constraints collection.", "docstring_tokens": ["PoolsConstraints", "return", "the", "pool", "constraints", "collection", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/db/storage.go#L115-L120", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "db/storage.go", "func_name": "Users", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Users returns the users collection from MongoDB.", "docstring_tokens": ["Users", "returns", "the", "users", "collection", "from", "MongoDB", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/db/storage.go#L123-L128", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "db/storage.go", "func_name": "SAMLRequests", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SAMLRequests returns the saml_requests from MongoDB.", "docstring_tokens": ["SAMLRequests", "returns", "the", "saml_requests", "from", "MongoDB", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/db/storage.go#L145-L150", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "db/storage.go", "func_name": "AppLogCollection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppLogCollection returns the logs collection for one app from MongoDB.", "docstring_tokens": ["AppLogCollection", "returns", "the", "logs", "collection", "for", "one", "app", "from", "MongoDB", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/db/storage.go#L159-L164", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "db/storage.go", "func_name": "CreateAppLogCollection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateAppLogCollection creates a new capped collection to store logs for an app.", "docstring_tokens": ["CreateAppLogCollection", "creates", "a", "new", "capped", "collection", "to", "store", "logs", "for", "an", "app", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/db/storage.go#L167-L171", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "db/storage.go", "func_name": "LogsCollections", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogsCollections returns logs collections for all apps from MongoDB.", "docstring_tokens": ["LogsCollections", "returns", "logs", "collections", "for", "all", "apps", "from", "MongoDB", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/db/storage.go#L174-L192", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/dockercommon/commands.go", "func_name": "ArchiveBuildCmds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArchiveBuildCmds build a image using the archive method.", "docstring_tokens": ["ArchiveBuildCmds", "build", "a", "image", "using", "the", "archive", "method", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/dockercommon/commands.go#L17-L19", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/dockercommon/commands.go", "func_name": "ArchiveDeployCmds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArchiveDeployCmds is a legacy command to deploys an unit using the archive method.", "docstring_tokens": ["ArchiveDeployCmds", "is", "a", "legacy", "command", "to", "deploys", "an", "unit", "using", "the", "archive", "method", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/dockercommon/commands.go#L22-L24", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/dockercommon/commands.go", "func_name": "DeployCmds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeployCmds deploys an unit builded by tsuru.", "docstring_tokens": ["DeployCmds", "deploys", "an", "unit", "builded", "by", "tsuru", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/dockercommon/commands.go#L27-L32", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/dockercommon/commands.go", "func_name": "runWithAgentCmds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// runWithAgentCmds returns the list of commands that should be passed when the\n// provisioner will run a unit using tsuru_unit_agent to start.\n//\n// This will only be called for legacy containers that have not been re-\n// deployed since the introduction of independent units per 'process' in\n// 0.12.0.", "docstring_tokens": ["runWithAgentCmds", "returns", "the", "list", "of", "commands", "that", "should", "be", "passed", "when", "the", "provisioner", "will", "run", "a", "unit", "using", "tsuru_unit_agent", "to", "start", ".", "This", "will", "only", "be", "called", "for", "legacy", "containers", "that", "have", "not", "been", "re", "-", "deployed", "since", "the", "introduction", "of", "independent", "units", "per", "process", "in", "0", ".", "12", ".", "0", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/dockercommon/commands.go#L58-L66", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/clientset/versioned/typed/tsuru/v1/app.go", "func_name": "newApps", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newApps returns a Apps", "docstring_tokens": ["newApps", "returns", "a", "Apps"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/clientset/versioned/typed/tsuru/v1/app.go#L44-L49", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/docker/container/container.go", "func_name": "Commit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Commits commits the container, creating an image in Docker. It then returns\n// the image identifier for usage in future container creation.", "docstring_tokens": ["Commits", "commits", "the", "container", "creating", "an", "image", "in", "Docker", ".", "It", "then", "returns", "the", "image", "identifier", "for", "usage", "in", "future", "container", "creation", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/docker/container/container.go#L358-L411", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "auth/team.go", "func_name": "processTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processTags removes duplicates and trims spaces from each tag", "docstring_tokens": ["processTags", "removes", "duplicates", "and", "trims", "spaces", "from", "each", "tag"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/auth/team.go#L118-L132", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/docker/scheduler.go", "func_name": "aggregateContainersBy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// aggregateContainersBy aggregates and counts how many containers\n// exist each node that matches received filters", "docstring_tokens": ["aggregateContainersBy", "aggregates", "and", "counts", "how", "many", "containers", "exist", "each", "node", "that", "matches", "received", "filters"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/docker/scheduler.go#L183-L200", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/docker/scheduler.go", "func_name": "chooseNodeToAdd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// chooseNodeToAdd finds which is the node with the minimum number of containers\n// and returns it", "docstring_tokens": ["chooseNodeToAdd", "finds", "which", "is", "the", "node", "with", "the", "minimum", "number", "of", "containers", "and", "returns", "it"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/docker/scheduler.go#L283-L298", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/docker/scheduler.go", "func_name": "chooseContainerToRemove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// chooseContainerToRemove finds a container from the the node with maximum\n// number of containers and returns it", "docstring_tokens": ["chooseContainerToRemove", "finds", "a", "container", "from", "the", "the", "node", "with", "maximum", "number", "of", "containers", "and", "returns", "it"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/docker/scheduler.go#L302-L313", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "router/router.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get gets the named router from the registry.", "docstring_tokens": ["Get", "gets", "the", "named", "router", "from", "the", "registry", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/router/router.go#L75-L89", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "router/router.go", "func_name": "Default", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Default returns the default router", "docstring_tokens": ["Default", "returns", "the", "default", "router"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/router/router.go#L92-L109", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "router/router.go", "func_name": "Store", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Store stores the app name related with the\n// router name.", "docstring_tokens": ["Store", "stores", "the", "app", "name", "related", "with", "the", "router", "name", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/router/router.go#L225-L238", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/clientset/versioned/fake/clientset_generated.go", "func_name": "TsuruV1", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TsuruV1 retrieves the TsuruV1Client", "docstring_tokens": ["TsuruV1", "retrieves", "the", "TsuruV1Client"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/clientset/versioned/fake/clientset_generated.go#L54-L56", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/clientset/versioned/fake/clientset_generated.go", "func_name": "Tsuru", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tsuru retrieves the TsuruV1Client", "docstring_tokens": ["Tsuru", "retrieves", "the", "TsuruV1Client"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/clientset/versioned/fake/clientset_generated.go#L59-L61", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/informers/externalversions/tsuru/v1/app.go", "func_name": "NewAppInformer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAppInformer constructs a new informer for App type.\n// Always prefer using an informer factory to get a shared informer instead of getting an independent\n// one. This reduces memory footprint and number of connections to the server.", "docstring_tokens": ["NewAppInformer", "constructs", "a", "new", "informer", "for", "App", "type", ".", "Always", "prefer", "using", "an", "informer", "factory", "to", "get", "a", "shared", "informer", "instead", "of", "getting", "an", "independent", "one", ".", "This", "reduces", "memory", "footprint", "and", "number", "of", "connections", "to", "the", "server", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/informers/externalversions/tsuru/v1/app.go#L40-L42", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/informers/externalversions/tsuru/v1/app.go", "func_name": "NewFilteredAppInformer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFilteredAppInformer constructs a new informer for App type.\n// Always prefer using an informer factory to get a shared informer instead of getting an independent\n// one. This reduces memory footprint and number of connections to the server.", "docstring_tokens": ["NewFilteredAppInformer", "constructs", "a", "new", "informer", "for", "App", "type", ".", "Always", "prefer", "using", "an", "informer", "factory", "to", "get", "a", "shared", "informer", "instead", "of", "getting", "an", "independent", "one", ".", "This", "reduces", "memory", "footprint", "and", "number", "of", "connections", "to", "the", "server", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/informers/externalversions/tsuru/v1/app.go#L47-L67", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/clientset/versioned/typed/tsuru/v1/fake/fake_app.go", "func_name": "Watch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Watch returns a watch.Interface that watches the requested apps.", "docstring_tokens": ["Watch", "returns", "a", "watch", ".", "Interface", "that", "watches", "the", "requested", "apps", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/clientset/versioned/typed/tsuru/v1/fake/fake_app.go#L63-L67", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/clientset/versioned/typed/tsuru/v1/fake/fake_app.go", "func_name": "Patch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Patch applies the patch and returns the patched app.", "docstring_tokens": ["Patch", "applies", "the", "patch", "and", "returns", "the", "patched", "app", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/clientset/versioned/typed/tsuru/v1/fake/fake_app.go#L108-L116", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/informers/externalversions/factory.go", "func_name": "NewSharedInformerFactory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSharedInformerFactory constructs a new instance of sharedInformerFactory", "docstring_tokens": ["NewSharedInformerFactory", "constructs", "a", "new", "instance", "of", "sharedInformerFactory"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/informers/externalversions/factory.go#L39-L41", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/informers/externalversions/factory.go", "func_name": "NewFilteredSharedInformerFactory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFilteredSharedInformerFactory constructs a new instance of sharedInformerFactory.\n// Listers obtained via this SharedInformerFactory will be subject to the same filters\n// as specified here.", "docstring_tokens": ["NewFilteredSharedInformerFactory", "constructs", "a", "new", "instance", "of", "sharedInformerFactory", ".", "Listers", "obtained", "via", "this", "SharedInformerFactory", "will", "be", "subject", "to", "the", "same", "filters", "as", "specified", "here", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/informers/externalversions/factory.go#L46-L55", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "service/broker.go", "func_name": "Proxy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Proxy is not implemented for OSB API implementations", "docstring_tokens": ["Proxy", "is", "not", "implemented", "for", "OSB", "API", "implementations"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/service/broker.go#L410-L412", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "service/broker.go", "func_name": "UnbindUnit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnbindUnit is a no-op for OSB API implementations", "docstring_tokens": ["UnbindUnit", "is", "a", "no", "-", "op", "for", "OSB", "API", "implementations"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/service/broker.go#L415-L417", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/plan.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create implements Create method of PlanService interface", "docstring_tokens": ["Create", "implements", "Create", "method", "of", "PlanService", "interface"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/plan.go#L36-L47", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/plan.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove implements Remove method of PlanService interface", "docstring_tokens": ["Remove", "implements", "Remove", "method", "of", "PlanService", "interface"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/plan.go#L64-L66", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/plan.go", "func_name": "ensureDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ensureDefault creates and stores an autogenerated plan in case of no plans\n// exists.", "docstring_tokens": ["ensureDefault", "creates", "and", "stores", "an", "autogenerated", "plan", "in", "case", "of", "no", "plans", "exists", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/plan.go#L70-L88", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "service/service_instance.go", "func_name": "DeleteInstance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteInstance deletes the service instance from the database.", "docstring_tokens": ["DeleteInstance", "deletes", "the", "service", "instance", "from", "the", "database", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/service/service_instance.go#L92-L110", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "service/service_instance.go", "func_name": "ToInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToInfo returns the service instance as a struct compatible with the return\n// of the service info api call.", "docstring_tokens": ["ToInfo", "returns", "the", "service", "instance", "as", "a", "struct", "compatible", "with", "the", "return", "of", "the", "service", "info", "api", "call", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/service/service_instance.go#L132-L147", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "service/service_instance.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update changes informations of the service instance.", "docstring_tokens": ["Update", "changes", "informations", "of", "the", "service", "instance", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/service/service_instance.go#L181-L200", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "service/service_instance.go", "func_name": "BindApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BindApp makes the bind between the service instance and an app.", "docstring_tokens": ["BindApp", "makes", "the", "bind", "between", "the", "service", "instance", "and", "an", "app", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/service/service_instance.go#L212-L230", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "service/service_instance.go", "func_name": "BindUnit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BindUnit makes the bind between the binder and an unit.", "docstring_tokens": ["BindUnit", "makes", "the", "bind", "between", "the", "binder", "and", "an", "unit", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/service/service_instance.go#L233-L281", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "service/service_instance.go", "func_name": "UnbindApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnbindApp makes the unbind between the service instance and an app.", "docstring_tokens": ["UnbindApp", "makes", "the", "unbind", "between", "the", "service", "instance", "and", "an", "app", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/service/service_instance.go#L292-L313", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "service/service_instance.go", "func_name": "Status", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Status returns the service instance status.", "docstring_tokens": ["Status", "returns", "the", "service", "instance", "status", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/service/service_instance.go#L367-L377", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "service/service_instance.go", "func_name": "ProxyInstance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProxyInstance is a proxy between tsuru and the service instance.\n// This method allow customized service instance methods.", "docstring_tokens": ["ProxyInstance", "is", "a", "proxy", "between", "tsuru", "and", "the", "service", "instance", ".", "This", "method", "allow", "customized", "service", "instance", "methods", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/service/service_instance.go#L562-L581", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "quota/quota.go", "func_name": "Inc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Inc implements Inc method from QuotaService interface", "docstring_tokens": ["Inc", "implements", "Inc", "method", "from", "QuotaService", "interface"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/quota/quota.go#L16-L26", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "quota/quota.go", "func_name": "SetLimit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLimit redefines the limit of the app. The new limit must be bigger\n// than or equal to the current number of units in the app. The new limit may be\n// smaller than 0, which means that the app should have an unlimited number of\n// units.\n// SetLimit implements SetLimit method from QuotaService interface", "docstring_tokens": ["SetLimit", "redefines", "the", "limit", "of", "the", "app", ".", "The", "new", "limit", "must", "be", "bigger", "than", "or", "equal", "to", "the", "current", "number", "of", "units", "in", "the", "app", ".", "The", "new", "limit", "may", "be", "smaller", "than", "0", "which", "means", "that", "the", "app", "should", "have", "an", "unlimited", "number", "of", "units", ".", "SetLimit", "implements", "SetLimit", "method", "from", "QuotaService", "interface"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/quota/quota.go#L46-L57", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "quota/quota.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set redefines the inuse units of the app. This new value must be smaller\n// than or equal to the current limit of the app. It also must be a non negative number.\n// Set implements Set method from QuotaService interface", "docstring_tokens": ["Set", "redefines", "the", "inuse", "units", "of", "the", "app", ".", "This", "new", "value", "must", "be", "smaller", "than", "or", "equal", "to", "the", "current", "limit", "of", "the", "app", ".", "It", "also", "must", "be", "a", "non", "negative", "number", ".", "Set", "implements", "Set", "method", "from", "QuotaService", "interface"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/quota/quota.go#L62-L77", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "quota/quota.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get implements Get method from QuotaService interface", "docstring_tokens": ["Get", "implements", "Get", "method", "from", "QuotaService", "interface"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/quota/quota.go#L80-L82", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "registry/registry.go", "func_name": "RemoveImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveImage removes an image manifest from a remote registry v2 server, returning an error\n// in case of failure.", "docstring_tokens": ["RemoveImage", "removes", "an", "image", "manifest", "from", "a", "remote", "registry", "v2", "server", "returning", "an", "error", "in", "case", "of", "failure", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/registry/registry.go#L48-L70", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "registry/registry.go", "func_name": "RemoveAppImages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveAppImages removes all app images from a remote registry v2 server, returning an error\n// in case of failure.", "docstring_tokens": ["RemoveAppImages", "removes", "all", "app", "images", "from", "a", "remote", "registry", "v2", "server", "returning", "an", "error", "in", "case", "of", "failure", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/registry/registry.go#L74-L102", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/platform.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create implements Create method of PlatformService interface", "docstring_tokens": ["Create", "implements", "Create", "method", "of", "PlatformService", "interface"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/platform.go#L45-L73", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/platform.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List implements List method of PlatformService interface", "docstring_tokens": ["List", "implements", "List", "method", "of", "PlatformService", "interface"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/platform.go#L76-L81", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/platform.go", "func_name": "FindByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindByName implements FindByName method of PlatformService interface", "docstring_tokens": ["FindByName", "implements", "FindByName", "method", "of", "PlatformService", "interface"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/platform.go#L84-L90", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/platform.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update implements Update method of PlatformService interface", "docstring_tokens": ["Update", "implements", "Update", "method", "of", "PlatformService", "interface"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/platform.go#L93-L144", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/platform.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove implements Remove method of PlatformService interface", "docstring_tokens": ["Remove", "implements", "Remove", "method", "of", "PlatformService", "interface"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/platform.go#L147-L179", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/platform.go", "func_name": "Rollback", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rollback implements Rollback method of PlatformService interface", "docstring_tokens": ["Rollback", "implements", "Rollback", "method", "of", "PlatformService", "interface"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/platform.go#L182-L227", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/pool/pool.go", "func_name": "GetPoolByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPoolByName finds a pool by name", "docstring_tokens": ["GetPoolByName", "finds", "a", "pool", "by", "name"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/pool/pool.go#L466-L481", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "repository/repository.go", "func_name": "Manager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Manager returns the current configured manager, as defined in the\n// configuration file.", "docstring_tokens": ["Manager", "returns", "the", "current", "configured", "manager", "as", "defined", "in", "the", "configuration", "file", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/repository/repository.go#L68-L77", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "repository/repository.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register registers a new repository manager, that can be later configured\n// and used.", "docstring_tokens": ["Register", "registers", "a", "new", "repository", "manager", "that", "can", "be", "later", "configured", "and", "used", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/repository/repository.go#L81-L86", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "service/sync.go", "func_name": "start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// start starts the sync process on a different goroutine", "docstring_tokens": ["start", "starts", "the", "sync", "process", "on", "a", "different", "goroutine"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/service/sync.go#L71-L116", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "service/sync.go", "func_name": "Shutdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Shutdown shutdowns bindSyncer waiting for the current sync\n// to complete", "docstring_tokens": ["Shutdown", "shutdowns", "bindSyncer", "waiting", "for", "the", "current", "sync", "to", "complete"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/service/sync.go#L120-L131", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "builder/builder.go", "func_name": "GetForProvisioner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetForProvisioner gets the builder required by the provisioner.", "docstring_tokens": ["GetForProvisioner", "gets", "the", "builder", "required", "by", "the", "provisioner", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/builder/builder.go#L55-L65", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "builder/builder.go", "func_name": "get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// get gets the named builder from the registry.", "docstring_tokens": ["get", "gets", "the", "named", "builder", "from", "the", "registry", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/builder/builder.go#L68-L74", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "builder/builder.go", "func_name": "Registry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Registry returns the list of registered builders.", "docstring_tokens": ["Registry", "returns", "the", "list", "of", "registered", "builders", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/builder/builder.go#L77-L83", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/docker/nodecontainer/queue.go", "func_name": "RegisterQueueTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterQueueTask registers the internal bs queue task for later execution.", "docstring_tokens": ["RegisterQueueTask", "registers", "the", "internal", "bs", "queue", "task", "for", "later", "execution", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/docker/nodecontainer/queue.go#L20-L26", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/informers/externalversions/tsuru/v1/interface.go", "func_name": "Apps", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Apps returns a AppInformer.", "docstring_tokens": ["Apps", "returns", "a", "AppInformer", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/informers/externalversions/tsuru/v1/interface.go#L33-L35", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/apis/tsuru/v1/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new App.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "App", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/apis/tsuru/v1/zz_generated.deepcopy.go#L25-L32", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/apis/tsuru/v1/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppList.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "AppList", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/apis/tsuru/v1/zz_generated.deepcopy.go#L58-L65", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/apis/tsuru/v1/zz_generated.deepcopy.go", "func_name": "DeepCopy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSpec.", "docstring_tokens": ["DeepCopy", "is", "an", "autogenerated", "deepcopy", "function", "copying", "the", "receiver", "creating", "a", "new", "AppSpec", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/apis/tsuru/v1/zz_generated.deepcopy.go#L106-L113", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/writer.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write writes and logs the data.", "docstring_tokens": ["Write", "writes", "and", "logs", "the", "data", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/writer.go#L64-L77", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "auth/native/native.go", "func_name": "ResetPassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResetPassword actually resets the password of the user. It needs the token\n// string. The new password will be a random string, that will be then sent to\n// the user email.", "docstring_tokens": ["ResetPassword", "actually", "resets", "the", "password", "of", "the", "user", ".", "It", "needs", "the", "token", "string", ".", "The", "new", "password", "will", "be", "a", "random", "string", "that", "will", "be", "then", "sent", "to", "the", "user", "email", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/auth/native/native.go#L112-L135", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/apis/tsuru/v1/register.go", "func_name": "addKnownTypes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Adds the list of known types to the given scheme.", "docstring_tokens": ["Adds", "the", "list", "of", "known", "types", "to", "the", "given", "scheme", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/apis/tsuru/v1/register.go#L34-L45", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "api/shutdown/shutdown.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register registers an item as shutdownable", "docstring_tokens": ["Register", "registers", "an", "item", "as", "shutdownable"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/api/shutdown/shutdown.go#L26-L30", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "api/shutdown/shutdown.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do shutdowns All registered Shutdownable items", "docstring_tokens": ["Do", "shutdowns", "All", "registered", "Shutdownable", "items"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/api/shutdown/shutdown.go#L33-L67", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/image/platform.go", "func_name": "ListImagesOrDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PlatformListImagesOrDefault returns basicImageName when platform is empty\n// for backwards compatibility", "docstring_tokens": ["PlatformListImagesOrDefault", "returns", "basicImageName", "when", "platform", "is", "empty", "for", "backwards", "compatibility"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/image/platform.go#L81-L87", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/migrate/migrate.go", "func_name": "MigrateAppsCRDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MigrateAppsCRDs creates the necessary CRDs for every application\n// on a Kubernetes cluster. This is done by re-provisioning the App\n// on the cluster.", "docstring_tokens": ["MigrateAppsCRDs", "creates", "the", "necessary", "CRDs", "for", "every", "application", "on", "a", "Kubernetes", "cluster", ".", "This", "is", "done", "by", "re", "-", "provisioning", "the", "App", "on", "the", "cluster", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/migrate/migrate.go#L15-L41", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "migration/migration.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register register a new migration for later execution with the Run\n// functions.", "docstring_tokens": ["Register", "register", "a", "new", "migration", "for", "later", "execution", "with", "the", "Run", "functions", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/migration/migration.go#L65-L67", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "migration/migration.go", "func_name": "RegisterOptional", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterOptional register a new migration that will not run automatically\n// when calling the Run funcition.", "docstring_tokens": ["RegisterOptional", "register", "a", "new", "migration", "that", "will", "not", "run", "automatically", "when", "calling", "the", "Run", "funcition", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/migration/migration.go#L71-L73", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "migration/migration.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run runs all registered non optional migrations if no \".Name\" is informed.\n// Migrations are executed in the order that they were registered. If \".Name\"\n// is informed, an optional migration with the given name is executed.", "docstring_tokens": ["Run", "runs", "all", "registered", "non", "optional", "migrations", "if", "no", ".", "Name", "is", "informed", ".", "Migrations", "are", "executed", "in", "the", "order", "that", "they", "were", "registered", ".", "If", ".", "Name", "is", "informed", "an", "optional", "migration", "with", "the", "given", "name", "is", "executed", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/migration/migration.go#L88-L96", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "Units", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Units returns the list of units.", "docstring_tokens": ["Units", "returns", "the", "list", "of", "units", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L181-L194", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON marshals the app in json format.", "docstring_tokens": ["MarshalJSON", "marshals", "the", "app", "in", "json", "format", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L197-L243", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "AcquireApplicationLockWait", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Same as AcquireApplicationLock but it keeps trying to acquire the lock\n// until timeout is reached.", "docstring_tokens": ["Same", "as", "AcquireApplicationLock", "but", "it", "keeps", "trying", "to", "acquire", "the", "lock", "until", "timeout", "is", "reached", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L264-L291", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "ReleaseApplicationLock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReleaseApplicationLock releases a lock hold on an app, currently it's called\n// by a middleware, however, ideally, it should be called individually by each\n// handler since they might be doing operations in background.", "docstring_tokens": ["ReleaseApplicationLock", "releases", "a", "lock", "hold", "on", "an", "app", "currently", "it", "s", "called", "by", "a", "middleware", "however", "ideally", "it", "should", "be", "called", "individually", "by", "each", "handler", "since", "they", "might", "be", "doing", "operations", "in", "background", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L335-L346", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "GetByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetByName queries the database to find an app identified by the given\n// name.", "docstring_tokens": ["GetByName", "queries", "the", "database", "to", "find", "an", "app", "identified", "by", "the", "given", "name", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L363-L375", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "AddUnits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddUnits creates n new units within the provisioner, saves new units in the\n// database and enqueues the apprc serialization.", "docstring_tokens": ["AddUnits", "creates", "n", "new", "units", "within", "the", "provisioner", "saves", "new", "units", "in", "the", "database", "and", "enqueues", "the", "apprc", "serialization", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L823-L847", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "SetUnitStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetUnitStatus changes the status of the given unit.", "docstring_tokens": ["SetUnitStatus", "changes", "the", "status", "of", "the", "given", "unit", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L886-L905", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "UpdateNodeStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateNodeStatus updates the status of the given node and its units,\n// returning a map which units were found during the update.", "docstring_tokens": ["UpdateNodeStatus", "updates", "the", "status", "of", "the", "given", "node", "and", "its", "units", "returning", "a", "map", "which", "units", "were", "found", "during", "the", "update", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L942-L983", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "available", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// available returns true if at least one of N units is started or unreachable.", "docstring_tokens": ["available", "returns", "true", "if", "at", "least", "one", "of", "N", "units", "is", "started", "or", "unreachable", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L986-L997", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "Grant", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Grant allows a team to have access to an app. It returns an error if the\n// team already have access to the app.", "docstring_tokens": ["Grant", "allows", "a", "team", "to", "have", "access", "to", "an", "app", ".", "It", "returns", "an", "error", "if", "the", "team", "already", "have", "access", "to", "the", "app", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1010-L1040", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "Revoke", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Revoke removes the access from a team. It returns an error if the team do\n// not have access to the app.", "docstring_tokens": ["Revoke", "removes", "the", "access", "from", "a", "team", ".", "It", "returns", "an", "error", "if", "the", "team", "do", "not", "have", "access", "to", "the", "app", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1044-L1094", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "GetTeams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTeams returns a slice of teams that have access to the app.", "docstring_tokens": ["GetTeams", "returns", "a", "slice", "of", "teams", "that", "have", "access", "to", "the", "app", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1097-L1100", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "setEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setEnv sets the given environment variable in the app.", "docstring_tokens": ["setEnv", "sets", "the", "given", "environment", "variable", "in", "the", "app", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1153-L1161", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "getEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getEnv returns the environment variable if it's declared in the app. It will\n// return an error if the variable is not defined in this app.", "docstring_tokens": ["getEnv", "returns", "the", "environment", "variable", "if", "it", "s", "declared", "in", "the", "app", ".", "It", "will", "return", "an", "error", "if", "the", "variable", "is", "not", "defined", "in", "this", "app", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1165-L1170", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "validateNew", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateNew checks app name format, pool and plan", "docstring_tokens": ["validateNew", "checks", "app", "name", "format", "pool", "and", "plan"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1173-L1181", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validate checks app pool and plan", "docstring_tokens": ["validate", "checks", "app", "pool", "and", "plan"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1184-L1190", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "InstanceEnvs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InstanceEnvs returns a map of environment variables that belongs to the\n// given service and service instance.", "docstring_tokens": ["InstanceEnvs", "returns", "a", "map", "of", "environment", "variables", "that", "belongs", "to", "the", "given", "service", "and", "service", "instance", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1282-L1290", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run executes the command in app units, sourcing apprc before running the\n// command.", "docstring_tokens": ["Run", "executes", "the", "command", "in", "app", "units", "sourcing", "apprc", "before", "running", "the", "command", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1294-L1303", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "GetUnits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUnits returns the internal list of units converted to bind.Unit.", "docstring_tokens": ["GetUnits", "returns", "the", "internal", "list", "of", "units", "converted", "to", "bind", ".", "Unit", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1431-L1441", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "GetUUID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUUID returns the app v4 UUID. An UUID will be generated\n// if it does not exist.", "docstring_tokens": ["GetUUID", "returns", "the", "app", "v4", "UUID", ".", "An", "UUID", "will", "be", "generated", "if", "it", "does", "not", "exist", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1450-L1469", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "Envs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Envs returns a map representing the apps environment variables.", "docstring_tokens": ["Envs", "returns", "a", "map", "representing", "the", "apps", "environment", "variables", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1554-L1564", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "SetEnvs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetEnvs saves a list of environment variables in the app.", "docstring_tokens": ["SetEnvs", "saves", "a", "list", "of", "environment", "variables", "in", "the", "app", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1567-L1596", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "UnsetEnvs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnsetEnvs removes environment variables from an app, serializing the\n// remaining list of environment variables to all units of the app.", "docstring_tokens": ["UnsetEnvs", "removes", "environment", "variables", "from", "an", "app", "serializing", "the", "remaining", "list", "of", "environment", "variables", "to", "all", "units", "of", "the", "app", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1600-L1623", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "AddCName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddCName adds a CName to app. It updates the attribute,\n// calls the SetCName function on the provisioner and saves\n// the app in the database, returning an error when it cannot save the change\n// in the database or add the CName on the provisioner.", "docstring_tokens": ["AddCName", "adds", "a", "CName", "to", "app", ".", "It", "updates", "the", "attribute", "calls", "the", "SetCName", "function", "on", "the", "provisioner", "and", "saves", "the", "app", "in", "the", "database", "returning", "an", "error", "when", "it", "cannot", "save", "the", "change", "in", "the", "database", "or", "add", "the", "CName", "on", "the", "provisioner", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1644-L1654", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "Log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Log adds a log message to the app. Specifying a good source is good so the\n// user can filter where the message come from.", "docstring_tokens": ["Log", "adds", "a", "log", "message", "to", "the", "app", ".", "Specifying", "a", "good", "source", "is", "good", "so", "the", "user", "can", "filter", "where", "the", "message", "come", "from", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1754-L1778", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "LastLogs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LastLogs returns a list of the last `lines` log of the app, matching the\n// fields in the log instance received as an example.", "docstring_tokens": ["LastLogs", "returns", "a", "list", "of", "the", "last", "lines", "log", "of", "the", "app", "matching", "the", "fields", "in", "the", "log", "instance", "received", "as", "an", "example", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1782-L1784", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List returns the list of apps filtered through the filter parameter.", "docstring_tokens": ["List", "returns", "the", "list", "of", "apps", "filtered", "through", "the", "filter", "parameter", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L1975-L2022", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "Swap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Swap calls the Router.Swap and updates the app.CName in the database.", "docstring_tokens": ["Swap", "calls", "the", "Router", ".", "Swap", "and", "updates", "the", "app", ".", "CName", "in", "the", "database", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L2063-L2104", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "app/app.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts the app calling the provisioner.Start method and\n// changing the units state to StatusStarted.", "docstring_tokens": ["Start", "starts", "the", "app", "calling", "the", "provisioner", ".", "Start", "method", "and", "changing", "the", "units", "state", "to", "StatusStarted", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/app/app.go#L2108-L2126", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "storage/driver.go", "func_name": "GetDbDriver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDbDriver returns the DB driver that was registered with a specific name", "docstring_tokens": ["GetDbDriver", "returns", "the", "DB", "driver", "that", "was", "registered", "with", "a", "specific", "name"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/storage/driver.go#L50-L56", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "storage/driver.go", "func_name": "GetCurrentDbDriver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCurrentDbDriver returns the DB driver specified in the configuration file.\n// If this configuration was omitted, it returns the default DB driver", "docstring_tokens": ["GetCurrentDbDriver", "returns", "the", "DB", "driver", "specified", "in", "the", "configuration", "file", ".", "If", "this", "configuration", "was", "omitted", "it", "returns", "the", "default", "DB", "driver"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/storage/driver.go#L60-L81", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/kubernetes/pkg/client/clientset/versioned/clientset.go", "func_name": "NewForConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewForConfig creates a new Clientset for the given config.", "docstring_tokens": ["NewForConfig", "creates", "a", "new", "Clientset", "for", "the", "given", "config", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/kubernetes/pkg/client/clientset/versioned/clientset.go#L51-L69", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "provision/docker/provisioner.go", "func_name": "GetAppFromUnitID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAppFromUnitID returns app from unit id", "docstring_tokens": ["GetAppFromUnitID", "returns", "app", "from", "unit", "id"], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/provision/docker/provisioner.go#L760-L770", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "action/action.go", "func_name": "NewPipeline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPipeline creates a new pipeline instance with the given list of actions.", "docstring_tokens": ["NewPipeline", "creates", "a", "new", "pipeline", "instance", "with", "the", "given", "list", "of", "actions", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/action/action.go#L98-L114", "partition": "test"} +{"repo": "tsuru/tsuru", "path": "action/action.go", "func_name": "Result", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Result returns the result of the last action.", "docstring_tokens": ["Result", "returns", "the", "result", "of", "the", "last", "action", "."], "sha": "2f7fd515c5dc25a58aec80f0e497c49e49581b3e", "url": "https://github.com/tsuru/tsuru/blob/2f7fd515c5dc25a58aec80f0e497c49e49581b3e/action/action.go#L117-L122", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/request.go", "func_name": "DecodeJsonPayload", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodeJsonPayload reads the request body and decodes the JSON using json.Unmarshal.", "docstring_tokens": ["DecodeJsonPayload", "reads", "the", "request", "body", "and", "decodes", "the", "JSON", "using", "json", ".", "Unmarshal", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/request.go#L34-L48", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/request.go", "func_name": "UrlFor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UrlFor returns the URL object from UriBase with the Path set to path, and the query\n// string built with queryParams.", "docstring_tokens": ["UrlFor", "returns", "the", "URL", "object", "from", "UriBase", "with", "the", "Path", "set", "to", "path", "and", "the", "query", "string", "built", "with", "queryParams", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/request.go#L77-L90", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/request.go", "func_name": "GetCorsInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCorsInfo derives CorsInfo from Request.", "docstring_tokens": ["GetCorsInfo", "derives", "CorsInfo", "from", "Request", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/request.go#L107-L148", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/cors.go", "func_name": "MiddlewareFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MiddlewareFunc makes CorsMiddleware implement the Middleware interface.", "docstring_tokens": ["MiddlewareFunc", "makes", "CorsMiddleware", "implement", "the", "Middleware", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/cors.go#L53-L135", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/recorder.go", "func_name": "MiddlewareFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MiddlewareFunc makes RecorderMiddleware implement the Middleware interface.", "docstring_tokens": ["MiddlewareFunc", "makes", "RecorderMiddleware", "implement", "the", "Middleware", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/recorder.go#L16-L27", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/recorder.go", "func_name": "WriteHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Record the status code.", "docstring_tokens": ["Record", "the", "status", "code", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/recorder.go#L45-L52", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/router.go", "func_name": "MakeRouter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakeRouter returns the router app. Given a set of Routes, it dispatches the request to the\n// HandlerFunc of the first route that matches. The order of the Routes matters.", "docstring_tokens": ["MakeRouter", "returns", "the", "router", "app", ".", "Given", "a", "set", "of", "Routes", "it", "dispatches", "the", "request", "to", "the", "HandlerFunc", "of", "the", "first", "route", "that", "matches", ".", "The", "order", "of", "the", "Routes", "matters", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/router.go#L21-L30", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/router.go", "func_name": "AppFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle the REST routing and run the user code.", "docstring_tokens": ["Handle", "the", "REST", "routing", "and", "run", "the", "user", "code", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/router.go#L33-L58", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/router.go", "func_name": "escapedPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This is run for each new request, perf is important.", "docstring_tokens": ["This", "is", "run", "for", "each", "new", "request", "perf", "is", "important", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/router.go#L61-L66", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/router.go", "func_name": "escapedPathExp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This is run at init time only.", "docstring_tokens": ["This", "is", "run", "at", "init", "time", "only", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/router.go#L73-L102", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/router.go", "func_name": "start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This validates the Routes and prepares the Trie data structure.\n// It must be called once the Routes are defined and before trying to find Routes.\n// The order matters, if multiple Routes match, the first defined will be used.", "docstring_tokens": ["This", "validates", "the", "Routes", "and", "prepares", "the", "Trie", "data", "structure", ".", "It", "must", "be", "called", "once", "the", "Routes", "are", "defined", "and", "before", "trying", "to", "find", "Routes", ".", "The", "order", "matters", "if", "multiple", "Routes", "match", "the", "first", "defined", "will", "be", "used", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/router.go#L107-L139", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/router.go", "func_name": "ofFirstDefinedRoute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// return the result that has the route defined the earliest", "docstring_tokens": ["return", "the", "result", "that", "has", "the", "route", "defined", "the", "earliest"], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/router.go#L142-L156", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/router.go", "func_name": "findRouteFromURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the first matching Route and the corresponding parameters for a given URL object.", "docstring_tokens": ["Return", "the", "first", "matching", "Route", "and", "the", "corresponding", "parameters", "for", "a", "given", "URL", "object", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/router.go#L159-L181", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/content_type_checker.go", "func_name": "MiddlewareFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MiddlewareFunc makes ContentTypeCheckerMiddleware implement the Middleware interface.", "docstring_tokens": ["MiddlewareFunc", "makes", "ContentTypeCheckerMiddleware", "implement", "the", "Middleware", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/content_type_checker.go#L16-L40", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/response.go", "func_name": "CloseNotify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Provided in order to implement the http.CloseNotifier interface.", "docstring_tokens": ["Provided", "in", "order", "to", "implement", "the", "http", ".", "CloseNotifier", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/response.go#L118-L121", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/access_log_apache.go", "func_name": "MiddlewareFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MiddlewareFunc makes AccessLogApacheMiddleware implement the Middleware interface.", "docstring_tokens": ["MiddlewareFunc", "makes", "AccessLogApacheMiddleware", "implement", "the", "Middleware", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/access_log_apache.go#L71-L94", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/access_log_apache.go", "func_name": "executeTextTemplate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Execute the text template with the data derived from the request, and return a string.", "docstring_tokens": ["Execute", "the", "text", "template", "with", "the", "data", "derived", "from", "the", "request", "and", "return", "a", "string", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/access_log_apache.go#L158-L165", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/access_log_apache.go", "func_name": "RemoteUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// As stored by the auth middlewares.", "docstring_tokens": ["As", "stored", "by", "the", "auth", "middlewares", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/access_log_apache.go#L175-L180", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/access_log_apache.go", "func_name": "ApacheQueryString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// If qs exists then return it with a leadin \"?\", apache log style.", "docstring_tokens": ["If", "qs", "exists", "then", "return", "it", "with", "a", "leadin", "?", "apache", "log", "style", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/access_log_apache.go#L183-L188", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/access_log_apache.go", "func_name": "StartTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// When the request entered the timer middleware.", "docstring_tokens": ["When", "the", "request", "entered", "the", "timer", "middleware", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/access_log_apache.go#L191-L196", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/access_log_apache.go", "func_name": "ApacheRemoteAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// If remoteAddr is set then return is without the port number, apache log style.", "docstring_tokens": ["If", "remoteAddr", "is", "set", "then", "return", "is", "without", "the", "port", "number", "apache", "log", "style", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/access_log_apache.go#L199-L207", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/access_log_apache.go", "func_name": "ResponseTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// As mesured by the timer middleware.", "docstring_tokens": ["As", "mesured", "by", "the", "timer", "middleware", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/access_log_apache.go#L218-L223", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/json_indent.go", "func_name": "MiddlewareFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MiddlewareFunc makes JsonIndentMiddleware implement the Middleware interface.", "docstring_tokens": ["MiddlewareFunc", "makes", "JsonIndentMiddleware", "implement", "the", "Middleware", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/json_indent.go#L25-L37", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/json_indent.go", "func_name": "EncodeJson", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Replace the parent EncodeJson to provide indentation.", "docstring_tokens": ["Replace", "the", "parent", "EncodeJson", "to", "provide", "indentation", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/json_indent.go#L54-L60", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/json_indent.go", "func_name": "WriteHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Call the parent WriteHeader.", "docstring_tokens": ["Call", "the", "parent", "WriteHeader", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/json_indent.go#L77-L80", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/route.go", "func_name": "MakePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakePath generates the path corresponding to this Route and the provided path parameters.\n// This is used for reverse route resolution.", "docstring_tokens": ["MakePath", "generates", "the", "path", "corresponding", "to", "this", "Route", "and", "the", "provided", "path", "parameters", ".", "This", "is", "used", "for", "reverse", "route", "resolution", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/route.go#L28-L38", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/recover.go", "func_name": "MiddlewareFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MiddlewareFunc makes RecoverMiddleware implement the Middleware interface.", "docstring_tokens": ["MiddlewareFunc", "makes", "RecoverMiddleware", "implement", "the", "Middleware", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/recover.go#L29-L59", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/middleware.go", "func_name": "WrapMiddlewares", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WrapMiddlewares calls the MiddlewareFunc methods in the reverse order and returns an HandlerFunc\n// ready to be executed. This can be used to wrap a set of middlewares, post routing, on a per Route\n// basis.", "docstring_tokens": ["WrapMiddlewares", "calls", "the", "MiddlewareFunc", "methods", "in", "the", "reverse", "order", "and", "returns", "an", "HandlerFunc", "ready", "to", "be", "executed", ".", "This", "can", "be", "used", "to", "wrap", "a", "set", "of", "middlewares", "post", "routing", "on", "a", "per", "Route", "basis", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/middleware.go#L43-L49", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/gzip.go", "func_name": "MiddlewareFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MiddlewareFunc makes GzipMiddleware implement the Middleware interface.", "docstring_tokens": ["MiddlewareFunc", "makes", "GzipMiddleware", "implement", "the", "Middleware", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/gzip.go#L18-L33", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/gzip.go", "func_name": "WriteHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set the right headers for gzip encoded responses.", "docstring_tokens": ["Set", "the", "right", "headers", "for", "gzip", "encoded", "responses", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/gzip.go#L51-L63", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/gzip.go", "func_name": "Hijack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Provided in order to implement the http.Hijacker interface.", "docstring_tokens": ["Provided", "in", "order", "to", "implement", "the", "http", ".", "Hijacker", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/gzip.go#L96-L99", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/gzip.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Make sure the local WriteHeader is called, and encode the payload if necessary.\n// Provided in order to implement the http.ResponseWriter interface.", "docstring_tokens": ["Make", "sure", "the", "local", "WriteHeader", "is", "called", "and", "encode", "the", "payload", "if", "necessary", ".", "Provided", "in", "order", "to", "implement", "the", "http", ".", "ResponseWriter", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/gzip.go#L103-L132", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/auth_basic.go", "func_name": "MiddlewareFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MiddlewareFunc makes AuthBasicMiddleware implement the Middleware interface.", "docstring_tokens": ["MiddlewareFunc", "makes", "AuthBasicMiddleware", "implement", "the", "Middleware", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/auth_basic.go#L30-L75", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/trie/impl.go", "func_name": "printDebug", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Private function for now", "docstring_tokens": ["Private", "function", "for", "now"], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/trie/impl.go#L217-L239", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/trie/impl.go", "func_name": "AddRoute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Insert the route in the Trie following or creating the nodes corresponding to the path.", "docstring_tokens": ["Insert", "the", "route", "in", "the", "Trie", "following", "or", "creating", "the", "nodes", "corresponding", "to", "the", "path", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/trie/impl.go#L349-L351", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/trie/impl.go", "func_name": "printDebug", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Private function for now.", "docstring_tokens": ["Private", "function", "for", "now", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/trie/impl.go#L359-L363", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/trie/impl.go", "func_name": "FindRoutes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Given a path and an http method, return all the matching routes.", "docstring_tokens": ["Given", "a", "path", "and", "an", "http", "method", "return", "all", "the", "matching", "routes", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/trie/impl.go#L366-L383", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/trie/impl.go", "func_name": "FindRoutesAndPathMatched", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Same as FindRoutes, but return in addition a boolean indicating if the path was matched.\n// Useful to return 405", "docstring_tokens": ["Same", "as", "FindRoutes", "but", "return", "in", "addition", "a", "boolean", "indicating", "if", "the", "path", "was", "matched", ".", "Useful", "to", "return", "405"], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/trie/impl.go#L387-L406", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/trie/impl.go", "func_name": "FindRoutesForPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Given a path, and whatever the http method, return all the matching routes.", "docstring_tokens": ["Given", "a", "path", "and", "whatever", "the", "http", "method", "return", "all", "the", "matching", "routes", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/trie/impl.go#L409-L426", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/api.go", "func_name": "Use", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Use pushes one or multiple middlewares to the stack for middlewares\n// maintained in the Api object.", "docstring_tokens": ["Use", "pushes", "one", "or", "multiple", "middlewares", "to", "the", "stack", "for", "middlewares", "maintained", "in", "the", "Api", "object", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/api.go#L23-L25", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/api.go", "func_name": "MakeHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakeHandler wraps all the Middlewares of the stack and the App together, and returns an\n// http.Handler ready to be used. If the Middleware stack is empty the App is used directly. If the\n// App is nil, a HandlerFunc that does nothing is used instead.", "docstring_tokens": ["MakeHandler", "wraps", "all", "the", "Middlewares", "of", "the", "stack", "and", "the", "App", "together", "and", "returns", "an", "http", ".", "Handler", "ready", "to", "be", "used", ".", "If", "the", "Middleware", "stack", "is", "empty", "the", "App", "is", "used", "directly", ".", "If", "the", "App", "is", "nil", "a", "HandlerFunc", "that", "does", "nothing", "is", "used", "instead", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/api.go#L35-L47", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/powered_by.go", "func_name": "MiddlewareFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MiddlewareFunc makes PoweredByMiddleware implement the Middleware interface.", "docstring_tokens": ["MiddlewareFunc", "makes", "PoweredByMiddleware", "implement", "the", "Middleware", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/powered_by.go#L14-L29", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/status.go", "func_name": "MiddlewareFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MiddlewareFunc makes StatusMiddleware implement the Middleware interface.", "docstring_tokens": ["MiddlewareFunc", "makes", "StatusMiddleware", "implement", "the", "Middleware", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/status.go#L23-L52", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/status.go", "func_name": "GetStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStatus computes and returns a Status object based on the request informations accumulated\n// since the start of the process.", "docstring_tokens": ["GetStatus", "computes", "and", "returns", "a", "Status", "object", "based", "on", "the", "request", "informations", "accumulated", "since", "the", "start", "of", "the", "process", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/status.go#L91-L129", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/jsonp.go", "func_name": "MiddlewareFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MiddlewareFunc returns a HandlerFunc that implements the middleware.", "docstring_tokens": ["MiddlewareFunc", "returns", "a", "HandlerFunc", "that", "implements", "the", "middleware", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/jsonp.go#L20-L42", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/jsonp.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Make sure the local WriteHeader is called, and call the parent Flush.\n// Provided in order to implement the http.Flusher interface.", "docstring_tokens": ["Make", "sure", "the", "local", "WriteHeader", "is", "called", "and", "call", "the", "parent", "Flush", ".", "Provided", "in", "order", "to", "implement", "the", "http", ".", "Flusher", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/jsonp.go#L84-L90", "partition": "test"} +{"repo": "ant0ine/go-json-rest", "path": "rest/access_log_json.go", "func_name": "MiddlewareFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MiddlewareFunc makes AccessLogJsonMiddleware implement the Middleware interface.", "docstring_tokens": ["MiddlewareFunc", "makes", "AccessLogJsonMiddleware", "implement", "the", "Middleware", "interface", "."], "sha": "ebb33769ae013bd5f518a8bac348c310dea768b8", "url": "https://github.com/ant0ine/go-json-rest/blob/ebb33769ae013bd5f518a8bac348c310dea768b8/rest/access_log_json.go#L21-L35", "partition": "test"} +{"repo": "jpillora/overseer", "path": "fetcher/fetcher_s3.go", "func_name": "Fetch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch the binary from S3", "docstring_tokens": ["Fetch", "the", "binary", "from", "S3"], "sha": "ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a", "url": "https://github.com/jpillora/overseer/blob/ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a/fetcher/fetcher_s3.go#L63-L89", "partition": "test"} +{"repo": "jpillora/overseer", "path": "overseer.go", "func_name": "sanityCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//sanityCheck returns true if a check was performed", "docstring_tokens": ["sanityCheck", "returns", "true", "if", "a", "check", "was", "performed"], "sha": "ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a", "url": "https://github.com/jpillora/overseer/blob/ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a/overseer.go#L113-L125", "partition": "test"} +{"repo": "jpillora/overseer", "path": "graceful.go", "func_name": "release", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//non-blocking trigger close", "docstring_tokens": ["non", "-", "blocking", "trigger", "close"], "sha": "ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a", "url": "https://github.com/jpillora/overseer/blob/ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a/graceful.go#L55-L72", "partition": "test"} +{"repo": "jpillora/overseer", "path": "proc_master.go", "func_name": "fetchLoop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//fetchLoop is run in a goroutine", "docstring_tokens": ["fetchLoop", "is", "run", "in", "a", "goroutine"], "sha": "ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a", "url": "https://github.com/jpillora/overseer/blob/ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a/proc_master.go#L181-L196", "partition": "test"} +{"repo": "jpillora/overseer", "path": "proc_master.go", "func_name": "forkLoop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//not a real fork", "docstring_tokens": ["not", "a", "real", "fork"], "sha": "ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a", "url": "https://github.com/jpillora/overseer/blob/ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a/proc_master.go#L336-L343", "partition": "test"} +{"repo": "jpillora/overseer", "path": "fetcher/fetcher_file.go", "func_name": "Init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Init sets the Path and Interval options", "docstring_tokens": ["Init", "sets", "the", "Path", "and", "Interval", "options"], "sha": "ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a", "url": "https://github.com/jpillora/overseer/blob/ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a/fetcher/fetcher_file.go#L24-L35", "partition": "test"} +{"repo": "jpillora/overseer", "path": "fetcher/fetcher_file.go", "func_name": "Fetch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch file from the specified Path", "docstring_tokens": ["Fetch", "file", "from", "the", "specified", "Path"], "sha": "ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a", "url": "https://github.com/jpillora/overseer/blob/ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a/fetcher/fetcher_file.go#L38-L82", "partition": "test"} +{"repo": "jpillora/overseer", "path": "fetcher/fetcher_http.go", "func_name": "Fetch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch the binary from the provided URL", "docstring_tokens": ["Fetch", "the", "binary", "from", "the", "provided", "URL"], "sha": "ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a", "url": "https://github.com/jpillora/overseer/blob/ce9055846616cf7e1ab91bb8a0bcbb1d7fa3d11a/fetcher/fetcher_http.go#L45-L88", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "config.go", "func_name": "NewConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConfig returns a new configuration instance with sane defaults.", "docstring_tokens": ["NewConfig", "returns", "a", "new", "configuration", "instance", "with", "sane", "defaults", "."], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/config.go#L87-L98", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "config.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate checks a Config instance. It will return a\n// sarama.ConfigurationError if the specified values don't make sense.", "docstring_tokens": ["Validate", "checks", "a", "Config", "instance", ".", "It", "will", "return", "a", "sarama", ".", "ConfigurationError", "if", "the", "specified", "values", "don", "t", "make", "sense", "."], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/config.go#L102-L146", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient creates a new client instance", "docstring_tokens": ["NewClient", "creates", "a", "new", "client", "instance"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/client.go#L21-L36", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "partitions.go", "func_name": "AsyncClose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AsyncClose implements PartitionConsumer", "docstring_tokens": ["AsyncClose", "implements", "PartitionConsumer"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/partitions.go#L87-L92", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "partitions.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close implements PartitionConsumer", "docstring_tokens": ["Close", "implements", "PartitionConsumer"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/partitions.go#L95-L99", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "partitions.go", "func_name": "MarkOffset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarkOffset implements PartitionConsumer", "docstring_tokens": ["MarkOffset", "implements", "PartitionConsumer"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/partitions.go#L161-L169", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "consumer.go", "func_name": "NewConsumer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConsumer initializes a new consumer", "docstring_tokens": ["NewConsumer", "initializes", "a", "new", "consumer"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/consumer.go#L43-L55", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "consumer.go", "func_name": "MarkOffsets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarkOffsets marks stashed offsets as processed.\n// See MarkOffset for additional explanation.", "docstring_tokens": ["MarkOffsets", "marks", "stashed", "offsets", "as", "processed", ".", "See", "MarkOffset", "for", "additional", "explanation", "."], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/consumer.go#L158-L168", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "consumer.go", "func_name": "ResetOffset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResetOffset marks the provided message as processed, alongside a metadata string\n// that represents the state of the partition consumer at that point in time. The\n// metadata string can be used by another consumer to restore that state, so it\n// can resume consumption.\n//\n// Difference between ResetOffset and MarkOffset is that it allows to rewind to an earlier offset", "docstring_tokens": ["ResetOffset", "marks", "the", "provided", "message", "as", "processed", "alongside", "a", "metadata", "string", "that", "represents", "the", "state", "of", "the", "partition", "consumer", "at", "that", "point", "in", "time", ".", "The", "metadata", "string", "can", "be", "used", "by", "another", "consumer", "to", "restore", "that", "state", "so", "it", "can", "resume", "consumption", ".", "Difference", "between", "ResetOffset", "and", "MarkOffset", "is", "that", "it", "allows", "to", "rewind", "to", "an", "earlier", "offset"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/consumer.go#L176-L180", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "consumer.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close safely closes the consumer and releases all resources", "docstring_tokens": ["Close", "safely", "closes", "the", "consumer", "and", "releases", "all", "resources"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/consumer.go#L272-L311", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "consumer.go", "func_name": "hbLoop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// heartbeat loop, triggered by the mainLoop", "docstring_tokens": ["heartbeat", "loop", "triggered", "by", "the", "mainLoop"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/consumer.go#L398-L419", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "consumer.go", "func_name": "twLoop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// topic watcher loop, triggered by the mainLoop", "docstring_tokens": ["topic", "watcher", "loop", "triggered", "by", "the", "mainLoop"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/consumer.go#L422-L448", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "consumer.go", "func_name": "cmLoop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// commit loop, triggered by the mainLoop", "docstring_tokens": ["commit", "loop", "triggered", "by", "the", "mainLoop"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/consumer.go#L451-L468", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "consumer.go", "func_name": "fetchOffsets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetches latest committed offsets for all subscriptions", "docstring_tokens": ["Fetches", "latest", "committed", "offsets", "for", "all", "subscriptions"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/consumer.go#L748-L790", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "offsets.go", "func_name": "MarkOffset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarkOffset stashes the provided message offset", "docstring_tokens": ["MarkOffset", "stashes", "the", "provided", "message", "offset"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/offsets.go#L22-L24", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "offsets.go", "func_name": "ResetOffset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResetOffset stashes the provided message offset\n// See ResetPartitionOffset for explanation", "docstring_tokens": ["ResetOffset", "stashes", "the", "provided", "message", "offset", "See", "ResetPartitionOffset", "for", "explanation"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/offsets.go#L55-L57", "partition": "test"} +{"repo": "bsm/sarama-cluster", "path": "offsets.go", "func_name": "Offsets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Offsets returns the latest stashed offsets by topic-partition", "docstring_tokens": ["Offsets", "returns", "the", "latest", "stashed", "offsets", "by", "topic", "-", "partition"], "sha": "d5779253526cc8a3129a0e5d7cc429f4b4473ab4", "url": "https://github.com/bsm/sarama-cluster/blob/d5779253526cc8a3129a0e5d7cc429f4b4473ab4/offsets.go#L60-L69", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cloud/google/compute/resources/instancegroup.go", "func_name": "Actual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Actual is used to build a cluster based on instances on the cloud provider.", "docstring_tokens": ["Actual", "is", "used", "to", "build", "a", "cluster", "based", "on", "instances", "on", "the", "cloud", "provider", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cloud/google/compute/resources/instancegroup.go#L57-L95", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cloud/google/compute/resources/instancegroup.go", "func_name": "Expected", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Expected is used to build a cluster expected to be on the cloud provider.", "docstring_tokens": ["Expected", "is", "used", "to", "build", "a", "cluster", "expected", "to", "be", "on", "the", "cloud", "provider", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cloud/google/compute/resources/instancegroup.go#L98-L118", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cloud/google/compute/resources/instancegroup.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete is used to delete the instances on the cloud provider", "docstring_tokens": ["Delete", "is", "used", "to", "delete", "the", "instances", "on", "the", "cloud", "provider"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cloud/google/compute/resources/instancegroup.go#L338-L371", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/reconciler.go", "func_name": "GetReconciler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetReconciler gets the correct Reconciler for the cloud provider currenty used.", "docstring_tokens": ["GetReconciler", "gets", "the", "correct", "Reconciler", "for", "the", "cloud", "provider", "currenty", "used", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/reconciler.go#L51-L109", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/version/version.go", "func_name": "GetVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetVersion returns Kubicorn version.", "docstring_tokens": ["GetVersion", "returns", "Kubicorn", "version", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/version/version.go#L48-L57", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/version/version.go", "func_name": "GetVersionJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetVersionJSON returns Kubicorn version in JSON format.", "docstring_tokens": ["GetVersionJSON", "returns", "Kubicorn", "version", "in", "JSON", "format", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/version/version.go#L60-L66", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cloud/azure/public/resources/resourcegroup.go", "func_name": "Actual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Actual returns the actual resource group in Azure if it exists.", "docstring_tokens": ["Actual", "returns", "the", "actual", "resource", "group", "in", "Azure", "if", "it", "exists", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cloud/azure/public/resources/resourcegroup.go#L35-L58", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cloud/azure/public/resources/resourcegroup.go", "func_name": "Expected", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Expected will return the expected resource group as it would be defined in Azure", "docstring_tokens": ["Expected", "will", "return", "the", "expected", "resource", "group", "as", "it", "would", "be", "defined", "in", "Azure"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cloud/azure/public/resources/resourcegroup.go#L61-L73", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cmd/create.go", "func_name": "CreateCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateCmd represents create command", "docstring_tokens": ["CreateCmd", "represents", "create", "command"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cmd/create.go#L35-L87", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "profiles/azure/ubuntu.go", "func_name": "NewUbuntuCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewUbuntuCluster creates a basic Azure cluster profile, to bootstrap Kubernetes.", "docstring_tokens": ["NewUbuntuCluster", "creates", "a", "basic", "Azure", "cluster", "profile", "to", "bootstrap", "Kubernetes", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/profiles/azure/ubuntu.go#L25-L132", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "apis/cluster/cluster.go", "func_name": "ProviderConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProviderConfig is a convenience method that will attempt\n// to return a ControlPlaneProviderConfig for a cluster.\n// This is useful for managing the legacy API in a clean way.\n// This will ignore errors from json.Unmarshal and will simply\n// return an empty config.", "docstring_tokens": ["ProviderConfig", "is", "a", "convenience", "method", "that", "will", "attempt", "to", "return", "a", "ControlPlaneProviderConfig", "for", "a", "cluster", ".", "This", "is", "useful", "for", "managing", "the", "legacy", "API", "in", "a", "clean", "way", ".", "This", "will", "ignore", "errors", "from", "json", ".", "Unmarshal", "and", "will", "simply", "return", "an", "empty", "config", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/apis/cluster/cluster.go#L76-L85", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "apis/cluster/cluster.go", "func_name": "SetProviderConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetProviderConfig is a convenience method that will attempt\n// to set a provider config on a particular cluster. Just like\n// it's counterpart ProviderConfig this makes working with the legacy API much easier.", "docstring_tokens": ["SetProviderConfig", "is", "a", "convenience", "method", "that", "will", "attempt", "to", "set", "a", "provider", "config", "on", "a", "particular", "cluster", ".", "Just", "like", "it", "s", "counterpart", "ProviderConfig", "this", "makes", "working", "with", "the", "legacy", "API", "much", "easier", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/apis/cluster/cluster.go#L90-L99", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "apis/cluster/cluster.go", "func_name": "MachineProviderConfigs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MachineProviderConfigs will return all MachineProviderConfigs for a cluster", "docstring_tokens": ["MachineProviderConfigs", "will", "return", "all", "MachineProviderConfigs", "for", "a", "cluster"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/apis/cluster/cluster.go#L102-L114", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "apis/cluster/cluster.go", "func_name": "SetMachineProviderConfigs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMachineProviderConfig will attempt to match a provider config to a machine set\n// on the \"Name\" field. If a match cannot be made we warn and move on.", "docstring_tokens": ["SetMachineProviderConfig", "will", "attempt", "to", "match", "a", "provider", "config", "to", "a", "machine", "set", "on", "the", "Name", "field", ".", "If", "a", "match", "cannot", "be", "made", "we", "warn", "and", "move", "on", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/apis/cluster/cluster.go#L118-L147", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "apis/cluster/cluster.go", "func_name": "NewCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCluster will initialize a new Cluster", "docstring_tokens": ["NewCluster", "will", "initialize", "a", "new", "Cluster"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/apis/cluster/cluster.go#L254-L265", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cmd/deploycontroller.go", "func_name": "DeployControllerCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeployControllerCmd represents the apply command", "docstring_tokens": ["DeployControllerCmd", "represents", "the", "apply", "command"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cmd/deploycontroller.go#L31-L66", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/retry/retry.go", "func_name": "NewRetrier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRetrier creates a new Retrier using given properties.", "docstring_tokens": ["NewRetrier", "creates", "a", "new", "Retrier", "using", "given", "properties", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/retry/retry.go#L40-L46", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/retry/retry.go", "func_name": "RunRetry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunRetry runs a retryable function.", "docstring_tokens": ["RunRetry", "runs", "a", "retryable", "function", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/retry/retry.go#L49-L84", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/rand/cryptorand.go", "func_name": "MustGenerateRandomBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustGenerateRandomBytes generates random bytes or panics if it can't", "docstring_tokens": ["MustGenerateRandomBytes", "generates", "random", "bytes", "or", "panics", "if", "it", "can", "t"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/rand/cryptorand.go#L23-L31", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cmd/explain.go", "func_name": "ExplainCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExplainCmd represents the explain command", "docstring_tokens": ["ExplainCmd", "represents", "the", "explain", "command"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cmd/explain.go#L39-L73", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/uuid/uuid.go", "func_name": "TimeOrderedUUID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TimeOrderedUUID generates a time ordered UUID. Top 32b are timestamp bottom 96b are random.", "docstring_tokens": ["TimeOrderedUUID", "generates", "a", "time", "ordered", "UUID", ".", "Top", "32b", "are", "timestamp", "bottom", "96b", "are", "random", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/uuid/uuid.go#L25-L34", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cmd/getconfig.go", "func_name": "GetConfigCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetConfigCmd represents the apply command", "docstring_tokens": ["GetConfigCmd", "represents", "the", "apply", "command"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cmd/getconfig.go#L31-L66", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/task/task.go", "func_name": "RunAnnotated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunAnnotated annotates a task with a description and a sequence of symbols indicating task activity until it terminates", "docstring_tokens": ["RunAnnotated", "annotates", "a", "task", "with", "a", "description", "and", "a", "sequence", "of", "symbols", "indicating", "task", "activity", "until", "it", "terminates"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/task/task.go#L30-L56", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cmd/list.go", "func_name": "ListCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListCmd represents the list command", "docstring_tokens": ["ListCmd", "represents", "the", "list", "command"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cmd/list.go#L36-L58", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "profiles/packet/ubuntu_16_04.go", "func_name": "NewUbuntuCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewUbuntuCluster creates a simple Ubuntu Amazon cluster", "docstring_tokens": ["NewUbuntuCluster", "creates", "a", "simple", "Ubuntu", "Amazon", "cluster"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/profiles/packet/ubuntu_16_04.go#L25-L78", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cmd/edit.go", "func_name": "EditCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EditCmd represents edit command", "docstring_tokens": ["EditCmd", "represents", "edit", "command"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cmd/edit.go#L31-L65", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/agent/agent.go", "func_name": "RemoveKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveKey removes an existing key from keyring", "docstring_tokens": ["RemoveKey", "removes", "an", "existing", "key", "from", "keyring"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/agent/agent.go#L117-L119", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/agent/agent.go", "func_name": "RemoveKeyUsingFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveKeyUsingFile removes an existing key from keyring given a file", "docstring_tokens": ["RemoveKeyUsingFile", "removes", "an", "existing", "key", "from", "keyring", "given", "a", "file"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/agent/agent.go#L122-L134", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cloud/digitalocean/droplet/resources/firewall.go", "func_name": "Actual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Actual calls DO firewall Api and returns the actual state of firewall in the cloud.", "docstring_tokens": ["Actual", "calls", "DO", "firewall", "Api", "and", "returns", "the", "actual", "state", "of", "firewall", "in", "the", "cloud", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cloud/digitalocean/droplet/resources/firewall.go#L82-L117", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cloud/digitalocean/droplet/resources/firewall.go", "func_name": "Expected", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Expected returns the Firewall structure of what is Expected.", "docstring_tokens": ["Expected", "returns", "the", "Firewall", "structure", "of", "what", "is", "Expected", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cloud/digitalocean/droplet/resources/firewall.go#L120-L140", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cloud/digitalocean/droplet/resources/firewall.go", "func_name": "Apply", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Apply will compare the actual and expected firewall config, if needed it will create the firewall.", "docstring_tokens": ["Apply", "will", "compare", "the", "actual", "and", "expected", "firewall", "config", "if", "needed", "it", "will", "create", "the", "firewall", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cloud/digitalocean/droplet/resources/firewall.go#L143-L213", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cloud/digitalocean/droplet/resources/firewall.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete removes the firewall", "docstring_tokens": ["Delete", "removes", "the", "firewall"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cloud/digitalocean/droplet/resources/firewall.go#L304-L331", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cmd/delete.go", "func_name": "DeleteCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteCmd represents the delete command", "docstring_tokens": ["DeleteCmd", "represents", "the", "delete", "command"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cmd/delete.go#L32-L73", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/cli/state_store.go", "func_name": "NewStateStore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStateStore returns clusterStorer object based on type.", "docstring_tokens": ["NewStateStore", "returns", "clusterStorer", "object", "based", "on", "type", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/cli/state_store.go#L33-L92", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/state/git/impl.go", "func_name": "Commit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Performs a git 'commit' and 'push' of the current cluster changes.", "docstring_tokens": ["Performs", "a", "git", "commit", "and", "push", "of", "the", "current", "cluster", "changes", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/state/git/impl.go#L122-L150", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cmd/apply.go", "func_name": "ApplyCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyCmd represents the apply command", "docstring_tokens": ["ApplyCmd", "represents", "the", "apply", "command"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cmd/apply.go#L39-L76", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/cli/utils.go", "func_name": "ExpandPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExpandPath returns working directory path", "docstring_tokens": ["ExpandPath", "returns", "working", "directory", "path"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/cli/utils.go#L25-L47", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cmd/completion.go", "func_name": "CompletionCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CompletionCmd represents the completion command", "docstring_tokens": ["CompletionCmd", "represents", "the", "completion", "command"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cmd/completion.go#L44-L87", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cmd/adopt.go", "func_name": "AdoptCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AdoptCmd represents the adopt command", "docstring_tokens": ["AdoptCmd", "represents", "the", "adopt", "command"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cmd/adopt.go#L24-L36", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/cli/env.go", "func_name": "StrEnvDef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StrEnvDef get environment variable, or some default def", "docstring_tokens": ["StrEnvDef", "get", "environment", "variable", "or", "some", "default", "def"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/cli/env.go#L23-L29", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/cli/env.go", "func_name": "IntEnvDef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntEnvDef get environment variable, or some default def", "docstring_tokens": ["IntEnvDef", "get", "environment", "variable", "or", "some", "default", "def"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/cli/env.go#L32-L42", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/cli/env.go", "func_name": "BoolEnvDef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BoolEnvDef get environemnt variable and return bool.", "docstring_tokens": ["BoolEnvDef", "get", "environemnt", "variable", "and", "return", "bool", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/cli/env.go#L45-L55", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/parser/localresource.go", "func_name": "readFromFS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readFromFS reads file from a local path and returns as string", "docstring_tokens": ["readFromFS", "reads", "file", "from", "a", "local", "path", "and", "returns", "as", "string"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/parser/localresource.go#L26-L44", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "cmd/version.go", "func_name": "VersionCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VersionCmd represents the version command", "docstring_tokens": ["VersionCmd", "represents", "the", "version", "command"], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/cmd/version.go#L25-L36", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/signals/signals.go", "func_name": "NewSignalHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSignalHandler creates a new Handler using given properties.", "docstring_tokens": ["NewSignalHandler", "creates", "a", "new", "Handler", "using", "given", "properties", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/signals/signals.go#L57-L65", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "pkg/signals/signals.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register starts handling signals.", "docstring_tokens": ["Register", "starts", "handling", "signals", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/pkg/signals/signals.go#L79-L111", "partition": "test"} +{"repo": "kubicorn/kubicorn", "path": "profiles/openstack/ecs/ubuntu_16_04.go", "func_name": "NewUbuntuCluster", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewUbuntuCluster creates a simple Ubuntu Openstack cluster.", "docstring_tokens": ["NewUbuntuCluster", "creates", "a", "simple", "Ubuntu", "Openstack", "cluster", "."], "sha": "c4a4b80994b4333709c0f8164faabd801866b986", "url": "https://github.com/kubicorn/kubicorn/blob/c4a4b80994b4333709c0f8164faabd801866b986/profiles/openstack/ecs/ubuntu_16_04.go#L25-L126", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "BeginningOfHour", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BeginningOfHour beginning of hour", "docstring_tokens": ["BeginningOfHour", "beginning", "of", "hour"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L15-L18", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "BeginningOfDay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BeginningOfDay beginning of day", "docstring_tokens": ["BeginningOfDay", "beginning", "of", "day"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L21-L24", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "BeginningOfWeek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BeginningOfWeek beginning of week", "docstring_tokens": ["BeginningOfWeek", "beginning", "of", "week"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L27-L41", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "BeginningOfMonth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BeginningOfMonth beginning of month", "docstring_tokens": ["BeginningOfMonth", "beginning", "of", "month"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L44-L47", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "BeginningOfQuarter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BeginningOfQuarter beginning of quarter", "docstring_tokens": ["BeginningOfQuarter", "beginning", "of", "quarter"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L50-L54", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "BeginningOfYear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BeginningOfYear BeginningOfYear beginning of year", "docstring_tokens": ["BeginningOfYear", "BeginningOfYear", "beginning", "of", "year"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L57-L60", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "EndOfMinute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EndOfMinute end of minute", "docstring_tokens": ["EndOfMinute", "end", "of", "minute"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L63-L65", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "EndOfHour", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EndOfHour end of hour", "docstring_tokens": ["EndOfHour", "end", "of", "hour"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L68-L70", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "EndOfDay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EndOfDay end of day", "docstring_tokens": ["EndOfDay", "end", "of", "day"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L73-L76", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "EndOfWeek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EndOfWeek end of week", "docstring_tokens": ["EndOfWeek", "end", "of", "week"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L79-L81", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "EndOfMonth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EndOfMonth end of month", "docstring_tokens": ["EndOfMonth", "end", "of", "month"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L84-L86", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "EndOfQuarter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EndOfQuarter end of quarter", "docstring_tokens": ["EndOfQuarter", "end", "of", "quarter"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L89-L91", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "EndOfYear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EndOfYear end of year", "docstring_tokens": ["EndOfYear", "end", "of", "year"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L94-L96", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "MustParse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustParse must parse string to time or it will panic", "docstring_tokens": ["MustParse", "must", "parse", "string", "to", "time", "or", "it", "will", "panic"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L190-L196", "partition": "test"} +{"repo": "jinzhu/now", "path": "now.go", "func_name": "Between", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Between check time between the begin, end time or not", "docstring_tokens": ["Between", "check", "time", "between", "the", "begin", "end", "time", "or", "not"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/now.go#L199-L203", "partition": "test"} +{"repo": "jinzhu/now", "path": "main.go", "func_name": "ParseInLocation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseInLocation parse string to time in location", "docstring_tokens": ["ParseInLocation", "parse", "string", "to", "time", "in", "location"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/main.go#L121-L123", "partition": "test"} +{"repo": "jinzhu/now", "path": "main.go", "func_name": "MustParse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustParse must parse string to time or will panic", "docstring_tokens": ["MustParse", "must", "parse", "string", "to", "time", "or", "will", "panic"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/main.go#L126-L128", "partition": "test"} +{"repo": "jinzhu/now", "path": "main.go", "func_name": "MustParseInLocation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustParseInLocation must parse string to time in location or will panic", "docstring_tokens": ["MustParseInLocation", "must", "parse", "string", "to", "time", "in", "location", "or", "will", "panic"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/main.go#L131-L133", "partition": "test"} +{"repo": "jinzhu/now", "path": "main.go", "func_name": "Between", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Between check now between the begin, end time or not", "docstring_tokens": ["Between", "check", "now", "between", "the", "begin", "end", "time", "or", "not"], "sha": "8ec929ed50c3ac25ce77ba4486e1f277c552c591", "url": "https://github.com/jinzhu/now/blob/8ec929ed50c3ac25ce77ba4486e1f277c552c591/main.go#L136-L138", "partition": "test"} +{"repo": "op/go-logging", "path": "memory.go", "func_name": "NewChannelMemoryBackend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewChannelMemoryBackend creates a simple in-memory logging backend which\n// utilizes a go channel for communication.\n//\n// Start will automatically be called by this function.", "docstring_tokens": ["NewChannelMemoryBackend", "creates", "a", "simple", "in", "-", "memory", "logging", "backend", "which", "utilizes", "a", "go", "channel", "for", "communication", ".", "Start", "will", "automatically", "be", "called", "by", "this", "function", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/memory.go#L146-L154", "partition": "test"} +{"repo": "op/go-logging", "path": "memory.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start launches the internal goroutine which starts processing data from the\n// input channel.", "docstring_tokens": ["Start", "launches", "the", "internal", "goroutine", "which", "starts", "processing", "data", "from", "the", "input", "channel", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/memory.go#L158-L168", "partition": "test"} +{"repo": "op/go-logging", "path": "memory.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush waits until all records in the buffered channel have been processed.", "docstring_tokens": ["Flush", "waits", "until", "all", "records", "in", "the", "buffered", "channel", "have", "been", "processed", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/memory.go#L207-L211", "partition": "test"} +{"repo": "op/go-logging", "path": "memory.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop signals the internal goroutine to exit and waits until it have.", "docstring_tokens": ["Stop", "signals", "the", "internal", "goroutine", "to", "exit", "and", "waits", "until", "it", "have", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/memory.go#L214-L222", "partition": "test"} +{"repo": "op/go-logging", "path": "logger.go", "func_name": "Formatted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Formatted returns the formatted log record string.", "docstring_tokens": ["Formatted", "returns", "the", "formatted", "log", "record", "string", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/logger.go#L59-L66", "partition": "test"} +{"repo": "op/go-logging", "path": "logger.go", "func_name": "Message", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Message returns the log record message.", "docstring_tokens": ["Message", "returns", "the", "log", "record", "message", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/logger.go#L69-L89", "partition": "test"} +{"repo": "op/go-logging", "path": "logger.go", "func_name": "SetBackend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBackend overrides any previously defined backend for this logger.", "docstring_tokens": ["SetBackend", "overrides", "any", "previously", "defined", "backend", "for", "this", "logger", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/logger.go#L104-L107", "partition": "test"} +{"repo": "op/go-logging", "path": "logger.go", "func_name": "MustGetLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustGetLogger is like GetLogger but panics if the logger can't be created.\n// It simplifies safe initialization of a global logger for eg. a package.", "docstring_tokens": ["MustGetLogger", "is", "like", "GetLogger", "but", "panics", "if", "the", "logger", "can", "t", "be", "created", ".", "It", "simplifies", "safe", "initialization", "of", "a", "global", "logger", "for", "eg", ".", "a", "package", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/logger.go#L118-L124", "partition": "test"} +{"repo": "op/go-logging", "path": "logger.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset restores the internal state of the logging library.", "docstring_tokens": ["Reset", "restores", "the", "internal", "state", "of", "the", "logging", "library", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/logger.go#L127-L136", "partition": "test"} +{"repo": "op/go-logging", "path": "logger.go", "func_name": "IsEnabledFor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsEnabledFor returns true if the logger is enabled for the given level.", "docstring_tokens": ["IsEnabledFor", "returns", "true", "if", "the", "logger", "is", "enabled", "for", "the", "given", "level", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/logger.go#L139-L141", "partition": "test"} +{"repo": "op/go-logging", "path": "logger.go", "func_name": "Criticalf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Criticalf logs a message using CRITICAL as log level.", "docstring_tokens": ["Criticalf", "logs", "a", "message", "using", "CRITICAL", "as", "log", "level", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/logger.go#L203-L205", "partition": "test"} +{"repo": "op/go-logging", "path": "logger.go", "func_name": "Warningf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Warningf logs a message using WARNING as log level.", "docstring_tokens": ["Warningf", "logs", "a", "message", "using", "WARNING", "as", "log", "level", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/logger.go#L223-L225", "partition": "test"} +{"repo": "op/go-logging", "path": "logger.go", "func_name": "Noticef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Noticef logs a message using NOTICE as log level.", "docstring_tokens": ["Noticef", "logs", "a", "message", "using", "NOTICE", "as", "log", "level", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/logger.go#L233-L235", "partition": "test"} +{"repo": "op/go-logging", "path": "logger.go", "func_name": "Infof", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Infof logs a message using INFO as log level.", "docstring_tokens": ["Infof", "logs", "a", "message", "using", "INFO", "as", "log", "level", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/logger.go#L243-L245", "partition": "test"} +{"repo": "op/go-logging", "path": "format.go", "func_name": "SetFormatter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetFormatter sets the default formatter for all new backends. A backend will\n// fetch this value once it is needed to format a record. Note that backends\n// will cache the formatter after the first point. For now, make sure to set\n// the formatter before logging.", "docstring_tokens": ["SetFormatter", "sets", "the", "default", "formatter", "for", "all", "new", "backends", ".", "A", "backend", "will", "fetch", "this", "value", "once", "it", "is", "needed", "to", "format", "a", "record", ".", "Note", "that", "backends", "will", "cache", "the", "formatter", "after", "the", "first", "point", ".", "For", "now", "make", "sure", "to", "set", "the", "formatter", "before", "logging", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/format.go#L132-L136", "partition": "test"} +{"repo": "op/go-logging", "path": "format.go", "func_name": "MustStringFormatter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustStringFormatter is equivalent to NewStringFormatter with a call to panic\n// on error.", "docstring_tokens": ["MustStringFormatter", "is", "equivalent", "to", "NewStringFormatter", "with", "a", "call", "to", "panic", "on", "error", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/format.go#L262-L268", "partition": "test"} +{"repo": "op/go-logging", "path": "format.go", "func_name": "formatFuncName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// formatFuncName tries to extract certain part of the runtime formatted\n// function name to some pre-defined variation.\n//\n// This function is known to not work properly if the package path or name\n// contains a dot.", "docstring_tokens": ["formatFuncName", "tries", "to", "extract", "certain", "part", "of", "the", "runtime", "formatted", "function", "name", "to", "some", "pre", "-", "defined", "variation", ".", "This", "function", "is", "known", "to", "not", "work", "properly", "if", "the", "package", "path", "or", "name", "contains", "a", "dot", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/format.go#L341-L360", "partition": "test"} +{"repo": "op/go-logging", "path": "format.go", "func_name": "Log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Log implements the Log function required by the Backend interface.", "docstring_tokens": ["Log", "implements", "the", "Log", "function", "required", "by", "the", "Backend", "interface", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/format.go#L409-L414", "partition": "test"} +{"repo": "op/go-logging", "path": "level.go", "func_name": "LogLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogLevel returns the log level from a string representation.", "docstring_tokens": ["LogLevel", "returns", "the", "log", "level", "from", "a", "string", "representation", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/level.go#L44-L51", "partition": "test"} +{"repo": "op/go-logging", "path": "level.go", "func_name": "AddModuleLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddModuleLevel wraps a log backend with knobs to have different log levels\n// for different modules.", "docstring_tokens": ["AddModuleLevel", "wraps", "a", "log", "backend", "with", "knobs", "to", "have", "different", "log", "levels", "for", "different", "modules", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/level.go#L77-L87", "partition": "test"} +{"repo": "op/go-logging", "path": "level.go", "func_name": "GetLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLevel returns the log level for the given module.", "docstring_tokens": ["GetLevel", "returns", "the", "log", "level", "for", "the", "given", "module", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/level.go#L90-L100", "partition": "test"} +{"repo": "op/go-logging", "path": "level.go", "func_name": "SetLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLevel sets the log level for the given module.", "docstring_tokens": ["SetLevel", "sets", "the", "log", "level", "for", "the", "given", "module", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/level.go#L103-L105", "partition": "test"} +{"repo": "op/go-logging", "path": "level.go", "func_name": "IsEnabledFor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsEnabledFor will return true if logging is enabled for the given module.", "docstring_tokens": ["IsEnabledFor", "will", "return", "true", "if", "logging", "is", "enabled", "for", "the", "given", "module", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/level.go#L108-L110", "partition": "test"} +{"repo": "op/go-logging", "path": "multi.go", "func_name": "MultiLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MultiLogger creates a logger which contain multiple loggers.", "docstring_tokens": ["MultiLogger", "creates", "a", "logger", "which", "contain", "multiple", "loggers", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/multi.go#L16-L22", "partition": "test"} +{"repo": "op/go-logging", "path": "multi.go", "func_name": "Log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Log passes the log record to all backends.", "docstring_tokens": ["Log", "passes", "the", "log", "record", "to", "all", "backends", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/multi.go#L25-L37", "partition": "test"} +{"repo": "op/go-logging", "path": "multi.go", "func_name": "GetLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLevel returns the highest level enabled by all backends.", "docstring_tokens": ["GetLevel", "returns", "the", "highest", "level", "enabled", "by", "all", "backends", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/multi.go#L40-L48", "partition": "test"} +{"repo": "op/go-logging", "path": "multi.go", "func_name": "SetLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLevel propagates the same level to all backends.", "docstring_tokens": ["SetLevel", "propagates", "the", "same", "level", "to", "all", "backends", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/multi.go#L51-L55", "partition": "test"} +{"repo": "op/go-logging", "path": "multi.go", "func_name": "IsEnabledFor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsEnabledFor returns true if any of the backends are enabled for it.", "docstring_tokens": ["IsEnabledFor", "returns", "true", "if", "any", "of", "the", "backends", "are", "enabled", "for", "it", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/multi.go#L58-L65", "partition": "test"} +{"repo": "op/go-logging", "path": "log_nix.go", "func_name": "ConvertColors", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConvertColors takes a list of ints representing colors for log levels and\n// converts them into strings for ANSI color formatting", "docstring_tokens": ["ConvertColors", "takes", "a", "list", "of", "ints", "representing", "colors", "for", "log", "levels", "and", "converts", "them", "into", "strings", "for", "ANSI", "color", "formatting"], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/log_nix.go#L80-L91", "partition": "test"} +{"repo": "op/go-logging", "path": "syslog.go", "func_name": "NewSyslogBackend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSyslogBackend connects to the syslog daemon using UNIX sockets with the\n// given prefix. If prefix is not given, the prefix will be derived from the\n// launched command.", "docstring_tokens": ["NewSyslogBackend", "connects", "to", "the", "syslog", "daemon", "using", "UNIX", "sockets", "with", "the", "given", "prefix", ".", "If", "prefix", "is", "not", "given", "the", "prefix", "will", "be", "derived", "from", "the", "launched", "command", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/syslog.go#L20-L24", "partition": "test"} +{"repo": "op/go-logging", "path": "syslog.go", "func_name": "NewSyslogBackendPriority", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSyslogBackendPriority is the same as NewSyslogBackend, but with custom\n// syslog priority, like syslog.LOG_LOCAL3|syslog.LOG_DEBUG etc.", "docstring_tokens": ["NewSyslogBackendPriority", "is", "the", "same", "as", "NewSyslogBackend", "but", "with", "custom", "syslog", "priority", "like", "syslog", ".", "LOG_LOCAL3|syslog", ".", "LOG_DEBUG", "etc", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/syslog.go#L28-L32", "partition": "test"} +{"repo": "op/go-logging", "path": "backend.go", "func_name": "SetBackend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBackend replaces the backend currently set with the given new logging\n// backend.", "docstring_tokens": ["SetBackend", "replaces", "the", "backend", "currently", "set", "with", "the", "given", "new", "logging", "backend", "."], "sha": "970db520ece77730c7e4724c61121037378659d9", "url": "https://github.com/op/go-logging/blob/970db520ece77730c7e4724c61121037378659d9/backend.go#L18-L28", "partition": "test"} +{"repo": "google/subcommands", "path": "subcommands.go", "func_name": "NewCommander", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCommander returns a new commander with the specified top-level\n// flags and command name. The Usage function for the topLevelFlags\n// will be set as well.", "docstring_tokens": ["NewCommander", "returns", "a", "new", "commander", "with", "the", "specified", "top", "-", "level", "flags", "and", "command", "name", ".", "The", "Usage", "function", "for", "the", "topLevelFlags", "will", "be", "set", "as", "well", "."], "sha": "d47216cd17848d55a33e6f651cbe408243ed55b8", "url": "https://github.com/google/subcommands/blob/d47216cd17848d55a33e6f651cbe408243ed55b8/subcommands.go#L81-L90", "partition": "test"} +{"repo": "google/subcommands", "path": "subcommands.go", "func_name": "Execute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Execute should be called once the top-level-flags on a Commander\n// have been initialized. It finds the correct subcommand and executes\n// it, and returns an ExitStatus with the result. On a usage error, an\n// appropriate message is printed to os.Stderr, and ExitUsageError is\n// returned. The additional args are provided as-is to the Execute method\n// of the selected Command.", "docstring_tokens": ["Execute", "should", "be", "called", "once", "the", "top", "-", "level", "-", "flags", "on", "a", "Commander", "have", "been", "initialized", ".", "It", "finds", "the", "correct", "subcommand", "and", "executes", "it", "and", "returns", "an", "ExitStatus", "with", "the", "result", ".", "On", "a", "usage", "error", "an", "appropriate", "message", "is", "printed", "to", "os", ".", "Stderr", "and", "ExitUsageError", "is", "returned", ".", "The", "additional", "args", "are", "provided", "as", "-", "is", "to", "the", "Execute", "method", "of", "the", "selected", "Command", "."], "sha": "d47216cd17848d55a33e6f651cbe408243ed55b8", "url": "https://github.com/google/subcommands/blob/d47216cd17848d55a33e6f651cbe408243ed55b8/subcommands.go#L123-L149", "partition": "test"} +{"repo": "google/subcommands", "path": "subcommands.go", "func_name": "explain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// explain prints a brief description of all the subcommands and the\n// important top-level flags.", "docstring_tokens": ["explain", "prints", "a", "brief", "description", "of", "all", "the", "subcommands", "and", "the", "important", "top", "-", "level", "flags", "."], "sha": "d47216cd17848d55a33e6f651cbe408243ed55b8", "url": "https://github.com/google/subcommands/blob/d47216cd17848d55a33e6f651cbe408243ed55b8/subcommands.go#L160-L183", "partition": "test"} +{"repo": "google/subcommands", "path": "subcommands.go", "func_name": "explainGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// explainGroup explains all the subcommands for a particular group.", "docstring_tokens": ["explainGroup", "explains", "all", "the", "subcommands", "for", "a", "particular", "group", "."], "sha": "d47216cd17848d55a33e6f651cbe408243ed55b8", "url": "https://github.com/google/subcommands/blob/d47216cd17848d55a33e6f651cbe408243ed55b8/subcommands.go#L191-L229", "partition": "test"} +{"repo": "google/subcommands", "path": "subcommands.go", "func_name": "explain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// explainCmd prints a brief description of a single command.", "docstring_tokens": ["explainCmd", "prints", "a", "brief", "description", "of", "a", "single", "command", "."], "sha": "d47216cd17848d55a33e6f651cbe408243ed55b8", "url": "https://github.com/google/subcommands/blob/d47216cd17848d55a33e6f651cbe408243ed55b8/subcommands.go#L232-L238", "partition": "test"} +{"repo": "google/subcommands", "path": "subcommands.go", "func_name": "dealias", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dealias recursivly dealiases a command until a non-aliased command\n// is reached.", "docstring_tokens": ["dealias", "recursivly", "dealiases", "a", "command", "until", "a", "non", "-", "aliased", "command", "is", "reached", "."], "sha": "d47216cd17848d55a33e6f651cbe408243ed55b8", "url": "https://github.com/google/subcommands/blob/d47216cd17848d55a33e6f651cbe408243ed55b8/subcommands.go#L378-L384", "partition": "test"} +{"repo": "google/subcommands", "path": "subcommands.go", "func_name": "Execute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Execute should be called once the default flags have been\n// initialized by flag.Parse. It finds the correct subcommand and\n// executes it, and returns an ExitStatus with the result. On a usage\n// error, an appropriate message is printed to os.Stderr, and\n// ExitUsageError is returned. The additional args are provided as-is\n// to the Execute method of the selected Command. It is a wrapper\n// around DefaultCommander.Execute.", "docstring_tokens": ["Execute", "should", "be", "called", "once", "the", "default", "flags", "have", "been", "initialized", "by", "flag", ".", "Parse", ".", "It", "finds", "the", "correct", "subcommand", "and", "executes", "it", "and", "returns", "an", "ExitStatus", "with", "the", "result", ".", "On", "a", "usage", "error", "an", "appropriate", "message", "is", "printed", "to", "os", ".", "Stderr", "and", "ExitUsageError", "is", "returned", ".", "The", "additional", "args", "are", "provided", "as", "-", "is", "to", "the", "Execute", "method", "of", "the", "selected", "Command", ".", "It", "is", "a", "wrapper", "around", "DefaultCommander", ".", "Execute", "."], "sha": "d47216cd17848d55a33e6f651cbe408243ed55b8", "url": "https://github.com/google/subcommands/blob/d47216cd17848d55a33e6f651cbe408243ed55b8/subcommands.go#L419-L421", "partition": "test"} +{"repo": "Unknwon/goconfig", "path": "read.go", "func_name": "LoadFromData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadFromData accepts raw data directly from memory\n// and returns a new configuration representation.\n// Note that the configuration is written to the system\n// temporary folder, so your file should not contain\n// sensitive information.", "docstring_tokens": ["LoadFromData", "accepts", "raw", "data", "directly", "from", "memory", "and", "returns", "a", "new", "configuration", "representation", ".", "Note", "that", "the", "configuration", "is", "written", "to", "the", "system", "temporary", "folder", "so", "your", "file", "should", "not", "contain", "sensitive", "information", "."], "sha": "3dba17dd7b9ec8509b3621a73a30a4b333eb28da", "url": "https://github.com/Unknwon/goconfig/blob/3dba17dd7b9ec8509b3621a73a30a4b333eb28da/read.go#L182-L195", "partition": "test"} +{"repo": "Unknwon/goconfig", "path": "read.go", "func_name": "LoadFromReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadFromReader accepts raw data directly from a reader\n// and returns a new configuration representation.\n// You must use ReloadData to reload.\n// You cannot append files a configfile read this way.", "docstring_tokens": ["LoadFromReader", "accepts", "raw", "data", "directly", "from", "a", "reader", "and", "returns", "a", "new", "configuration", "representation", ".", "You", "must", "use", "ReloadData", "to", "reload", ".", "You", "cannot", "append", "files", "a", "configfile", "read", "this", "way", "."], "sha": "3dba17dd7b9ec8509b3621a73a30a4b333eb28da", "url": "https://github.com/Unknwon/goconfig/blob/3dba17dd7b9ec8509b3621a73a30a4b333eb28da/read.go#L201-L205", "partition": "test"} +{"repo": "Unknwon/goconfig", "path": "read.go", "func_name": "ReloadData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReloadData reloads configuration file from memory", "docstring_tokens": ["ReloadData", "reloads", "configuration", "file", "from", "memory"], "sha": "3dba17dd7b9ec8509b3621a73a30a4b333eb28da", "url": "https://github.com/Unknwon/goconfig/blob/3dba17dd7b9ec8509b3621a73a30a4b333eb28da/read.go#L257-L268", "partition": "test"} +{"repo": "Unknwon/goconfig", "path": "read.go", "func_name": "AppendFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendFiles appends more files to ConfigFile and reload automatically.", "docstring_tokens": ["AppendFiles", "appends", "more", "files", "to", "ConfigFile", "and", "reload", "automatically", "."], "sha": "3dba17dd7b9ec8509b3621a73a30a4b333eb28da", "url": "https://github.com/Unknwon/goconfig/blob/3dba17dd7b9ec8509b3621a73a30a4b333eb28da/read.go#L271-L277", "partition": "test"} +{"repo": "Unknwon/goconfig", "path": "conf.go", "func_name": "GetKeyList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetKeyList returns the list of all keys in give section\n// in the same order in the file.\n// It returns nil if given section does not exist.", "docstring_tokens": ["GetKeyList", "returns", "the", "list", "of", "all", "keys", "in", "give", "section", "in", "the", "same", "order", "in", "the", "file", ".", "It", "returns", "nil", "if", "given", "section", "does", "not", "exist", "."], "sha": "3dba17dd7b9ec8509b3621a73a30a4b333eb28da", "url": "https://github.com/Unknwon/goconfig/blob/3dba17dd7b9ec8509b3621a73a30a4b333eb28da/conf.go#L360-L384", "partition": "test"} +{"repo": "Unknwon/goconfig", "path": "write.go", "func_name": "SaveConfigData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveConfigData writes configuration to a writer", "docstring_tokens": ["SaveConfigData", "writes", "configuration", "to", "a", "writer"], "sha": "3dba17dd7b9ec8509b3621a73a30a4b333eb28da", "url": "https://github.com/Unknwon/goconfig/blob/3dba17dd7b9ec8509b3621a73a30a4b333eb28da/write.go#L28-L103", "partition": "test"} +{"repo": "Unknwon/goconfig", "path": "write.go", "func_name": "SaveConfigFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveConfigFile writes configuration file to local file system", "docstring_tokens": ["SaveConfigFile", "writes", "configuration", "file", "to", "local", "file", "system"], "sha": "3dba17dd7b9ec8509b3621a73a30a4b333eb28da", "url": "https://github.com/Unknwon/goconfig/blob/3dba17dd7b9ec8509b3621a73a30a4b333eb28da/write.go#L106-L117", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "Find", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Find finds exactly one element by CSS selector.", "docstring_tokens": ["Find", "finds", "exactly", "one", "element", "by", "CSS", "selector", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L69-L71", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "FindByXPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindByXPath finds exactly one element by XPath selector.", "docstring_tokens": ["FindByXPath", "finds", "exactly", "one", "element", "by", "XPath", "selector", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L74-L76", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "FindByLink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindByLink finds exactly one anchor element by its text content.", "docstring_tokens": ["FindByLink", "finds", "exactly", "one", "anchor", "element", "by", "its", "text", "content", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L79-L81", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "FindByLabel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindByLabel finds exactly one element by associated label text.", "docstring_tokens": ["FindByLabel", "finds", "exactly", "one", "element", "by", "associated", "label", "text", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L84-L86", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "FindByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindByName finds exactly element with the provided name attribute.", "docstring_tokens": ["FindByName", "finds", "exactly", "element", "with", "the", "provided", "name", "attribute", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L95-L97", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "FindByClass", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindByClass finds exactly one element with a given CSS class.", "docstring_tokens": ["FindByClass", "finds", "exactly", "one", "element", "with", "a", "given", "CSS", "class", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L100-L102", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "FindByID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindByID finds exactly one element that has the given ID.", "docstring_tokens": ["FindByID", "finds", "exactly", "one", "element", "that", "has", "the", "given", "ID", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L105-L107", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "First", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// First finds the first element by CSS selector.", "docstring_tokens": ["First", "finds", "the", "first", "element", "by", "CSS", "selector", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L110-L112", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "FirstByXPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FirstByXPath finds the first element by XPath selector.", "docstring_tokens": ["FirstByXPath", "finds", "the", "first", "element", "by", "XPath", "selector", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L115-L117", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "FirstByLink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FirstByLink finds the first anchor element by its text content.", "docstring_tokens": ["FirstByLink", "finds", "the", "first", "anchor", "element", "by", "its", "text", "content", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L120-L122", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "FirstByLabel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FirstByLabel finds the first element by associated label text.", "docstring_tokens": ["FirstByLabel", "finds", "the", "first", "element", "by", "associated", "label", "text", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L125-L127", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "FirstByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FirstByName finds the first element with the provided name attribute.", "docstring_tokens": ["FirstByName", "finds", "the", "first", "element", "with", "the", "provided", "name", "attribute", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L136-L138", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "All", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// All finds zero or more elements by CSS selector.", "docstring_tokens": ["All", "finds", "zero", "or", "more", "elements", "by", "CSS", "selector", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L146-L148", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "AllByXPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllByXPath finds zero or more elements by XPath selector.", "docstring_tokens": ["AllByXPath", "finds", "zero", "or", "more", "elements", "by", "XPath", "selector", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L151-L153", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "AllByLink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllByLink finds zero or more anchor elements by their text content.", "docstring_tokens": ["AllByLink", "finds", "zero", "or", "more", "anchor", "elements", "by", "their", "text", "content", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L156-L158", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "AllByLabel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllByLabel finds zero or more elements by associated label text.", "docstring_tokens": ["AllByLabel", "finds", "zero", "or", "more", "elements", "by", "associated", "label", "text", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L161-L163", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "AllByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllByName finds zero or more elements with the provided name attribute.", "docstring_tokens": ["AllByName", "finds", "zero", "or", "more", "elements", "with", "the", "provided", "name", "attribute", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L172-L174", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "AllByClass", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllByClass finds zero or more elements with a given CSS class.", "docstring_tokens": ["AllByClass", "finds", "zero", "or", "more", "elements", "with", "a", "given", "CSS", "class", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L177-L179", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "AllByID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllByID finds zero or more elements with a given ID.", "docstring_tokens": ["AllByID", "finds", "zero", "or", "more", "elements", "with", "a", "given", "ID", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L182-L184", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selectable.go", "func_name": "FindForAppium", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FirstByClass finds the first element with a given CSS class.", "docstring_tokens": ["FirstByClass", "finds", "the", "first", "element", "with", "a", "given", "CSS", "class", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selectable.go#L187-L189", "partition": "test"} +{"repo": "sclevine/agouti", "path": "options.go", "func_name": "Timeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Timeout provides an Option for specifying a timeout in seconds.", "docstring_tokens": ["Timeout", "provides", "an", "Option", "for", "specifying", "a", "timeout", "in", "seconds", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/options.go#L29-L33", "partition": "test"} +{"repo": "sclevine/agouti", "path": "options.go", "func_name": "ChromeOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChromeOptions is used to pass additional options to Chrome via ChromeDriver.", "docstring_tokens": ["ChromeOptions", "is", "used", "to", "pass", "additional", "options", "to", "Chrome", "via", "ChromeDriver", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/options.go#L36-L43", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "JoinPage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JoinPage creates a Page using existing session URL. This method takes Options\n// but respects only the HTTPClient Option if provided.", "docstring_tokens": ["JoinPage", "creates", "a", "Page", "using", "existing", "session", "URL", ".", "This", "method", "takes", "Options", "but", "respects", "only", "the", "HTTPClient", "Option", "if", "provided", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L53-L57", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "Destroy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Destroy closes any open browsers by ending the session.", "docstring_tokens": ["Destroy", "closes", "any", "open", "browsers", "by", "ending", "the", "session", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L75-L80", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset deletes all cookies set for the current domain and navigates to a blank page.\n// Unlike Destroy, Reset will permit the page to be re-used after it is called.\n// Reset is faster than Destroy, but any cookies from domains outside the current\n// domain will remain after a page is reset.", "docstring_tokens": ["Reset", "deletes", "all", "cookies", "set", "for", "the", "current", "domain", "and", "navigates", "to", "a", "blank", "page", ".", "Unlike", "Destroy", "Reset", "will", "permit", "the", "page", "to", "be", "re", "-", "used", "after", "it", "is", "called", ".", "Reset", "is", "faster", "than", "Destroy", "but", "any", "cookies", "from", "domains", "outside", "the", "current", "domain", "will", "remain", "after", "a", "page", "is", "reset", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L86-L114", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "Navigate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Navigate navigates to the provided URL.", "docstring_tokens": ["Navigate", "navigates", "to", "the", "provided", "URL", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L117-L122", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "GetCookies", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCookies returns all cookies on the page.", "docstring_tokens": ["GetCookies", "returns", "all", "cookies", "on", "the", "page", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L125-L146", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "SetCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetCookie sets a cookie on the page.", "docstring_tokens": ["SetCookie", "sets", "a", "cookie", "on", "the", "page", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L149-L173", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "DeleteCookie", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteCookie deletes a cookie on the page by name.", "docstring_tokens": ["DeleteCookie", "deletes", "a", "cookie", "on", "the", "page", "by", "name", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L176-L181", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "ClearCookies", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClearCookies deletes all cookies on the page.", "docstring_tokens": ["ClearCookies", "deletes", "all", "cookies", "on", "the", "page", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L184-L189", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "URL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URL returns the current page URL.", "docstring_tokens": ["URL", "returns", "the", "current", "page", "URL", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L192-L198", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "Size", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Size sets the current page size in pixels.", "docstring_tokens": ["Size", "sets", "the", "current", "page", "size", "in", "pixels", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L201-L212", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "Screenshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Screenshot takes a screenshot and saves it to the provided filename.\n// The provided filename may be an absolute or relative path.", "docstring_tokens": ["Screenshot", "takes", "a", "screenshot", "and", "saves", "it", "to", "the", "provided", "filename", ".", "The", "provided", "filename", "may", "be", "an", "absolute", "or", "relative", "path", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L216-L232", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "Title", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Title returns the page title.", "docstring_tokens": ["Title", "returns", "the", "page", "title", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L235-L241", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "HTML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTML returns the current contents of the DOM for the entire page.", "docstring_tokens": ["HTML", "returns", "the", "current", "contents", "of", "the", "DOM", "for", "the", "entire", "page", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L244-L250", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "PopupText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PopupText returns the current alert, confirm, or prompt popup text.", "docstring_tokens": ["PopupText", "returns", "the", "current", "alert", "confirm", "or", "prompt", "popup", "text", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L283-L289", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "EnterPopupText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnterPopupText enters text into an open prompt popup.", "docstring_tokens": ["EnterPopupText", "enters", "text", "into", "an", "open", "prompt", "popup", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L292-L297", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "ConfirmPopup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConfirmPopup confirms an alert, confirm, or prompt popup.", "docstring_tokens": ["ConfirmPopup", "confirms", "an", "alert", "confirm", "or", "prompt", "popup", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L300-L305", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "CancelPopup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CancelPopup cancels an alert, confirm, or prompt popup.", "docstring_tokens": ["CancelPopup", "cancels", "an", "alert", "confirm", "or", "prompt", "popup", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L308-L313", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "SwitchToParentFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SwitchToParentFrame focuses on the immediate parent frame of a frame selected\n// by Selection.Frame. After switching, all new and existing selections will refer\n// to the parent frame. All further Page methods will apply to this frame as well.\n//\n// This method is not supported by PhantomJS. Please use SwitchToRootFrame instead.", "docstring_tokens": ["SwitchToParentFrame", "focuses", "on", "the", "immediate", "parent", "frame", "of", "a", "frame", "selected", "by", "Selection", ".", "Frame", ".", "After", "switching", "all", "new", "and", "existing", "selections", "will", "refer", "to", "the", "parent", "frame", ".", "All", "further", "Page", "methods", "will", "apply", "to", "this", "frame", "as", "well", ".", "This", "method", "is", "not", "supported", "by", "PhantomJS", ".", "Please", "use", "SwitchToRootFrame", "instead", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L344-L349", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "SwitchToRootFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SwitchToRootFrame focuses on the original, default page frame before any calls\n// to Selection.Frame were made. After switching, all new and existing selections\n// will refer to the root frame. All further Page methods will apply to this frame\n// as well.", "docstring_tokens": ["SwitchToRootFrame", "focuses", "on", "the", "original", "default", "page", "frame", "before", "any", "calls", "to", "Selection", ".", "Frame", "were", "made", ".", "After", "switching", "all", "new", "and", "existing", "selections", "will", "refer", "to", "the", "root", "frame", ".", "All", "further", "Page", "methods", "will", "apply", "to", "this", "frame", "as", "well", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L355-L360", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "NextWindow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NextWindow switches to the next available window.", "docstring_tokens": ["NextWindow", "switches", "to", "the", "next", "available", "window", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L372-L403", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "CloseWindow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloseWindow closes the active window.", "docstring_tokens": ["CloseWindow", "closes", "the", "active", "window", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L406-L411", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "WindowCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WindowCount returns the number of available windows.", "docstring_tokens": ["WindowCount", "returns", "the", "number", "of", "available", "windows", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L414-L420", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "LogTypes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogTypes returns all of the valid log types that may be used with a LogReader.", "docstring_tokens": ["LogTypes", "returns", "all", "of", "the", "valid", "log", "types", "that", "may", "be", "used", "with", "a", "LogReader", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L423-L429", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "MoveMouseBy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MoveMouseBy moves the mouse by the provided offset.", "docstring_tokens": ["MoveMouseBy", "moves", "the", "mouse", "by", "the", "provided", "offset", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L482-L488", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "DoubleClick", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DoubleClick double clicks the left mouse button at the current mouse\n// position.", "docstring_tokens": ["DoubleClick", "double", "clicks", "the", "left", "mouse", "button", "at", "the", "current", "mouse", "position", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L492-L498", "partition": "test"} +{"repo": "sclevine/agouti", "path": "page.go", "func_name": "Click", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Click performs the provided Click event using the provided Button at the\n// current mouse position.", "docstring_tokens": ["Click", "performs", "the", "provided", "Click", "event", "using", "the", "provided", "Button", "at", "the", "current", "mouse", "position", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/page.go#L502-L519", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_actions.go", "func_name": "Click", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Click clicks on all of the elements that the selection refers to.", "docstring_tokens": ["Click", "clicks", "on", "all", "of", "the", "elements", "that", "the", "selection", "refers", "to", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_actions.go#L29-L36", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_actions.go", "func_name": "DoubleClick", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DoubleClick double-clicks on all of the elements that the selection refers to.", "docstring_tokens": ["DoubleClick", "double", "-", "clicks", "on", "all", "of", "the", "elements", "that", "the", "selection", "refers", "to", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_actions.go#L39-L49", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_actions.go", "func_name": "Fill", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fill fills all of the fields the selection refers to with the provided text.", "docstring_tokens": ["Fill", "fills", "all", "of", "the", "fields", "the", "selection", "refers", "to", "with", "the", "provided", "text", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_actions.go#L62-L72", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_actions.go", "func_name": "Tap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tap performs the provided Tap event on each element in the selection.", "docstring_tokens": ["Tap", "performs", "the", "provided", "Tap", "event", "on", "each", "element", "in", "the", "selection", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_actions.go#L175-L194", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_actions.go", "func_name": "Touch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Touch performs the provided Touch event at the location of each element in the\n// selection.", "docstring_tokens": ["Touch", "performs", "the", "provided", "Touch", "event", "at", "the", "location", "of", "each", "element", "in", "the", "selection", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_actions.go#L198-L221", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_actions.go", "func_name": "FlickFinger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FlickFinger performs a flick touch action by the provided offset and at the\n// provided speed on exactly one element.", "docstring_tokens": ["FlickFinger", "performs", "a", "flick", "touch", "action", "by", "the", "provided", "offset", "and", "at", "the", "provided", "speed", "on", "exactly", "one", "element", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_actions.go#L225-L235", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_actions.go", "func_name": "ScrollFinger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ScrollFinger performs a scroll touch action by the provided offset on exactly\n// one element.", "docstring_tokens": ["ScrollFinger", "performs", "a", "scroll", "touch", "action", "by", "the", "provided", "offset", "on", "exactly", "one", "element", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_actions.go#L239-L249", "partition": "test"} +{"repo": "sclevine/agouti", "path": "capabilities.go", "func_name": "NewCapabilities", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCapabilities returns a Capabilities instance with any provided features enabled.", "docstring_tokens": ["NewCapabilities", "returns", "a", "Capabilities", "instance", "with", "any", "provided", "features", "enabled", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/capabilities.go#L17-L23", "partition": "test"} +{"repo": "sclevine/agouti", "path": "capabilities.go", "func_name": "JSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JSON returns a JSON string representing the desired capabilities.", "docstring_tokens": ["JSON", "returns", "a", "JSON", "string", "representing", "the", "desired", "capabilities", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/capabilities.go#L86-L89", "partition": "test"} +{"repo": "sclevine/agouti", "path": "matchers/page_matchers.go", "func_name": "HaveTitle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HaveTitle passes when the expected title is equivalent to the\n// title of the provided page.", "docstring_tokens": ["HaveTitle", "passes", "when", "the", "expected", "title", "is", "equivalent", "to", "the", "title", "of", "the", "provided", "page", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/matchers/page_matchers.go#L10-L12", "partition": "test"} +{"repo": "sclevine/agouti", "path": "matchers/page_matchers.go", "func_name": "HaveURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HaveURL passes when the expected URL is equivalent to the\n// current URL of the provided page.", "docstring_tokens": ["HaveURL", "passes", "when", "the", "expected", "URL", "is", "equivalent", "to", "the", "current", "URL", "of", "the", "provided", "page", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/matchers/page_matchers.go#L16-L18", "partition": "test"} +{"repo": "sclevine/agouti", "path": "matchers/page_matchers.go", "func_name": "HavePopupText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HavePopupText passes when the expected text is equivalent to the\n// text contents of an open alert, confirm, or prompt popup.", "docstring_tokens": ["HavePopupText", "passes", "when", "the", "expected", "text", "is", "equivalent", "to", "the", "text", "contents", "of", "an", "open", "alert", "confirm", "or", "prompt", "popup", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/matchers/page_matchers.go#L22-L24", "partition": "test"} +{"repo": "sclevine/agouti", "path": "matchers/page_matchers.go", "func_name": "HaveLoggedError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HaveLoggedError passes when all of the expected log messages are logged as\n// errors in the browser console. If no message is provided, this matcher will\n// pass if any error message has been logged. When negated, this matcher will\n// only fail if all of the provided messages are logged.", "docstring_tokens": ["HaveLoggedError", "passes", "when", "all", "of", "the", "expected", "log", "messages", "are", "logged", "as", "errors", "in", "the", "browser", "console", ".", "If", "no", "message", "is", "provided", "this", "matcher", "will", "pass", "if", "any", "error", "message", "has", "been", "logged", ".", "When", "negated", "this", "matcher", "will", "only", "fail", "if", "all", "of", "the", "provided", "messages", "are", "logged", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/matchers/page_matchers.go#L36-L43", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_properties.go", "func_name": "Text", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Text returns the entirety of the text content for exactly one element.", "docstring_tokens": ["Text", "returns", "the", "entirety", "of", "the", "text", "content", "for", "exactly", "one", "element", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_properties.go#L10-L21", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_properties.go", "func_name": "Active", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Active returns true if the single element that the selection refers to is active.", "docstring_tokens": ["Active", "returns", "true", "if", "the", "single", "element", "that", "the", "selection", "refers", "to", "is", "active", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_properties.go#L24-L41", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_properties.go", "func_name": "Attribute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Attribute returns an attribute value for exactly one element.", "docstring_tokens": ["Attribute", "returns", "an", "attribute", "value", "for", "exactly", "one", "element", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_properties.go#L59-L61", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_properties.go", "func_name": "CSS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CSS returns a CSS style property value for exactly one element.", "docstring_tokens": ["CSS", "returns", "a", "CSS", "style", "property", "value", "for", "exactly", "one", "element", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_properties.go#L64-L66", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_properties.go", "func_name": "Selected", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Selected returns true if all of the elements that the selection refers to are selected.", "docstring_tokens": ["Selected", "returns", "true", "if", "all", "of", "the", "elements", "that", "the", "selection", "refers", "to", "are", "selected", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_properties.go#L90-L92", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_properties.go", "func_name": "Visible", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Visible returns true if all of the elements that the selection refers to are visible.", "docstring_tokens": ["Visible", "returns", "true", "if", "all", "of", "the", "elements", "that", "the", "selection", "refers", "to", "are", "visible", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_properties.go#L95-L97", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_properties.go", "func_name": "Enabled", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enabled returns true if all of the elements that the selection refers to are enabled.", "docstring_tokens": ["Enabled", "returns", "true", "if", "all", "of", "the", "elements", "that", "the", "selection", "refers", "to", "are", "enabled", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_properties.go#L100-L102", "partition": "test"} +{"repo": "sclevine/agouti", "path": "matchers/selection_matchers.go", "func_name": "HaveCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HaveCount passes when the expected element count is equal to the actual\n// number of elements in the selection.", "docstring_tokens": ["HaveCount", "passes", "when", "the", "expected", "element", "count", "is", "equal", "to", "the", "actual", "number", "of", "elements", "in", "the", "selection", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/matchers/selection_matchers.go#L22-L24", "partition": "test"} +{"repo": "sclevine/agouti", "path": "matchers/selection_matchers.go", "func_name": "HaveAttribute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HaveAttribute passes when the expected attribute and value are present on the element.\n// This matcher will fail if the provided selection refers to more than one element.", "docstring_tokens": ["HaveAttribute", "passes", "when", "the", "expected", "attribute", "and", "value", "are", "present", "on", "the", "element", ".", "This", "matcher", "will", "fail", "if", "the", "provided", "selection", "refers", "to", "more", "than", "one", "element", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/matchers/selection_matchers.go#L28-L30", "partition": "test"} +{"repo": "sclevine/agouti", "path": "agouti.go", "func_name": "EdgeDriver", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EdgeDriver returns an instance of a EdgeDriver WebDriver.\n//\n// Provided Options will apply as default arguments for new pages.\n// New pages will accept invalid SSL certificates by default. This\n// may be disabled using the RejectInvalidSSL Option.", "docstring_tokens": ["EdgeDriver", "returns", "an", "instance", "of", "a", "EdgeDriver", "WebDriver", ".", "Provided", "Options", "will", "apply", "as", "default", "arguments", "for", "new", "pages", ".", "New", "pages", "will", "accept", "invalid", "SSL", "certificates", "by", "default", ".", "This", "may", "be", "disabled", "using", "the", "RejectInvalidSSL", "Option", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/agouti.go#L51-L62", "partition": "test"} +{"repo": "sclevine/agouti", "path": "agouti.go", "func_name": "Selendroid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Selendroid returns an instance of a Selendroid WebDriver.\n//\n// Provided Options will apply as default arguments for new pages.\n// New pages will accept invalid SSL certificates by default. This\n// may be disabled using the RejectInvalidSSL Option.\n//\n// The jarFile is a relative or absolute path to Selendroid JAR file.\n// Selendroid will return nil if an invalid path is provided.", "docstring_tokens": ["Selendroid", "returns", "an", "instance", "of", "a", "Selendroid", "WebDriver", ".", "Provided", "Options", "will", "apply", "as", "default", "arguments", "for", "new", "pages", ".", "New", "pages", "will", "accept", "invalid", "SSL", "certificates", "by", "default", ".", "This", "may", "be", "disabled", "using", "the", "RejectInvalidSSL", "Option", ".", "The", "jarFile", "is", "a", "relative", "or", "absolute", "path", "to", "Selendroid", "JAR", "file", ".", "Selendroid", "will", "return", "nil", "if", "an", "invalid", "path", "is", "provided", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/agouti.go#L82-L95", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection_frames.go", "func_name": "SwitchToFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SwitchToFrame focuses on the frame specified by the selection. All new and\n// existing selections will refer to the new frame. All further Page methods\n// will apply to this frame as well.", "docstring_tokens": ["SwitchToFrame", "focuses", "on", "the", "frame", "specified", "by", "the", "selection", ".", "All", "new", "and", "existing", "selections", "will", "refer", "to", "the", "new", "frame", ".", "All", "further", "Page", "methods", "will", "apply", "to", "this", "frame", "as", "well", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection_frames.go#L12-L22", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection.go", "func_name": "Count", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Count returns the number of elements that the selection refers to.", "docstring_tokens": ["Count", "returns", "the", "number", "of", "elements", "that", "the", "selection", "refers", "to", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection.go#L66-L73", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection.go", "func_name": "EqualsElement", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EqualsElement returns whether or not two selections of exactly\n// one element refer to the same element.", "docstring_tokens": ["EqualsElement", "returns", "whether", "or", "not", "two", "selections", "of", "exactly", "one", "element", "refer", "to", "the", "same", "element", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection.go#L77-L103", "partition": "test"} +{"repo": "sclevine/agouti", "path": "selection.go", "func_name": "MouseToElement", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MouseToElement moves the mouse over exactly one element in the selection.", "docstring_tokens": ["MouseToElement", "moves", "the", "mouse", "over", "exactly", "one", "element", "in", "the", "selection", "."], "sha": "96599c91888f1b1cf2dccc7f1776ba7f511909e5", "url": "https://github.com/sclevine/agouti/blob/96599c91888f1b1cf2dccc7f1776ba7f511909e5/selection.go#L106-L117", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "proxy/http.go", "func_name": "loggingMiddleware", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loggingMiddleware logs requests to the proxy", "docstring_tokens": ["loggingMiddleware", "logs", "requests", "to", "the", "proxy"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/proxy/http.go#L37-L42", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "proxy/http.go", "func_name": "chainHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// chainHandlers takes a set of middleware and joins them together\n// into a single Middleware, making it much simpler to compose middleware\n// together", "docstring_tokens": ["chainHandlers", "takes", "a", "set", "of", "middleware", "and", "joins", "them", "together", "into", "a", "single", "Middleware", "making", "it", "much", "simpler", "to", "compose", "middleware", "together"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/proxy/http.go#L47-L57", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "proxy/http.go", "func_name": "HTTPReverseProxy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTPReverseProxy provides a default setup for proxying\n// internal components within the framework", "docstring_tokens": ["HTTPReverseProxy", "provides", "a", "default", "setup", "for", "proxying", "internal", "components", "within", "the", "framework"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/proxy/http.go#L61-L84", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "install/installer.go", "func_name": "CheckInstallation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckInstallation checks installation of all of the tools", "docstring_tokens": ["CheckInstallation", "checks", "installation", "of", "all", "of", "the", "tools"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/install/installer.go#L37-L53", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "install/installer.go", "func_name": "CheckVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckVersion checks installation of a given binary using semver-compatible\n// comparisions", "docstring_tokens": ["CheckVersion", "checks", "installation", "of", "a", "given", "binary", "using", "semver", "-", "compatible", "comparisions"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/install/installer.go#L57-L78", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "install/installer.go", "func_name": "GetVersionForBinary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetVersionForBinary gets the version of a given Ruby binary", "docstring_tokens": ["GetVersionForBinary", "gets", "the", "version", "of", "a", "given", "Ruby", "binary"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/install/installer.go#L81-L89", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "examples/consumer/goconsumer/client.go", "func_name": "getUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getUser finds a user", "docstring_tokens": ["getUser", "finds", "a", "user"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/examples/consumer/goconsumer/client.go#L36-L65", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "examples/consumer/goconsumer/client.go", "func_name": "login", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Login handles the login API call to the User Service.", "docstring_tokens": ["Login", "handles", "the", "login", "API", "call", "to", "the", "User", "Service", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/examples/consumer/goconsumer/client.go#L68-L92", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "examples/consumer/goconsumer/client.go", "func_name": "loginHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Deal with the login request.", "docstring_tokens": ["Deal", "with", "the", "login", "request", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/examples/consumer/goconsumer/client.go#L95-L109", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "examples/consumer/goconsumer/client.go", "func_name": "logoutHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Deal with the logout request.", "docstring_tokens": ["Deal", "with", "the", "logout", "request", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/examples/consumer/goconsumer/client.go#L112-L117", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "examples/consumer/goconsumer/client.go", "func_name": "viewHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Show the current user if logged in, otherwise display a login form.", "docstring_tokens": ["Show", "the", "current", "user", "if", "logged", "in", "otherwise", "display", "a", "login", "form", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/examples/consumer/goconsumer/client.go#L128-L134", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "examples/consumer/goconsumer/client.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run the web application.", "docstring_tokens": ["Run", "the", "web", "application", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/examples/consumer/goconsumer/client.go#L137-L143", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/interaction.go", "func_name": "WithRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithRequest specifies the details of the HTTP request that will be used to\n// confirm that the Provider provides an API listening on the given interface.\n// Mandatory.", "docstring_tokens": ["WithRequest", "specifies", "the", "details", "of", "the", "HTTP", "request", "that", "will", "be", "used", "to", "confirm", "that", "the", "Provider", "provides", "an", "API", "listening", "on", "the", "given", "interface", ".", "Mandatory", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/interaction.go#L41-L54", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/interaction.go", "func_name": "WillRespondWith", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WillRespondWith specifies the details of the HTTP response that will be used to\n// confirm that the Provider must satisfy. Mandatory.", "docstring_tokens": ["WillRespondWith", "specifies", "the", "details", "of", "the", "HTTP", "response", "that", "will", "be", "used", "to", "confirm", "that", "the", "Provider", "must", "satisfy", ".", "Mandatory", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/interaction.go#L58-L62", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/interaction.go", "func_name": "isJSONFormattedObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Checks to see if someone has tried to submit a JSON string\n// for an object, which is no longer supported", "docstring_tokens": ["Checks", "to", "see", "if", "someone", "has", "tried", "to", "submit", "a", "JSON", "string", "for", "an", "object", "which", "is", "no", "longer", "supported"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/interaction.go#L66-L84", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "examples/types/repository.go", "func_name": "ByUsername", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ByUsername finds a user by their username.", "docstring_tokens": ["ByUsername", "finds", "a", "user", "by", "their", "username", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/examples/types/repository.go#L10-L15", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "examples/types/repository.go", "func_name": "ByID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ByID finds a user by their ID", "docstring_tokens": ["ByID", "finds", "a", "user", "by", "their", "ID"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/examples/types/repository.go#L18-L25", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "examples/mux/provider/user_service.go", "func_name": "UserLogin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UserLogin logs a user in, returning an auth token and the user object", "docstring_tokens": ["UserLogin", "logs", "a", "user", "in", "returning", "an", "auth", "token", "and", "the", "user", "object"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/examples/mux/provider/user_service.go#L45-L76", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/client.go", "func_name": "newClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newClient creates a new Pact client manager with the provided services", "docstring_tokens": ["newClient", "creates", "a", "new", "Pact", "client", "manager", "with", "the", "provided", "services"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/client.go#L71-L84", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient creates a new Pact client manager with defaults", "docstring_tokens": ["NewClient", "creates", "a", "new", "Pact", "client", "manager", "with", "defaults"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/client.go#L87-L89", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/client.go", "func_name": "ListServers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListServers lists all known Mock Servers", "docstring_tokens": ["ListServers", "lists", "all", "known", "Mock", "Servers"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/client.go#L108-L121", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/client.go", "func_name": "UpdateMessagePact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateMessagePact adds a pact message to a contract file", "docstring_tokens": ["UpdateMessagePact", "adds", "a", "pact", "message", "to", "a", "contract", "file"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/client.go#L228-L268", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/client.go", "func_name": "PublishPacts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublishPacts publishes a set of pacts to a pact broker", "docstring_tokens": ["PublishPacts", "publishes", "a", "set", "of", "pacts", "to", "a", "pact", "broker"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/client.go#L271-L282", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/client.go", "func_name": "getPort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get a port given a URL", "docstring_tokens": ["Get", "a", "port", "given", "a", "URL"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/client.go#L349-L366", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/client.go", "func_name": "getAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get the address given a URL", "docstring_tokens": ["Get", "the", "address", "given", "a", "URL"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/client.go#L369-L377", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/client.go", "func_name": "sanitiseRubyResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sanitiseRubyResponse removes Ruby-isms from the response content\n// making the output much more human readable", "docstring_tokens": ["sanitiseRubyResponse", "removes", "Ruby", "-", "isms", "from", "the", "response", "content", "making", "the", "output", "much", "more", "human", "readable"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/client.go#L401-L414", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/publish.go", "func_name": "Publish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Publish sends the Pacts to a broker, optionally tagging them", "docstring_tokens": ["Publish", "sends", "the", "Pacts", "to", "a", "broker", "optionally", "tagging", "them"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/publish.go#L30-L45", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "utils/port.go", "func_name": "FindPortInRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindPortInRange Iterate through CSV or Range of ports to find open port\n// Valid inputs are \"8081\", \"8081,8085\", \"8081-8085\". Do not combine\n// list and range", "docstring_tokens": ["FindPortInRange", "Iterate", "through", "CSV", "or", "Range", "of", "ports", "to", "find", "open", "port", "Valid", "inputs", "are", "8081", "8081", "8085", "8081", "-", "8085", ".", "Do", "not", "combine", "list", "and", "range"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/utils/port.go#L31-L72", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/matcher.go", "func_name": "EachLike", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EachLike specifies that a given element in a JSON body can be repeated\n// \"minRequired\" times. Number needs to be 1 or greater", "docstring_tokens": ["EachLike", "specifies", "that", "a", "given", "element", "in", "a", "JSON", "body", "can", "be", "repeated", "minRequired", "times", ".", "Number", "needs", "to", "be", "1", "or", "greater"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/matcher.go#L100-L105", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/matcher.go", "func_name": "Term", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Term specifies that the matching should generate a value\n// and also match using a regular expression.", "docstring_tokens": ["Term", "specifies", "that", "the", "matching", "should", "generate", "a", "value", "and", "also", "match", "using", "a", "regular", "expression", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/matcher.go#L117-L128", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/matcher.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON is a custom JSON parser for MapMatcher\n// It treats the matchers as strings", "docstring_tokens": ["UnmarshalJSON", "is", "a", "custom", "JSON", "parser", "for", "MapMatcher", "It", "treats", "the", "matchers", "as", "strings"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/matcher.go#L245-L258", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/matcher.go", "func_name": "objectToString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Takes an object and converts it to a JSON representation", "docstring_tokens": ["Takes", "an", "object", "and", "converts", "it", "to", "a", "JSON", "representation"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/matcher.go#L261-L273", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/matcher.go", "func_name": "match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// match recursively traverses the provided type and outputs a\n// matcher string for it that is compatible with the Pact dsl.", "docstring_tokens": ["match", "recursively", "traverses", "the", "provided", "type", "and", "outputs", "a", "matcher", "string", "for", "it", "that", "is", "compatible", "with", "the", "Pact", "dsl", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/matcher.go#L291-L324", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/pact.go", "func_name": "AddMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddMessage creates a new asynchronous consumer expectation", "docstring_tokens": ["AddMessage", "creates", "a", "new", "asynchronous", "consumer", "expectation"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/pact.go#L104-L110", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/pact.go", "func_name": "AddInteraction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddInteraction creates a new Pact interaction, initialising all\n// required things. Will automatically start a Mock Service if none running.", "docstring_tokens": ["AddInteraction", "creates", "a", "new", "Pact", "interaction", "initialising", "all", "required", "things", ".", "Will", "automatically", "start", "a", "Mock", "Service", "if", "none", "running", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/pact.go#L114-L120", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/pact.go", "func_name": "Teardown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Teardown stops the Pact Mock Server. This usually is called on completion\n// of each test suite.", "docstring_tokens": ["Teardown", "stops", "the", "Pact", "Mock", "Server", ".", "This", "usually", "is", "called", "on", "completion", "of", "each", "test", "suite", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/pact.go#L222-L233", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/pact.go", "func_name": "Verify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Verify runs the current test case against a Mock Service.\n// Will cleanup interactions between tests within a suite.", "docstring_tokens": ["Verify", "runs", "the", "current", "test", "case", "against", "a", "Mock", "Service", ".", "Will", "cleanup", "interactions", "between", "tests", "within", "a", "suite", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/pact.go#L237-L275", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/pact.go", "func_name": "stateHandlerMiddleware", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stateHandlerMiddleware responds to the various states that are\n// given during provider verification\n//\n// statehandler accepts a state object from the verifier and executes\n// any state handlers associated with the provider.\n// It will not execute further middleware if it is the designted \"state\" request", "docstring_tokens": ["stateHandlerMiddleware", "responds", "to", "the", "various", "states", "that", "are", "given", "during", "provider", "verification", "statehandler", "accepts", "a", "state", "object", "from", "the", "verifier", "and", "executes", "any", "state", "handlers", "associated", "with", "the", "provider", ".", "It", "will", "not", "execute", "further", "middleware", "if", "it", "is", "the", "designted", "state", "request"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/pact.go#L456-L490", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/pact.go", "func_name": "VerifyMessageProviderRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifyMessageProviderRaw runs provider message verification.\n//\n// A Message Producer is analagous to Consumer in the HTTP Interaction model.\n// It is the initiator of an interaction, and expects something on the other end\n// of the interaction to respond - just in this case, not immediately.", "docstring_tokens": ["VerifyMessageProviderRaw", "runs", "provider", "message", "verification", ".", "A", "Message", "Producer", "is", "analagous", "to", "Consumer", "in", "the", "HTTP", "Interaction", "model", ".", "It", "is", "the", "initiator", "of", "an", "interaction", "and", "expects", "something", "on", "the", "other", "end", "of", "the", "interaction", "to", "respond", "-", "just", "in", "this", "case", "not", "immediately", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/pact.go#L591-L641", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/pact.go", "func_name": "VerifyMessageConsumerRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifyMessageConsumerRaw creates a new Pact _message_ interaction to build a testable\n// interaction.\n//\n//\n// A Message Consumer is analagous to a Provider in the HTTP Interaction model.\n// It is the receiver of an interaction, and needs to be able to handle whatever\n// request was provided.", "docstring_tokens": ["VerifyMessageConsumerRaw", "creates", "a", "new", "Pact", "_message_", "interaction", "to", "build", "a", "testable", "interaction", ".", "A", "Message", "Consumer", "is", "analagous", "to", "a", "Provider", "in", "the", "HTTP", "Interaction", "model", ".", "It", "is", "the", "receiver", "of", "an", "interaction", "and", "needs", "to", "be", "able", "to", "handle", "whatever", "request", "was", "provided", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/pact.go#L650-L694", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/mock_client.go", "func_name": "VerifyProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VerifyProvider runs the verification process against a running Provider.", "docstring_tokens": ["VerifyProvider", "runs", "the", "verification", "process", "against", "a", "running", "Provider", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/mock_client.go#L60-L62", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "client/mock_service.go", "func_name": "NewService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewService creates a new MockService with default settings.", "docstring_tokens": ["NewService", "creates", "a", "new", "MockService", "with", "default", "settings", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/client/mock_service.go#L9-L17", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "client/service_manager.go", "func_name": "Setup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Setup the Management services.", "docstring_tokens": ["Setup", "the", "Management", "services", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/client/service_manager.go#L23-L33", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "client/service_manager.go", "func_name": "addServiceMonitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addServiceMonitor watches a channel to add services into operation.", "docstring_tokens": ["addServiceMonitor", "watches", "a", "channel", "to", "add", "services", "into", "operation", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/client/service_manager.go#L36-L46", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "client/service_manager.go", "func_name": "removeServiceMonitor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// removeServiceMonitor watches a channel to remove services from operation.", "docstring_tokens": ["removeServiceMonitor", "watches", "a", "channel", "to", "remove", "services", "from", "operation", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/client/service_manager.go#L49-L61", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "client/service_manager.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List all Service PIDs.", "docstring_tokens": ["List", "all", "Service", "PIDs", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/client/service_manager.go#L98-L101", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "client/service_manager.go", "func_name": "Command", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Command creates an os command to be run", "docstring_tokens": ["Command", "creates", "an", "os", "command", "to", "be", "run"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/client/service_manager.go#L104-L111", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/mock_service.go", "func_name": "call", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// call sends a message to the Pact service", "docstring_tokens": ["call", "sends", "a", "message", "to", "the", "Pact", "service"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/mock_service.go#L36-L68", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/mock_service.go", "func_name": "DeleteInteractions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteInteractions removes any previous Mock Service Interactions.", "docstring_tokens": ["DeleteInteractions", "removes", "any", "previous", "Mock", "Service", "Interactions", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/mock_service.go#L71-L75", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/mock_service.go", "func_name": "AddInteraction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddInteraction adds a new Pact Mock Service interaction.", "docstring_tokens": ["AddInteraction", "adds", "a", "new", "Pact", "Mock", "Service", "interaction", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/mock_service.go#L78-L82", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/mock_service.go", "func_name": "WritePact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WritePact writes the pact file to disk.", "docstring_tokens": ["WritePact", "writes", "the", "pact", "file", "to", "disk", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/mock_service.go#L92-L114", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/message.go", "func_name": "ExpectsToReceive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExpectsToReceive specifies the content it is expecting to be\n// given from the Provider. The function must be able to handle this\n// message for the interaction to succeed.", "docstring_tokens": ["ExpectsToReceive", "specifies", "the", "content", "it", "is", "expecting", "to", "be", "given", "from", "the", "Provider", ".", "The", "function", "must", "be", "able", "to", "handle", "this", "message", "for", "the", "interaction", "to", "succeed", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/message.go#L69-L72", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/message.go", "func_name": "WithMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithMetadata specifies message-implementation specific metadata\n// to go with the content", "docstring_tokens": ["WithMetadata", "specifies", "message", "-", "implementation", "specific", "metadata", "to", "go", "with", "the", "content"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/message.go#L76-L79", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "dsl/message.go", "func_name": "AsType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AsType specifies that the content sent through to the\n// consumer handler should be sent as the given type", "docstring_tokens": ["AsType", "specifies", "that", "the", "content", "sent", "through", "to", "the", "consumer", "handler", "should", "be", "sent", "as", "the", "given", "type"], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/dsl/message.go#L92-L97", "partition": "test"} +{"repo": "pact-foundation/pact-go", "path": "examples/gin/provider/user_service.go", "func_name": "UserLogin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UserLogin is the login route.", "docstring_tokens": ["UserLogin", "is", "the", "login", "route", "."], "sha": "467dea56d27e154363e1975f6e9f4dbf66148e79", "url": "https://github.com/pact-foundation/pact-go/blob/467dea56d27e154363e1975f6e9f4dbf66148e79/examples/gin/provider/user_service.go#L50-L65", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "s3gof3r.go", "func_name": "Region", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Region returns the service region infering it from S3 domain.", "docstring_tokens": ["Region", "returns", "the", "service", "region", "infering", "it", "from", "S3", "domain", "."], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/s3gof3r.go#L31-L51", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "s3gof3r.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New Returns a new S3\n// domain defaults to DefaultDomain if empty", "docstring_tokens": ["New", "Returns", "a", "new", "S3", "domain", "defaults", "to", "DefaultDomain", "if", "empty"], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/s3gof3r.go#L90-L95", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "s3gof3r.go", "func_name": "Bucket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Bucket returns a bucket on s3\n// Bucket Config is initialized to DefaultConfig", "docstring_tokens": ["Bucket", "returns", "a", "bucket", "on", "s3", "Bucket", "Config", "is", "initialized", "to", "DefaultConfig"], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/s3gof3r.go#L99-L105", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "s3gof3r.go", "func_name": "PutWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutWriter provides a writer to upload data as multipart upload requests.\n//\n// Each header in h is added to the HTTP request header. This is useful for specifying\n// options such as server-side encryption in metadata as well as custom user metadata.\n// DefaultConfig is used if c is nil.\n// Callers should call Close on w to ensure that all resources are released.", "docstring_tokens": ["PutWriter", "provides", "a", "writer", "to", "upload", "data", "as", "multipart", "upload", "requests", ".", "Each", "header", "in", "h", "is", "added", "to", "the", "HTTP", "request", "header", ".", "This", "is", "useful", "for", "specifying", "options", "such", "as", "server", "-", "side", "encryption", "in", "metadata", "as", "well", "as", "custom", "user", "metadata", ".", "DefaultConfig", "is", "used", "if", "c", "is", "nil", ".", "Callers", "should", "call", "Close", "on", "w", "to", "ensure", "that", "all", "resources", "are", "released", "."], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/s3gof3r.go#L136-L146", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "s3gof3r.go", "func_name": "url", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// url returns a parsed url to the given path. c must not be nil", "docstring_tokens": ["url", "returns", "a", "parsed", "url", "to", "the", "given", "path", ".", "c", "must", "not", "be", "nil"], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/s3gof3r.go#L149-L181", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "s3gof3r.go", "func_name": "SetLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLogger wraps the standard library log package.\n//\n// It allows the internal logging of s3gof3r to be set to a desired output and format.\n// Setting debug to true enables debug logging output. s3gof3r does not log output by default.", "docstring_tokens": ["SetLogger", "wraps", "the", "standard", "library", "log", "package", ".", "It", "allows", "the", "internal", "logging", "of", "s3gof3r", "to", "be", "set", "to", "a", "desired", "output", "and", "format", ".", "Setting", "debug", "to", "true", "enables", "debug", "logging", "output", ".", "s3gof3r", "does", "not", "log", "output", "by", "default", "."], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/s3gof3r.go#L233-L238", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "auth.go", "func_name": "InstanceKeys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InstanceKeys Requests the AWS keys from the instance-based metadata on EC2\n// Assumes only one IAM role.", "docstring_tokens": ["InstanceKeys", "Requests", "the", "AWS", "keys", "from", "the", "instance", "-", "based", "metadata", "on", "EC2", "Assumes", "only", "one", "IAM", "role", "."], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/auth.go#L32-L79", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "auth.go", "func_name": "EnvKeys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnvKeys Reads the AWS keys from the environment", "docstring_tokens": ["EnvKeys", "Reads", "the", "AWS", "keys", "from", "the", "environment"], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/auth.go#L82-L92", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "sign.go", "func_name": "Sign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sign signs the http.Request", "docstring_tokens": ["Sign", "signs", "the", "http", ".", "Request"], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/sign.go#L45-L60", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "gof3r/main.go", "func_name": "getAWSKeys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getAWSKeys gets the AWS Keys from environment variables or the instance-based metadata on EC2\n// Environment variables are attempted first, followed by the instance-based credentials.", "docstring_tokens": ["getAWSKeys", "gets", "the", "AWS", "Keys", "from", "environment", "variables", "or", "the", "instance", "-", "based", "metadata", "on", "EC2", "Environment", "variables", "are", "attempted", "first", "followed", "by", "the", "instance", "-", "based", "credentials", "."], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/gof3r/main.go#L89-L101", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "gof3r/options.go", "func_name": "homeDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// find unix home directory", "docstring_tokens": ["find", "unix", "home", "directory"], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/gof3r/options.go#L105-L114", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "gof3r/options.go", "func_name": "ACL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// add canned acl to http.Header", "docstring_tokens": ["add", "canned", "acl", "to", "http", ".", "Header"], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/gof3r/options.go#L117-L122", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "putter.go", "func_name": "putPart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// uploads a part, checking the etag against the calculated value", "docstring_tokens": ["uploads", "a", "part", "checking", "the", "etag", "against", "the", "calculated", "value"], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/putter.go#L194-L226", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "putter.go", "func_name": "abort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Try to abort multipart upload. Do not error on failure.", "docstring_tokens": ["Try", "to", "abort", "multipart", "upload", ".", "Do", "not", "error", "on", "failure", "."], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/putter.go#L302-L316", "partition": "test"} +{"repo": "rlmcpherson/s3gof3r", "path": "putter.go", "func_name": "growPartSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// returns true unless partSize is large enough\n// to achieve maxObjSize with remaining parts", "docstring_tokens": ["returns", "true", "unless", "partSize", "is", "large", "enough", "to", "achieve", "maxObjSize", "with", "remaining", "parts"], "sha": "864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14", "url": "https://github.com/rlmcpherson/s3gof3r/blob/864ae0bf7cf2e20c0002b7ea17f4d84fec1abc14/putter.go#L399-L401", "partition": "test"} +{"repo": "kelseyhightower/envconfig", "path": "envconfig.go", "func_name": "CheckDisallowed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckDisallowed checks that no environment variables with the prefix are set\n// that we don't know how or want to parse. This is likely only meaningful with\n// a non-empty prefix.", "docstring_tokens": ["CheckDisallowed", "checks", "that", "no", "environment", "variables", "with", "the", "prefix", "are", "set", "that", "we", "don", "t", "know", "how", "or", "want", "to", "parse", ".", "This", "is", "likely", "only", "meaningful", "with", "a", "non", "-", "empty", "prefix", "."], "sha": "dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1", "url": "https://github.com/kelseyhightower/envconfig/blob/dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1/envconfig.go#L150-L176", "partition": "test"} +{"repo": "kelseyhightower/envconfig", "path": "envconfig.go", "func_name": "Process", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Process populates the specified struct based on environment variables", "docstring_tokens": ["Process", "populates", "the", "specified", "struct", "based", "on", "environment", "variables"], "sha": "dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1", "url": "https://github.com/kelseyhightower/envconfig/blob/dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1/envconfig.go#L179-L219", "partition": "test"} +{"repo": "kelseyhightower/envconfig", "path": "envconfig.go", "func_name": "MustProcess", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustProcess is the same as Process but panics if an error occurs", "docstring_tokens": ["MustProcess", "is", "the", "same", "as", "Process", "but", "panics", "if", "an", "error", "occurs"], "sha": "dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1", "url": "https://github.com/kelseyhightower/envconfig/blob/dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1/envconfig.go#L222-L226", "partition": "test"} +{"repo": "kelseyhightower/envconfig", "path": "usage.go", "func_name": "toTypeDescription", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// toTypeDescription converts Go types into a human readable description", "docstring_tokens": ["toTypeDescription", "converts", "Go", "types", "into", "a", "human", "readable", "description"], "sha": "dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1", "url": "https://github.com/kelseyhightower/envconfig/blob/dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1/usage.go#L58-L107", "partition": "test"} +{"repo": "kelseyhightower/envconfig", "path": "usage.go", "func_name": "Usage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Usage writes usage information to stderr using the default header and table format", "docstring_tokens": ["Usage", "writes", "usage", "information", "to", "stderr", "using", "the", "default", "header", "and", "table", "format"], "sha": "dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1", "url": "https://github.com/kelseyhightower/envconfig/blob/dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1/usage.go#L110-L118", "partition": "test"} +{"repo": "kelseyhightower/envconfig", "path": "usage.go", "func_name": "Usagef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Usagef writes usage information to the specified io.Writer using the specifed template specification", "docstring_tokens": ["Usagef", "writes", "usage", "information", "to", "the", "specified", "io", ".", "Writer", "using", "the", "specifed", "template", "specification"], "sha": "dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1", "url": "https://github.com/kelseyhightower/envconfig/blob/dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1/usage.go#L121-L150", "partition": "test"} +{"repo": "kelseyhightower/envconfig", "path": "usage.go", "func_name": "Usaget", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Usaget writes usage information to the specified io.Writer using the specified template", "docstring_tokens": ["Usaget", "writes", "usage", "information", "to", "the", "specified", "io", ".", "Writer", "using", "the", "specified", "template"], "sha": "dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1", "url": "https://github.com/kelseyhightower/envconfig/blob/dd1402a4d99de9ac2f396cd6fcb957bc2c695ec1/usage.go#L153-L161", "partition": "test"} +{"repo": "guregu/null", "path": "time.go", "func_name": "Scan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Scan implements the Scanner interface.", "docstring_tokens": ["Scan", "implements", "the", "Scanner", "interface", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/time.go#L19-L32", "partition": "test"} +{"repo": "guregu/null", "path": "time.go", "func_name": "Value", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Value implements the driver Valuer interface.", "docstring_tokens": ["Value", "implements", "the", "driver", "Valuer", "interface", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/time.go#L35-L40", "partition": "test"} +{"repo": "guregu/null", "path": "time.go", "func_name": "NewTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTime creates a new Time.", "docstring_tokens": ["NewTime", "creates", "a", "new", "Time", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/time.go#L43-L48", "partition": "test"} +{"repo": "guregu/null", "path": "time.go", "func_name": "TimeFromPtr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TimeFromPtr creates a new Time that will be null if t is nil.", "docstring_tokens": ["TimeFromPtr", "creates", "a", "new", "Time", "that", "will", "be", "null", "if", "t", "is", "nil", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/time.go#L56-L61", "partition": "test"} +{"repo": "guregu/null", "path": "time.go", "func_name": "ValueOrZero", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValueOrZero returns the inner value if valid, otherwise zero.", "docstring_tokens": ["ValueOrZero", "returns", "the", "inner", "value", "if", "valid", "otherwise", "zero", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/time.go#L64-L69", "partition": "test"} +{"repo": "guregu/null", "path": "time.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON implements json.Marshaler.\n// It will encode null if this time is null.", "docstring_tokens": ["MarshalJSON", "implements", "json", ".", "Marshaler", ".", "It", "will", "encode", "null", "if", "this", "time", "is", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/time.go#L73-L78", "partition": "test"} +{"repo": "guregu/null", "path": "time.go", "func_name": "SetValid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetValid changes this Time's value and sets it to be non-null.", "docstring_tokens": ["SetValid", "changes", "this", "Time", "s", "value", "and", "sets", "it", "to", "be", "non", "-", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/time.go#L132-L135", "partition": "test"} +{"repo": "guregu/null", "path": "time.go", "func_name": "Ptr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ptr returns a pointer to this Time's value, or a nil pointer if this Time is null.", "docstring_tokens": ["Ptr", "returns", "a", "pointer", "to", "this", "Time", "s", "value", "or", "a", "nil", "pointer", "if", "this", "Time", "is", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/time.go#L138-L143", "partition": "test"} +{"repo": "guregu/null", "path": "bool.go", "func_name": "NewBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBool creates a new Bool", "docstring_tokens": ["NewBool", "creates", "a", "new", "Bool"], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/bool.go#L19-L26", "partition": "test"} +{"repo": "guregu/null", "path": "bool.go", "func_name": "BoolFromPtr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BoolFromPtr creates a new Bool that will be null if f is nil.", "docstring_tokens": ["BoolFromPtr", "creates", "a", "new", "Bool", "that", "will", "be", "null", "if", "f", "is", "nil", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/bool.go#L34-L39", "partition": "test"} +{"repo": "guregu/null", "path": "bool.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON implements json.Unmarshaler.\n// It supports number and null input.\n// 0 will not be considered a null Bool.\n// It also supports unmarshalling a sql.NullBool.", "docstring_tokens": ["UnmarshalJSON", "implements", "json", ".", "Unmarshaler", ".", "It", "supports", "number", "and", "null", "input", ".", "0", "will", "not", "be", "considered", "a", "null", "Bool", ".", "It", "also", "supports", "unmarshalling", "a", "sql", ".", "NullBool", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/bool.go#L50-L69", "partition": "test"} +{"repo": "guregu/null", "path": "bool.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText implements encoding.TextUnmarshaler.\n// It will unmarshal to a null Bool if the input is a blank or not an integer.\n// It will return an error if the input is not an integer, blank, or \"null\".", "docstring_tokens": ["UnmarshalText", "implements", "encoding", ".", "TextUnmarshaler", ".", "It", "will", "unmarshal", "to", "a", "null", "Bool", "if", "the", "input", "is", "a", "blank", "or", "not", "an", "integer", ".", "It", "will", "return", "an", "error", "if", "the", "input", "is", "not", "an", "integer", "blank", "or", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/bool.go#L74-L90", "partition": "test"} +{"repo": "guregu/null", "path": "bool.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON implements json.Marshaler.\n// It will encode null if this Bool is null.", "docstring_tokens": ["MarshalJSON", "implements", "json", ".", "Marshaler", ".", "It", "will", "encode", "null", "if", "this", "Bool", "is", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/bool.go#L94-L102", "partition": "test"} +{"repo": "guregu/null", "path": "bool.go", "func_name": "SetValid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetValid changes this Bool's value and also sets it to be non-null.", "docstring_tokens": ["SetValid", "changes", "this", "Bool", "s", "value", "and", "also", "sets", "it", "to", "be", "non", "-", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/bool.go#L117-L120", "partition": "test"} +{"repo": "guregu/null", "path": "zero/string.go", "func_name": "NewString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewString creates a new String", "docstring_tokens": ["NewString", "creates", "a", "new", "String"], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/zero/string.go#L22-L29", "partition": "test"} +{"repo": "guregu/null", "path": "zero/string.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON implements json.Unmarshaler.\n// It supports string and null input. Blank string input produces a null String.\n// It also supports unmarshalling a sql.NullString.", "docstring_tokens": ["UnmarshalJSON", "implements", "json", ".", "Unmarshaler", ".", "It", "supports", "string", "and", "null", "input", ".", "Blank", "string", "input", "produces", "a", "null", "String", ".", "It", "also", "supports", "unmarshalling", "a", "sql", ".", "NullString", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/zero/string.go#L48-L67", "partition": "test"} +{"repo": "guregu/null", "path": "zero/string.go", "func_name": "MarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalText implements encoding.TextMarshaler.\n// It will encode a blank string when this String is null.", "docstring_tokens": ["MarshalText", "implements", "encoding", ".", "TextMarshaler", ".", "It", "will", "encode", "a", "blank", "string", "when", "this", "String", "is", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/zero/string.go#L71-L76", "partition": "test"} +{"repo": "guregu/null", "path": "zero/string.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText implements encoding.TextUnmarshaler.\n// It will unmarshal to a null String if the input is a blank string.", "docstring_tokens": ["UnmarshalText", "implements", "encoding", ".", "TextUnmarshaler", ".", "It", "will", "unmarshal", "to", "a", "null", "String", "if", "the", "input", "is", "a", "blank", "string", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/zero/string.go#L80-L84", "partition": "test"} +{"repo": "guregu/null", "path": "zero/string.go", "func_name": "SetValid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetValid changes this String's value and also sets it to be non-null.", "docstring_tokens": ["SetValid", "changes", "this", "String", "s", "value", "and", "also", "sets", "it", "to", "be", "non", "-", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/zero/string.go#L87-L90", "partition": "test"} +{"repo": "guregu/null", "path": "string.go", "func_name": "StringFromPtr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StringFromPtr creates a new String that be null if s is nil.", "docstring_tokens": ["StringFromPtr", "creates", "a", "new", "String", "that", "be", "null", "if", "s", "is", "nil", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/string.go#L26-L31", "partition": "test"} +{"repo": "guregu/null", "path": "string.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON implements json.Marshaler.\n// It will encode null if this String is null.", "docstring_tokens": ["MarshalJSON", "implements", "json", ".", "Marshaler", ".", "It", "will", "encode", "null", "if", "this", "String", "is", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/string.go#L77-L82", "partition": "test"} +{"repo": "guregu/null", "path": "zero/int.go", "func_name": "NewInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInt creates a new Int", "docstring_tokens": ["NewInt", "creates", "a", "new", "Int"], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/zero/int.go#L19-L26", "partition": "test"} +{"repo": "guregu/null", "path": "zero/int.go", "func_name": "IntFromPtr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntFromPtr creates a new Int that be null if i is nil.", "docstring_tokens": ["IntFromPtr", "creates", "a", "new", "Int", "that", "be", "null", "if", "i", "is", "nil", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/zero/int.go#L34-L40", "partition": "test"} +{"repo": "guregu/null", "path": "zero/int.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON implements json.Unmarshaler.\n// It supports number and null input.\n// 0 will be considered a null Int.\n// It also supports unmarshalling a sql.NullInt64.", "docstring_tokens": ["UnmarshalJSON", "implements", "json", ".", "Unmarshaler", ".", "It", "supports", "number", "and", "null", "input", ".", "0", "will", "be", "considered", "a", "null", "Int", ".", "It", "also", "supports", "unmarshalling", "a", "sql", ".", "NullInt64", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/zero/int.go#L46-L73", "partition": "test"} +{"repo": "guregu/null", "path": "zero/int.go", "func_name": "MarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalText implements encoding.TextMarshaler.\n// It will encode a zero if this Int is null.", "docstring_tokens": ["MarshalText", "implements", "encoding", ".", "TextMarshaler", ".", "It", "will", "encode", "a", "zero", "if", "this", "Int", "is", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/zero/int.go#L102-L108", "partition": "test"} +{"repo": "guregu/null", "path": "zero/int.go", "func_name": "SetValid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetValid changes this Int's value and also sets it to be non-null.", "docstring_tokens": ["SetValid", "changes", "this", "Int", "s", "value", "and", "also", "sets", "it", "to", "be", "non", "-", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/zero/int.go#L111-L114", "partition": "test"} +{"repo": "guregu/null", "path": "int.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText implements encoding.TextUnmarshaler.\n// It will unmarshal to a null Int if the input is a blank or not an integer.\n// It will return an error if the input is not an integer, blank, or \"null\".", "docstring_tokens": ["UnmarshalText", "implements", "encoding", ".", "TextUnmarshaler", ".", "It", "will", "unmarshal", "to", "a", "null", "Int", "if", "the", "input", "is", "a", "blank", "or", "not", "an", "integer", ".", "It", "will", "return", "an", "error", "if", "the", "input", "is", "not", "an", "integer", "blank", "or", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/int.go#L85-L95", "partition": "test"} +{"repo": "guregu/null", "path": "zero/bool.go", "func_name": "MarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalText implements encoding.TextMarshaler.\n// It will encode a zero if this Bool is null.", "docstring_tokens": ["MarshalText", "implements", "encoding", ".", "TextMarshaler", ".", "It", "will", "encode", "a", "zero", "if", "this", "Bool", "is", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/zero/bool.go#L97-L102", "partition": "test"} +{"repo": "guregu/null", "path": "zero/float.go", "func_name": "SetValid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetValid changes this Float's value and also sets it to be non-null.", "docstring_tokens": ["SetValid", "changes", "this", "Float", "s", "value", "and", "also", "sets", "it", "to", "be", "non", "-", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/zero/float.go#L116-L119", "partition": "test"} +{"repo": "guregu/null", "path": "zero/time.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON implements json.Marshaler.\n// It will encode the zero value of time.Time\n// if this time is invalid.", "docstring_tokens": ["MarshalJSON", "implements", "json", ".", "Marshaler", ".", "It", "will", "encode", "the", "zero", "value", "of", "time", ".", "Time", "if", "this", "time", "is", "invalid", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/zero/time.go#L69-L74", "partition": "test"} +{"repo": "guregu/null", "path": "float.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON implements json.Unmarshaler.\n// It supports number and null input.\n// 0 will not be considered a null Float.\n// It also supports unmarshalling a sql.NullFloat64.", "docstring_tokens": ["UnmarshalJSON", "implements", "json", ".", "Unmarshaler", ".", "It", "supports", "number", "and", "null", "input", ".", "0", "will", "not", "be", "considered", "a", "null", "Float", ".", "It", "also", "supports", "unmarshalling", "a", "sql", ".", "NullFloat64", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/float.go#L54-L80", "partition": "test"} +{"repo": "guregu/null", "path": "float.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText implements encoding.TextUnmarshaler.\n// It will unmarshal to a null Float if the input is a blank or not an integer.\n// It will return an error if the input is not an integer, blank, or \"null\".", "docstring_tokens": ["UnmarshalText", "implements", "encoding", ".", "TextUnmarshaler", ".", "It", "will", "unmarshal", "to", "a", "null", "Float", "if", "the", "input", "is", "a", "blank", "or", "not", "an", "integer", ".", "It", "will", "return", "an", "error", "if", "the", "input", "is", "not", "an", "integer", "blank", "or", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/float.go#L85-L95", "partition": "test"} +{"repo": "guregu/null", "path": "float.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON implements json.Marshaler.\n// It will encode null if this Float is null.", "docstring_tokens": ["MarshalJSON", "implements", "json", ".", "Marshaler", ".", "It", "will", "encode", "null", "if", "this", "Float", "is", "null", "."], "sha": "80515d440932108546bcade467bb7d6968e812e2", "url": "https://github.com/guregu/null/blob/80515d440932108546bcade467bb7d6968e812e2/float.go#L99-L110", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "gossip_channel.go", "func_name": "newGossipChannel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newGossipChannel returns a named, usable channel.\n// It delegates receiving duties to the passed Gossiper.", "docstring_tokens": ["newGossipChannel", "returns", "a", "named", "usable", "channel", ".", "It", "delegates", "receiving", "duties", "to", "the", "passed", "Gossiper", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/gossip_channel.go#L20-L28", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "gossip_channel.go", "func_name": "GossipUnicast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GossipUnicast implements Gossip, relaying msg to dst, which must be a\n// member of the channel.", "docstring_tokens": ["GossipUnicast", "implements", "Gossip", "relaying", "msg", "to", "dst", "which", "must", "be", "a", "member", "of", "the", "channel", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/gossip_channel.go#L76-L78", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "gossip_channel.go", "func_name": "GossipBroadcast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GossipBroadcast implements Gossip, relaying update to all members of the\n// channel.", "docstring_tokens": ["GossipBroadcast", "implements", "Gossip", "relaying", "update", "to", "all", "members", "of", "the", "channel", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/gossip_channel.go#L82-L84", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "gossip_channel.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send relays data into the channel topology via random neighbours.", "docstring_tokens": ["Send", "relays", "data", "into", "the", "channel", "topology", "via", "random", "neighbours", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/gossip_channel.go#L87-L89", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "gossip_channel.go", "func_name": "SendDown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendDown relays data into the channel topology via conn.", "docstring_tokens": ["SendDown", "relays", "data", "into", "the", "channel", "topology", "via", "conn", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/gossip_channel.go#L92-L94", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "gossip_channel.go", "func_name": "gobEncode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GobEncode gob-encodes each item and returns the resulting byte slice.", "docstring_tokens": ["GobEncode", "gob", "-", "encodes", "each", "item", "and", "returns", "the", "resulting", "byte", "slice", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/gossip_channel.go#L143-L152", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "token_bucket.go", "func_name": "newTokenBucket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newTokenBucket returns a bucket containing capacity tokens, refilled at a\n// rate of one token per tokenInterval.", "docstring_tokens": ["newTokenBucket", "returns", "a", "bucket", "containing", "capacity", "tokens", "refilled", "at", "a", "rate", "of", "one", "token", "per", "tokenInterval", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/token_bucket.go#L18-L27", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "token_bucket.go", "func_name": "wait", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Blocks until there is a token available.\n// Not safe for concurrent use by multiple goroutines.", "docstring_tokens": ["Blocks", "until", "there", "is", "a", "token", "available", ".", "Not", "safe", "for", "concurrent", "use", "by", "multiple", "goroutines", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/token_bucket.go#L31-L43", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "token_bucket.go", "func_name": "capacityToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Determine the historic token timestamp representing a full bucket", "docstring_tokens": ["Determine", "the", "historic", "token", "timestamp", "representing", "a", "full", "bucket"], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/token_bucket.go#L46-L48", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "_metcd/key_helpers.go", "func_name": "PrefixRangeEnd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrefixRangeEnd allows Get, Delete, and Watch requests to operate on all keys\n// with a matching prefix. Pass the prefix to this function, and use the result\n// as the RangeEnd value.", "docstring_tokens": ["PrefixRangeEnd", "allows", "Get", "Delete", "and", "Watch", "requests", "to", "operate", "on", "all", "keys", "with", "a", "matching", "prefix", ".", "Pass", "the", "prefix", "to", "this", "function", "and", "use", "the", "result", "as", "the", "RangeEnd", "value", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/_metcd/key_helpers.go#L6-L20", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "local_peer.go", "func_name": "newLocalPeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newLocalPeer returns a usable LocalPeer.", "docstring_tokens": ["newLocalPeer", "returns", "a", "usable", "LocalPeer", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/local_peer.go#L24-L33", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "local_peer.go", "func_name": "getConnections", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Connections returns all the connections that the local peer is aware of.", "docstring_tokens": ["Connections", "returns", "all", "the", "connections", "that", "the", "local", "peer", "is", "aware", "of", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/local_peer.go#L36-L44", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "local_peer.go", "func_name": "createConnection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// createConnection creates a new connection, originating from\n// localAddr, to peerAddr. If acceptNewPeer is false, peerAddr must\n// already be a member of the mesh.", "docstring_tokens": ["createConnection", "creates", "a", "new", "connection", "originating", "from", "localAddr", "to", "peerAddr", ".", "If", "acceptNewPeer", "is", "false", "peerAddr", "must", "already", "be", "a", "member", "of", "the", "mesh", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/local_peer.go#L81-L100", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "local_peer.go", "func_name": "doAddConnection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ACTOR client API\n// Synchronous.", "docstring_tokens": ["ACTOR", "client", "API", "Synchronous", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/local_peer.go#L105-L111", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "connection.go", "func_name": "startLocalConnection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// If the connection is successful, it will end up in the local peer's\n// connections map.", "docstring_tokens": ["If", "the", "connection", "is", "successful", "it", "will", "end", "up", "in", "the", "local", "peer", "s", "connections", "map", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/connection.go#L82-L100", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "connection.go", "func_name": "SendProtocolMsg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendProtocolMsg implements ProtocolSender.", "docstring_tokens": ["SendProtocolMsg", "implements", "ProtocolSender", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/connection.go#L126-L132", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "status.go", "func_name": "NewStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStatus returns a Status object, taken as a snapshot from the router.", "docstring_tokens": ["NewStatus", "returns", "a", "Status", "object", "taken", "as", "a", "snapshot", "from", "the", "router", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/status.go#L30-L49", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "status.go", "func_name": "makePeerStatusSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makePeerStatusSlice takes a snapshot of the state of peers.", "docstring_tokens": ["makePeerStatusSlice", "takes", "a", "snapshot", "of", "the", "state", "of", "peers", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/status.go#L62-L90", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "status.go", "func_name": "makeUnicastRouteStatusSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeUnicastRouteStatusSlice takes a snapshot of the unicast routes in routes.", "docstring_tokens": ["makeUnicastRouteStatusSlice", "takes", "a", "snapshot", "of", "the", "unicast", "routes", "in", "routes", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/status.go#L116-L125", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "status.go", "func_name": "makeBroadcastRouteStatusSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeBroadcastRouteStatusSlice takes a snapshot of the broadcast routes in routes.", "docstring_tokens": ["makeBroadcastRouteStatusSlice", "takes", "a", "snapshot", "of", "the", "broadcast", "routes", "in", "routes", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/status.go#L134-L147", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "status.go", "func_name": "makeLocalConnectionStatusSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeLocalConnectionStatusSlice takes a snapshot of the active local\n// connections in the ConnectionMaker.", "docstring_tokens": ["makeLocalConnectionStatusSlice", "takes", "a", "snapshot", "of", "the", "active", "local", "connections", "in", "the", "ConnectionMaker", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/status.go#L160-L217", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "status.go", "func_name": "makeTrustedSubnetsSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeTrustedSubnetsSlice makes a human-readable copy of the trustedSubnets.", "docstring_tokens": ["makeTrustedSubnetsSlice", "makes", "a", "human", "-", "readable", "copy", "of", "the", "trustedSubnets", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/status.go#L220-L226", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "_metcd/etcd_store.go", "func_name": "Range", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Range implements gRPC KVServer.\n// Range gets the keys in the range from the store.", "docstring_tokens": ["Range", "implements", "gRPC", "KVServer", ".", "Range", "gets", "the", "keys", "in", "the", "range", "from", "the", "store", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/_metcd/etcd_store.go#L94-L111", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "_metcd/etcd_store.go", "func_name": "Put", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Put implements gRPC KVServer.\n// Put puts the given key into the store.\n// A put request increases the revision of the store,\n// and generates one event in the event history.", "docstring_tokens": ["Put", "implements", "gRPC", "KVServer", ".", "Put", "puts", "the", "given", "key", "into", "the", "store", ".", "A", "put", "request", "increases", "the", "revision", "of", "the", "store", "and", "generates", "one", "event", "in", "the", "event", "history", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/_metcd/etcd_store.go#L117-L134", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "_metcd/etcd_store.go", "func_name": "DeleteRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete implements gRPC KVServer.\n// Delete deletes the given range from the store.\n// A delete request increase the revision of the store,\n// and generates one event in the event history.", "docstring_tokens": ["Delete", "implements", "gRPC", "KVServer", ".", "Delete", "deletes", "the", "given", "range", "from", "the", "store", ".", "A", "delete", "request", "increase", "the", "revision", "of", "the", "store", "and", "generates", "one", "event", "in", "the", "event", "history", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/_metcd/etcd_store.go#L140-L157", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "_metcd/etcd_store.go", "func_name": "Txn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Txn implements gRPC KVServer.\n// Txn processes all the requests in one transaction.\n// A txn request increases the revision of the store,\n// and generates events with the same revision in the event history.\n// It is not allowed to modify the same key several times within one txn.", "docstring_tokens": ["Txn", "implements", "gRPC", "KVServer", ".", "Txn", "processes", "all", "the", "requests", "in", "one", "transaction", ".", "A", "txn", "request", "increases", "the", "revision", "of", "the", "store", "and", "generates", "events", "with", "the", "same", "revision", "in", "the", "event", "history", ".", "It", "is", "not", "allowed", "to", "modify", "the", "same", "key", "several", "times", "within", "one", "txn", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/_metcd/etcd_store.go#L164-L181", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "_metcd/etcd_store.go", "func_name": "Compact", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compact implements gRPC KVServer.\n// Compact compacts the event history in s. User should compact the\n// event history periodically, or it will grow infinitely.", "docstring_tokens": ["Compact", "implements", "gRPC", "KVServer", ".", "Compact", "compacts", "the", "event", "history", "in", "s", ".", "User", "should", "compact", "the", "event", "history", "periodically", "or", "it", "will", "grow", "infinitely", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/_metcd/etcd_store.go#L186-L190", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "_metcd/etcd_store.go", "func_name": "proposeInternalRaftRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// From public API method to proposalc.", "docstring_tokens": ["From", "public", "API", "method", "to", "proposalc", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/_metcd/etcd_store.go#L333-L347", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "_metcd/etcd_store.go", "func_name": "applyCompare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// applyCompare applies the compare request.\n// It returns the revision at which the comparison happens. If the comparison\n// succeeds, the it returns true. Otherwise it returns false.", "docstring_tokens": ["applyCompare", "applies", "the", "compare", "request", ".", "It", "returns", "the", "revision", "at", "which", "the", "comparison", "happens", ".", "If", "the", "comparison", "succeeds", "the", "it", "returns", "true", ".", "Otherwise", "it", "returns", "false", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/_metcd/etcd_store.go#L712-L775", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peers.go", "func_name": "Descriptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Descriptions returns descriptions for all known peers.", "docstring_tokens": ["Descriptions", "returns", "descriptions", "for", "all", "known", "peers", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peers.go#L69-L83", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peers.go", "func_name": "OnGC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnGC adds a new function to be set of functions that will be executed on\n// all subsequent GC runs, receiving the GC'd peer.", "docstring_tokens": ["OnGC", "adds", "a", "new", "function", "to", "be", "set", "of", "functions", "that", "will", "be", "executed", "on", "all", "subsequent", "GC", "runs", "receiving", "the", "GC", "d", "peer", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peers.go#L87-L96", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peers.go", "func_name": "OnInvalidateShortIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnInvalidateShortIDs adds a new function to a set of functions that will be\n// executed on all subsequent GC runs, when the mapping from short IDs to\n// peers has changed.", "docstring_tokens": ["OnInvalidateShortIDs", "adds", "a", "new", "function", "to", "a", "set", "of", "functions", "that", "will", "be", "executed", "on", "all", "subsequent", "GC", "runs", "when", "the", "mapping", "from", "short", "IDs", "to", "peers", "has", "changed", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peers.go#L101-L107", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peers.go", "func_name": "chooseShortID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Choose an available short ID at random.", "docstring_tokens": ["Choose", "an", "available", "short", "ID", "at", "random", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peers.go#L239-L278", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peers.go", "func_name": "fetchWithDefault", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fetchWithDefault will use reference fields of the passed peer object to\n// look up and return an existing, matching peer. If no matching peer is\n// found, the passed peer is saved and returned.", "docstring_tokens": ["fetchWithDefault", "will", "use", "reference", "fields", "of", "the", "passed", "peer", "object", "to", "look", "up", "and", "return", "an", "existing", "matching", "peer", ".", "If", "no", "matching", "peer", "is", "found", "the", "passed", "peer", "is", "saved", "and", "returned", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peers.go#L283-L297", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peers.go", "func_name": "Fetch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch returns a peer matching the passed name, without incrementing its\n// refcount. If no matching peer is found, Fetch returns nil.", "docstring_tokens": ["Fetch", "returns", "a", "peer", "matching", "the", "passed", "name", "without", "incrementing", "its", "refcount", ".", "If", "no", "matching", "peer", "is", "found", "Fetch", "returns", "nil", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peers.go#L301-L305", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peers.go", "func_name": "fetchAndAddRef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Like fetch, but increments local refcount.", "docstring_tokens": ["Like", "fetch", "but", "increments", "local", "refcount", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peers.go#L308-L316", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peers.go", "func_name": "FetchByShortID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FetchByShortID returns a peer matching the passed short ID.\n// If no matching peer is found, FetchByShortID returns nil.", "docstring_tokens": ["FetchByShortID", "returns", "a", "peer", "matching", "the", "passed", "short", "ID", ".", "If", "no", "matching", "peer", "is", "found", "FetchByShortID", "returns", "nil", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peers.go#L320-L324", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peers.go", "func_name": "GarbageCollect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GarbageCollect takes a lock, triggers a GC, and invokes the accumulated GC\n// callbacks.", "docstring_tokens": ["GarbageCollect", "takes", "a", "lock", "triggers", "a", "GC", "and", "invokes", "the", "accumulated", "GC", "callbacks", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peers.go#L409-L415", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "routes.go", "func_name": "newRoutes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newRoutes returns a usable Routes based on the LocalPeer and existing Peers.", "docstring_tokens": ["newRoutes", "returns", "a", "usable", "Routes", "based", "on", "the", "LocalPeer", "and", "existing", "Peers", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/routes.go#L29-L46", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "routes.go", "func_name": "OnChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnChange appends callback to the functions that will be called whenever the\n// routes are recalculated.", "docstring_tokens": ["OnChange", "appends", "callback", "to", "the", "functions", "that", "will", "be", "called", "whenever", "the", "routes", "are", "recalculated", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/routes.go#L50-L54", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "routes.go", "func_name": "Unicast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unicast returns the next hop on the unicast route to the named peer,\n// based on established and symmetric connections.", "docstring_tokens": ["Unicast", "returns", "the", "next", "hop", "on", "the", "unicast", "route", "to", "the", "named", "peer", "based", "on", "established", "and", "symmetric", "connections", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/routes.go#L63-L68", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "routes.go", "func_name": "UnicastAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnicastAll returns the next hop on the unicast route to the named peer,\n// based on all connections.", "docstring_tokens": ["UnicastAll", "returns", "the", "next", "hop", "on", "the", "unicast", "route", "to", "the", "named", "peer", "based", "on", "all", "connections", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/routes.go#L72-L77", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "routes.go", "func_name": "Broadcast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Broadcast returns the set of peer names that should be notified\n// when we receive a broadcast message originating from the named peer\n// based on established and symmetric connections.", "docstring_tokens": ["Broadcast", "returns", "the", "set", "of", "peer", "names", "that", "should", "be", "notified", "when", "we", "receive", "a", "broadcast", "message", "originating", "from", "the", "named", "peer", "based", "on", "established", "and", "symmetric", "connections", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/routes.go#L82-L84", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "routes.go", "func_name": "BroadcastAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BroadcastAll returns the set of peer names that should be notified\n// when we receive a broadcast message originating from the named peer\n// based on all connections.", "docstring_tokens": ["BroadcastAll", "returns", "the", "set", "of", "peer", "names", "that", "should", "be", "notified", "when", "we", "receive", "a", "broadcast", "message", "originating", "from", "the", "named", "peer", "based", "on", "all", "connections", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/routes.go#L89-L91", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "meshconn/peer.go", "func_name": "NewPeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPeer returns a Peer, which can be used as a net.PacketConn.\n// Clients must Register a mesh.Gossip before calling ReadFrom or WriteTo.\n// Clients should aggressively consume from ReadFrom.", "docstring_tokens": ["NewPeer", "returns", "a", "Peer", "which", "can", "be", "used", "as", "a", "net", ".", "PacketConn", ".", "Clients", "must", "Register", "a", "mesh", ".", "Gossip", "before", "calling", "ReadFrom", "or", "WriteTo", ".", "Clients", "should", "aggressively", "consume", "from", "ReadFrom", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/meshconn/peer.go#L46-L58", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "meshconn/peer.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register injects the mesh.Gossip and enables full-duplex communication.\n// Clients should consume from ReadFrom without blocking.", "docstring_tokens": ["Register", "injects", "the", "mesh", ".", "Gossip", "and", "enables", "full", "-", "duplex", "communication", ".", "Clients", "should", "consume", "from", "ReadFrom", "without", "blocking", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/meshconn/peer.go#L73-L75", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "meshconn/peer.go", "func_name": "ReadFrom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadFrom implements net.PacketConn.\n// Clients should consume from ReadFrom without blocking.", "docstring_tokens": ["ReadFrom", "implements", "net", ".", "PacketConn", ".", "Clients", "should", "consume", "from", "ReadFrom", "without", "blocking", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/meshconn/peer.go#L79-L98", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "meshconn/peer.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo implements net.PacketConn.", "docstring_tokens": ["WriteTo", "implements", "net", ".", "PacketConn", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/meshconn/peer.go#L101-L126", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "meshconn/peer.go", "func_name": "LocalAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LocalAddr implements net.PacketConn.", "docstring_tokens": ["LocalAddr", "implements", "net", ".", "PacketConn", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/meshconn/peer.go#L135-L137", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "meshconn/peer.go", "func_name": "OnGossip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnGossip implements mesh.Gossiper.\n// The buf is a single pkt.", "docstring_tokens": ["OnGossip", "implements", "mesh", ".", "Gossiper", ".", "The", "buf", "is", "a", "single", "pkt", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/meshconn/peer.go#L164-L166", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "meshconn/peer.go", "func_name": "OnGossipBroadcast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnGossipBroadcast implements mesh.Gossiper.\n// The buf is a single pkt", "docstring_tokens": ["OnGossipBroadcast", "implements", "mesh", ".", "Gossiper", ".", "The", "buf", "is", "a", "single", "pkt"], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/meshconn/peer.go#L170-L174", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "meshconn/peer.go", "func_name": "OnGossipUnicast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnGossipUnicast implements mesh.Gossiper.\n// The buf is a single pkt.", "docstring_tokens": ["OnGossipUnicast", "implements", "mesh", ".", "Gossiper", ".", "The", "buf", "is", "a", "single", "pkt", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/meshconn/peer.go#L178-L182", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "_metcd/server.go", "func_name": "NewDefaultServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDefaultServer is like NewServer, but we take care of creating a\n// mesh.Router and meshconn.Peer for you, with sane defaults. If you need more\n// fine-grained control, create the components yourself and use NewServer.", "docstring_tokens": ["NewDefaultServer", "is", "like", "NewServer", "but", "we", "take", "care", "of", "creating", "a", "mesh", ".", "Router", "and", "meshconn", ".", "Peer", "for", "you", "with", "sane", "defaults", ".", "If", "you", "need", "more", "fine", "-", "grained", "control", "create", "the", "components", "yourself", "and", "use", "NewServer", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/_metcd/server.go#L61-L97", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peer_name_hash.go", "func_name": "PeerNameFromUserInput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PeerNameFromUserInput parses PeerName from a user-provided string.", "docstring_tokens": ["PeerNameFromUserInput", "parses", "PeerName", "from", "a", "user", "-", "provided", "string", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peer_name_hash.go#L27-L31", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peer_name_hash.go", "func_name": "bytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// bytes encodes PeerName as a byte slice.", "docstring_tokens": ["bytes", "encodes", "PeerName", "as", "a", "byte", "slice", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peer_name_hash.go#L47-L53", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "router.go", "func_name": "NewRouter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRouter returns a new router. It must be started.", "docstring_tokens": ["NewRouter", "returns", "a", "new", "router", ".", "It", "must", "be", "started", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/router.go#L59-L82", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "router.go", "func_name": "sendAllGossip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Relay all pending gossip data for each channel via random neighbours.", "docstring_tokens": ["Relay", "all", "pending", "gossip", "data", "for", "each", "channel", "via", "random", "neighbours", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/router.go#L196-L202", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "router.go", "func_name": "sendAllGossipDown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Relay all pending gossip data for each channel via conn.", "docstring_tokens": ["Relay", "all", "pending", "gossip", "data", "for", "each", "channel", "via", "conn", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/router.go#L205-L211", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "router.go", "func_name": "broadcastTopologyUpdate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BroadcastTopologyUpdate is invoked whenever there is a change to the mesh\n// topology, and broadcasts the new set of peers to the mesh.", "docstring_tokens": ["BroadcastTopologyUpdate", "is", "invoked", "whenever", "there", "is", "a", "change", "to", "the", "mesh", "topology", "and", "broadcasts", "the", "new", "set", "of", "peers", "to", "the", "mesh", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/router.go#L224-L230", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "router.go", "func_name": "OnGossipUnicast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnGossipUnicast implements Gossiper, but always returns an error, as a\n// router should only receive gossip broadcasts of TopologyGossipData.", "docstring_tokens": ["OnGossipUnicast", "implements", "Gossiper", "but", "always", "returns", "an", "error", "as", "a", "router", "should", "only", "receive", "gossip", "broadcasts", "of", "TopologyGossipData", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/router.go#L234-L236", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "router.go", "func_name": "OnGossipBroadcast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnGossipBroadcast receives broadcasts of TopologyGossipData.\n// It returns the received update unchanged.", "docstring_tokens": ["OnGossipBroadcast", "receives", "broadcasts", "of", "TopologyGossipData", ".", "It", "returns", "the", "received", "update", "unchanged", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/router.go#L240-L246", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "router.go", "func_name": "Gossip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Gossip yields the current topology as GossipData.", "docstring_tokens": ["Gossip", "yields", "the", "current", "topology", "as", "GossipData", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/router.go#L249-L251", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "router.go", "func_name": "OnGossip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnGossip receives broadcasts of TopologyGossipData.\n// It returns an \"improved\" version of the received update.\n// See peers.ApplyUpdate.", "docstring_tokens": ["OnGossip", "receives", "broadcasts", "of", "TopologyGossipData", ".", "It", "returns", "an", "improved", "version", "of", "the", "received", "update", ".", "See", "peers", ".", "ApplyUpdate", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/router.go#L256-L262", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "router.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode implements GossipData.", "docstring_tokens": ["Encode", "implements", "GossipData", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/router.go#L310-L312", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "examples/increment-only-counter/state.go", "func_name": "newState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Construct an empty state object, ready to receive updates.\n// This is suitable to use at program start.\n// Other peers will populate us with data.", "docstring_tokens": ["Construct", "an", "empty", "state", "object", "ready", "to", "receive", "updates", ".", "This", "is", "suitable", "to", "use", "at", "program", "start", ".", "Other", "peers", "will", "populate", "us", "with", "data", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/examples/increment-only-counter/state.go#L25-L30", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "examples/increment-only-counter/state.go", "func_name": "Merge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge merges the other GossipData into this one,\n// and returns our resulting, complete state.", "docstring_tokens": ["Merge", "merges", "the", "other", "GossipData", "into", "this", "one", "and", "returns", "our", "resulting", "complete", "state", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/examples/increment-only-counter/state.go#L73-L75", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "examples/increment-only-counter/state.go", "func_name": "mergeReceived", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge the set into our state, abiding increment-only semantics.\n// Return a non-nil mesh.GossipData representation of the received set.", "docstring_tokens": ["Merge", "the", "set", "into", "our", "state", "abiding", "increment", "-", "only", "semantics", ".", "Return", "a", "non", "-", "nil", "mesh", ".", "GossipData", "representation", "of", "the", "received", "set", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/examples/increment-only-counter/state.go#L79-L94", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "examples/increment-only-counter/state.go", "func_name": "mergeComplete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge the set into our state, abiding increment-only semantics.\n// Return our resulting, complete state.", "docstring_tokens": ["Merge", "the", "set", "into", "our", "state", "abiding", "increment", "-", "only", "semantics", ".", "Return", "our", "resulting", "complete", "state", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/examples/increment-only-counter/state.go#L120-L133", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "surrogate_gossiper.go", "func_name": "OnGossipBroadcast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnGossipBroadcast implements Gossiper.", "docstring_tokens": ["OnGossipBroadcast", "implements", "Gossiper", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/surrogate_gossiper.go#L33-L35", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "surrogate_gossiper.go", "func_name": "OnGossip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnGossip should return \"everything new I've just learnt\".\n// surrogateGossiper doesn't understand the content of messages, but it can eliminate simple duplicates", "docstring_tokens": ["OnGossip", "should", "return", "everything", "new", "I", "ve", "just", "learnt", ".", "surrogateGossiper", "doesn", "t", "understand", "the", "content", "of", "messages", "but", "it", "can", "eliminate", "simple", "duplicates"], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/surrogate_gossiper.go#L44-L69", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "protocol_crypto.go", "func_name": "generateKeyPair", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateKeyPair is used during encrypted protocol introduction.", "docstring_tokens": ["GenerateKeyPair", "is", "used", "during", "encrypted", "protocol", "introduction", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/protocol_crypto.go#L22-L24", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "protocol_crypto.go", "func_name": "formSessionKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormSessionKey is used during encrypted protocol introduction.", "docstring_tokens": ["FormSessionKey", "is", "used", "during", "encrypted", "protocol", "introduction", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/protocol_crypto.go#L27-L34", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "protocol_crypto.go", "func_name": "newTCPCryptoState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTCPCryptoState returns a valid TCPCryptoState.", "docstring_tokens": ["NewTCPCryptoState", "returns", "a", "valid", "TCPCryptoState", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/protocol_crypto.go#L55-L62", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "protocol_crypto.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send implements TCPSender by encoding the msg.", "docstring_tokens": ["Send", "implements", "TCPSender", "by", "encoding", "the", "msg", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/protocol_crypto.go#L85-L87", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "protocol_crypto.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send implements TCPSender by writing the size of the msg as a big-endian\n// uint32 before the msg. msgs larger than MaxTCPMsgSize are rejected.", "docstring_tokens": ["Send", "implements", "TCPSender", "by", "writing", "the", "size", "of", "the", "msg", "as", "a", "big", "-", "endian", "uint32", "before", "the", "msg", ".", "msgs", "larger", "than", "MaxTCPMsgSize", "are", "rejected", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/protocol_crypto.go#L100-L112", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "protocol_crypto.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send implements TCPSender by sealing and sending the msg as-is.", "docstring_tokens": ["Send", "implements", "TCPSender", "by", "sealing", "and", "sending", "the", "msg", "as", "-", "is", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/protocol_crypto.go#L126-L132", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "protocol_crypto.go", "func_name": "Receive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Receive implements TCPReciever by Gob decoding into a byte slice directly.", "docstring_tokens": ["Receive", "implements", "TCPReciever", "by", "Gob", "decoding", "into", "a", "byte", "slice", "directly", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/protocol_crypto.go#L150-L154", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "protocol_crypto.go", "func_name": "Receive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Receive implements TCPReceiver by making a length-limited read into a byte buffer.", "docstring_tokens": ["Receive", "implements", "TCPReceiver", "by", "making", "a", "length", "-", "limited", "read", "into", "a", "byte", "buffer", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/protocol_crypto.go#L166-L178", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "protocol_crypto.go", "func_name": "Receive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Receive implements TCPReceiver by reading from the wrapped TCPReceiver and\n// unboxing the encrypted message, returning the decoded message.", "docstring_tokens": ["Receive", "implements", "TCPReceiver", "by", "reading", "from", "the", "wrapped", "TCPReceiver", "and", "unboxing", "the", "encrypted", "message", "returning", "the", "decoded", "message", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/protocol_crypto.go#L192-L205", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "examples/increment-only-counter/peer.go", "func_name": "newPeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Construct a peer with empty state.\n// Be sure to register a channel, later,\n// so we can make outbound communication.", "docstring_tokens": ["Construct", "a", "peer", "with", "empty", "state", ".", "Be", "sure", "to", "register", "a", "channel", "later", "so", "we", "can", "make", "outbound", "communication", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/examples/increment-only-counter/peer.go#L30-L41", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "examples/increment-only-counter/peer.go", "func_name": "incr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Increment the counter by one.", "docstring_tokens": ["Increment", "the", "counter", "by", "one", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/examples/increment-only-counter/peer.go#L65-L79", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "examples/increment-only-counter/peer.go", "func_name": "Gossip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a copy of our complete state.", "docstring_tokens": ["Return", "a", "copy", "of", "our", "complete", "state", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/examples/increment-only-counter/peer.go#L86-L90", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "examples/increment-only-counter/peer.go", "func_name": "OnGossipUnicast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge the gossiped data represented by buf into our state.", "docstring_tokens": ["Merge", "the", "gossiped", "data", "represented", "by", "buf", "into", "our", "state", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/examples/increment-only-counter/peer.go#L127-L136", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "_metcd/ctrl.go", "func_name": "makeRaftPeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// makeRaftPeer converts a net.Addr into a raft.Peer.\n// All peers must perform the Addr-to-Peer mapping in the same way.\n//\n// The etcd Raft implementation tracks the committed entry for each node ID,\n// and panics if it discovers a node has lost previously committed entries.\n// In effect, it assumes commitment implies durability. But our storage is\n// explicitly non-durable. So, whenever a node restarts, we need to give it\n// a brand new ID. That is the peer UID.", "docstring_tokens": ["makeRaftPeer", "converts", "a", "net", ".", "Addr", "into", "a", "raft", ".", "Peer", ".", "All", "peers", "must", "perform", "the", "Addr", "-", "to", "-", "Peer", "mapping", "in", "the", "same", "way", ".", "The", "etcd", "Raft", "implementation", "tracks", "the", "committed", "entry", "for", "each", "node", "ID", "and", "panics", "if", "it", "discovers", "a", "node", "has", "lost", "previously", "committed", "entries", ".", "In", "effect", "it", "assumes", "commitment", "implies", "durability", ".", "But", "our", "storage", "is", "explicitly", "non", "-", "durable", ".", "So", "whenever", "a", "node", "restarts", "we", "need", "to", "give", "it", "a", "brand", "new", "ID", ".", "That", "is", "the", "peer", "UID", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/_metcd/ctrl.go#L314-L319", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peer.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the peer name and nickname.", "docstring_tokens": ["String", "returns", "the", "peer", "name", "and", "nickname", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peer.go#L64-L66", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peer.go", "func_name": "forEachConnectedPeer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Apply f to all peers reachable by peer. If establishedAndSymmetric is true,\n// only peers with established bidirectional connections will be selected. The\n// exclude maps is treated as a set of remote peers to blacklist.", "docstring_tokens": ["Apply", "f", "to", "all", "peers", "reachable", "by", "peer", ".", "If", "establishedAndSymmetric", "is", "true", "only", "peers", "with", "established", "bidirectional", "connections", "will", "be", "selected", ".", "The", "exclude", "maps", "is", "treated", "as", "a", "set", "of", "remote", "peers", "to", "blacklist", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peer.go#L123-L136", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peer.go", "func_name": "parsePeerUID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParsePeerUID parses a decimal peer UID from a string.", "docstring_tokens": ["ParsePeerUID", "parses", "a", "decimal", "peer", "UID", "from", "a", "string", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peer.go#L142-L145", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peer.go", "func_name": "Swap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Swap implements sort.Interface.", "docstring_tokens": ["Swap", "implements", "sort", ".", "Interface", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peer.go#L193-L195", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "peer.go", "func_name": "Less", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Less implements sort.Interface.", "docstring_tokens": ["Less", "implements", "sort", ".", "Interface", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/peer.go#L198-L200", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "protocol.go", "func_name": "doIntro", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DoIntro executes the protocol introduction.", "docstring_tokens": ["DoIntro", "executes", "the", "protocol", "introduction", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/protocol.go#L73-L106", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "protocol.go", "func_name": "filterV1Features", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// In the V1 protocol, the intro fields are sent unencrypted. So we\n// restrict them to an established subset of fields that are assumed\n// to be safe.", "docstring_tokens": ["In", "the", "V1", "protocol", "the", "intro", "fields", "are", "sent", "unencrypted", ".", "So", "we", "restrict", "them", "to", "an", "established", "subset", "of", "fields", "that", "are", "assumed", "to", "be", "safe", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/protocol.go#L217-L226", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "connection_maker.go", "func_name": "newConnectionMaker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newConnectionMaker returns a usable ConnectionMaker, seeded with\n// peers, making outbound connections from localAddr, and listening on\n// port. If discovery is true, ConnectionMaker will attempt to\n// initiate new connections with peers it's not directly connected to.", "docstring_tokens": ["newConnectionMaker", "returns", "a", "usable", "ConnectionMaker", "seeded", "with", "peers", "making", "outbound", "connections", "from", "localAddr", "and", "listening", "on", "port", ".", "If", "discovery", "is", "true", "ConnectionMaker", "will", "attempt", "to", "initiate", "new", "connections", "with", "peers", "it", "s", "not", "directly", "connected", "to", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/connection_maker.go#L61-L77", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "connection_maker.go", "func_name": "connectionAborted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// connectionAborted marks the target identified by address as broken, and\n// puts it in the TargetWaiting state.", "docstring_tokens": ["connectionAborted", "marks", "the", "target", "identified", "by", "address", "as", "broken", "and", "puts", "it", "in", "the", "TargetWaiting", "state", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/connection_maker.go#L165-L173", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "gossip.go", "func_name": "newGossipSender", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGossipSender constructs a usable GossipSender.", "docstring_tokens": ["NewGossipSender", "constructs", "a", "usable", "GossipSender", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/gossip.go#L78-L96", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "gossip.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send accumulates the GossipData and will send it eventually.\n// Send and Broadcast accumulate into different buckets.", "docstring_tokens": ["Send", "accumulates", "the", "GossipData", "and", "will", "send", "it", "eventually", ".", "Send", "and", "Broadcast", "accumulate", "into", "different", "buckets", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/gossip.go#L174-L185", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "gossip.go", "func_name": "Broadcast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Broadcast accumulates the GossipData under the given srcName and will send\n// it eventually. Send and Broadcast accumulate into different buckets.", "docstring_tokens": ["Broadcast", "accumulates", "the", "GossipData", "under", "the", "given", "srcName", "and", "will", "send", "it", "eventually", ".", "Send", "and", "Broadcast", "accumulate", "into", "different", "buckets", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/gossip.go#L189-L201", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "gossip.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush sends all pending data, and returns true if anything was sent since\n// the previous flush. For testing.", "docstring_tokens": ["Flush", "sends", "all", "pending", "data", "and", "returns", "true", "if", "anything", "was", "sent", "since", "the", "previous", "flush", ".", "For", "testing", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/gossip.go#L214-L218", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "gossip.go", "func_name": "Sender", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sender yields the GossipSender for the named channel.\n// It will use the factory function if no sender yet exists.", "docstring_tokens": ["Sender", "yields", "the", "GossipSender", "for", "the", "named", "channel", ".", "It", "will", "use", "the", "factory", "function", "if", "no", "sender", "yet", "exists", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/gossip.go#L242-L251", "partition": "test"} +{"repo": "weaveworks/mesh", "path": "gossip.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush flushes all managed senders. Used for testing.", "docstring_tokens": ["Flush", "flushes", "all", "managed", "senders", ".", "Used", "for", "testing", "."], "sha": "512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39", "url": "https://github.com/weaveworks/mesh/blob/512bdb7b3cb7b2c939fcd0ee434d48b6732ecc39/gossip.go#L254-L262", "partition": "test"} +{"repo": "golang/appengine", "path": "internal/main_vm.go", "func_name": "findMainPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Find the path to package main by looking at the root Caller.", "docstring_tokens": ["Find", "the", "path", "to", "package", "main", "by", "looking", "at", "the", "root", "Caller", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/internal/main_vm.go#L38-L53", "partition": "test"} +{"repo": "golang/appengine", "path": "channel/channel.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates a channel and returns a token for use by the client.\n// The clientID is an application-provided string used to identify the client.", "docstring_tokens": ["Create", "creates", "a", "channel", "and", "returns", "a", "token", "for", "use", "by", "the", "client", ".", "The", "clientID", "is", "an", "application", "-", "provided", "string", "used", "to", "identify", "the", "client", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/channel/channel.go#L40-L48", "partition": "test"} +{"repo": "golang/appengine", "path": "channel/channel.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends a message on the channel associated with clientID.", "docstring_tokens": ["Send", "sends", "a", "message", "on", "the", "channel", "associated", "with", "clientID", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/channel/channel.go#L51-L58", "partition": "test"} +{"repo": "golang/appengine", "path": "channel/channel.go", "func_name": "SendJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendJSON is a helper function that sends a JSON-encoded value\n// on the channel associated with clientID.", "docstring_tokens": ["SendJSON", "is", "a", "helper", "function", "that", "sends", "a", "JSON", "-", "encoded", "value", "on", "the", "channel", "associated", "with", "clientID", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/channel/channel.go#L62-L68", "partition": "test"} +{"repo": "golang/appengine", "path": "channel/channel.go", "func_name": "remapError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// remapError fixes any APIError referencing \"xmpp\" into one referencing \"channel\".", "docstring_tokens": ["remapError", "fixes", "any", "APIError", "referencing", "xmpp", "into", "one", "referencing", "channel", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/channel/channel.go#L71-L78", "partition": "test"} +{"repo": "golang/appengine", "path": "internal/api_common.go", "func_name": "NamespacedContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NamespacedContext wraps a Context to support namespaces.", "docstring_tokens": ["NamespacedContext", "wraps", "a", "Context", "to", "support", "namespaces", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/internal/api_common.go#L93-L95", "partition": "test"} +{"repo": "golang/appengine", "path": "memcache/memcache.go", "func_name": "protoToItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// protoToItem converts a protocol buffer item to a Go struct.", "docstring_tokens": ["protoToItem", "converts", "a", "protocol", "buffer", "item", "to", "a", "Go", "struct", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/memcache/memcache.go#L92-L99", "partition": "test"} +{"repo": "golang/appengine", "path": "memcache/memcache.go", "func_name": "singleError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// If err is an appengine.MultiError, return its first element. Otherwise, return err.", "docstring_tokens": ["If", "err", "is", "an", "appengine", ".", "MultiError", "return", "its", "first", "element", ".", "Otherwise", "return", "err", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/memcache/memcache.go#L102-L107", "partition": "test"} +{"repo": "golang/appengine", "path": "memcache/memcache.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get gets the item for the given key. ErrCacheMiss is returned for a memcache\n// cache miss. The key must be at most 250 bytes in length.", "docstring_tokens": ["Get", "gets", "the", "item", "for", "the", "given", "key", ".", "ErrCacheMiss", "is", "returned", "for", "a", "memcache", "cache", "miss", ".", "The", "key", "must", "be", "at", "most", "250", "bytes", "in", "length", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/memcache/memcache.go#L111-L120", "partition": "test"} +{"repo": "golang/appengine", "path": "memcache/memcache.go", "func_name": "GetMulti", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMulti is a batch version of Get. The returned map from keys to items may\n// have fewer elements than the input slice, due to memcache cache misses.\n// Each key must be at most 250 bytes in length.", "docstring_tokens": ["GetMulti", "is", "a", "batch", "version", "of", "Get", ".", "The", "returned", "map", "from", "keys", "to", "items", "may", "have", "fewer", "elements", "than", "the", "input", "slice", "due", "to", "memcache", "cache", "misses", ".", "Each", "key", "must", "be", "at", "most", "250", "bytes", "in", "length", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/memcache/memcache.go#L125-L147", "partition": "test"} +{"repo": "golang/appengine", "path": "memcache/memcache.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes the item for the given key.\n// ErrCacheMiss is returned if the specified item can not be found.\n// The key must be at most 250 bytes in length.", "docstring_tokens": ["Delete", "deletes", "the", "item", "for", "the", "given", "key", ".", "ErrCacheMiss", "is", "returned", "if", "the", "specified", "item", "can", "not", "be", "found", ".", "The", "key", "must", "be", "at", "most", "250", "bytes", "in", "length", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/memcache/memcache.go#L152-L154", "partition": "test"} +{"repo": "golang/appengine", "path": "memcache/memcache.go", "func_name": "DeleteMulti", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteMulti is a batch version of Delete.\n// If any keys cannot be found, an appengine.MultiError is returned.\n// Each key must be at most 250 bytes in length.", "docstring_tokens": ["DeleteMulti", "is", "a", "batch", "version", "of", "Delete", ".", "If", "any", "keys", "cannot", "be", "found", "an", "appengine", ".", "MultiError", "is", "returned", ".", "Each", "key", "must", "be", "at", "most", "250", "bytes", "in", "length", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/memcache/memcache.go#L159-L193", "partition": "test"} +{"repo": "golang/appengine", "path": "memcache/memcache.go", "func_name": "Increment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Increment atomically increments the decimal value in the given key\n// by delta and returns the new value. The value must fit in a uint64.\n// Overflow wraps around, and underflow is capped to zero. The\n// provided delta may be negative. If the key doesn't exist in\n// memcache, the provided initial value is used to atomically\n// populate it before the delta is applied.\n// The key must be at most 250 bytes in length.", "docstring_tokens": ["Increment", "atomically", "increments", "the", "decimal", "value", "in", "the", "given", "key", "by", "delta", "and", "returns", "the", "new", "value", ".", "The", "value", "must", "fit", "in", "a", "uint64", ".", "Overflow", "wraps", "around", "and", "underflow", "is", "capped", "to", "zero", ".", "The", "provided", "delta", "may", "be", "negative", ".", "If", "the", "key", "doesn", "t", "exist", "in", "memcache", "the", "provided", "initial", "value", "is", "used", "to", "atomically", "populate", "it", "before", "the", "delta", "is", "applied", ".", "The", "key", "must", "be", "at", "most", "250", "bytes", "in", "length", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/memcache/memcache.go#L202-L204", "partition": "test"} +{"repo": "golang/appengine", "path": "memcache/memcache.go", "func_name": "IncrementExisting", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IncrementExisting works like Increment but assumes that the key\n// already exists in memcache and doesn't take an initial value.\n// IncrementExisting can save work if calculating the initial value is\n// expensive.\n// An error is returned if the specified item can not be found.", "docstring_tokens": ["IncrementExisting", "works", "like", "Increment", "but", "assumes", "that", "the", "key", "already", "exists", "in", "memcache", "and", "doesn", "t", "take", "an", "initial", "value", ".", "IncrementExisting", "can", "save", "work", "if", "calculating", "the", "initial", "value", "is", "expensive", ".", "An", "error", "is", "returned", "if", "the", "specified", "item", "can", "not", "be", "found", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/memcache/memcache.go#L211-L213", "partition": "test"} +{"repo": "golang/appengine", "path": "memcache/memcache.go", "func_name": "set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// set sets the given items using the given conflict resolution policy.\n// appengine.MultiError may be returned.", "docstring_tokens": ["set", "sets", "the", "given", "items", "using", "the", "given", "conflict", "resolution", "policy", ".", "appengine", ".", "MultiError", "may", "be", "returned", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/memcache/memcache.go#L239-L314", "partition": "test"} +{"repo": "golang/appengine", "path": "memcache/memcache.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get gets the item for the given key and decodes the obtained value into v.\n// ErrCacheMiss is returned for a memcache cache miss.\n// The key must be at most 250 bytes in length.", "docstring_tokens": ["Get", "gets", "the", "item", "for", "the", "given", "key", "and", "decodes", "the", "obtained", "value", "into", "v", ".", "ErrCacheMiss", "is", "returned", "for", "a", "memcache", "cache", "miss", ".", "The", "key", "must", "be", "at", "most", "250", "bytes", "in", "length", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/memcache/memcache.go#L369-L378", "partition": "test"} +{"repo": "golang/appengine", "path": "memcache/memcache.go", "func_name": "Stats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stats retrieves the current memcache statistics.", "docstring_tokens": ["Stats", "retrieves", "the", "current", "memcache", "statistics", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/memcache/memcache.go#L475-L492", "partition": "test"} +{"repo": "golang/appengine", "path": "memcache/memcache.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush flushes all items from memcache.", "docstring_tokens": ["Flush", "flushes", "all", "items", "from", "memcache", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/memcache/memcache.go#L495-L499", "partition": "test"} +{"repo": "golang/appengine", "path": "runtime/runtime.go", "func_name": "RunInBackground", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunInBackground runs f in a background goroutine in this process.\n// f is provided a context that may outlast the context provided to RunInBackground.\n// This is only valid to invoke from a service set to basic or manual scaling.", "docstring_tokens": ["RunInBackground", "runs", "f", "in", "a", "background", "goroutine", "in", "this", "process", ".", "f", "is", "provided", "a", "context", "that", "may", "outlast", "the", "context", "provided", "to", "RunInBackground", ".", "This", "is", "only", "valid", "to", "invoke", "from", "a", "service", "set", "to", "basic", "or", "manual", "scaling", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/runtime/runtime.go#L136-L144", "partition": "test"} +{"repo": "golang/appengine", "path": "module/module.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List returns the names of modules belonging to this application.", "docstring_tokens": ["List", "returns", "the", "names", "of", "modules", "belonging", "to", "this", "application", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/module/module.go#L22-L27", "partition": "test"} +{"repo": "golang/appengine", "path": "module/module.go", "func_name": "SetNumInstances", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetNumInstances sets the number of instances of the given module.version to the\n// specified value. If either module or version are the empty string it means the\n// default.", "docstring_tokens": ["SetNumInstances", "sets", "the", "number", "of", "instances", "of", "the", "given", "module", ".", "version", "to", "the", "specified", "value", ".", "If", "either", "module", "or", "version", "are", "the", "empty", "string", "it", "means", "the", "default", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/module/module.go#L50-L61", "partition": "test"} +{"repo": "golang/appengine", "path": "module/module.go", "func_name": "Versions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Versions returns the names of the versions that belong to the specified module.\n// If module is the empty string, it means the default module.", "docstring_tokens": ["Versions", "returns", "the", "names", "of", "the", "versions", "that", "belong", "to", "the", "specified", "module", ".", "If", "module", "is", "the", "empty", "string", "it", "means", "the", "default", "module", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/module/module.go#L65-L73", "partition": "test"} +{"repo": "golang/appengine", "path": "module/module.go", "func_name": "DefaultVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultVersion returns the default version of the specified module.\n// If module is the empty string, it means the default module.", "docstring_tokens": ["DefaultVersion", "returns", "the", "default", "version", "of", "the", "specified", "module", ".", "If", "module", "is", "the", "empty", "string", "it", "means", "the", "default", "module", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/module/module.go#L77-L85", "partition": "test"} +{"repo": "golang/appengine", "path": "module/module.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts the specified version of the specified module.\n// If either module or version are the empty string, it means the default.", "docstring_tokens": ["Start", "starts", "the", "specified", "version", "of", "the", "specified", "module", ".", "If", "either", "module", "or", "version", "are", "the", "empty", "string", "it", "means", "the", "default", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/module/module.go#L89-L99", "partition": "test"} +{"repo": "golang/appengine", "path": "module/module.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop stops the specified version of the specified module.\n// If either module or version are the empty string, it means the default.", "docstring_tokens": ["Stop", "stops", "the", "specified", "version", "of", "the", "specified", "module", ".", "If", "either", "module", "or", "version", "are", "the", "empty", "string", "it", "means", "the", "default", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/module/module.go#L103-L113", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "Ancestor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ancestor returns a derivative query with an ancestor filter.\n// The ancestor should not be nil.", "docstring_tokens": ["Ancestor", "returns", "a", "derivative", "query", "with", "an", "ancestor", "filter", ".", "The", "ancestor", "should", "not", "be", "nil", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L114-L122", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "EventualConsistency", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EventualConsistency returns a derivative query that returns eventually\n// consistent results.\n// It only has an effect on ancestor queries.", "docstring_tokens": ["EventualConsistency", "returns", "a", "derivative", "query", "that", "returns", "eventually", "consistent", "results", ".", "It", "only", "has", "an", "effect", "on", "ancestor", "queries", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L127-L131", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "Project", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Project returns a derivative query that yields only the given fields. It\n// cannot be used with KeysOnly.", "docstring_tokens": ["Project", "returns", "a", "derivative", "query", "that", "yields", "only", "the", "given", "fields", ".", "It", "cannot", "be", "used", "with", "KeysOnly", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L195-L199", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "Distinct", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Distinct returns a derivative query that yields de-duplicated entities with\n// respect to the set of projected fields. It is only used for projection\n// queries. Distinct cannot be used with DistinctOn.", "docstring_tokens": ["Distinct", "returns", "a", "derivative", "query", "that", "yields", "de", "-", "duplicated", "entities", "with", "respect", "to", "the", "set", "of", "projected", "fields", ".", "It", "is", "only", "used", "for", "projection", "queries", ".", "Distinct", "cannot", "be", "used", "with", "DistinctOn", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L204-L208", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "DistinctOn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DistinctOn returns a derivative query that yields de-duplicated entities with\n// respect to the set of the specified fields. It is only used for projection\n// queries. The field list should be a subset of the projected field list.\n// DistinctOn cannot be used with Distinct.", "docstring_tokens": ["DistinctOn", "returns", "a", "derivative", "query", "that", "yields", "de", "-", "duplicated", "entities", "with", "respect", "to", "the", "set", "of", "the", "specified", "fields", ".", "It", "is", "only", "used", "for", "projection", "queries", ".", "The", "field", "list", "should", "be", "a", "subset", "of", "the", "projected", "field", "list", ".", "DistinctOn", "cannot", "be", "used", "with", "Distinct", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L214-L218", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "KeysOnly", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeysOnly returns a derivative query that yields only keys, not keys and\n// entities. It cannot be used with projection queries.", "docstring_tokens": ["KeysOnly", "returns", "a", "derivative", "query", "that", "yields", "only", "keys", "not", "keys", "and", "entities", ".", "It", "cannot", "be", "used", "with", "projection", "queries", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L222-L226", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "Limit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Limit returns a derivative query that has a limit on the number of results\n// returned. A negative value means unlimited.", "docstring_tokens": ["Limit", "returns", "a", "derivative", "query", "that", "has", "a", "limit", "on", "the", "number", "of", "results", "returned", ".", "A", "negative", "value", "means", "unlimited", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L230-L238", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "Offset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Offset returns a derivative query that has an offset of how many keys to\n// skip over before returning results. A negative value is invalid.", "docstring_tokens": ["Offset", "returns", "a", "derivative", "query", "that", "has", "an", "offset", "of", "how", "many", "keys", "to", "skip", "over", "before", "returning", "results", ".", "A", "negative", "value", "is", "invalid", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L242-L254", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "BatchSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BatchSize returns a derivative query to fetch the supplied number of results\n// at once. This value should be greater than zero, and equal to or less than\n// the Limit.", "docstring_tokens": ["BatchSize", "returns", "a", "derivative", "query", "to", "fetch", "the", "supplied", "number", "of", "results", "at", "once", ".", "This", "value", "should", "be", "greater", "than", "zero", "and", "equal", "to", "or", "less", "than", "the", "Limit", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L259-L267", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start returns a derivative query with the given start point.", "docstring_tokens": ["Start", "returns", "a", "derivative", "query", "with", "the", "given", "start", "point", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L270-L278", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "End", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// End returns a derivative query with the given end point.", "docstring_tokens": ["End", "returns", "a", "derivative", "query", "with", "the", "given", "end", "point", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L281-L289", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "Count", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Count returns the number of results for the query.\n//\n// The running time and number of API calls made by Count scale linearly with\n// the sum of the query's offset and limit. Unless the result count is\n// expected to be small, it is best to specify a limit; otherwise Count will\n// continue until it finishes counting or the provided context expires.", "docstring_tokens": ["Count", "returns", "the", "number", "of", "results", "for", "the", "query", ".", "The", "running", "time", "and", "number", "of", "API", "calls", "made", "by", "Count", "scale", "linearly", "with", "the", "sum", "of", "the", "query", "s", "offset", "and", "limit", ".", "Unless", "the", "result", "count", "is", "expected", "to", "be", "small", "it", "is", "best", "to", "specify", "a", "limit", ";", "otherwise", "Count", "will", "continue", "until", "it", "finishes", "counting", "or", "the", "provided", "context", "expires", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L374-L442", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run runs the query in the given context.", "docstring_tokens": ["Run", "runs", "the", "query", "in", "the", "given", "context", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L553-L597", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next returns the key of the next result. When there are no more results,\n// Done is returned as the error.\n//\n// If the query is not keys only and dst is non-nil, it also loads the entity\n// stored for that key into the struct pointer or PropertyLoadSaver dst, with\n// the same semantics and possible errors as for the Get function.", "docstring_tokens": ["Next", "returns", "the", "key", "of", "the", "next", "result", ".", "When", "there", "are", "no", "more", "results", "Done", "is", "returned", "as", "the", "error", ".", "If", "the", "query", "is", "not", "keys", "only", "and", "dst", "is", "non", "-", "nil", "it", "also", "loads", "the", "entity", "stored", "for", "that", "key", "into", "the", "struct", "pointer", "or", "PropertyLoadSaver", "dst", "with", "the", "same", "semantics", "and", "possible", "errors", "as", "for", "the", "Get", "function", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L629-L638", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "Cursor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cursor returns a cursor for the iterator's current location.", "docstring_tokens": ["Cursor", "returns", "a", "cursor", "for", "the", "iterator", "s", "current", "location", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L690-L731", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a base-64 string representation of a cursor.", "docstring_tokens": ["String", "returns", "a", "base", "-", "64", "string", "representation", "of", "a", "cursor", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L743-L755", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/query.go", "func_name": "DecodeCursor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Decode decodes a cursor from its base-64 string representation.", "docstring_tokens": ["Decode", "decodes", "a", "cursor", "from", "its", "base", "-", "64", "string", "representation", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/query.go#L758-L774", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/save.go", "func_name": "saveEntity", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// saveEntity saves an EntityProto into a PropertyLoadSaver or struct pointer.", "docstring_tokens": ["saveEntity", "saves", "an", "EntityProto", "into", "a", "PropertyLoadSaver", "or", "struct", "pointer", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/save.go#L121-L133", "partition": "test"} +{"repo": "golang/appengine", "path": "namespace.go", "func_name": "Namespace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Namespace returns a replacement context that operates within the given namespace.", "docstring_tokens": ["Namespace", "returns", "a", "replacement", "context", "that", "operates", "within", "the", "given", "namespace", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/namespace.go#L17-L22", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/typecheck.go", "func_name": "typeof", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// typeof returns the type of the given name, which may be of\n// the form \"x\" or \"p.X\".", "docstring_tokens": ["typeof", "returns", "the", "type", "of", "the", "given", "name", "which", "may", "be", "of", "the", "form", "x", "or", "p", ".", "X", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/typecheck.go#L81-L93", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/typecheck.go", "func_name": "dot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dot returns the type of \"typ.name\", making its decision\n// using the type information in cfg.", "docstring_tokens": ["dot", "returns", "the", "type", "of", "typ", ".", "name", "making", "its", "decision", "using", "the", "type", "information", "in", "cfg", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/typecheck.go#L107-L129", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/typecheck.go", "func_name": "joinFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// joinFunc is the inverse of splitFunc.", "docstring_tokens": ["joinFunc", "is", "the", "inverse", "of", "splitFunc", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/typecheck.go#L622-L630", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/prop.go", "func_name": "validPropertyName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validPropertyName returns whether name consists of one or more valid Go\n// identifiers joined by \".\".", "docstring_tokens": ["validPropertyName", "returns", "whether", "name", "consists", "of", "one", "or", "more", "valid", "Go", "identifiers", "joined", "by", ".", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/prop.go#L105-L128", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/prop.go", "func_name": "getStructCodec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getStructCodec returns the structCodec for the given struct type.", "docstring_tokens": ["getStructCodec", "returns", "the", "structCodec", "for", "the", "given", "struct", "type", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/prop.go#L168-L172", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/prop.go", "func_name": "LoadStruct", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadStruct loads the properties from p to dst.\n// dst must be a struct pointer.", "docstring_tokens": ["LoadStruct", "loads", "the", "properties", "from", "p", "to", "dst", ".", "dst", "must", "be", "a", "struct", "pointer", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/prop.go#L314-L320", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/prop.go", "func_name": "SaveStruct", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveStruct returns the properties from src as a slice of Properties.\n// src must be a struct pointer.", "docstring_tokens": ["SaveStruct", "returns", "the", "properties", "from", "src", "as", "a", "slice", "of", "Properties", ".", "src", "must", "be", "a", "struct", "pointer", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/prop.go#L324-L330", "partition": "test"} +{"repo": "golang/appengine", "path": "image/image.go", "func_name": "ServingURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServingURL returns a URL that will serve an image from Blobstore.", "docstring_tokens": ["ServingURL", "returns", "a", "URL", "that", "will", "serve", "an", "image", "from", "Blobstore", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/image/image.go#L31-L54", "partition": "test"} +{"repo": "golang/appengine", "path": "image/image.go", "func_name": "DeleteServingURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteServingURL deletes the serving URL for an image.", "docstring_tokens": ["DeleteServingURL", "deletes", "the", "serving", "URL", "for", "an", "image", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/image/image.go#L57-L63", "partition": "test"} +{"repo": "golang/appengine", "path": "user/oauth.go", "func_name": "CurrentOAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CurrentOAuth returns the user associated with the OAuth consumer making this\n// request. If the OAuth consumer did not make a valid OAuth request, or the\n// scopes is non-empty and the current user does not have at least one of the\n// scopes, this method will return an error.", "docstring_tokens": ["CurrentOAuth", "returns", "the", "user", "associated", "with", "the", "OAuth", "consumer", "making", "this", "request", ".", "If", "the", "OAuth", "consumer", "did", "not", "make", "a", "valid", "OAuth", "request", "or", "the", "scopes", "is", "non", "-", "empty", "and", "the", "current", "user", "does", "not", "have", "at", "least", "one", "of", "the", "scopes", "this", "method", "will", "return", "an", "error", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/user/oauth.go#L18-L39", "partition": "test"} +{"repo": "golang/appengine", "path": "user/oauth.go", "func_name": "OAuthConsumerKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OAuthConsumerKey returns the OAuth consumer key provided with the current\n// request. This method will return an error if the OAuth request was invalid.", "docstring_tokens": ["OAuthConsumerKey", "returns", "the", "OAuth", "consumer", "key", "provided", "with", "the", "current", "request", ".", "This", "method", "will", "return", "an", "error", "if", "the", "OAuth", "request", "was", "invalid", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/user/oauth.go#L43-L52", "partition": "test"} +{"repo": "golang/appengine", "path": "user/user.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a displayable name for the user.", "docstring_tokens": ["String", "returns", "a", "displayable", "name", "for", "the", "user", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/user/user.go#L38-L46", "partition": "test"} +{"repo": "golang/appengine", "path": "user/user.go", "func_name": "LoginURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoginURL returns a URL that, when visited, prompts the user to sign in,\n// then redirects the user to the URL specified by dest.", "docstring_tokens": ["LoginURL", "returns", "a", "URL", "that", "when", "visited", "prompts", "the", "user", "to", "sign", "in", "then", "redirects", "the", "user", "to", "the", "URL", "specified", "by", "dest", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/user/user.go#L50-L52", "partition": "test"} +{"repo": "golang/appengine", "path": "user/user.go", "func_name": "LoginURLFederated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoginURLFederated is like LoginURL but accepts a user's OpenID identifier.", "docstring_tokens": ["LoginURLFederated", "is", "like", "LoginURL", "but", "accepts", "a", "user", "s", "OpenID", "identifier", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/user/user.go#L55-L67", "partition": "test"} +{"repo": "golang/appengine", "path": "user/user.go", "func_name": "LogoutURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogoutURL returns a URL that, when visited, signs the user out,\n// then redirects the user to the URL specified by dest.", "docstring_tokens": ["LogoutURL", "returns", "a", "URL", "that", "when", "visited", "signs", "the", "user", "out", "then", "redirects", "the", "user", "to", "the", "URL", "specified", "by", "dest", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/user/user.go#L71-L80", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/ae.go", "func_name": "insertContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ctx may be nil.", "docstring_tokens": ["ctx", "may", "be", "nil", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/ae.go#L175-L185", "partition": "test"} +{"repo": "golang/appengine", "path": "remote_api/client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient returns a client for the given host. All communication will\n// be performed over SSL unless the host is localhost.", "docstring_tokens": ["NewClient", "returns", "a", "client", "for", "the", "given", "host", ".", "All", "communication", "will", "be", "performed", "over", "SSL", "unless", "the", "host", "is", "localhost", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/remote_api/client.go#L39-L67", "partition": "test"} +{"repo": "golang/appengine", "path": "remote_api/client.go", "func_name": "NewContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewContext returns a copy of parent that will cause App Engine API\n// calls to be sent to the client's remote host.", "docstring_tokens": ["NewContext", "returns", "a", "copy", "of", "parent", "that", "will", "cause", "App", "Engine", "API", "calls", "to", "be", "sent", "to", "the", "client", "s", "remote", "host", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/remote_api/client.go#L71-L76", "partition": "test"} +{"repo": "golang/appengine", "path": "remote_api/client.go", "func_name": "NewRemoteContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRemoteContext returns a context that gives access to the production\n// APIs for the application at the given host. All communication will be\n// performed over SSL unless the host is localhost.", "docstring_tokens": ["NewRemoteContext", "returns", "a", "context", "that", "gives", "access", "to", "the", "production", "APIs", "for", "the", "application", "at", "the", "given", "host", ".", "All", "communication", "will", "be", "performed", "over", "SSL", "unless", "the", "host", "is", "localhost", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/remote_api/client.go#L81-L87", "partition": "test"} +{"repo": "golang/appengine", "path": "log/api.go", "func_name": "Debugf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Debugf formats its arguments according to the format, analogous to fmt.Printf,\n// and records the text as a log message at Debug level. The message will be associated\n// with the request linked with the provided context.", "docstring_tokens": ["Debugf", "formats", "its", "arguments", "according", "to", "the", "format", "analogous", "to", "fmt", ".", "Printf", "and", "records", "the", "text", "as", "a", "log", "message", "at", "Debug", "level", ".", "The", "message", "will", "be", "associated", "with", "the", "request", "linked", "with", "the", "provided", "context", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/log/api.go#L18-L20", "partition": "test"} +{"repo": "golang/appengine", "path": "demos/guestbook/guestbook.go", "func_name": "guestbookKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// guestbookKey returns the key used for all guestbook entries.", "docstring_tokens": ["guestbookKey", "returns", "the", "key", "used", "for", "all", "guestbook", "entries", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/demos/guestbook/guestbook.go#L38-L41", "partition": "test"} +{"repo": "golang/appengine", "path": "taskqueue/taskqueue.go", "func_name": "toRetryParameters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// toRetryParameter converts RetryOptions to pb.TaskQueueRetryParameters.", "docstring_tokens": ["toRetryParameter", "converts", "RetryOptions", "to", "pb", ".", "TaskQueueRetryParameters", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/taskqueue/taskqueue.go#L66-L84", "partition": "test"} +{"repo": "golang/appengine", "path": "taskqueue/taskqueue.go", "func_name": "NewPOSTTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPOSTTask creates a Task that will POST to a path with the given form data.", "docstring_tokens": ["NewPOSTTask", "creates", "a", "Task", "that", "will", "POST", "to", "a", "path", "with", "the", "given", "form", "data", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/taskqueue/taskqueue.go#L140-L149", "partition": "test"} +{"repo": "golang/appengine", "path": "taskqueue/taskqueue.go", "func_name": "ParseRequestHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseRequestHeaders parses the special HTTP request headers available to push\n// task request handlers. This function silently ignores values of the wrong\n// format.", "docstring_tokens": ["ParseRequestHeaders", "parses", "the", "special", "HTTP", "request", "headers", "available", "to", "push", "task", "request", "handlers", ".", "This", "function", "silently", "ignores", "values", "of", "the", "wrong", "format", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/taskqueue/taskqueue.go#L170-L191", "partition": "test"} +{"repo": "golang/appengine", "path": "taskqueue/taskqueue.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds the task to a named queue.\n// An empty queue name means that the default queue will be used.\n// Add returns an equivalent Task with defaults filled in, including setting\n// the task's Name field to the chosen name if the original was empty.", "docstring_tokens": ["Add", "adds", "the", "task", "to", "a", "named", "queue", ".", "An", "empty", "queue", "name", "means", "that", "the", "default", "queue", "will", "be", "used", ".", "Add", "returns", "an", "equivalent", "Task", "with", "defaults", "filled", "in", "including", "setting", "the", "task", "s", "Name", "field", "to", "the", "chosen", "name", "if", "the", "original", "was", "empty", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/taskqueue/taskqueue.go#L285-L304", "partition": "test"} +{"repo": "golang/appengine", "path": "taskqueue/taskqueue.go", "func_name": "AddMulti", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddMulti adds multiple tasks to a named queue.\n// An empty queue name means that the default queue will be used.\n// AddMulti returns a slice of equivalent tasks with defaults filled in, including setting\n// each task's Name field to the chosen name if the original was empty.\n// If a given task is badly formed or could not be added, an appengine.MultiError is returned.", "docstring_tokens": ["AddMulti", "adds", "multiple", "tasks", "to", "a", "named", "queue", ".", "An", "empty", "queue", "name", "means", "that", "the", "default", "queue", "will", "be", "used", ".", "AddMulti", "returns", "a", "slice", "of", "equivalent", "tasks", "with", "defaults", "filled", "in", "including", "setting", "each", "task", "s", "Name", "field", "to", "the", "chosen", "name", "if", "the", "original", "was", "empty", ".", "If", "a", "given", "task", "is", "badly", "formed", "or", "could", "not", "be", "added", "an", "appengine", ".", "MultiError", "is", "returned", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/taskqueue/taskqueue.go#L311-L354", "partition": "test"} +{"repo": "golang/appengine", "path": "taskqueue/taskqueue.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes a task from a named queue.", "docstring_tokens": ["Delete", "deletes", "a", "task", "from", "a", "named", "queue", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/taskqueue/taskqueue.go#L357-L363", "partition": "test"} +{"repo": "golang/appengine", "path": "taskqueue/taskqueue.go", "func_name": "DeleteMulti", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteMulti deletes multiple tasks from a named queue.\n// If a given task could not be deleted, an appengine.MultiError is returned.\n// Each task is deleted independently; one may fail to delete while the others\n// are sucessfully deleted.", "docstring_tokens": ["DeleteMulti", "deletes", "multiple", "tasks", "from", "a", "named", "queue", ".", "If", "a", "given", "task", "could", "not", "be", "deleted", "an", "appengine", ".", "MultiError", "is", "returned", ".", "Each", "task", "is", "deleted", "independently", ";", "one", "may", "fail", "to", "delete", "while", "the", "others", "are", "sucessfully", "deleted", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/taskqueue/taskqueue.go#L369-L402", "partition": "test"} +{"repo": "golang/appengine", "path": "taskqueue/taskqueue.go", "func_name": "Lease", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Lease leases tasks from a queue.\n// leaseTime is in seconds.\n// The number of tasks fetched will be at most maxTasks.", "docstring_tokens": ["Lease", "leases", "tasks", "from", "a", "queue", ".", "leaseTime", "is", "in", "seconds", ".", "The", "number", "of", "tasks", "fetched", "will", "be", "at", "most", "maxTasks", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/taskqueue/taskqueue.go#L436-L438", "partition": "test"} +{"repo": "golang/appengine", "path": "taskqueue/taskqueue.go", "func_name": "LeaseByTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LeaseByTag leases tasks from a queue, grouped by tag.\n// If tag is empty, then the returned tasks are grouped by the tag of the task with earliest ETA.\n// leaseTime is in seconds.\n// The number of tasks fetched will be at most maxTasks.", "docstring_tokens": ["LeaseByTag", "leases", "tasks", "from", "a", "queue", "grouped", "by", "tag", ".", "If", "tag", "is", "empty", "then", "the", "returned", "tasks", "are", "grouped", "by", "the", "tag", "of", "the", "task", "with", "earliest", "ETA", ".", "leaseTime", "is", "in", "seconds", ".", "The", "number", "of", "tasks", "fetched", "will", "be", "at", "most", "maxTasks", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/taskqueue/taskqueue.go#L444-L446", "partition": "test"} +{"repo": "golang/appengine", "path": "taskqueue/taskqueue.go", "func_name": "Purge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Purge removes all tasks from a queue.", "docstring_tokens": ["Purge", "removes", "all", "tasks", "from", "a", "queue", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/taskqueue/taskqueue.go#L449-L458", "partition": "test"} +{"repo": "golang/appengine", "path": "taskqueue/taskqueue.go", "func_name": "ModifyLease", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ModifyLease modifies the lease of a task.\n// Used to request more processing time, or to abandon processing.\n// leaseTime is in seconds and must not be negative.", "docstring_tokens": ["ModifyLease", "modifies", "the", "lease", "of", "a", "task", ".", "Used", "to", "request", "more", "processing", "time", "or", "to", "abandon", "processing", ".", "leaseTime", "is", "in", "seconds", "and", "must", "not", "be", "negative", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/taskqueue/taskqueue.go#L463-L479", "partition": "test"} +{"repo": "golang/appengine", "path": "taskqueue/taskqueue.go", "func_name": "QueueStats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QueueStats retrieves statistics about queues.", "docstring_tokens": ["QueueStats", "retrieves", "statistics", "about", "queues", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/taskqueue/taskqueue.go#L492-L521", "partition": "test"} +{"repo": "golang/appengine", "path": "timeout.go", "func_name": "IsTimeoutError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsTimeoutError reports whether err is a timeout error.", "docstring_tokens": ["IsTimeoutError", "reports", "whether", "err", "is", "a", "timeout", "error", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/timeout.go#L10-L20", "partition": "test"} +{"repo": "golang/appengine", "path": "delay/delay.go", "func_name": "Func", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Func declares a new Function. The second argument must be a function with a\n// first argument of type context.Context.\n// This function must be called at program initialization time. That means it\n// must be called in a global variable declaration or from an init function.\n// This restriction is necessary because the instance that delays a function\n// call may not be the one that executes it. Only the code executed at program\n// initialization time is guaranteed to have been run by an instance before it\n// receives a request.", "docstring_tokens": ["Func", "declares", "a", "new", "Function", ".", "The", "second", "argument", "must", "be", "a", "function", "with", "a", "first", "argument", "of", "type", "context", ".", "Context", ".", "This", "function", "must", "be", "called", "at", "program", "initialization", "time", ".", "That", "means", "it", "must", "be", "called", "in", "a", "global", "variable", "declaration", "or", "from", "an", "init", "function", ".", "This", "restriction", "is", "necessary", "because", "the", "instance", "that", "delays", "a", "function", "call", "may", "not", "be", "the", "one", "that", "executes", "it", ".", "Only", "the", "code", "executed", "at", "program", "initialization", "time", "is", "guaranteed", "to", "have", "been", "run", "by", "an", "instance", "before", "it", "receives", "a", "request", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/delay/delay.go#L162-L203", "partition": "test"} +{"repo": "golang/appengine", "path": "delay/delay.go", "func_name": "Task", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Task creates a Task that will invoke the function.\n// Its parameters may be tweaked before adding it to a queue.\n// Users should not modify the Path or Payload fields of the returned Task.", "docstring_tokens": ["Task", "creates", "a", "Task", "that", "will", "invoke", "the", "function", ".", "Its", "parameters", "may", "be", "tweaked", "before", "adding", "it", "to", "a", "queue", ".", "Users", "should", "not", "modify", "the", "Path", "or", "Payload", "fields", "of", "the", "returned", "Task", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/delay/delay.go#L227-L293", "partition": "test"} +{"repo": "golang/appengine", "path": "delay/delay.go", "func_name": "RequestHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Request returns the special task-queue HTTP request headers for the current\n// task queue handler. Returns an error if called from outside a delay.Func.", "docstring_tokens": ["Request", "returns", "the", "special", "task", "-", "queue", "HTTP", "request", "headers", "for", "the", "current", "task", "queue", "handler", ".", "Returns", "an", "error", "if", "called", "from", "outside", "a", "delay", ".", "Func", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/delay/delay.go#L297-L302", "partition": "test"} +{"repo": "golang/appengine", "path": "appengine.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext returns a copy of the parent context\n// and associates it with an in-flight HTTP request.\n// This function is cheap.", "docstring_tokens": ["WithContext", "returns", "a", "copy", "of", "the", "parent", "context", "and", "associates", "it", "with", "an", "in", "-", "flight", "HTTP", "request", ".", "This", "function", "is", "cheap", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/appengine.go#L96-L98", "partition": "test"} +{"repo": "golang/appengine", "path": "appengine.go", "func_name": "WithAPICallFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithAPICallFunc returns a copy of the parent context\n// that will cause API calls to invoke f instead of their normal operation.\n//\n// This is intended for advanced users only.", "docstring_tokens": ["WithAPICallFunc", "returns", "a", "copy", "of", "the", "parent", "context", "that", "will", "cause", "API", "calls", "to", "invoke", "f", "instead", "of", "their", "normal", "operation", ".", "This", "is", "intended", "for", "advanced", "users", "only", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/appengine.go#L125-L127", "partition": "test"} +{"repo": "golang/appengine", "path": "appengine.go", "func_name": "APICall", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// APICall performs an API call.\n//\n// This is not intended for general use; it is exported for use in conjunction\n// with WithAPICallFunc.", "docstring_tokens": ["APICall", "performs", "an", "API", "call", ".", "This", "is", "not", "intended", "for", "general", "use", ";", "it", "is", "exported", "for", "use", "in", "conjunction", "with", "WithAPICallFunc", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/appengine.go#L133-L135", "partition": "test"} +{"repo": "golang/appengine", "path": "identity.go", "func_name": "ModuleHostname", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ModuleHostname returns a hostname of a module instance.\n// If module is the empty string, it refers to the module of the current instance.\n// If version is empty, it refers to the version of the current instance if valid,\n// or the default version of the module of the current instance.\n// If instance is empty, ModuleHostname returns the load-balancing hostname.", "docstring_tokens": ["ModuleHostname", "returns", "a", "hostname", "of", "a", "module", "instance", ".", "If", "module", "is", "the", "empty", "string", "it", "refers", "to", "the", "module", "of", "the", "current", "instance", ".", "If", "version", "is", "empty", "it", "refers", "to", "the", "version", "of", "the", "current", "instance", "if", "valid", "or", "the", "default", "version", "of", "the", "module", "of", "the", "current", "instance", ".", "If", "instance", "is", "empty", "ModuleHostname", "returns", "the", "load", "-", "balancing", "hostname", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/identity.go#L39-L55", "partition": "test"} +{"repo": "golang/appengine", "path": "identity.go", "func_name": "AccessToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AccessToken generates an OAuth2 access token for the specified scopes on\n// behalf of service account of this application. This token will expire after\n// the returned time.", "docstring_tokens": ["AccessToken", "generates", "an", "OAuth2", "access", "token", "for", "the", "specified", "scopes", "on", "behalf", "of", "service", "account", "of", "this", "application", ".", "This", "token", "will", "expire", "after", "the", "returned", "time", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/identity.go#L80-L89", "partition": "test"} +{"repo": "golang/appengine", "path": "identity.go", "func_name": "PublicCertificates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublicCertificates retrieves the public certificates for the app.\n// They can be used to verify a signature returned by SignBytes.", "docstring_tokens": ["PublicCertificates", "retrieves", "the", "public", "certificates", "for", "the", "app", ".", "They", "can", "be", "used", "to", "verify", "a", "signature", "returned", "by", "SignBytes", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/identity.go#L99-L113", "partition": "test"} +{"repo": "golang/appengine", "path": "identity.go", "func_name": "ServiceAccount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServiceAccount returns a string representing the service account name, in\n// the form of an email address (typically app_id@appspot.gserviceaccount.com).", "docstring_tokens": ["ServiceAccount", "returns", "a", "string", "representing", "the", "service", "account", "name", "in", "the", "form", "of", "an", "email", "address", "(", "typically", "app_id"], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/identity.go#L117-L126", "partition": "test"} +{"repo": "golang/appengine", "path": "identity.go", "func_name": "SignBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SignBytes signs bytes using a private key unique to your application.", "docstring_tokens": ["SignBytes", "signs", "bytes", "using", "a", "private", "key", "unique", "to", "your", "application", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/identity.go#L129-L137", "partition": "test"} +{"repo": "golang/appengine", "path": "blobstore/read.go", "func_name": "fetch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fetch fetches readBufferSize bytes starting at the given offset. On success,\n// the data is saved as r.buf.", "docstring_tokens": ["fetch", "fetches", "readBufferSize", "bytes", "starting", "at", "the", "given", "offset", ".", "On", "success", "the", "data", "is", "saved", "as", "r", ".", "buf", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/blobstore/read.go#L133-L148", "partition": "test"} +{"repo": "golang/appengine", "path": "blobstore/read.go", "func_name": "seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// seek seeks to the given offset with an effective whence equal to SEEK_SET.\n// It discards the read buffer if the invariant cannot be maintained.", "docstring_tokens": ["seek", "seeks", "to", "the", "given", "offset", "with", "an", "effective", "whence", "equal", "to", "SEEK_SET", ".", "It", "discards", "the", "read", "buffer", "if", "the", "invariant", "cannot", "be", "maintained", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/blobstore/read.go#L152-L160", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/datastore.go", "func_name": "multiKeyToProto", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// multiKeyToProto is a batch version of keyToProto.", "docstring_tokens": ["multiKeyToProto", "is", "a", "batch", "version", "of", "keyToProto", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/datastore.go#L105-L111", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/datastore.go", "func_name": "referenceValueToKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// It's unfortunate that the two semantically equivalent concepts pb.Reference\n// and pb.PropertyValue_ReferenceValue aren't the same type. For example, the\n// two have different protobuf field numbers.\n// referenceValueToKey is the same as protoToKey except the input is a\n// PropertyValue_ReferenceValue instead of a Reference.", "docstring_tokens": ["It", "s", "unfortunate", "that", "the", "two", "semantically", "equivalent", "concepts", "pb", ".", "Reference", "and", "pb", ".", "PropertyValue_ReferenceValue", "aren", "t", "the", "same", "type", ".", "For", "example", "the", "two", "have", "different", "protobuf", "field", "numbers", ".", "referenceValueToKey", "is", "the", "same", "as", "protoToKey", "except", "the", "input", "is", "a", "PropertyValue_ReferenceValue", "instead", "of", "a", "Reference", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/datastore.go#L141-L158", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/datastore.go", "func_name": "keyToReferenceValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// keyToReferenceValue is the same as keyToProto except the output is a\n// PropertyValue_ReferenceValue instead of a Reference.", "docstring_tokens": ["keyToReferenceValue", "is", "the", "same", "as", "keyToProto", "except", "the", "output", "is", "a", "PropertyValue_ReferenceValue", "instead", "of", "a", "Reference", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/datastore.go#L162-L177", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/datastore.go", "func_name": "Put", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Put saves the entity src into the datastore with key k. src must be a struct\n// pointer or implement PropertyLoadSaver; if a struct pointer then any\n// unexported fields of that struct will be skipped. If k is an incomplete key,\n// the returned key will be a unique key generated by the datastore.", "docstring_tokens": ["Put", "saves", "the", "entity", "src", "into", "the", "datastore", "with", "key", "k", ".", "src", "must", "be", "a", "struct", "pointer", "or", "implement", "PropertyLoadSaver", ";", "if", "a", "struct", "pointer", "then", "any", "unexported", "fields", "of", "that", "struct", "will", "be", "skipped", ".", "If", "k", "is", "an", "incomplete", "key", "the", "returned", "key", "will", "be", "a", "unique", "key", "generated", "by", "the", "datastore", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/datastore.go#L308-L317", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/datastore.go", "func_name": "PutMulti", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutMulti is a batch version of Put.\n//\n// src must satisfy the same conditions as the dst argument to GetMulti.", "docstring_tokens": ["PutMulti", "is", "a", "batch", "version", "of", "Put", ".", "src", "must", "satisfy", "the", "same", "conditions", "as", "the", "dst", "argument", "to", "GetMulti", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/datastore.go#L322-L366", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/datastore.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes the entity for the given key.", "docstring_tokens": ["Delete", "deletes", "the", "entity", "for", "the", "given", "key", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/datastore.go#L369-L375", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/datastore.go", "func_name": "DeleteMulti", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteMulti is a batch version of Delete.", "docstring_tokens": ["DeleteMulti", "is", "a", "batch", "version", "of", "Delete", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/datastore.go#L378-L390", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aedeploy/aedeploy.go", "func_name": "deploy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deploy calls the provided command to deploy the app from the temporary directory.", "docstring_tokens": ["deploy", "calls", "the", "provided", "command", "to", "deploy", "the", "app", "from", "the", "temporary", "directory", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aedeploy/aedeploy.go#L64-L72", "partition": "test"} +{"repo": "golang/appengine", "path": "log/log.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next returns the next log record,", "docstring_tokens": ["Next", "returns", "the", "next", "log", "record"], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/log/log.go#L147-L167", "partition": "test"} +{"repo": "golang/appengine", "path": "log/log.go", "func_name": "protoToAppLogs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// protoToAppLogs takes as input an array of pointers to LogLines, the internal\n// Protocol Buffer representation of a single application-level log,\n// and converts it to an array of AppLogs, the external representation\n// of an application-level log.", "docstring_tokens": ["protoToAppLogs", "takes", "as", "input", "an", "array", "of", "pointers", "to", "LogLines", "the", "internal", "Protocol", "Buffer", "representation", "of", "a", "single", "application", "-", "level", "log", "and", "converts", "it", "to", "an", "array", "of", "AppLogs", "the", "external", "representation", "of", "an", "application", "-", "level", "log", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/log/log.go#L176-L188", "partition": "test"} +{"repo": "golang/appengine", "path": "log/log.go", "func_name": "protoToRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// protoToRecord converts a RequestLog, the internal Protocol Buffer\n// representation of a single request-level log, to a Record, its\n// corresponding external representation.", "docstring_tokens": ["protoToRecord", "converts", "a", "RequestLog", "the", "internal", "Protocol", "Buffer", "representation", "of", "a", "single", "request", "-", "level", "log", "to", "a", "Record", "its", "corresponding", "external", "representation", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/log/log.go#L193-L230", "partition": "test"} +{"repo": "golang/appengine", "path": "log/log.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run starts a query for log records, which contain request and application\n// level log information.", "docstring_tokens": ["Run", "starts", "a", "query", "for", "log", "records", "which", "contain", "request", "and", "application", "level", "log", "information", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/log/log.go#L234-L241", "partition": "test"} +{"repo": "golang/appengine", "path": "log/log.go", "func_name": "run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// run takes the query Result produced by a call to Run and updates it with\n// more Records. The updated Result contains a new set of logs as well as an\n// offset to where more logs can be found. We also convert the items in the\n// response from their internal representations to external versions of the\n// same structs.", "docstring_tokens": ["run", "takes", "the", "query", "Result", "produced", "by", "a", "call", "to", "Run", "and", "updates", "it", "with", "more", "Records", ".", "The", "updated", "Result", "contains", "a", "new", "set", "of", "logs", "as", "well", "as", "an", "offset", "to", "where", "more", "logs", "can", "be", "found", ".", "We", "also", "convert", "the", "items", "in", "the", "response", "from", "their", "internal", "representations", "to", "external", "versions", "of", "the", "same", "structs", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/log/log.go#L304-L319", "partition": "test"} +{"repo": "golang/appengine", "path": "user/user_vm.go", "func_name": "Current", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Current returns the currently logged-in user,\n// or nil if the user is not signed in.", "docstring_tokens": ["Current", "returns", "the", "currently", "logged", "-", "in", "user", "or", "nil", "if", "the", "user", "is", "not", "signed", "in", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/user/user_vm.go#L17-L31", "partition": "test"} +{"repo": "golang/appengine", "path": "user/user_vm.go", "func_name": "IsAdmin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsAdmin returns true if the current user is signed in and\n// is currently registered as an administrator of the application.", "docstring_tokens": ["IsAdmin", "returns", "true", "if", "the", "current", "user", "is", "signed", "in", "and", "is", "currently", "registered", "as", "an", "administrator", "of", "the", "application", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/user/user_vm.go#L35-L38", "partition": "test"} +{"repo": "golang/appengine", "path": "blobstore/blobstore.go", "func_name": "isErrFieldMismatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isErrFieldMismatch returns whether err is a datastore.ErrFieldMismatch.\n//\n// The blobstore stores blob metadata in the datastore. When loading that\n// metadata, it may contain fields that we don't care about. datastore.Get will\n// return datastore.ErrFieldMismatch in that case, so we ignore that specific\n// error.", "docstring_tokens": ["isErrFieldMismatch", "returns", "whether", "err", "is", "a", "datastore", ".", "ErrFieldMismatch", ".", "The", "blobstore", "stores", "blob", "metadata", "in", "the", "datastore", ".", "When", "loading", "that", "metadata", "it", "may", "contain", "fields", "that", "we", "don", "t", "care", "about", ".", "datastore", ".", "Get", "will", "return", "datastore", ".", "ErrFieldMismatch", "in", "that", "case", "so", "we", "ignore", "that", "specific", "error", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/blobstore/blobstore.go#L63-L66", "partition": "test"} +{"repo": "golang/appengine", "path": "blobstore/blobstore.go", "func_name": "Stat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stat returns the BlobInfo for a provided blobKey. If no blob was found for\n// that key, Stat returns datastore.ErrNoSuchEntity.", "docstring_tokens": ["Stat", "returns", "the", "BlobInfo", "for", "a", "provided", "blobKey", ".", "If", "no", "blob", "was", "found", "for", "that", "key", "Stat", "returns", "datastore", ".", "ErrNoSuchEntity", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/blobstore/blobstore.go#L70-L80", "partition": "test"} +{"repo": "golang/appengine", "path": "blobstore/blobstore.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sets the headers on response to instruct App Engine to send a blob as\n// the response body. This is more efficient than reading and writing it out\n// manually and isn't subject to normal response size limits.", "docstring_tokens": ["Send", "sets", "the", "headers", "on", "response", "to", "instruct", "App", "Engine", "to", "send", "a", "blob", "as", "the", "response", "body", ".", "This", "is", "more", "efficient", "than", "reading", "and", "writing", "it", "out", "manually", "and", "isn", "t", "subject", "to", "normal", "response", "size", "limits", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/blobstore/blobstore.go#L85-L95", "partition": "test"} +{"repo": "golang/appengine", "path": "blobstore/blobstore.go", "func_name": "UploadURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UploadURL creates an upload URL for the form that the user will\n// fill out, passing the application path to load when the POST of the\n// form is completed. These URLs expire and should not be reused. The\n// opts parameter may be nil.", "docstring_tokens": ["UploadURL", "creates", "an", "upload", "URL", "for", "the", "form", "that", "the", "user", "will", "fill", "out", "passing", "the", "application", "path", "to", "load", "when", "the", "POST", "of", "the", "form", "is", "completed", ".", "These", "URLs", "expire", "and", "should", "not", "be", "reused", ".", "The", "opts", "parameter", "may", "be", "nil", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/blobstore/blobstore.go#L101-L121", "partition": "test"} +{"repo": "golang/appengine", "path": "blobstore/blobstore.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes a blob.", "docstring_tokens": ["Delete", "deletes", "a", "blob", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/blobstore/blobstore.go#L139-L141", "partition": "test"} +{"repo": "golang/appengine", "path": "blobstore/blobstore.go", "func_name": "DeleteMulti", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteMulti deletes multiple blobs.", "docstring_tokens": ["DeleteMulti", "deletes", "multiple", "blobs", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/blobstore/blobstore.go#L144-L157", "partition": "test"} +{"repo": "golang/appengine", "path": "blobstore/blobstore.go", "func_name": "NewReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReader returns a reader for a blob. It always succeeds; if the blob does\n// not exist then an error will be reported upon first read.", "docstring_tokens": ["NewReader", "returns", "a", "reader", "for", "a", "blob", ".", "It", "always", "succeeds", ";", "if", "the", "blob", "does", "not", "exist", "then", "an", "error", "will", "be", "reported", "upon", "first", "read", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/blobstore/blobstore.go#L291-L293", "partition": "test"} +{"repo": "golang/appengine", "path": "xmpp/xmpp.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle arranges for f to be called for incoming XMPP messages.\n// Only messages of type \"chat\" or \"normal\" will be handled.", "docstring_tokens": ["Handle", "arranges", "for", "f", "to", "be", "called", "for", "incoming", "XMPP", "messages", ".", "Only", "messages", "of", "type", "chat", "or", "normal", "will", "be", "handled", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/xmpp/xmpp.go#L86-L94", "partition": "test"} +{"repo": "golang/appengine", "path": "xmpp/xmpp.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends a message.\n// If any failures occur with specific recipients, the error will be an appengine.MultiError.", "docstring_tokens": ["Send", "sends", "a", "message", ".", "If", "any", "failures", "occur", "with", "specific", "recipients", "the", "error", "will", "be", "an", "appengine", ".", "MultiError", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/xmpp/xmpp.go#L98-L129", "partition": "test"} +{"repo": "golang/appengine", "path": "xmpp/xmpp.go", "func_name": "Invite", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Invite sends an invitation. If the from address is an empty string\n// the default (yourapp@appspot.com/bot) will be used.", "docstring_tokens": ["Invite", "sends", "an", "invitation", ".", "If", "the", "from", "address", "is", "an", "empty", "string", "the", "default", "(", "yourapp"], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/xmpp/xmpp.go#L133-L142", "partition": "test"} +{"repo": "golang/appengine", "path": "xmpp/xmpp.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends a presence update.", "docstring_tokens": ["Send", "sends", "a", "presence", "update", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/xmpp/xmpp.go#L145-L163", "partition": "test"} +{"repo": "golang/appengine", "path": "xmpp/xmpp.go", "func_name": "GetPresence", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPresence retrieves a user's presence.\n// If the from address is an empty string the default\n// (yourapp@appspot.com/bot) will be used.\n// Possible return values are \"\", \"away\", \"dnd\", \"chat\", \"xa\".\n// ErrPresenceUnavailable is returned if the presence is unavailable.", "docstring_tokens": ["GetPresence", "retrieves", "a", "user", "s", "presence", ".", "If", "the", "from", "address", "is", "an", "empty", "string", "the", "default", "(", "yourapp"], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/xmpp/xmpp.go#L178-L197", "partition": "test"} +{"repo": "golang/appengine", "path": "xmpp/xmpp.go", "func_name": "GetPresenceMulti", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPresenceMulti retrieves multiple users' presence.\n// If the from address is an empty string the default\n// (yourapp@appspot.com/bot) will be used.\n// Possible return values are \"\", \"away\", \"dnd\", \"chat\", \"xa\".\n// If any presence is unavailable, an appengine.MultiError is returned", "docstring_tokens": ["GetPresenceMulti", "retrieves", "multiple", "users", "presence", ".", "If", "the", "from", "address", "is", "an", "empty", "string", "the", "default", "(", "yourapp"], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/xmpp/xmpp.go#L204-L249", "partition": "test"} +{"repo": "golang/appengine", "path": "search/struct.go", "func_name": "newStructFLS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newStructFLS returns a FieldLoadSaver for the struct pointer p.", "docstring_tokens": ["newStructFLS", "returns", "a", "FieldLoadSaver", "for", "the", "struct", "pointer", "p", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/search/struct.go#L213-L223", "partition": "test"} +{"repo": "golang/appengine", "path": "search/struct.go", "func_name": "SaveStruct", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveStruct returns the fields from src as a slice of Field.\n// src must be a struct pointer.", "docstring_tokens": ["SaveStruct", "returns", "the", "fields", "from", "src", "as", "a", "slice", "of", "Field", ".", "src", "must", "be", "a", "struct", "pointer", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/search/struct.go#L248-L251", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/metadata.go", "func_name": "Namespaces", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Namespaces returns all the datastore namespaces.", "docstring_tokens": ["Namespaces", "returns", "all", "the", "datastore", "namespaces", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/metadata.go#L17-L27", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/metadata.go", "func_name": "Kinds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Kinds returns the names of all the kinds in the current namespace.", "docstring_tokens": ["Kinds", "returns", "the", "names", "of", "all", "the", "kinds", "in", "the", "current", "namespace", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/metadata.go#L30-L38", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/transaction.go", "func_name": "RunInTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunInTransaction runs f in a transaction. It calls f with a transaction\n// context tc that f should use for all App Engine operations.\n//\n// If f returns nil, RunInTransaction attempts to commit the transaction,\n// returning nil if it succeeds. If the commit fails due to a conflicting\n// transaction, RunInTransaction retries f, each time with a new transaction\n// context. It gives up and returns ErrConcurrentTransaction after three\n// failed attempts. The number of attempts can be configured by specifying\n// TransactionOptions.Attempts.\n//\n// If f returns non-nil, then any datastore changes will not be applied and\n// RunInTransaction returns that same error. The function f is not retried.\n//\n// Note that when f returns, the transaction is not yet committed. Calling code\n// must be careful not to assume that any of f's changes have been committed\n// until RunInTransaction returns nil.\n//\n// Since f may be called multiple times, f should usually be idempotent.\n// datastore.Get is not idempotent when unmarshaling slice fields.\n//\n// Nested transactions are not supported; c may not be a transaction context.", "docstring_tokens": ["RunInTransaction", "runs", "f", "in", "a", "transaction", ".", "It", "calls", "f", "with", "a", "transaction", "context", "tc", "that", "f", "should", "use", "for", "all", "App", "Engine", "operations", ".", "If", "f", "returns", "nil", "RunInTransaction", "attempts", "to", "commit", "the", "transaction", "returning", "nil", "if", "it", "succeeds", ".", "If", "the", "commit", "fails", "due", "to", "a", "conflicting", "transaction", "RunInTransaction", "retries", "f", "each", "time", "with", "a", "new", "transaction", "context", ".", "It", "gives", "up", "and", "returns", "ErrConcurrentTransaction", "after", "three", "failed", "attempts", ".", "The", "number", "of", "attempts", "can", "be", "configured", "by", "specifying", "TransactionOptions", ".", "Attempts", ".", "If", "f", "returns", "non", "-", "nil", "then", "any", "datastore", "changes", "will", "not", "be", "applied", "and", "RunInTransaction", "returns", "that", "same", "error", ".", "The", "function", "f", "is", "not", "retried", ".", "Note", "that", "when", "f", "returns", "the", "transaction", "is", "not", "yet", "committed", ".", "Calling", "code", "must", "be", "careful", "not", "to", "assume", "that", "any", "of", "f", "s", "changes", "have", "been", "committed", "until", "RunInTransaction", "returns", "nil", ".", "Since", "f", "may", "be", "called", "multiple", "times", "f", "should", "usually", "be", "idempotent", ".", "datastore", ".", "Get", "is", "not", "idempotent", "when", "unmarshaling", "slice", "fields", ".", "Nested", "transactions", "are", "not", "supported", ";", "c", "may", "not", "be", "a", "transaction", "context", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/transaction.go#L56-L77", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "imports", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// imports returns true if f imports path.", "docstring_tokens": ["imports", "returns", "true", "if", "f", "imports", "path", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L286-L288", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "importSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// importSpec returns the import spec if f imports path,\n// or nil otherwise.", "docstring_tokens": ["importSpec", "returns", "the", "import", "spec", "if", "f", "imports", "path", "or", "nil", "otherwise", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L292-L299", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "declImports", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// declImports reports whether gen contains an import of path.", "docstring_tokens": ["declImports", "reports", "whether", "gen", "contains", "an", "import", "of", "path", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L312-L323", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "isPkgDot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isPkgDot returns true if t is the expression \"pkg.name\"\n// where pkg is an imported identifier.", "docstring_tokens": ["isPkgDot", "returns", "true", "if", "t", "is", "the", "expression", "pkg", ".", "name", "where", "pkg", "is", "an", "imported", "identifier", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L327-L330", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "isTopName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isTopName returns true if n is a top-level unresolved identifier with the given name.", "docstring_tokens": ["isTopName", "returns", "true", "if", "n", "is", "a", "top", "-", "level", "unresolved", "identifier", "with", "the", "given", "name", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L340-L343", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "isName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isName returns true if n is an identifier with the given name.", "docstring_tokens": ["isName", "returns", "true", "if", "n", "is", "an", "identifier", "with", "the", "given", "name", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L346-L349", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "isCall", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isCall returns true if t is a call to pkg.name.", "docstring_tokens": ["isCall", "returns", "true", "if", "t", "is", "a", "call", "to", "pkg", ".", "name", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L352-L355", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "refersTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// refersTo returns true if n is a reference to the same object as x.", "docstring_tokens": ["refersTo", "returns", "true", "if", "n", "is", "a", "reference", "to", "the", "same", "object", "as", "x", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L364-L369", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "isEmptyString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isEmptyString returns true if n is an empty string literal.", "docstring_tokens": ["isEmptyString", "returns", "true", "if", "n", "is", "an", "empty", "string", "literal", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L377-L380", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "countUses", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// countUses returns the number of uses of the identifier x in scope.", "docstring_tokens": ["countUses", "returns", "the", "number", "of", "uses", "of", "the", "identifier", "x", "in", "scope", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L392-L403", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "assignsTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// assignsTo returns true if any of the code in scope assigns to or takes the address of x.", "docstring_tokens": ["assignsTo", "returns", "true", "if", "any", "of", "the", "code", "in", "scope", "assigns", "to", "or", "takes", "the", "address", "of", "x", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L434-L463", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "newPkgDot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newPkgDot returns an ast.Expr referring to \"pkg.name\" at position pos.", "docstring_tokens": ["newPkgDot", "returns", "an", "ast", ".", "Expr", "referring", "to", "pkg", ".", "name", "at", "position", "pos", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L466-L477", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "renameTop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// renameTop renames all references to the top-level name old.\n// It returns true if it makes any changes.", "docstring_tokens": ["renameTop", "renames", "all", "references", "to", "the", "top", "-", "level", "name", "old", ".", "It", "returns", "true", "if", "it", "makes", "any", "changes", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L481-L548", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "matchLen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// matchLen returns the length of the longest prefix shared by x and y.", "docstring_tokens": ["matchLen", "returns", "the", "length", "of", "the", "longest", "prefix", "shared", "by", "x", "and", "y", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L551-L557", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "deleteImport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// deleteImport deletes the import path from the file f, if present.", "docstring_tokens": ["deleteImport", "deletes", "the", "import", "path", "from", "the", "file", "f", "if", "present", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L644-L694", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aefix/fix.go", "func_name": "rewriteImport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rewriteImport rewrites any import of path oldPath to path newPath.", "docstring_tokens": ["rewriteImport", "rewrites", "any", "import", "of", "path", "oldPath", "to", "path", "newPath", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aefix/fix.go#L697-L708", "partition": "test"} +{"repo": "golang/appengine", "path": "internal/api.go", "func_name": "DefaultTicket", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultTicket returns a ticket used for background context or dev_appserver.", "docstring_tokens": ["DefaultTicket", "returns", "a", "ticket", "used", "for", "background", "context", "or", "dev_appserver", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/internal/api.go#L288-L303", "partition": "test"} +{"repo": "golang/appengine", "path": "internal/api.go", "func_name": "flushLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// flushLog attempts to flush any pending logs to the appserver.\n// It should not be called concurrently.", "docstring_tokens": ["flushLog", "attempts", "to", "flush", "any", "pending", "logs", "to", "the", "appserver", ".", "It", "should", "not", "be", "called", "concurrently", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/internal/api.go#L594-L647", "partition": "test"} +{"repo": "golang/appengine", "path": "socket/socket_classic.go", "func_name": "withDeadline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// withDeadline is like context.WithDeadline, except it ignores the zero deadline.", "docstring_tokens": ["withDeadline", "is", "like", "context", ".", "WithDeadline", "except", "it", "ignores", "the", "zero", "deadline", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/socket/socket_classic.go#L141-L146", "partition": "test"} +{"repo": "golang/appengine", "path": "socket/socket_classic.go", "func_name": "KeepAlive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeepAlive signals that the connection is still in use.\n// It may be called to prevent the socket being closed due to inactivity.", "docstring_tokens": ["KeepAlive", "signals", "that", "the", "connection", "is", "still", "in", "use", ".", "It", "may", "be", "called", "to", "prevent", "the", "socket", "being", "closed", "due", "to", "inactivity", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/socket/socket_classic.go#L280-L286", "partition": "test"} +{"repo": "golang/appengine", "path": "internal/transaction.go", "func_name": "applyTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// applyTransaction applies the transaction t to message pb\n// by using the relevant setter passed to RegisterTransactionSetter.", "docstring_tokens": ["applyTransaction", "applies", "the", "transaction", "t", "to", "message", "pb", "by", "using", "the", "relevant", "setter", "passed", "to", "RegisterTransactionSetter", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/internal/transaction.go#L32-L37", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aebundler/aebundler.go", "func_name": "analyze", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// analyze checks the app for building with the given build tags and returns hasMain,\n// app files, and a map of full directory import names to original import names.", "docstring_tokens": ["analyze", "checks", "the", "app", "for", "building", "with", "the", "given", "build", "tags", "and", "returns", "hasMain", "app", "files", "and", "a", "map", "of", "full", "directory", "import", "names", "to", "original", "import", "names", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aebundler/aebundler.go#L100-L113", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aebundler/aebundler.go", "func_name": "buildContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildContext returns the context for building the source.", "docstring_tokens": ["buildContext", "returns", "the", "context", "for", "building", "the", "source", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aebundler/aebundler.go#L116-L125", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aebundler/aebundler.go", "func_name": "synthesizeMain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// synthesizeMain generates a new main func and writes it to the tarball.", "docstring_tokens": ["synthesizeMain", "generates", "a", "new", "main", "func", "and", "writes", "it", "to", "the", "tarball", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aebundler/aebundler.go#L168-L195", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aebundler/aebundler.go", "func_name": "findInGopath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findInGopath searches the gopath for the named import directory.", "docstring_tokens": ["findInGopath", "searches", "the", "gopath", "for", "the", "named", "import", "directory", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aebundler/aebundler.go#L228-L236", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aebundler/aebundler.go", "func_name": "copyTree", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyTree copies srcDir to tar file dstDir, ignoring skipFiles.", "docstring_tokens": ["copyTree", "copies", "srcDir", "to", "tar", "file", "dstDir", "ignoring", "skipFiles", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aebundler/aebundler.go#L239-L262", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aebundler/aebundler.go", "func_name": "copyFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyFile copies src to tar file dst.", "docstring_tokens": ["copyFile", "copies", "src", "to", "tar", "file", "dst", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aebundler/aebundler.go#L265-L289", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aebundler/aebundler.go", "func_name": "checkMain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkMain verifies that there is a single \"main\" function.\n// It also returns a list of all Go source files in the app.", "docstring_tokens": ["checkMain", "verifies", "that", "there", "is", "a", "single", "main", "function", ".", "It", "also", "returns", "a", "list", "of", "all", "Go", "source", "files", "in", "the", "app", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aebundler/aebundler.go#L293-L312", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aebundler/aebundler.go", "func_name": "isMain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isMain returns whether the given function declaration is a main function.\n// Such a function must be called \"main\", not have a receiver, and have no arguments or return types.", "docstring_tokens": ["isMain", "returns", "whether", "the", "given", "function", "declaration", "is", "a", "main", "function", ".", "Such", "a", "function", "must", "be", "called", "main", "not", "have", "a", "receiver", "and", "have", "no", "arguments", "or", "return", "types", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aebundler/aebundler.go#L316-L319", "partition": "test"} +{"repo": "golang/appengine", "path": "cmd/aebundler/aebundler.go", "func_name": "readFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readFile reads and parses the Go source code file and returns whether it has a main function.", "docstring_tokens": ["readFile", "reads", "and", "parses", "the", "Go", "source", "code", "file", "and", "returns", "whether", "it", "has", "a", "main", "function", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/cmd/aebundler/aebundler.go#L322-L342", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/load.go", "func_name": "initField", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initField is similar to reflect's Value.FieldByIndex, in that it\n// returns the nested struct field corresponding to index, but it\n// initialises any nil pointers encountered when traversing the structure.", "docstring_tokens": ["initField", "is", "similar", "to", "reflect", "s", "Value", ".", "FieldByIndex", "in", "that", "it", "returns", "the", "nested", "struct", "field", "corresponding", "to", "index", "but", "it", "initialises", "any", "nil", "pointers", "encountered", "when", "traversing", "the", "structure", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/load.go#L285-L296", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/load.go", "func_name": "loadEntity", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loadEntity loads an EntityProto into PropertyLoadSaver or struct pointer.", "docstring_tokens": ["loadEntity", "loads", "an", "EntityProto", "into", "PropertyLoadSaver", "or", "struct", "pointer", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/load.go#L299-L308", "partition": "test"} +{"repo": "golang/appengine", "path": "search/search.go", "func_name": "validIndexNameOrDocID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validIndexNameOrDocID is the Go equivalent of Python's\n// _ValidateVisiblePrintableAsciiNotReserved.", "docstring_tokens": ["validIndexNameOrDocID", "is", "the", "Go", "equivalent", "of", "Python", "s", "_ValidateVisiblePrintableAsciiNotReserved", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/search/search.go#L57-L67", "partition": "test"} +{"repo": "golang/appengine", "path": "search/search.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open opens the index with the given name. The index is created if it does\n// not already exist.\n//\n// The name is a human-readable ASCII string. It must contain no whitespace\n// characters and not start with \"!\".", "docstring_tokens": ["Open", "opens", "the", "index", "with", "the", "given", "name", ".", "The", "index", "is", "created", "if", "it", "does", "not", "already", "exist", ".", "The", "name", "is", "a", "human", "-", "readable", "ASCII", "string", ".", "It", "must", "contain", "no", "whitespace", "characters", "and", "not", "start", "with", "!", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/search/search.go#L108-L117", "partition": "test"} +{"repo": "golang/appengine", "path": "search/search.go", "func_name": "Put", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Put saves src to the index. If id is empty, a new ID is allocated by the\n// service and returned. If id is not empty, any existing index entry for that\n// ID is replaced.\n//\n// The ID is a human-readable ASCII string. It must contain no whitespace\n// characters and not start with \"!\".\n//\n// src must be a non-nil struct pointer or implement the FieldLoadSaver\n// interface.", "docstring_tokens": ["Put", "saves", "src", "to", "the", "index", ".", "If", "id", "is", "empty", "a", "new", "ID", "is", "allocated", "by", "the", "service", "and", "returned", ".", "If", "id", "is", "not", "empty", "any", "existing", "index", "entry", "for", "that", "ID", "is", "replaced", ".", "The", "ID", "is", "a", "human", "-", "readable", "ASCII", "string", ".", "It", "must", "contain", "no", "whitespace", "characters", "and", "not", "start", "with", "!", ".", "src", "must", "be", "a", "non", "-", "nil", "struct", "pointer", "or", "implement", "the", "FieldLoadSaver", "interface", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/search/search.go#L128-L134", "partition": "test"} +{"repo": "golang/appengine", "path": "search/search.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get loads the document with the given ID into dst.\n//\n// The ID is a human-readable ASCII string. It must be non-empty, contain no\n// whitespace characters and not start with \"!\".\n//\n// dst must be a non-nil struct pointer or implement the FieldLoadSaver\n// interface.\n//\n// ErrFieldMismatch is returned when a field is to be loaded into a different\n// type than the one it was stored from, or when a field is missing or\n// unexported in the destination struct. ErrFieldMismatch is only returned if\n// dst is a struct pointer. It is up to the callee to decide whether this error\n// is fatal, recoverable, or ignorable.", "docstring_tokens": ["Get", "loads", "the", "document", "with", "the", "given", "ID", "into", "dst", ".", "The", "ID", "is", "a", "human", "-", "readable", "ASCII", "string", ".", "It", "must", "be", "non", "-", "empty", "contain", "no", "whitespace", "characters", "and", "not", "start", "with", "!", ".", "dst", "must", "be", "a", "non", "-", "nil", "struct", "pointer", "or", "implement", "the", "FieldLoadSaver", "interface", ".", "ErrFieldMismatch", "is", "returned", "when", "a", "field", "is", "to", "be", "loaded", "into", "a", "different", "type", "than", "the", "one", "it", "was", "stored", "from", "or", "when", "a", "field", "is", "missing", "or", "unexported", "in", "the", "destination", "struct", ".", "ErrFieldMismatch", "is", "only", "returned", "if", "dst", "is", "a", "struct", "pointer", ".", "It", "is", "up", "to", "the", "callee", "to", "decide", "whether", "this", "error", "is", "fatal", "recoverable", "or", "ignorable", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/search/search.go#L216-L238", "partition": "test"} +{"repo": "golang/appengine", "path": "search/search.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes a document from the index.", "docstring_tokens": ["Delete", "deletes", "a", "document", "from", "the", "index", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/search/search.go#L241-L243", "partition": "test"} +{"repo": "golang/appengine", "path": "search/search.go", "func_name": "DeleteMulti", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteMulti deletes multiple documents from the index.\n//\n// The returned error may be an instance of appengine.MultiError, in which case\n// it will be the same size as srcs and the individual errors inside will\n// correspond with the items in srcs.", "docstring_tokens": ["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", "and", "the", "individual", "errors", "inside", "will", "correspond", "with", "the", "items", "in", "srcs", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/search/search.go#L250-L280", "partition": "test"} +{"repo": "golang/appengine", "path": "search/search.go", "func_name": "Search", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Search searches the index for the given query.", "docstring_tokens": ["Search", "searches", "the", "index", "for", "the", "given", "query", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/search/search.go#L351-L376", "partition": "test"} +{"repo": "golang/appengine", "path": "search/search.go", "func_name": "fetchMore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fetchMore retrieves more results, if there are no errors or pending results.", "docstring_tokens": ["fetchMore", "retrieves", "more", "results", "if", "there", "are", "no", "errors", "or", "pending", "results", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/search/search.go#L826-L830", "partition": "test"} +{"repo": "golang/appengine", "path": "search/search.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next returns the ID of the next result. When there are no more results,\n// Done is returned as the error.\n//\n// dst must be a non-nil struct pointer, implement the FieldLoadSaver\n// interface, or be a nil interface value. If a non-nil dst is provided, it\n// will be filled with the indexed fields. dst is ignored if this iterator was\n// created with an IDsOnly option.", "docstring_tokens": ["Next", "returns", "the", "ID", "of", "the", "next", "result", ".", "When", "there", "are", "no", "more", "results", "Done", "is", "returned", "as", "the", "error", ".", "dst", "must", "be", "a", "non", "-", "nil", "struct", "pointer", "implement", "the", "FieldLoadSaver", "interface", "or", "be", "a", "nil", "interface", "value", ".", "If", "a", "non", "-", "nil", "dst", "is", "provided", "it", "will", "be", "filled", "with", "the", "indexed", "fields", ".", "dst", "is", "ignored", "if", "this", "iterator", "was", "created", "with", "an", "IDsOnly", "option", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/search/search.go#L839-L868", "partition": "test"} +{"repo": "golang/appengine", "path": "search/search.go", "func_name": "Facets", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Facets returns the facets found within the search results, if any facets\n// were requested in the SearchOptions.", "docstring_tokens": ["Facets", "returns", "the", "facets", "found", "within", "the", "search", "results", "if", "any", "facets", "were", "requested", "in", "the", "SearchOptions", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/search/search.go#L884-L909", "partition": "test"} +{"repo": "golang/appengine", "path": "file/file.go", "func_name": "DefaultBucketName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultBucketName returns the name of this application's\n// default Google Cloud Storage bucket.", "docstring_tokens": ["DefaultBucketName", "returns", "the", "name", "of", "this", "application", "s", "default", "Google", "Cloud", "Storage", "bucket", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/file/file.go#L19-L28", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/key.go", "func_name": "valid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// valid returns whether the key is valid.", "docstring_tokens": ["valid", "returns", "whether", "the", "key", "is", "valid", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/key.go#L91-L112", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/key.go", "func_name": "Equal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equal returns whether two keys are equal.", "docstring_tokens": ["Equal", "returns", "whether", "two", "keys", "are", "equal", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/key.go#L115-L123", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/key.go", "func_name": "root", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// root returns the furthest ancestor of a key, which may be itself.", "docstring_tokens": ["root", "returns", "the", "furthest", "ancestor", "of", "a", "key", "which", "may", "be", "itself", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/key.go#L126-L131", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/key.go", "func_name": "marshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// marshal marshals the key's string representation to the buffer.", "docstring_tokens": ["marshal", "marshals", "the", "key", "s", "string", "representation", "to", "the", "buffer", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/key.go#L134-L146", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/key.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a string representation of the key.", "docstring_tokens": ["String", "returns", "a", "string", "representation", "of", "the", "key", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/key.go#L149-L156", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/key.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode returns an opaque representation of the key\n// suitable for use in HTML and URLs.\n// This is compatible with the Python and Java runtimes.", "docstring_tokens": ["Encode", "returns", "an", "opaque", "representation", "of", "the", "key", "suitable", "for", "use", "in", "HTML", "and", "URLs", ".", "This", "is", "compatible", "with", "the", "Python", "and", "Java", "runtimes", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/key.go#L231-L241", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/key.go", "func_name": "DecodeKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodeKey decodes a key from the opaque representation returned by Encode.", "docstring_tokens": ["DecodeKey", "decodes", "a", "key", "from", "the", "opaque", "representation", "returned", "by", "Encode", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/key.go#L244-L261", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/key.go", "func_name": "NewIncompleteKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewIncompleteKey creates a new incomplete key.\n// kind cannot be empty.", "docstring_tokens": ["NewIncompleteKey", "creates", "a", "new", "incomplete", "key", ".", "kind", "cannot", "be", "empty", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/key.go#L265-L267", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/key.go", "func_name": "NewKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewKey creates a new key.\n// kind cannot be empty.\n// Either one or both of stringID and intID must be zero. If both are zero,\n// the key returned is incomplete.\n// parent must either be a complete key or nil.", "docstring_tokens": ["NewKey", "creates", "a", "new", "key", ".", "kind", "cannot", "be", "empty", ".", "Either", "one", "or", "both", "of", "stringID", "and", "intID", "must", "be", "zero", ".", "If", "both", "are", "zero", "the", "key", "returned", "is", "incomplete", ".", "parent", "must", "either", "be", "a", "complete", "key", "or", "nil", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/key.go#L274-L292", "partition": "test"} +{"repo": "golang/appengine", "path": "datastore/key.go", "func_name": "AllocateIDs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AllocateIDs returns a range of n integer IDs with the given kind and parent\n// combination. kind cannot be empty; parent may be nil. The IDs in the range\n// returned will not be used by the datastore's automatic ID sequence generator\n// and may be used with NewKey without conflict.\n//\n// The range is inclusive at the low end and exclusive at the high end. In\n// other words, valid intIDs x satisfy low <= x && x < high.\n//\n// If no error is returned, low + n == high.", "docstring_tokens": ["AllocateIDs", "returns", "a", "range", "of", "n", "integer", "IDs", "with", "the", "given", "kind", "and", "parent", "combination", ".", "kind", "cannot", "be", "empty", ";", "parent", "may", "be", "nil", ".", "The", "IDs", "in", "the", "range", "returned", "will", "not", "be", "used", "by", "the", "datastore", "s", "automatic", "ID", "sequence", "generator", "and", "may", "be", "used", "with", "NewKey", "without", "conflict", ".", "The", "range", "is", "inclusive", "at", "the", "low", "end", "and", "exclusive", "at", "the", "high", "end", ".", "In", "other", "words", "valid", "intIDs", "x", "satisfy", "low", "<", "=", "x", "&&", "x", "<", "high", ".", "If", "no", "error", "is", "returned", "low", "+", "n", "==", "high", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/datastore/key.go#L303-L329", "partition": "test"} +{"repo": "golang/appengine", "path": "errors.go", "func_name": "IsOverQuota", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsOverQuota reports whether err represents an API call failure\n// due to insufficient available quota.", "docstring_tokens": ["IsOverQuota", "reports", "whether", "err", "represents", "an", "API", "call", "failure", "due", "to", "insufficient", "available", "quota", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/errors.go#L17-L20", "partition": "test"} +{"repo": "golang/appengine", "path": "internal/api_classic.go", "func_name": "ClassicContextFromContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This is only for classic App Engine adapters.", "docstring_tokens": ["This", "is", "only", "for", "classic", "App", "Engine", "adapters", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/internal/api_classic.go#L33-L39", "partition": "test"} +{"repo": "golang/appengine", "path": "mail/mail.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends an email message.", "docstring_tokens": ["Send", "sends", "an", "email", "message", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/mail/mail.go#L68-L70", "partition": "test"} +{"repo": "golang/appengine", "path": "mail/mail.go", "func_name": "SendToAdmins", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendToAdmins sends an email message to the application's administrators.", "docstring_tokens": ["SendToAdmins", "sends", "an", "email", "message", "to", "the", "application", "s", "administrators", "."], "sha": "54a98f90d1c46b7731eb8fb305d2a321c30ef610", "url": "https://github.com/golang/appengine/blob/54a98f90d1c46b7731eb8fb305d2a321c30ef610/mail/mail.go#L73-L75", "partition": "test"} +{"repo": "jstemmer/go-junit-report", "path": "parser/parser.go", "func_name": "Failures", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Failures counts the number of failed tests in this report", "docstring_tokens": ["Failures", "counts", "the", "number", "of", "failed", "tests", "in", "this", "report"], "sha": "af01ea7f8024089b458d804d5cdf190f962a9a0c", "url": "https://github.com/jstemmer/go-junit-report/blob/af01ea7f8024089b458d804d5cdf190f962a9a0c/parser/parser.go#L291-L303", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "binary-decode.go", "func_name": "decodeFieldNumberAndTyp3", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read field key.", "docstring_tokens": ["Read", "field", "key", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/binary-decode.go#L891-L912", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "binary-decode.go", "func_name": "checkTyp3", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error if typ doesn't match rt.", "docstring_tokens": ["Error", "if", "typ", "doesn", "t", "match", "rt", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/binary-decode.go#L915-L921", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "binary-decode.go", "func_name": "decodeTyp3", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read typ3 byte.", "docstring_tokens": ["Read", "typ3", "byte", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/binary-decode.go#L924-L936", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "codec.go", "func_name": "NewPrefixBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy into PrefixBytes", "docstring_tokens": ["Copy", "into", "PrefixBytes"], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/codec.go#L32-L36", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "codec.go", "func_name": "getLengthStr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// A heuristic to guess the size of a registered type and return it as a string.\n// If the size is not fixed it returns \"variable\".", "docstring_tokens": ["A", "heuristic", "to", "guess", "the", "size", "of", "a", "registered", "type", "and", "return", "it", "as", "a", "string", ".", "If", "the", "size", "is", "not", "fixed", "it", "returns", "variable", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/codec.go#L307-L319", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "codec.go", "func_name": "collectImplementers_nolock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Find all conflicting prefixes for concrete types\n// that \"implement\" the interface. \"Implement\" in quotes because\n// we only consider the pointer, for extra safety.", "docstring_tokens": ["Find", "all", "conflicting", "prefixes", "for", "concrete", "types", "that", "implement", "the", "interface", ".", "Implement", "in", "quotes", "because", "we", "only", "consider", "the", "pointer", "for", "extra", "safety", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/codec.go#L617-L624", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "codec.go", "func_name": "checkConflictsInPrio_nolock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ensure that prefix-conflicting implementing concrete types\n// are all registered in the priority list.\n// Returns an error if a disamb conflict is found.", "docstring_tokens": ["Ensure", "that", "prefix", "-", "conflicting", "implementing", "concrete", "types", "are", "all", "registered", "in", "the", "priority", "list", ".", "Returns", "an", "error", "if", "a", "disamb", "conflict", "is", "found", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/codec.go#L629-L649", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "reflect.go", "func_name": "constructConcreteType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// constructConcreteType creates the concrete value as\n// well as the corresponding settable value for it.\n// Return irvSet which should be set on caller's interface rv.", "docstring_tokens": ["constructConcreteType", "creates", "the", "concrete", "value", "as", "well", "as", "the", "corresponding", "settable", "value", "for", "it", ".", "Return", "irvSet", "which", "should", "be", "set", "on", "caller", "s", "interface", "rv", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/reflect.go#L181-L192", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "amino.go", "func_name": "MarshalBinaryLengthPrefixedWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalBinaryLengthPrefixedWriter writes the bytes as would be returned from\n// MarshalBinaryLengthPrefixed to the writer w.", "docstring_tokens": ["MarshalBinaryLengthPrefixedWriter", "writes", "the", "bytes", "as", "would", "be", "returned", "from", "MarshalBinaryLengthPrefixed", "to", "the", "writer", "w", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/amino.go#L165-L174", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "amino.go", "func_name": "MarshalBinaryBare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalBinaryBare encodes the object o according to the Amino spec.\n// MarshalBinaryBare doesn't prefix the byte-length of the encoding,\n// so the caller must handle framing.", "docstring_tokens": ["MarshalBinaryBare", "encodes", "the", "object", "o", "according", "to", "the", "Amino", "spec", ".", "MarshalBinaryBare", "doesn", "t", "prefix", "the", "byte", "-", "length", "of", "the", "encoding", "so", "the", "caller", "must", "handle", "framing", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/amino.go#L188-L219", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "amino.go", "func_name": "UnmarshalBinaryLengthPrefixed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Like UnmarshalBinaryBare, but will first decode the byte-length prefix.\n// UnmarshalBinaryLengthPrefixed will panic if ptr is a nil-pointer.\n// Returns an error if not all of bz is consumed.", "docstring_tokens": ["Like", "UnmarshalBinaryBare", "but", "will", "first", "decode", "the", "byte", "-", "length", "prefix", ".", "UnmarshalBinaryLengthPrefixed", "will", "panic", "if", "ptr", "is", "a", "nil", "-", "pointer", ".", "Returns", "an", "error", "if", "not", "all", "of", "bz", "is", "consumed", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/amino.go#L233-L254", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "amino.go", "func_name": "UnmarshalBinaryBare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalBinaryBare will panic if ptr is a nil-pointer.", "docstring_tokens": ["UnmarshalBinaryBare", "will", "panic", "if", "ptr", "is", "a", "nil", "-", "pointer", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/amino.go#L321-L352", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "amino.go", "func_name": "MustMarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustMarshalJSON panics if an error occurs. Besides tha behaves exactly like MarshalJSON.", "docstring_tokens": ["MustMarshalJSON", "panics", "if", "an", "error", "occurs", ".", "Besides", "tha", "behaves", "exactly", "like", "MarshalJSON", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/amino.go#L403-L409", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "amino.go", "func_name": "MustUnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustUnmarshalJSON panics if an error occurs. Besides tha behaves exactly like UnmarshalJSON.", "docstring_tokens": ["MustUnmarshalJSON", "panics", "if", "an", "error", "occurs", ".", "Besides", "tha", "behaves", "exactly", "like", "UnmarshalJSON", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/amino.go#L443-L447", "partition": "test"} +{"repo": "tendermint/go-amino", "path": "amino.go", "func_name": "MarshalJSONIndent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSONIndent calls json.Indent on the output of cdc.MarshalJSON\n// using the given prefix and indent string.", "docstring_tokens": ["MarshalJSONIndent", "calls", "json", ".", "Indent", "on", "the", "output", "of", "cdc", ".", "MarshalJSON", "using", "the", "given", "prefix", "and", "indent", "string", "."], "sha": "dc14acf9ef15f85828bfbc561ed9dd9d2a284885", "url": "https://github.com/tendermint/go-amino/blob/dc14acf9ef15f85828bfbc561ed9dd9d2a284885/amino.go#L451-L462", "partition": "test"} +{"repo": "reiver/go-telnet", "path": "data_reader.go", "func_name": "newDataReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newDataReader creates a new DataReader reading from 'r'.", "docstring_tokens": ["newDataReader", "creates", "a", "new", "DataReader", "reading", "from", "r", "."], "sha": "9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c", "url": "https://github.com/reiver/go-telnet/blob/9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c/data_reader.go#L65-L74", "partition": "test"} +{"repo": "reiver/go-telnet", "path": "data_reader.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads the TELNET escaped data from the wrapped io.Reader, and \"un-escapes\" it into 'data'.", "docstring_tokens": ["Read", "reads", "the", "TELNET", "escaped", "data", "from", "the", "wrapped", "io", ".", "Reader", "and", "un", "-", "escapes", "it", "into", "data", "."], "sha": "9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c", "url": "https://github.com/reiver/go-telnet/blob/9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c/data_reader.go#L78-L173", "partition": "test"} +{"repo": "reiver/go-telnet", "path": "tls.go", "func_name": "ListenAndServeTLS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenAndServeTLS acts identically to ListenAndServe, except that it\n// uses the TELNET protocol over TLS.\n//\n// From a TELNET protocol point-of-view, it allows for 'secured telnet', also known as TELNETS,\n// which by default listens to port 992.", "docstring_tokens": ["ListenAndServeTLS", "acts", "identically", "to", "ListenAndServe", "except", "that", "it", "uses", "the", "TELNET", "protocol", "over", "TLS", ".", "From", "a", "TELNET", "protocol", "point", "-", "of", "-", "view", "it", "allows", "for", "secured", "telnet", "also", "known", "as", "TELNETS", "which", "by", "default", "listens", "to", "port", "992", "."], "sha": "9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c", "url": "https://github.com/reiver/go-telnet/blob/9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c/tls.go#L49-L113", "partition": "test"} +{"repo": "reiver/go-telnet", "path": "telsh/producer.go", "func_name": "Produce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Produce makes ProducerFunc fit the Producer interface.", "docstring_tokens": ["Produce", "makes", "ProducerFunc", "fit", "the", "Producer", "interface", "."], "sha": "9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c", "url": "https://github.com/reiver/go-telnet/blob/9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c/telsh/producer.go#L34-L36", "partition": "test"} +{"repo": "reiver/go-telnet", "path": "telsh/handler.go", "func_name": "PromoteHandlerFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PromoteHandlerFunc turns a HandlerFunc into a Handler.", "docstring_tokens": ["PromoteHandlerFunc", "turns", "a", "HandlerFunc", "into", "a", "Handler", "."], "sha": "9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c", "url": "https://github.com/reiver/go-telnet/blob/9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c/telsh/handler.go#L74-L101", "partition": "test"} +{"repo": "reiver/go-telnet", "path": "server.go", "func_name": "Serve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Serve accepts an incoming TELNET or TELNETS client connection on the net.Listener `listener`.", "docstring_tokens": ["Serve", "accepts", "an", "incoming", "TELNET", "or", "TELNETS", "client", "connection", "on", "the", "net", ".", "Listener", "listener", "."], "sha": "9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c", "url": "https://github.com/reiver/go-telnet/blob/9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c/server.go#L39-L43", "partition": "test"} +{"repo": "reiver/go-telnet", "path": "server.go", "func_name": "Serve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Serve accepts an incoming TELNET client connection on the net.Listener `listener`.", "docstring_tokens": ["Serve", "accepts", "an", "incoming", "TELNET", "client", "connection", "on", "the", "net", ".", "Listener", "listener", "."], "sha": "9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c", "url": "https://github.com/reiver/go-telnet/blob/9ff0b2ab096ebe42bf8e2ffd1366e7ed2223b04c/server.go#L125-L157", "partition": "test"} +{"repo": "alexflint/go-arg", "path": "usage.go", "func_name": "Fail", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fail prints usage information to stderr and exits with non-zero status", "docstring_tokens": ["Fail", "prints", "usage", "information", "to", "stderr", "and", "exits", "with", "non", "-", "zero", "status"], "sha": "fb1ae1c3e0bd00d45333c3d51384afc05846f7a0", "url": "https://github.com/alexflint/go-arg/blob/fb1ae1c3e0bd00d45333c3d51384afc05846f7a0/usage.go#L16-L20", "partition": "test"} +{"repo": "alexflint/go-arg", "path": "usage.go", "func_name": "WriteUsage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteUsage writes usage information to the given writer", "docstring_tokens": ["WriteUsage", "writes", "usage", "information", "to", "the", "given", "writer"], "sha": "fb1ae1c3e0bd00d45333c3d51384afc05846f7a0", "url": "https://github.com/alexflint/go-arg/blob/fb1ae1c3e0bd00d45333c3d51384afc05846f7a0/usage.go#L23-L70", "partition": "test"} +{"repo": "alexflint/go-arg", "path": "usage.go", "func_name": "WriteHelp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteHelp writes the usage string followed by the full help string for each option", "docstring_tokens": ["WriteHelp", "writes", "the", "usage", "string", "followed", "by", "the", "full", "help", "string", "for", "each", "option"], "sha": "fb1ae1c3e0bd00d45333c3d51384afc05846f7a0", "url": "https://github.com/alexflint/go-arg/blob/fb1ae1c3e0bd00d45333c3d51384afc05846f7a0/usage.go#L73-L117", "partition": "test"} +{"repo": "alexflint/go-arg", "path": "parse.go", "func_name": "MustParse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustParse processes command line arguments and exits upon failure", "docstring_tokens": ["MustParse", "processes", "command", "line", "arguments", "and", "exits", "upon", "failure"], "sha": "fb1ae1c3e0bd00d45333c3d51384afc05846f7a0", "url": "https://github.com/alexflint/go-arg/blob/fb1ae1c3e0bd00d45333c3d51384afc05846f7a0/parse.go#L37-L56", "partition": "test"} +{"repo": "alexflint/go-arg", "path": "parse.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse processes command line arguments and stores them in dest", "docstring_tokens": ["Parse", "processes", "command", "line", "arguments", "and", "stores", "them", "in", "dest"], "sha": "fb1ae1c3e0bd00d45333c3d51384afc05846f7a0", "url": "https://github.com/alexflint/go-arg/blob/fb1ae1c3e0bd00d45333c3d51384afc05846f7a0/parse.go#L59-L65", "partition": "test"} +{"repo": "alexflint/go-arg", "path": "parse.go", "func_name": "walkFields", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// walkFields calls a function for each field of a struct, recursively expanding struct fields.", "docstring_tokens": ["walkFields", "calls", "a", "function", "for", "each", "field", "of", "a", "struct", "recursively", "expanding", "struct", "fields", "."], "sha": "fb1ae1c3e0bd00d45333c3d51384afc05846f7a0", "url": "https://github.com/alexflint/go-arg/blob/fb1ae1c3e0bd00d45333c3d51384afc05846f7a0/parse.go#L105-L115", "partition": "test"} +{"repo": "alexflint/go-arg", "path": "parse.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse processes the given command line option, storing the results in the field\n// of the structs from which NewParser was constructed", "docstring_tokens": ["Parse", "processes", "the", "given", "command", "line", "option", "storing", "the", "results", "in", "the", "field", "of", "the", "structs", "from", "which", "NewParser", "was", "constructed"], "sha": "fb1ae1c3e0bd00d45333c3d51384afc05846f7a0", "url": "https://github.com/alexflint/go-arg/blob/fb1ae1c3e0bd00d45333c3d51384afc05846f7a0/parse.go#L237-L253", "partition": "test"} +{"repo": "alexflint/go-arg", "path": "parse.go", "func_name": "setSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parse a value as the appropriate type and store it in the struct", "docstring_tokens": ["parse", "a", "value", "as", "the", "appropriate", "type", "and", "store", "it", "in", "the", "struct"], "sha": "fb1ae1c3e0bd00d45333c3d51384afc05846f7a0", "url": "https://github.com/alexflint/go-arg/blob/fb1ae1c3e0bd00d45333c3d51384afc05846f7a0/parse.go#L449-L477", "partition": "test"} +{"repo": "alexflint/go-arg", "path": "parse.go", "func_name": "canParse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// canParse returns true if the type can be parsed from a string", "docstring_tokens": ["canParse", "returns", "true", "if", "the", "type", "can", "be", "parsed", "from", "a", "string"], "sha": "fb1ae1c3e0bd00d45333c3d51384afc05846f7a0", "url": "https://github.com/alexflint/go-arg/blob/fb1ae1c3e0bd00d45333c3d51384afc05846f7a0/parse.go#L480-L515", "partition": "test"} +{"repo": "alexflint/go-arg", "path": "parse.go", "func_name": "isBoolean", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isBoolean returns true if the type can be parsed from a single string", "docstring_tokens": ["isBoolean", "returns", "true", "if", "the", "type", "can", "be", "parsed", "from", "a", "single", "string"], "sha": "fb1ae1c3e0bd00d45333c3d51384afc05846f7a0", "url": "https://github.com/alexflint/go-arg/blob/fb1ae1c3e0bd00d45333c3d51384afc05846f7a0/parse.go#L520-L531", "partition": "test"} +{"repo": "armon/go-radix", "path": "radix.go", "func_name": "NewFromMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFromMap returns a new tree containing the keys\n// from an existing map", "docstring_tokens": ["NewFromMap", "returns", "a", "new", "tree", "containing", "the", "keys", "from", "an", "existing", "map"], "sha": "1a2de0c21c94309923825da3df33a4381872c795", "url": "https://github.com/armon/go-radix/blob/1a2de0c21c94309923825da3df33a4381872c795/radix.go#L116-L122", "partition": "test"} +{"repo": "armon/go-radix", "path": "radix.go", "func_name": "Insert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Insert is used to add a newentry or update\n// an existing entry. Returns if updated.", "docstring_tokens": ["Insert", "is", "used", "to", "add", "a", "newentry", "or", "update", "an", "existing", "entry", ".", "Returns", "if", "updated", "."], "sha": "1a2de0c21c94309923825da3df33a4381872c795", "url": "https://github.com/armon/go-radix/blob/1a2de0c21c94309923825da3df33a4381872c795/radix.go#L147-L233", "partition": "test"} +{"repo": "armon/go-radix", "path": "radix.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete is used to delete a key, returning the previous\n// value and if it was deleted", "docstring_tokens": ["Delete", "is", "used", "to", "delete", "a", "key", "returning", "the", "previous", "value", "and", "if", "it", "was", "deleted"], "sha": "1a2de0c21c94309923825da3df33a4381872c795", "url": "https://github.com/armon/go-radix/blob/1a2de0c21c94309923825da3df33a4381872c795/radix.go#L237-L290", "partition": "test"} +{"repo": "armon/go-radix", "path": "radix.go", "func_name": "DeletePrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeletePrefix is used to delete the subtree under a prefix\n// Returns how many nodes were deleted\n// Use this to delete large subtrees efficiently", "docstring_tokens": ["DeletePrefix", "is", "used", "to", "delete", "the", "subtree", "under", "a", "prefix", "Returns", "how", "many", "nodes", "were", "deleted", "Use", "this", "to", "delete", "large", "subtrees", "efficiently"], "sha": "1a2de0c21c94309923825da3df33a4381872c795", "url": "https://github.com/armon/go-radix/blob/1a2de0c21c94309923825da3df33a4381872c795/radix.go#L295-L297", "partition": "test"} +{"repo": "armon/go-radix", "path": "radix.go", "func_name": "deletePrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// delete does a recursive deletion", "docstring_tokens": ["delete", "does", "a", "recursive", "deletion"], "sha": "1a2de0c21c94309923825da3df33a4381872c795", "url": "https://github.com/armon/go-radix/blob/1a2de0c21c94309923825da3df33a4381872c795/radix.go#L300-L337", "partition": "test"} +{"repo": "armon/go-radix", "path": "radix.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get is used to lookup a specific key, returning\n// the value and if it was found", "docstring_tokens": ["Get", "is", "used", "to", "lookup", "a", "specific", "key", "returning", "the", "value", "and", "if", "it", "was", "found"], "sha": "1a2de0c21c94309923825da3df33a4381872c795", "url": "https://github.com/armon/go-radix/blob/1a2de0c21c94309923825da3df33a4381872c795/radix.go#L349-L375", "partition": "test"} +{"repo": "armon/go-radix", "path": "radix.go", "func_name": "LongestPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LongestPrefix is like Get, but instead of an\n// exact match, it will return the longest prefix match.", "docstring_tokens": ["LongestPrefix", "is", "like", "Get", "but", "instead", "of", "an", "exact", "match", "it", "will", "return", "the", "longest", "prefix", "match", "."], "sha": "1a2de0c21c94309923825da3df33a4381872c795", "url": "https://github.com/armon/go-radix/blob/1a2de0c21c94309923825da3df33a4381872c795/radix.go#L379-L411", "partition": "test"} +{"repo": "armon/go-radix", "path": "radix.go", "func_name": "Minimum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Minimum is used to return the minimum value in the tree", "docstring_tokens": ["Minimum", "is", "used", "to", "return", "the", "minimum", "value", "in", "the", "tree"], "sha": "1a2de0c21c94309923825da3df33a4381872c795", "url": "https://github.com/armon/go-radix/blob/1a2de0c21c94309923825da3df33a4381872c795/radix.go#L414-L427", "partition": "test"} +{"repo": "armon/go-radix", "path": "radix.go", "func_name": "WalkPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WalkPrefix is used to walk the tree under a prefix", "docstring_tokens": ["WalkPrefix", "is", "used", "to", "walk", "the", "tree", "under", "a", "prefix"], "sha": "1a2de0c21c94309923825da3df33a4381872c795", "url": "https://github.com/armon/go-radix/blob/1a2de0c21c94309923825da3df33a4381872c795/radix.go#L451-L480", "partition": "test"} +{"repo": "armon/go-radix", "path": "radix.go", "func_name": "recursiveWalk", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recursiveWalk is used to do a pre-order walk of a node\n// recursively. Returns true if the walk should be aborted", "docstring_tokens": ["recursiveWalk", "is", "used", "to", "do", "a", "pre", "-", "order", "walk", "of", "a", "node", "recursively", ".", "Returns", "true", "if", "the", "walk", "should", "be", "aborted"], "sha": "1a2de0c21c94309923825da3df33a4381872c795", "url": "https://github.com/armon/go-radix/blob/1a2de0c21c94309923825da3df33a4381872c795/radix.go#L517-L530", "partition": "test"} +{"repo": "armon/go-radix", "path": "radix.go", "func_name": "ToMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToMap is used to walk the tree and convert it into a map", "docstring_tokens": ["ToMap", "is", "used", "to", "walk", "the", "tree", "and", "convert", "it", "into", "a", "map"], "sha": "1a2de0c21c94309923825da3df33a4381872c795", "url": "https://github.com/armon/go-radix/blob/1a2de0c21c94309923825da3df33a4381872c795/radix.go#L533-L540", "partition": "test"} +{"repo": "ip2location/ip2location-go", "path": "ip2location.go", "func_name": "checkip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// get IP type and calculate IP number; calculates index too if exists", "docstring_tokens": ["get", "IP", "type", "and", "calculate", "IP", "number", ";", "calculates", "index", "too", "if", "exists"], "sha": "a417f19539fd2a0eb0adf273b4190241cacc0499", "url": "https://github.com/ip2location/ip2location-go/blob/a417f19539fd2a0eb0adf273b4190241cacc0499/ip2location.go#L150-L186", "partition": "test"} +{"repo": "ip2location/ip2location-go", "path": "ip2location.go", "func_name": "readuint32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// read unsigned 32-bit integer", "docstring_tokens": ["read", "unsigned", "32", "-", "bit", "integer"], "sha": "a417f19539fd2a0eb0adf273b4190241cacc0499", "url": "https://github.com/ip2location/ip2location-go/blob/a417f19539fd2a0eb0adf273b4190241cacc0499/ip2location.go#L201-L215", "partition": "test"} +{"repo": "ip2location/ip2location-go", "path": "ip2location.go", "func_name": "readuint128", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// read unsigned 128-bit integer", "docstring_tokens": ["read", "unsigned", "128", "-", "bit", "integer"], "sha": "a417f19539fd2a0eb0adf273b4190241cacc0499", "url": "https://github.com/ip2location/ip2location-go/blob/a417f19539fd2a0eb0adf273b4190241cacc0499/ip2location.go#L218-L233", "partition": "test"} +{"repo": "ip2location/ip2location-go", "path": "ip2location.go", "func_name": "loadmessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// populate record with message", "docstring_tokens": ["populate", "record", "with", "message"], "sha": "a417f19539fd2a0eb0adf273b4190241cacc0499", "url": "https://github.com/ip2location/ip2location-go/blob/a417f19539fd2a0eb0adf273b4190241cacc0499/ip2location.go#L389-L411", "partition": "test"} +{"repo": "ip2location/ip2location-go", "path": "ip2location.go", "func_name": "Printrecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// for debugging purposes", "docstring_tokens": ["for", "debugging", "purposes"], "sha": "a417f19539fd2a0eb0adf273b4190241cacc0499", "url": "https://github.com/ip2location/ip2location-go/blob/a417f19539fd2a0eb0adf273b4190241cacc0499/ip2location.go#L681-L702", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/gopher/gopher.go", "func_name": "Main", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Main draws a left hand and ear of a gopher. Afterwards it returns\n// the filename. This should only be used during testing.", "docstring_tokens": ["Main", "draws", "a", "left", "hand", "and", "ear", "of", "a", "gopher", ".", "Afterwards", "it", "returns", "the", "filename", ".", "This", "should", "only", "be", "used", "during", "testing", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/gopher/gopher.go#L17-L26", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dpdf/fileutil.go", "func_name": "SaveToPdfFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveToPdfFile creates and saves a pdf document to a file", "docstring_tokens": ["SaveToPdfFile", "creates", "and", "saves", "a", "pdf", "document", "to", "a", "file"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dpdf/fileutil.go#L9-L11", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "path.go", "func_name": "CubicCurveTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CubicCurveTo adds a cubic bezier curve to the current path", "docstring_tokens": ["CubicCurveTo", "adds", "a", "cubic", "bezier", "curve", "to", "the", "current", "path"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/path.go#L99-L107", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "path.go", "func_name": "ArcTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArcTo adds an arc to the path", "docstring_tokens": ["ArcTo", "adds", "an", "arc", "to", "the", "path"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/path.go#L110-L136", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "path.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a debug text view of the path", "docstring_tokens": ["String", "returns", "a", "debug", "text", "view", "of", "the", "path"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/path.go#L167-L192", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "path.go", "func_name": "VerticalFlip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns new Path with flipped y axes", "docstring_tokens": ["Returns", "new", "Path", "with", "flipped", "y", "axes"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/path.go#L195-L223", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dbase/text.go", "func_name": "NewGlyphCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGlyphCache initializes a GlyphCache", "docstring_tokens": ["NewGlyphCache", "initializes", "a", "GlyphCache"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dbase/text.go#L18-L23", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dbase/text.go", "func_name": "Fetch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch fetches a glyph from the cache, calling renderGlyph first if it doesn't already exist", "docstring_tokens": ["Fetch", "fetches", "a", "glyph", "from", "the", "cache", "calling", "renderGlyph", "first", "if", "it", "doesn", "t", "already", "exist"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dbase/text.go#L26-L34", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dbase/text.go", "func_name": "renderGlyph", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// renderGlyph renders a glyph then caches and returns it", "docstring_tokens": ["renderGlyph", "renders", "a", "glyph", "then", "caches", "and", "returns", "it"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dbase/text.go#L37-L47", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dbase/text.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy Returns a copy of a Glyph", "docstring_tokens": ["Copy", "Returns", "a", "copy", "of", "a", "Glyph"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dbase/text.go#L58-L63", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dbase/text.go", "func_name": "Fill", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fill copies a glyph from the cache, and fills it", "docstring_tokens": ["Fill", "copies", "a", "glyph", "from", "the", "cache", "and", "fills", "it"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dbase/text.go#L66-L73", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/line/line.go", "func_name": "Main", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Main draws vertically spaced lines and returns the filename.\n// This should only be used during testing.", "docstring_tokens": ["Main", "draws", "vertically", "spaced", "lines", "and", "returns", "the", "filename", ".", "This", "should", "only", "be", "used", "during", "testing", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/line/line.go#L17-L31", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/line/line.go", "func_name": "Draw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Draw vertically spaced lines", "docstring_tokens": ["Draw", "vertically", "spaced", "lines"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/line/line.go#L34-L39", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dgl/gc.go", "func_name": "Paint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Paint satisfies the Painter interface by painting ss onto an image.RGBA.", "docstring_tokens": ["Paint", "satisfies", "the", "Painter", "interface", "by", "painting", "ss", "onto", "an", "image", ".", "RGBA", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dgl/gc.go#L39-L80", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dgl/gc.go", "func_name": "SetColor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetColor sets the color to paint the spans.", "docstring_tokens": ["SetColor", "sets", "the", "color", "to", "paint", "the", "spans", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dgl/gc.go#L99-L112", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dgl/gc.go", "func_name": "NewPainter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRGBAPainter creates a new RGBAPainter for the given image.", "docstring_tokens": ["NewRGBAPainter", "creates", "a", "new", "RGBAPainter", "for", "the", "given", "image", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dgl/gc.go#L115-L120", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dgl/gc.go", "func_name": "GetStringBounds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStringBounds returns the approximate pixel bounds of the string s at x, y.\n// The the left edge of the em square of the first character of s\n// and the baseline intersect at 0, 0 in the returned coordinates.\n// Therefore the top and left coordinates may well be negative.", "docstring_tokens": ["GetStringBounds", "returns", "the", "approximate", "pixel", "bounds", "of", "the", "string", "s", "at", "x", "y", ".", "The", "the", "left", "edge", "of", "the", "em", "square", "of", "the", "first", "character", "of", "s", "and", "the", "baseline", "intersect", "at", "0", "0", "in", "the", "returned", "coordinates", ".", "Therefore", "the", "top", "and", "left", "coordinates", "may", "well", "be", "negative", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dgl/gc.go#L233-L266", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dgl/gc.go", "func_name": "recalc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recalc recalculates scale and bounds values from the font size, screen\n// resolution and font metrics, and invalidates the glyph cache.", "docstring_tokens": ["recalc", "recalculates", "scale", "and", "bounds", "values", "from", "the", "font", "size", "screen", "resolution", "and", "font", "metrics", "and", "invalidates", "the", "glyph", "cache", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dgl/gc.go#L297-L299", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dgl/gc.go", "func_name": "SetFont", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetFont sets the font used to draw text.", "docstring_tokens": ["SetFont", "sets", "the", "font", "used", "to", "draw", "text", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dgl/gc.go#L307-L309", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dsvg/gc.go", "func_name": "ClearRect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClearRect fills the specified rectangle with a default transparent color", "docstring_tokens": ["ClearRect", "fills", "the", "specified", "rectangle", "with", "a", "default", "transparent", "color"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dsvg/gc.go#L137-L147", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dsvg/gc.go", "func_name": "drawString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add text element to svg and returns its expected width", "docstring_tokens": ["Add", "text", "element", "to", "svg", "and", "returns", "its", "expected", "width"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dsvg/gc.go#L248-L274", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dsvg/gc.go", "func_name": "newGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Creates new group from current context\n// attach it to svg and return", "docstring_tokens": ["Creates", "new", "group", "from", "current", "context", "attach", "it", "to", "svg", "and", "return"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dsvg/gc.go#L278-L303", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dsvg/gc.go", "func_name": "newMask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// creates new mask attached to svg", "docstring_tokens": ["creates", "new", "mask", "attached", "to", "svg"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dsvg/gc.go#L306-L317", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dsvg/gc.go", "func_name": "embedSvgFont", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Embed svg font definition to svg tree itself\n// Or update existing if already exists for curent font data", "docstring_tokens": ["Embed", "svg", "font", "definition", "to", "svg", "tree", "itself", "Or", "update", "existing", "if", "already", "exists", "for", "curent", "font", "data"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dsvg/gc.go#L321-L372", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dbase/curve.go", "func_name": "TraceQuad", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TraceQuad generate lines subdividing the curve using a Liner\n// flattening_threshold helps determines the flattening expectation of the curve", "docstring_tokens": ["TraceQuad", "generate", "lines", "subdividing", "the", "curve", "using", "a", "Liner", "flattening_threshold", "helps", "determines", "the", "flattening", "expectation", "of", "the", "curve"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dbase/curve.go#L113-L143", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dbase/stack_gc.go", "func_name": "GetFontName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFontName gets the current FontData with fontSize as a string", "docstring_tokens": ["GetFontName", "gets", "the", "current", "FontData", "with", "fontSize", "as", "a", "string"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dbase/stack_gc.go#L45-L48", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dbase/stack_gc.go", "func_name": "NewStackGraphicContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "/**\n * Create a new Graphic context from an image\n */", "docstring_tokens": ["Create", "a", "new", "Graphic", "context", "from", "an", "image"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dbase/stack_gc.go#L54-L68", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "font.go", "func_name": "NewFolderFontCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFolderFontCache creates FolderFontCache", "docstring_tokens": ["NewFolderFontCache", "creates", "FolderFontCache"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/font.go#L129-L135", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "font.go", "func_name": "NewSyncFolderFontCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSyncFolderFontCache creates SyncFolderFontCache", "docstring_tokens": ["NewSyncFolderFontCache", "creates", "SyncFolderFontCache"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/font.go#L172-L178", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/gopher2/gopher2.go", "func_name": "Main", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Main draws a rotated face of the gopher. Afterwards it returns\n// the filename. This should only be used during testing.", "docstring_tokens": ["Main", "draws", "a", "rotated", "face", "of", "the", "gopher", ".", "Afterwards", "it", "returns", "the", "filename", ".", "This", "should", "only", "be", "used", "during", "testing", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/gopher2/gopher2.go#L20-L32", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dpdf/gc.go", "func_name": "NewPdf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPdf creates a new pdf document with the draw2d fontfolder, adds\n// a page and set fill color to white.", "docstring_tokens": ["NewPdf", "creates", "a", "new", "pdf", "document", "with", "the", "draw2d", "fontfolder", "adds", "a", "page", "and", "set", "fill", "color", "to", "white", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dpdf/gc.go#L47-L58", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dpdf/gc.go", "func_name": "clearRect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// clearRect draws a white rectangle", "docstring_tokens": ["clearRect", "draws", "a", "white", "rectangle"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dpdf/gc.go#L67-L78", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dpdf/gc.go", "func_name": "NewGraphicContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGraphicContext creates a new pdf GraphicContext", "docstring_tokens": ["NewGraphicContext", "creates", "a", "new", "pdf", "GraphicContext"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dpdf/gc.go#L89-L93", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dpdf/gc.go", "func_name": "Clear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clear draws a white rectangle over the whole page", "docstring_tokens": ["Clear", "draws", "a", "white", "rectangle", "over", "the", "whole", "page"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dpdf/gc.go#L111-L114", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dpdf/gc.go", "func_name": "GetStringBounds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStringBounds returns the approximate pixel bounds of the string s at x, y.\n// The left edge of the em square of the first character of s\n// and the baseline intersect at 0, 0 in the returned coordinates.\n// Therefore the top and left coordinates may well be negative.", "docstring_tokens": ["GetStringBounds", "returns", "the", "approximate", "pixel", "bounds", "of", "the", "string", "s", "at", "x", "y", ".", "The", "left", "edge", "of", "the", "em", "square", "of", "the", "first", "character", "of", "s", "and", "the", "baseline", "intersect", "at", "0", "0", "in", "the", "returned", "coordinates", ".", "Therefore", "the", "top", "and", "left", "coordinates", "may", "well", "be", "negative", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dpdf/gc.go#L146-L156", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dpdf/gc.go", "func_name": "CreateStringPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateStringPath creates a path from the string s at x, y, and returns the string width.", "docstring_tokens": ["CreateStringPath", "creates", "a", "path", "from", "the", "string", "s", "at", "x", "y", "and", "returns", "the", "string", "width", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dpdf/gc.go#L159-L169", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dpdf/gc.go", "func_name": "FillStringAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FillStringAt draws a string at x, y", "docstring_tokens": ["FillStringAt", "draws", "a", "string", "at", "x", "y"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dpdf/gc.go#L177-L179", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dpdf/gc.go", "func_name": "SetStrokeColor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// overwrite StackGraphicContext methods\n// SetStrokeColor sets the stroke color", "docstring_tokens": ["overwrite", "StackGraphicContext", "methods", "SetStrokeColor", "sets", "the", "stroke", "color"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dpdf/gc.go#L249-L252", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dpdf/gc.go", "func_name": "SetFillColor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetFillColor sets the fill and text color", "docstring_tokens": ["SetFillColor", "sets", "the", "fill", "and", "text", "color"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dpdf/gc.go#L255-L259", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dpdf/gc.go", "func_name": "SetLineDash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLineDash sets the line dash pattern", "docstring_tokens": ["SetLineDash", "sets", "the", "line", "dash", "pattern"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dpdf/gc.go#L302-L305", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dpdf/gc.go", "func_name": "SetLineWidth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLineWidth sets the line width", "docstring_tokens": ["SetLineWidth", "sets", "the", "line", "width"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dpdf/gc.go#L308-L311", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/helloworld/helloworld.go", "func_name": "Main", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Main draws \"Hello World\" and returns the filename. This should only be\n// used during testing.", "docstring_tokens": ["Main", "draws", "Hello", "World", "and", "returns", "the", "filename", ".", "This", "should", "only", "be", "used", "during", "testing", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/helloworld/helloworld.go#L19-L25", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/helloworld/helloworld.go", "func_name": "Draw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Draw \"Hello World\"", "docstring_tokens": ["Draw", "Hello", "World"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/helloworld/helloworld.go#L28-L40", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dimg/fileutil.go", "func_name": "SaveToPngFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveToPngFile create and save an image to a file using PNG format", "docstring_tokens": ["SaveToPngFile", "create", "and", "save", "an", "image", "to", "a", "file", "using", "PNG", "format"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dimg/fileutil.go#L11-L30", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dimg/fileutil.go", "func_name": "LoadFromPngFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadFromPngFile Open a png file", "docstring_tokens": ["LoadFromPngFile", "Open", "a", "png", "file"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dimg/fileutil.go#L33-L46", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/samples.go", "func_name": "Resource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Resource returns a resource filename for testing.", "docstring_tokens": ["Resource", "returns", "a", "resource", "filename", "for", "testing", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/samples.go#L9-L15", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/samples.go", "func_name": "Output", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Output returns the output filename for testing.", "docstring_tokens": ["Output", "returns", "the", "output", "filename", "for", "testing", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/samples.go#L18-L24", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/postscript/postscript.go", "func_name": "Main", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Main draws the tiger", "docstring_tokens": ["Main", "draws", "the", "tiger"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/postscript/postscript.go#L16-L33", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/postscript/postscript.go", "func_name": "Draw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Draw a tiger", "docstring_tokens": ["Draw", "a", "tiger"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/postscript/postscript.go#L36-L49", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/geometry/geometry.go", "func_name": "Main", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Main draws geometry and returns the filename. This should only be\n// used during testing.", "docstring_tokens": ["Main", "draws", "geometry", "and", "returns", "the", "filename", ".", "This", "should", "only", "be", "used", "during", "testing", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/geometry/geometry.go#L20-L26", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/geometry/geometry.go", "func_name": "Bubble", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Bubble draws a text balloon.", "docstring_tokens": ["Bubble", "draws", "a", "text", "balloon", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/geometry/geometry.go#L29-L39", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/geometry/geometry.go", "func_name": "Dash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dash draws a line with a dash pattern", "docstring_tokens": ["Dash", "draws", "a", "line", "with", "a", "dash", "pattern"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/geometry/geometry.go#L91-L106", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/geometry/geometry.go", "func_name": "CubicCurve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CubicCurve draws a cubic curve with its control points.", "docstring_tokens": ["CubicCurve", "draws", "a", "cubic", "curve", "with", "its", "control", "points", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/geometry/geometry.go#L166-L189", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/geometry/geometry.go", "func_name": "FillStroke", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FillStroke first fills and afterwards strokes a path.", "docstring_tokens": ["FillStroke", "first", "fills", "and", "afterwards", "strokes", "a", "path", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/geometry/geometry.go#L231-L249", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/geometry/geometry.go", "func_name": "FillStyle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FillStyle demonstrates the difference between even odd and non zero winding rule.", "docstring_tokens": ["FillStyle", "demonstrates", "the", "difference", "between", "even", "odd", "and", "non", "zero", "winding", "rule", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/geometry/geometry.go#L257-L282", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/geometry/geometry.go", "func_name": "PathTransform", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PathTransform scales a path differently in horizontal and vertical direction.", "docstring_tokens": ["PathTransform", "scales", "a", "path", "differently", "in", "horizontal", "and", "vertical", "direction", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/geometry/geometry.go#L285-L294", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/geometry/geometry.go", "func_name": "Star", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Star draws many lines from a center.", "docstring_tokens": ["Star", "draws", "many", "lines", "from", "a", "center", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/geometry/geometry.go#L297-L310", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/geometry/geometry.go", "func_name": "Draw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Draw all figures in a nice 4x3 grid.", "docstring_tokens": ["Draw", "all", "figures", "in", "a", "nice", "4x3", "grid", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/geometry/geometry.go#L313-L344", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dpdf/path_converter.go", "func_name": "ConvertPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConvertPath converts a paths to the pdf api", "docstring_tokens": ["ConvertPath", "converts", "a", "paths", "to", "the", "pdf", "api"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dpdf/path_converter.go#L15-L44", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/linecapjoin/linecapjoin.go", "func_name": "Main", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Main draws the different line caps and joins.\n// This should only be used during testing.", "docstring_tokens": ["Main", "draws", "the", "different", "line", "caps", "and", "joins", ".", "This", "should", "only", "be", "used", "during", "testing", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/linecapjoin/linecapjoin.go#L16-L29", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/linecapjoin/linecapjoin.go", "func_name": "Draw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Draw a line with an angle with specified line cap and join", "docstring_tokens": ["Draw", "a", "line", "with", "an", "angle", "with", "specified", "line", "cap", "and", "join"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/linecapjoin/linecapjoin.go#L32-L52", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dimg/text.go", "func_name": "DrawContour", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DrawContour draws the given closed contour at the given sub-pixel offset.", "docstring_tokens": ["DrawContour", "draws", "the", "given", "closed", "contour", "at", "the", "given", "sub", "-", "pixel", "offset", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dimg/text.go#L11-L44", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dbase/flattener.go", "func_name": "Flatten", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flatten convert curves into straight segments keeping join segments info", "docstring_tokens": ["Flatten", "convert", "curves", "into", "straight", "segments", "keeping", "join", "segments", "info"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dbase/flattener.go#L31-L72", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dimg/ftgc.go", "func_name": "Clear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clear fills the current canvas with a default transparent color", "docstring_tokens": ["Clear", "fills", "the", "current", "canvas", "with", "a", "default", "transparent", "color"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dimg/ftgc.go#L92-L95", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dimg/ftgc.go", "func_name": "ClearRect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClearRect fills the current canvas with a default transparent color at the specified rectangle", "docstring_tokens": ["ClearRect", "fills", "the", "current", "canvas", "with", "a", "default", "transparent", "color", "at", "the", "specified", "rectangle"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dimg/ftgc.go#L98-L101", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "draw2dimg/ftgc.go", "func_name": "DrawImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DrawImage draws an image into dest using an affine transformation matrix, an op and a filter", "docstring_tokens": ["DrawImage", "draws", "an", "image", "into", "dest", "using", "an", "affine", "transformation", "matrix", "an", "op", "and", "a", "filter"], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/draw2dimg/ftgc.go#L104-L115", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/frameimage/frameimage.go", "func_name": "Main", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Main draws the image frame and returns the filename.\n// This should only be used during testing.", "docstring_tokens": ["Main", "draws", "the", "image", "frame", "and", "returns", "the", "filename", ".", "This", "should", "only", "be", "used", "during", "testing", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/frameimage/frameimage.go#L18-L32", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/frameimage/frameimage.go", "func_name": "Draw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Draw the image frame with certain parameters.", "docstring_tokens": ["Draw", "the", "image", "frame", "with", "certain", "parameters", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/frameimage/frameimage.go#L35-L60", "partition": "test"} +{"repo": "llgcode/draw2d", "path": "samples/android/android.go", "func_name": "Draw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Draw the droid on a certain position.", "docstring_tokens": ["Draw", "the", "droid", "on", "a", "certain", "position", "."], "sha": "f52c8a71aff06ab8df41843d33ab167b36c971cd", "url": "https://github.com/llgcode/draw2d/blob/f52c8a71aff06ab8df41843d33ab167b36c971cd/samples/android/android.go#L27-L76", "partition": "test"} +{"repo": "OneOfOne/xxhash", "path": "xxhash_unsafe.go", "func_name": "ChecksumString32S", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChecksumString32S returns the checksum of the input data, without creating a copy, with the specific seed.", "docstring_tokens": ["ChecksumString32S", "returns", "the", "checksum", "of", "the", "input", "data", "without", "creating", "a", "copy", "with", "the", "specific", "seed", "."], "sha": "c1e3185f167680b62832a0a11938a04b1ab265fc", "url": "https://github.com/OneOfOne/xxhash/blob/c1e3185f167680b62832a0a11938a04b1ab265fc/xxhash_unsafe.go#L20-L26", "partition": "test"} +{"repo": "OneOfOne/xxhash", "path": "xxhash_unsafe.go", "func_name": "ChecksumString64S", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChecksumString64S returns the checksum of the input data, without creating a copy, with the specific seed.", "docstring_tokens": ["ChecksumString64S", "returns", "the", "checksum", "of", "the", "input", "data", "without", "creating", "a", "copy", "with", "the", "specific", "seed", "."], "sha": "c1e3185f167680b62832a0a11938a04b1ab265fc", "url": "https://github.com/OneOfOne/xxhash/blob/c1e3185f167680b62832a0a11938a04b1ab265fc/xxhash_unsafe.go#L38-L45", "partition": "test"} +{"repo": "OneOfOne/xxhash", "path": "xxhash.go", "func_name": "NewS32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewS32 creates a new hash.Hash32 computing the 32bit xxHash checksum starting with the specific seed.", "docstring_tokens": ["NewS32", "creates", "a", "new", "hash", ".", "Hash32", "computing", "the", "32bit", "xxHash", "checksum", "starting", "with", "the", "specific", "seed", "."], "sha": "c1e3185f167680b62832a0a11938a04b1ab265fc", "url": "https://github.com/OneOfOne/xxhash/blob/c1e3185f167680b62832a0a11938a04b1ab265fc/xxhash.go#L56-L62", "partition": "test"} +{"repo": "OneOfOne/xxhash", "path": "xxhash.go", "func_name": "NewS64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewS64 creates a new hash.Hash64 computing the 64bit xxHash checksum starting with the specific seed.", "docstring_tokens": ["NewS64", "creates", "a", "new", "hash", ".", "Hash64", "computing", "the", "64bit", "xxHash", "checksum", "starting", "with", "the", "specific", "seed", "."], "sha": "c1e3185f167680b62832a0a11938a04b1ab265fc", "url": "https://github.com/OneOfOne/xxhash/blob/c1e3185f167680b62832a0a11938a04b1ab265fc/xxhash.go#L116-L122", "partition": "test"} +{"repo": "OneOfOne/xxhash", "path": "xxhash.go", "func_name": "round64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// borrowed from cespare", "docstring_tokens": ["borrowed", "from", "cespare"], "sha": "c1e3185f167680b62832a0a11938a04b1ab265fc", "url": "https://github.com/OneOfOne/xxhash/blob/c1e3185f167680b62832a0a11938a04b1ab265fc/xxhash.go#L177-L182", "partition": "test"} +{"repo": "OneOfOne/xxhash", "path": "xxhash_go17.go", "func_name": "Checksum32S", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Checksum32S returns the checksum of the input bytes with the specific seed.", "docstring_tokens": ["Checksum32S", "returns", "the", "checksum", "of", "the", "input", "bytes", "with", "the", "specific", "seed", "."], "sha": "c1e3185f167680b62832a0a11938a04b1ab265fc", "url": "https://github.com/OneOfOne/xxhash/blob/c1e3185f167680b62832a0a11938a04b1ab265fc/xxhash_go17.go#L12-L62", "partition": "test"} +{"repo": "OneOfOne/xxhash", "path": "xxhash_go17.go", "func_name": "Checksum64S", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Checksum64S returns the 64bit xxhash checksum for a single input", "docstring_tokens": ["Checksum64S", "returns", "the", "64bit", "xxhash", "checksum", "for", "a", "single", "input"], "sha": "c1e3185f167680b62832a0a11938a04b1ab265fc", "url": "https://github.com/OneOfOne/xxhash/blob/c1e3185f167680b62832a0a11938a04b1ab265fc/xxhash_go17.go#L151-L161", "partition": "test"} +{"repo": "VividCortex/godaemon", "path": "daemon.go", "func_name": "getStage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the current stage in the \"daemonization process\", that's kept in\n// an environment variable. The variable is instrumented with a digital\n// signature, to avoid misbehavior if it was present in the user's\n// environment. The original value is restored after the last stage, so that\n// there's no final effect on the environment the application receives.", "docstring_tokens": ["Returns", "the", "current", "stage", "in", "the", "daemonization", "process", "that", "s", "kept", "in", "an", "environment", "variable", ".", "The", "variable", "is", "instrumented", "with", "a", "digital", "signature", "to", "avoid", "misbehavior", "if", "it", "was", "present", "in", "the", "user", "s", "environment", ".", "The", "original", "value", "is", "restored", "after", "the", "last", "stage", "so", "that", "there", "s", "no", "final", "effect", "on", "the", "environment", "the", "application", "receives", "."], "sha": "3d9f6e0b234fe7d17448b345b2e14ac05814a758", "url": "https://github.com/VividCortex/godaemon/blob/3d9f6e0b234fe7d17448b345b2e14ac05814a758/daemon.go#L342-L386", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns plain glg instance", "docstring_tokens": ["New", "returns", "plain", "glg", "instance"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L177-L254", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns singleton glg instance", "docstring_tokens": ["Get", "returns", "singleton", "glg", "instance"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L257-L263", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "SetMode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMode sets glg logging mode", "docstring_tokens": ["SetMode", "sets", "glg", "logging", "mode"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L266-L276", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "SetPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetPrefix set Print logger prefix", "docstring_tokens": ["SetPrefix", "set", "Print", "logger", "prefix"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L297-L305", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "GetCurrentMode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCurrentMode returns current logging mode", "docstring_tokens": ["GetCurrentMode", "returns", "current", "logging", "mode"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L308-L314", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "InitWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitWriter is initialize glg writer", "docstring_tokens": ["InitWriter", "is", "initialize", "glg", "writer"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L317-L326", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "SetWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetWriter sets writer to glg std writers", "docstring_tokens": ["SetWriter", "sets", "writer", "to", "glg", "std", "writers"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L329-L343", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "SetLevelColor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLevelColor sets the color for each level", "docstring_tokens": ["SetLevelColor", "sets", "the", "color", "for", "each", "level"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L367-L376", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "SetLevelWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLevelWriter sets writer to glg std writer per logging level", "docstring_tokens": ["SetLevelWriter", "sets", "writer", "to", "glg", "std", "writer", "per", "logging", "level"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L379-L393", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "AddStdLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddStdLevel adds std log level and returns LEVEL", "docstring_tokens": ["AddStdLevel", "adds", "std", "log", "level", "and", "returns", "LEVEL"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L417-L432", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "EnableColor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnableColor enables color output", "docstring_tokens": ["EnableColor", "enables", "color", "output"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L453-L464", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "EnableLevelColor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnableLevelColor enables color output", "docstring_tokens": ["EnableLevelColor", "enables", "color", "output"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L481-L490", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "DisableLevelColor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DisableLevelColor disables color output", "docstring_tokens": ["DisableLevelColor", "disables", "color", "output"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L493-L502", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "RawString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RawString returns raw log string exclude time & tags", "docstring_tokens": ["RawString", "returns", "raw", "log", "string", "exclude", "time", "&", "tags"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L505-L508", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "TagStringToLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TagStringToLevel converts level string to Glg.LEVEL", "docstring_tokens": ["TagStringToLevel", "converts", "level", "string", "to", "Glg", ".", "LEVEL"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L516-L522", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "Println", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Println outputs fixed line Print log", "docstring_tokens": ["Println", "outputs", "fixed", "line", "Print", "log"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L949-L951", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "Fatal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fatal outputs Failed log and exit program", "docstring_tokens": ["Fatal", "outputs", "Failed", "log", "and", "exit", "program"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L1039-L1048", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "Fatalf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fatalf outputs formatted Failed log and exit program", "docstring_tokens": ["Fatalf", "outputs", "formatted", "Failed", "log", "and", "exit", "program"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L1063-L1072", "partition": "test"} +{"repo": "kpango/glg", "path": "glg.go", "func_name": "isModeEnable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isModeEnable returns the level has already turned on the logging", "docstring_tokens": ["isModeEnable", "returns", "the", "level", "has", "already", "turned", "on", "the", "logging"], "sha": "68d2670cb2dbff047331daad841149a82ac37796", "url": "https://github.com/kpango/glg/blob/68d2670cb2dbff047331daad841149a82ac37796/glg.go#L1119-L1121", "partition": "test"} +{"repo": "felixge/httpsnoop", "path": "capture_metrics.go", "func_name": "CaptureMetrics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CaptureMetrics wraps the given hnd, executes it with the given w and r, and\n// returns the metrics it captured from it.", "docstring_tokens": ["CaptureMetrics", "wraps", "the", "given", "hnd", "executes", "it", "with", "the", "given", "w", "and", "r", "and", "returns", "the", "metrics", "it", "captured", "from", "it", "."], "sha": "eadd4fad6aac69ae62379194fe0219f3dbc80fd3", "url": "https://github.com/felixge/httpsnoop/blob/eadd4fad6aac69ae62379194fe0219f3dbc80fd3/capture_metrics.go#L28-L32", "partition": "test"} +{"repo": "adamzy/cedar-go", "path": "cedar.go", "func_name": "get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get value by key, insert the key if not exist", "docstring_tokens": ["Get", "value", "by", "key", "insert", "the", "key", "if", "not", "exist"], "sha": "80a9c64b256db37ac20aff007907c649afb714f1", "url": "https://github.com/adamzy/cedar-go/blob/80a9c64b256db37ac20aff007907c649afb714f1/cedar.go#L72-L85", "partition": "test"} +{"repo": "adamzy/cedar-go", "path": "io.go", "func_name": "Save", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Save saves the cedar to an io.Writer,\n// where dataType is either \"json\" or \"gob\".", "docstring_tokens": ["Save", "saves", "the", "cedar", "to", "an", "io", ".", "Writer", "where", "dataType", "is", "either", "json", "or", "gob", "."], "sha": "80a9c64b256db37ac20aff007907c649afb714f1", "url": "https://github.com/adamzy/cedar-go/blob/80a9c64b256db37ac20aff007907c649afb714f1/io.go#L13-L23", "partition": "test"} +{"repo": "adamzy/cedar-go", "path": "io.go", "func_name": "SaveToFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveToFile saves the cedar to a file,\n// where dataType is either \"json\" or \"gob\".", "docstring_tokens": ["SaveToFile", "saves", "the", "cedar", "to", "a", "file", "where", "dataType", "is", "either", "json", "or", "gob", "."], "sha": "80a9c64b256db37ac20aff007907c649afb714f1", "url": "https://github.com/adamzy/cedar-go/blob/80a9c64b256db37ac20aff007907c649afb714f1/io.go#L27-L37", "partition": "test"} +{"repo": "adamzy/cedar-go", "path": "io.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load loads the cedar from an io.Writer,\n// where dataType is either \"json\" or \"gob\".", "docstring_tokens": ["Load", "loads", "the", "cedar", "from", "an", "io", ".", "Writer", "where", "dataType", "is", "either", "json", "or", "gob", "."], "sha": "80a9c64b256db37ac20aff007907c649afb714f1", "url": "https://github.com/adamzy/cedar-go/blob/80a9c64b256db37ac20aff007907c649afb714f1/io.go#L41-L51", "partition": "test"} +{"repo": "adamzy/cedar-go", "path": "io.go", "func_name": "LoadFromFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadFromFile loads the cedar from a file,\n// where dataType is either \"json\" or \"gob\".", "docstring_tokens": ["LoadFromFile", "loads", "the", "cedar", "from", "a", "file", "where", "dataType", "is", "either", "json", "or", "gob", "."], "sha": "80a9c64b256db37ac20aff007907c649afb714f1", "url": "https://github.com/adamzy/cedar-go/blob/80a9c64b256db37ac20aff007907c649afb714f1/io.go#L55-L63", "partition": "test"} +{"repo": "adamzy/cedar-go", "path": "api.go", "func_name": "Key", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Key returns the key of the node with the given `id`.\n// It will return ErrNoPath, if the node does not exist.", "docstring_tokens": ["Key", "returns", "the", "key", "of", "the", "node", "with", "the", "given", "id", ".", "It", "will", "return", "ErrNoPath", "if", "the", "node", "does", "not", "exist", "."], "sha": "80a9c64b256db37ac20aff007907c649afb714f1", "url": "https://github.com/adamzy/cedar-go/blob/80a9c64b256db37ac20aff007907c649afb714f1/api.go#L47-L65", "partition": "test"} +{"repo": "adamzy/cedar-go", "path": "api.go", "func_name": "Value", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Value returns the value of the node with the given `id`.\n// It will return ErrNoValue, if the node does not have a value.", "docstring_tokens": ["Value", "returns", "the", "value", "of", "the", "node", "with", "the", "given", "id", ".", "It", "will", "return", "ErrNoValue", "if", "the", "node", "does", "not", "have", "a", "value", "."], "sha": "80a9c64b256db37ac20aff007907c649afb714f1", "url": "https://github.com/adamzy/cedar-go/blob/80a9c64b256db37ac20aff007907c649afb714f1/api.go#L69-L79", "partition": "test"} +{"repo": "adamzy/cedar-go", "path": "api.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete removes a key-value pair from the cedar.\n// It will return ErrNoPath, if the key has not been added.", "docstring_tokens": ["Delete", "removes", "a", "key", "-", "value", "pair", "from", "the", "cedar", ".", "It", "will", "return", "ErrNoPath", "if", "the", "key", "has", "not", "been", "added", "."], "sha": "80a9c64b256db37ac20aff007907c649afb714f1", "url": "https://github.com/adamzy/cedar-go/blob/80a9c64b256db37ac20aff007907c649afb714f1/api.go#L114-L147", "partition": "test"} +{"repo": "coreos/go-semver", "path": "semver/semver.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set parses and updates v from the given version string. Implements flag.Value", "docstring_tokens": ["Set", "parses", "and", "updates", "v", "from", "the", "given", "version", "string", ".", "Implements", "flag", ".", "Value"], "sha": "e214231b295a8ea9479f11b70b35d5acf3556d9b", "url": "https://github.com/coreos/go-semver/blob/e214231b295a8ea9479f11b70b35d5acf3556d9b/semver/semver.go#L71-L104", "partition": "test"} +{"repo": "coreos/go-semver", "path": "semver/semver.go", "func_name": "Compare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compare tests if v is less than, equal to, or greater than versionB,\n// returning -1, 0, or +1 respectively.", "docstring_tokens": ["Compare", "tests", "if", "v", "is", "less", "than", "equal", "to", "or", "greater", "than", "versionB", "returning", "-", "1", "0", "or", "+", "1", "respectively", "."], "sha": "e214231b295a8ea9479f11b70b35d5acf3556d9b", "url": "https://github.com/coreos/go-semver/blob/e214231b295a8ea9479f11b70b35d5acf3556d9b/semver/semver.go#L147-L152", "partition": "test"} +{"repo": "coreos/go-semver", "path": "semver/semver.go", "func_name": "Slice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Slice converts the comparable parts of the semver into a slice of integers.", "docstring_tokens": ["Slice", "converts", "the", "comparable", "parts", "of", "the", "semver", "into", "a", "slice", "of", "integers", "."], "sha": "e214231b295a8ea9479f11b70b35d5acf3556d9b", "url": "https://github.com/coreos/go-semver/blob/e214231b295a8ea9479f11b70b35d5acf3556d9b/semver/semver.go#L165-L167", "partition": "test"} +{"repo": "coreos/go-semver", "path": "semver/semver.go", "func_name": "BumpMajor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BumpMajor increments the Major field by 1 and resets all other fields to their default values", "docstring_tokens": ["BumpMajor", "increments", "the", "Major", "field", "by", "1", "and", "resets", "all", "other", "fields", "to", "their", "default", "values"], "sha": "e214231b295a8ea9479f11b70b35d5acf3556d9b", "url": "https://github.com/coreos/go-semver/blob/e214231b295a8ea9479f11b70b35d5acf3556d9b/semver/semver.go#L263-L269", "partition": "test"} +{"repo": "coreos/go-semver", "path": "semver/semver.go", "func_name": "BumpMinor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BumpMinor increments the Minor field by 1 and resets all other fields to their default values", "docstring_tokens": ["BumpMinor", "increments", "the", "Minor", "field", "by", "1", "and", "resets", "all", "other", "fields", "to", "their", "default", "values"], "sha": "e214231b295a8ea9479f11b70b35d5acf3556d9b", "url": "https://github.com/coreos/go-semver/blob/e214231b295a8ea9479f11b70b35d5acf3556d9b/semver/semver.go#L272-L277", "partition": "test"} +{"repo": "coreos/go-semver", "path": "semver/semver.go", "func_name": "BumpPatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BumpPatch increments the Patch field by 1 and resets all other fields to their default values", "docstring_tokens": ["BumpPatch", "increments", "the", "Patch", "field", "by", "1", "and", "resets", "all", "other", "fields", "to", "their", "default", "values"], "sha": "e214231b295a8ea9479f11b70b35d5acf3556d9b", "url": "https://github.com/coreos/go-semver/blob/e214231b295a8ea9479f11b70b35d5acf3556d9b/semver/semver.go#L280-L284", "partition": "test"} +{"repo": "coreos/go-semver", "path": "semver/semver.go", "func_name": "validateIdentifier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validateIdentifier makes sure the provided identifier satisfies semver spec", "docstring_tokens": ["validateIdentifier", "makes", "sure", "the", "provided", "identifier", "satisfies", "semver", "spec"], "sha": "e214231b295a8ea9479f11b70b35d5acf3556d9b", "url": "https://github.com/coreos/go-semver/blob/e214231b295a8ea9479f11b70b35d5acf3556d9b/semver/semver.go#L287-L292", "partition": "test"} +{"repo": "r3labs/sse", "path": "stream.go", "func_name": "newStream", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newStream returns a new stream", "docstring_tokens": ["newStream", "returns", "a", "new", "stream"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/stream.go#L27-L37", "partition": "test"} +{"repo": "r3labs/sse", "path": "stream.go", "func_name": "addSubscriber", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addSubscriber will create a new subscriber on a stream", "docstring_tokens": ["addSubscriber", "will", "create", "a", "new", "subscriber", "on", "a", "stream"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/stream.go#L90-L99", "partition": "test"} +{"repo": "r3labs/sse", "path": "server.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New will create a server and setup defaults", "docstring_tokens": ["New", "will", "create", "a", "server", "and", "setup", "defaults"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/server.go#L33-L40", "partition": "test"} +{"repo": "r3labs/sse", "path": "server.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close shuts down the server, closes all of the streams and connections", "docstring_tokens": ["Close", "shuts", "down", "the", "server", "closes", "all", "of", "the", "streams", "and", "connections"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/server.go#L43-L51", "partition": "test"} +{"repo": "r3labs/sse", "path": "server.go", "func_name": "CreateStream", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateStream will create a new stream and register it", "docstring_tokens": ["CreateStream", "will", "create", "a", "new", "stream", "and", "register", "it"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/server.go#L54-L68", "partition": "test"} +{"repo": "r3labs/sse", "path": "server.go", "func_name": "RemoveStream", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveStream will remove a stream", "docstring_tokens": ["RemoveStream", "will", "remove", "a", "stream"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/server.go#L71-L79", "partition": "test"} +{"repo": "r3labs/sse", "path": "server.go", "func_name": "StreamExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StreamExists checks whether a stream by a given id exists", "docstring_tokens": ["StreamExists", "checks", "whether", "a", "stream", "by", "a", "given", "id", "exists"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/server.go#L82-L87", "partition": "test"} +{"repo": "r3labs/sse", "path": "server.go", "func_name": "Publish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Publish sends a mesage to every client in a streamID", "docstring_tokens": ["Publish", "sends", "a", "mesage", "to", "every", "client", "in", "a", "streamID"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/server.go#L90-L96", "partition": "test"} +{"repo": "r3labs/sse", "path": "client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient creates a new client", "docstring_tokens": ["NewClient", "creates", "a", "new", "client"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/client.go#L44-L51", "partition": "test"} +{"repo": "r3labs/sse", "path": "client.go", "func_name": "Subscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subscribe to a data stream", "docstring_tokens": ["Subscribe", "to", "a", "data", "stream"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/client.go#L54-L93", "partition": "test"} +{"repo": "r3labs/sse", "path": "client.go", "func_name": "SubscribeChan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SubscribeChan sends all events to the provided channel", "docstring_tokens": ["SubscribeChan", "sends", "all", "events", "to", "the", "provided", "channel"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/client.go#L96-L168", "partition": "test"} +{"repo": "r3labs/sse", "path": "client.go", "func_name": "SubscribeRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SubscribeRaw to an sse endpoint", "docstring_tokens": ["SubscribeRaw", "to", "an", "sse", "endpoint"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/client.go#L171-L173", "partition": "test"} +{"repo": "r3labs/sse", "path": "client.go", "func_name": "Unsubscribe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unsubscribe unsubscribes a channel", "docstring_tokens": ["Unsubscribe", "unsubscribes", "a", "channel"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/client.go#L181-L188", "partition": "test"} +{"repo": "r3labs/sse", "path": "event.go", "func_name": "NewEventStreamReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEventStreamReader creates an instance of EventStreamReader.", "docstring_tokens": ["NewEventStreamReader", "creates", "an", "instance", "of", "EventStreamReader", "."], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/event.go#L31-L61", "partition": "test"} +{"repo": "r3labs/sse", "path": "event.go", "func_name": "ReadEvent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadEvent scans the EventStream for events.", "docstring_tokens": ["ReadEvent", "scans", "the", "EventStream", "for", "events", "."], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/event.go#L64-L73", "partition": "test"} +{"repo": "r3labs/sse", "path": "http.go", "func_name": "HTTPHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTPHandler serves new connections with events for a given stream ...", "docstring_tokens": ["HTTPHandler", "serves", "new", "connections", "with", "events", "for", "a", "given", "stream", "..."], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/http.go#L14-L87", "partition": "test"} +{"repo": "r3labs/sse", "path": "event_log.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add event to eventlog", "docstring_tokens": ["Add", "event", "to", "eventlog"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/event_log.go#L16-L20", "partition": "test"} +{"repo": "r3labs/sse", "path": "event_log.go", "func_name": "Replay", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Replay events to a subscriber", "docstring_tokens": ["Replay", "events", "to", "a", "subscriber"], "sha": "2f90368216802092e9ed520c43e974e11d50438d", "url": "https://github.com/r3labs/sse/blob/2f90368216802092e9ed520c43e974e11d50438d/event_log.go#L28-L34", "partition": "test"} +{"repo": "google/acme", "path": "config.go", "func_name": "readKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readKey reads a private rsa key from path.\n// The key is expected to be in PEM format.", "docstring_tokens": ["readKey", "reads", "a", "private", "rsa", "key", "from", "path", ".", "The", "key", "is", "expected", "to", "be", "in", "PEM", "format", "."], "sha": "7c6dfc908d68ed254a16c126f6770f4d9d9352da", "url": "https://github.com/google/acme/blob/7c6dfc908d68ed254a16c126f6770f4d9d9352da/config.go#L106-L123", "partition": "test"} +{"repo": "google/acme", "path": "config.go", "func_name": "writeKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeKey writes k to the specified path in PEM format.\n// If file does not exists, it will be created with 0600 mod.", "docstring_tokens": ["writeKey", "writes", "k", "to", "the", "specified", "path", "in", "PEM", "format", ".", "If", "file", "does", "not", "exists", "it", "will", "be", "created", "with", "0600", "mod", "."], "sha": "7c6dfc908d68ed254a16c126f6770f4d9d9352da", "url": "https://github.com/google/acme/blob/7c6dfc908d68ed254a16c126f6770f4d9d9352da/config.go#L127-L142", "partition": "test"} +{"repo": "google/acme", "path": "config.go", "func_name": "anyKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// anyKey reads the key from file or generates a new one if gen == true.\n// It returns an error if filename exists but cannot be read.\n// A newly generated key is also stored to filename.", "docstring_tokens": ["anyKey", "reads", "the", "key", "from", "file", "or", "generates", "a", "new", "one", "if", "gen", "==", "true", ".", "It", "returns", "an", "error", "if", "filename", "exists", "but", "cannot", "be", "read", ".", "A", "newly", "generated", "key", "is", "also", "stored", "to", "filename", "."], "sha": "7c6dfc908d68ed254a16c126f6770f4d9d9352da", "url": "https://github.com/google/acme/blob/7c6dfc908d68ed254a16c126f6770f4d9d9352da/config.go#L147-L160", "partition": "test"} +{"repo": "google/acme", "path": "config.go", "func_name": "sameDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sameDir returns filename path placing it in the same dir as existing file.", "docstring_tokens": ["sameDir", "returns", "filename", "path", "placing", "it", "in", "the", "same", "dir", "as", "existing", "file", "."], "sha": "7c6dfc908d68ed254a16c126f6770f4d9d9352da", "url": "https://github.com/google/acme/blob/7c6dfc908d68ed254a16c126f6770f4d9d9352da/config.go#L163-L165", "partition": "test"} +{"repo": "google/acme", "path": "config.go", "func_name": "printAccount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printAccount outputs account into into w using tabwriter.", "docstring_tokens": ["printAccount", "outputs", "account", "into", "into", "w", "using", "tabwriter", "."], "sha": "7c6dfc908d68ed254a16c126f6770f4d9d9352da", "url": "https://github.com/google/acme/blob/7c6dfc908d68ed254a16c126f6770f4d9d9352da/config.go#L168-L183", "partition": "test"} +{"repo": "google/acme", "path": "usage.go", "func_name": "tmpl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tmpl executes the given template text on data, writing the result to w.", "docstring_tokens": ["tmpl", "executes", "the", "given", "template", "text", "on", "data", "writing", "the", "result", "to", "w", "."], "sha": "7c6dfc908d68ed254a16c126f6770f4d9d9352da", "url": "https://github.com/google/acme/blob/7c6dfc908d68ed254a16c126f6770f4d9d9352da/usage.go#L85-L104", "partition": "test"} +{"repo": "google/acme", "path": "usage.go", "func_name": "printUsage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printUsage prints usageTemplate to w.", "docstring_tokens": ["printUsage", "prints", "usageTemplate", "to", "w", "."], "sha": "7c6dfc908d68ed254a16c126f6770f4d9d9352da", "url": "https://github.com/google/acme/blob/7c6dfc908d68ed254a16c126f6770f4d9d9352da/usage.go#L121-L125", "partition": "test"} +{"repo": "tomasen/realip", "path": "realip.go", "func_name": "FromRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromRequest return client's real public IP address from http request headers.", "docstring_tokens": ["FromRequest", "return", "client", "s", "real", "public", "IP", "address", "from", "http", "request", "headers", "."], "sha": "f0c99a92ddcedd3964a269d23c8e89d9a9229be6", "url": "https://github.com/tomasen/realip/blob/f0c99a92ddcedd3964a269d23c8e89d9a9229be6/realip.go#L53-L84", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domstorage/domstorage.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOMStorage.clear against the provided context.", "docstring_tokens": ["Do", "executes", "DOMStorage", ".", "clear", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domstorage/domstorage.go#L35-L37", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domstorage/domstorage.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOMStorage.disable against the provided context.", "docstring_tokens": ["Do", "executes", "DOMStorage", ".", "disable", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domstorage/domstorage.go#L52-L54", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domstorage/domstorage.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOMStorage.removeDOMStorageItem against the provided context.", "docstring_tokens": ["Do", "executes", "DOMStorage", ".", "removeDOMStorageItem", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domstorage/domstorage.go#L131-L133", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domstorage/domstorage.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOMStorage.setDOMStorageItem against the provided context.", "docstring_tokens": ["Do", "executes", "DOMStorage", ".", "setDOMStorageItem", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domstorage/domstorage.go#L159-L161", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "serviceworker/serviceworker.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes ServiceWorker.deliverPushMessage against the provided context.", "docstring_tokens": ["Do", "executes", "ServiceWorker", ".", "deliverPushMessage", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L39-L41", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "serviceworker/serviceworker.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes ServiceWorker.dispatchSyncEvent against the provided context.", "docstring_tokens": ["Do", "executes", "ServiceWorker", ".", "dispatchSyncEvent", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L85-L87", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "serviceworker/serviceworker.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes ServiceWorker.inspectWorker against the provided context.", "docstring_tokens": ["Do", "executes", "ServiceWorker", ".", "inspectWorker", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L122-L124", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "serviceworker/serviceworker.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes ServiceWorker.setForceUpdateOnPageLoad against the provided context.", "docstring_tokens": ["Do", "executes", "ServiceWorker", ".", "setForceUpdateOnPageLoad", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L144-L146", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "serviceworker/serviceworker.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes ServiceWorker.skipWaiting against the provided context.", "docstring_tokens": ["Do", "executes", "ServiceWorker", ".", "skipWaiting", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L166-L168", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "serviceworker/serviceworker.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes ServiceWorker.startWorker against the provided context.", "docstring_tokens": ["Do", "executes", "ServiceWorker", ".", "startWorker", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L188-L190", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "serviceworker/serviceworker.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes ServiceWorker.stopAllWorkers against the provided context.", "docstring_tokens": ["Do", "executes", "ServiceWorker", ".", "stopAllWorkers", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L203-L205", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "serviceworker/serviceworker.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes ServiceWorker.stopWorker against the provided context.", "docstring_tokens": ["Do", "executes", "ServiceWorker", ".", "stopWorker", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L225-L227", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "serviceworker/serviceworker.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes ServiceWorker.unregister against the provided context.", "docstring_tokens": ["Do", "executes", "ServiceWorker", ".", "unregister", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L247-L249", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "serviceworker/serviceworker.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes ServiceWorker.updateRegistration against the provided context.", "docstring_tokens": ["Do", "executes", "ServiceWorker", ".", "updateRegistration", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L269-L271", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "tethering/tethering.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Tethering.bind against the provided context.", "docstring_tokens": ["Do", "executes", "Tethering", ".", "bind", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/tethering/tethering.go#L35-L37", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "tethering/tethering.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Tethering.unbind against the provided context.", "docstring_tokens": ["Do", "executes", "Tethering", ".", "unbind", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/tethering/tethering.go#L57-L59", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/types.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error satisfies the error interface.", "docstring_tokens": ["Error", "satisfies", "the", "error", "interface", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/types.go#L182-L186", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "animation/animation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Animation.releaseAnimations against the provided context.", "docstring_tokens": ["Do", "executes", "Animation", ".", "releaseAnimations", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/animation/animation.go#L133-L135", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "animation/animation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Animation.seekAnimations against the provided context.", "docstring_tokens": ["Do", "executes", "Animation", ".", "seekAnimations", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/animation/animation.go#L197-L199", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "animation/animation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Animation.setPaused against the provided context.", "docstring_tokens": ["Do", "executes", "Animation", ".", "setPaused", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/animation/animation.go#L222-L224", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "animation/animation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Animation.setPlaybackRate against the provided context.", "docstring_tokens": ["Do", "executes", "Animation", ".", "setPlaybackRate", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/animation/animation.go#L244-L246", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "animation/animation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Animation.setTiming against the provided context.", "docstring_tokens": ["Do", "executes", "Animation", ".", "setTiming", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/animation/animation.go#L272-L274", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "memory/memory.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Memory.prepareForLeakDetection against the provided context.", "docstring_tokens": ["Do", "executes", "Memory", ".", "prepareForLeakDetection", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L60-L62", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "memory/memory.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Memory.forciblyPurgeJavaScriptMemory against the provided context.", "docstring_tokens": ["Do", "executes", "Memory", ".", "forciblyPurgeJavaScriptMemory", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L77-L79", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "memory/memory.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Memory.setPressureNotificationsSuppressed against the provided context.", "docstring_tokens": ["Do", "executes", "Memory", ".", "setPressureNotificationsSuppressed", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L101-L103", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "memory/memory.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Memory.simulatePressureNotification against the provided context.", "docstring_tokens": ["Do", "executes", "Memory", ".", "simulatePressureNotification", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L125-L127", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "memory/memory.go", "func_name": "WithSamplingInterval", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithSamplingInterval average number of bytes between samples.", "docstring_tokens": ["WithSamplingInterval", "average", "number", "of", "bytes", "between", "samples", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L145-L148", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "memory/memory.go", "func_name": "WithSuppressRandomness", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithSuppressRandomness do not randomize intervals between samples.", "docstring_tokens": ["WithSuppressRandomness", "do", "not", "randomize", "intervals", "between", "samples", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L151-L154", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "memory/memory.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Memory.startSampling against the provided context.", "docstring_tokens": ["Do", "executes", "Memory", ".", "startSampling", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L157-L159", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "memory/memory.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Memory.stopSampling against the provided context.", "docstring_tokens": ["Do", "executes", "Memory", ".", "stopSampling", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L172-L174", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "deviceorientation/deviceorientation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DeviceOrientation.clearDeviceOrientationOverride against the provided context.", "docstring_tokens": ["Do", "executes", "DeviceOrientation", ".", "clearDeviceOrientationOverride", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/deviceorientation/deviceorientation.go#L27-L29", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "deviceorientation/deviceorientation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DeviceOrientation.setDeviceOrientationOverride against the provided context.", "docstring_tokens": ["Do", "executes", "DeviceOrientation", ".", "setDeviceOrientationOverride", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/deviceorientation/deviceorientation.go#L55-L57", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "log/log.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Log.startViolationsReport against the provided context.", "docstring_tokens": ["Do", "executes", "Log", ".", "startViolationsReport", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/log/log.go#L84-L86", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "log/log.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Log.stopViolationsReport against the provided context.", "docstring_tokens": ["Do", "executes", "Log", ".", "stopViolationsReport", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/log/log.go#L99-L101", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "input/types.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the Modifier as string value.", "docstring_tokens": ["String", "returns", "the", "Modifier", "as", "string", "value", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/types.go#L127-L142", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "accessibility/accessibility.go", "func_name": "WithNodeID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithNodeID identifier of the node to get the partial accessibility tree\n// for.", "docstring_tokens": ["WithNodeID", "identifier", "of", "the", "node", "to", "get", "the", "partial", "accessibility", "tree", "for", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/accessibility/accessibility.go#L71-L74", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "accessibility/accessibility.go", "func_name": "WithBackendNodeID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBackendNodeID identifier of the backend node to get the partial\n// accessibility tree for.", "docstring_tokens": ["WithBackendNodeID", "identifier", "of", "the", "backend", "node", "to", "get", "the", "partial", "accessibility", "tree", "for", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/accessibility/accessibility.go#L78-L81", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "accessibility/accessibility.go", "func_name": "WithObjectID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithObjectID JavaScript object id of the node wrapper to get the partial\n// accessibility tree for.", "docstring_tokens": ["WithObjectID", "JavaScript", "object", "id", "of", "the", "node", "wrapper", "to", "get", "the", "partial", "accessibility", "tree", "for", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/accessibility/accessibility.go#L85-L88", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "accessibility/accessibility.go", "func_name": "WithFetchRelatives", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithFetchRelatives whether to fetch this nodes ancestors, siblings and\n// children. Defaults to true.", "docstring_tokens": ["WithFetchRelatives", "whether", "to", "fetch", "this", "nodes", "ancestors", "siblings", "and", "children", ".", "Defaults", "to", "true", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/accessibility/accessibility.go#L92-L95", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "performance/performance.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Performance.setTimeDomain against the provided context.", "docstring_tokens": ["Do", "executes", "Performance", ".", "setTimeDomain", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/performance/performance.go#L69-L71", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "layertree/layertree.go", "func_name": "WithClipRect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithClipRect the clip rectangle to apply when replaying the snapshot.", "docstring_tokens": ["WithClipRect", "the", "clip", "rectangle", "to", "apply", "when", "replaying", "the", "snapshot", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/layertree/layertree.go#L194-L197", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "layertree/layertree.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes LayerTree.releaseSnapshot against the provided context.", "docstring_tokens": ["Do", "executes", "LayerTree", ".", "releaseSnapshot", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/layertree/layertree.go#L237-L239", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "indexeddb/indexeddb.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes IndexedDB.clearObjectStore against the provided context.", "docstring_tokens": ["Do", "executes", "IndexedDB", ".", "clearObjectStore", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/indexeddb/indexeddb.go#L39-L41", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "indexeddb/indexeddb.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes IndexedDB.deleteDatabase against the provided context.", "docstring_tokens": ["Do", "executes", "IndexedDB", ".", "deleteDatabase", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/indexeddb/indexeddb.go#L64-L66", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "indexeddb/indexeddb.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes IndexedDB.deleteObjectStoreEntries against the provided context.", "docstring_tokens": ["Do", "executes", "IndexedDB", ".", "deleteObjectStoreEntries", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/indexeddb/indexeddb.go#L96-L98", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "indexeddb/indexeddb.go", "func_name": "WithKeyRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithKeyRange key range.", "docstring_tokens": ["WithKeyRange", "key", "range", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/indexeddb/indexeddb.go#L164-L167", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "profiler/profiler.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Profiler.setSamplingInterval against the provided context.", "docstring_tokens": ["Do", "executes", "Profiler", ".", "setSamplingInterval", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L97-L99", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "profiler/profiler.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Profiler.start against the provided context.", "docstring_tokens": ["Do", "executes", "Profiler", ".", "start", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L112-L114", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "profiler/profiler.go", "func_name": "WithCallCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithCallCount collect accurate call counts beyond simple 'covered' or 'not\n// covered'.", "docstring_tokens": ["WithCallCount", "collect", "accurate", "call", "counts", "beyond", "simple", "covered", "or", "not", "covered", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L137-L140", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "profiler/profiler.go", "func_name": "WithDetailed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithDetailed collect block-based coverage.", "docstring_tokens": ["WithDetailed", "collect", "block", "-", "based", "coverage", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L143-L146", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "profiler/profiler.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Profiler.startPreciseCoverage against the provided context.", "docstring_tokens": ["Do", "executes", "Profiler", ".", "startPreciseCoverage", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L149-L151", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "profiler/profiler.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Profiler.startTypeProfile against the provided context.", "docstring_tokens": ["Do", "executes", "Profiler", ".", "startTypeProfile", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L164-L166", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "profiler/profiler.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Profiler.stopPreciseCoverage against the provided context.", "docstring_tokens": ["Do", "executes", "Profiler", ".", "stopPreciseCoverage", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L212-L214", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "profiler/profiler.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Profiler.stopTypeProfile against the provided context.", "docstring_tokens": ["Do", "executes", "Profiler", ".", "stopTypeProfile", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L229-L231", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "security/security.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Security.setIgnoreCertificateErrors against the provided context.", "docstring_tokens": ["Do", "executes", "Security", ".", "setIgnoreCertificateErrors", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/security/security.go#L67-L69", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "heapprofiler/heapprofiler.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes HeapProfiler.addInspectedHeapObject against the provided context.", "docstring_tokens": ["Do", "executes", "HeapProfiler", ".", "addInspectedHeapObject", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L36-L38", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "heapprofiler/heapprofiler.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes HeapProfiler.collectGarbage against the provided context.", "docstring_tokens": ["Do", "executes", "HeapProfiler", ".", "collectGarbage", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L51-L53", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "heapprofiler/heapprofiler.go", "func_name": "WithSamplingInterval", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithSamplingInterval average sample interval in bytes. Poisson\n// distribution is used for the intervals. The default value is 32768 bytes.", "docstring_tokens": ["WithSamplingInterval", "average", "sample", "interval", "in", "bytes", ".", "Poisson", "distribution", "is", "used", "for", "the", "intervals", ".", "The", "default", "value", "is", "32768", "bytes", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L213-L216", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "heapprofiler/heapprofiler.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes HeapProfiler.startTrackingHeapObjects against the provided context.", "docstring_tokens": ["Do", "executes", "HeapProfiler", ".", "startTrackingHeapObjects", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L244-L246", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "heapprofiler/heapprofiler.go", "func_name": "WithReportProgress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithReportProgress if true 'reportHeapSnapshotProgress' events will be\n// generated while snapshot is being taken when the tracking is stopped.", "docstring_tokens": ["WithReportProgress", "if", "true", "reportHeapSnapshotProgress", "events", "will", "be", "generated", "while", "snapshot", "is", "being", "taken", "when", "the", "tracking", "is", "stopped", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L294-L297", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "heapprofiler/heapprofiler.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes HeapProfiler.stopTrackingHeapObjects against the provided context.", "docstring_tokens": ["Do", "executes", "HeapProfiler", ".", "stopTrackingHeapObjects", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L300-L302", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "heapprofiler/heapprofiler.go", "func_name": "WithReportProgress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithReportProgress if true 'reportHeapSnapshotProgress' events will be\n// generated while snapshot is being taken.", "docstring_tokens": ["WithReportProgress", "if", "true", "reportHeapSnapshotProgress", "events", "will", "be", "generated", "while", "snapshot", "is", "being", "taken", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L320-L323", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "heapprofiler/heapprofiler.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes HeapProfiler.takeHeapSnapshot against the provided context.", "docstring_tokens": ["Do", "executes", "HeapProfiler", ".", "takeHeapSnapshot", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L326-L328", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "browser/browser.go", "func_name": "WithBrowserContextID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBrowserContextID browserContext to override permissions. When omitted,\n// default browser context is used.", "docstring_tokens": ["WithBrowserContextID", "browserContext", "to", "override", "permissions", ".", "When", "omitted", "default", "browser", "context", "is", "used", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L43-L46", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "browser/browser.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Browser.grantPermissions against the provided context.", "docstring_tokens": ["Do", "executes", "Browser", ".", "grantPermissions", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L49-L51", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "browser/browser.go", "func_name": "WithBrowserContextID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBrowserContextID browserContext to reset permissions. When omitted,\n// default browser context is used.", "docstring_tokens": ["WithBrowserContextID", "browserContext", "to", "reset", "permissions", ".", "When", "omitted", "default", "browser", "context", "is", "used", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L69-L72", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "browser/browser.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Browser.resetPermissions against the provided context.", "docstring_tokens": ["Do", "executes", "Browser", ".", "resetPermissions", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L75-L77", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "browser/browser.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Browser.crash against the provided context.", "docstring_tokens": ["Do", "executes", "Browser", ".", "crash", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L105-L107", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "browser/browser.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Browser.crashGpuProcess against the provided context.", "docstring_tokens": ["Do", "executes", "Browser", ".", "crashGpuProcess", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L120-L122", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "browser/browser.go", "func_name": "WithQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithQuery requested substring in name. Only histograms which have query as\n// a substring in their name are extracted. An empty or absent query returns all\n// histograms.", "docstring_tokens": ["WithQuery", "requested", "substring", "in", "name", ".", "Only", "histograms", "which", "have", "query", "as", "a", "substring", "in", "their", "name", "are", "extracted", ".", "An", "empty", "or", "absent", "query", "returns", "all", "histograms", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L212-L215", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "browser/browser.go", "func_name": "WithTargetID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTargetID devtools agent host id. If called as a part of the session,\n// associated targetId is used.", "docstring_tokens": ["WithTargetID", "devtools", "agent", "host", "id", ".", "If", "called", "as", "a", "part", "of", "the", "session", "associated", "targetId", "is", "used", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L342-L345", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "browser/browser.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Browser.setWindowBounds against the provided context.", "docstring_tokens": ["Do", "executes", "Browser", ".", "setWindowBounds", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L390-L392", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "browser/browser.go", "func_name": "WithImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithImage png encoded image.", "docstring_tokens": ["WithImage", "png", "encoded", "image", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L416-L419", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "browser/browser.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Browser.setDockTile against the provided context.", "docstring_tokens": ["Do", "executes", "Browser", ".", "setDockTile", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L422-L424", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "cachestorage/cachestorage.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes CacheStorage.deleteCache against the provided context.", "docstring_tokens": ["Do", "executes", "CacheStorage", ".", "deleteCache", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cachestorage/cachestorage.go#L33-L35", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "cachestorage/cachestorage.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes CacheStorage.deleteEntry against the provided context.", "docstring_tokens": ["Do", "executes", "CacheStorage", ".", "deleteEntry", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cachestorage/cachestorage.go#L58-L60", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "cachestorage/cachestorage.go", "func_name": "WithPathFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPathFilter if present, only return the entries containing this\n// substring in the path.", "docstring_tokens": ["WithPathFilter", "if", "present", "only", "return", "the", "entries", "containing", "this", "substring", "in", "the", "path", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cachestorage/cachestorage.go#L168-L171", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.discardSearchResults against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "discardSearchResults", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L223-L225", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.focus against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "focus", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L277-L279", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.markUndoableState against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "markUndoableState", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L733-L735", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "WithIncludeUserAgentShadowDOM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithIncludeUserAgentShadowDOM true to search in user agent shadow DOM.", "docstring_tokens": ["WithIncludeUserAgentShadowDOM", "true", "to", "search", "in", "user", "agent", "shadow", "DOM", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L810-L813", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.redo against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "redo", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1006-L1008", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.removeAttribute against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "removeAttribute", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1033-L1035", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.removeNode against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "removeNode", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1055-L1057", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.requestChildNodes against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "requestChildNodes", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1100-L1102", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "WithNodeID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithNodeID ID of the node to resolve.", "docstring_tokens": ["WithNodeID", "ID", "of", "the", "node", "to", "resolve", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1167-L1170", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "WithBackendNodeID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBackendNodeID backend identifier of the node to resolve.", "docstring_tokens": ["WithBackendNodeID", "backend", "identifier", "of", "the", "node", "to", "resolve", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1173-L1176", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "WithExecutionContextID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithExecutionContextID execution context in which to resolve the node.", "docstring_tokens": ["WithExecutionContextID", "execution", "context", "in", "which", "to", "resolve", "the", "node", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1186-L1189", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.setAttributeValue against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "setAttributeValue", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1235-L1237", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "WithName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithName attribute name to replace with new attributes derived from text\n// in case text parsed successfully.", "docstring_tokens": ["WithName", "attribute", "name", "to", "replace", "with", "new", "attributes", "derived", "from", "text", "in", "case", "text", "parsed", "successfully", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1266-L1269", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.setAttributesAsText against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "setAttributesAsText", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1272-L1274", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.setFileInputFiles against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "setFileInputFiles", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1315-L1317", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.setInspectedNode against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "setInspectedNode", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1376-L1378", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.setNodeValue against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "setNodeValue", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1441-L1443", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.setOuterHTML against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "setOuterHTML", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1466-L1468", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "dom/dom.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOM.undo against the provided context.", "docstring_tokens": ["Do", "executes", "DOM", ".", "undo", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1481-L1483", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "css/css.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes CSS.forcePseudoState against the provided context.", "docstring_tokens": ["Do", "executes", "CSS", ".", "forcePseudoState", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/css/css.go#L202-L204", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "css/css.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes CSS.setEffectivePropertyValueForNode against the provided context.", "docstring_tokens": ["Do", "executes", "CSS", ".", "setEffectivePropertyValueForNode", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/css/css.go#L512-L514", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "css/css.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes CSS.startRuleUsageTracking against the provided context.", "docstring_tokens": ["Do", "executes", "CSS", ".", "startRuleUsageTracking", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/css/css.go#L735-L737", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "io/io.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes IO.close against the provided context.", "docstring_tokens": ["Do", "executes", "IO", ".", "close", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/io/io.go#L36-L38", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "storage/storage.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Storage.clearDataForOrigin against the provided context.", "docstring_tokens": ["Do", "executes", "Storage", ".", "clearDataForOrigin", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/storage/storage.go#L36-L38", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "storage/storage.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Storage.trackCacheStorageForOrigin against the provided context.", "docstring_tokens": ["Do", "executes", "Storage", ".", "trackCacheStorageForOrigin", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/storage/storage.go#L101-L103", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "storage/storage.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Storage.trackIndexedDBForOrigin against the provided context.", "docstring_tokens": ["Do", "executes", "Storage", ".", "trackIndexedDBForOrigin", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/storage/storage.go#L125-L127", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "storage/storage.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Storage.untrackCacheStorageForOrigin against the provided context.", "docstring_tokens": ["Do", "executes", "Storage", ".", "untrackCacheStorageForOrigin", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/storage/storage.go#L149-L151", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "storage/storage.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Storage.untrackIndexedDBForOrigin against the provided context.", "docstring_tokens": ["Do", "executes", "Storage", ".", "untrackIndexedDBForOrigin", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/storage/storage.go#L173-L175", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.hideHighlight against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "hideHighlight", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L99-L101", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.highlightFrame against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "highlightFrame", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L137-L139", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "WithNodeID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithNodeID identifier of the node to highlight.", "docstring_tokens": ["WithNodeID", "identifier", "of", "the", "node", "to", "highlight", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L165-L168", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "WithBackendNodeID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBackendNodeID identifier of the backend node to highlight.", "docstring_tokens": ["WithBackendNodeID", "identifier", "of", "the", "backend", "node", "to", "highlight", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L171-L174", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "WithObjectID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithObjectID JavaScript object id of the node to be highlighted.", "docstring_tokens": ["WithObjectID", "JavaScript", "object", "id", "of", "the", "node", "to", "be", "highlighted", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L177-L180", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "WithSelector", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithSelector selectors to highlight relevant nodes.", "docstring_tokens": ["WithSelector", "selectors", "to", "highlight", "relevant", "nodes", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L183-L186", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.highlightNode against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "highlightNode", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L189-L191", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.highlightQuad against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "highlightQuad", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L227-L229", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.highlightRect against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "highlightRect", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L274-L276", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "WithHighlightConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHighlightConfig a descriptor for the highlight appearance of\n// hovered-over nodes. May be omitted if enabled == false.", "docstring_tokens": ["WithHighlightConfig", "a", "descriptor", "for", "the", "highlight", "appearance", "of", "hovered", "-", "over", "nodes", ".", "May", "be", "omitted", "if", "enabled", "==", "false", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L302-L305", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.setInspectMode against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "setInspectMode", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L308-L310", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.setShowAdHighlights against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "setShowAdHighlights", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L332-L334", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "WithMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithMessage the message to display, also triggers resume and step over\n// controls.", "docstring_tokens": ["WithMessage", "the", "message", "to", "display", "also", "triggers", "resume", "and", "step", "over", "controls", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L352-L355", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.setPausedInDebuggerMessage against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "setPausedInDebuggerMessage", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L358-L360", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.setShowDebugBorders against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "setShowDebugBorders", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L381-L383", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.setShowFPSCounter against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "setShowFPSCounter", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L403-L405", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.setShowPaintRects against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "setShowPaintRects", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L425-L427", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.setShowScrollBottleneckRects against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "setShowScrollBottleneckRects", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L449-L451", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.setShowHitTestBorders against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "setShowHitTestBorders", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L473-L475", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "overlay/overlay.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Overlay.setShowViewportSizeOnResize against the provided context.", "docstring_tokens": ["Do", "executes", "Overlay", ".", "setShowViewportSizeOnResize", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L496-L498", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.clearBrowserCache against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "clearBrowserCache", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L33-L35", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.clearBrowserCookies against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "clearBrowserCookies", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L48-L50", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithErrorReason", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithErrorReason if set this causes the request to fail with the given\n// reason. Passing Aborted for requests marked with isNavigationRequest also\n// cancels the navigation. Must not be set in response to an authChallenge.", "docstring_tokens": ["WithErrorReason", "if", "set", "this", "causes", "the", "request", "to", "fail", "with", "the", "given", "reason", ".", "Passing", "Aborted", "for", "requests", "marked", "with", "isNavigationRequest", "also", "cancels", "the", "navigation", ".", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L87-L90", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithRawResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithRawResponse if set the requests completes using with the provided\n// base64 encoded raw response, including HTTP status line and headers etc...\n// Must not be set in response to an authChallenge.", "docstring_tokens": ["WithRawResponse", "if", "set", "the", "requests", "completes", "using", "with", "the", "provided", "base64", "encoded", "raw", "response", "including", "HTTP", "status", "line", "and", "headers", "etc", "...", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L95-L98", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithURL if set the request url will be modified in a way that's not\n// observable by page. Must not be set in response to an authChallenge.", "docstring_tokens": ["WithURL", "if", "set", "the", "request", "url", "will", "be", "modified", "in", "a", "way", "that", "s", "not", "observable", "by", "page", ".", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L102-L105", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithMethod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithMethod if set this allows the request method to be overridden. Must\n// not be set in response to an authChallenge.", "docstring_tokens": ["WithMethod", "if", "set", "this", "allows", "the", "request", "method", "to", "be", "overridden", ".", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L109-L112", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithPostData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPostData if set this allows postData to be set. Must not be set in\n// response to an authChallenge.", "docstring_tokens": ["WithPostData", "if", "set", "this", "allows", "postData", "to", "be", "set", ".", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L116-L119", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHeaders if set this allows the request headers to be changed. Must not\n// be set in response to an authChallenge.", "docstring_tokens": ["WithHeaders", "if", "set", "this", "allows", "the", "request", "headers", "to", "be", "changed", ".", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L123-L126", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithAuthChallengeResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithAuthChallengeResponse response to a requestIntercepted with an\n// authChallenge. Must not be set otherwise.", "docstring_tokens": ["WithAuthChallengeResponse", "response", "to", "a", "requestIntercepted", "with", "an", "authChallenge", ".", "Must", "not", "be", "set", "otherwise", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L130-L133", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.continueInterceptedRequest against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "continueInterceptedRequest", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L136-L138", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithURL if specified, deletes all the cookies with the given name where\n// domain and path match provided URL.", "docstring_tokens": ["WithURL", "if", "specified", "deletes", "all", "the", "cookies", "with", "the", "given", "name", "where", "domain", "and", "path", "match", "provided", "URL", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L164-L167", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithDomain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithDomain if specified, deletes only cookies with the exact domain.", "docstring_tokens": ["WithDomain", "if", "specified", "deletes", "only", "cookies", "with", "the", "exact", "domain", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L170-L173", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPath if specified, deletes only cookies with the exact path.", "docstring_tokens": ["WithPath", "if", "specified", "deletes", "only", "cookies", "with", "the", "exact", "path", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L176-L179", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.deleteCookies against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "deleteCookies", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L182-L184", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithConnectionType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithConnectionType connection type if known.", "docstring_tokens": ["WithConnectionType", "connection", "type", "if", "known", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L231-L234", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.emulateNetworkConditions against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "emulateNetworkConditions", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L237-L239", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.enable against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "enable", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L281-L283", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithUrls", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithUrls the list of URLs for which applicable cookies will be fetched.", "docstring_tokens": ["WithUrls", "the", "list", "of", "URLs", "for", "which", "applicable", "cookies", "will", "be", "fetched", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L373-L376", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.replayXHR against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "replayXHR", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L604-L606", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.setBlockedURLs against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "setBlockedURLs", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L680-L682", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.setBypassServiceWorker against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "setBypassServiceWorker", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L704-L706", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.setCacheDisabled against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "setCacheDisabled", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L728-L730", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithURL the request-URI to associate with the setting of the cookie. This\n// value can affect the default domain and path values of the created cookie.", "docstring_tokens": ["WithURL", "the", "request", "-", "URI", "to", "associate", "with", "the", "setting", "of", "the", "cookie", ".", "This", "value", "can", "affect", "the", "default", "domain", "and", "path", "values", "of", "the", "created", "cookie", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L763-L766", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithDomain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithDomain cookie domain.", "docstring_tokens": ["WithDomain", "cookie", "domain", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L769-L772", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPath cookie path.", "docstring_tokens": ["WithPath", "cookie", "path", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L775-L778", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithSecure", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithSecure true if cookie is secure.", "docstring_tokens": ["WithSecure", "true", "if", "cookie", "is", "secure", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L781-L784", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithHTTPOnly", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHTTPOnly true if cookie is http-only.", "docstring_tokens": ["WithHTTPOnly", "true", "if", "cookie", "is", "http", "-", "only", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L787-L790", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithSameSite", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithSameSite cookie SameSite type.", "docstring_tokens": ["WithSameSite", "cookie", "SameSite", "type", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L793-L796", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "WithExpires", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithExpires cookie expiration date, session cookie if not set.", "docstring_tokens": ["WithExpires", "cookie", "expiration", "date", "session", "cookie", "if", "not", "set", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L799-L802", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.setCookies against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "setCookies", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L842-L844", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.setDataSizeLimitsForTest against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "setDataSizeLimitsForTest", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L867-L869", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.setExtraHTTPHeaders against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "setExtraHTTPHeaders", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L891-L893", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "network/network.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Network.setRequestInterception against the provided context.", "docstring_tokens": ["Do", "executes", "Network", ".", "setRequestInterception", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L915-L917", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.clearDeviceMetricsOverride against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "clearDeviceMetricsOverride", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L59-L61", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.clearGeolocationOverride against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "clearGeolocationOverride", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L76-L78", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.resetPageScaleFactor against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "resetPageScaleFactor", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L93-L95", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.setFocusEmulationEnabled against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "setFocusEmulationEnabled", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L117-L119", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.setCPUThrottlingRate against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "setCPUThrottlingRate", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L139-L141", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "WithColor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithColor rGBA of the default background color. If not specified, any\n// existing override will be cleared.", "docstring_tokens": ["WithColor", "rGBA", "of", "the", "default", "background", "color", ".", "If", "not", "specified", "any", "existing", "override", "will", "be", "cleared", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L163-L166", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.setDefaultBackgroundColorOverride against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "setDefaultBackgroundColorOverride", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L169-L171", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "WithScale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithScale scale to apply to resulting view image.", "docstring_tokens": ["WithScale", "scale", "to", "apply", "to", "resulting", "view", "image", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L214-L217", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "WithDontSetVisibleSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithDontSetVisibleSize do not set visible view size, rely upon explicit\n// setVisibleSize call.", "docstring_tokens": ["WithDontSetVisibleSize", "do", "not", "set", "visible", "view", "size", "rely", "upon", "explicit", "setVisibleSize", "call", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L249-L252", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "WithScreenOrientation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithScreenOrientation screen orientation override.", "docstring_tokens": ["WithScreenOrientation", "screen", "orientation", "override", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L255-L258", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.setDeviceMetricsOverride against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "setDeviceMetricsOverride", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L269-L271", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.setScrollbarsHidden against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "setScrollbarsHidden", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L291-L293", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.setDocumentCookieDisabled against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "setDocumentCookieDisabled", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L313-L315", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.setEmitTouchEventsForMouse against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "setEmitTouchEventsForMouse", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L343-L345", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.setEmulatedMedia against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "setEmulatedMedia", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L365-L367", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "WithLatitude", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithLatitude mock latitude.", "docstring_tokens": ["WithLatitude", "mock", "latitude", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L388-L391", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "WithLongitude", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithLongitude mock longitude.", "docstring_tokens": ["WithLongitude", "mock", "longitude", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L394-L397", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "WithAccuracy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithAccuracy mock accuracy.", "docstring_tokens": ["WithAccuracy", "mock", "accuracy", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L400-L403", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.setGeolocationOverride against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "setGeolocationOverride", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L406-L408", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.setPageScaleFactor against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "setPageScaleFactor", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L428-L430", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.setScriptExecutionDisabled against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "setScriptExecutionDisabled", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L450-L452", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "WithMaxTouchPoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithMaxTouchPoints maximum touch points supported. Defaults to one.", "docstring_tokens": ["WithMaxTouchPoints", "maximum", "touch", "points", "supported", ".", "Defaults", "to", "one", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L475-L478", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.setTouchEmulationEnabled against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "setTouchEmulationEnabled", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L481-L483", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "WithBudget", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBudget if set, after this many virtual milliseconds have elapsed\n// virtual time will be paused and a virtualTimeBudgetExpired event is sent.", "docstring_tokens": ["WithBudget", "if", "set", "after", "this", "many", "virtual", "milliseconds", "have", "elapsed", "virtual", "time", "will", "be", "paused", "and", "a", "virtualTimeBudgetExpired", "event", "is", "sent", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L512-L515", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "WithMaxVirtualTimeTaskStarvationCount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithMaxVirtualTimeTaskStarvationCount if set this specifies the maximum\n// number of tasks that can be run before virtual is forced forwards to prevent\n// deadlock.", "docstring_tokens": ["WithMaxVirtualTimeTaskStarvationCount", "if", "set", "this", "specifies", "the", "maximum", "number", "of", "tasks", "that", "can", "be", "run", "before", "virtual", "is", "forced", "forwards", "to", "prevent", "deadlock", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L520-L523", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "WithWaitForNavigation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithWaitForNavigation if set the virtual time policy change should be\n// deferred until any frame starts navigating. Note any previous deferred policy\n// change is superseded.", "docstring_tokens": ["WithWaitForNavigation", "if", "set", "the", "virtual", "time", "policy", "change", "should", "be", "deferred", "until", "any", "frame", "starts", "navigating", ".", "Note", "any", "previous", "deferred", "policy", "change", "is", "superseded", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L528-L531", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "WithAcceptLanguage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithAcceptLanguage browser langugage to emulate.", "docstring_tokens": ["WithAcceptLanguage", "browser", "langugage", "to", "emulate", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L581-L584", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "WithPlatform", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPlatform the platform navigator.platform should return.", "docstring_tokens": ["WithPlatform", "the", "platform", "navigator", ".", "platform", "should", "return", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L587-L590", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "emulation/emulation.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Emulation.setUserAgentOverride against the provided context.", "docstring_tokens": ["Do", "executes", "Emulation", ".", "setUserAgentOverride", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L593-L595", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "input/input.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Input.dispatchKeyEvent against the provided context.", "docstring_tokens": ["Do", "executes", "Input", ".", "dispatchKeyEvent", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L135-L137", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "input/input.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Input.insertText against the provided context.", "docstring_tokens": ["Do", "executes", "Input", ".", "insertText", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L159-L161", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "input/input.go", "func_name": "WithButtons", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithButtons a number indicating which buttons are pressed on the mouse\n// when a mouse event is triggered. Left=1, Right=2, Middle=4, Back=8,\n// Forward=16, None=0.", "docstring_tokens": ["WithButtons", "a", "number", "indicating", "which", "buttons", "are", "pressed", "on", "the", "mouse", "when", "a", "mouse", "event", "is", "triggered", ".", "Left", "=", "1", "Right", "=", "2", "Middle", "=", "4", "Back", "=", "8", "Forward", "=", "16", "None", "=", "0", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L216-L219", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "input/input.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Input.dispatchMouseEvent against the provided context.", "docstring_tokens": ["Do", "executes", "Input", ".", "dispatchMouseEvent", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L246-L248", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "input/input.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Input.dispatchTouchEvent against the provided context.", "docstring_tokens": ["Do", "executes", "Input", ".", "dispatchTouchEvent", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L286-L288", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "input/input.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Input.emulateTouchFromMouseEvent against the provided context.", "docstring_tokens": ["Do", "executes", "Input", ".", "emulateTouchFromMouseEvent", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L355-L357", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "input/input.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Input.setIgnoreInputEvents against the provided context.", "docstring_tokens": ["Do", "executes", "Input", ".", "setIgnoreInputEvents", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L378-L380", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "input/input.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Input.synthesizePinchGesture against the provided context.", "docstring_tokens": ["Do", "executes", "Input", ".", "synthesizePinchGesture", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L424-L426", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "input/input.go", "func_name": "WithXOverscroll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithXOverscroll the number of additional pixels to scroll back along the X\n// axis, in addition to the given distance.", "docstring_tokens": ["WithXOverscroll", "the", "number", "of", "additional", "pixels", "to", "scroll", "back", "along", "the", "X", "axis", "in", "addition", "to", "the", "given", "distance", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L476-L479", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "input/input.go", "func_name": "WithYOverscroll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithYOverscroll the number of additional pixels to scroll back along the Y\n// axis, in addition to the given distance.", "docstring_tokens": ["WithYOverscroll", "the", "number", "of", "additional", "pixels", "to", "scroll", "back", "along", "the", "Y", "axis", "in", "addition", "to", "the", "given", "distance", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L483-L486", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "input/input.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Input.synthesizeScrollGesture against the provided context.", "docstring_tokens": ["Do", "executes", "Input", ".", "synthesizeScrollGesture", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L528-L530", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "input/input.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Input.synthesizeTapGesture against the provided context.", "docstring_tokens": ["Do", "executes", "Input", ".", "synthesizeTapGesture", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L579-L581", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "cdproto.go", "func_name": "Domain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Domain returns the Chrome DevTools Protocol domain of the event or command.", "docstring_tokens": ["Domain", "returns", "the", "Chrome", "DevTools", "Protocol", "domain", "of", "the", "event", "or", "command", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cdproto.go#L70-L72", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domdebugger/domdebugger.go", "func_name": "WithDepth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithDepth the maximum depth at which Node children should be retrieved,\n// defaults to 1. Use -1 for the entire subtree or provide an integer larger\n// than 0.", "docstring_tokens": ["WithDepth", "the", "maximum", "depth", "at", "which", "Node", "children", "should", "be", "retrieved", "defaults", "to", "1", ".", "Use", "-", "1", "for", "the", "entire", "subtree", "or", "provide", "an", "integer", "larger", "than", "0", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L42-L45", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domdebugger/domdebugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOMDebugger.removeDOMBreakpoint against the provided context.", "docstring_tokens": ["Do", "executes", "DOMDebugger", ".", "removeDOMBreakpoint", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L98-L100", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domdebugger/domdebugger.go", "func_name": "WithTargetName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTargetName eventTarget interface name.", "docstring_tokens": ["WithTargetName", "eventTarget", "interface", "name", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L122-L125", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domdebugger/domdebugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOMDebugger.removeEventListenerBreakpoint against the provided context.", "docstring_tokens": ["Do", "executes", "DOMDebugger", ".", "removeEventListenerBreakpoint", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L128-L130", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domdebugger/domdebugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOMDebugger.removeInstrumentationBreakpoint against the provided context.", "docstring_tokens": ["Do", "executes", "DOMDebugger", ".", "removeInstrumentationBreakpoint", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L152-L154", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domdebugger/domdebugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOMDebugger.removeXHRBreakpoint against the provided context.", "docstring_tokens": ["Do", "executes", "DOMDebugger", ".", "removeXHRBreakpoint", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L174-L176", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domdebugger/domdebugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOMDebugger.setDOMBreakpoint against the provided context.", "docstring_tokens": ["Do", "executes", "DOMDebugger", ".", "setDOMBreakpoint", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L199-L201", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domdebugger/domdebugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOMDebugger.setEventListenerBreakpoint against the provided context.", "docstring_tokens": ["Do", "executes", "DOMDebugger", ".", "setEventListenerBreakpoint", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L229-L231", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domdebugger/domdebugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOMDebugger.setInstrumentationBreakpoint against the provided context.", "docstring_tokens": ["Do", "executes", "DOMDebugger", ".", "setInstrumentationBreakpoint", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L252-L254", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "domdebugger/domdebugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes DOMDebugger.setXHRBreakpoint against the provided context.", "docstring_tokens": ["Do", "executes", "DOMDebugger", ".", "setXHRBreakpoint", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L274-L276", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "cdp/types.go", "func_name": "WithExecutor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithExecutor sets the message executor for the context.", "docstring_tokens": ["WithExecutor", "sets", "the", "message", "executor", "for", "the", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cdp/types.go#L35-L37", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "cdp/types.go", "func_name": "Execute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Execute uses the context's message executor to send a command or event\n// method marshaling the provided parameters, and unmarshaling to res.", "docstring_tokens": ["Execute", "uses", "the", "context", "s", "message", "executor", "to", "send", "a", "command", "or", "event", "method", "marshaling", "the", "provided", "parameters", "and", "unmarshaling", "to", "res", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cdp/types.go#L46-L51", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "cdp/types.go", "func_name": "AttributeValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AttributeValue returns the named attribute for the node.", "docstring_tokens": ["AttributeValue", "returns", "the", "named", "attribute", "for", "the", "node", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cdp/types.go#L318-L329", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "cdp/types.go", "func_name": "xpath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// xpath builds the xpath string.", "docstring_tokens": ["xpath", "builds", "the", "xpath", "string", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cdp/types.go#L332-L374", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "cdp/types.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the NodeType as string value.", "docstring_tokens": ["String", "returns", "the", "NodeType", "as", "string", "value", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cdp/types.go#L468-L497", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "cast/cast.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Cast.setSinkToUse against the provided context.", "docstring_tokens": ["Do", "executes", "Cast", ".", "setSinkToUse", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cast/cast.go#L87-L89", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "cast/cast.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Cast.startTabMirroring against the provided context.", "docstring_tokens": ["Do", "executes", "Cast", ".", "startTabMirroring", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cast/cast.go#L109-L111", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "cast/cast.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Cast.stopCasting against the provided context.", "docstring_tokens": ["Do", "executes", "Cast", ".", "stopCasting", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cast/cast.go#L131-L133", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "backgroundservice/backgroundservice.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes BackgroundService.startObserving against the provided context.", "docstring_tokens": ["Do", "executes", "BackgroundService", ".", "startObserving", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/backgroundservice/backgroundservice.go#L35-L37", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "backgroundservice/backgroundservice.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes BackgroundService.stopObserving against the provided context.", "docstring_tokens": ["Do", "executes", "BackgroundService", ".", "stopObserving", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/backgroundservice/backgroundservice.go#L57-L59", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "backgroundservice/backgroundservice.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes BackgroundService.setRecording against the provided context.", "docstring_tokens": ["Do", "executes", "BackgroundService", ".", "setRecording", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/backgroundservice/backgroundservice.go#L82-L84", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "backgroundservice/backgroundservice.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes BackgroundService.clearEvents against the provided context.", "docstring_tokens": ["Do", "executes", "BackgroundService", ".", "clearEvents", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/backgroundservice/backgroundservice.go#L104-L106", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "WithObjectID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithObjectID identifier of the object to call function on. Either objectId\n// or executionContextId should be specified.", "docstring_tokens": ["WithObjectID", "identifier", "of", "the", "object", "to", "call", "function", "on", ".", "Either", "objectId", "or", "executionContextId", "should", "be", "specified", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L106-L109", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "WithArguments", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithArguments call arguments. All call arguments must belong to the same\n// JavaScript world as the target object.", "docstring_tokens": ["WithArguments", "call", "arguments", ".", "All", "call", "arguments", "must", "belong", "to", "the", "same", "JavaScript", "world", "as", "the", "target", "object", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L113-L116", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "WithExecutionContextID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithExecutionContextID specifies execution context which global object\n// will be used to call function on. Either executionContextId or objectId\n// should be specified.", "docstring_tokens": ["WithExecutionContextID", "specifies", "execution", "context", "which", "global", "object", "will", "be", "used", "to", "call", "function", "on", ".", "Either", "executionContextId", "or", "objectId", "should", "be", "specified", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L155-L158", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "WithObjectGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithObjectGroup symbolic group name that can be used to release multiple\n// objects. If objectGroup is not specified and objectId is, objectGroup will be\n// inherited from object.", "docstring_tokens": ["WithObjectGroup", "symbolic", "group", "name", "that", "can", "be", "used", "to", "release", "multiple", "objects", ".", "If", "objectGroup", "is", "not", "specified", "and", "objectId", "is", "objectGroup", "will", "be", "inherited", "from", "object", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L163-L166", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Runtime.discardConsoleEntries against the provided context.", "docstring_tokens": ["Do", "executes", "Runtime", ".", "discardConsoleEntries", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L271-L273", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "WithContextID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContextID specifies in which execution context to perform evaluation.\n// If the parameter is omitted the evaluation will be performed in the context\n// of the inspected page.", "docstring_tokens": ["WithContextID", "specifies", "in", "which", "execution", "context", "to", "perform", "evaluation", ".", "If", "the", "parameter", "is", "omitted", "the", "evaluation", "will", "be", "performed", "in", "the", "context", "of", "the", "inspected", "page", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L345-L348", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "WithOwnProperties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithOwnProperties if true, returns properties belonging only to the\n// element itself, not to its prototype chain.", "docstring_tokens": ["WithOwnProperties", "if", "true", "returns", "properties", "belonging", "only", "to", "the", "element", "itself", "not", "to", "its", "prototype", "chain", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L500-L503", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "WithGeneratePreview", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithGeneratePreview whether preview should be generated for the results.", "docstring_tokens": ["WithGeneratePreview", "whether", "preview", "should", "be", "generated", "for", "the", "results", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L513-L516", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "WithExecutionContextID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithExecutionContextID specifies in which execution context to lookup\n// global scope variables.", "docstring_tokens": ["WithExecutionContextID", "specifies", "in", "which", "execution", "context", "to", "lookup", "global", "scope", "variables", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L562-L565", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "WithObjectGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithObjectGroup symbolic group name that can be used to release the\n// results.", "docstring_tokens": ["WithObjectGroup", "symbolic", "group", "name", "that", "can", "be", "used", "to", "release", "the", "results", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L607-L610", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Runtime.releaseObject against the provided context.", "docstring_tokens": ["Do", "executes", "Runtime", ".", "releaseObject", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L650-L652", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Runtime.releaseObjectGroup against the provided context.", "docstring_tokens": ["Do", "executes", "Runtime", ".", "releaseObjectGroup", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L674-L676", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Runtime.runIfWaitingForDebugger against the provided context.", "docstring_tokens": ["Do", "executes", "Runtime", ".", "runIfWaitingForDebugger", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L691-L693", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Runtime.setCustomObjectFormatterEnabled against the provided context.", "docstring_tokens": ["Do", "executes", "Runtime", ".", "setCustomObjectFormatterEnabled", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L808-L810", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Runtime.setMaxCallStackSizeToCapture against the provided context.", "docstring_tokens": ["Do", "executes", "Runtime", ".", "setMaxCallStackSizeToCapture", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L830-L832", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Runtime.terminateExecution against the provided context.", "docstring_tokens": ["Do", "executes", "Runtime", ".", "terminateExecution", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L847-L849", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Runtime.addBinding against the provided context.", "docstring_tokens": ["Do", "executes", "Runtime", ".", "addBinding", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L888-L890", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "runtime/runtime.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Runtime.removeBinding against the provided context.", "docstring_tokens": ["Do", "executes", "Runtime", ".", "removeBinding", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/runtime.go#L914-L916", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "tracing/tracing.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Tracing.end against the provided context.", "docstring_tokens": ["Do", "executes", "Tracing", ".", "end", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/tracing/tracing.go#L26-L28", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "tracing/tracing.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Tracing.recordClockSyncMarker against the provided context.", "docstring_tokens": ["Do", "executes", "Tracing", ".", "recordClockSyncMarker", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/tracing/tracing.go#L78-L80", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "tracing/tracing.go", "func_name": "WithBufferUsageReportingInterval", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBufferUsageReportingInterval if set, the agent will issue bufferUsage\n// events at this interval, specified in milliseconds.", "docstring_tokens": ["WithBufferUsageReportingInterval", "if", "set", "the", "agent", "will", "issue", "bufferUsage", "events", "at", "this", "interval", "specified", "in", "milliseconds", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/tracing/tracing.go#L134-L137", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "headlessexperimental/headlessexperimental.go", "func_name": "WithNoDisplayUpdates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithNoDisplayUpdates whether updates should not be committed and drawn\n// onto the display. False by default. If true, only side effects of the\n// BeginFrame will be run, such as layout and animations, but any visual updates\n// may not be visible on the display or in screenshots.", "docstring_tokens": ["WithNoDisplayUpdates", "whether", "updates", "should", "not", "be", "committed", "and", "drawn", "onto", "the", "display", ".", "False", "by", "default", ".", "If", "true", "only", "side", "effects", "of", "the", "BeginFrame", "will", "be", "run", "such", "as", "layout", "and", "animations", "but", "any", "visual", "updates", "may", "not", "be", "visible", "on", "the", "display", "or", "in", "screenshots", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/headlessexperimental/headlessexperimental.go#L63-L66", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "headlessexperimental/headlessexperimental.go", "func_name": "WithScreenshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithScreenshot if set, a screenshot of the frame will be captured and\n// returned in the response. Otherwise, no screenshot will be captured. Note\n// that capturing a screenshot can fail, for example, during renderer\n// initialization. In such a case, no screenshot data will be returned.", "docstring_tokens": ["WithScreenshot", "if", "set", "a", "screenshot", "of", "the", "frame", "will", "be", "captured", "and", "returned", "in", "the", "response", ".", "Otherwise", "no", "screenshot", "will", "be", "captured", ".", "Note", "that", "capturing", "a", "screenshot", "can", "fail", "for", "example", "during", "renderer", "initialization", ".", "In", "such", "a", "case", "no", "screenshot", "data", "will", "be", "returned", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/headlessexperimental/headlessexperimental.go#L72-L75", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.bringToFront against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "bringToFront", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L81-L83", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithClip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithClip capture the screenshot of a given region only.", "docstring_tokens": ["WithClip", "capture", "the", "screenshot", "of", "a", "given", "region", "only", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L115-L118", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithFromSurface", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithFromSurface capture the screenshot from the surface, rather than the\n// view. Defaults to true.", "docstring_tokens": ["WithFromSurface", "capture", "the", "screenshot", "from", "the", "surface", "rather", "than", "the", "view", ".", "Defaults", "to", "true", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L122-L125", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithWorldName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithWorldName an optional name which is reported in the Execution Context.", "docstring_tokens": ["WithWorldName", "an", "optional", "name", "which", "is", "reported", "in", "the", "Execution", "Context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L217-L220", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithGrantUniveralAccess", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithGrantUniveralAccess whether or not universal access should be granted\n// to the isolated world. This is a powerful option, use with caution.", "docstring_tokens": ["WithGrantUniveralAccess", "whether", "or", "not", "universal", "access", "should", "be", "granted", "to", "the", "isolated", "world", ".", "This", "is", "a", "powerful", "option", "use", "with", "caution", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L224-L227", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.resetNavigationHistory against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "resetNavigationHistory", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L454-L456", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithPromptText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPromptText the text to enter into the dialog prompt before accepting.\n// Used only if this is a prompt dialog.", "docstring_tokens": ["WithPromptText", "the", "text", "to", "enter", "into", "the", "dialog", "prompt", "before", "accepting", ".", "Used", "only", "if", "this", "is", "a", "prompt", "dialog", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L561-L564", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.handleJavaScriptDialog against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "handleJavaScriptDialog", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L567-L569", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithReferrer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithReferrer referrer URL.", "docstring_tokens": ["WithReferrer", "referrer", "URL", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L592-L595", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithTransitionType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTransitionType intended transition type.", "docstring_tokens": ["WithTransitionType", "intended", "transition", "type", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L598-L601", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithFrameID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithFrameID frame id to navigate, if not specified navigates the top\n// frame.", "docstring_tokens": ["WithFrameID", "frame", "id", "to", "navigate", "if", "not", "specified", "navigates", "the", "top", "frame", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L605-L608", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.navigateToHistoryEntry against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "navigateToHistoryEntry", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L653-L655", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithLandscape", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithLandscape paper orientation. Defaults to false.", "docstring_tokens": ["WithLandscape", "paper", "orientation", ".", "Defaults", "to", "false", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L686-L689", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithDisplayHeaderFooter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithDisplayHeaderFooter display header and footer. Defaults to false.", "docstring_tokens": ["WithDisplayHeaderFooter", "display", "header", "and", "footer", ".", "Defaults", "to", "false", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L692-L695", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithPrintBackground", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPrintBackground print background graphics. Defaults to false.", "docstring_tokens": ["WithPrintBackground", "print", "background", "graphics", ".", "Defaults", "to", "false", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L698-L701", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithScale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithScale scale of the webpage rendering. Defaults to 1.", "docstring_tokens": ["WithScale", "scale", "of", "the", "webpage", "rendering", ".", "Defaults", "to", "1", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L704-L707", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithPaperWidth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPaperWidth paper width in inches. Defaults to 8.5 inches.", "docstring_tokens": ["WithPaperWidth", "paper", "width", "in", "inches", ".", "Defaults", "to", "8", ".", "5", "inches", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L710-L713", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithPaperHeight", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPaperHeight paper height in inches. Defaults to 11 inches.", "docstring_tokens": ["WithPaperHeight", "paper", "height", "in", "inches", ".", "Defaults", "to", "11", "inches", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L716-L719", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithIgnoreInvalidPageRanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithIgnoreInvalidPageRanges whether to silently ignore invalid but\n// successfully parsed page ranges, such as '3-2'. Defaults to false.", "docstring_tokens": ["WithIgnoreInvalidPageRanges", "whether", "to", "silently", "ignore", "invalid", "but", "successfully", "parsed", "page", "ranges", "such", "as", "3", "-", "2", ".", "Defaults", "to", "false", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L754-L757", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithFooterTemplate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithFooterTemplate HTML template for the print footer. Should use the same\n// format as the headerTemplate.", "docstring_tokens": ["WithFooterTemplate", "HTML", "template", "for", "the", "print", "footer", ".", "Should", "use", "the", "same", "format", "as", "the", "headerTemplate", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L772-L775", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithPreferCSSPageSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPreferCSSPageSize whether or not to prefer page size as defined by\n// css. Defaults to false, in which case the content will be scaled to fit the\n// paper size.", "docstring_tokens": ["WithPreferCSSPageSize", "whether", "or", "not", "to", "prefer", "page", "size", "as", "defined", "by", "css", ".", "Defaults", "to", "false", "in", "which", "case", "the", "content", "will", "be", "scaled", "to", "fit", "the", "paper", "size", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L780-L783", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithScriptToEvaluateOnLoad", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithScriptToEvaluateOnLoad if set, the script will be injected into all\n// frames of the inspected page after reload. Argument will be ignored if\n// reloading dataURL origin.", "docstring_tokens": ["WithScriptToEvaluateOnLoad", "if", "set", "the", "script", "will", "be", "injected", "into", "all", "frames", "of", "the", "inspected", "page", "after", "reload", ".", "Argument", "will", "be", "ignored", "if", "reloading", "dataURL", "origin", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L836-L839", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.reload against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "reload", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L842-L844", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.removeScriptToEvaluateOnNewDocument against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "removeScriptToEvaluateOnNewDocument", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L865-L867", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.screencastFrameAck against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "screencastFrameAck", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L889-L891", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.setAdBlockingEnabled against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "setAdBlockingEnabled", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L969-L971", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.setBypassCSP against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "setBypassCSP", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L991-L993", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.setFontFamilies against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "setFontFamilies", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1013-L1015", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.setFontSizes against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "setFontSizes", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1035-L1037", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.setDocumentContent against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "setDocumentContent", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1060-L1062", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithDownloadPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithDownloadPath the default path to save downloaded files to. This is\n// required if behavior is set to 'allow'.", "docstring_tokens": ["WithDownloadPath", "the", "default", "path", "to", "save", "downloaded", "files", "to", ".", "This", "is", "required", "if", "behavior", "is", "set", "to", "allow", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1084-L1087", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.setDownloadBehavior against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "setDownloadBehavior", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1090-L1092", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.setLifecycleEventsEnabled against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "setLifecycleEventsEnabled", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1114-L1116", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithFormat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithFormat image compression format.", "docstring_tokens": ["WithFormat", "image", "compression", "format", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1138-L1141", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithMaxWidth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithMaxWidth maximum screenshot width.", "docstring_tokens": ["WithMaxWidth", "maximum", "screenshot", "width", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1150-L1153", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithMaxHeight", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithMaxHeight maximum screenshot height.", "docstring_tokens": ["WithMaxHeight", "maximum", "screenshot", "height", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1156-L1159", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithEveryNthFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithEveryNthFrame send every n-th frame.", "docstring_tokens": ["WithEveryNthFrame", "send", "every", "n", "-", "th", "frame", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1162-L1165", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.startScreencast against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "startScreencast", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1168-L1170", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.stopLoading against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "stopLoading", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1185-L1187", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.setWebLifecycleState against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "setWebLifecycleState", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1241-L1243", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.stopScreencast against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "stopScreencast", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1256-L1258", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.setProduceCompilationCache against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "setProduceCompilationCache", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1280-L1282", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.addCompilationCache against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "addCompilationCache", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1307-L1309", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.clearCompilationCache against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "clearCompilationCache", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1322-L1324", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "WithGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithGroup specifies the endpoint group to deliver the report to.", "docstring_tokens": ["WithGroup", "specifies", "the", "endpoint", "group", "to", "deliver", "the", "report", "to", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1345-L1348", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "page/page.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Page.waitForDebugger against the provided context.", "docstring_tokens": ["Do", "executes", "Page", ".", "waitForDebugger", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/page/page.go#L1368-L1370", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "target/target.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Target.activateTarget against the provided context.", "docstring_tokens": ["Do", "executes", "Target", ".", "activateTarget", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/target/target.go#L35-L37", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "target/target.go", "func_name": "WithBindingName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBindingName binding name, 'cdp' if not specified.", "docstring_tokens": ["WithBindingName", "binding", "name", "cdp", "if", "not", "specified", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/target/target.go#L184-L187", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "target/target.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Target.exposeDevToolsProtocol against the provided context.", "docstring_tokens": ["Do", "executes", "Target", ".", "exposeDevToolsProtocol", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/target/target.go#L190-L192", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "target/target.go", "func_name": "WithBrowserContextID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBrowserContextID the browser context to create the page in.", "docstring_tokens": ["WithBrowserContextID", "the", "browser", "context", "to", "create", "the", "page", "in", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/target/target.go#L292-L295", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "target/target.go", "func_name": "WithSessionID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithSessionID session to detach.", "docstring_tokens": ["WithSessionID", "session", "to", "detach", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/target/target.go#L340-L343", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "target/target.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Target.detachFromTarget against the provided context.", "docstring_tokens": ["Do", "executes", "Target", ".", "detachFromTarget", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/target/target.go#L346-L348", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "target/target.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Target.disposeBrowserContext against the provided context.", "docstring_tokens": ["Do", "executes", "Target", ".", "disposeBrowserContext", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/target/target.go#L370-L372", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "target/target.go", "func_name": "WithSessionID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithSessionID identifier of the session.", "docstring_tokens": ["WithSessionID", "identifier", "of", "the", "session", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/target/target.go#L464-L467", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "target/target.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Target.sendMessageToTarget against the provided context.", "docstring_tokens": ["Do", "executes", "Target", ".", "sendMessageToTarget", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/target/target.go#L470-L472", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "target/target.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Target.setAutoAttach against the provided context.", "docstring_tokens": ["Do", "executes", "Target", ".", "setAutoAttach", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/target/target.go#L509-L511", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "target/target.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Target.setDiscoverTargets against the provided context.", "docstring_tokens": ["Do", "executes", "Target", ".", "setDiscoverTargets", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/target/target.go#L533-L535", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "target/target.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Target.setRemoteLocations against the provided context.", "docstring_tokens": ["Do", "executes", "Target", ".", "setRemoteLocations", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/target/target.go#L557-L559", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "fetch/fetch.go", "func_name": "WithPatterns", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPatterns if specified, only requests matching any of these patterns\n// will produce fetchRequested event and will be paused until clients response.\n// If not set, all requests will be affected.", "docstring_tokens": ["WithPatterns", "if", "specified", "only", "requests", "matching", "any", "of", "these", "patterns", "will", "produce", "fetchRequested", "event", "and", "will", "be", "paused", "until", "clients", "response", ".", "If", "not", "set", "all", "requests", "will", "be", "affected", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/fetch/fetch.go#L58-L61", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "fetch/fetch.go", "func_name": "WithHandleAuthRequests", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHandleAuthRequests if true, authRequired events will be issued and\n// requests will be paused expecting a call to continueWithAuth.", "docstring_tokens": ["WithHandleAuthRequests", "if", "true", "authRequired", "events", "will", "be", "issued", "and", "requests", "will", "be", "paused", "expecting", "a", "call", "to", "continueWithAuth", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/fetch/fetch.go#L65-L68", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "fetch/fetch.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Fetch.failRequest against the provided context.", "docstring_tokens": ["Do", "executes", "Fetch", ".", "failRequest", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/fetch/fetch.go#L96-L98", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "fetch/fetch.go", "func_name": "WithBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBody a response body.", "docstring_tokens": ["WithBody", "a", "response", "body", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/fetch/fetch.go#L126-L129", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "fetch/fetch.go", "func_name": "WithResponsePhrase", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithResponsePhrase a textual representation of responseCode. If absent, a\n// standard phrase mathcing responseCode is used.", "docstring_tokens": ["WithResponsePhrase", "a", "textual", "representation", "of", "responseCode", ".", "If", "absent", "a", "standard", "phrase", "mathcing", "responseCode", "is", "used", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/fetch/fetch.go#L133-L136", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "fetch/fetch.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Fetch.fulfillRequest against the provided context.", "docstring_tokens": ["Do", "executes", "Fetch", ".", "fulfillRequest", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/fetch/fetch.go#L139-L141", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "fetch/fetch.go", "func_name": "WithURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithURL if set, the request url will be modified in a way that's not\n// observable by page.", "docstring_tokens": ["WithURL", "if", "set", "the", "request", "url", "will", "be", "modified", "in", "a", "way", "that", "s", "not", "observable", "by", "page", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/fetch/fetch.go#L168-L171", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "fetch/fetch.go", "func_name": "WithMethod", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithMethod if set, the request method is overridden.", "docstring_tokens": ["WithMethod", "if", "set", "the", "request", "method", "is", "overridden", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/fetch/fetch.go#L174-L177", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "fetch/fetch.go", "func_name": "WithPostData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPostData if set, overrides the post data in the request.", "docstring_tokens": ["WithPostData", "if", "set", "overrides", "the", "post", "data", "in", "the", "request", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/fetch/fetch.go#L180-L183", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "fetch/fetch.go", "func_name": "WithHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHeaders if set, overrides the request headrts.", "docstring_tokens": ["WithHeaders", "if", "set", "overrides", "the", "request", "headrts", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/fetch/fetch.go#L186-L189", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "fetch/fetch.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Fetch.continueRequest against the provided context.", "docstring_tokens": ["Do", "executes", "Fetch", ".", "continueRequest", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/fetch/fetch.go#L192-L194", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "fetch/fetch.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Fetch.continueWithAuth against the provided context.", "docstring_tokens": ["Do", "executes", "Fetch", ".", "continueWithAuth", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/fetch/fetch.go#L219-L221", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.continueToLocation against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "continueToLocation", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L46-L48", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "WithIncludeCommandLineAPI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithIncludeCommandLineAPI specifies whether command line API should be\n// available to the evaluated expression, defaults to false.", "docstring_tokens": ["WithIncludeCommandLineAPI", "specifies", "whether", "command", "line", "API", "should", "be", "available", "to", "the", "evaluated", "expression", "defaults", "to", "false", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L146-L149", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.pause against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "pause", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L346-L348", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.pauseOnAsyncCall against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "pauseOnAsyncCall", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L368-L370", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.removeBreakpoint against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "removeBreakpoint", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L390-L392", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.resume against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "resume", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L446-L448", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.setAsyncCallStackDepth against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "setAsyncCallStackDepth", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L523-L525", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.setBlackboxPatterns against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "setBlackboxPatterns", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L551-L553", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.setBlackboxedRanges against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "setBlackboxedRanges", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L584-L586", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "WithURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithURL URL of the resources to set breakpoint on.", "docstring_tokens": ["WithURL", "URL", "of", "the", "resources", "to", "set", "breakpoint", "on", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L668-L671", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "WithURLRegex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithURLRegex regex pattern for the URLs of the resources to set\n// breakpoints on. Either url or urlRegex must be specified.", "docstring_tokens": ["WithURLRegex", "regex", "pattern", "for", "the", "URLs", "of", "the", "resources", "to", "set", "breakpoints", "on", ".", "Either", "url", "or", "urlRegex", "must", "be", "specified", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L675-L678", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "WithScriptHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithScriptHash script hash of the resources to set breakpoint on.", "docstring_tokens": ["WithScriptHash", "script", "hash", "of", "the", "resources", "to", "set", "breakpoint", "on", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L681-L684", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "WithColumnNumber", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithColumnNumber offset in the line to set breakpoint at.", "docstring_tokens": ["WithColumnNumber", "offset", "in", "the", "line", "to", "set", "breakpoint", "at", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L687-L690", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "WithCondition", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithCondition expression to use as a breakpoint condition. When specified,\n// debugger will stop on the breakpoint if this expression evaluates to true.", "docstring_tokens": ["WithCondition", "expression", "to", "use", "as", "a", "breakpoint", "condition", ".", "When", "specified", "debugger", "will", "stop", "on", "the", "breakpoint", "if", "this", "expression", "evaluates", "to", "true", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L746-L749", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.setBreakpointsActive against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "setBreakpointsActive", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L790-L792", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.setPauseOnExceptions against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "setPauseOnExceptions", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L816-L818", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.setReturnValue against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "setReturnValue", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L840-L842", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "WithDryRun", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithDryRun if true the change will not actually be applied. Dry run may be\n// used to get result description without actually modifying the code.", "docstring_tokens": ["WithDryRun", "if", "true", "the", "change", "will", "not", "actually", "be", "applied", ".", "Dry", "run", "may", "be", "used", "to", "get", "result", "description", "without", "actually", "modifying", "the", "code", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L867-L870", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.setSkipAllPauses against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "setSkipAllPauses", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L920-L922", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.setVariableValue against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "setVariableValue", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L953-L955", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "WithBreakOnAsyncCall", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBreakOnAsyncCall debugger will issue additional Debugger.paused\n// notification if any async task is scheduled before next pause.", "docstring_tokens": ["WithBreakOnAsyncCall", "debugger", "will", "issue", "additional", "Debugger", ".", "paused", "notification", "if", "any", "async", "task", "is", "scheduled", "before", "next", "pause", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L973-L976", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.stepInto against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "stepInto", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L979-L981", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.stepOut against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "stepOut", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L994-L996", "partition": "test"} +{"repo": "chromedp/cdproto", "path": "debugger/debugger.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes Debugger.stepOver against the provided context.", "docstring_tokens": ["Do", "executes", "Debugger", ".", "stepOver", "against", "the", "provided", "context", "."], "sha": "d40c70bcdf242660a32f2eadf323662dd75378b5", "url": "https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/debugger/debugger.go#L1009-L1011", "partition": "test"} +{"repo": "libp2p/go-libp2p-net", "path": "notifiee.go", "func_name": "Listen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Listen calls ListenF if it is not null.", "docstring_tokens": ["Listen", "calls", "ListenF", "if", "it", "is", "not", "null", "."], "sha": "a60cde50df6872512892ca85019341d281f72a42", "url": "https://github.com/libp2p/go-libp2p-net/blob/a60cde50df6872512892ca85019341d281f72a42/notifiee.go#L24-L28", "partition": "test"} +{"repo": "libp2p/go-libp2p-net", "path": "notifiee.go", "func_name": "ListenClose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListenClose calls ListenCloseF if it is not null.", "docstring_tokens": ["ListenClose", "calls", "ListenCloseF", "if", "it", "is", "not", "null", "."], "sha": "a60cde50df6872512892ca85019341d281f72a42", "url": "https://github.com/libp2p/go-libp2p-net/blob/a60cde50df6872512892ca85019341d281f72a42/notifiee.go#L31-L35", "partition": "test"} +{"repo": "libp2p/go-libp2p-net", "path": "notifiee.go", "func_name": "Connected", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Connected calls ConnectedF if it is not null.", "docstring_tokens": ["Connected", "calls", "ConnectedF", "if", "it", "is", "not", "null", "."], "sha": "a60cde50df6872512892ca85019341d281f72a42", "url": "https://github.com/libp2p/go-libp2p-net/blob/a60cde50df6872512892ca85019341d281f72a42/notifiee.go#L38-L42", "partition": "test"} +{"repo": "libp2p/go-libp2p-net", "path": "notifiee.go", "func_name": "Disconnected", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Disconnected calls DisconnectedF if it is not null.", "docstring_tokens": ["Disconnected", "calls", "DisconnectedF", "if", "it", "is", "not", "null", "."], "sha": "a60cde50df6872512892ca85019341d281f72a42", "url": "https://github.com/libp2p/go-libp2p-net/blob/a60cde50df6872512892ca85019341d281f72a42/notifiee.go#L45-L49", "partition": "test"} +{"repo": "libp2p/go-libp2p-net", "path": "notifiee.go", "func_name": "OpenedStream", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpenedStream calls OpenedStreamF if it is not null.", "docstring_tokens": ["OpenedStream", "calls", "OpenedStreamF", "if", "it", "is", "not", "null", "."], "sha": "a60cde50df6872512892ca85019341d281f72a42", "url": "https://github.com/libp2p/go-libp2p-net/blob/a60cde50df6872512892ca85019341d281f72a42/notifiee.go#L52-L56", "partition": "test"} +{"repo": "libp2p/go-libp2p-net", "path": "notifiee.go", "func_name": "ClosedStream", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClosedStream calls ClosedStreamF if it is not null.", "docstring_tokens": ["ClosedStream", "calls", "ClosedStreamF", "if", "it", "is", "not", "null", "."], "sha": "a60cde50df6872512892ca85019341d281f72a42", "url": "https://github.com/libp2p/go-libp2p-net/blob/a60cde50df6872512892ca85019341d281f72a42/notifiee.go#L59-L63", "partition": "test"} +{"repo": "libp2p/go-libp2p-net", "path": "options.go", "func_name": "WithNoDial", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithNoDial constructs a new context with an option that instructs the network\n// to not attempt a new dial when opening a stream.", "docstring_tokens": ["WithNoDial", "constructs", "a", "new", "context", "with", "an", "option", "that", "instructs", "the", "network", "to", "not", "attempt", "a", "new", "dial", "when", "opening", "a", "stream", "."], "sha": "a60cde50df6872512892ca85019341d281f72a42", "url": "https://github.com/libp2p/go-libp2p-net/blob/a60cde50df6872512892ca85019341d281f72a42/options.go#L13-L15", "partition": "test"} +{"repo": "libp2p/go-libp2p-net", "path": "options.go", "func_name": "GetNoDial", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNoDial returns true if the no dial option is set in the context.", "docstring_tokens": ["GetNoDial", "returns", "true", "if", "the", "no", "dial", "option", "is", "set", "in", "the", "context", "."], "sha": "a60cde50df6872512892ca85019341d281f72a42", "url": "https://github.com/libp2p/go-libp2p-net/blob/a60cde50df6872512892ca85019341d281f72a42/options.go#L18-L25", "partition": "test"} +{"repo": "libp2p/go-libp2p-net", "path": "timeouts.go", "func_name": "WithDialPeerTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithDialPeerTimeout returns a new context with the DialPeer timeout applied.\n//\n// This timeout overrides the default DialPeerTimeout and applies per-dial\n// independently.", "docstring_tokens": ["WithDialPeerTimeout", "returns", "a", "new", "context", "with", "the", "DialPeer", "timeout", "applied", ".", "This", "timeout", "overrides", "the", "default", "DialPeerTimeout", "and", "applies", "per", "-", "dial", "independently", "."], "sha": "a60cde50df6872512892ca85019341d281f72a42", "url": "https://github.com/libp2p/go-libp2p-net/blob/a60cde50df6872512892ca85019341d281f72a42/timeouts.go#L27-L29", "partition": "test"} +{"repo": "gchaincl/sqlhooks", "path": "sqlhooks.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open opens a connection", "docstring_tokens": ["Open", "opens", "a", "connection"], "sha": "1932c8dd22f2283687586008bf2d58c2c5c014d0", "url": "https://github.com/gchaincl/sqlhooks/blob/1932c8dd22f2283687586008bf2d58c2c5c014d0/sqlhooks.go#L46-L70", "partition": "test"} +{"repo": "glycerine/rbuf", "path": "rbuf.go", "func_name": "Prevpos", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Prevpos returns the index of the element before\n// from, or -1 if no more and from is the\n// first in the ring. Returns -2 on bad\n// from position.", "docstring_tokens": ["Prevpos", "returns", "the", "index", "of", "the", "element", "before", "from", "or", "-", "1", "if", "no", "more", "and", "from", "is", "the", "first", "in", "the", "ring", ".", "Returns", "-", "2", "on", "bad", "from", "position", "."], "sha": "75b78581bebe959bc9a3df4c5f64e82c187d7531", "url": "https://github.com/glycerine/rbuf/blob/75b78581bebe959bc9a3df4c5f64e82c187d7531/rbuf.go#L471-L493", "partition": "test"} +{"repo": "glycerine/rbuf", "path": "rbuf.go", "func_name": "Last", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Last returns the index of the last element,\n// or -1 if the ring is empty.", "docstring_tokens": ["Last", "returns", "the", "index", "of", "the", "last", "element", "or", "-", "1", "if", "the", "ring", "is", "empty", "."], "sha": "75b78581bebe959bc9a3df4c5f64e82c187d7531", "url": "https://github.com/glycerine/rbuf/blob/75b78581bebe959bc9a3df4c5f64e82c187d7531/rbuf.go#L497-L509", "partition": "test"} +{"repo": "glycerine/rbuf", "path": "rbuf.go", "func_name": "DeleteMostRecentBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteMostRecentBytes trims back the last n bytes written.", "docstring_tokens": ["DeleteMostRecentBytes", "trims", "back", "the", "last", "n", "bytes", "written", "."], "sha": "75b78581bebe959bc9a3df4c5f64e82c187d7531", "url": "https://github.com/glycerine/rbuf/blob/75b78581bebe959bc9a3df4c5f64e82c187d7531/rbuf.go#L530-L539", "partition": "test"} +{"repo": "glycerine/rbuf", "path": "fbuf.go", "func_name": "NewFloat64RingBuf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// constructor. NewFloat64RingBuf will allocate internally\n// a slice of maxViewItems float64.", "docstring_tokens": ["constructor", ".", "NewFloat64RingBuf", "will", "allocate", "internally", "a", "slice", "of", "maxViewItems", "float64", "."], "sha": "75b78581bebe959bc9a3df4c5f64e82c187d7531", "url": "https://github.com/glycerine/rbuf/blob/75b78581bebe959bc9a3df4c5f64e82c187d7531/fbuf.go#L23-L33", "partition": "test"} +{"repo": "glycerine/rbuf", "path": "fbuf.go", "func_name": "TwoContig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TwoContig returns all readable float64, but in two separate slices,\n// to avoid copying. The two slices are from the same buffer, but\n// are not contiguous. Either or both may be empty slices.", "docstring_tokens": ["TwoContig", "returns", "all", "readable", "float64", "but", "in", "two", "separate", "slices", "to", "avoid", "copying", ".", "The", "two", "slices", "are", "from", "the", "same", "buffer", "but", "are", "not", "contiguous", ".", "Either", "or", "both", "may", "be", "empty", "slices", "."], "sha": "75b78581bebe959bc9a3df4c5f64e82c187d7531", "url": "https://github.com/glycerine/rbuf/blob/75b78581bebe959bc9a3df4c5f64e82c187d7531/fbuf.go#L38-L48", "partition": "test"} +{"repo": "glycerine/rbuf", "path": "fbuf.go", "func_name": "Earliest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Earliest returns the earliest written value v. ok will be\n// true unless the ring is empty, in which case ok will be false,\n// and v will be zero.", "docstring_tokens": ["Earliest", "returns", "the", "earliest", "written", "value", "v", ".", "ok", "will", "be", "true", "unless", "the", "ring", "is", "empty", "in", "which", "case", "ok", "will", "be", "false", "and", "v", "will", "be", "zero", "."], "sha": "75b78581bebe959bc9a3df4c5f64e82c187d7531", "url": "https://github.com/glycerine/rbuf/blob/75b78581bebe959bc9a3df4c5f64e82c187d7531/fbuf.go#L53-L59", "partition": "test"} +{"repo": "glycerine/rbuf", "path": "fbuf.go", "func_name": "Values", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Values returns all readable float64 in a single buffer. Calling this function\n// might allocate a new buffer to store the elements contiguously.", "docstring_tokens": ["Values", "returns", "all", "readable", "float64", "in", "a", "single", "buffer", ".", "Calling", "this", "function", "might", "allocate", "a", "new", "buffer", "to", "store", "the", "elements", "contiguously", "."], "sha": "75b78581bebe959bc9a3df4c5f64e82c187d7531", "url": "https://github.com/glycerine/rbuf/blob/75b78581bebe959bc9a3df4c5f64e82c187d7531/fbuf.go#L63-L80", "partition": "test"} +{"repo": "glycerine/rbuf", "path": "atomic_rbuf.go", "func_name": "NewAtomicFixedSizeRingBuf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// constructor. NewAtomicFixedSizeRingBuf will allocate internally\n// two buffers of size maxViewInBytes.", "docstring_tokens": ["constructor", ".", "NewAtomicFixedSizeRingBuf", "will", "allocate", "internally", "two", "buffers", "of", "size", "maxViewInBytes", "."], "sha": "75b78581bebe959bc9a3df4c5f64e82c187d7531", "url": "https://github.com/glycerine/rbuf/blob/75b78581bebe959bc9a3df4c5f64e82c187d7531/atomic_rbuf.go#L56-L70", "partition": "test"} +{"repo": "glycerine/rbuf", "path": "atomic_rbuf.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset quickly forgets any data stored in the ring buffer. The\n// data is still there, but the ring buffer will ignore it and\n// overwrite those buffers as new data comes in.", "docstring_tokens": ["Reset", "quickly", "forgets", "any", "data", "stored", "in", "the", "ring", "buffer", ".", "The", "data", "is", "still", "there", "but", "the", "ring", "buffer", "will", "ignore", "it", "and", "overwrite", "those", "buffers", "as", "new", "data", "comes", "in", "."], "sha": "75b78581bebe959bc9a3df4c5f64e82c187d7531", "url": "https://github.com/glycerine/rbuf/blob/75b78581bebe959bc9a3df4c5f64e82c187d7531/atomic_rbuf.go#L403-L410", "partition": "test"} +{"repo": "glycerine/rbuf", "path": "pbuf.go", "func_name": "NewPointerRingBuf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// constructor. NewPointerRingBuf will allocate internally\n// a slice of size sliceN", "docstring_tokens": ["constructor", ".", "NewPointerRingBuf", "will", "allocate", "internally", "a", "slice", "of", "size", "sliceN"], "sha": "75b78581bebe959bc9a3df4c5f64e82c187d7531", "url": "https://github.com/glycerine/rbuf/blob/75b78581bebe959bc9a3df4c5f64e82c187d7531/pbuf.go#L21-L31", "partition": "test"} +{"repo": "glycerine/rbuf", "path": "pbuf.go", "func_name": "TwoContig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TwoContig returns all readable pointers, but in two separate slices,\n// to avoid copying. The two slices are from the same buffer, but\n// are not contiguous. Either or both may be empty slices.", "docstring_tokens": ["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", "may", "be", "empty", "slices", "."], "sha": "75b78581bebe959bc9a3df4c5f64e82c187d7531", "url": "https://github.com/glycerine/rbuf/blob/75b78581bebe959bc9a3df4c5f64e82c187d7531/pbuf.go#L36-L46", "partition": "test"} +{"repo": "rsc/pdf", "path": "page.go", "func_name": "NumPage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NumPage returns the number of pages in the PDF file.", "docstring_tokens": ["NumPage", "returns", "the", "number", "of", "pages", "in", "the", "PDF", "file", "."], "sha": "c47d69cf462f804ff58ca63c61a8fb2aed76587e", "url": "https://github.com/rsc/pdf/blob/c47d69cf462f804ff58ca63c61a8fb2aed76587e/page.go#L55-L57", "partition": "test"} +{"repo": "rsc/pdf", "path": "page.go", "func_name": "Font", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Font returns the font with the given name associated with the page.", "docstring_tokens": ["Font", "returns", "the", "font", "with", "the", "given", "name", "associated", "with", "the", "page", "."], "sha": "c47d69cf462f804ff58ca63c61a8fb2aed76587e", "url": "https://github.com/rsc/pdf/blob/c47d69cf462f804ff58ca63c61a8fb2aed76587e/page.go#L89-L91", "partition": "test"} +{"repo": "rsc/pdf", "path": "page.go", "func_name": "Width", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Width returns the width of the given code point.", "docstring_tokens": ["Width", "returns", "the", "width", "of", "the", "given", "code", "point", "."], "sha": "c47d69cf462f804ff58ca63c61a8fb2aed76587e", "url": "https://github.com/rsc/pdf/blob/c47d69cf462f804ff58ca63c61a8fb2aed76587e/page.go#L126-L133", "partition": "test"} +{"repo": "rsc/pdf", "path": "page.go", "func_name": "Encoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encoder returns the encoding between font code point sequences and UTF-8.", "docstring_tokens": ["Encoder", "returns", "the", "encoding", "between", "font", "code", "point", "sequences", "and", "UTF", "-", "8", "."], "sha": "c47d69cf462f804ff58ca63c61a8fb2aed76587e", "url": "https://github.com/rsc/pdf/blob/c47d69cf462f804ff58ca63c61a8fb2aed76587e/page.go#L136-L171", "partition": "test"} +{"repo": "rsc/pdf", "path": "ps.go", "func_name": "Interpret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Interpret interprets the content in a stream as a basic PostScript program,\n// pushing values onto a stack and then calling the do function to execute\n// operators. The do function may push or pop values from the stack as needed\n// to implement op.\n//\n// Interpret handles the operators \"dict\", \"currentdict\", \"begin\", \"end\", \"def\", and \"pop\" itself.\n//\n// Interpret is not a full-blown PostScript interpreter. Its job is to handle the\n// very limited PostScript found in certain supporting file formats embedded\n// in PDF files, such as cmap files that describe the mapping from font code\n// points to Unicode code points.\n//\n// There is no support for executable blocks, among other limitations.\n//", "docstring_tokens": ["Interpret", "interprets", "the", "content", "in", "a", "stream", "as", "a", "basic", "PostScript", "program", "pushing", "values", "onto", "a", "stack", "and", "then", "calling", "the", "do", "function", "to", "execute", "operators", ".", "The", "do", "function", "may", "push", "or", "pop", "values", "from", "the", "stack", "as", "needed", "to", "implement", "op", ".", "Interpret", "handles", "the", "operators", "dict", "currentdict", "begin", "end", "def", "and", "pop", "itself", ".", "Interpret", "is", "not", "a", "full", "-", "blown", "PostScript", "interpreter", ".", "Its", "job", "is", "to", "handle", "the", "very", "limited", "PostScript", "found", "in", "certain", "supporting", "file", "formats", "embedded", "in", "PDF", "files", "such", "as", "cmap", "files", "that", "describe", "the", "mapping", "from", "font", "code", "points", "to", "Unicode", "code", "points", ".", "There", "is", "no", "support", "for", "executable", "blocks", "among", "other", "limitations", "."], "sha": "c47d69cf462f804ff58ca63c61a8fb2aed76587e", "url": "https://github.com/rsc/pdf/blob/c47d69cf462f804ff58ca63c61a8fb2aed76587e/ps.go#L54-L124", "partition": "test"} +{"repo": "rsc/pdf", "path": "read.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open opens a file for reading.", "docstring_tokens": ["Open", "opens", "a", "file", "for", "reading", "."], "sha": "c47d69cf462f804ff58ca63c61a8fb2aed76587e", "url": "https://github.com/rsc/pdf/blob/c47d69cf462f804ff58ca63c61a8fb2aed76587e/read.go#L101-L113", "partition": "test"} +{"repo": "rsc/pdf", "path": "read.go", "func_name": "NewReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReader opens a file for reading, using the data in f with the given total size.", "docstring_tokens": ["NewReader", "opens", "a", "file", "for", "reading", "using", "the", "data", "in", "f", "with", "the", "given", "total", "size", "."], "sha": "c47d69cf462f804ff58ca63c61a8fb2aed76587e", "url": "https://github.com/rsc/pdf/blob/c47d69cf462f804ff58ca63c61a8fb2aed76587e/read.go#L116-L118", "partition": "test"} +{"repo": "rsc/pdf", "path": "read.go", "func_name": "NewReaderEncrypted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReaderEncrypted opens a file for reading, using the data in f with the given total size.\n// If the PDF is encrypted, NewReaderEncrypted calls pw repeatedly to obtain passwords\n// to try. If pw returns the empty string, NewReaderEncrypted stops trying to decrypt\n// the file and returns an error.", "docstring_tokens": ["NewReaderEncrypted", "opens", "a", "file", "for", "reading", "using", "the", "data", "in", "f", "with", "the", "given", "total", "size", ".", "If", "the", "PDF", "is", "encrypted", "NewReaderEncrypted", "calls", "pw", "repeatedly", "to", "obtain", "passwords", "to", "try", ".", "If", "pw", "returns", "the", "empty", "string", "NewReaderEncrypted", "stops", "trying", "to", "decrypt", "the", "file", "and", "returns", "an", "error", "."], "sha": "c47d69cf462f804ff58ca63c61a8fb2aed76587e", "url": "https://github.com/rsc/pdf/blob/c47d69cf462f804ff58ca63c61a8fb2aed76587e/read.go#L124-L187", "partition": "test"} +{"repo": "rsc/pdf", "path": "read.go", "func_name": "Trailer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Trailer returns the file's Trailer value.", "docstring_tokens": ["Trailer", "returns", "the", "file", "s", "Trailer", "value", "."], "sha": "c47d69cf462f804ff58ca63c61a8fb2aed76587e", "url": "https://github.com/rsc/pdf/blob/c47d69cf462f804ff58ca63c61a8fb2aed76587e/read.go#L190-L192", "partition": "test"} +{"repo": "rsc/pdf", "path": "read.go", "func_name": "Kind", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Kind reports the kind of value underlying v.", "docstring_tokens": ["Kind", "reports", "the", "kind", "of", "value", "underlying", "v", "."], "sha": "c47d69cf462f804ff58ca63c61a8fb2aed76587e", "url": "https://github.com/rsc/pdf/blob/c47d69cf462f804ff58ca63c61a8fb2aed76587e/read.go#L471-L492", "partition": "test"} +{"repo": "rsc/pdf", "path": "lex.go", "func_name": "newBuffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newBuffer returns a new buffer reading from r at the given offset.", "docstring_tokens": ["newBuffer", "returns", "a", "new", "buffer", "reading", "from", "r", "at", "the", "given", "offset", "."], "sha": "c47d69cf462f804ff58ca63c61a8fb2aed76587e", "url": "https://github.com/rsc/pdf/blob/c47d69cf462f804ff58ca63c61a8fb2aed76587e/lex.go#L52-L60", "partition": "test"} +{"repo": "go-bongo/bongo", "path": "resultSet.go", "func_name": "Paginate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set skip + limit on the current query and generates a PaginationInfo struct with info for your front end", "docstring_tokens": ["Set", "skip", "+", "limit", "on", "the", "current", "query", "and", "generates", "a", "PaginationInfo", "struct", "with", "info", "for", "your", "front", "end"], "sha": "761759e31d8fed917377aa7085db01d218ce50d8", "url": "https://github.com/go-bongo/bongo/blob/761759e31d8fed917377aa7085db01d218ce50d8/resultSet.go#L70-L115", "partition": "test"} +{"repo": "go-bongo/bongo", "path": "cascade.go", "func_name": "CascadeDelete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Deletes references to a document from its related documents", "docstring_tokens": ["Deletes", "references", "to", "a", "document", "from", "its", "related", "documents"], "sha": "761759e31d8fed917377aa7085db01d218ce50d8", "url": "https://github.com/go-bongo/bongo/blob/761759e31d8fed917377aa7085db01d218ce50d8/cascade.go#L95-L118", "partition": "test"} +{"repo": "go-bongo/bongo", "path": "cascade.go", "func_name": "cascadeDeleteWithConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Runs a cascaded delete operation with one configuration", "docstring_tokens": ["Runs", "a", "cascaded", "delete", "operation", "with", "one", "configuration"], "sha": "761759e31d8fed917377aa7085db01d218ce50d8", "url": "https://github.com/go-bongo/bongo/blob/761759e31d8fed917377aa7085db01d218ce50d8/cascade.go#L121-L152", "partition": "test"} +{"repo": "go-bongo/bongo", "path": "cascade.go", "func_name": "cascadeSaveWithConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Runs a cascaded save operation with one configuration", "docstring_tokens": ["Runs", "a", "cascaded", "save", "operation", "with", "one", "configuration"], "sha": "761759e31d8fed917377aa7085db01d218ce50d8", "url": "https://github.com/go-bongo/bongo/blob/761759e31d8fed917377aa7085db01d218ce50d8/cascade.go#L155-L228", "partition": "test"} +{"repo": "go-bongo/bongo", "path": "cascade.go", "func_name": "MapFromCascadeProperties", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// If you need to, you can use this to construct the data map that will be cascaded down to\n// related documents. Doing this is not recommended unless the cascaded fields are dynamic.", "docstring_tokens": ["If", "you", "need", "to", "you", "can", "use", "this", "to", "construct", "the", "data", "map", "that", "will", "be", "cascaded", "down", "to", "related", "documents", ".", "Doing", "this", "is", "not", "recommended", "unless", "the", "cascaded", "fields", "are", "dynamic", "."], "sha": "761759e31d8fed917377aa7085db01d218ce50d8", "url": "https://github.com/go-bongo/bongo/blob/761759e31d8fed917377aa7085db01d218ce50d8/cascade.go#L232-L275", "partition": "test"} +{"repo": "go-bongo/bongo", "path": "main.go", "func_name": "Connect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Connect to the database using the provided config", "docstring_tokens": ["Connect", "to", "the", "database", "using", "the", "provided", "config"], "sha": "761759e31d8fed917377aa7085db01d218ce50d8", "url": "https://github.com/go-bongo/bongo/blob/761759e31d8fed917377aa7085db01d218ce50d8/main.go#L39-L71", "partition": "test"} +{"repo": "go-bongo/bongo", "path": "utils.go", "func_name": "lowerInitial", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Lower cases first char of string", "docstring_tokens": ["Lower", "cases", "first", "char", "of", "string"], "sha": "761759e31d8fed917377aa7085db01d218ce50d8", "url": "https://github.com/go-bongo/bongo/blob/761759e31d8fed917377aa7085db01d218ce50d8/utils.go#L10-L15", "partition": "test"} +{"repo": "go-bongo/bongo", "path": "collection.go", "func_name": "Find", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This doesn't actually do any DB interaction, it just creates the result set so we can\n// start looping through on the iterator", "docstring_tokens": ["This", "doesn", "t", "actually", "do", "any", "DB", "interaction", "it", "just", "creates", "the", "result", "set", "so", "we", "can", "start", "looping", "through", "on", "the", "iterator"], "sha": "761759e31d8fed917377aa7085db01d218ce50d8", "url": "https://github.com/go-bongo/bongo/blob/761759e31d8fed917377aa7085db01d218ce50d8/collection.go#L212-L225", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp_information_query.go", "func_name": "RawInformationQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RawInformationQuery sends an information query request to the server.", "docstring_tokens": ["RawInformationQuery", "sends", "an", "information", "query", "request", "to", "the", "server", "."], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp_information_query.go#L20-L24", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient establishes a new Client connection based on a set of Options.", "docstring_tokens": ["NewClient", "establishes", "a", "new", "Client", "connection", "based", "on", "a", "set", "of", "Options", "."], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp.go#L200-L245", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the XMPP connection", "docstring_tokens": ["Close", "closes", "the", "XMPP", "connection"], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp.go#L275-L280", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp.go", "func_name": "startTLSIfRequired", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startTlsIfRequired examines the server's stream features and, if STARTTLS is required or supported, performs the TLS handshake.\n// f will be updated if the handshake completes, as the new stream's features are typically different from the original.", "docstring_tokens": ["startTlsIfRequired", "examines", "the", "server", "s", "stream", "features", "and", "if", "STARTTLS", "is", "required", "or", "supported", "performs", "the", "TLS", "handshake", ".", "f", "will", "be", "updated", "if", "the", "handshake", "completes", "as", "the", "new", "stream", "s", "features", "are", "typically", "different", "from", "the", "original", "."], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp.go#L484-L525", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp.go", "func_name": "startStream", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// startStream will start a new XML decoder for the connection, signal the start of a stream to the server and verify that the server has\n// also started the stream; if o.Debug is true, startStream will tee decoded XML data to stderr. The features advertised by the server\n// will be returned.", "docstring_tokens": ["startStream", "will", "start", "a", "new", "XML", "decoder", "for", "the", "connection", "signal", "the", "start", "of", "a", "stream", "to", "the", "server", "and", "verify", "that", "the", "server", "has", "also", "started", "the", "stream", ";", "if", "o", ".", "Debug", "is", "true", "startStream", "will", "tee", "decoded", "XML", "data", "to", "stderr", ".", "The", "features", "advertised", "by", "the", "server", "will", "be", "returned", "."], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp.go#L530-L562", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp.go", "func_name": "IsEncrypted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsEncrypted will return true if the client is connected using a TLS transport, either because it used.\n// TLS to connect from the outset, or because it successfully used STARTTLS to promote a TCP connection to TLS.", "docstring_tokens": ["IsEncrypted", "will", "return", "true", "if", "the", "client", "is", "connected", "using", "a", "TLS", "transport", "either", "because", "it", "used", ".", "TLS", "to", "connect", "from", "the", "outset", "or", "because", "it", "successfully", "used", "STARTTLS", "to", "promote", "a", "TCP", "connection", "to", "TLS", "."], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp.go#L566-L569", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp.go", "func_name": "Recv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Recv waits to receive the next XMPP stanza.\n// Return type is either a presence notification or a chat message.", "docstring_tokens": ["Recv", "waits", "to", "receive", "the", "next", "XMPP", "stanza", ".", "Return", "type", "is", "either", "a", "presence", "notification", "or", "a", "chat", "message", "."], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp.go#L611-L653", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends the message wrapped inside an XMPP message stanza body.", "docstring_tokens": ["Send", "sends", "the", "message", "wrapped", "inside", "an", "XMPP", "message", "stanza", "body", "."], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp.go#L656-L670", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp.go", "func_name": "SendOrg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendOrg sends the original text without being wrapped in an XMPP message stanza.", "docstring_tokens": ["SendOrg", "sends", "the", "original", "text", "without", "being", "wrapped", "in", "an", "XMPP", "message", "stanza", "."], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp.go#L673-L675", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp.go", "func_name": "SendKeepAlive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendKeepAlive sends a \"whitespace keepalive\" as described in chapter 4.6.1 of RFC6120.", "docstring_tokens": ["SendKeepAlive", "sends", "a", "whitespace", "keepalive", "as", "described", "in", "chapter", "4", ".", "6", ".", "1", "of", "RFC6120", "."], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp.go#L682-L684", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp.go", "func_name": "SendHtml", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendHtml sends the message as HTML as defined by XEP-0071", "docstring_tokens": ["SendHtml", "sends", "the", "message", "as", "HTML", "as", "defined", "by", "XEP", "-", "0071"], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp.go#L687-L692", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp.go", "func_name": "nextStart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Scan XML token stream to find next StartElement.", "docstring_tokens": ["Scan", "XML", "token", "stream", "to", "find", "next", "StartElement", "."], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp.go#L877-L888", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp_muc.go", "func_name": "JoinProtectedMUC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// xep-0045 7.2.6", "docstring_tokens": ["xep", "-", "0045", "7", ".", "2", ".", "6"], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp_muc.go#L85-L129", "partition": "test"} +{"repo": "mattn/go-xmpp", "path": "xmpp_muc.go", "func_name": "LeaveMUC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// xep-0045 7.14", "docstring_tokens": ["xep", "-", "0045", "7", ".", "14"], "sha": "6093f50721ed2204a87a81109ca5a466a5bec6c1", "url": "https://github.com/mattn/go-xmpp/blob/6093f50721ed2204a87a81109ca5a466a5bec6c1/xmpp_muc.go#L132-L135", "partition": "test"} +{"repo": "scorredoira/email", "path": "email.go", "func_name": "AttachBuffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AttachBuffer attaches a binary attachment.", "docstring_tokens": ["AttachBuffer", "attaches", "a", "binary", "attachment", "."], "sha": "c1787f8317a847a7adc13673be80723268e6e639", "url": "https://github.com/scorredoira/email/blob/c1787f8317a847a7adc13673be80723268e6e639/email.go#L77-L84", "partition": "test"} +{"repo": "scorredoira/email", "path": "email.go", "func_name": "Attach", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Attach attaches a file.", "docstring_tokens": ["Attach", "attaches", "a", "file", "."], "sha": "c1787f8317a847a7adc13673be80723268e6e639", "url": "https://github.com/scorredoira/email/blob/c1787f8317a847a7adc13673be80723268e6e639/email.go#L87-L89", "partition": "test"} +{"repo": "scorredoira/email", "path": "email.go", "func_name": "Inline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Inline includes a file as an inline attachment.", "docstring_tokens": ["Inline", "includes", "a", "file", "as", "an", "inline", "attachment", "."], "sha": "c1787f8317a847a7adc13673be80723268e6e639", "url": "https://github.com/scorredoira/email/blob/c1787f8317a847a7adc13673be80723268e6e639/email.go#L92-L94", "partition": "test"} +{"repo": "scorredoira/email", "path": "email.go", "func_name": "AddHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ads a Header to message", "docstring_tokens": ["Ads", "a", "Header", "to", "message"], "sha": "c1787f8317a847a7adc13673be80723268e6e639", "url": "https://github.com/scorredoira/email/blob/c1787f8317a847a7adc13673be80723268e6e639/email.go#L97-L101", "partition": "test"} +{"repo": "scorredoira/email", "path": "email.go", "func_name": "Tolist", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tolist returns all the recipients of the email", "docstring_tokens": ["Tolist", "returns", "all", "the", "recipients", "of", "the", "email"], "sha": "c1787f8317a847a7adc13673be80723268e6e639", "url": "https://github.com/scorredoira/email/blob/c1787f8317a847a7adc13673be80723268e6e639/email.go#L122-L134", "partition": "test"} +{"repo": "scorredoira/email", "path": "email.go", "func_name": "Bytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Bytes returns the mail data", "docstring_tokens": ["Bytes", "returns", "the", "mail", "data"], "sha": "c1787f8317a847a7adc13673be80723268e6e639", "url": "https://github.com/scorredoira/email/blob/c1787f8317a847a7adc13673be80723268e6e639/email.go#L137-L222", "partition": "test"} +{"repo": "scorredoira/email", "path": "email.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends the message.", "docstring_tokens": ["Send", "sends", "the", "message", "."], "sha": "c1787f8317a847a7adc13673be80723268e6e639", "url": "https://github.com/scorredoira/email/blob/c1787f8317a847a7adc13673be80723268e6e639/email.go#L225-L227", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "envelope.go", "func_name": "GetHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHeader processes the specified header for RFC 2047 encoded words and returns the result as a\n// UTF-8 string", "docstring_tokens": ["GetHeader", "processes", "the", "specified", "header", "for", "RFC", "2047", "encoded", "words", "and", "returns", "the", "result", "as", "a", "UTF", "-", "8", "string"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/envelope.go#L44-L49", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "envelope.go", "func_name": "GetHeaderValues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHeaderValues processes the specified header for RFC 2047 encoded words and returns all existing\n// values as a list of UTF-8 strings", "docstring_tokens": ["GetHeaderValues", "processes", "the", "specified", "header", "for", "RFC", "2047", "encoded", "words", "and", "returns", "all", "existing", "values", "as", "a", "list", "of", "UTF", "-", "8", "strings"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/envelope.go#L53-L64", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "envelope.go", "func_name": "SetHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHeader sets given header name to the given value.\n// If the header exists already, all existing values are replaced.", "docstring_tokens": ["SetHeader", "sets", "given", "header", "name", "to", "the", "given", "value", ".", "If", "the", "header", "exists", "already", "all", "existing", "values", "are", "replaced", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/envelope.go#L68-L81", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "envelope.go", "func_name": "AddHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddHeader appends given header value to header name without changing existing values.\n// If the header does not exist already, it will be created.", "docstring_tokens": ["AddHeader", "appends", "given", "header", "value", "to", "header", "name", "without", "changing", "existing", "values", ".", "If", "the", "header", "does", "not", "exist", "already", "it", "will", "be", "created", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/envelope.go#L85-L92", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "envelope.go", "func_name": "DeleteHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteHeader deletes given header.", "docstring_tokens": ["DeleteHeader", "deletes", "given", "header", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/envelope.go#L95-L102", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "envelope.go", "func_name": "AddressList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddressList returns a mail.Address slice with RFC 2047 encoded names converted to UTF-8", "docstring_tokens": ["AddressList", "returns", "a", "mail", ".", "Address", "slice", "with", "RFC", "2047", "encoded", "names", "converted", "to", "UTF", "-", "8"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/envelope.go#L105-L134", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "envelope.go", "func_name": "Clone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clone returns a clone of the current Envelope", "docstring_tokens": ["Clone", "returns", "a", "clone", "of", "the", "current", "Envelope"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/envelope.go#L137-L153", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "envelope.go", "func_name": "ReadEnvelope", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadEnvelope is a wrapper around ReadParts and EnvelopeFromPart. It parses the content of the\n// provided reader into an Envelope, downconverting HTML to plain text if needed, and sorting the\n// attachments, inlines and other parts into their respective slices. Errors are collected from all\n// Parts and placed into the Envelope.Errors slice.", "docstring_tokens": ["ReadEnvelope", "is", "a", "wrapper", "around", "ReadParts", "and", "EnvelopeFromPart", ".", "It", "parses", "the", "content", "of", "the", "provided", "reader", "into", "an", "Envelope", "downconverting", "HTML", "to", "plain", "text", "if", "needed", "and", "sorting", "the", "attachments", "inlines", "and", "other", "parts", "into", "their", "respective", "slices", ".", "Errors", "are", "collected", "from", "all", "Parts", "and", "placed", "into", "the", "Envelope", ".", "Errors", "slice", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/envelope.go#L159-L166", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "envelope.go", "func_name": "EnvelopeFromPart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnvelopeFromPart uses the provided Part tree to build an Envelope, downconverting HTML to plain\n// text if needed, and sorting the attachments, inlines and other parts into their respective\n// slices. Errors are collected from all Parts and placed into the Envelopes Errors slice.", "docstring_tokens": ["EnvelopeFromPart", "uses", "the", "provided", "Part", "tree", "to", "build", "an", "Envelope", "downconverting", "HTML", "to", "plain", "text", "if", "needed", "and", "sorting", "the", "attachments", "inlines", "and", "other", "parts", "into", "their", "respective", "slices", ".", "Errors", "are", "collected", "from", "all", "Parts", "and", "placed", "into", "the", "Envelopes", "Errors", "slice", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/envelope.go#L171-L230", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "envelope.go", "func_name": "parseTextOnlyBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseTextOnlyBody parses a plain text message in root that has MIME-like headers, but\n// only contains a single part - no boundaries, etc. The result is placed in e.", "docstring_tokens": ["parseTextOnlyBody", "parses", "a", "plain", "text", "message", "in", "root", "that", "has", "MIME", "-", "like", "headers", "but", "only", "contains", "a", "single", "part", "-", "no", "boundaries", "etc", ".", "The", "result", "is", "placed", "in", "e", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/envelope.go#L234-L272", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "envelope.go", "func_name": "parseMultiPartBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseMultiPartBody parses a multipart message in root. The result is placed in e.", "docstring_tokens": ["parseMultiPartBody", "parses", "a", "multipart", "message", "in", "root", ".", "The", "result", "is", "placed", "in", "e", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/envelope.go#L275-L342", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "envelope.go", "func_name": "matchHTMLBodyPart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Used by Part matchers to locate the HTML body. Not inlined because it's used in multiple places.", "docstring_tokens": ["Used", "by", "Part", "matchers", "to", "locate", "the", "HTML", "body", ".", "Not", "inlined", "because", "it", "s", "used", "in", "multiple", "places", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/envelope.go#L345-L347", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "envelope.go", "func_name": "ensureCommaDelimitedAddresses", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Used by AddressList to ensure that address lists are properly delimited", "docstring_tokens": ["Used", "by", "AddressList", "to", "ensure", "that", "address", "lists", "are", "properly", "delimited"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/envelope.go#L350-L406", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "builder.go", "func_name": "Date", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Date returns a copy of MailBuilder with the specified Date header.", "docstring_tokens": ["Date", "returns", "a", "copy", "of", "MailBuilder", "with", "the", "specified", "Date", "header", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/builder.go#L46-L49", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "builder.go", "func_name": "From", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// From returns a copy of MailBuilder with the specified From header.", "docstring_tokens": ["From", "returns", "a", "copy", "of", "MailBuilder", "with", "the", "specified", "From", "header", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/builder.go#L52-L55", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "builder.go", "func_name": "Subject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subject returns a copy of MailBuilder with the specified Subject header.", "docstring_tokens": ["Subject", "returns", "a", "copy", "of", "MailBuilder", "with", "the", "specified", "Subject", "header", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/builder.go#L58-L61", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "builder.go", "func_name": "To", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// To returns a copy of MailBuilder with this name & address appended to the To header. name may be\n// empty.", "docstring_tokens": ["To", "returns", "a", "copy", "of", "MailBuilder", "with", "this", "name", "&", "address", "appended", "to", "the", "To", "header", ".", "name", "may", "be", "empty", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/builder.go#L65-L68", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "builder.go", "func_name": "ToAddrs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToAddrs returns a copy of MailBuilder with the specified To addresses.", "docstring_tokens": ["ToAddrs", "returns", "a", "copy", "of", "MailBuilder", "with", "the", "specified", "To", "addresses", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/builder.go#L71-L74", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "builder.go", "func_name": "CC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CC returns a copy of MailBuilder with this name & address appended to the CC header. name may be\n// empty.", "docstring_tokens": ["CC", "returns", "a", "copy", "of", "MailBuilder", "with", "this", "name", "&", "address", "appended", "to", "the", "CC", "header", ".", "name", "may", "be", "empty", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/builder.go#L78-L81", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "builder.go", "func_name": "CCAddrs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CCAddrs returns a copy of MailBuilder with the specified CC addresses.", "docstring_tokens": ["CCAddrs", "returns", "a", "copy", "of", "MailBuilder", "with", "the", "specified", "CC", "addresses", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/builder.go#L84-L87", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "builder.go", "func_name": "ReplyTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReplyTo returns a copy of MailBuilder with this name & address appended to the To header. name\n// may be empty.", "docstring_tokens": ["ReplyTo", "returns", "a", "copy", "of", "MailBuilder", "with", "this", "name", "&", "address", "appended", "to", "the", "To", "header", ".", "name", "may", "be", "empty", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/builder.go#L107-L110", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "builder.go", "func_name": "Header", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Header returns a copy of MailBuilder with the specified value added to the named header.", "docstring_tokens": ["Header", "returns", "a", "copy", "of", "MailBuilder", "with", "the", "specified", "value", "added", "to", "the", "named", "header", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/builder.go#L113-L122", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "builder.go", "func_name": "AddAttachment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddAttachment returns a copy of MailBuilder that includes the specified attachment.", "docstring_tokens": ["AddAttachment", "returns", "a", "copy", "of", "MailBuilder", "that", "includes", "the", "specified", "attachment", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/builder.go#L137-L144", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "builder.go", "func_name": "AddFileAttachment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFileAttachment returns a copy of MailBuilder that includes the specified attachment.\n// fileName, will be populated from the base name of path. Content type will be detected from the\n// path extension.", "docstring_tokens": ["AddFileAttachment", "returns", "a", "copy", "of", "MailBuilder", "that", "includes", "the", "specified", "attachment", ".", "fileName", "will", "be", "populated", "from", "the", "base", "name", "of", "path", ".", "Content", "type", "will", "be", "detected", "from", "the", "path", "extension", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/builder.go#L149-L167", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "builder.go", "func_name": "AddInline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddInline returns a copy of MailBuilder that includes the specified inline. fileName and\n// contentID may be left empty.", "docstring_tokens": ["AddInline", "returns", "a", "copy", "of", "MailBuilder", "that", "includes", "the", "specified", "inline", ".", "fileName", "and", "contentID", "may", "be", "left", "empty", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/builder.go#L171-L184", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "builder.go", "func_name": "Equals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equals uses the reflect package to test two MailBuilder structs for equality, primarily for unit\n// tests.", "docstring_tokens": ["Equals", "uses", "the", "reflect", "package", "to", "test", "two", "MailBuilder", "structs", "for", "equality", "primarily", "for", "unit", "tests", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/builder.go#L337-L339", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "encode.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode writes this Part and all its children to the specified writer in MIME format.", "docstring_tokens": ["Encode", "writes", "this", "Part", "and", "all", "its", "children", "to", "the", "specified", "writer", "in", "MIME", "format", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/encode.go#L32-L64", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "encode.go", "func_name": "encodeHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// encodeHeader writes out a sorted list of headers.", "docstring_tokens": ["encodeHeader", "writes", "out", "a", "sorted", "list", "of", "headers", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/encode.go#L131-L152", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "encode.go", "func_name": "encodeContent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// encodeContent writes out the content in the selected encoding.", "docstring_tokens": ["encodeContent", "writes", "out", "the", "content", "in", "the", "selected", "encoding", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/encode.go#L155-L183", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "encode.go", "func_name": "selectTransferEncoding", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// selectTransferEncoding scans content for non-ASCII characters and selects 'b' or 'q' encoding.", "docstring_tokens": ["selectTransferEncoding", "scans", "content", "for", "non", "-", "ASCII", "characters", "and", "selects", "b", "or", "q", "encoding", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/encode.go#L186-L208", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "encode.go", "func_name": "setParamValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setParamValue will ignore empty values", "docstring_tokens": ["setParamValue", "will", "ignore", "empty", "values"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/encode.go#L211-L215", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "internal/coding/base64.go", "func_name": "NewBase64Cleaner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBase64Cleaner returns a Base64Cleaner object for the specified reader. Base64Cleaner\n// implements the io.Reader interface.", "docstring_tokens": ["NewBase64Cleaner", "returns", "a", "Base64Cleaner", "object", "for", "the", "specified", "reader", ".", "Base64Cleaner", "implements", "the", "io", ".", "Reader", "interface", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/internal/coding/base64.go#L35-L40", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "header.go", "func_name": "decodeToUTF8Base64Header", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// decodeToUTF8Base64Header decodes a MIME header per RFC 2047, reencoding to =?utf-8b?", "docstring_tokens": ["decodeToUTF8Base64Header", "decodes", "a", "MIME", "header", "per", "RFC", "2047", "reencoding", "to", "=", "?utf", "-", "8b?"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/header.go#L167-L197", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "header.go", "func_name": "parseMediaType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseMediaType is a more tolerant implementation of Go's mime.ParseMediaType function.", "docstring_tokens": ["parseMediaType", "is", "a", "more", "tolerant", "implementation", "of", "Go", "s", "mime", ".", "ParseMediaType", "function", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/header.go#L200-L233", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "header.go", "func_name": "fixMangledMediaType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fixMangledMediaType is used to insert ; separators into media type strings that lack them, and\n// remove repeated parameters.", "docstring_tokens": ["fixMangledMediaType", "is", "used", "to", "insert", ";", "separators", "into", "media", "type", "strings", "that", "lack", "them", "and", "remove", "repeated", "parameters", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/header.go#L237-L283", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "detect.go", "func_name": "detectMultipartMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// detectMultipartMessage returns true if the message has a recognized multipart Content-Type header", "docstring_tokens": ["detectMultipartMessage", "returns", "true", "if", "the", "message", "has", "a", "recognized", "multipart", "Content", "-", "Type", "header"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/detect.go#L9-L19", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "detect.go", "func_name": "detectBinaryBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// detectBinaryBody returns true if the mail header defines a binary body.", "docstring_tokens": ["detectBinaryBody", "returns", "true", "if", "the", "mail", "header", "defines", "a", "binary", "body", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/detect.go#L64-L83", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "match.go", "func_name": "BreadthMatchFirst", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BreadthMatchFirst performs a breadth first search of the Part tree and returns the first part\n// that causes the given matcher to return true", "docstring_tokens": ["BreadthMatchFirst", "performs", "a", "breadth", "first", "search", "of", "the", "Part", "tree", "and", "returns", "the", "first", "part", "that", "causes", "the", "given", "matcher", "to", "return", "true"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/match.go#L14-L34", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "match.go", "func_name": "BreadthMatchAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BreadthMatchAll performs a breadth first search of the Part tree and returns all parts that cause\n// the given matcher to return true", "docstring_tokens": ["BreadthMatchAll", "performs", "a", "breadth", "first", "search", "of", "the", "Part", "tree", "and", "returns", "all", "parts", "that", "cause", "the", "given", "matcher", "to", "return", "true"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/match.go#L38-L60", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "match.go", "func_name": "DepthMatchFirst", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DepthMatchFirst performs a depth first search of the Part tree and returns the first part that\n// causes the given matcher to return true", "docstring_tokens": ["DepthMatchFirst", "performs", "a", "depth", "first", "search", "of", "the", "Part", "tree", "and", "returns", "the", "first", "part", "that", "causes", "the", "given", "matcher", "to", "return", "true"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/match.go#L64-L83", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "match.go", "func_name": "DepthMatchAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DepthMatchAll performs a depth first search of the Part tree and returns all parts that causes\n// the given matcher to return true", "docstring_tokens": ["DepthMatchAll", "performs", "a", "depth", "first", "search", "of", "the", "Part", "tree", "and", "returns", "all", "parts", "that", "causes", "the", "given", "matcher", "to", "return", "true"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/match.go#L87-L107", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "internal/stringutil/unicode.go", "func_name": "ToASCII", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToASCII converts unicode to ASCII by stripping accents and converting some special characters\n// into their ASCII approximations. Anything else will be replaced with an underscore.", "docstring_tokens": ["ToASCII", "converts", "unicode", "to", "ASCII", "by", "stripping", "accents", "and", "converting", "some", "special", "characters", "into", "their", "ASCII", "approximations", ".", "Anything", "else", "will", "be", "replaced", "with", "an", "underscore", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/internal/stringutil/unicode.go#L47-L53", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "part.go", "func_name": "NewPart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPart creates a new Part object.", "docstring_tokens": ["NewPart", "creates", "a", "new", "Part", "object", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/part.go#L47-L52", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "part.go", "func_name": "AddChild", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddChild adds a child part to either FirstChild or the end of the children NextSibling chain.\n// The child may have siblings and children attached. This method will set the Parent field on\n// child and all its siblings. Safe to call on nil.", "docstring_tokens": ["AddChild", "adds", "a", "child", "part", "to", "either", "FirstChild", "or", "the", "end", "of", "the", "children", "NextSibling", "chain", ".", "The", "child", "may", "have", "siblings", "and", "children", "attached", ".", "This", "method", "will", "set", "the", "Parent", "field", "on", "child", "and", "all", "its", "siblings", ".", "Safe", "to", "call", "on", "nil", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/part.go#L57-L87", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "part.go", "func_name": "TextContent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TextContent indicates whether the content is text based on its content type. This value\n// determines what content transfer encoding scheme to use.", "docstring_tokens": ["TextContent", "indicates", "whether", "the", "content", "is", "text", "based", "on", "its", "content", "type", ".", "This", "value", "determines", "what", "content", "transfer", "encoding", "scheme", "to", "use", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/part.go#L91-L98", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "part.go", "func_name": "setupHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setupHeaders reads the header, then populates the MIME header values for this Part.", "docstring_tokens": ["setupHeaders", "reads", "the", "header", "then", "populates", "the", "MIME", "header", "values", "for", "this", "Part", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/part.go#L101-L137", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "part.go", "func_name": "setupContentHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setupContentHeaders uses Content-Type media params and Content-Disposition headers to populate\n// the disposition, filename, and charset fields.", "docstring_tokens": ["setupContentHeaders", "uses", "Content", "-", "Type", "media", "params", "and", "Content", "-", "Disposition", "headers", "to", "populate", "the", "disposition", "filename", "and", "charset", "fields", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/part.go#L141-L161", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "part.go", "func_name": "convertFromDetectedCharset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// convertFromDetectedCharset attempts to detect the character set for the given part, and returns\n// an io.Reader that will convert from that charset to UTF-8. If the charset cannot be detected,\n// this method adds a warning to the part and automatically falls back to using\n// `convertFromStatedCharset` and returns the reader from that method.", "docstring_tokens": ["convertFromDetectedCharset", "attempts", "to", "detect", "the", "character", "set", "for", "the", "given", "part", "and", "returns", "an", "io", ".", "Reader", "that", "will", "convert", "from", "that", "charset", "to", "UTF", "-", "8", ".", "If", "the", "charset", "cannot", "be", "detected", "this", "method", "adds", "a", "warning", "to", "the", "part", "and", "automatically", "falls", "back", "to", "using", "convertFromStatedCharset", "and", "returns", "the", "reader", "from", "that", "method", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/part.go#L167-L218", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "part.go", "func_name": "Clone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clone returns a clone of the current Part.", "docstring_tokens": ["Clone", "returns", "a", "clone", "of", "the", "current", "Part", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/part.go#L310-L333", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "part.go", "func_name": "ReadParts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadParts reads a MIME document from the provided reader and parses it into tree of Part objects.", "docstring_tokens": ["ReadParts", "reads", "a", "MIME", "document", "from", "the", "provided", "reader", "and", "parses", "it", "into", "tree", "of", "Part", "objects", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/part.go#L336-L357", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "part.go", "func_name": "parseParts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseParts recursively parses a MIME multipart document and sets each Parts PartID.", "docstring_tokens": ["parseParts", "recursively", "parses", "a", "MIME", "multipart", "document", "and", "sets", "each", "Parts", "PartID", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/part.go#L360-L427", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "internal/stringutil/uuid.go", "func_name": "UUID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UUID generates a random UUID according to RFC 4122.", "docstring_tokens": ["UUID", "generates", "a", "random", "UUID", "according", "to", "RFC", "4122", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/internal/stringutil/uuid.go#L14-L24", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "internal/coding/quotedprint.go", "func_name": "NewQPCleaner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewQPCleaner returns a QPCleaner for the specified reader.", "docstring_tokens": ["NewQPCleaner", "returns", "a", "QPCleaner", "for", "the", "specified", "reader", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/internal/coding/quotedprint.go#L19-L23", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "error.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error formats the enmime.Error as a string.", "docstring_tokens": ["Error", "formats", "the", "enmime", ".", "Error", "as", "a", "string", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/error.go#L34-L40", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "error.go", "func_name": "addError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addWarning builds a severe Error and appends to the Part error slice.", "docstring_tokens": ["addWarning", "builds", "a", "severe", "Error", "and", "appends", "to", "the", "Part", "error", "slice", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/error.go#L48-L56", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "error.go", "func_name": "addWarning", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addWarning builds a non-severe Error and appends to the Part error slice.", "docstring_tokens": ["addWarning", "builds", "a", "non", "-", "severe", "Error", "and", "appends", "to", "the", "Part", "error", "slice", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/error.go#L59-L67", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "internal/stringutil/wrap.go", "func_name": "Wrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap builds a byte slice from strs, wrapping on word boundaries before max chars", "docstring_tokens": ["Wrap", "builds", "a", "byte", "slice", "from", "strs", "wrapping", "on", "word", "boundaries", "before", "max", "chars"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/internal/stringutil/wrap.go#L4-L36", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "internal/coding/charsets.go", "func_name": "ConvertToUTF8String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConvertToUTF8String uses the provided charset to decode a slice of bytes into a normal\n// UTF-8 string.", "docstring_tokens": ["ConvertToUTF8String", "uses", "the", "provided", "charset", "to", "decode", "a", "slice", "of", "bytes", "into", "a", "normal", "UTF", "-", "8", "string", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/internal/coding/charsets.go#L272-L287", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "internal/stringutil/addr.go", "func_name": "JoinAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JoinAddress formats a slice of Address structs such that they can be used in a To or Cc header.", "docstring_tokens": ["JoinAddress", "formats", "a", "slice", "of", "Address", "structs", "such", "that", "they", "can", "be", "used", "in", "a", "To", "or", "Cc", "header", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/internal/stringutil/addr.go#L9-L21", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "cmd/utils.go", "func_name": "Printf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Printf implements fmt.Printf for markdown", "docstring_tokens": ["Printf", "implements", "fmt", ".", "Printf", "for", "markdown"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/cmd/utils.go#L36-L38", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "cmd/utils.go", "func_name": "EnvelopeToMarkdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnvelopeToMarkdown renders the contents of an enmime.Envelope in Markdown format. Used by\n// mime-dump and mime-extractor commands.", "docstring_tokens": ["EnvelopeToMarkdown", "renders", "the", "contents", "of", "an", "enmime", ".", "Envelope", "in", "Markdown", "format", ".", "Used", "by", "mime", "-", "dump", "and", "mime", "-", "extractor", "commands", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/cmd/utils.go#L47-L140", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "cmd/utils.go", "func_name": "FormatPart", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FormatPart pretty prints the Part tree", "docstring_tokens": ["FormatPart", "pretty", "prints", "the", "Part", "tree"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/cmd/utils.go#L143-L186", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "boundary.go", "func_name": "newBoundaryReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newBoundaryReader returns an initialized boundaryReader", "docstring_tokens": ["newBoundaryReader", "returns", "an", "initialized", "boundaryReader"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/boundary.go#L28-L37", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "boundary.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read returns a buffer containing the content up until boundary", "docstring_tokens": ["Read", "returns", "a", "buffer", "containing", "the", "content", "up", "until", "boundary"], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/boundary.go#L40-L83", "partition": "test"} +{"repo": "jhillyerd/enmime", "path": "boundary.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next moves over the boundary to the next part, returns true if there is another part to be read.", "docstring_tokens": ["Next", "moves", "over", "the", "boundary", "to", "the", "next", "part", "returns", "true", "if", "there", "is", "another", "part", "to", "be", "read", "."], "sha": "874cc30e023f36bd1df525716196887b0f04851b", "url": "https://github.com/jhillyerd/enmime/blob/874cc30e023f36bd1df525716196887b0f04851b/boundary.go#L86-L124", "partition": "test"} +{"repo": "senseyeio/roger", "path": "sexp/factory.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse converts a byte array containing R SEXP to a golang object.\n// This can be converted to native golang types.", "docstring_tokens": ["Parse", "converts", "a", "byte", "array", "containing", "R", "SEXP", "to", "a", "golang", "object", ".", "This", "can", "be", "converted", "to", "native", "golang", "types", "."], "sha": "5a944f2c5ceb5139f926c5ae134202ec2abba71a", "url": "https://github.com/senseyeio/roger/blob/5a944f2c5ceb5139f926c5ae134202ec2abba71a/sexp/factory.go#L15-L18", "partition": "test"} +{"repo": "senseyeio/roger", "path": "assign/factory.go", "func_name": "Assign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Assign produces a command to assign a value to a variable within a go session", "docstring_tokens": ["Assign", "produces", "a", "command", "to", "assign", "a", "value", "to", "a", "variable", "within", "a", "go", "session"], "sha": "5a944f2c5ceb5139f926c5ae134202ec2abba71a", "url": "https://github.com/senseyeio/roger/blob/5a944f2c5ceb5139f926c5ae134202ec2abba71a/assign/factory.go#L6-L25", "partition": "test"} +{"repo": "senseyeio/roger", "path": "client.go", "func_name": "NewRClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRClient creates a RClient which will run commands on the RServe server located at the provided host and port", "docstring_tokens": ["NewRClient", "creates", "a", "RClient", "which", "will", "run", "commands", "on", "the", "RServe", "server", "located", "at", "the", "provided", "host", "and", "port"], "sha": "5a944f2c5ceb5139f926c5ae134202ec2abba71a", "url": "https://github.com/senseyeio/roger/blob/5a944f2c5ceb5139f926c5ae134202ec2abba71a/client.go#L32-L34", "partition": "test"} +{"repo": "senseyeio/roger", "path": "client.go", "func_name": "NewRClientWithAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRClientWithAuth creates a RClient with the specified credentials and RServe server details", "docstring_tokens": ["NewRClientWithAuth", "creates", "a", "RClient", "with", "the", "specified", "credentials", "and", "RServe", "server", "details"], "sha": "5a944f2c5ceb5139f926c5ae134202ec2abba71a", "url": "https://github.com/senseyeio/roger/blob/5a944f2c5ceb5139f926c5ae134202ec2abba71a/client.go#L37-L53", "partition": "test"} +{"repo": "wawandco/fako", "path": "fakers.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register allows user to add his own data generators for special cases\n// that we could not cover with the generators that fako includes by default.", "docstring_tokens": ["Register", "allows", "user", "to", "add", "his", "own", "data", "generators", "for", "special", "cases", "that", "we", "could", "not", "cover", "with", "the", "generators", "that", "fako", "includes", "by", "default", "."], "sha": "c36a0bc97398c9100daa83ebef1c4e7af32c7654", "url": "https://github.com/wawandco/fako/blob/c36a0bc97398c9100daa83ebef1c4e7af32c7654/fakers.go#L86-L89", "partition": "test"} +{"repo": "wawandco/fako", "path": "fakers.go", "func_name": "Fuzz", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fuzz Fills passed interface with random data based on the struct field type,\n// take a look at fuzzValueFor for details on supported data types.", "docstring_tokens": ["Fuzz", "Fills", "passed", "interface", "with", "random", "data", "based", "on", "the", "struct", "field", "type", "take", "a", "look", "at", "fuzzValueFor", "for", "details", "on", "supported", "data", "types", "."], "sha": "c36a0bc97398c9100daa83ebef1c4e7af32c7654", "url": "https://github.com/wawandco/fako/blob/c36a0bc97398c9100daa83ebef1c4e7af32c7654/fakers.go#L93-L111", "partition": "test"} +{"repo": "wawandco/fako", "path": "fakers.go", "func_name": "findFakeFunctionFor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//findFakeFunctionFor returns a faker function for a fako identifier", "docstring_tokens": ["findFakeFunctionFor", "returns", "a", "faker", "function", "for", "a", "fako", "identifier"], "sha": "c36a0bc97398c9100daa83ebef1c4e7af32c7654", "url": "https://github.com/wawandco/fako/blob/c36a0bc97398c9100daa83ebef1c4e7af32c7654/fakers.go#L123-L134", "partition": "test"} +{"repo": "libp2p/go-libp2p-routing", "path": "options/options.go", "func_name": "Apply", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Apply applies the given options to this Options", "docstring_tokens": ["Apply", "applies", "the", "given", "options", "to", "this", "Options"], "sha": "15c28e7faa25921fd1160412003fecdc70e09a5c", "url": "https://github.com/libp2p/go-libp2p-routing/blob/15c28e7faa25921fd1160412003fecdc70e09a5c/options/options.go#L16-L23", "partition": "test"} +{"repo": "libp2p/go-libp2p-routing", "path": "options/options.go", "func_name": "ToOption", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToOption converts this Options to a single Option.", "docstring_tokens": ["ToOption", "converts", "this", "Options", "to", "a", "single", "Option", "."], "sha": "15c28e7faa25921fd1160412003fecdc70e09a5c", "url": "https://github.com/libp2p/go-libp2p-routing/blob/15c28e7faa25921fd1160412003fecdc70e09a5c/options/options.go#L26-L37", "partition": "test"} +{"repo": "libp2p/go-libp2p-routing", "path": "notifications/query.go", "func_name": "waitThenClose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// waitThenClose is spawned in a goroutine when the channel is registered. This\n// safely cleans up the channel when the context has been canceled.", "docstring_tokens": ["waitThenClose", "is", "spawned", "in", "a", "goroutine", "when", "the", "channel", "is", "registered", ".", "This", "safely", "cleans", "up", "the", "channel", "when", "the", "context", "has", "been", "canceled", "."], "sha": "15c28e7faa25921fd1160412003fecdc70e09a5c", "url": "https://github.com/libp2p/go-libp2p-routing/blob/15c28e7faa25921fd1160412003fecdc70e09a5c/notifications/query.go#L44-L52", "partition": "test"} +{"repo": "libp2p/go-libp2p-routing", "path": "notifications/query.go", "func_name": "send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// send sends an event on the event channel, aborting if either the passed or\n// the internal context expire.", "docstring_tokens": ["send", "sends", "an", "event", "on", "the", "event", "channel", "aborting", "if", "either", "the", "passed", "or", "the", "internal", "context", "expire", "."], "sha": "15c28e7faa25921fd1160412003fecdc70e09a5c", "url": "https://github.com/libp2p/go-libp2p-routing/blob/15c28e7faa25921fd1160412003fecdc70e09a5c/notifications/query.go#L56-L70", "partition": "test"} +{"repo": "VividCortex/ewma", "path": "ewma.go", "func_name": "NewMovingAverage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMovingAverage constructs a MovingAverage that computes an average with the\n// desired characteristics in the moving window or exponential decay. If no\n// age is given, it constructs a default exponentially weighted implementation\n// that consumes minimal memory. The age is related to the decay factor alpha\n// by the formula given for the DECAY constant. It signifies the average age\n// of the samples as time goes to infinity.", "docstring_tokens": ["NewMovingAverage", "constructs", "a", "MovingAverage", "that", "computes", "an", "average", "with", "the", "desired", "characteristics", "in", "the", "moving", "window", "or", "exponential", "decay", ".", "If", "no", "age", "is", "given", "it", "constructs", "a", "default", "exponentially", "weighted", "implementation", "that", "consumes", "minimal", "memory", ".", "The", "age", "is", "related", "to", "the", "decay", "factor", "alpha", "by", "the", "formula", "given", "for", "the", "DECAY", "constant", ".", "It", "signifies", "the", "average", "age", "of", "the", "samples", "as", "time", "goes", "to", "infinity", "."], "sha": "43880d236f695d39c62cf7aa4ebd4508c258e6c0", "url": "https://github.com/VividCortex/ewma/blob/43880d236f695d39c62cf7aa4ebd4508c258e6c0/ewma.go#L40-L47", "partition": "test"} +{"repo": "VividCortex/ewma", "path": "ewma.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set sets the EWMA's value.", "docstring_tokens": ["Set", "sets", "the", "EWMA", "s", "value", "."], "sha": "43880d236f695d39c62cf7aa4ebd4508c258e6c0", "url": "https://github.com/VividCortex/ewma/blob/43880d236f695d39c62cf7aa4ebd4508c258e6c0/ewma.go#L121-L126", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive50.go", "func_name": "calcKeys50", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// calcKeys50 calculates the keys used in RAR 5 archive processing.\n// The returned slice of byte slices contains 3 keys.\n// Key 0 is used for block or file decryption.\n// Key 1 is optionally used for file checksum calculation.\n// Key 2 is optionally used for password checking.", "docstring_tokens": ["calcKeys50", "calculates", "the", "keys", "used", "in", "RAR", "5", "archive", "processing", ".", "The", "returned", "slice", "of", "byte", "slices", "contains", "3", "keys", ".", "Key", "0", "is", "used", "for", "block", "or", "file", "decryption", ".", "Key", "1", "is", "optionally", "used", "for", "file", "checksum", "calculation", ".", "Key", "2", "is", "optionally", "used", "for", "password", "checking", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive50.go#L139-L177", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive50.go", "func_name": "getKeys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getKeys reads kdfcount and salt from b and returns the corresponding encryption keys.", "docstring_tokens": ["getKeys", "reads", "kdfcount", "and", "salt", "from", "b", "and", "returns", "the", "corresponding", "encryption", "keys", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive50.go#L180-L208", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive50.go", "func_name": "checkPassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkPassword calculates if a password is correct given password check data and keys.", "docstring_tokens": ["checkPassword", "calculates", "if", "a", "password", "is", "correct", "given", "password", "check", "data", "and", "keys", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive50.go#L211-L222", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive50.go", "func_name": "parseFileEncryptionRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseFileEncryptionRecord processes the optional file encryption record from a file header.", "docstring_tokens": ["parseFileEncryptionRecord", "processes", "the", "optional", "file", "encryption", "record", "from", "a", "file", "header", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive50.go#L225-L251", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive50.go", "func_name": "parseEncryptionBlock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseEncryptionBlock calculates the key for block encryption.", "docstring_tokens": ["parseEncryptionBlock", "calculates", "the", "key", "for", "block", "encryption", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive50.go#L339-L355", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive50.go", "func_name": "newArchive50", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newArchive50 creates a new fileBlockReader for a Version 5 archive.", "docstring_tokens": ["newArchive50", "creates", "a", "new", "fileBlockReader", "for", "a", "Version", "5", "archive", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive50.go#L469-L475", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decrypt_reader.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads and decrypts data into p.\n// If the input is not a multiple of the cipher block size,\n// the trailing bytes will be ignored.", "docstring_tokens": ["Read", "reads", "and", "decrypts", "data", "into", "p", ".", "If", "the", "input", "is", "not", "a", "multiple", "of", "the", "cipher", "block", "size", "the", "trailing", "bytes", "will", "be", "ignored", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decrypt_reader.go#L61-L84", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decrypt_reader.go", "func_name": "ReadByte", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadByte returns the next decrypted byte.", "docstring_tokens": ["ReadByte", "returns", "the", "next", "decrypted", "byte", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decrypt_reader.go#L87-L105", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decrypt_reader.go", "func_name": "newCipherBlockReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newCipherBlockReader returns a cipherBlockReader that decrypts the given io.Reader using\n// the provided block mode cipher.", "docstring_tokens": ["newCipherBlockReader", "returns", "a", "cipherBlockReader", "that", "decrypts", "the", "given", "io", ".", "Reader", "using", "the", "provided", "block", "mode", "cipher", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decrypt_reader.go#L109-L114", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decrypt_reader.go", "func_name": "newAesDecryptReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newAesDecryptReader returns a cipherBlockReader that decrypts input from a given io.Reader using AES.\n// It will panic if the provided key is invalid.", "docstring_tokens": ["newAesDecryptReader", "returns", "a", "cipherBlockReader", "that", "decrypts", "input", "from", "a", "given", "io", ".", "Reader", "using", "AES", ".", "It", "will", "panic", "if", "the", "provided", "key", "is", "invalid", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decrypt_reader.go#L118-L126", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "reader.go", "func_name": "limitByteReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// limitByteReader returns a limitedByteReader that reads from r and stops with\n// io.EOF after n bytes.\n// If r returns an io.EOF before reading n bytes, io.ErrUnexpectedEOF is returned.", "docstring_tokens": ["limitByteReader", "returns", "a", "limitedByteReader", "that", "reads", "from", "r", "and", "stops", "with", "io", ".", "EOF", "after", "n", "bytes", ".", "If", "r", "returns", "an", "io", ".", "EOF", "before", "reading", "n", "bytes", "io", ".", "ErrUnexpectedEOF", "is", "returned", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/reader.go#L82-L84", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "reader.go", "func_name": "Mode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Mode returns an os.FileMode for the file, calculated from the Attributes field.", "docstring_tokens": ["Mode", "returns", "an", "os", ".", "FileMode", "for", "the", "file", "calculated", "from", "the", "Attributes", "field", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/reader.go#L111-L150", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "reader.go", "func_name": "nextBlockInFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// nextBlockInFile reads the next file block in the current file at the current\n// archive file position, or returns an error if there is a problem.\n// It is invalid to call this when already at the last block in the current file.", "docstring_tokens": ["nextBlockInFile", "reads", "the", "next", "file", "block", "in", "the", "current", "file", "at", "the", "current", "archive", "file", "position", "or", "returns", "an", "error", "if", "there", "is", "a", "problem", ".", "It", "is", "invalid", "to", "call", "this", "when", "already", "at", "the", "last", "block", "in", "the", "current", "file", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/reader.go#L186-L200", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "reader.go", "func_name": "next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// next advances to the next packed file in the RAR archive.", "docstring_tokens": ["next", "advances", "to", "the", "next", "packed", "file", "in", "the", "RAR", "archive", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/reader.go#L203-L232", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "reader.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads the packed data for the current file into p.", "docstring_tokens": ["Read", "reads", "the", "packed", "data", "for", "the", "current", "file", "into", "p", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/reader.go#L235-L250", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "reader.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads from the current file in the RAR archive.", "docstring_tokens": ["Read", "reads", "from", "the", "current", "file", "in", "the", "RAR", "archive", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/reader.go#L273-L279", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "reader.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next advances to the next file in the archive.", "docstring_tokens": ["Next", "advances", "to", "the", "next", "file", "in", "the", "archive", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/reader.go#L282-L325", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "reader.go", "func_name": "NewReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReader creates a Reader reading from r.\n// NewReader only supports single volume archives.\n// Multi-volume archives must use OpenReader.", "docstring_tokens": ["NewReader", "creates", "a", "Reader", "reading", "from", "r", ".", "NewReader", "only", "supports", "single", "volume", "archives", ".", "Multi", "-", "volume", "archives", "must", "use", "OpenReader", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/reader.go#L335-L347", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "reader.go", "func_name": "OpenReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpenReader opens a RAR archive specified by the name and returns a ReadCloser.", "docstring_tokens": ["OpenReader", "opens", "a", "RAR", "archive", "specified", "by", "the", "name", "and", "returns", "a", "ReadCloser", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/reader.go#L367-L376", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "filters.go", "func_name": "getV3Filter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getV3Filter returns a V3 filter function from a code byte slice.", "docstring_tokens": ["getV3Filter", "returns", "a", "V3", "filter", "function", "from", "a", "code", "byte", "slice", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/filters.go#L380-L416", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decode29.go", "func_name": "init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// init intializes the decoder for decoding a new file.", "docstring_tokens": ["init", "intializes", "the", "decoder", "for", "decoding", "a", "new", "file", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decode29.go#L43-L60", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decode29.go", "func_name": "readBlockHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readBlockHeader determines and initializes the current decoder for a new decode block.", "docstring_tokens": ["readBlockHeader", "determines", "and", "initializes", "the", "current", "decoder", "for", "a", "new", "decode", "block", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decode29.go#L203-L220", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "huffman.go", "func_name": "readCodeLengthTable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readCodeLengthTable reads a new code length table into codeLength from br.\n// If addOld is set the old table is added to the new one.", "docstring_tokens": ["readCodeLengthTable", "reads", "a", "new", "code", "length", "table", "into", "codeLength", "from", "br", ".", "If", "addOld", "is", "set", "the", "old", "table", "is", "added", "to", "the", "new", "one", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/huffman.go#L142-L208", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "ppm_model.go", "func_name": "shrinkStates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shrinkStates shrinks the state list down to size states", "docstring_tokens": ["shrinkStates", "shrinks", "the", "state", "list", "down", "to", "size", "states"], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/ppm_model.go#L232-L259", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "ppm_model.go", "func_name": "expandStates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// expandStates expands the states list by one", "docstring_tokens": ["expandStates", "expands", "the", "states", "list", "by", "one"], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/ppm_model.go#L262-L291", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "ppm_model.go", "func_name": "pushByte", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// pushByte puts a byte on the heap and returns a state.succ index that\n// can be used to retrieve it.", "docstring_tokens": ["pushByte", "puts", "a", "byte", "on", "the", "heap", "and", "returns", "a", "state", ".", "succ", "index", "that", "can", "be", "used", "to", "retrieve", "it", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/ppm_model.go#L350-L370", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "ppm_model.go", "func_name": "succByte", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// succByte returns a byte from the heap given a state.succ index", "docstring_tokens": ["succByte", "returns", "a", "byte", "from", "the", "heap", "given", "a", "state", ".", "succ", "index"], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/ppm_model.go#L376-L390", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "ppm_model.go", "func_name": "succContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// succContext returns a context given a state.succ index", "docstring_tokens": ["succContext", "returns", "a", "context", "given", "a", "state", ".", "succ", "index"], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/ppm_model.go#L393-L398", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive15.go", "func_name": "calcAes30Params", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Calculates the key and iv for AES decryption given a password and salt.", "docstring_tokens": ["Calculates", "the", "key", "and", "iv", "for", "AES", "decryption", "given", "a", "password", "and", "salt", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive15.go#L96-L121", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive15.go", "func_name": "parseDosTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseDosTime converts a 32bit DOS time value to time.Time", "docstring_tokens": ["parseDosTime", "converts", "a", "32bit", "DOS", "time", "value", "to", "time", ".", "Time"], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive15.go#L124-L133", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive15.go", "func_name": "decodeName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// decodeName decodes a non-unicode filename from a file header.", "docstring_tokens": ["decodeName", "decodes", "a", "non", "-", "unicode", "filename", "from", "a", "file", "header", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive15.go#L136-L193", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive15.go", "func_name": "readExtTimes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readExtTimes reads and parses the optional extra time field from the file header.", "docstring_tokens": ["readExtTimes", "reads", "and", "parses", "the", "optional", "extra", "time", "field", "from", "the", "file", "header", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive15.go#L196-L233", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive15.go", "func_name": "readBlockHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readBlockHeader returns the next block header in the archive.\n// It will return io.EOF if there were no bytes read.", "docstring_tokens": ["readBlockHeader", "returns", "the", "next", "block", "header", "in", "the", "archive", ".", "It", "will", "return", "io", ".", "EOF", "if", "there", "were", "no", "bytes", "read", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive15.go#L360-L416", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive15.go", "func_name": "newArchive15", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newArchive15 creates a new fileBlockReader for a Version 1.5 archive", "docstring_tokens": ["newArchive15", "creates", "a", "new", "fileBlockReader", "for", "a", "Version", "1", ".", "5", "archive"], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive15.go#L461-L468", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decode50.go", "func_name": "readFilter5Data", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readFilter5Data reads an encoded integer used in V5 filters.", "docstring_tokens": ["readFilter5Data", "reads", "an", "encoded", "integer", "used", "in", "V5", "filters", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decode50.go#L132-L150", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decode_reader.go", "func_name": "writeByte", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeByte writes c to the end of the window", "docstring_tokens": ["writeByte", "writes", "c", "to", "the", "end", "of", "the", "window"], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decode_reader.go#L78-L81", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decode_reader.go", "func_name": "copyBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyBytes copies len bytes at off distance from the end\n// to the end of the window.", "docstring_tokens": ["copyBytes", "copies", "len", "bytes", "at", "off", "distance", "from", "the", "end", "to", "the", "end", "of", "the", "window", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decode_reader.go#L85-L104", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decode_reader.go", "func_name": "read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// read reads bytes from the beginning of the window into p", "docstring_tokens": ["read", "reads", "bytes", "from", "the", "beginning", "of", "the", "window", "into", "p"], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decode_reader.go#L107-L126", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decode_reader.go", "func_name": "queueFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// queueFilter adds a filterBlock to the end decodeReader's filters.", "docstring_tokens": ["queueFilter", "adds", "a", "filterBlock", "to", "the", "end", "decodeReader", "s", "filters", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decode_reader.go#L158-L178", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decode_reader.go", "func_name": "processFilters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processFilters processes any filters valid at the current read index\n// and stores the output in outbuf.", "docstring_tokens": ["processFilters", "processes", "any", "filters", "valid", "at", "the", "current", "read", "index", "and", "stores", "the", "output", "in", "outbuf", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decode_reader.go#L182-L233", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decode_reader.go", "func_name": "fill", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fill fills the decodeReader's window", "docstring_tokens": ["fill", "fills", "the", "decodeReader", "s", "window"], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decode_reader.go#L236-L249", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "decode_reader.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read decodes data and stores it in p.", "docstring_tokens": ["Read", "decodes", "data", "and", "stores", "it", "in", "p", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/decode_reader.go#L252-L290", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive.go", "func_name": "readFull", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readFull wraps io.ReadFull to return io.ErrUnexpectedEOF instead\n// of io.EOF when 0 bytes are read.", "docstring_tokens": ["readFull", "wraps", "io", ".", "ReadFull", "to", "return", "io", ".", "ErrUnexpectedEOF", "instead", "of", "io", ".", "EOF", "when", "0", "bytes", "are", "read", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive.go#L85-L91", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "archive.go", "func_name": "findSig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findSig searches for the RAR signature and version at the beginning of a file.\n// It searches no more than maxSfxSize bytes.", "docstring_tokens": ["findSig", "searches", "for", "the", "RAR", "signature", "and", "version", "at", "the", "beginning", "of", "a", "file", ".", "It", "searches", "no", "more", "than", "maxSfxSize", "bytes", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/archive.go#L95-L134", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "vm.go", "func_name": "execute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// execute runs a list of commands on the vm.", "docstring_tokens": ["execute", "runs", "a", "list", "of", "commands", "on", "the", "vm", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/vm.go#L39-L55", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "vm.go", "func_name": "newVM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newVM creates a new RAR virtual machine using the byte slice as memory.", "docstring_tokens": ["newVM", "creates", "a", "new", "RAR", "virtual", "machine", "using", "the", "byte", "slice", "as", "memory", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/vm.go#L58-L72", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "bit_reader.go", "func_name": "limitBitReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// limitBitReader returns a bitReader that reads from br and stops with io.EOF after n bits.\n// If br returns an io.EOF before reading n bits, err is returned.", "docstring_tokens": ["limitBitReader", "returns", "a", "bitReader", "that", "reads", "from", "br", "and", "stops", "with", "io", ".", "EOF", "after", "n", "bits", ".", "If", "br", "returns", "an", "io", ".", "EOF", "before", "reading", "n", "bits", "err", "is", "returned", "."], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/bit_reader.go#L18-L20", "partition": "test"} +{"repo": "nwaples/rardecode", "path": "bit_reader.go", "func_name": "readUint32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readUint32 reads a RAR V3 encoded uint32", "docstring_tokens": ["readUint32", "reads", "a", "RAR", "V3", "encoded", "uint32"], "sha": "197ef08ef68c4454ae5970a9c2692d6056ceb8d7", "url": "https://github.com/nwaples/rardecode/blob/197ef08ef68c4454ae5970a9c2692d6056ceb8d7/bit_reader.go#L77-L98", "partition": "test"} +{"repo": "kljensen/snowball", "path": "russian/step3.go", "func_name": "step3", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 3 is the removal of the derivational suffix.\n//", "docstring_tokens": ["Step", "3", "is", "the", "removal", "of", "the", "derivational", "suffix", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/russian/step3.go#L9-L19", "partition": "test"} +{"repo": "kljensen/snowball", "path": "english/stem.go", "func_name": "Stem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stem an English word. This is the only exported\n// function in this package.\n//", "docstring_tokens": ["Stem", "an", "English", "word", ".", "This", "is", "the", "only", "exported", "function", "in", "this", "package", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/english/stem.go#L11-L44", "partition": "test"} +{"repo": "kljensen/snowball", "path": "french/step6.go", "func_name": "step6", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 6 Un-accent\n//", "docstring_tokens": ["Step", "6", "Un", "-", "accent"], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/french/step6.go#L9-L42", "partition": "test"} +{"repo": "kljensen/snowball", "path": "french/step5.go", "func_name": "step5", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 5 Undouble non-vowel endings\n//", "docstring_tokens": ["Step", "5", "Undouble", "non", "-", "vowel", "endings"], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/french/step5.go#L9-L16", "partition": "test"} +{"repo": "kljensen/snowball", "path": "spanish/step2a.go", "func_name": "step2a", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 2a is the removal of verb suffixes beginning y,\n// Search for the longest among the following suffixes\n// in RV, and if found, delete if preceded by u.\n//", "docstring_tokens": ["Step", "2a", "is", "the", "removal", "of", "verb", "suffixes", "beginning", "y", "Search", "for", "the", "longest", "among", "the", "following", "suffixes", "in", "RV", "and", "if", "found", "delete", "if", "preceded", "by", "u", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/spanish/step2a.go#L11-L21", "partition": "test"} +{"repo": "kljensen/snowball", "path": "russian/step4.go", "func_name": "step4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 4 is the undoubling of double non-vowel endings\n// and removal of superlative endings.\n//", "docstring_tokens": ["Step", "4", "is", "the", "undoubling", "of", "double", "non", "-", "vowel", "endings", "and", "removal", "of", "superlative", "endings", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/russian/step4.go#L10-L38", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowball.go", "func_name": "Stem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stem a word in the specified language.\n//", "docstring_tokens": ["Stem", "a", "word", "in", "the", "specified", "language", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowball.go#L20-L43", "partition": "test"} +{"repo": "kljensen/snowball", "path": "english/step1c.go", "func_name": "step1c", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 1c is the normalization of various \"y\" endings.\n//", "docstring_tokens": ["Step", "1c", "is", "the", "normalization", "of", "various", "y", "endings", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/english/step1c.go#L9-L24", "partition": "test"} +{"repo": "kljensen/snowball", "path": "english/step3.go", "func_name": "step3", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 3 is the stemming of various longer sufficies\n// found in R1.\n//", "docstring_tokens": ["Step", "3", "is", "the", "stemming", "of", "various", "longer", "sufficies", "found", "in", "R1", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/english/step3.go#L10-L56", "partition": "test"} +{"repo": "kljensen/snowball", "path": "french/common.go", "func_name": "isStopWord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return `true` if the input `word` is a French stop word.\n//", "docstring_tokens": ["Return", "true", "if", "the", "input", "word", "is", "a", "French", "stop", "word", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/french/common.go#L10-L36", "partition": "test"} +{"repo": "kljensen/snowball", "path": "french/common.go", "func_name": "capitalizeYUI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Capitalize Y, I, and U runes that are acting as consanants.\n// Put into upper case \"u\" or \"i\" preceded and followed by a\n// vowel, and \"y\" preceded or followed by a vowel. \"u\" after q is\n// also put into upper case.\n//", "docstring_tokens": ["Capitalize", "Y", "I", "and", "U", "runes", "that", "are", "acting", "as", "consanants", ".", "Put", "into", "upper", "case", "u", "or", "i", "preceded", "and", "followed", "by", "a", "vowel", "and", "y", "preceded", "or", "followed", "by", "a", "vowel", ".", "u", "after", "q", "is", "also", "put", "into", "upper", "case", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/french/common.go#L57-L105", "partition": "test"} +{"repo": "kljensen/snowball", "path": "english/step2.go", "func_name": "step2", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 2 is the stemming of various endings found in\n// R1 including \"al\", \"ness\", and \"li\".\n//", "docstring_tokens": ["Step", "2", "is", "the", "stemming", "of", "various", "endings", "found", "in", "R1", "including", "al", "ness", "and", "li", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/english/step2.go#L10-L97", "partition": "test"} +{"repo": "kljensen/snowball", "path": "spanish/step3.go", "func_name": "step3", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 3 is the removal of residual suffixes.\n//", "docstring_tokens": ["Step", "3", "is", "the", "removal", "of", "residual", "suffixes", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/spanish/step3.go#L9-L33", "partition": "test"} +{"repo": "kljensen/snowball", "path": "english/step0.go", "func_name": "step0", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 0 is to strip off apostrophes and \"s\".\n//", "docstring_tokens": ["Step", "0", "is", "to", "strip", "off", "apostrophes", "and", "s", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/english/step0.go#L9-L16", "partition": "test"} +{"repo": "kljensen/snowball", "path": "romance/common.go", "func_name": "VnvSuffix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Finds the region after the first non-vowel following a vowel,\n// or a the null region at the end of the word if there is no\n// such non-vowel. Returns the index in the Word where the\n// region starts; optionally skips the first `start` characters.\n//", "docstring_tokens": ["Finds", "the", "region", "after", "the", "first", "non", "-", "vowel", "following", "a", "vowel", "or", "a", "the", "null", "region", "at", "the", "end", "of", "the", "word", "if", "there", "is", "no", "such", "non", "-", "vowel", ".", "Returns", "the", "index", "in", "the", "Word", "where", "the", "region", "starts", ";", "optionally", "skips", "the", "first", "start", "characters", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/romance/common.go#L17-L25", "partition": "test"} +{"repo": "kljensen/snowball", "path": "swedish/step1.go", "func_name": "step1", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 1 is the stemming of various endings found in\n// R1 including \"heterna\", \"ornas\", and \"andet\".\n//", "docstring_tokens": ["Step", "1", "is", "the", "stemming", "of", "various", "endings", "found", "in", "R1", "including", "heterna", "ornas", "and", "andet", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/swedish/step1.go#L10-L48", "partition": "test"} +{"repo": "kljensen/snowball", "path": "french/step2a.go", "func_name": "step2a", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 2a is the removal of Verb suffixes beginning\n// with \"i\" in the RV region.\n//", "docstring_tokens": ["Step", "2a", "is", "the", "removal", "of", "Verb", "suffixes", "beginning", "with", "i", "in", "the", "RV", "region", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/french/step2a.go#L10-L31", "partition": "test"} +{"repo": "kljensen/snowball", "path": "russian/step1.go", "func_name": "removePerfectiveGerundEnding", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove perfective gerund endings and return true if one was removed.\n//", "docstring_tokens": ["Remove", "perfective", "gerund", "endings", "and", "return", "true", "if", "one", "was", "removed", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/russian/step1.go#L60-L80", "partition": "test"} +{"repo": "kljensen/snowball", "path": "russian/step1.go", "func_name": "removeAdjectivalEnding", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove adjectival endings and return true if one was removed.\n//", "docstring_tokens": ["Remove", "adjectival", "endings", "and", "return", "true", "if", "one", "was", "removed", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/russian/step1.go#L84-L118", "partition": "test"} +{"repo": "kljensen/snowball", "path": "spanish/step2b.go", "func_name": "step2b", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 2b is the removal of verb suffixes beginning y,\n// Search for the longest among the following suffixes\n// in RV, and if found, delete if preceded by u.\n//", "docstring_tokens": ["Step", "2b", "is", "the", "removal", "of", "verb", "suffixes", "beginning", "y", "Search", "for", "the", "longest", "among", "the", "following", "suffixes", "in", "RV", "and", "if", "found", "delete", "if", "preceded", "by", "u", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/spanish/step2b.go#L11-L46", "partition": "test"} +{"repo": "kljensen/snowball", "path": "french/step4.go", "func_name": "step4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 4 is the cleaning up of residual suffixes.\n//", "docstring_tokens": ["Step", "4", "is", "the", "cleaning", "up", "of", "residual", "suffixes", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/french/step4.go#L10-L82", "partition": "test"} +{"repo": "kljensen/snowball", "path": "english/step5.go", "func_name": "step5", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 5 is the stemming of \"e\" and \"l\" sufficies\n// found in R2.\n//", "docstring_tokens": ["Step", "5", "is", "the", "stemming", "of", "e", "and", "l", "sufficies", "found", "in", "R2", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/english/step5.go#L10-L45", "partition": "test"} +{"repo": "kljensen/snowball", "path": "spanish/stem.go", "func_name": "Stem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stem an Spanish word. This is the only exported\n// function in this package.\n//", "docstring_tokens": ["Stem", "an", "Spanish", "word", ".", "This", "is", "the", "only", "exported", "function", "in", "this", "package", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/spanish/stem.go#L18-L47", "partition": "test"} +{"repo": "kljensen/snowball", "path": "russian/stem.go", "func_name": "Stem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stem an Russian word. This is the only exported\n// function in this package.\n//", "docstring_tokens": ["Stem", "an", "Russian", "word", ".", "This", "is", "the", "only", "exported", "function", "in", "this", "package", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/russian/stem.go#L11-L28", "partition": "test"} +{"repo": "kljensen/snowball", "path": "norwegian/common.go", "func_name": "isStopWord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return `true` if the input `word` is a Norwegian stop word.\n//", "docstring_tokens": ["Return", "true", "if", "the", "input", "word", "is", "a", "Norwegian", "stop", "word", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/norwegian/common.go#L37-L52", "partition": "test"} +{"repo": "kljensen/snowball", "path": "swedish/common.go", "func_name": "isStopWord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return `true` if the input `word` is a Swedish stop word.\n//", "docstring_tokens": ["Return", "true", "if", "the", "input", "word", "is", "a", "Swedish", "stop", "word", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/swedish/common.go#L37-L56", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowballword/snowballword.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a new SnowballWord struct", "docstring_tokens": ["Create", "a", "new", "SnowballWord", "struct"], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowballword/snowballword.go#L31-L37", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowballword/snowballword.go", "func_name": "RemoveLastNRunes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove the last `n` runes from the SnowballWord.\n//", "docstring_tokens": ["Remove", "the", "last", "n", "runes", "from", "the", "SnowballWord", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowballword/snowballword.go#L67-L70", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowballword/snowballword.go", "func_name": "resetR1R2", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Resets R1start and R2start to ensure they\n// are within bounds of the current rune slice.", "docstring_tokens": ["Resets", "R1start", "and", "R2start", "to", "ensure", "they", "are", "within", "bounds", "of", "the", "current", "rune", "slice", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowballword/snowballword.go#L93-L104", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowballword/snowballword.go", "func_name": "slice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return a slice of w.RS, allowing the start\n// and stop to be out of bounds.\n//", "docstring_tokens": ["Return", "a", "slice", "of", "w", ".", "RS", "allowing", "the", "start", "and", "stop", "to", "be", "out", "of", "bounds", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowballword/snowballword.go#L109-L122", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowballword/snowballword.go", "func_name": "FitsInR1", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns true if `x` runes would fit into R1.\n//", "docstring_tokens": ["Returns", "true", "if", "x", "runes", "would", "fit", "into", "R1", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowballword/snowballword.go#L126-L128", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowballword/snowballword.go", "func_name": "FitsInR2", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns true if `x` runes would fit into R2.\n//", "docstring_tokens": ["Returns", "true", "if", "x", "runes", "would", "fit", "into", "R2", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowballword/snowballword.go#L132-L134", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowballword/snowballword.go", "func_name": "FitsInRV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns true if `x` runes would fit into RV.\n//", "docstring_tokens": ["Returns", "true", "if", "x", "runes", "would", "fit", "into", "RV", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowballword/snowballword.go#L138-L140", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowballword/snowballword.go", "func_name": "FirstPrefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the first prefix found or the empty string.", "docstring_tokens": ["Return", "the", "first", "prefix", "found", "or", "the", "empty", "string", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowballword/snowballword.go#L182-L206", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowballword/snowballword.go", "func_name": "HasSuffixRunes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return true if `w` ends with `suffixRunes`\n//", "docstring_tokens": ["Return", "true", "if", "w", "ends", "with", "suffixRunes"], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowballword/snowballword.go#L235-L237", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowballword/snowballword.go", "func_name": "FirstSuffixIfIn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Find the first suffix that ends at `endPos` in the word among\n// those provided; then,\n// check to see if it begins after startPos. If it does, return\n// it, else return the empty string and empty rune slice. This\n// may seem a counterintuitive manner to do this. However, it\n// matches what is required most of the time by the Snowball\n// stemmer steps.\n//", "docstring_tokens": ["Find", "the", "first", "suffix", "that", "ends", "at", "endPos", "in", "the", "word", "among", "those", "provided", ";", "then", "check", "to", "see", "if", "it", "begins", "after", "startPos", ".", "If", "it", "does", "return", "it", "else", "return", "the", "empty", "string", "and", "empty", "rune", "slice", ".", "This", "may", "seem", "a", "counterintuitive", "manner", "to", "do", "this", ".", "However", "it", "matches", "what", "is", "required", "most", "of", "the", "time", "by", "the", "Snowball", "stemmer", "steps", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowballword/snowballword.go#L247-L264", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowballword/snowballword.go", "func_name": "RemoveFirstSuffixIfIn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Find the first suffix in the word among those provided; then,\n// check to see if it begins after startPos. If it does,\n// remove it.\n//", "docstring_tokens": ["Find", "the", "first", "suffix", "in", "the", "word", "among", "those", "provided", ";", "then", "check", "to", "see", "if", "it", "begins", "after", "startPos", ".", "If", "it", "does", "remove", "it", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowballword/snowballword.go#L283-L289", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowballword/snowballword.go", "func_name": "RemoveFirstSuffix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Removes the first suffix found", "docstring_tokens": ["Removes", "the", "first", "suffix", "found"], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowballword/snowballword.go#L301-L303", "partition": "test"} +{"repo": "kljensen/snowball", "path": "snowballword/snowballword.go", "func_name": "FirstSuffix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return the first suffix found or the empty string.", "docstring_tokens": ["Return", "the", "first", "suffix", "found", "or", "the", "empty", "string", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/snowballword/snowballword.go#L306-L308", "partition": "test"} +{"repo": "kljensen/snowball", "path": "english/preprocess.go", "func_name": "preprocess", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Applies various transformations necessary for the\n// other, subsequent stemming steps. Most important\n// of which is defining the two regions R1 & R2.\n//", "docstring_tokens": ["Applies", "various", "transformations", "necessary", "for", "the", "other", "subsequent", "stemming", "steps", ".", "Most", "important", "of", "which", "is", "defining", "the", "two", "regions", "R1", "&", "R2", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/english/preprocess.go#L11-L25", "partition": "test"} +{"repo": "kljensen/snowball", "path": "spanish/step0.go", "func_name": "step0", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 0 is the removal of attached pronouns\n//", "docstring_tokens": ["Step", "0", "is", "the", "removal", "of", "attached", "pronouns"], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/spanish/step0.go#L9-L74", "partition": "test"} +{"repo": "kljensen/snowball", "path": "english/step1b.go", "func_name": "step1b", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 1b is the normalization of various \"ly\" and \"ed\" sufficies.\n//", "docstring_tokens": ["Step", "1b", "is", "the", "normalization", "of", "various", "ly", "and", "ed", "sufficies", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/english/step1b.go#L9-L104", "partition": "test"} +{"repo": "kljensen/snowball", "path": "french/step2b.go", "func_name": "step2b", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 2b is the removal of Verb suffixes in RV\n// that do not begin with \"i\".\n//", "docstring_tokens": ["Step", "2b", "is", "the", "removal", "of", "Verb", "suffixes", "in", "RV", "that", "do", "not", "begin", "with", "i", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/french/step2b.go#L10-L59", "partition": "test"} +{"repo": "kljensen/snowball", "path": "english/common.go", "func_name": "capitalizeYs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Capitalize all 'Y's preceded by vowels or starting a word\n//", "docstring_tokens": ["Capitalize", "all", "Y", "s", "preceded", "by", "vowels", "or", "starting", "a", "word"], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/english/common.go#L53-L64", "partition": "test"} +{"repo": "kljensen/snowball", "path": "english/common.go", "func_name": "uncapitalizeYs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uncapitalize all 'Y's\n//", "docstring_tokens": ["Uncapitalize", "all", "Y", "s"], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/english/common.go#L68-L78", "partition": "test"} +{"repo": "kljensen/snowball", "path": "english/common.go", "func_name": "stemSpecialWord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the stemmed version of a word if it is a special\n// case, otherwise returns the empty string.\n//", "docstring_tokens": ["Returns", "the", "stemmed", "version", "of", "a", "word", "if", "it", "is", "a", "special", "case", "otherwise", "returns", "the", "empty", "string", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/english/common.go#L118-L202", "partition": "test"} +{"repo": "kljensen/snowball", "path": "english/common.go", "func_name": "isShortWord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// A word is called short if it ends in a short syllable, and if R1 is null.\n//", "docstring_tokens": ["A", "word", "is", "called", "short", "if", "it", "ends", "in", "a", "short", "syllable", "and", "if", "R1", "is", "null", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/english/common.go#L230-L239", "partition": "test"} +{"repo": "kljensen/snowball", "path": "english/step1a.go", "func_name": "step1a", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Step 1a is normalization of various special \"s\"-endings.\n//", "docstring_tokens": ["Step", "1a", "is", "normalization", "of", "various", "special", "s", "-", "endings", "."], "sha": "115fa8f6419dcfb9ec4653997b1c6803a5eff962", "url": "https://github.com/kljensen/snowball/blob/115fa8f6419dcfb9ec4653997b1c6803a5eff962/english/step1a.go#L9-L53", "partition": "test"} +{"repo": "tylerb/gls", "path": "gls.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set sets the value by key and associates it with the current goroutine.", "docstring_tokens": ["Set", "sets", "the", "value", "by", "key", "and", "associates", "it", "with", "the", "current", "goroutine", "."], "sha": "e606233f194d6c314156dc6a35f21a42a470c6f6", "url": "https://github.com/tylerb/gls/blob/e606233f194d6c314156dc6a35f21a42a470c6f6/gls.go#L39-L47", "partition": "test"} +{"repo": "tylerb/gls", "path": "gls.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get gets the value by key as it exists for the current goroutine.", "docstring_tokens": ["Get", "gets", "the", "value", "by", "key", "as", "it", "exists", "for", "the", "current", "goroutine", "."], "sha": "e606233f194d6c314156dc6a35f21a42a470c6f6", "url": "https://github.com/tylerb/gls/blob/e606233f194d6c314156dc6a35f21a42a470c6f6/gls.go#L50-L60", "partition": "test"} +{"repo": "tylerb/gls", "path": "gls.go", "func_name": "Cleanup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cleanup removes all data associated with this goroutine. If this is not\n// called, the data may persist for the lifetime of your application. This\n// must be called from the very first goroutine to invoke Set", "docstring_tokens": ["Cleanup", "removes", "all", "data", "associated", "with", "this", "goroutine", ".", "If", "this", "is", "not", "called", "the", "data", "may", "persist", "for", "the", "lifetime", "of", "your", "application", ".", "This", "must", "be", "called", "from", "the", "very", "first", "goroutine", "to", "invoke", "Set"], "sha": "e606233f194d6c314156dc6a35f21a42a470c6f6", "url": "https://github.com/tylerb/gls/blob/e606233f194d6c314156dc6a35f21a42a470c6f6/gls.go#L80-L85", "partition": "test"} +{"repo": "tylerb/gls", "path": "gls.go", "func_name": "getValues", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getValues unlinks two goroutines", "docstring_tokens": ["getValues", "unlinks", "two", "goroutines"], "sha": "e606233f194d6c314156dc6a35f21a42a470c6f6", "url": "https://github.com/tylerb/gls/blob/e606233f194d6c314156dc6a35f21a42a470c6f6/gls.go#L88-L94", "partition": "test"} +{"repo": "tylerb/gls", "path": "gls.go", "func_name": "linkGRs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// linkGRs links two goroutines together, allowing the child to access the\n// data present in the parent.", "docstring_tokens": ["linkGRs", "links", "two", "goroutines", "together", "allowing", "the", "child", "to", "access", "the", "data", "present", "in", "the", "parent", "."], "sha": "e606233f194d6c314156dc6a35f21a42a470c6f6", "url": "https://github.com/tylerb/gls/blob/e606233f194d6c314156dc6a35f21a42a470c6f6/gls.go#L98-L103", "partition": "test"} +{"repo": "tylerb/gls", "path": "gls.go", "func_name": "unlinkGRs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// unlinkGRs unlinks two goroutines", "docstring_tokens": ["unlinkGRs", "unlinks", "two", "goroutines"], "sha": "e606233f194d6c314156dc6a35f21a42a470c6f6", "url": "https://github.com/tylerb/gls/blob/e606233f194d6c314156dc6a35f21a42a470c6f6/gls.go#L106-L111", "partition": "test"} +{"repo": "cloudfoundry-incubator/cf-test-helpers", "path": "helpers/app_commands.go", "func_name": "AppUri", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Gets an app's endpoint with the specified path", "docstring_tokens": ["Gets", "an", "app", "s", "endpoint", "with", "the", "specified", "path"], "sha": "83791edc4b0a2d48b602088c30332063b8f02f32", "url": "https://github.com/cloudfoundry-incubator/cf-test-helpers/blob/83791edc4b0a2d48b602088c30332063b8f02f32/helpers/app_commands.go#L12-L16", "partition": "test"} +{"repo": "cloudfoundry-incubator/cf-test-helpers", "path": "helpers/app_commands.go", "func_name": "CurlAppWithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Curls an app's endpoint and exit successfully before the specified timeout", "docstring_tokens": ["Curls", "an", "app", "s", "endpoint", "and", "exit", "successfully", "before", "the", "specified", "timeout"], "sha": "83791edc4b0a2d48b602088c30332063b8f02f32", "url": "https://github.com/cloudfoundry-incubator/cf-test-helpers/blob/83791edc4b0a2d48b602088c30332063b8f02f32/helpers/app_commands.go#L19-L22", "partition": "test"} +{"repo": "cloudfoundry-incubator/cf-test-helpers", "path": "helpers/app_commands.go", "func_name": "CurlApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Curls an app's endpoint and exit successfully before the default timeout", "docstring_tokens": ["Curls", "an", "app", "s", "endpoint", "and", "exit", "successfully", "before", "the", "default", "timeout"], "sha": "83791edc4b0a2d48b602088c30332063b8f02f32", "url": "https://github.com/cloudfoundry-incubator/cf-test-helpers/blob/83791edc4b0a2d48b602088c30332063b8f02f32/helpers/app_commands.go#L25-L28", "partition": "test"} +{"repo": "cloudfoundry-incubator/cf-test-helpers", "path": "helpers/app_commands.go", "func_name": "CurlAppRoot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Curls an app's root endpoint and exit successfully before the default timeout", "docstring_tokens": ["Curls", "an", "app", "s", "root", "endpoint", "and", "exit", "successfully", "before", "the", "default", "timeout"], "sha": "83791edc4b0a2d48b602088c30332063b8f02f32", "url": "https://github.com/cloudfoundry-incubator/cf-test-helpers/blob/83791edc4b0a2d48b602088c30332063b8f02f32/helpers/app_commands.go#L31-L34", "partition": "test"} +{"repo": "gernest/mention", "path": "mention.go", "func_name": "GetTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTags returns a slice of Tags, that is all characters after rune char up\n// to occurrence of space or another occurrence of rune char. Additionally you\n// can provide a coma separated unicode characters to be used as terminating\n// sequence.", "docstring_tokens": ["GetTags", "returns", "a", "slice", "of", "Tags", "that", "is", "all", "characters", "after", "rune", "char", "up", "to", "occurrence", "of", "space", "or", "another", "occurrence", "of", "rune", "char", ".", "Additionally", "you", "can", "provide", "a", "coma", "separated", "unicode", "characters", "to", "be", "used", "as", "terminating", "sequence", "."], "sha": "d48aa4355f942e79e1a4ac2bd08c5c46371b78ca", "url": "https://github.com/gernest/mention/blob/d48aa4355f942e79e1a4ac2bd08c5c46371b78ca/mention.go#L27-L61", "partition": "test"} +{"repo": "gernest/mention", "path": "mention.go", "func_name": "GetTagsAsUniqueStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTagsAsUniqueStrings gets all tags as a slice of unique strings. This is\n// here to have a means of being somewhat backwards compatible with previous\n// versions of mention", "docstring_tokens": ["GetTagsAsUniqueStrings", "gets", "all", "tags", "as", "a", "slice", "of", "unique", "strings", ".", "This", "is", "here", "to", "have", "a", "means", "of", "being", "somewhat", "backwards", "compatible", "with", "previous", "versions", "of", "mention"], "sha": "d48aa4355f942e79e1a4ac2bd08c5c46371b78ca", "url": "https://github.com/gernest/mention/blob/d48aa4355f942e79e1a4ac2bd08c5c46371b78ca/mention.go#L66-L72", "partition": "test"} +{"repo": "gernest/mention", "path": "mention.go", "func_name": "isTerminator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Is given rune listed as a terminator", "docstring_tokens": ["Is", "given", "rune", "listed", "as", "a", "terminator"], "sha": "d48aa4355f942e79e1a4ac2bd08c5c46371b78ca", "url": "https://github.com/gernest/mention/blob/d48aa4355f942e79e1a4ac2bd08c5c46371b78ca/mention.go#L75-L82", "partition": "test"} +{"repo": "gernest/mention", "path": "mention.go", "func_name": "uniquify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ensures the given slice of strings are unique and that none are empty\n// strings", "docstring_tokens": ["Ensures", "the", "given", "slice", "of", "strings", "are", "unique", "and", "that", "none", "are", "empty", "strings"], "sha": "d48aa4355f942e79e1a4ac2bd08c5c46371b78ca", "url": "https://github.com/gernest/mention/blob/d48aa4355f942e79e1a4ac2bd08c5c46371b78ca/mention.go#L86-L99", "partition": "test"} +{"repo": "gin-contrib/location", "path": "location.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns the location middleware with user-defined custom configuration.", "docstring_tokens": ["New", "returns", "the", "location", "middleware", "with", "user", "-", "defined", "custom", "configuration", "."], "sha": "0462caccbb9cc0b222a2d75a64830c360c603798", "url": "https://github.com/gin-contrib/location/blob/0462caccbb9cc0b222a2d75a64830c360c603798/location.go#L41-L47", "partition": "test"} +{"repo": "gin-contrib/location", "path": "location.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns the Location information for the incoming http.Request from the\n// context. If the location is not set a nil value is returned.", "docstring_tokens": ["Get", "returns", "the", "Location", "information", "for", "the", "incoming", "http", ".", "Request", "from", "the", "context", ".", "If", "the", "location", "is", "not", "set", "a", "nil", "value", "is", "returned", "."], "sha": "0462caccbb9cc0b222a2d75a64830c360c603798", "url": "https://github.com/gin-contrib/location/blob/0462caccbb9cc0b222a2d75a64830c360c603798/location.go#L51-L65", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "rsa.go", "func_name": "GenerateRSAKeyPair", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateRSAKeyPair generates a new rsa private and public key", "docstring_tokens": ["GenerateRSAKeyPair", "generates", "a", "new", "rsa", "private", "and", "public", "key"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/rsa.go#L33-L43", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "rsa.go", "func_name": "Verify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Verify compares a signature against input data", "docstring_tokens": ["Verify", "compares", "a", "signature", "against", "input", "data"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/rsa.go#L46-L53", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "rsa.go", "func_name": "Encrypt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encrypt returns encrypted bytes from the inpu data", "docstring_tokens": ["Encrypt", "returns", "encrypted", "bytes", "from", "the", "inpu", "data"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/rsa.go#L69-L71", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "rsa.go", "func_name": "Sign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sign returns a signature of the input data", "docstring_tokens": ["Sign", "returns", "a", "signature", "of", "the", "input", "data"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/rsa.go#L79-L82", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "rsa.go", "func_name": "GetPublic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPublic returns a public key", "docstring_tokens": ["GetPublic", "returns", "a", "public", "key"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/rsa.go#L85-L90", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "rsa.go", "func_name": "Decrypt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Decrypt returns decrypted bytes of the input encrypted bytes", "docstring_tokens": ["Decrypt", "returns", "decrypted", "bytes", "of", "the", "input", "encrypted", "bytes"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/rsa.go#L93-L95", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "rsa.go", "func_name": "UnmarshalRsaPrivateKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalRsaPrivateKey returns a private key from the input x509 bytes", "docstring_tokens": ["UnmarshalRsaPrivateKey", "returns", "a", "private", "key", "from", "the", "input", "x509", "bytes"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/rsa.go#L117-L126", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "key.go", "func_name": "GenerateKeyPair", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateKeyPair generates a private and public key", "docstring_tokens": ["GenerateKeyPair", "generates", "a", "private", "and", "public", "key"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/key.go#L113-L115", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "key.go", "func_name": "GenerateKeyPairWithReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateKeyPairWithReader returns a keypair of the given type and bitsize", "docstring_tokens": ["GenerateKeyPairWithReader", "returns", "a", "keypair", "of", "the", "given", "type", "and", "bitsize"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/key.go#L118-L131", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "key.go", "func_name": "GenerateEKeyPair", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateEKeyPair returns an ephemeral public key and returns a function that will compute\n// the shared secret key. Used in the identify module.\n//\n// Focuses only on ECDH now, but can be made more general in the future.", "docstring_tokens": ["GenerateEKeyPair", "returns", "an", "ephemeral", "public", "key", "and", "returns", "a", "function", "that", "will", "compute", "the", "shared", "secret", "key", ".", "Used", "in", "the", "identify", "module", ".", "Focuses", "only", "on", "ECDH", "now", "but", "can", "be", "made", "more", "general", "in", "the", "future", "."], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/key.go#L137-L174", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "key.go", "func_name": "UnmarshalPublicKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalPublicKey converts a protobuf serialized public key into its\n// representative object", "docstring_tokens": ["UnmarshalPublicKey", "converts", "a", "protobuf", "serialized", "public", "key", "into", "its", "representative", "object"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/key.go#L274-L287", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "key.go", "func_name": "MarshalPublicKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalPublicKey converts a public key object into a protobuf serialized\n// public key", "docstring_tokens": ["MarshalPublicKey", "converts", "a", "public", "key", "object", "into", "a", "protobuf", "serialized", "public", "key"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/key.go#L291-L301", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "key.go", "func_name": "UnmarshalPrivateKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalPrivateKey converts a protobuf serialized private key into its\n// representative object", "docstring_tokens": ["UnmarshalPrivateKey", "converts", "a", "protobuf", "serialized", "private", "key", "into", "its", "representative", "object"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/key.go#L305-L318", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "key.go", "func_name": "MarshalPrivateKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalPrivateKey converts a key object into its protobuf serialized form.", "docstring_tokens": ["MarshalPrivateKey", "converts", "a", "key", "object", "into", "its", "protobuf", "serialized", "form", "."], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/key.go#L321-L331", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "key.go", "func_name": "KeyEqual", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeyEqual checks whether two", "docstring_tokens": ["KeyEqual", "checks", "whether", "two"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/key.go#L344-L352", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ecdsa.go", "func_name": "GenerateECDSAKeyPair", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateECDSAKeyPair generates a new ecdsa private and public key", "docstring_tokens": ["GenerateECDSAKeyPair", "generates", "a", "new", "ecdsa", "private", "and", "public", "key"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ecdsa.go#L45-L47", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ecdsa.go", "func_name": "GenerateECDSAKeyPairWithCurve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateECDSAKeyPairWithCurve generates a new ecdsa private and public key with a speicified curve", "docstring_tokens": ["GenerateECDSAKeyPairWithCurve", "generates", "a", "new", "ecdsa", "private", "and", "public", "key", "with", "a", "speicified", "curve"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ecdsa.go#L50-L57", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ecdsa.go", "func_name": "ECDSAKeyPairFromKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ECDSAKeyPairFromKey generates a new ecdsa private and public key from an input private key", "docstring_tokens": ["ECDSAKeyPairFromKey", "generates", "a", "new", "ecdsa", "private", "and", "public", "key", "from", "an", "input", "private", "key"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ecdsa.go#L60-L66", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ecdsa.go", "func_name": "UnmarshalECDSAPrivateKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalECDSAPrivateKey returns a private key from x509 bytes", "docstring_tokens": ["UnmarshalECDSAPrivateKey", "returns", "a", "private", "key", "from", "x509", "bytes"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ecdsa.go#L79-L86", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ecdsa.go", "func_name": "UnmarshalECDSAPublicKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalECDSAPublicKey returns the public key from x509 bytes", "docstring_tokens": ["UnmarshalECDSAPublicKey", "returns", "the", "public", "key", "from", "x509", "bytes"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ecdsa.go#L89-L101", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ecdsa.go", "func_name": "Equals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equals compares to private keys", "docstring_tokens": ["Equals", "compares", "to", "private", "keys"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ecdsa.go#L119-L126", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ecdsa.go", "func_name": "Sign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sign returns the signature of the input data", "docstring_tokens": ["Sign", "returns", "the", "signature", "of", "the", "input", "data"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ecdsa.go#L129-L140", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ecdsa.go", "func_name": "Equals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equals compares to public keys", "docstring_tokens": ["Equals", "compares", "to", "public", "keys"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ecdsa.go#L163-L171", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ecdsa.go", "func_name": "Verify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Verify compares data to a signature", "docstring_tokens": ["Verify", "compares", "data", "to", "a", "signature"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ecdsa.go#L174-L186", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "secp256k1.go", "func_name": "GenerateSecp256k1Key", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateSecp256k1Key generates a new Secp256k1 private and public key pair", "docstring_tokens": ["GenerateSecp256k1Key", "generates", "a", "new", "Secp256k1", "private", "and", "public", "key", "pair"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/secp256k1.go#L20-L28", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "secp256k1.go", "func_name": "UnmarshalSecp256k1PrivateKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalSecp256k1PrivateKey returns a private key from bytes", "docstring_tokens": ["UnmarshalSecp256k1PrivateKey", "returns", "a", "private", "key", "from", "bytes"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/secp256k1.go#L31-L38", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "secp256k1.go", "func_name": "UnmarshalSecp256k1PublicKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalSecp256k1PublicKey returns a public key from bytes", "docstring_tokens": ["UnmarshalSecp256k1PublicKey", "returns", "a", "public", "key", "from", "bytes"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/secp256k1.go#L41-L48", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "secp256k1.go", "func_name": "Equals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equals compares two private keys", "docstring_tokens": ["Equals", "compares", "two", "private", "keys"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/secp256k1.go#L66-L73", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "secp256k1.go", "func_name": "Sign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sign returns a signature from input data", "docstring_tokens": ["Sign", "returns", "a", "signature", "from", "input", "data"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/secp256k1.go#L76-L84", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "secp256k1.go", "func_name": "Equals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equals compares two public keys", "docstring_tokens": ["Equals", "compares", "two", "public", "keys"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/secp256k1.go#L107-L114", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "secp256k1.go", "func_name": "Verify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Verify compares a signature against the input data", "docstring_tokens": ["Verify", "compares", "a", "signature", "against", "the", "input", "data"], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/secp256k1.go#L117-L125", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ed25519.go", "func_name": "Raw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Raw private key bytes.", "docstring_tokens": ["Raw", "private", "key", "bytes", "."], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ed25519.go#L51-L60", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ed25519.go", "func_name": "Sign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sign returns a signature from an input message.", "docstring_tokens": ["Sign", "returns", "a", "signature", "from", "an", "input", "message", "."], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ed25519.go#L82-L84", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ed25519.go", "func_name": "Equals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equals compares two ed25519 public keys.", "docstring_tokens": ["Equals", "compares", "two", "ed25519", "public", "keys", "."], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ed25519.go#L102-L109", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ed25519.go", "func_name": "Verify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Verify checks a signature agains the input data.", "docstring_tokens": ["Verify", "checks", "a", "signature", "agains", "the", "input", "data", "."], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ed25519.go#L112-L114", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ed25519.go", "func_name": "UnmarshalEd25519PublicKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalEd25519PublicKey returns a public key from input bytes.", "docstring_tokens": ["UnmarshalEd25519PublicKey", "returns", "a", "public", "key", "from", "input", "bytes", "."], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ed25519.go#L117-L125", "partition": "test"} +{"repo": "libp2p/go-libp2p-crypto", "path": "ed25519.go", "func_name": "UnmarshalEd25519PrivateKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalEd25519PrivateKey returns a private key from input bytes.", "docstring_tokens": ["UnmarshalEd25519PrivateKey", "returns", "a", "private", "key", "from", "input", "bytes", "."], "sha": "9d2fed53443f745e6dc4d02bdcc94d9742a0ca84", "url": "https://github.com/libp2p/go-libp2p-crypto/blob/9d2fed53443f745e6dc4d02bdcc94d9742a0ca84/ed25519.go#L128-L155", "partition": "test"} +{"repo": "texttheater/golang-levenshtein", "path": "levenshtein/levenshtein.go", "func_name": "EditScriptForStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EditScriptForStrings returns an optimal edit script to turn source into\n// target.", "docstring_tokens": ["EditScriptForStrings", "returns", "an", "optimal", "edit", "script", "to", "turn", "source", "into", "target", "."], "sha": "d188e65d659ef53fcdb0691c12f1bba64928b649", "url": "https://github.com/texttheater/golang-levenshtein/blob/d188e65d659ef53fcdb0691c12f1bba64928b649/levenshtein/levenshtein.go#L177-L180", "partition": "test"} +{"repo": "texttheater/golang-levenshtein", "path": "levenshtein/levenshtein.go", "func_name": "EditScriptForMatrix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EditScriptForMatrix returns an optimal edit script based on the given\n// Levenshtein matrix.", "docstring_tokens": ["EditScriptForMatrix", "returns", "an", "optimal", "edit", "script", "based", "on", "the", "given", "Levenshtein", "matrix", "."], "sha": "d188e65d659ef53fcdb0691c12f1bba64928b649", "url": "https://github.com/texttheater/golang-levenshtein/blob/d188e65d659ef53fcdb0691c12f1bba64928b649/levenshtein/levenshtein.go#L184-L186", "partition": "test"} +{"repo": "texttheater/golang-levenshtein", "path": "levenshtein/levenshtein.go", "func_name": "WriteMatrix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteMatrix writes a visual representation of the given matrix for the given\n// strings to the given writer.", "docstring_tokens": ["WriteMatrix", "writes", "a", "visual", "representation", "of", "the", "given", "matrix", "for", "the", "given", "strings", "to", "the", "given", "writer", "."], "sha": "d188e65d659ef53fcdb0691c12f1bba64928b649", "url": "https://github.com/texttheater/golang-levenshtein/blob/d188e65d659ef53fcdb0691c12f1bba64928b649/levenshtein/levenshtein.go#L190-L208", "partition": "test"} +{"repo": "nightlyone/lockfile", "path": "lockfile.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New describes a new filename located at the given absolute path.", "docstring_tokens": ["New", "describes", "a", "new", "filename", "located", "at", "the", "given", "absolute", "path", "."], "sha": "0ad87eef1443f64d3d8c50da647e2b1552851124", "url": "https://github.com/nightlyone/lockfile/blob/0ad87eef1443f64d3d8c50da647e2b1552851124/lockfile.go#L44-L49", "partition": "test"} +{"repo": "nightlyone/lockfile", "path": "lockfile.go", "func_name": "GetOwner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOwner returns who owns the lockfile.", "docstring_tokens": ["GetOwner", "returns", "who", "owns", "the", "lockfile", "."], "sha": "0ad87eef1443f64d3d8c50da647e2b1552851124", "url": "https://github.com/nightlyone/lockfile/blob/0ad87eef1443f64d3d8c50da647e2b1552851124/lockfile.go#L52-L80", "partition": "test"} +{"repo": "nightlyone/lockfile", "path": "lockfile.go", "func_name": "TryLock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TryLock tries to own the lock.\n// It Returns nil, if successful and and error describing the reason, it didn't work out.\n// Please note, that existing lockfiles containing pids of dead processes\n// and lockfiles containing no pid at all are simply deleted.", "docstring_tokens": ["TryLock", "tries", "to", "own", "the", "lock", ".", "It", "Returns", "nil", "if", "successful", "and", "and", "error", "describing", "the", "reason", "it", "didn", "t", "work", "out", ".", "Please", "note", "that", "existing", "lockfiles", "containing", "pids", "of", "dead", "processes", "and", "lockfiles", "containing", "no", "pid", "at", "all", "are", "simply", "deleted", "."], "sha": "0ad87eef1443f64d3d8c50da647e2b1552851124", "url": "https://github.com/nightlyone/lockfile/blob/0ad87eef1443f64d3d8c50da647e2b1552851124/lockfile.go#L86-L166", "partition": "test"} +{"repo": "nightlyone/lockfile", "path": "lockfile.go", "func_name": "Unlock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unlock a lock again, if we owned it. Returns any error that happend during release of lock.", "docstring_tokens": ["Unlock", "a", "lock", "again", "if", "we", "owned", "it", ".", "Returns", "any", "error", "that", "happend", "during", "release", "of", "lock", "."], "sha": "0ad87eef1443f64d3d8c50da647e2b1552851124", "url": "https://github.com/nightlyone/lockfile/blob/0ad87eef1443f64d3d8c50da647e2b1552851124/lockfile.go#L169-L190", "partition": "test"} +{"repo": "aphistic/gomol", "path": "base.go", "func_name": "NewBase", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBase creates a new instance of Base with default values set.", "docstring_tokens": ["NewBase", "creates", "a", "new", "instance", "of", "Base", "with", "default", "values", "set", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/base.go#L45-L63", "partition": "test"} +{"repo": "aphistic/gomol", "path": "base.go", "func_name": "SetFallbackLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetFallbackLogger sets a Logger to be used if there aren't any loggers added or any of\n// the added loggers are in a degraded or unhealthy state. A Logger passed to SetFallbackLogger\n// will be initialized if it hasn't been already. In addition, if the Logger fails to initialize\n// completely the fallback logger will fail to be set.", "docstring_tokens": ["SetFallbackLogger", "sets", "a", "Logger", "to", "be", "used", "if", "there", "aren", "t", "any", "loggers", "added", "or", "any", "of", "the", "added", "loggers", "are", "in", "a", "degraded", "or", "unhealthy", "state", ".", "A", "Logger", "passed", "to", "SetFallbackLogger", "will", "be", "initialized", "if", "it", "hasn", "t", "been", "already", ".", "In", "addition", "if", "the", "Logger", "fails", "to", "initialize", "completely", "the", "fallback", "logger", "will", "fail", "to", "be", "set", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/base.go#L118-L142", "partition": "test"} +{"repo": "aphistic/gomol", "path": "base.go", "func_name": "AddLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddLogger adds a new logger instance to the Base", "docstring_tokens": ["AddLogger", "adds", "a", "new", "logger", "instance", "to", "the", "Base"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/base.go#L145-L165", "partition": "test"} +{"repo": "aphistic/gomol", "path": "base.go", "func_name": "LogWithTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogWithTime will log a message at the provided level to all added loggers with the timestamp set to the\n// value of ts.", "docstring_tokens": ["LogWithTime", "will", "log", "a", "message", "at", "the", "provided", "level", "to", "all", "added", "loggers", "with", "the", "timestamp", "set", "to", "the", "value", "of", "ts", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/base.go#L318-L358", "partition": "test"} +{"repo": "aphistic/gomol", "path": "base.go", "func_name": "Log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Log will log a message at the provided level to all added loggers with the timestamp set to the time\n// Log was called.", "docstring_tokens": ["Log", "will", "log", "a", "message", "at", "the", "provided", "level", "to", "all", "added", "loggers", "with", "the", "timestamp", "set", "to", "the", "time", "Log", "was", "called", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/base.go#L362-L364", "partition": "test"} +{"repo": "aphistic/gomol", "path": "base.go", "func_name": "Warnm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Warnm is a short-hand version of Warningm", "docstring_tokens": ["Warnm", "is", "a", "short", "-", "hand", "version", "of", "Warningm"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/base.go#L438-L440", "partition": "test"} +{"repo": "aphistic/gomol", "path": "template.go", "func_name": "NewTemplateWithFuncMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTemplateWithFuncMap creates a new Template from the given string and a template FuncMap. The FuncMap available\n// to the template during evaluation will also include the default values, if not overridden. An error is returned\n// if the template fails to compile.", "docstring_tokens": ["NewTemplateWithFuncMap", "creates", "a", "new", "Template", "from", "the", "given", "string", "and", "a", "template", "FuncMap", ".", "The", "FuncMap", "available", "to", "the", "template", "during", "evaluation", "will", "also", "include", "the", "default", "values", "if", "not", "overridden", ".", "An", "error", "is", "returned", "if", "the", "template", "fails", "to", "compile", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/template.go#L110-L135", "partition": "test"} +{"repo": "aphistic/gomol", "path": "template.go", "func_name": "Execute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Execute takes a TemplateMsg and applies it to the Go template. If colorize is true the template\n// will insert ANSI color codes within the resulting string.", "docstring_tokens": ["Execute", "takes", "a", "TemplateMsg", "and", "applies", "it", "to", "the", "Go", "template", ".", "If", "colorize", "is", "true", "the", "template", "will", "insert", "ANSI", "color", "codes", "within", "the", "resulting", "string", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/template.go#L148-L164", "partition": "test"} +{"repo": "aphistic/gomol", "path": "template.go", "func_name": "NewTemplateMsg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTemplateMsg will create a new TemplateMsg with values from the given parameters", "docstring_tokens": ["NewTemplateMsg", "will", "create", "a", "new", "TemplateMsg", "with", "values", "from", "the", "given", "parameters"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/template.go#L176-L189", "partition": "test"} +{"repo": "aphistic/gomol", "path": "log_adapter.go", "func_name": "NewLogAdapterFor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLogAdapterFor creates a LogAdapter that wraps the given loger with the\n// given attributes.", "docstring_tokens": ["NewLogAdapterFor", "creates", "a", "LogAdapter", "that", "wraps", "the", "given", "loger", "with", "the", "given", "attributes", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/log_adapter.go#L37-L46", "partition": "test"} +{"repo": "aphistic/gomol", "path": "log_adapter.go", "func_name": "SetAttr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAttr sets the attribute key to value for this LogAdapter only", "docstring_tokens": ["SetAttr", "sets", "the", "attribute", "key", "to", "value", "for", "this", "LogAdapter", "only"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/log_adapter.go#L57-L59", "partition": "test"} +{"repo": "aphistic/gomol", "path": "log_adapter.go", "func_name": "LogWithTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LogWithTime will log a message at the provided level to all loggers added\n// to the Base associated with this LogAdapter. It is similar to Log except\n// the timestamp will be set to the value of ts.", "docstring_tokens": ["LogWithTime", "will", "log", "a", "message", "at", "the", "provided", "level", "to", "all", "loggers", "added", "to", "the", "Base", "associated", "with", "this", "LogAdapter", ".", "It", "is", "similar", "to", "Log", "except", "the", "timestamp", "will", "be", "set", "to", "the", "value", "of", "ts", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/log_adapter.go#L80-L88", "partition": "test"} +{"repo": "aphistic/gomol", "path": "log_adapter.go", "func_name": "Log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Log will log a message at the provided level to all loggers added\n// to the Base associated with this LogAdapter", "docstring_tokens": ["Log", "will", "log", "a", "message", "at", "the", "provided", "level", "to", "all", "loggers", "added", "to", "the", "Base", "associated", "with", "this", "LogAdapter"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/log_adapter.go#L92-L100", "partition": "test"} +{"repo": "aphistic/gomol", "path": "log_adapter.go", "func_name": "Dbgm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dbgm is a short-hand version of Debugm", "docstring_tokens": ["Dbgm", "is", "a", "short", "-", "hand", "version", "of", "Debugm"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/log_adapter.go#L113-L115", "partition": "test"} +{"repo": "aphistic/gomol", "path": "attrs.go", "func_name": "NewAttrsFromMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAttrsFromMap will create a new Attrs struct with the given attributes pre-populated", "docstring_tokens": ["NewAttrsFromMap", "will", "create", "a", "new", "Attrs", "struct", "with", "the", "given", "attributes", "pre", "-", "populated"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/attrs.go#L25-L31", "partition": "test"} +{"repo": "aphistic/gomol", "path": "attrs.go", "func_name": "NewAttrsFromAttrs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAttrsFromAttrs is a convenience function that will accept zero or more existing Attrs, create\n// a new Attrs and then merge all the supplied Attrs values into the new Attrs instance.", "docstring_tokens": ["NewAttrsFromAttrs", "is", "a", "convenience", "function", "that", "will", "accept", "zero", "or", "more", "existing", "Attrs", "create", "a", "new", "Attrs", "and", "then", "merge", "all", "the", "supplied", "Attrs", "values", "into", "the", "new", "Attrs", "instance", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/attrs.go#L35-L41", "partition": "test"} +{"repo": "aphistic/gomol", "path": "attrs.go", "func_name": "MergeAttrs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MergeAttrs accepts another existing Attrs and merges the attributes into its own.", "docstring_tokens": ["MergeAttrs", "accepts", "another", "existing", "Attrs", "and", "merges", "the", "attributes", "into", "its", "own", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/attrs.go#L44-L53", "partition": "test"} +{"repo": "aphistic/gomol", "path": "attrs.go", "func_name": "SetAttr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAttr will set key to the provided value. If the attribute already exists the value will\n// be replaced with the new value.", "docstring_tokens": ["SetAttr", "will", "set", "key", "to", "the", "provided", "value", ".", "If", "the", "attribute", "already", "exists", "the", "value", "will", "be", "replaced", "with", "the", "new", "value", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/attrs.go#L65-L78", "partition": "test"} +{"repo": "aphistic/gomol", "path": "attrs.go", "func_name": "GetAttr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAttr gets the value of the attribute with the provided name. If the attribute does not\n// exist, nil will be returned", "docstring_tokens": ["GetAttr", "gets", "the", "value", "of", "the", "attribute", "with", "the", "provided", "name", ".", "If", "the", "attribute", "does", "not", "exist", "nil", "will", "be", "returned"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/attrs.go#L82-L87", "partition": "test"} +{"repo": "aphistic/gomol", "path": "attrs.go", "func_name": "RemoveAttr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveAttr will remove the attribute with the provided name.", "docstring_tokens": ["RemoveAttr", "will", "remove", "the", "attribute", "with", "the", "provided", "name", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/attrs.go#L90-L95", "partition": "test"} +{"repo": "aphistic/gomol", "path": "attrs.go", "func_name": "Attrs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Attrs will return a map of the attributes added to the struct.", "docstring_tokens": ["Attrs", "will", "return", "a", "map", "of", "the", "attributes", "added", "to", "the", "struct", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/attrs.go#L98-L108", "partition": "test"} +{"repo": "aphistic/gomol", "path": "default.go", "func_name": "Debugm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Debugm executes the same function on the default Base instance", "docstring_tokens": ["Debugm", "executes", "the", "same", "function", "on", "the", "default", "Base", "instance"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/default.go#L121-L123", "partition": "test"} +{"repo": "aphistic/gomol", "path": "default.go", "func_name": "Infom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Infom executes the same function on the default Base instance", "docstring_tokens": ["Infom", "executes", "the", "same", "function", "on", "the", "default", "Base", "instance"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/default.go#L136-L138", "partition": "test"} +{"repo": "aphistic/gomol", "path": "default.go", "func_name": "Warningm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Warningm executes the same function on the default Base instance", "docstring_tokens": ["Warningm", "executes", "the", "same", "function", "on", "the", "default", "Base", "instance"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/default.go#L166-L168", "partition": "test"} +{"repo": "aphistic/gomol", "path": "default.go", "func_name": "Errm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Errm executes the same function on the default Base instance", "docstring_tokens": ["Errm", "executes", "the", "same", "function", "on", "the", "default", "Base", "instance"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/default.go#L181-L183", "partition": "test"} +{"repo": "aphistic/gomol", "path": "default.go", "func_name": "Errorm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Errorm executes the same function on the default Base instance", "docstring_tokens": ["Errorm", "executes", "the", "same", "function", "on", "the", "default", "Base", "instance"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/default.go#L196-L198", "partition": "test"} +{"repo": "aphistic/gomol", "path": "default.go", "func_name": "Fatalm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fatalm executes the same function on the default Base instance", "docstring_tokens": ["Fatalm", "executes", "the", "same", "function", "on", "the", "default", "Base", "instance"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/default.go#L211-L213", "partition": "test"} +{"repo": "aphistic/gomol", "path": "default.go", "func_name": "Dief", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dief executes the same function on the default Base instance", "docstring_tokens": ["Dief", "executes", "the", "same", "function", "on", "the", "default", "Base", "instance"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/default.go#L221-L223", "partition": "test"} +{"repo": "aphistic/gomol", "path": "default.go", "func_name": "Diem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Diem executes the same function on the default Base instance", "docstring_tokens": ["Diem", "executes", "the", "same", "function", "on", "the", "default", "Base", "instance"], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/default.go#L226-L228", "partition": "test"} +{"repo": "aphistic/gomol", "path": "message.go", "func_name": "ToLogLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToLogLevel will take a string and return the appropriate log level for\n// the string if known. If the string is not recognized it will return\n// an ErrUnknownLevel error.", "docstring_tokens": ["ToLogLevel", "will", "take", "a", "string", "and", "return", "the", "appropriate", "log", "level", "for", "the", "string", "if", "known", ".", "If", "the", "string", "is", "not", "recognized", "it", "will", "return", "an", "ErrUnknownLevel", "error", "."], "sha": "1546845ba714699f76f484ad3af64cf0503064d1", "url": "https://github.com/aphistic/gomol/blob/1546845ba714699f76f484ad3af64cf0503064d1/message.go#L49-L74", "partition": "test"} +{"repo": "faiface/mainthread", "path": "mainthread.go", "func_name": "CallErr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CallErr queues function f on the main thread and returns an error returned by f.", "docstring_tokens": ["CallErr", "queues", "function", "f", "on", "the", "main", "thread", "and", "returns", "an", "error", "returned", "by", "f", "."], "sha": "8b78f0a41ae388189090ac4506612659fa53082b", "url": "https://github.com/faiface/mainthread/blob/8b78f0a41ae388189090ac4506612659fa53082b/mainthread.go#L70-L77", "partition": "test"} +{"repo": "knq/sdhook", "path": "sdhook.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a StackdriverHook using the provided options that is suitible\n// for using with logrus for logging to Google Stackdriver.", "docstring_tokens": ["New", "creates", "a", "StackdriverHook", "using", "the", "provided", "options", "that", "is", "suitible", "for", "using", "with", "logrus", "for", "logging", "to", "Google", "Stackdriver", "."], "sha": "41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b", "url": "https://github.com/knq/sdhook/blob/41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b/sdhook.go#L80-L121", "partition": "test"} +{"repo": "knq/sdhook", "path": "sdhook.go", "func_name": "Fire", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fire writes the message to the Stackdriver entry service.", "docstring_tokens": ["Fire", "writes", "the", "message", "to", "the", "Stackdriver", "entry", "service", "."], "sha": "41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b", "url": "https://github.com/knq/sdhook/blob/41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b/sdhook.go#L144-L183", "partition": "test"} +{"repo": "knq/sdhook", "path": "opts.go", "func_name": "Levels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Levels is an option that sets the logrus levels that the StackdriverHook\n// will create log entries for.", "docstring_tokens": ["Levels", "is", "an", "option", "that", "sets", "the", "logrus", "levels", "that", "the", "StackdriverHook", "will", "create", "log", "entries", "for", "."], "sha": "41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b", "url": "https://github.com/knq/sdhook/blob/41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b/opts.go#L27-L32", "partition": "test"} +{"repo": "knq/sdhook", "path": "opts.go", "func_name": "ProjectID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProjectID is an option that sets the project ID which is needed for the log\n// name.", "docstring_tokens": ["ProjectID", "is", "an", "option", "that", "sets", "the", "project", "ID", "which", "is", "needed", "for", "the", "log", "name", "."], "sha": "41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b", "url": "https://github.com/knq/sdhook/blob/41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b/opts.go#L36-L41", "partition": "test"} +{"repo": "knq/sdhook", "path": "opts.go", "func_name": "EntriesService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EntriesService is an option that sets the Google API entry service to use\n// with Stackdriver.", "docstring_tokens": ["EntriesService", "is", "an", "option", "that", "sets", "the", "Google", "API", "entry", "service", "to", "use", "with", "Stackdriver", "."], "sha": "41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b", "url": "https://github.com/knq/sdhook/blob/41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b/opts.go#L45-L50", "partition": "test"} +{"repo": "knq/sdhook", "path": "opts.go", "func_name": "LoggingService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoggingService is an option that sets the Google API logging service to use.", "docstring_tokens": ["LoggingService", "is", "an", "option", "that", "sets", "the", "Google", "API", "logging", "service", "to", "use", "."], "sha": "41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b", "url": "https://github.com/knq/sdhook/blob/41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b/opts.go#L53-L58", "partition": "test"} +{"repo": "knq/sdhook", "path": "opts.go", "func_name": "ErrorService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ErrorService is an option that sets the Google API error reporting service to use.", "docstring_tokens": ["ErrorService", "is", "an", "option", "that", "sets", "the", "Google", "API", "error", "reporting", "service", "to", "use", "."], "sha": "41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b", "url": "https://github.com/knq/sdhook/blob/41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b/opts.go#L61-L66", "partition": "test"} +{"repo": "knq/sdhook", "path": "opts.go", "func_name": "HTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTPClient is an option that sets the http.Client to be used when creating\n// the Stackdriver service.", "docstring_tokens": ["HTTPClient", "is", "an", "option", "that", "sets", "the", "http", ".", "Client", "to", "be", "used", "when", "creating", "the", "Stackdriver", "service", "."], "sha": "41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b", "url": "https://github.com/knq/sdhook/blob/41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b/opts.go#L70-L87", "partition": "test"} +{"repo": "knq/sdhook", "path": "opts.go", "func_name": "MonitoredResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MonitoredResource is an option that sets the monitored resource to send with\n// each log entry.", "docstring_tokens": ["MonitoredResource", "is", "an", "option", "that", "sets", "the", "monitored", "resource", "to", "send", "with", "each", "log", "entry", "."], "sha": "41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b", "url": "https://github.com/knq/sdhook/blob/41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b/opts.go#L91-L96", "partition": "test"} +{"repo": "knq/sdhook", "path": "opts.go", "func_name": "ErrorReportingLogName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ErrorReportingLogName is an option that sets the log name to send\n// with each error message for error reporting.\n// Only used when ErrorReportingService has been set.", "docstring_tokens": ["ErrorReportingLogName", "is", "an", "option", "that", "sets", "the", "log", "name", "to", "send", "with", "each", "error", "message", "for", "error", "reporting", ".", "Only", "used", "when", "ErrorReportingService", "has", "been", "set", "."], "sha": "41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b", "url": "https://github.com/knq/sdhook/blob/41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b/opts.go#L130-L135", "partition": "test"} +{"repo": "knq/sdhook", "path": "opts.go", "func_name": "Labels", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Labels is an option that sets the labels to send with each log entry.", "docstring_tokens": ["Labels", "is", "an", "option", "that", "sets", "the", "labels", "to", "send", "with", "each", "log", "entry", "."], "sha": "41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b", "url": "https://github.com/knq/sdhook/blob/41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b/opts.go#L138-L143", "partition": "test"} +{"repo": "knq/sdhook", "path": "opts.go", "func_name": "PartialSuccess", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PartialSuccess is an option that toggles whether or not to write partial log\n// entries.", "docstring_tokens": ["PartialSuccess", "is", "an", "option", "that", "toggles", "whether", "or", "not", "to", "write", "partial", "log", "entries", "."], "sha": "41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b", "url": "https://github.com/knq/sdhook/blob/41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b/opts.go#L147-L152", "partition": "test"} +{"repo": "knq/sdhook", "path": "opts.go", "func_name": "GoogleComputeCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GoogleComputeCredentials is an option that loads the Google Service Account\n// credentials from the GCE metadata associated with the GCE compute instance.\n// If serviceAccount is empty, then the default service account credentials\n// associated with the GCE instance will be used.", "docstring_tokens": ["GoogleComputeCredentials", "is", "an", "option", "that", "loads", "the", "Google", "Service", "Account", "credentials", "from", "the", "GCE", "metadata", "associated", "with", "the", "GCE", "compute", "instance", ".", "If", "serviceAccount", "is", "empty", "then", "the", "default", "service", "account", "credentials", "associated", "with", "the", "GCE", "instance", "will", "be", "used", "."], "sha": "41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b", "url": "https://github.com/knq/sdhook/blob/41b9ccbff0b5fa5a56fbdccf2eb8653e7afe8d4b/opts.go#L241-L269", "partition": "test"} +{"repo": "segmentio/objconv", "path": "codec.go", "func_name": "NewEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEncoder returns a new encoder that outputs to w.", "docstring_tokens": ["NewEncoder", "returns", "a", "new", "encoder", "that", "outputs", "to", "w", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/codec.go#L15-L17", "partition": "test"} +{"repo": "segmentio/objconv", "path": "codec.go", "func_name": "NewDecoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDecoder returns a new decoder that takes input from r.", "docstring_tokens": ["NewDecoder", "returns", "a", "new", "decoder", "that", "takes", "input", "from", "r", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/codec.go#L20-L22", "partition": "test"} +{"repo": "segmentio/objconv", "path": "codec.go", "func_name": "NewStreamEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStreamEncoder returns a new stream encoder that outputs to w.", "docstring_tokens": ["NewStreamEncoder", "returns", "a", "new", "stream", "encoder", "that", "outputs", "to", "w", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/codec.go#L25-L27", "partition": "test"} +{"repo": "segmentio/objconv", "path": "codec.go", "func_name": "NewStreamDecoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStreamDecoder returns a new stream decoder that takes input from r.", "docstring_tokens": ["NewStreamDecoder", "returns", "a", "new", "stream", "decoder", "that", "takes", "input", "from", "r", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/codec.go#L30-L32", "partition": "test"} +{"repo": "segmentio/objconv", "path": "codec.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register adds a codec for a mimetype to r.", "docstring_tokens": ["Register", "adds", "a", "codec", "for", "a", "mimetype", "to", "r", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/codec.go#L43-L52", "partition": "test"} +{"repo": "segmentio/objconv", "path": "codec.go", "func_name": "Unregister", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unregister removes the codec for a mimetype from r.", "docstring_tokens": ["Unregister", "removes", "the", "codec", "for", "a", "mimetype", "from", "r", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/codec.go#L55-L60", "partition": "test"} +{"repo": "segmentio/objconv", "path": "codec.go", "func_name": "Lookup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Lookup returns the codec associated with mimetype, ok is set to true or false\n// based on whether a codec was found.", "docstring_tokens": ["Lookup", "returns", "the", "codec", "associated", "with", "mimetype", "ok", "is", "set", "to", "true", "or", "false", "based", "on", "whether", "a", "codec", "was", "found", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/codec.go#L64-L69", "partition": "test"} +{"repo": "segmentio/objconv", "path": "codec.go", "func_name": "Codecs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Codecs returns a map of all codecs registered in reg.", "docstring_tokens": ["Codecs", "returns", "a", "map", "of", "all", "codecs", "registered", "in", "reg", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/codec.go#L72-L80", "partition": "test"} +{"repo": "segmentio/objconv", "path": "resp/error.go", "func_name": "Type", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Type returns the RESP error type, which is represented by the leading\n// uppercase word in the error string.", "docstring_tokens": ["Type", "returns", "the", "RESP", "error", "type", "which", "is", "represented", "by", "the", "leading", "uppercase", "word", "in", "the", "error", "string", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/resp/error.go#L24-L41", "partition": "test"} +{"repo": "segmentio/objconv", "path": "adapter.go", "func_name": "Install", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Install adds an adapter for typ.\n//\n// The function panics if one of the encoder and decoder functions of the\n// adapter are nil.\n//\n// A typical use case for this function is to be called during the package\n// initialization phase to extend objconv support for new types.", "docstring_tokens": ["Install", "adds", "an", "adapter", "for", "typ", ".", "The", "function", "panics", "if", "one", "of", "the", "encoder", "and", "decoder", "functions", "of", "the", "adapter", "are", "nil", ".", "A", "typical", "use", "case", "for", "this", "function", "is", "to", "be", "called", "during", "the", "package", "initialization", "phase", "to", "extend", "objconv", "support", "for", "new", "types", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/adapter.go#L22-L41", "partition": "test"} +{"repo": "segmentio/objconv", "path": "adapter.go", "func_name": "AdapterOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AdapterOf returns the adapter for typ, setting ok to true if one was found,\n// false otherwise.", "docstring_tokens": ["AdapterOf", "returns", "the", "adapter", "for", "typ", "setting", "ok", "to", "true", "if", "one", "was", "found", "false", "otherwise", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/adapter.go#L45-L50", "partition": "test"} +{"repo": "segmentio/objconv", "path": "objutil/duration.go", "func_name": "AppendDuration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendDuration appends a human-readable representation of d to b.\n//\n// The function copies the implementation of time.Duration.String but prevents\n// Go from making a dynamic memory allocation on the returned value.", "docstring_tokens": ["AppendDuration", "appends", "a", "human", "-", "readable", "representation", "of", "d", "to", "b", ".", "The", "function", "copies", "the", "implementation", "of", "time", ".", "Duration", ".", "String", "but", "prevents", "Go", "from", "making", "a", "dynamic", "memory", "allocation", "on", "the", "returned", "value", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/objutil/duration.go#L13-L84", "partition": "test"} +{"repo": "segmentio/objconv", "path": "objutil/duration.go", "func_name": "fmtInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fmtInt formats v into the tail of buf.\n// It returns the index where the output begins.", "docstring_tokens": ["fmtInt", "formats", "v", "into", "the", "tail", "of", "buf", ".", "It", "returns", "the", "index", "where", "the", "output", "begins", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/objutil/duration.go#L112-L125", "partition": "test"} +{"repo": "segmentio/objconv", "path": "json/decode.go", "func_name": "NewDecoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDecoder returns a new JSON decoder that parses values from r.", "docstring_tokens": ["NewDecoder", "returns", "a", "new", "JSON", "decoder", "that", "parses", "values", "from", "r", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/json/decode.go#L12-L14", "partition": "test"} +{"repo": "segmentio/objconv", "path": "json/decode.go", "func_name": "NewStreamDecoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStreamDecoder returns a new JSON stream decoder that parses values from r.", "docstring_tokens": ["NewStreamDecoder", "returns", "a", "new", "JSON", "stream", "decoder", "that", "parses", "values", "from", "r", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/json/decode.go#L17-L19", "partition": "test"} +{"repo": "segmentio/objconv", "path": "json/decode.go", "func_name": "Unmarshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unmarshal decodes a JSON representation of v from b.", "docstring_tokens": ["Unmarshal", "decodes", "a", "JSON", "representation", "of", "v", "from", "b", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/json/decode.go#L22-L31", "partition": "test"} +{"repo": "segmentio/objconv", "path": "value.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a human readable representation of the type.", "docstring_tokens": ["String", "returns", "a", "human", "readable", "representation", "of", "the", "type", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/value.go#L33-L62", "partition": "test"} +{"repo": "segmentio/objconv", "path": "value.go", "func_name": "zeroValueOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// zeroValueOf and the related cache is used to keep the zero values so they\n// don't need to be reallocated every time they're used.", "docstring_tokens": ["zeroValueOf", "and", "the", "related", "cache", "is", "used", "to", "keep", "the", "zero", "values", "so", "they", "don", "t", "need", "to", "be", "reallocated", "every", "time", "they", "re", "used", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/value.go#L71-L84", "partition": "test"} +{"repo": "segmentio/objconv", "path": "value.go", "func_name": "NewValueParser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewValueParser creates a new parser that exposes the value v.", "docstring_tokens": ["NewValueParser", "creates", "a", "new", "parser", "that", "exposes", "the", "value", "v", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/value.go#L156-L160", "partition": "test"} +{"repo": "segmentio/objconv", "path": "objutil/tag.go", "func_name": "ParseTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseTag parses a raw tag obtained from a struct field, returning the results\n// as a tag value.", "docstring_tokens": ["ParseTag", "parses", "a", "raw", "tag", "obtained", "from", "a", "struct", "field", "returning", "the", "results", "as", "a", "tag", "value", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/objutil/tag.go#L19-L41", "partition": "test"} +{"repo": "segmentio/objconv", "path": "json/encode.go", "func_name": "NewEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEncoder returns a new JSON encoder that writes to w.", "docstring_tokens": ["NewEncoder", "returns", "a", "new", "JSON", "encoder", "that", "writes", "to", "w", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/json/encode.go#L12-L14", "partition": "test"} +{"repo": "segmentio/objconv", "path": "json/encode.go", "func_name": "NewStreamEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStreamEncoder returns a new JSON stream encoder that writes to w.", "docstring_tokens": ["NewStreamEncoder", "returns", "a", "new", "JSON", "stream", "encoder", "that", "writes", "to", "w", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/json/encode.go#L17-L19", "partition": "test"} +{"repo": "segmentio/objconv", "path": "json/encode.go", "func_name": "NewPrettyEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPrettyEncoder returns a new JSON encoder that writes to w.", "docstring_tokens": ["NewPrettyEncoder", "returns", "a", "new", "JSON", "encoder", "that", "writes", "to", "w", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/json/encode.go#L22-L24", "partition": "test"} +{"repo": "segmentio/objconv", "path": "json/encode.go", "func_name": "NewPrettyStreamEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPrettyStreamEncoder returns a new JSON stream encoder that writes to w.", "docstring_tokens": ["NewPrettyStreamEncoder", "returns", "a", "new", "JSON", "stream", "encoder", "that", "writes", "to", "w", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/json/encode.go#L27-L29", "partition": "test"} +{"repo": "segmentio/objconv", "path": "json/encode.go", "func_name": "Marshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Marshal writes the JSON representation of v to a byte slice returned in b.", "docstring_tokens": ["Marshal", "writes", "the", "JSON", "representation", "of", "v", "to", "a", "byte", "slice", "returned", "in", "b", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/json/encode.go#L32-L43", "partition": "test"} +{"repo": "segmentio/objconv", "path": "encode.go", "func_name": "NewEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEncoder returns a new encoder that outputs values to e.\n//\n// Encoders created by this function use the default encoder configuration,\n// which is equivalent to using a zero-value EncoderConfig with only the Emitter\n// field set.\n//\n// The function panics if e is nil.", "docstring_tokens": ["NewEncoder", "returns", "a", "new", "encoder", "that", "outputs", "values", "to", "e", ".", "Encoders", "created", "by", "this", "function", "use", "the", "default", "encoder", "configuration", "which", "is", "equivalent", "to", "using", "a", "zero", "-", "value", "EncoderConfig", "with", "only", "the", "Emitter", "field", "set", ".", "The", "function", "panics", "if", "e", "is", "nil", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/encode.go#L30-L35", "partition": "test"} +{"repo": "segmentio/objconv", "path": "encode.go", "func_name": "EncodeArray", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EncodeArray provides the implementation of the array encoding algorithm,\n// where n is the number of elements in the array, and f a function called to\n// encode each element.\n//\n// The n argument can be set to a negative value to indicate that the program\n// doesn't know how many elements it will output to the array. Be mindful that\n// not all emitters support encoding arrays of unknown lengths.\n//\n// The f function is called to encode each element of the array.", "docstring_tokens": ["EncodeArray", "provides", "the", "implementation", "of", "the", "array", "encoding", "algorithm", "where", "n", "is", "the", "number", "of", "elements", "in", "the", "array", "and", "f", "a", "function", "called", "to", "encode", "each", "element", ".", "The", "n", "argument", "can", "be", "set", "to", "a", "negative", "value", "to", "indicate", "that", "the", "program", "doesn", "t", "know", "how", "many", "elements", "it", "will", "output", "to", "the", "array", ".", "Be", "mindful", "that", "not", "all", "emitters", "support", "encoding", "arrays", "of", "unknown", "lengths", ".", "The", "f", "function", "is", "called", "to", "encode", "each", "element", "of", "the", "array", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/encode.go#L620-L648", "partition": "test"} +{"repo": "segmentio/objconv", "path": "encode.go", "func_name": "EncodeMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EncodeMap provides the implementation of the map encoding algorithm, where n\n// is the number of elements in the map, and f a function called to encode each\n// element.\n//\n// The n argument can be set to a negative value to indicate that the program\n// doesn't know how many elements it will output to the map. Be mindful that not\n// all emitters support encoding maps of unknown length.\n//\n// The f function is called to encode each element of the map, it is expected to\n// encode two values, the first one being the key, follow by the associated value.\n// The first encoder must be used to encode the key, the second for the value.", "docstring_tokens": ["EncodeMap", "provides", "the", "implementation", "of", "the", "map", "encoding", "algorithm", "where", "n", "is", "the", "number", "of", "elements", "in", "the", "map", "and", "f", "a", "function", "called", "to", "encode", "each", "element", ".", "The", "n", "argument", "can", "be", "set", "to", "a", "negative", "value", "to", "indicate", "that", "the", "program", "doesn", "t", "know", "how", "many", "elements", "it", "will", "output", "to", "the", "map", ".", "Be", "mindful", "that", "not", "all", "emitters", "support", "encoding", "maps", "of", "unknown", "length", ".", "The", "f", "function", "is", "called", "to", "encode", "each", "element", "of", "the", "map", "it", "is", "expected", "to", "encode", "two", "values", "the", "first", "one", "being", "the", "key", "follow", "by", "the", "associated", "value", ".", "The", "first", "encoder", "must", "be", "used", "to", "encode", "the", "key", "the", "second", "for", "the", "value", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/encode.go#L661-L698", "partition": "test"} +{"repo": "segmentio/objconv", "path": "encode.go", "func_name": "NewStreamEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStreamEncoder returns a new stream encoder that outputs to e.\n//\n// The function panics if e is nil.", "docstring_tokens": ["NewStreamEncoder", "returns", "a", "new", "stream", "encoder", "that", "outputs", "to", "e", ".", "The", "function", "panics", "if", "e", "is", "nil", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/encode.go#L718-L723", "partition": "test"} +{"repo": "segmentio/objconv", "path": "encode.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open explicitly tells the encoder to start the stream, setting the number\n// of values to n.\n//\n// Depending on the actual format that the stream is encoding to, n may or\n// may not have to be accurate, some formats also support passing a negative\n// value to indicate that the number of elements is unknown.", "docstring_tokens": ["Open", "explicitly", "tells", "the", "encoder", "to", "start", "the", "stream", "setting", "the", "number", "of", "values", "to", "n", ".", "Depending", "on", "the", "actual", "format", "that", "the", "stream", "is", "encoding", "to", "n", "may", "or", "may", "not", "have", "to", "be", "accurate", "some", "formats", "also", "support", "passing", "a", "negative", "value", "to", "indicate", "that", "the", "number", "of", "elements", "is", "unknown", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/encode.go#L731-L750", "partition": "test"} +{"repo": "segmentio/objconv", "path": "encode.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close terminates the stream encoder.", "docstring_tokens": ["Close", "terminates", "the", "stream", "encoder", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/encode.go#L753-L767", "partition": "test"} +{"repo": "segmentio/objconv", "path": "encode.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode writes v to the stream, encoding it based on the emitter configured\n// on e.", "docstring_tokens": ["Encode", "writes", "v", "to", "the", "stream", "encoding", "it", "based", "on", "the", "emitter", "configured", "on", "e", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/encode.go#L771-L796", "partition": "test"} +{"repo": "segmentio/objconv", "path": "struct.go", "func_name": "newStructType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newStructType takes a Go type as argument and extract information to make a\n// new structType value.\n// The type has to be a struct type or a panic will be raised.", "docstring_tokens": ["newStructType", "takes", "a", "Go", "type", "as", "argument", "and", "extract", "information", "to", "make", "a", "new", "structType", "value", ".", "The", "type", "has", "to", "be", "a", "struct", "type", "or", "a", "panic", "will", "be", "raised", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/struct.go#L87-L117", "partition": "test"} +{"repo": "segmentio/objconv", "path": "struct.go", "func_name": "lookup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lookup takes a Go type as argument and returns the matching structType value,\n// potentially creating it if it didn't already exist.\n// This method is safe to call from multiple goroutines.", "docstring_tokens": ["lookup", "takes", "a", "Go", "type", "as", "argument", "and", "returns", "the", "matching", "structType", "value", "potentially", "creating", "it", "if", "it", "didn", "t", "already", "exist", ".", "This", "method", "is", "safe", "to", "call", "from", "multiple", "goroutines", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/struct.go#L128-L147", "partition": "test"} +{"repo": "segmentio/objconv", "path": "struct.go", "func_name": "clear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// clear empties the cache.", "docstring_tokens": ["clear", "empties", "the", "cache", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/struct.go#L150-L156", "partition": "test"} +{"repo": "segmentio/objconv", "path": "objutil/limits.go", "func_name": "CheckUint64Bounds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckUint64Bounds verifies that v is smaller than max, t represents the\n// original type of v.", "docstring_tokens": ["CheckUint64Bounds", "verifies", "that", "v", "is", "smaller", "than", "max", "t", "represents", "the", "original", "type", "of", "v", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/objutil/limits.go#L90-L95", "partition": "test"} +{"repo": "segmentio/objconv", "path": "objutil/limits.go", "func_name": "CheckInt64Bounds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckInt64Bounds verifies that v is within min and max, t represents the\n// original type of v.", "docstring_tokens": ["CheckInt64Bounds", "verifies", "that", "v", "is", "within", "min", "and", "max", "t", "represents", "the", "original", "type", "of", "v", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/objutil/limits.go#L99-L107", "partition": "test"} +{"repo": "segmentio/objconv", "path": "decode.go", "func_name": "NewDecoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDecoder returns a decoder object that uses p, will panic if p is nil.", "docstring_tokens": ["NewDecoder", "returns", "a", "decoder", "object", "that", "uses", "p", "will", "panic", "if", "p", "is", "nil", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/decode.go#L31-L36", "partition": "test"} +{"repo": "segmentio/objconv", "path": "decode.go", "func_name": "Decode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Decode expects v to be a pointer to a value in which the decoder will load\n// the next parsed data.\n//\n// The method panics if v is neither a pointer type nor implements the\n// ValueDecoder interface, or if v is a nil pointer.", "docstring_tokens": ["Decode", "expects", "v", "to", "be", "a", "pointer", "to", "a", "value", "in", "which", "the", "decoder", "will", "load", "the", "next", "parsed", "data", ".", "The", "method", "panics", "if", "v", "is", "neither", "a", "pointer", "type", "nor", "implements", "the", "ValueDecoder", "interface", "or", "if", "v", "is", "a", "nil", "pointer", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/decode.go#L43-L78", "partition": "test"} +{"repo": "segmentio/objconv", "path": "decode.go", "func_name": "DecodeArray", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodeArray provides the implementation of the algorithm for decoding arrays,\n// where f is called to decode each element of the array.", "docstring_tokens": ["DecodeArray", "provides", "the", "implementation", "of", "the", "algorithm", "for", "decoding", "arrays", "where", "f", "is", "called", "to", "decode", "each", "element", "of", "the", "array", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/decode.go#L1133-L1148", "partition": "test"} +{"repo": "segmentio/objconv", "path": "decode.go", "func_name": "DecodeMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodeMap provides the implementation of the algorithm for decoding maps,\n// where f is called to decode each pair of key and value.\n//\n// The function f is expected to decode two values from the map, the first one\n// being the key and the second the associated value. The first decoder must be\n// used to decode the key, the second one for the value.", "docstring_tokens": ["DecodeMap", "provides", "the", "implementation", "of", "the", "algorithm", "for", "decoding", "maps", "where", "f", "is", "called", "to", "decode", "each", "pair", "of", "key", "and", "value", ".", "The", "function", "f", "is", "expected", "to", "decode", "two", "values", "from", "the", "map", "the", "first", "one", "being", "the", "key", "and", "the", "second", "the", "associated", "value", ".", "The", "first", "decoder", "must", "be", "used", "to", "decode", "the", "key", "the", "second", "one", "for", "the", "value", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/decode.go#L1197-L1212", "partition": "test"} +{"repo": "segmentio/objconv", "path": "decode.go", "func_name": "NewStreamDecoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStreamDecoder returns a new stream decoder that takes input from p.\n//\n// The function panics if p is nil.", "docstring_tokens": ["NewStreamDecoder", "returns", "a", "new", "stream", "decoder", "that", "takes", "input", "from", "p", ".", "The", "function", "panics", "if", "p", "is", "nil", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/decode.go#L1282-L1287", "partition": "test"} +{"repo": "segmentio/objconv", "path": "decode.go", "func_name": "Len", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Len returns the number of values remaining to be read from the stream, which\n// may be -1 if the underlying format doesn't provide this information. If an\n// error occurred while decoding the stream the method returns zero because no\n// more values can be read.", "docstring_tokens": ["Len", "returns", "the", "number", "of", "values", "remaining", "to", "be", "read", "from", "the", "stream", "which", "may", "be", "-", "1", "if", "the", "underlying", "format", "doesn", "t", "provide", "this", "information", ".", "If", "an", "error", "occurred", "while", "decoding", "the", "stream", "the", "method", "returns", "zero", "because", "no", "more", "values", "can", "be", "read", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/decode.go#L1293-L1305", "partition": "test"} +{"repo": "segmentio/objconv", "path": "decode.go", "func_name": "Err", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Err returns the last error returned by the Decode method.\n//\n// The method returns nil if the stream reached its natural end.", "docstring_tokens": ["Err", "returns", "the", "last", "error", "returned", "by", "the", "Decode", "method", ".", "The", "method", "returns", "nil", "if", "the", "stream", "reached", "its", "natural", "end", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/decode.go#L1310-L1315", "partition": "test"} +{"repo": "segmentio/objconv", "path": "decode.go", "func_name": "Decode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Decodes the next value from the stream into v.", "docstring_tokens": ["Decodes", "the", "next", "value", "from", "the", "stream", "into", "v", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/decode.go#L1318-L1365", "partition": "test"} +{"repo": "segmentio/objconv", "path": "decode.go", "func_name": "Encoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encoder returns a new StreamEncoder which can be used to re-encode the stream\n// decoded by d into e.\n//\n// The method panics if e is nil.", "docstring_tokens": ["Encoder", "returns", "a", "new", "StreamEncoder", "which", "can", "be", "used", "to", "re", "-", "encode", "the", "stream", "decoded", "by", "d", "into", "e", ".", "The", "method", "panics", "if", "e", "is", "nil", "."], "sha": "7a1d7b8e6f3551b30751e6b2ea6bae500883870e", "url": "https://github.com/segmentio/objconv/blob/7a1d7b8e6f3551b30751e6b2ea6bae500883870e/decode.go#L1371-L1380", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read logger flags from the LOGFLAGS environment variable. Multiple flags can\n// be set at once, separated by commas.", "docstring_tokens": ["Read", "logger", "flags", "from", "the", "LOGFLAGS", "environment", "variable", ".", "Multiple", "flags", "can", "be", "set", "at", "once", "separated", "by", "commas", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L66-L75", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "LevelFromString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LevelFromString returns a level based on the input string s. If the input\n// can't be interpreted as a valid log level, the info level and false is\n// returned.", "docstring_tokens": ["LevelFromString", "returns", "a", "level", "based", "on", "the", "input", "string", "s", ".", "If", "the", "input", "can", "t", "be", "interpreted", "as", "a", "valid", "log", "level", "the", "info", "level", "and", "false", "is", "returned", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L98-L117", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "NewBackend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBackend creates a logger backend from a Writer.", "docstring_tokens": ["NewBackend", "creates", "a", "logger", "backend", "from", "a", "Writer", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L129-L135", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "callsite", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// callsite returns the file name and line number of the callsite to the\n// subsystem logger.", "docstring_tokens": ["callsite", "returns", "the", "file", "name", "and", "line", "number", "of", "the", "callsite", "to", "the", "subsystem", "logger", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L243-L259", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "print", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// print outputs a log message to the writer associated with the backend after\n// creating a prefix for the given level and tag according to the formatHeader\n// function and formatting the provided arguments using the default formatting\n// rules.", "docstring_tokens": ["print", "outputs", "a", "log", "message", "to", "the", "writer", "associated", "with", "the", "backend", "after", "creating", "a", "prefix", "for", "the", "given", "level", "and", "tag", "according", "to", "the", "formatHeader", "function", "and", "formatting", "the", "provided", "arguments", "using", "the", "default", "formatting", "rules", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L265-L286", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Logger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Logger returns a new logger for a particular subsystem that writes to the\n// Backend b. A tag describes the subsystem and is included in all log\n// messages. The logger uses the info verbosity level by default.", "docstring_tokens": ["Logger", "returns", "a", "new", "logger", "for", "a", "particular", "subsystem", "that", "writes", "to", "the", "Backend", "b", ".", "A", "tag", "describes", "the", "subsystem", "and", "is", "included", "in", "all", "log", "messages", ".", "The", "logger", "uses", "the", "info", "verbosity", "level", "by", "default", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L318-L320", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Trace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Trace formats message using the default formats for its operands, prepends\n// the prefix as necessary, and writes to log with LevelTrace.\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["Trace", "formats", "message", "using", "the", "default", "formats", "for", "its", "operands", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelTrace", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L333-L338", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Tracef", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tracef formats message according to format specifier, prepends the prefix as\n// necessary, and writes to log with LevelTrace.\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["Tracef", "formats", "message", "according", "to", "format", "specifier", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelTrace", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L344-L349", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Debug", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Debug formats message using the default formats for its operands, prepends\n// the prefix as necessary, and writes to log with LevelDebug.\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["Debug", "formats", "message", "using", "the", "default", "formats", "for", "its", "operands", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelDebug", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L355-L360", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Debugf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Debugf formats message according to format specifier, prepends the prefix as\n// necessary, and writes to log with LevelDebug.\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["Debugf", "formats", "message", "according", "to", "format", "specifier", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelDebug", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L366-L371", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Info", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Info formats message using the default formats for its operands, prepends\n// the prefix as necessary, and writes to log with LevelInfo.\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["Info", "formats", "message", "using", "the", "default", "formats", "for", "its", "operands", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelInfo", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L377-L382", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Infof", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Infof formats message according to format specifier, prepends the prefix as\n// necessary, and writes to log with LevelInfo.\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["Infof", "formats", "message", "according", "to", "format", "specifier", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelInfo", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L388-L393", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Warn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Warn formats message using the default formats for its operands, prepends\n// the prefix as necessary, and writes to log with LevelWarn.\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["Warn", "formats", "message", "using", "the", "default", "formats", "for", "its", "operands", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelWarn", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L399-L404", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Warnf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Warnf formats message according to format specifier, prepends the prefix as\n// necessary, and writes to log with LevelWarn.\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["Warnf", "formats", "message", "according", "to", "format", "specifier", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelWarn", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L410-L415", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error formats message using the default formats for its operands, prepends\n// the prefix as necessary, and writes to log with LevelError.\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["Error", "formats", "message", "using", "the", "default", "formats", "for", "its", "operands", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelError", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L421-L426", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Errorf formats message according to format specifier, prepends the prefix as\n// necessary, and writes to log with LevelError.\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["Errorf", "formats", "message", "according", "to", "format", "specifier", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelError", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L432-L437", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Critical", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Critical formats message using the default formats for its operands, prepends\n// the prefix as necessary, and writes to log with LevelCritical.\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["Critical", "formats", "message", "using", "the", "default", "formats", "for", "its", "operands", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelCritical", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L443-L448", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Criticalf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Criticalf formats message according to format specifier, prepends the prefix\n// as necessary, and writes to log with LevelCritical.\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["Criticalf", "formats", "message", "according", "to", "format", "specifier", "prepends", "the", "prefix", "as", "necessary", "and", "writes", "to", "log", "with", "LevelCritical", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L454-L459", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "Level", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Level returns the current logging level\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["Level", "returns", "the", "current", "logging", "level", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L464-L466", "partition": "test"} +{"repo": "btcsuite/btclog", "path": "log.go", "func_name": "SetLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLevel changes the logging level to the passed level.\n//\n// This is part of the Logger interface implementation.", "docstring_tokens": ["SetLevel", "changes", "the", "logging", "level", "to", "the", "passed", "level", ".", "This", "is", "part", "of", "the", "Logger", "interface", "implementation", "."], "sha": "84c8d2346e9fc8c7b947e243b9c24e6df9fd206a", "url": "https://github.com/btcsuite/btclog/blob/84c8d2346e9fc8c7b947e243b9c24e6df9fd206a/log.go#L471-L473", "partition": "test"} +{"repo": "qor/roles", "path": "permission.go", "func_name": "Concat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Concat concat two permissions into a new one", "docstring_tokens": ["Concat", "concat", "two", "permissions", "into", "a", "new", "one"], "sha": "d6375609fe3e5da46ad3a574fae244fb633e79c1", "url": "https://github.com/qor/roles/blob/d6375609fe3e5da46ad3a574fae244fb633e79c1/permission.go#L50-L74", "partition": "test"} +{"repo": "qor/roles", "path": "permission.go", "func_name": "HasPermission", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasPermission check roles has permission for mode or not", "docstring_tokens": ["HasPermission", "check", "roles", "has", "permission", "for", "mode", "or", "not"], "sha": "d6375609fe3e5da46ad3a574fae244fb633e79c1", "url": "https://github.com/qor/roles/blob/d6375609fe3e5da46ad3a574fae244fb633e79c1/permission.go#L103-L136", "partition": "test"} +{"repo": "qor/roles", "path": "permissioner.go", "func_name": "ConcatPermissioner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConcatPermissioner concat permissioner", "docstring_tokens": ["ConcatPermissioner", "concat", "permissioner"], "sha": "d6375609fe3e5da46ad3a574fae244fb633e79c1", "url": "https://github.com/qor/roles/blob/d6375609fe3e5da46ad3a574fae244fb633e79c1/permissioner.go#L9-L17", "partition": "test"} +{"repo": "qor/roles", "path": "permissioner.go", "func_name": "HasPermission", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasPermission check has permission for permissioners or not", "docstring_tokens": ["HasPermission", "check", "has", "permission", "for", "permissioners", "or", "not"], "sha": "d6375609fe3e5da46ad3a574fae244fb633e79c1", "url": "https://github.com/qor/roles/blob/d6375609fe3e5da46ad3a574fae244fb633e79c1/permissioner.go#L22-L30", "partition": "test"} +{"repo": "qor/roles", "path": "role.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register register role with conditions", "docstring_tokens": ["Register", "register", "role", "with", "conditions"], "sha": "d6375609fe3e5da46ad3a574fae244fb633e79c1", "url": "https://github.com/qor/roles/blob/d6375609fe3e5da46ad3a574fae244fb633e79c1/role.go#L27-L37", "partition": "test"} +{"repo": "qor/roles", "path": "role.go", "func_name": "NewPermission", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPermission initialize permission", "docstring_tokens": ["NewPermission", "initialize", "permission"], "sha": "d6375609fe3e5da46ad3a574fae244fb633e79c1", "url": "https://github.com/qor/roles/blob/d6375609fe3e5da46ad3a574fae244fb633e79c1/role.go#L40-L46", "partition": "test"} +{"repo": "qor/roles", "path": "role.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get role defination", "docstring_tokens": ["Get", "role", "defination"], "sha": "d6375609fe3e5da46ad3a574fae244fb633e79c1", "url": "https://github.com/qor/roles/blob/d6375609fe3e5da46ad3a574fae244fb633e79c1/role.go#L59-L62", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/object.go", "func_name": "isPtrFromHeap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isPtrFromHeap reports whether the inferior at address a contains a pointer.\n// a must be somewhere in the heap.", "docstring_tokens": ["isPtrFromHeap", "reports", "whether", "the", "inferior", "at", "address", "a", "contains", "a", "pointer", ".", "a", "must", "be", "somewhere", "in", "the", "heap", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/object.go#L133-L135", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/object.go", "func_name": "IsPtr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsPtr reports whether the inferior at address a contains a pointer.", "docstring_tokens": ["IsPtr", "reports", "whether", "the", "inferior", "at", "address", "a", "contains", "a", "pointer", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/object.go#L138-L159", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/object.go", "func_name": "FindObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindObject finds the object containing a. Returns that object and the offset within\n// that object to which a points.\n// Returns 0,0 if a doesn't point to a live heap object.", "docstring_tokens": ["FindObject", "finds", "the", "object", "containing", "a", ".", "Returns", "that", "object", "and", "the", "offset", "within", "that", "object", "to", "which", "a", "points", ".", "Returns", "0", "0", "if", "a", "doesn", "t", "point", "to", "a", "live", "heap", "object", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/object.go#L164-L179", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/object.go", "func_name": "ForEachObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForEachObject calls fn with each object in the Go heap.\n// If fn returns false, ForEachObject returns immediately.", "docstring_tokens": ["ForEachObject", "calls", "fn", "with", "each", "object", "in", "the", "Go", "heap", ".", "If", "fn", "returns", "false", "ForEachObject", "returns", "immediately", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/object.go#L192-L208", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/object.go", "func_name": "ForEachRoot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForEachRoot calls fn with each garbage collection root.\n// If fn returns false, ForEachRoot returns immediately.", "docstring_tokens": ["ForEachRoot", "calls", "fn", "with", "each", "garbage", "collection", "root", ".", "If", "fn", "returns", "false", "ForEachRoot", "returns", "immediately", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/object.go#L212-L227", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/object.go", "func_name": "Addr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Addr returns the starting address of x.", "docstring_tokens": ["Addr", "returns", "the", "starting", "address", "of", "x", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/object.go#L230-L232", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/object.go", "func_name": "Size", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Size returns the size of x in bytes.", "docstring_tokens": ["Size", "returns", "the", "size", "of", "x", "in", "bytes", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/object.go#L235-L237", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/object.go", "func_name": "Type", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Type returns the type and repeat count for the object x.\n// x contains at least repeat copies of the returned type.", "docstring_tokens": ["Type", "returns", "the", "type", "and", "repeat", "count", "for", "the", "object", "x", ".", "x", "contains", "at", "least", "repeat", "copies", "of", "the", "returned", "type", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/object.go#L241-L246", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/object.go", "func_name": "ForEachRootPtr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ForEachRootPtr behaves like ForEachPtr but it starts with a Root instead of an Object.", "docstring_tokens": ["ForEachRootPtr", "behaves", "like", "ForEachPtr", "but", "it", "starts", "with", "a", "Root", "instead", "of", "an", "Object", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/object.go#L274-L276", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/object.go", "func_name": "edges1", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// edges1 calls fn for the edges found in an object of type t living at offset off in the root r.\n// If fn returns false, return immediately with false.", "docstring_tokens": ["edges1", "calls", "fn", "for", "the", "edges", "found", "in", "an", "object", "of", "type", "t", "living", "at", "offset", "off", "in", "the", "root", "r", ".", "If", "fn", "returns", "false", "return", "immediately", "with", "false", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/object.go#L280-L325", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/object.go", "func_name": "setHeapPtr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setHeapPtr records that the memory at heap address a contains a pointer.", "docstring_tokens": ["setHeapPtr", "records", "that", "the", "memory", "at", "heap", "address", "a", "contains", "a", "pointer", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/object.go#L351-L360", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/object.go", "func_name": "findHeapInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findHeapInfo finds the heapInfo structure for a.\n// Returns nil if a is not a heap address.", "docstring_tokens": ["findHeapInfo", "finds", "the", "heapInfo", "structure", "for", "a", ".", "Returns", "nil", "if", "a", "is", "not", "a", "heap", "address", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/object.go#L370-L382", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/object.go", "func_name": "allocHeapInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Same as findHeapInfo, but allocates the heapInfo if it\n// hasn't been allocated yet.", "docstring_tokens": ["Same", "as", "findHeapInfo", "but", "allocates", "the", "heapInfo", "if", "it", "hasn", "t", "been", "allocated", "yet", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/object.go#L386-L399", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/dwarf.go", "func_name": "runtimeName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Generate the name the runtime uses for a dwarf type. The DWARF generator\n// and the runtime use slightly different names for the same underlying type.", "docstring_tokens": ["Generate", "the", "name", "the", "runtime", "uses", "for", "a", "dwarf", "type", ".", "The", "DWARF", "generator", "and", "the", "runtime", "use", "slightly", "different", "names", "for", "the", "same", "underlying", "type", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/dwarf.go#L278-L330", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/dwarf.go", "func_name": "readRuntimeConstants", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readRuntimeConstants populates the p.rtConstants map.", "docstring_tokens": ["readRuntimeConstants", "populates", "the", "p", ".", "rtConstants", "map", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/dwarf.go#L346-L394", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/module.go", "func_name": "add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// add records that PCs in the range [min,max) map to function f.", "docstring_tokens": ["add", "records", "that", "PCs", "in", "the", "range", "[", "min", "max", ")", "map", "to", "function", "f", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/module.go#L98-L100", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/module.go", "func_name": "sort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sort must be called after all the adds, but before any find.", "docstring_tokens": ["sort", "must", "be", "called", "after", "all", "the", "adds", "but", "before", "any", "find", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/module.go#L103-L107", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/module.go", "func_name": "find", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Finds a Func for the given address. Sort must have been called already.", "docstring_tokens": ["Finds", "a", "Func", "for", "the", "given", "address", ".", "Sort", "must", "have", "been", "called", "already", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/module.go#L110-L118", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/module.go", "func_name": "read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// read parses a pctab from the core file at address data.", "docstring_tokens": ["read", "parses", "a", "pctab", "from", "the", "core", "file", "at", "address", "data", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/module.go#L131-L164", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/module.go", "func_name": "readVarint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readVarint reads a varint from the core file.\n// val is the value, n is the number of bytes consumed.", "docstring_tokens": ["readVarint", "reads", "a", "varint", "from", "the", "core", "file", ".", "val", "is", "the", "value", "n", "is", "the", "number", "of", "bytes", "consumed", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/module.go#L182-L192", "partition": "test"} +{"repo": "golang/debug", "path": "cmd/viewcore/main.go", "func_name": "useLine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// useLine is like cobra.Command.UseLine but tweaked to use commandPath.", "docstring_tokens": ["useLine", "is", "like", "cobra", ".", "Command", ".", "UseLine", "but", "tweaked", "to", "use", "commandPath", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/cmd/viewcore/main.go#L180-L194", "partition": "test"} +{"repo": "golang/debug", "path": "cmd/viewcore/main.go", "func_name": "commandPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// commandPath is like cobra.Command.CommandPath but tweaked to\n// use c.Use instead of c.Name for the root command so it works\n// with viewcore's unusual command structure.", "docstring_tokens": ["commandPath", "is", "like", "cobra", ".", "Command", ".", "CommandPath", "but", "tweaked", "to", "use", "c", ".", "Use", "instead", "of", "c", ".", "Name", "for", "the", "root", "command", "so", "it", "works", "with", "viewcore", "s", "unusual", "command", "structure", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/cmd/viewcore/main.go#L199-L204", "partition": "test"} +{"repo": "golang/debug", "path": "cmd/viewcore/main.go", "func_name": "readCore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readCore reads corefile and returns core and gocore process states.", "docstring_tokens": ["readCore", "reads", "corefile", "and", "returns", "core", "and", "gocore", "process", "states", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/cmd/viewcore/main.go#L251-L275", "partition": "test"} +{"repo": "golang/debug", "path": "cmd/viewcore/main.go", "func_name": "typeName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// typeName returns a string representing the type of this object.", "docstring_tokens": ["typeName", "returns", "a", "string", "representing", "the", "type", "of", "this", "object", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/cmd/viewcore/main.go#L749-L765", "partition": "test"} +{"repo": "golang/debug", "path": "cmd/viewcore/main.go", "func_name": "fieldName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fieldName returns the name of the field at offset off in x.", "docstring_tokens": ["fieldName", "returns", "the", "name", "of", "the", "field", "at", "offset", "off", "in", "x", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/cmd/viewcore/main.go#L768-L790", "partition": "test"} +{"repo": "golang/debug", "path": "cmd/viewcore/main.go", "func_name": "typeFieldName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// typeFieldName returns the name of the field at offset off in t.", "docstring_tokens": ["typeFieldName", "returns", "the", "name", "of", "the", "field", "at", "offset", "off", "in", "t", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/cmd/viewcore/main.go#L793-L834", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/process.go", "func_name": "FindFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindFunc returns the function which contains the code at address pc, if any.", "docstring_tokens": ["FindFunc", "returns", "the", "function", "which", "contains", "the", "code", "at", "address", "pc", "if", "any", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/process.go#L99-L101", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/process.go", "func_name": "Core", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Core takes a loaded core file and extracts Go information from it.", "docstring_tokens": ["Core", "takes", "a", "loaded", "core", "file", "and", "extracts", "Go", "information", "from", "it", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/process.go#L112-L162", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "Address", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Address returns the address that a region of pointer type points to.", "docstring_tokens": ["Address", "returns", "the", "address", "that", "a", "region", "of", "pointer", "type", "points", "to", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L20-L25", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "Int", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Int returns the int value stored in r.", "docstring_tokens": ["Int", "returns", "the", "int", "value", "stored", "in", "r", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L28-L33", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "Uintptr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uintptr returns the uintptr value stored in r.", "docstring_tokens": ["Uintptr", "returns", "the", "uintptr", "value", "stored", "in", "r", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L36-L41", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "Cast", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cast the region to the given type.", "docstring_tokens": ["Cast", "the", "region", "to", "the", "given", "type", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L44-L46", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "Deref", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Deref loads from a pointer. r must contain a pointer.", "docstring_tokens": ["Deref", "loads", "from", "a", "pointer", ".", "r", "must", "contain", "a", "pointer", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L49-L58", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "Uint64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uint64 returns the uint64 value stored in r.\n// r must have type uint64.", "docstring_tokens": ["Uint64", "returns", "the", "uint64", "value", "stored", "in", "r", ".", "r", "must", "have", "type", "uint64", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L62-L67", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "Uint32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uint32 returns the uint32 value stored in r.\n// r must have type uint32.", "docstring_tokens": ["Uint32", "returns", "the", "uint32", "value", "stored", "in", "r", ".", "r", "must", "have", "type", "uint32", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L71-L76", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "Int32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Int32 returns the int32 value stored in r.\n// r must have type int32.", "docstring_tokens": ["Int32", "returns", "the", "int32", "value", "stored", "in", "r", ".", "r", "must", "have", "type", "int32", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L80-L85", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "Uint16", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uint16 returns the uint16 value stored in r.\n// r must have type uint16.", "docstring_tokens": ["Uint16", "returns", "the", "uint16", "value", "stored", "in", "r", ".", "r", "must", "have", "type", "uint16", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L89-L94", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "Uint8", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uint8 returns the uint8 value stored in r.\n// r must have type uint8.", "docstring_tokens": ["Uint8", "returns", "the", "uint8", "value", "stored", "in", "r", ".", "r", "must", "have", "type", "uint8", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L98-L103", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the value of the string stored in r.", "docstring_tokens": ["String", "returns", "the", "value", "of", "the", "string", "stored", "in", "r", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L106-L115", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "SlicePtr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SlicePtr returns the pointer inside a slice. r must contain a slice.", "docstring_tokens": ["SlicePtr", "returns", "the", "pointer", "inside", "a", "slice", ".", "r", "must", "contain", "a", "slice", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L128-L133", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "SliceLen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SliceLen returns the length of a slice. r must contain a slice.", "docstring_tokens": ["SliceLen", "returns", "the", "length", "of", "a", "slice", ".", "r", "must", "contain", "a", "slice", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L136-L141", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/region.go", "func_name": "Field", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Field returns the part of r which contains the field f.\n// r must contain a struct, and f must be one of its fields.", "docstring_tokens": ["Field", "returns", "the", "part", "of", "r", "which", "contains", "the", "field", "f", ".", "r", "must", "contain", "a", "struct", "and", "f", "must", "be", "one", "of", "its", "fields", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/region.go#L153-L159", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/read.go", "func_name": "ReadUint8", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadUint8 returns a uint8 read from address a of the inferior.", "docstring_tokens": ["ReadUint8", "returns", "a", "uint8", "read", "from", "address", "a", "of", "the", "inferior", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/read.go#L33-L39", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/read.go", "func_name": "ReadUint16", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadUint16 returns a uint16 read from address a of the inferior.", "docstring_tokens": ["ReadUint16", "returns", "a", "uint16", "read", "from", "address", "a", "of", "the", "inferior", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/read.go#L42-L57", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/read.go", "func_name": "ReadUint32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadUint32 returns a uint32 read from address a of the inferior.", "docstring_tokens": ["ReadUint32", "returns", "a", "uint32", "read", "from", "address", "a", "of", "the", "inferior", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/read.go#L60-L75", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/read.go", "func_name": "ReadUint64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadUint64 returns a uint64 read from address a of the inferior.", "docstring_tokens": ["ReadUint64", "returns", "a", "uint64", "read", "from", "address", "a", "of", "the", "inferior", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/read.go#L78-L93", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/read.go", "func_name": "ReadInt8", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadInt8 returns an int8 read from address a of the inferior.", "docstring_tokens": ["ReadInt8", "returns", "an", "int8", "read", "from", "address", "a", "of", "the", "inferior", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/read.go#L96-L98", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/read.go", "func_name": "ReadInt16", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadInt16 returns an int16 read from address a of the inferior.", "docstring_tokens": ["ReadInt16", "returns", "an", "int16", "read", "from", "address", "a", "of", "the", "inferior", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/read.go#L101-L103", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/read.go", "func_name": "ReadInt32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadInt32 returns an int32 read from address a of the inferior.", "docstring_tokens": ["ReadInt32", "returns", "an", "int32", "read", "from", "address", "a", "of", "the", "inferior", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/read.go#L106-L108", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/read.go", "func_name": "ReadInt64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadInt64 returns an int64 read from address a of the inferior.", "docstring_tokens": ["ReadInt64", "returns", "an", "int64", "read", "from", "address", "a", "of", "the", "inferior", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/read.go#L111-L113", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/read.go", "func_name": "ReadUintptr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadUintptr returns a uint of pointer size read from address a of the inferior.", "docstring_tokens": ["ReadUintptr", "returns", "a", "uint", "of", "pointer", "size", "read", "from", "address", "a", "of", "the", "inferior", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/read.go#L116-L121", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/read.go", "func_name": "ReadPtr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadPtr returns a pointer loaded from address a of the inferior.", "docstring_tokens": ["ReadPtr", "returns", "a", "pointer", "loaded", "from", "address", "a", "of", "the", "inferior", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/read.go#L132-L134", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/read.go", "func_name": "ReadCString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadCString reads a null-terminated string starting at address a.", "docstring_tokens": ["ReadCString", "reads", "a", "null", "-", "terminated", "string", "starting", "at", "address", "a", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/read.go#L137-L145", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/mapping.go", "func_name": "Source", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Source returns the backing file and offset for the mapping, or \"\", 0 if none.", "docstring_tokens": ["Source", "returns", "the", "backing", "file", "and", "offset", "for", "the", "mapping", "or", "0", "if", "none", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/mapping.go#L53-L58", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/mapping.go", "func_name": "findMapping", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findMapping is simple enough that it inlines.", "docstring_tokens": ["findMapping", "is", "simple", "enough", "that", "it", "inlines", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/mapping.go#L115-L133", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/address.go", "func_name": "Max", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Max returns the larger of a and b.", "docstring_tokens": ["Max", "returns", "the", "larger", "of", "a", "and", "b", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/address.go#L21-L26", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/address.go", "func_name": "Min", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Min returns the smaller of a and b.", "docstring_tokens": ["Min", "returns", "the", "smaller", "of", "a", "and", "b", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/address.go#L29-L34", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/address.go", "func_name": "Align", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Align rounds a up to a multiple of x.\n// x must be a power of 2.", "docstring_tokens": ["Align", "rounds", "a", "up", "to", "a", "multiple", "of", "x", ".", "x", "must", "be", "a", "power", "of", "2", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/address.go#L38-L40", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/dominator.go", "func_name": "initialize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initialize implements step 1 of LT.", "docstring_tokens": ["initialize", "implements", "step", "1", "of", "LT", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/dominator.go#L121-L176", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/dominator.go", "func_name": "calculate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// calculate runs the main part of LT.", "docstring_tokens": ["calculate", "runs", "the", "main", "part", "of", "LT", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/dominator.go#L199-L266", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/dominator.go", "func_name": "eval", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// eval is EVAL from the papers.", "docstring_tokens": ["eval", "is", "EVAL", "from", "the", "papers", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/dominator.go#L269-L275", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/dominator.go", "func_name": "compress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// compress is COMPRESS from the papers.", "docstring_tokens": ["compress", "is", "COMPRESS", "from", "the", "papers", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/dominator.go#L278-L295", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/dominator.go", "func_name": "link", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// link is LINK from the papers.", "docstring_tokens": ["link", "is", "LINK", "from", "the", "papers", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/dominator.go#L298-L300", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/dominator.go", "func_name": "reverse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// reverse computes and stores reverse edges for each vertex.", "docstring_tokens": ["reverse", "computes", "and", "stores", "reverse", "edges", "for", "each", "vertex", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/dominator.go#L303-L333", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/dominator.go", "func_name": "calcSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// calcSize calculates the total retained size for each vertex.", "docstring_tokens": ["calcSize", "calculates", "the", "total", "retained", "size", "for", "each", "vertex", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/dominator.go#L343-L384", "partition": "test"} +{"repo": "golang/debug", "path": "cmd/viewcore/html.go", "func_name": "objField", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the name of the field at offset off in x.", "docstring_tokens": ["Returns", "the", "name", "of", "the", "field", "at", "offset", "off", "in", "x", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/cmd/viewcore/html.go#L393-L404", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/process.go", "func_name": "Readable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Readable reports whether the address a is readable.", "docstring_tokens": ["Readable", "reports", "whether", "the", "address", "a", "is", "readable", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/process.go#L70-L72", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/process.go", "func_name": "ReadableN", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadableN reports whether the n bytes starting at address a are readable.", "docstring_tokens": ["ReadableN", "reports", "whether", "the", "n", "bytes", "starting", "at", "address", "a", "are", "readable", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/process.go#L75-L88", "partition": "test"} +{"repo": "golang/debug", "path": "internal/core/process.go", "func_name": "splitMappingsAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// splitMappingsAt ensures that a is not in the middle of any mapping.\n// Splits mappings as necessary.", "docstring_tokens": ["splitMappingsAt", "ensures", "that", "a", "is", "not", "in", "the", "middle", "of", "any", "mapping", ".", "Splits", "mappings", "as", "necessary", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/core/process.go#L533-L555", "partition": "test"} +{"repo": "golang/debug", "path": "internal/gocore/type.go", "func_name": "DynamicType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DynamicType returns the concrete type stored in the interface type t at address a.\n// If the interface is nil, returns nil.", "docstring_tokens": ["DynamicType", "returns", "the", "concrete", "type", "stored", "in", "the", "interface", "type", "t", "at", "address", "a", ".", "If", "the", "interface", "is", "nil", "returns", "nil", "."], "sha": "19561fee47cf8cd0400d1b094c5898002f97cf90", "url": "https://github.com/golang/debug/blob/19561fee47cf8cd0400d1b094c5898002f97cf90/internal/gocore/type.go#L92-L111", "partition": "test"} +{"repo": "concourse/baggageclaim", "path": "fs/btrfs.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// lower your expectations", "docstring_tokens": ["lower", "your", "expectations"], "sha": "6fee2c8029decd1325b5e9d6d4069ea4a7c4578d", "url": "https://github.com/concourse/baggageclaim/blob/6fee2c8029decd1325b5e9d6d4069ea4a7c4578d/fs/btrfs.go#L31-L65", "partition": "test"} +{"repo": "goware/urlx", "path": "urlx.go", "func_name": "Resolve", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Resolve resolves the URL host to its IP address.", "docstring_tokens": ["Resolve", "resolves", "the", "URL", "host", "to", "its", "IP", "address", "."], "sha": "4fc201f7f862af2abfaca0c2904be15ea0037a34", "url": "https://github.com/goware/urlx/blob/4fc201f7f862af2abfaca0c2904be15ea0037a34/urlx.go#L175-L187", "partition": "test"} +{"repo": "google/shlex", "path": "shlex.go", "func_name": "Equal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equal reports whether tokens a, and b, are equal.\n// Two tokens are equal if both their types and values are equal. A nil token can\n// never be equal to another token.", "docstring_tokens": ["Equal", "reports", "whether", "tokens", "a", "and", "b", "are", "equal", ".", "Two", "tokens", "are", "equal", "if", "both", "their", "types", "and", "values", "are", "equal", ".", "A", "nil", "token", "can", "never", "be", "equal", "to", "another", "token", "."], "sha": "c34317bd91bf98fab745d77b03933cf8769299fe", "url": "https://github.com/google/shlex/blob/c34317bd91bf98fab745d77b03933cf8769299fe/shlex.go#L67-L75", "partition": "test"} +{"repo": "google/shlex", "path": "shlex.go", "func_name": "newDefaultClassifier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newDefaultClassifier creates a new classifier for ASCII characters.", "docstring_tokens": ["newDefaultClassifier", "creates", "a", "new", "classifier", "for", "ASCII", "characters", "."], "sha": "c34317bd91bf98fab745d77b03933cf8769299fe", "url": "https://github.com/google/shlex/blob/c34317bd91bf98fab745d77b03933cf8769299fe/shlex.go#L126-L134", "partition": "test"} +{"repo": "google/shlex", "path": "shlex.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next returns the next word, or an error. If there are no more words,\n// the error will be io.EOF.", "docstring_tokens": ["Next", "returns", "the", "next", "word", "or", "an", "error", ".", "If", "there", "are", "no", "more", "words", "the", "error", "will", "be", "io", ".", "EOF", "."], "sha": "c34317bd91bf98fab745d77b03933cf8769299fe", "url": "https://github.com/google/shlex/blob/c34317bd91bf98fab745d77b03933cf8769299fe/shlex.go#L152-L167", "partition": "test"} +{"repo": "google/shlex", "path": "shlex.go", "func_name": "NewTokenizer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTokenizer creates a new tokenizer from an input stream.", "docstring_tokens": ["NewTokenizer", "creates", "a", "new", "tokenizer", "from", "an", "input", "stream", "."], "sha": "c34317bd91bf98fab745d77b03933cf8769299fe", "url": "https://github.com/google/shlex/blob/c34317bd91bf98fab745d77b03933cf8769299fe/shlex.go#L176-L182", "partition": "test"} +{"repo": "google/shlex", "path": "shlex.go", "func_name": "Split", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Split partitions a string into a slice of strings.", "docstring_tokens": ["Split", "partitions", "a", "string", "into", "a", "slice", "of", "strings", "."], "sha": "c34317bd91bf98fab745d77b03933cf8769299fe", "url": "https://github.com/google/shlex/blob/c34317bd91bf98fab745d77b03933cf8769299fe/shlex.go#L403-L416", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "Between", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Between extracts a string between left and right strings.", "docstring_tokens": ["Between", "extracts", "a", "string", "between", "left", "and", "right", "strings", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L51-L66", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "BetweenF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BetweenF is the filter form for Between.", "docstring_tokens": ["BetweenF", "is", "the", "filter", "form", "for", "Between", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L69-L73", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "Camelize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Camelize return new string which removes any underscores or dashes and convert a string into camel casing.", "docstring_tokens": ["Camelize", "return", "new", "string", "which", "removes", "any", "underscores", "or", "dashes", "and", "convert", "a", "string", "into", "camel", "casing", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L76-L82", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "Capitalize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Capitalize uppercases the first char of s and lowercases the rest.", "docstring_tokens": ["Capitalize", "uppercases", "the", "first", "char", "of", "s", "and", "lowercases", "the", "rest", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L85-L87", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "CharAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CharAt returns a string from the character at the specified position.", "docstring_tokens": ["CharAt", "returns", "a", "string", "from", "the", "character", "at", "the", "specified", "position", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L90-L97", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "CharAtF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CharAtF is the filter form of CharAt.", "docstring_tokens": ["CharAtF", "is", "the", "filter", "form", "of", "CharAt", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L100-L104", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "ChompLeft", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChompLeft removes prefix at the start of a string.", "docstring_tokens": ["ChompLeft", "removes", "prefix", "at", "the", "start", "of", "a", "string", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L107-L112", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "ChompLeftF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChompLeftF is the filter form of ChompLeft.", "docstring_tokens": ["ChompLeftF", "is", "the", "filter", "form", "of", "ChompLeft", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L115-L119", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "ChompRight", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChompRight removes suffix from end of s.", "docstring_tokens": ["ChompRight", "removes", "suffix", "from", "end", "of", "s", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L122-L127", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "ChompRightF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChompRightF is the filter form of ChompRight.", "docstring_tokens": ["ChompRightF", "is", "the", "filter", "form", "of", "ChompRight", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L130-L134", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "ClassifyF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClassifyF is the filter form of Classify.", "docstring_tokens": ["ClassifyF", "is", "the", "filter", "form", "of", "Classify", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L142-L146", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "Clean", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Clean compresses all adjacent whitespace to a single space and trims s.", "docstring_tokens": ["Clean", "compresses", "all", "adjacent", "whitespace", "to", "a", "single", "space", "and", "trims", "s", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L149-L153", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "Dasherize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dasherize converts a camel cased string into a string delimited by dashes.", "docstring_tokens": ["Dasherize", "converts", "a", "camel", "cased", "string", "into", "a", "string", "delimited", "by", "dashes", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L156-L163", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "EscapeHTML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EscapeHTML is alias for html.EscapeString.", "docstring_tokens": ["EscapeHTML", "is", "alias", "for", "html", ".", "EscapeString", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L166-L171", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "DecodeHTMLEntities", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodeHTMLEntities decodes HTML entities into their proper string representation.\n// DecodeHTMLEntities is an alias for html.UnescapeString", "docstring_tokens": ["DecodeHTMLEntities", "decodes", "HTML", "entities", "into", "their", "proper", "string", "representation", ".", "DecodeHTMLEntities", "is", "an", "alias", "for", "html", ".", "UnescapeString"], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L175-L180", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "EnsurePrefixF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnsurePrefixF is the filter form of EnsurePrefix.", "docstring_tokens": ["EnsurePrefixF", "is", "the", "filter", "form", "of", "EnsurePrefix", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L191-L195", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "EnsureSuffixF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnsureSuffixF is the filter form of EnsureSuffix.", "docstring_tokens": ["EnsureSuffixF", "is", "the", "filter", "form", "of", "EnsureSuffix", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L206-L210", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "Humanize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Humanize transforms s into a human friendly form.", "docstring_tokens": ["Humanize", "transforms", "s", "into", "a", "human", "friendly", "form", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L213-L224", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "Iif", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Iif is short for immediate if. If condition is true return truthy else falsey.", "docstring_tokens": ["Iif", "is", "short", "for", "immediate", "if", ".", "If", "condition", "is", "true", "return", "truthy", "else", "falsey", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L227-L232", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "IndexOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IndexOf finds the index of needle in s starting from start.", "docstring_tokens": ["IndexOf", "finds", "the", "index", "of", "needle", "in", "s", "starting", "from", "start", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L235-L254", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "IsLower", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsLower returns true if s comprised of all lower case characters.", "docstring_tokens": ["IsLower", "returns", "true", "if", "s", "comprised", "of", "all", "lower", "case", "characters", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L267-L269", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "IsUpper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsUpper returns true if s contains all upper case chracters.", "docstring_tokens": ["IsUpper", "returns", "true", "if", "s", "contains", "all", "upper", "case", "chracters", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L277-L279", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "Left", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Left returns the left substring of length n.", "docstring_tokens": ["Left", "returns", "the", "left", "substring", "of", "length", "n", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L290-L295", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "LeftF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LeftF is the filter form of Left.", "docstring_tokens": ["LeftF", "is", "the", "filter", "form", "of", "Left", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L298-L302", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "Letters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Letters returns an array of runes as strings so it can be indexed into.", "docstring_tokens": ["Letters", "returns", "an", "array", "of", "runes", "as", "strings", "so", "it", "can", "be", "indexed", "into", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L310-L316", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "Lines", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Lines convert windows newlines to unix newlines then convert to an Array of lines.", "docstring_tokens": ["Lines", "convert", "windows", "newlines", "to", "unix", "newlines", "then", "convert", "to", "an", "Array", "of", "lines", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L319-L322", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "Map", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Map maps an array's iitem through an iterator.", "docstring_tokens": ["Map", "maps", "an", "array", "s", "iitem", "through", "an", "iterator", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L325-L331", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsAO.go", "func_name": "Match", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Match returns true if patterns matches the string", "docstring_tokens": ["Match", "returns", "true", "if", "patterns", "matches", "the", "string"], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsAO.go#L334-L337", "partition": "test"} +{"repo": "mgutz/str", "path": "Gododir/main.go", "func_name": "tasks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Project is local project.", "docstring_tokens": ["Project", "is", "local", "project", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/Gododir/main.go#L13-L43", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "Pad", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pad pads string s on both sides with c until it has length of n.", "docstring_tokens": ["Pad", "pads", "string", "s", "on", "both", "sides", "with", "c", "until", "it", "has", "length", "of", "n", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L16-L26", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "PadF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PadF is the filter form of Pad.", "docstring_tokens": ["PadF", "is", "the", "filter", "form", "of", "Pad", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L29-L33", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "PadLeft", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PadLeft pads s on left side with c until it has length of n.", "docstring_tokens": ["PadLeft", "pads", "s", "on", "left", "side", "with", "c", "until", "it", "has", "length", "of", "n", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L36-L42", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "PadLeftF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PadLeftF is the filter form of PadLeft.", "docstring_tokens": ["PadLeftF", "is", "the", "filter", "form", "of", "PadLeft", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L45-L49", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "PadRightF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PadRightF is the filter form of Padright", "docstring_tokens": ["PadRightF", "is", "the", "filter", "form", "of", "Padright"], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L61-L65", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "Pipe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pipe pipes s through one or more string filters.", "docstring_tokens": ["Pipe", "pipes", "s", "through", "one", "or", "more", "string", "filters", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L68-L73", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "QuoteItems", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QuoteItems quotes all items in array, mostly for debugging.", "docstring_tokens": ["QuoteItems", "quotes", "all", "items", "in", "array", "mostly", "for", "debugging", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L76-L80", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "ReplaceF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReplaceF is the filter form of strings.Replace.", "docstring_tokens": ["ReplaceF", "is", "the", "filter", "form", "of", "strings", ".", "Replace", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L83-L87", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "ReplacePatternF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReplacePatternF is the filter form of ReplaceRegexp.", "docstring_tokens": ["ReplacePatternF", "is", "the", "filter", "form", "of", "ReplaceRegexp", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L97-L101", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "Reverse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reverse a string", "docstring_tokens": ["Reverse", "a", "string"], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L104-L112", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "RightF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RightF is the Filter version of Right.", "docstring_tokens": ["RightF", "is", "the", "Filter", "version", "of", "Right", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L123-L127", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "Slice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Slice slices a string. If end is negative then it is the from the end\n// of the string.", "docstring_tokens": ["Slice", "slices", "a", "string", ".", "If", "end", "is", "negative", "then", "it", "is", "the", "from", "the", "end", "of", "the", "string", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L142-L151", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "SliceF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SliceF is the filter for Slice.", "docstring_tokens": ["SliceF", "is", "the", "filter", "for", "Slice", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L154-L158", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "SliceContains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SliceContains determines whether val is an element in slice.", "docstring_tokens": ["SliceContains", "determines", "whether", "val", "is", "an", "element", "in", "slice", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L161-L172", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "SliceIndexOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SliceIndexOf gets the indx of val in slice. Returns -1 if not found.", "docstring_tokens": ["SliceIndexOf", "gets", "the", "indx", "of", "val", "in", "slice", ".", "Returns", "-", "1", "if", "not", "found", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L175-L186", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "Slugify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Slugify converts s into a dasherized string suitable for URL segment.", "docstring_tokens": ["Slugify", "converts", "s", "into", "a", "dasherized", "string", "suitable", "for", "URL", "segment", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L189-L194", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "StripPunctuation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StripPunctuation strips puncation from string.", "docstring_tokens": ["StripPunctuation", "strips", "puncation", "from", "string", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L197-L201", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "StripTags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StripTags strips all of the html tags or tags specified by the parameters", "docstring_tokens": ["StripTags", "strips", "all", "of", "the", "html", "tags", "or", "tags", "specified", "by", "the", "parameters"], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L204-L213", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "Substr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Substr returns a substring of s starting at index of length n.", "docstring_tokens": ["Substr", "returns", "a", "substring", "of", "s", "starting", "at", "index", "of", "length", "n", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L216-L229", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "SubstrF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SubstrF is the filter form of Substr.", "docstring_tokens": ["SubstrF", "is", "the", "filter", "form", "of", "Substr", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L232-L236", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "TemplateWithDelimiters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TemplateWithDelimiters is string template with user-defineable opening and closing delimiters.", "docstring_tokens": ["TemplateWithDelimiters", "is", "string", "template", "with", "user", "-", "defineable", "opening", "and", "closing", "delimiters", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L251-L272", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "ToArgv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToArgv converts string s into an argv for exec.", "docstring_tokens": ["ToArgv", "converts", "string", "s", "into", "an", "argv", "for", "exec", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L275-L381", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "ToBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToBool fuzzily converts truthy values.", "docstring_tokens": ["ToBool", "fuzzily", "converts", "truthy", "values", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L384-L387", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "ToBoolOr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToBoolOr parses s as a bool or returns defaultValue.", "docstring_tokens": ["ToBoolOr", "parses", "s", "as", "a", "bool", "or", "returns", "defaultValue", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L390-L396", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "ToIntOr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToIntOr parses s as an int or returns defaultValue.", "docstring_tokens": ["ToIntOr", "parses", "s", "as", "an", "int", "or", "returns", "defaultValue", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L399-L405", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "ToFloat32Or", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToFloat32Or parses as a float32 or returns defaultValue on error.", "docstring_tokens": ["ToFloat32Or", "parses", "as", "a", "float32", "or", "returns", "defaultValue", "on", "error", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L408-L414", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "ToFloat64Or", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToFloat64Or parses s as a float64 or returns defaultValue.", "docstring_tokens": ["ToFloat64Or", "parses", "s", "as", "a", "float64", "or", "returns", "defaultValue", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L417-L423", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "UnescapeHTML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnescapeHTML is an alias for html.UnescapeString.", "docstring_tokens": ["UnescapeHTML", "is", "an", "alias", "for", "html", ".", "UnescapeString", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L502-L507", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "WrapHTML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WrapHTML wraps s within HTML tag having attributes attrs. Note,\n// WrapHTML does not escape s value.", "docstring_tokens": ["WrapHTML", "wraps", "s", "within", "HTML", "tag", "having", "attributes", "attrs", ".", "Note", "WrapHTML", "does", "not", "escape", "s", "value", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L511-L527", "partition": "test"} +{"repo": "mgutz/str", "path": "funcsPZ.go", "func_name": "WrapHTMLF", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WrapHTMLF is the filter form of WrapHTML.", "docstring_tokens": ["WrapHTMLF", "is", "the", "filter", "form", "of", "WrapHTML", "."], "sha": "968bf66e3da857419e4f6e71b2d5c9ae95682dc4", "url": "https://github.com/mgutz/str/blob/968bf66e3da857419e4f6e71b2d5c9ae95682dc4/funcsPZ.go#L530-L534", "partition": "test"} +{"repo": "hashicorp/go-reap", "path": "reap_unix.go", "func_name": "ReapChildren", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReapChildren is a long-running routine that blocks waiting for child\n// processes to exit and reaps them, reporting reaped process IDs to the\n// optional pids channel and any errors to the optional errors channel.\n//\n// The optional reapLock will be used to prevent reaping during periods\n// when you know your application is waiting for subprocesses to return.\n// You need to use care in order to prevent the reaper from stealing your\n// return values from uses of packages like Go's exec. We use an RWMutex\n// so that we don't serialize all of the application's execution of sub\n// processes with each other, but we do serialize them with reaping. The\n// application should get a read lock when it wants to do a wait.", "docstring_tokens": ["ReapChildren", "is", "a", "long", "-", "running", "routine", "that", "blocks", "waiting", "for", "child", "processes", "to", "exit", "and", "reaps", "them", "reporting", "reaped", "process", "IDs", "to", "the", "optional", "pids", "channel", "and", "any", "errors", "to", "the", "optional", "errors", "channel", ".", "The", "optional", "reapLock", "will", "be", "used", "to", "prevent", "reaping", "during", "periods", "when", "you", "know", "your", "application", "is", "waiting", "for", "subprocesses", "to", "return", ".", "You", "need", "to", "use", "care", "in", "order", "to", "prevent", "the", "reaper", "from", "stealing", "your", "return", "values", "from", "uses", "of", "packages", "like", "Go", "s", "exec", ".", "We", "use", "an", "RWMutex", "so", "that", "we", "don", "t", "serialize", "all", "of", "the", "application", "s", "execution", "of", "sub", "processes", "with", "each", "other", "but", "we", "do", "serialize", "them", "with", "reaping", ".", "The", "application", "should", "get", "a", "read", "lock", "when", "it", "wants", "to", "do", "a", "wait", "."], "sha": "bf58d8a43e7b6bf026d99d6295c4de703b67b374", "url": "https://github.com/hashicorp/go-reap/blob/bf58d8a43e7b6bf026d99d6295c4de703b67b374/reap_unix.go#L30-L96", "partition": "test"} +{"repo": "okzk/sdnotify", "path": "notify_linux.go", "func_name": "SdNotify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SdNotify sends a specified string to the systemd notification socket.", "docstring_tokens": ["SdNotify", "sends", "a", "specified", "string", "to", "the", "systemd", "notification", "socket", "."], "sha": "d9becc38acbd785892af7637319e2c5e101057f7", "url": "https://github.com/okzk/sdnotify/blob/d9becc38acbd785892af7637319e2c5e101057f7/notify_linux.go#L9-L23", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/authenticator.go", "func_name": "NewAuthenticator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAuthenticator constructs a new Authenticator from a store and policy.", "docstring_tokens": ["NewAuthenticator", "constructs", "a", "new", "Authenticator", "from", "a", "store", "and", "policy", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/authenticator.go#L55-L68", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/authenticator.go", "func_name": "Endpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Endpoint returns a handler for the common token and authorize endpoint.", "docstring_tokens": ["Endpoint", "returns", "a", "handler", "for", "the", "common", "token", "and", "authorize", "endpoint", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/authenticator.go#L71-L129", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/helpers.go", "func_name": "Unique", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unique is a helper to get a unique list of object ids.", "docstring_tokens": ["Unique", "is", "a", "helper", "to", "get", "a", "unique", "list", "of", "object", "ids", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/helpers.go#L107-L120", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/helpers.go", "func_name": "Contains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Contains returns true if a list of object ids contains the specified id.", "docstring_tokens": ["Contains", "returns", "true", "if", "a", "list", "of", "object", "ids", "contains", "the", "specified", "id", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/helpers.go#L123-L131", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/helpers.go", "func_name": "Includes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Includes returns true if a list of object ids includes another list of object\n// ids.", "docstring_tokens": ["Includes", "returns", "true", "if", "a", "list", "of", "object", "ids", "includes", "another", "list", "of", "object", "ids", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/helpers.go#L135-L143", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/helpers.go", "func_name": "Require", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Require will check if the specified flags are set on the specified model and\n// panic if one is missing.", "docstring_tokens": ["Require", "will", "check", "if", "the", "specified", "flags", "are", "set", "on", "the", "specified", "model", "and", "panic", "if", "one", "is", "missing", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/helpers.go#L147-L152", "partition": "test"} +{"repo": "256dpi/fire", "path": "axe/job.go", "func_name": "Enqueue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enqueue will enqueue a job using the specified name and data. If a delay\n// is specified the job will not be dequeued until the specified time has passed.", "docstring_tokens": ["Enqueue", "will", "enqueue", "a", "job", "using", "the", "specified", "name", "and", "data", ".", "If", "a", "delay", "is", "specified", "the", "job", "will", "not", "be", "dequeued", "until", "the", "specified", "time", "has", "passed", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/axe/job.go#L93-L129", "partition": "test"} +{"repo": "256dpi/fire", "path": "ash/authorizer.go", "func_name": "A", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// A is a short-hand function to construct an authorizer. It will also add tracing\n// code around the execution of the authorizer.", "docstring_tokens": ["A", "is", "a", "short", "-", "hand", "function", "to", "construct", "an", "authorizer", ".", "It", "will", "also", "add", "tracing", "code", "around", "the", "execution", "of", "the", "authorizer", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/ash/authorizer.go#L7-L32", "partition": "test"} +{"repo": "256dpi/fire", "path": "ash/authorizer.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run will authorize immediately and return the provided list of enforcers.", "docstring_tokens": ["Run", "will", "authorize", "immediately", "and", "return", "the", "provided", "list", "of", "enforcers", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/ash/authorizer.go#L53-L57", "partition": "test"} +{"repo": "256dpi/fire", "path": "ash/authorizer.go", "func_name": "And", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// And will match and run both authorizers and return immediately if one does not\n// return a set of enforcers. The two successfully returned enforcer sets are\n// merged into one and returned.", "docstring_tokens": ["And", "will", "match", "and", "run", "both", "authorizers", "and", "return", "immediately", "if", "one", "does", "not", "return", "a", "set", "of", "enforcers", ".", "The", "two", "successfully", "returned", "enforcer", "sets", "are", "merged", "into", "one", "and", "returned", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/ash/authorizer.go#L62-L88", "partition": "test"} +{"repo": "256dpi/fire", "path": "ash/authorizer.go", "func_name": "Or", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Or will match and run the first authorizer and return its enforcers on success.\n// If no enforcers are returned it will match and run the second authorizer and\n// return its enforcers.", "docstring_tokens": ["Or", "will", "match", "and", "run", "the", "first", "authorizer", "and", "return", "its", "enforcers", "on", "success", ".", "If", "no", "enforcers", "are", "returned", "it", "will", "match", "and", "run", "the", "second", "authorizer", "and", "return", "its", "enforcers", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/ash/authorizer.go#L98-L132", "partition": "test"} +{"repo": "256dpi/fire", "path": "axe/queue.go", "func_name": "Enqueue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Enqueue will enqueue a job using the specified name and data. If a delay\n// is specified the job will not dequeued until the specified time has passed.", "docstring_tokens": ["Enqueue", "will", "enqueue", "a", "job", "using", "the", "specified", "name", "and", "data", ".", "If", "a", "delay", "is", "specified", "the", "job", "will", "not", "dequeued", "until", "the", "specified", "time", "has", "passed", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/axe/queue.go#L46-L58", "partition": "test"} +{"repo": "256dpi/fire", "path": "axe/queue.go", "func_name": "Callback", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Callback is a factory to create callbacks that can be used to enqueue jobs\n// during request processing.", "docstring_tokens": ["Callback", "is", "a", "factory", "to", "create", "callbacks", "that", "can", "be", "used", "to", "enqueue", "jobs", "during", "request", "processing", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/axe/queue.go#L62-L98", "partition": "test"} +{"repo": "256dpi/fire", "path": "spark/watcher.go", "func_name": "NewWatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWatcher creates and returns a new watcher.", "docstring_tokens": ["NewWatcher", "creates", "and", "returns", "a", "new", "watcher", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/spark/watcher.go#L25-L35", "partition": "test"} +{"repo": "256dpi/fire", "path": "spark/watcher.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add will add a stream to the watcher.", "docstring_tokens": ["Add", "will", "add", "a", "stream", "to", "the", "watcher", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/spark/watcher.go#L38-L87", "partition": "test"} +{"repo": "256dpi/fire", "path": "spark/watcher.go", "func_name": "Action", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Action returns an action that should be registered in the group under\n// the \"watch\" name.", "docstring_tokens": ["Action", "returns", "an", "action", "that", "should", "be", "registered", "in", "the", "group", "under", "the", "watch", "name", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/spark/watcher.go#L91-L101", "partition": "test"} +{"repo": "256dpi/fire", "path": "context.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write will return true when this operation does write data.", "docstring_tokens": ["Write", "will", "return", "true", "when", "this", "operation", "does", "write", "data", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/context.go#L63-L65", "partition": "test"} +{"repo": "256dpi/fire", "path": "context.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the name of the operation.", "docstring_tokens": ["String", "returns", "the", "name", "of", "the", "operation", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/context.go#L73-L92", "partition": "test"} +{"repo": "256dpi/fire", "path": "context.go", "func_name": "Query", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Query returns the composite query of Selector and Filter.", "docstring_tokens": ["Query", "returns", "the", "composite", "query", "of", "Selector", "and", "Filter", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/context.go#L206-L208", "partition": "test"} +{"repo": "256dpi/fire", "path": "context.go", "func_name": "Respond", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Respond will encode the provided value as JSON and write it to the client.", "docstring_tokens": ["Respond", "will", "encode", "the", "provided", "value", "as", "JSON", "and", "write", "it", "to", "the", "client", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/context.go#L253-L267", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/tools.go", "func_name": "EnsureApplication", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnsureApplication will ensure that an application with the provided name\n// exists and returns its key.", "docstring_tokens": ["EnsureApplication", "will", "ensure", "that", "an", "application", "with", "the", "provided", "name", "exists", "and", "returns", "its", "key", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/tools.go#L47-L89", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/tools.go", "func_name": "EnsureFirstUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnsureFirstUser ensures the existence of a first user if no other has been\n// created.", "docstring_tokens": ["EnsureFirstUser", "ensures", "the", "existence", "of", "a", "first", "user", "if", "no", "other", "has", "been", "created", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/tools.go#L93-L127", "partition": "test"} +{"repo": "256dpi/fire", "path": "ash/strategy.go", "func_name": "Callback", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Callback will return a callback that authorizes operations using the strategy.", "docstring_tokens": ["Callback", "will", "return", "a", "callback", "that", "authorizes", "operations", "using", "the", "strategy", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/ash/strategy.go#L49-L79", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/stream.go", "func_name": "OpenStream", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpenStream will open a stream and continuously forward events to the specified\n// receiver until the stream is closed. If a token is present it will be used to\n// resume the stream. The provided opened function is called when the stream has\n// been opened the first time. The passed manager is called with errors returned\n// by the underlying change stream. The managers result is used to determine if\n// the stream should be opened again.\n//\n// The stream automatically resumes on errors using an internally stored resume\n// token. Applications that need more control should store the token externally\n// and reopen the stream manually to resume from a specific position.", "docstring_tokens": ["OpenStream", "will", "open", "a", "stream", "and", "continuously", "forward", "events", "to", "the", "specified", "receiver", "until", "the", "stream", "is", "closed", ".", "If", "a", "token", "is", "present", "it", "will", "be", "used", "to", "resume", "the", "stream", ".", "The", "provided", "opened", "function", "is", "called", "when", "the", "stream", "has", "been", "opened", "the", "first", "time", ".", "The", "passed", "manager", "is", "called", "with", "errors", "returned", "by", "the", "underlying", "change", "stream", ".", "The", "managers", "result", "is", "used", "to", "determine", "if", "the", "stream", "should", "be", "opened", "again", ".", "The", "stream", "automatically", "resumes", "on", "errors", "using", "an", "internally", "stored", "resume", "token", ".", "Applications", "that", "need", "more", "control", "should", "store", "the", "token", "externally", "and", "reopen", "the", "stream", "manually", "to", "resume", "from", "a", "specific", "position", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/stream.go#L52-L78", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/stream.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close will close the stream.", "docstring_tokens": ["Close", "will", "close", "the", "stream", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/stream.go#L81-L93", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/models.go", "func_name": "AddTokenIndexes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddTokenIndexes will add access token indexes to the specified indexer.", "docstring_tokens": ["AddTokenIndexes", "will", "add", "access", "token", "indexes", "to", "the", "specified", "indexer", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/models.go#L47-L55", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/models.go", "func_name": "GetTokenData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTokenData implements the flame.GenericToken interface.", "docstring_tokens": ["GetTokenData", "implements", "the", "flame", ".", "GenericToken", "interface", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/models.go#L58-L60", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/models.go", "func_name": "SetTokenData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTokenData implements the flame.GenericToken interface.", "docstring_tokens": ["SetTokenData", "implements", "the", "flame", ".", "GenericToken", "interface", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/models.go#L63-L71", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/models.go", "func_name": "ValidSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidSecret implements the flame.Client interface.", "docstring_tokens": ["ValidSecret", "implements", "the", "flame", ".", "Client", "interface", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/models.go#L126-L128", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/models.go", "func_name": "HashSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HashSecret will hash Secret and set SecretHash.", "docstring_tokens": ["HashSecret", "will", "hash", "Secret", "and", "set", "SecretHash", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/models.go#L167-L186", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/models.go", "func_name": "ValidPassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidPassword implements the flame.ResourceOwner interface.", "docstring_tokens": ["ValidPassword", "implements", "the", "flame", ".", "ResourceOwner", "interface", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/models.go#L214-L216", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/models.go", "func_name": "HashPassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HashPassword will hash Password and set PasswordHash.", "docstring_tokens": ["HashPassword", "will", "hash", "Password", "and", "set", "PasswordHash", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/models.go#L250-L269", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/store.go", "func_name": "MustCreateStore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustCreateStore will dial the passed database and return a new store. It will\n// panic if the initial connection failed.", "docstring_tokens": ["MustCreateStore", "will", "dial", "the", "passed", "database", "and", "return", "a", "new", "store", ".", "It", "will", "panic", "if", "the", "initial", "connection", "failed", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/store.go#L7-L14", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/store.go", "func_name": "CreateStore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateStore will dial the passed database and return a new store. It will\n// return an error if the initial connection failed", "docstring_tokens": ["CreateStore", "will", "dial", "the", "passed", "database", "and", "return", "a", "new", "store", ".", "It", "will", "return", "an", "error", "if", "the", "initial", "connection", "failed"], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/store.go#L18-L25", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/store.go", "func_name": "C", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// C will return the collection associated to the passed model.", "docstring_tokens": ["C", "will", "return", "the", "collection", "associated", "to", "the", "passed", "model", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/store.go#L68-L70", "partition": "test"} +{"repo": "256dpi/fire", "path": "wood/asset_server.go", "func_name": "NewAssetServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAssetServer constructs an asset server handler that serves an asset\n// directory on a specified path and serves the index file for not found paths\n// which is needed to run single page applications like Ember.", "docstring_tokens": ["NewAssetServer", "constructs", "an", "asset", "server", "handler", "that", "serves", "an", "asset", "directory", "on", "a", "specified", "path", "and", "serves", "the", "index", "file", "for", "not", "found", "paths", "which", "is", "needed", "to", "run", "single", "page", "applications", "like", "Ember", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/wood/asset_server.go#L17-L41", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/policy.go", "func_name": "DefaultGrantStrategy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultGrantStrategy grants only empty scopes.", "docstring_tokens": ["DefaultGrantStrategy", "grants", "only", "empty", "scopes", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/policy.go#L84-L91", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/policy.go", "func_name": "DefaultTokenData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultTokenData adds the user's id to the token data claim.", "docstring_tokens": ["DefaultTokenData", "adds", "the", "user", "s", "id", "to", "the", "token", "data", "claim", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/policy.go#L94-L102", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/policy.go", "func_name": "GenerateToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateToken returns a new token for the provided information.", "docstring_tokens": ["GenerateToken", "returns", "a", "new", "token", "for", "the", "provided", "information", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/policy.go#L124-L146", "partition": "test"} +{"repo": "256dpi/fire", "path": "flame/policy.go", "func_name": "ParseToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseToken will parse the presented token and return its claims, if it is\n// expired and eventual errors.", "docstring_tokens": ["ParseToken", "will", "parse", "the", "presented", "token", "and", "return", "its", "claims", "if", "it", "is", "expired", "and", "eventual", "errors", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/flame/policy.go#L150-L165", "partition": "test"} +{"repo": "256dpi/fire", "path": "ash/enforcer.go", "func_name": "E", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// E is a short-hand function to create an enforcer.", "docstring_tokens": ["E", "is", "a", "short", "-", "hand", "function", "to", "create", "an", "enforcer", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/ash/enforcer.go#L10-L12", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/model.go", "func_name": "MustGet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustGet returns the value of the given field. MustGet will panic if no field\n// has been found.", "docstring_tokens": ["MustGet", "returns", "the", "value", "of", "the", "given", "field", ".", "MustGet", "will", "panic", "if", "no", "field", "has", "been", "found", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/model.go#L62-L72", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/model.go", "func_name": "MustSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustSet will set the given field to the the passed valued. MustSet will panic\n// if no field has been found.", "docstring_tokens": ["MustSet", "will", "set", "the", "given", "field", "to", "the", "the", "passed", "valued", ".", "MustSet", "will", "panic", "if", "no", "field", "has", "been", "found", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/model.go#L76-L85", "partition": "test"} +{"repo": "256dpi/fire", "path": "group.go", "func_name": "NewGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewGroup creates and returns a new group.", "docstring_tokens": ["NewGroup", "creates", "and", "returns", "a", "new", "group", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/group.go#L35-L40", "partition": "test"} +{"repo": "256dpi/fire", "path": "group.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add will add a controller to the group.", "docstring_tokens": ["Add", "will", "add", "a", "controller", "to", "the", "group", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/group.go#L43-L59", "partition": "test"} +{"repo": "256dpi/fire", "path": "group.go", "func_name": "Endpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Endpoint will return an http handler that serves requests for this group. The\n// specified prefix is used to parse the requests and generate urls for the\n// resources.", "docstring_tokens": ["Endpoint", "will", "return", "an", "http", "handler", "that", "serves", "requests", "for", "this", "group", ".", "The", "specified", "prefix", "is", "used", "to", "parse", "the", "requests", "and", "generate", "urls", "for", "the", "resources", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/group.go#L87-L192", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/indexer.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add will add an index to the internal index list. Fields that are prefixed\n// with a dash will result in an descending index. See the MongoDB documentation\n// for more details.", "docstring_tokens": ["Add", "will", "add", "an", "index", "to", "the", "internal", "index", "list", ".", "Fields", "that", "are", "prefixed", "with", "a", "dash", "will", "result", "in", "an", "descending", "index", ".", "See", "the", "MongoDB", "documentation", "for", "more", "details", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/indexer.go#L28-L42", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/indexer.go", "func_name": "AddRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddRaw will add a raw mgo.Index to the internal index list.", "docstring_tokens": ["AddRaw", "will", "add", "a", "raw", "mgo", ".", "Index", "to", "the", "internal", "index", "list", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/indexer.go#L63-L68", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/indexer.go", "func_name": "Ensure", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ensure will ensure that the required indexes exist. It may fail early if some\n// of the indexes are already existing and do not match the supplied index.", "docstring_tokens": ["Ensure", "will", "ensure", "that", "the", "required", "indexes", "exist", ".", "It", "may", "fail", "early", "if", "some", "of", "the", "indexes", "are", "already", "existing", "and", "do", "not", "match", "the", "supplied", "index", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/indexer.go#L72-L87", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/catalog.go", "func_name": "NewCatalog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCatalog will create a new catalog.", "docstring_tokens": ["NewCatalog", "will", "create", "a", "new", "catalog", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/catalog.go#L15-L25", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/catalog.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add will add the specified models to the catalog.", "docstring_tokens": ["Add", "will", "add", "the", "specified", "models", "to", "the", "catalog", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/catalog.go#L28-L41", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/catalog.go", "func_name": "All", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// All returns a list of all registered models.", "docstring_tokens": ["All", "returns", "a", "list", "of", "all", "registered", "models", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/catalog.go#L49-L59", "partition": "test"} +{"repo": "256dpi/fire", "path": "coal/catalog.go", "func_name": "Visualize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Visualize emits a string in dot format which when rendered with graphviz\n// visualizes the models and their relationships.", "docstring_tokens": ["Visualize", "emits", "a", "string", "in", "dot", "format", "which", "when", "rendered", "with", "graphviz", "visualizes", "the", "models", "and", "their", "relationships", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/coal/catalog.go#L63-L193", "partition": "test"} +{"repo": "256dpi/fire", "path": "wood/error_reporter.go", "func_name": "NewErrorReporter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewErrorReporter returns a very basic reporter that writes errors and stack\n// traces to the specified writer.", "docstring_tokens": ["NewErrorReporter", "returns", "a", "very", "basic", "reporter", "that", "writes", "errors", "and", "stack", "traces", "to", "the", "specified", "writer", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/wood/error_reporter.go#L17-L23", "partition": "test"} +{"repo": "256dpi/fire", "path": "example/models.go", "func_name": "EnsureIndexes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnsureIndexes will ensure that the required indexes exist.", "docstring_tokens": ["EnsureIndexes", "will", "ensure", "that", "the", "required", "indexes", "exist", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/example/models.go#L36-L44", "partition": "test"} +{"repo": "256dpi/fire", "path": "helpers.go", "func_name": "E", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// E is a short-hand function to construct a safe error.", "docstring_tokens": ["E", "is", "a", "short", "-", "hand", "function", "to", "construct", "a", "safe", "error", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/helpers.go#L17-L19", "partition": "test"} +{"repo": "256dpi/fire", "path": "helpers.go", "func_name": "Compose", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compose is a short-hand for chaining the specified middleware and handler\n// together.", "docstring_tokens": ["Compose", "is", "a", "short", "-", "hand", "for", "chaining", "the", "specified", "middleware", "and", "handler", "together", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/helpers.go#L41-L66", "partition": "test"} +{"repo": "256dpi/fire", "path": "helpers.go", "func_name": "Includes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Includes returns true if a list of strings includes another list of strings.", "docstring_tokens": ["Includes", "returns", "true", "if", "a", "list", "of", "strings", "includes", "another", "list", "of", "strings", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/helpers.go#L112-L120", "partition": "test"} +{"repo": "256dpi/fire", "path": "helpers.go", "func_name": "Intersect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Intersect will return the intersection of both lists.", "docstring_tokens": ["Intersect", "will", "return", "the", "intersection", "of", "both", "lists", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/helpers.go#L123-L135", "partition": "test"} +{"repo": "256dpi/fire", "path": "axe/task.go", "func_name": "E", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// E is a short-hand to construct an error.", "docstring_tokens": ["E", "is", "a", "short", "-", "hand", "to", "construct", "an", "error", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/axe/task.go#L22-L27", "partition": "test"} +{"repo": "256dpi/fire", "path": "tracer.go", "func_name": "RootTracer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RootTracer is a middleware that can be used to create root trace span for an\n// incoming request.", "docstring_tokens": ["RootTracer", "is", "a", "middleware", "that", "can", "be", "used", "to", "create", "root", "trace", "span", "for", "an", "incoming", "request", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/tracer.go#L15-L48", "partition": "test"} +{"repo": "256dpi/fire", "path": "tracer.go", "func_name": "NewTracerFromRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTracerFromRequest returns a new tracer that has a root span derived from\n// the specified request. A span previously added to the request context using\n// Context is automatically used as the parent.", "docstring_tokens": ["NewTracerFromRequest", "returns", "a", "new", "tracer", "that", "has", "a", "root", "span", "derived", "from", "the", "specified", "request", ".", "A", "span", "previously", "added", "to", "the", "request", "context", "using", "Context", "is", "automatically", "used", "as", "the", "parent", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/tracer.go#L60-L63", "partition": "test"} +{"repo": "256dpi/fire", "path": "tracer.go", "func_name": "NewTracer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTracer returns a new tracer with the specified root span.", "docstring_tokens": ["NewTracer", "returns", "a", "new", "tracer", "with", "the", "specified", "root", "span", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/tracer.go#L72-L77", "partition": "test"} +{"repo": "256dpi/fire", "path": "tracer.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Push will add a new span on to the stack. Successful spans must be finished by\n// calling Pop. If the code panics or an error is returned the last pushed span\n// will be flagged with the error and a leftover spans are popped.", "docstring_tokens": ["Push", "will", "add", "a", "new", "span", "on", "to", "the", "stack", ".", "Successful", "spans", "must", "be", "finished", "by", "calling", "Pop", ".", "If", "the", "code", "panics", "or", "an", "error", "is", "returned", "the", "last", "pushed", "span", "will", "be", "flagged", "with", "the", "error", "and", "a", "leftover", "spans", "are", "popped", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/tracer.go#L82-L96", "partition": "test"} +{"repo": "256dpi/fire", "path": "tracer.go", "func_name": "Last", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Last returns the last pushed span or the root span.", "docstring_tokens": ["Last", "returns", "the", "last", "pushed", "span", "or", "the", "root", "span", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/tracer.go#L99-L106", "partition": "test"} +{"repo": "256dpi/fire", "path": "tracer.go", "func_name": "Tag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tag adds a tag to the last pushed span.", "docstring_tokens": ["Tag", "adds", "a", "tag", "to", "the", "last", "pushed", "span", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/tracer.go#L109-L111", "partition": "test"} +{"repo": "256dpi/fire", "path": "tracer.go", "func_name": "Log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Log adds a log to the last pushed span.", "docstring_tokens": ["Log", "adds", "a", "log", "to", "the", "last", "pushed", "span", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/tracer.go#L114-L116", "partition": "test"} +{"repo": "256dpi/fire", "path": "tracer.go", "func_name": "Context", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Context returns a new context with the latest span stored as a reference for\n// handlers that will call NewTracerFromRequest or similar.", "docstring_tokens": ["Context", "returns", "a", "new", "context", "with", "the", "latest", "span", "stored", "as", "a", "reference", "for", "handlers", "that", "will", "call", "NewTracerFromRequest", "or", "similar", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/tracer.go#L120-L122", "partition": "test"} +{"repo": "256dpi/fire", "path": "tracer.go", "func_name": "Pop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pop finishes and removes the last pushed span.", "docstring_tokens": ["Pop", "finishes", "and", "removes", "the", "last", "pushed", "span", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/tracer.go#L125-L136", "partition": "test"} +{"repo": "256dpi/fire", "path": "tracer.go", "func_name": "Finish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Finish will finish all leftover spans and the root span if requested.", "docstring_tokens": ["Finish", "will", "finish", "all", "leftover", "spans", "and", "the", "root", "span", "if", "requested", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/tracer.go#L139-L147", "partition": "test"} +{"repo": "256dpi/fire", "path": "axe/pool.go", "func_name": "NewPool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPool creates and returns a new pool.", "docstring_tokens": ["NewPool", "creates", "and", "returns", "a", "new", "pool", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/axe/pool.go#L18-L24", "partition": "test"} +{"repo": "256dpi/fire", "path": "axe/pool.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add will add the specified task and its queue to the pool.", "docstring_tokens": ["Add", "will", "add", "the", "specified", "task", "and", "its", "queue", "to", "the", "pool", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/axe/pool.go#L27-L41", "partition": "test"} +{"repo": "256dpi/fire", "path": "axe/pool.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run will launch the queue watchers and task workers in the background.", "docstring_tokens": ["Run", "will", "launch", "the", "queue", "watchers", "and", "task", "workers", "in", "the", "background", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/axe/pool.go#L44-L54", "partition": "test"} +{"repo": "256dpi/fire", "path": "body_limiter.go", "func_name": "NewBodyLimiter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBodyLimiter returns a new body limiter for the specified request.", "docstring_tokens": ["NewBodyLimiter", "returns", "a", "new", "body", "limiter", "for", "the", "specified", "request", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/body_limiter.go#L17-L22", "partition": "test"} +{"repo": "256dpi/fire", "path": "body_limiter.go", "func_name": "LimitBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LimitBody will limit reading from the body of the supplied request to the\n// specified amount of bytes. Earlier calls to LimitBody will be overwritten\n// which essentially allows callers to increase the limit from a default limit.", "docstring_tokens": ["LimitBody", "will", "limit", "reading", "from", "the", "body", "of", "the", "supplied", "request", "to", "the", "specified", "amount", "of", "bytes", ".", "Earlier", "calls", "to", "LimitBody", "will", "be", "overwritten", "which", "essentially", "allows", "callers", "to", "increase", "the", "limit", "from", "a", "default", "limit", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/body_limiter.go#L27-L35", "partition": "test"} +{"repo": "256dpi/fire", "path": "callbacks.go", "func_name": "C", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// C is a short-hand function to construct a callback. It will also add tracing\n// code around the execution of the callback.", "docstring_tokens": ["C", "is", "a", "short", "-", "hand", "function", "to", "construct", "a", "callback", ".", "It", "will", "also", "add", "tracing", "code", "around", "the", "execution", "of", "the", "callback", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/callbacks.go#L17-L41", "partition": "test"} +{"repo": "256dpi/fire", "path": "callbacks.go", "func_name": "Only", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Only will match if the operation is present in the provided list.", "docstring_tokens": ["Only", "will", "match", "if", "the", "operation", "is", "present", "in", "the", "provided", "list", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/callbacks.go#L59-L70", "partition": "test"} +{"repo": "256dpi/fire", "path": "callbacks.go", "func_name": "BasicAuthorizer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BasicAuthorizer authorizes requests based on a simple credentials list.", "docstring_tokens": ["BasicAuthorizer", "authorizes", "requests", "based", "on", "a", "simple", "credentials", "list", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/callbacks.go#L106-L121", "partition": "test"} +{"repo": "256dpi/fire", "path": "callbacks.go", "func_name": "ModelValidator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ModelValidator performs a validation of the model using the Validate method.", "docstring_tokens": ["ModelValidator", "performs", "a", "validation", "of", "the", "model", "using", "the", "Validate", "method", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/callbacks.go#L133-L149", "partition": "test"} +{"repo": "256dpi/fire", "path": "callbacks.go", "func_name": "TimestampValidator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TimestampValidator will set timestamp fields on create and update operations.\n// The fields are inferred from the model using the \"fire-created-timestamp\" and\n// \"fire-updated-timestamp\" flags. Missing created timestamps are retroactively\n// set using the timestamp encoded in the model id.", "docstring_tokens": ["TimestampValidator", "will", "set", "timestamp", "fields", "on", "create", "and", "update", "operations", ".", "The", "fields", "are", "inferred", "from", "the", "model", "using", "the", "fire", "-", "created", "-", "timestamp", "and", "fire", "-", "updated", "-", "timestamp", "flags", ".", "Missing", "created", "timestamps", "are", "retroactively", "set", "using", "the", "timestamp", "encoded", "in", "the", "model", "id", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/callbacks.go#L155-L181", "partition": "test"} +{"repo": "256dpi/fire", "path": "callbacks.go", "func_name": "RelationshipValidator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RelationshipValidator makes sure all relationships of a model are correct and\n// in place. It does so by combining a DependentResourcesValidator and a\n// VerifyReferencesValidator based on the specified model and catalog.", "docstring_tokens": ["RelationshipValidator", "makes", "sure", "all", "relationships", "of", "a", "model", "are", "correct", "and", "in", "place", ".", "It", "does", "so", "by", "combining", "a", "DependentResourcesValidator", "and", "a", "VerifyReferencesValidator", "based", "on", "the", "specified", "model", "and", "catalog", "."], "sha": "fa66e74352b30b9a4c730f7b8dc773302941b0fb", "url": "https://github.com/256dpi/fire/blob/fa66e74352b30b9a4c730f7b8dc773302941b0fb/callbacks.go#L362-L435", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "inspect.go", "func_name": "Inspect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Inspect executes the inspection into all loaded objects, by checking all\n// rules and exceptions loaded.", "docstring_tokens": ["Inspect", "executes", "the", "inspection", "into", "all", "loaded", "objects", "by", "checking", "all", "rules", "and", "exceptions", "loaded", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/inspect.go#L27-L52", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "models/rule.go", "func_name": "NewRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRule creates a new rule.", "docstring_tokens": ["NewRule", "creates", "a", "new", "rule", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/models/rule.go#L37-L52", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "models/rule.go", "func_name": "AddUnmatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddUnmatch adds a refular expression into the unmatch list.", "docstring_tokens": ["AddUnmatch", "adds", "a", "refular", "expression", "into", "the", "unmatch", "list", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/models/rule.go#L65-L74", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "models/rule.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run executes the rule into a content to find all lines that matches it.", "docstring_tokens": ["Run", "executes", "the", "rule", "into", "a", "content", "to", "find", "all", "lines", "that", "matches", "it", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/models/rule.go#L77-L105", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "models/secret.go", "func_name": "NewSecret", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSecret creates a new secret.", "docstring_tokens": ["NewSecret", "creates", "a", "new", "secret", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/models/secret.go#L27-L35", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "models/object.go", "func_name": "NewObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewObject creates a new object.", "docstring_tokens": ["NewObject", "creates", "a", "new", "object", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/models/object.go#L46-L61", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "models/object.go", "func_name": "SetMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMetadata sets a metadata value for the object.", "docstring_tokens": ["SetMetadata", "sets", "a", "metadata", "value", "for", "the", "object", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/models/object.go#L64-L75", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "models/object.go", "func_name": "GetMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMetadata gets a metadata value from the object.", "docstring_tokens": ["SetMetadata", "gets", "a", "metadata", "value", "from", "the", "object", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/models/object.go#L78-L85", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "models/object.go", "func_name": "GetMetadataAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMetadataAll gets a map that contains all metadata of the object.", "docstring_tokens": ["GetMetadataAll", "gets", "a", "map", "that", "contains", "all", "metadata", "of", "the", "object", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/models/object.go#L88-L94", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "models/exception.go", "func_name": "SetRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetRule sets the regular expresion that should match the name of the rule.", "docstring_tokens": ["SetRule", "sets", "the", "regular", "expresion", "that", "should", "match", "the", "name", "of", "the", "rule", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/models/exception.go#L40-L47", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "models/exception.go", "func_name": "SetObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetObject sets the regular expresion that should match the name of the\n// object.", "docstring_tokens": ["SetObject", "sets", "the", "regular", "expresion", "that", "should", "match", "the", "name", "of", "the", "object", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/models/exception.go#L51-L58", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "models/exception.go", "func_name": "SetNline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetNline sets the number of line where secret should be found.", "docstring_tokens": ["SetNline", "sets", "the", "number", "of", "line", "where", "secret", "should", "be", "found", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/models/exception.go#L61-L64", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "models/exception.go", "func_name": "SetContent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetContent sets the regular expresion that should match the content of the\n// object.", "docstring_tokens": ["SetContent", "sets", "the", "regular", "expresion", "that", "should", "match", "the", "content", "of", "the", "object", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/models/exception.go#L68-L75", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "models/exception.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run executes the exception into a secret to determine if it's an exception\n// or not.", "docstring_tokens": ["Run", "executes", "the", "exception", "into", "a", "secret", "to", "determine", "if", "it", "s", "an", "exception", "or", "not", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/models/exception.go#L79-L99", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "seekret.go", "func_name": "AddRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddRule adds a new rule into the context.", "docstring_tokens": ["AddRule", "adds", "a", "new", "rule", "into", "the", "context", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/seekret.go#L41-L46", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "seekret.go", "func_name": "LoadRulesFromFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadRulesFromFile loads rules from a YAML file.", "docstring_tokens": ["LoadRulesFromFile", "loads", "rules", "from", "a", "YAML", "file", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/seekret.go#L55-L92", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "seekret.go", "func_name": "LoadRulesFromDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadRulesFromFile loads rules from all YAML files inside a directory.", "docstring_tokens": ["LoadRulesFromFile", "loads", "rules", "from", "all", "YAML", "files", "inside", "a", "directory", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/seekret.go#L95-L119", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "seekret.go", "func_name": "DefaultRulesPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultRulesPath return the default PATH that contains rules.", "docstring_tokens": ["DefaultRulesPath", "return", "the", "default", "PATH", "that", "contains", "rules", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/seekret.go#L140-L146", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "seekret.go", "func_name": "EnableRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnableRule enables specific rule.", "docstring_tokens": ["EnableRule", "enables", "specific", "rule", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/seekret.go#L154-L156", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "seekret.go", "func_name": "DisableRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DisableRule disables specific rule.", "docstring_tokens": ["DisableRule", "disables", "specific", "rule", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/seekret.go#L159-L161", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "seekret.go", "func_name": "EnableRuleByRegexp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnableRule enables rules that match with a regular expression.", "docstring_tokens": ["EnableRule", "enables", "rules", "that", "match", "with", "a", "regular", "expression", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/seekret.go#L164-L166", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "seekret.go", "func_name": "DisableRuleByRegexp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DisableRule disables rules that match with a regular expression.", "docstring_tokens": ["DisableRule", "disables", "rules", "that", "match", "with", "a", "regular", "expression", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/seekret.go#L169-L171", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "seekret.go", "func_name": "LoadObjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadObjects loads objects form an specific source. It can load objects from\n// different source types, that are implemented following the SourceType\n// interface.", "docstring_tokens": ["LoadObjects", "loads", "objects", "form", "an", "specific", "source", ".", "It", "can", "load", "objects", "from", "different", "source", "types", "that", "are", "implemented", "following", "the", "SourceType", "interface", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/seekret.go#L208-L215", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "seekret.go", "func_name": "GroupObjectsByMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GroupObjectsByMetadata returns a map with all objects grouped by specific\n// metadata key.", "docstring_tokens": ["GroupObjectsByMetadata", "returns", "a", "map", "with", "all", "objects", "grouped", "by", "specific", "metadata", "key", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/seekret.go#L219-L221", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "seekret.go", "func_name": "GroupObjectsByPrimaryKeyHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GroupObjectsByPrimaryKeyHash returns a map with all objects grouped by\n// the primary key hash, that is calculated from all metadata keys with the\n// primary attribute.\n// All returned objects could have the same content, even if are not the same.", "docstring_tokens": ["GroupObjectsByPrimaryKeyHash", "returns", "a", "map", "with", "all", "objects", "grouped", "by", "the", "primary", "key", "hash", "that", "is", "calculated", "from", "all", "metadata", "keys", "with", "the", "primary", "attribute", ".", "All", "returned", "objects", "could", "have", "the", "same", "content", "even", "if", "are", "not", "the", "same", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/seekret.go#L227-L229", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "seekret.go", "func_name": "AddException", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddException adds a new exception into the context.", "docstring_tokens": ["AddException", "adds", "a", "new", "exception", "into", "the", "context", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/seekret.go#L239-L241", "partition": "test"} +{"repo": "apuigsech/seekret", "path": "seekret.go", "func_name": "LoadExceptionsFromFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadExceptionsFromFile loads exceptions from a YAML file.", "docstring_tokens": ["LoadExceptionsFromFile", "loads", "exceptions", "from", "a", "YAML", "file", "."], "sha": "9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49", "url": "https://github.com/apuigsech/seekret/blob/9b1f7ea1b3fd5bd29d93cf62102cb66e54428a49/seekret.go#L244-L297", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "cmd/seqinfo/seqinfo.go", "func_name": "printPlainResults", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printPlainResults prints plain-text output for results", "docstring_tokens": ["printPlainResults", "prints", "plain", "-", "text", "output", "for", "results"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/cmd/seqinfo/seqinfo.go#L155-L185", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "cmd/seqinfo/seqinfo.go", "func_name": "printJsonResults", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printJsonResults prints json-formatted output for results", "docstring_tokens": ["printJsonResults", "prints", "json", "-", "formatted", "output", "for", "results"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/cmd/seqinfo/seqinfo.go#L188-L200", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "exp/cpp/export/uuid.go", "func_name": "NewXor64Source", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewXor64Source returns a pointer to a new Xor64Source seeded with the given\n// value.", "docstring_tokens": ["NewXor64Source", "returns", "a", "pointer", "to", "a", "new", "Xor64Source", "seeded", "with", "the", "given", "value", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/exp/cpp/export/uuid.go#L56-L60", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "exp/cpp/export/uuid.go", "func_name": "xor64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// xor64 generates the next value of a pseudo-random sequence given a current\n// state x.", "docstring_tokens": ["xor64", "generates", "the", "next", "value", "of", "a", "pseudo", "-", "random", "sequence", "given", "a", "current", "state", "x", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/exp/cpp/export/uuid.go#L64-L69", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "exp/cpp/export/uuid.go", "func_name": "next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// next advances the generators internal state to the next value and returns\n// this value as an uint64.", "docstring_tokens": ["next", "advances", "the", "generators", "internal", "state", "to", "the", "next", "value", "and", "returns", "this", "value", "as", "an", "uint64", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/exp/cpp/export/uuid.go#L73-L77", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "exp/cpp/export/uuid.go", "func_name": "Seed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seed uses the given value to initialize the generator. If this value is 0, a\n// pre-defined seed is used instead, since the xorshift algorithm requires at\n// least one bit of the internal state to be set.", "docstring_tokens": ["Seed", "uses", "the", "given", "value", "to", "initialize", "the", "generator", ".", "If", "this", "value", "is", "0", "a", "pre", "-", "defined", "seed", "is", "used", "instead", "since", "the", "xorshift", "algorithm", "requires", "at", "least", "one", "bit", "of", "the", "internal", "state", "to", "be", "set", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/exp/cpp/export/uuid.go#L92-L97", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "frameset.go", "func_name": "NewFrameSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a new FrameSet from a given frame range string\n// Returns an error if the frame range could not be parsed.", "docstring_tokens": ["Create", "a", "new", "FrameSet", "from", "a", "given", "frame", "range", "string", "Returns", "an", "error", "if", "the", "frame", "range", "could", "not", "be", "parsed", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/frameset.go#L19-L36", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "frameset.go", "func_name": "handleMatch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Process a rangePattern match group", "docstring_tokens": ["Process", "a", "rangePattern", "match", "group"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/frameset.go#L39-L127", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "frameset.go", "func_name": "Index", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Index returns the index position of the frame value\n// within the frame set.\n// If the given frame does not exist, then return -1", "docstring_tokens": ["Index", "returns", "the", "index", "position", "of", "the", "frame", "value", "within", "the", "frame", "set", ".", "If", "the", "given", "frame", "does", "not", "exist", "then", "return", "-", "1"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/frameset.go#L144-L146", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "frameset.go", "func_name": "Frame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Frame returns the frame number value for a given index into\n// the frame set.\n// If the index is outside the bounds of the frame set range,\n// then an error is returned.", "docstring_tokens": ["Frame", "returns", "the", "frame", "number", "value", "for", "a", "given", "index", "into", "the", "frame", "set", ".", "If", "the", "index", "is", "outside", "the", "bounds", "of", "the", "frame", "set", "range", "then", "an", "error", "is", "returned", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/frameset.go#L152-L154", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "frameset.go", "func_name": "HasFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasFrame returns true if the frameset contains the given\n// frame value.", "docstring_tokens": ["HasFrame", "returns", "true", "if", "the", "frameset", "contains", "the", "given", "frame", "value", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/frameset.go#L175-L177", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "frameset.go", "func_name": "FrameRangePadded", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FrameRangePadded returns the range string that was used\n// to initialize the FrameSet, with each number padded out\n// with zeros to a given width", "docstring_tokens": ["FrameRangePadded", "returns", "the", "range", "string", "that", "was", "used", "to", "initialize", "the", "FrameSet", "with", "each", "number", "padded", "out", "with", "zeros", "to", "a", "given", "width"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/frameset.go#L198-L200", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "frameset.go", "func_name": "Normalize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Normalize returns a new sorted and compacted FrameSet", "docstring_tokens": ["Normalize", "returns", "a", "new", "sorted", "and", "compacted", "FrameSet"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/frameset.go#L222-L225", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "fileseq.go", "func_name": "FramesToFrameRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FramesToFrameRange takes a slice of frame numbers and\n// compresses them into a frame range string.\n//\n// If sorted == true, pre-sort the frames instead of respecting\n// their current order in the range.\n//\n// If zfill > 1, then pad out each number with \"0\" to the given\n// total width.", "docstring_tokens": ["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", "current", "order", "in", "the", "range", ".", "If", "zfill", ">", "1", "then", "pad", "out", "each", "number", "with", "0", "to", "the", "given", "total", "width", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/fileseq.go#L89-L171", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "fileseq.go", "func_name": "frameRangeMatches", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// frameRangeMatches breaks down the string frame range\n// into groups of range matches, for further processing.", "docstring_tokens": ["frameRangeMatches", "breaks", "down", "the", "string", "frame", "range", "into", "groups", "of", "range", "matches", "for", "further", "processing", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/fileseq.go#L175-L215", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "fileseq.go", "func_name": "toRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Expands a start, end, and stepping value\n// into the full range of int values.", "docstring_tokens": ["Expands", "a", "start", "end", "and", "stepping", "value", "into", "the", "full", "range", "of", "int", "values", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/fileseq.go#L219-L236", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "cmd/seqls/manager.go", "func_name": "NewWorkManager", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create a new workManager, with input and output channels,\n// with a given list of options", "docstring_tokens": ["Create", "a", "new", "workManager", "with", "input", "and", "output", "channels", "with", "a", "given", "list", "of", "options"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/cmd/seqls/manager.go#L34-L50", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "cmd/seqls/manager.go", "func_name": "processSources", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// processSources pulls from input channels, and processes\n// them into the output channel until there is no more work", "docstring_tokens": ["processSources", "pulls", "from", "input", "channels", "and", "processes", "them", "into", "the", "output", "channel", "until", "there", "is", "no", "more", "work"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/cmd/seqls/manager.go#L103-L163", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "cmd/seqls/manager.go", "func_name": "isInputDone", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns true if the input channels are nil", "docstring_tokens": ["Returns", "true", "if", "the", "input", "channels", "are", "nil"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/cmd/seqls/manager.go#L196-L204", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "cmd/seqls/manager.go", "func_name": "closeInputs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloseInputs closes the input channels indicating\n// that no more paths will be loaded.", "docstring_tokens": ["CloseInputs", "closes", "the", "input", "channels", "indicating", "that", "no", "more", "paths", "will", "be", "loaded", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/cmd/seqls/manager.go#L208-L216", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "cmd/seqls/manager.go", "func_name": "load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// loadStandard takes paths and loads them into the\n// dir input channel for processing", "docstring_tokens": ["loadStandard", "takes", "paths", "and", "loads", "them", "into", "the", "dir", "input", "channel", "for", "processing"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/cmd/seqls/manager.go#L228-L238", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "cmd/seqls/manager.go", "func_name": "loadRecursive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parallel walk the root paths and populate the path\n// channel for the worker routines to consume.", "docstring_tokens": ["Parallel", "walk", "the", "root", "paths", "and", "populate", "the", "path", "channel", "for", "the", "worker", "routines", "to", "consume", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/cmd/seqls/manager.go#L242-L287", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "cmd/seqls/manager.go", "func_name": "preparePaths", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Take a list of paths and reduce them to cleaned\n// and unique paths. Return two slices, separated by\n// directory paths, and sequence patterns", "docstring_tokens": ["Take", "a", "list", "of", "paths", "and", "reduce", "them", "to", "cleaned", "and", "unique", "paths", ".", "Return", "two", "slices", "separated", "by", "directory", "paths", "and", "sequence", "patterns"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/cmd/seqls/manager.go#L292-L334", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "pad.go", "func_name": "PadFrameRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PadFrameRange takes a frame range string and returns a\n// new range with each number padded out with zeros to a given width", "docstring_tokens": ["PadFrameRange", "takes", "a", "frame", "range", "string", "and", "returns", "a", "new", "range", "with", "each", "number", "padded", "out", "with", "zeros", "to", "a", "given", "width"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/pad.go#L127-L176", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "pad.go", "func_name": "zfillString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Left pads a string to a given with, using \"0\".\n// If the string begins with a negative \"-\" character, then\n// padding is inserted between the \"-\" and the remaining characters.", "docstring_tokens": ["Left", "pads", "a", "string", "to", "a", "given", "with", "using", "0", ".", "If", "the", "string", "begins", "with", "a", "negative", "-", "character", "then", "padding", "is", "inserted", "between", "the", "-", "and", "the", "remaining", "characters", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/pad.go#L181-L192", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "pad.go", "func_name": "zfillInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Left pads an int to a given with, using \"0\".\n// If the string begins with a negative \"-\" character, then\n// padding is inserted between the \"-\" and the remaining characters.", "docstring_tokens": ["Left", "pads", "an", "int", "to", "a", "given", "with", "using", "0", ".", "If", "the", "string", "begins", "with", "a", "negative", "-", "character", "then", "padding", "is", "inserted", "between", "the", "-", "and", "the", "remaining", "characters", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/pad.go#L197-L202", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "NewInclusiveRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInclusiveRange creates a new InclusiveRange instance", "docstring_tokens": ["NewInclusiveRange", "creates", "a", "new", "InclusiveRange", "instance"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L59-L75", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a formatted string representation\n// of the integer range", "docstring_tokens": ["String", "returns", "a", "formatted", "string", "representation", "of", "the", "integer", "range"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L79-L98", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "End", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// End returns the end of the range. This value may\n// be different from the end value given when the\n// range was first initialized, since it takes into\n// account the stepping value. The end value may be\n// shifted to the closest valid value within the\n// stepped range.", "docstring_tokens": ["End", "returns", "the", "end", "of", "the", "range", ".", "This", "value", "may", "be", "different", "from", "the", "end", "value", "given", "when", "the", "range", "was", "first", "initialized", "since", "it", "takes", "into", "account", "the", "stepping", "value", ".", "The", "end", "value", "may", "be", "shifted", "to", "the", "closest", "valid", "value", "within", "the", "stepped", "range", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L111-L140", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "Len", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Len returns the number of values in the range", "docstring_tokens": ["Len", "returns", "the", "number", "of", "values", "in", "the", "range"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L148-L158", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "Min", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Min returns the smallest value in the range", "docstring_tokens": ["Min", "returns", "the", "smallest", "value", "in", "the", "range"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L161-L168", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "Max", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Max returns the highest value in the range", "docstring_tokens": ["Max", "returns", "the", "highest", "value", "in", "the", "range"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L171-L178", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "Contains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Contains returns true if the given value is a valid\n// value within the value range.", "docstring_tokens": ["Contains", "returns", "true", "if", "the", "given", "value", "is", "a", "valid", "value", "within", "the", "value", "range", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L182-L189", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "closestInRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// closestInRange finds the closest valid value within the range,\n// to a given value. Values outside the range are clipped to either\n// the range min or max.", "docstring_tokens": ["closestInRange", "finds", "the", "closest", "valid", "value", "within", "the", "range", "to", "a", "given", "value", ".", "Values", "outside", "the", "range", "are", "clipped", "to", "either", "the", "range", "min", "or", "max", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L194-L219", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "Index", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Index returns the 0-based index of the first occurrence\n// given value, within the range.\n// If the value does not exist in the range, a\n// value of -1 will be returned", "docstring_tokens": ["Index", "returns", "the", "0", "-", "based", "index", "of", "the", "first", "occurrence", "given", "value", "within", "the", "range", ".", "If", "the", "value", "does", "not", "exist", "in", "the", "range", "a", "value", "of", "-", "1", "will", "be", "returned"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L250-L260", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the formatted representation of\n// the combination of all internal InclusiveRange instances", "docstring_tokens": ["String", "returns", "the", "formatted", "representation", "of", "the", "combination", "of", "all", "internal", "InclusiveRange", "instances"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L310-L319", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "Len", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Len returns the total number of values across all ranges", "docstring_tokens": ["Len", "returns", "the", "total", "number", "of", "values", "across", "all", "ranges"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L322-L328", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start returns the first value of the first range", "docstring_tokens": ["Start", "returns", "the", "first", "value", "of", "the", "first", "range"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L331-L336", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "End", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// End returns the last value of the last range", "docstring_tokens": ["End", "returns", "the", "last", "value", "of", "the", "last", "range"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L339-L344", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "Min", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Min returns the smallest value in the total range", "docstring_tokens": ["Min", "returns", "the", "smallest", "value", "in", "the", "total", "range"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L347-L356", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "Max", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Max returns the highest value in the total range", "docstring_tokens": ["Max", "returns", "the", "highest", "value", "in", "the", "total", "range"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L359-L368", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "numRanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NumRanges returns the number of discreet sets\n// of ranges that were appended.", "docstring_tokens": ["NumRanges", "returns", "the", "number", "of", "discreet", "sets", "of", "ranges", "that", "were", "appended", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L372-L377", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "rangeAt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rangeAt returns the underlying InclusiveRange instance\n// that was appended, at a given index", "docstring_tokens": ["rangeAt", "returns", "the", "underlying", "InclusiveRange", "instance", "that", "was", "appended", "at", "a", "given", "index"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L381-L386", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "Append", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Append creates and adds another range of values\n// to the total range list.", "docstring_tokens": ["Append", "creates", "and", "adds", "another", "range", "of", "values", "to", "the", "total", "range", "list", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L390-L393", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "AppendUnique", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendUnique creates and adds another range of values\n// to the total range list. Only unique values from the\n// given range are appended to the total range.", "docstring_tokens": ["AppendUnique", "creates", "and", "adds", "another", "range", "of", "values", "to", "the", "total", "range", "list", ".", "Only", "unique", "values", "from", "the", "given", "range", "are", "appended", "to", "the", "total", "range", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L398-L462", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "Contains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Contains returns true if a given value is a valid\n// value within the total range.", "docstring_tokens": ["Contains", "returns", "true", "if", "a", "given", "value", "is", "a", "valid", "value", "within", "the", "total", "range", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L466-L473", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "ranges/ranges.go", "func_name": "Index", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Index returns the 0-based index of the first occurrence\n// of the given value, within the range.\n// If the value does not exist in the range, a\n// value of -1 will be returned.", "docstring_tokens": ["Index", "returns", "the", "0", "-", "based", "index", "of", "the", "first", "occurrence", "of", "the", "given", "value", "within", "the", "range", ".", "If", "the", "value", "does", "not", "exist", "in", "the", "range", "a", "value", "of", "-", "1", "will", "be", "returned", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/ranges/ranges.go#L511-L527", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "sequence.go", "func_name": "FrameRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FrameRange returns the string frame range component,\n// parsed from the sequence. If no frame range was parsed,\n// then this method will return an empty string.", "docstring_tokens": ["FrameRange", "returns", "the", "string", "frame", "range", "component", "parsed", "from", "the", "sequence", ".", "If", "no", "frame", "range", "was", "parsed", "then", "this", "method", "will", "return", "an", "empty", "string", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/sequence.go#L296-L301", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "sequence.go", "func_name": "FrameRangePadded", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FrameRangePadded returns the string frame range component,\n// parsed from the sequence, and padded out by the pad characters.\n// If no frame range was parsed, then this method will return an empty string.", "docstring_tokens": ["FrameRangePadded", "returns", "the", "string", "frame", "range", "component", "parsed", "from", "the", "sequence", "and", "padded", "out", "by", "the", "pad", "characters", ".", "If", "no", "frame", "range", "was", "parsed", "then", "this", "method", "will", "return", "an", "empty", "string", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/sequence.go#L306-L311", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "sequence.go", "func_name": "Index", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Index returns the path to the file at the given index\n// in the sequence. If a frame range was not parsed from\n// the sequence, this will always returns the original path.\n// If the index is not valid, this will return an empty string.", "docstring_tokens": ["Index", "returns", "the", "path", "to", "the", "file", "at", "the", "given", "index", "in", "the", "sequence", ".", "If", "a", "frame", "range", "was", "not", "parsed", "from", "the", "sequence", "this", "will", "always", "returns", "the", "original", "path", ".", "If", "the", "index", "is", "not", "valid", "this", "will", "return", "an", "empty", "string", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/sequence.go#L413-L426", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "sequence.go", "func_name": "SetDirname", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set a new dirname for the sequence", "docstring_tokens": ["Set", "a", "new", "dirname", "for", "the", "sequence"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/sequence.go#L429-L434", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "sequence.go", "func_name": "SetPadding", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set a new padding characters for the sequence", "docstring_tokens": ["Set", "a", "new", "padding", "characters", "for", "the", "sequence"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/sequence.go#L442-L445", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "sequence.go", "func_name": "SetPaddingStyle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set a new padding style for mapping between characters and\n// their numeric width", "docstring_tokens": ["Set", "a", "new", "padding", "style", "for", "mapping", "between", "characters", "and", "their", "numeric", "width"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/sequence.go#L449-L452", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "sequence.go", "func_name": "SetExt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set a new ext for the sequence", "docstring_tokens": ["Set", "a", "new", "ext", "for", "the", "sequence"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/sequence.go#L455-L460", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "sequence.go", "func_name": "SetFrameRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set a new FrameSet, by way of providing a string frame range.\n// If the frame range cannot be parsed, an error will be returned.", "docstring_tokens": ["Set", "a", "new", "FrameSet", "by", "way", "of", "providing", "a", "string", "frame", "range", ".", "If", "the", "frame", "range", "cannot", "be", "parsed", "an", "error", "will", "be", "returned", "."], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/sequence.go#L469-L476", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "sequence.go", "func_name": "Len", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Len returns the number of frames in the FrameSet.\n// If a frame range was not parsed, this will always return 1", "docstring_tokens": ["Len", "returns", "the", "number", "of", "frames", "in", "the", "FrameSet", ".", "If", "a", "frame", "range", "was", "not", "parsed", "this", "will", "always", "return", "1"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/sequence.go#L480-L485", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "sequence.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the formatted sequence", "docstring_tokens": ["String", "returns", "the", "formatted", "sequence"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/sequence.go#L488-L499", "partition": "test"} +{"repo": "justinfx/gofileseq", "path": "sequence.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy returns a copy of the FileSequence", "docstring_tokens": ["Copy", "returns", "a", "copy", "of", "the", "FileSequence"], "sha": "2555f296b4493d1825f5f6fab4aa0ff51a8306cd", "url": "https://github.com/justinfx/gofileseq/blob/2555f296b4493d1825f5f6fab4aa0ff51a8306cd/sequence.go#L502-L505", "partition": "test"} +{"repo": "achiku/soapc", "path": "client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient return SOAP client", "docstring_tokens": ["NewClient", "return", "SOAP", "client"], "sha": "cfbdfe6e4caffe57a9cba89996e8b1cedb512be0", "url": "https://github.com/achiku/soapc/blob/cfbdfe6e4caffe57a9cba89996e8b1cedb512be0/client.go#L50-L56", "partition": "test"} +{"repo": "achiku/soapc", "path": "client.go", "func_name": "UnmarshalXML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalXML unmarshal SOAPHeader", "docstring_tokens": ["UnmarshalXML", "unmarshal", "SOAPHeader"], "sha": "cfbdfe6e4caffe57a9cba89996e8b1cedb512be0", "url": "https://github.com/achiku/soapc/blob/cfbdfe6e4caffe57a9cba89996e8b1cedb512be0/client.go#L72-L95", "partition": "test"} +{"repo": "achiku/soapc", "path": "client.go", "func_name": "UnmarshalXML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalXML unmarshal SOAPBody", "docstring_tokens": ["UnmarshalXML", "unmarshal", "SOAPBody"], "sha": "cfbdfe6e4caffe57a9cba89996e8b1cedb512be0", "url": "https://github.com/achiku/soapc/blob/cfbdfe6e4caffe57a9cba89996e8b1cedb512be0/client.go#L98-L140", "partition": "test"} +{"repo": "achiku/soapc", "path": "client.go", "func_name": "Call", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Call SOAP client API call", "docstring_tokens": ["Call", "SOAP", "client", "API", "call"], "sha": "cfbdfe6e4caffe57a9cba89996e8b1cedb512be0", "url": "https://github.com/achiku/soapc/blob/cfbdfe6e4caffe57a9cba89996e8b1cedb512be0/client.go#L143-L219", "partition": "test"} +{"repo": "go-openapi/loads", "path": "spec.go", "func_name": "JSONDoc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JSONDoc loads a json document from either a file or a remote url", "docstring_tokens": ["JSONDoc", "loads", "a", "json", "document", "from", "either", "a", "file", "or", "a", "remote", "url"], "sha": "74628589c3b94e3526a842d24f46589980f5ab22", "url": "https://github.com/go-openapi/loads/blob/74628589c3b94e3526a842d24f46589980f5ab22/spec.go#L30-L36", "partition": "test"} +{"repo": "go-openapi/loads", "path": "spec.go", "func_name": "AddLoader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddLoader for a document", "docstring_tokens": ["AddLoader", "for", "a", "document"], "sha": "74628589c3b94e3526a842d24f46589980f5ab22", "url": "https://github.com/go-openapi/loads/blob/74628589c3b94e3526a842d24f46589980f5ab22/spec.go#L61-L69", "partition": "test"} +{"repo": "go-openapi/loads", "path": "spec.go", "func_name": "JSONSpec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JSONSpec loads a spec from a json document", "docstring_tokens": ["JSONSpec", "loads", "a", "spec", "from", "a", "json", "document"], "sha": "74628589c3b94e3526a842d24f46589980f5ab22", "url": "https://github.com/go-openapi/loads/blob/74628589c3b94e3526a842d24f46589980f5ab22/spec.go#L78-L85", "partition": "test"} +{"repo": "go-openapi/loads", "path": "spec.go", "func_name": "Embedded", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Embedded returns a Document based on embedded specs. No analysis is required", "docstring_tokens": ["Embedded", "returns", "a", "Document", "based", "on", "embedded", "specs", ".", "No", "analysis", "is", "required"], "sha": "74628589c3b94e3526a842d24f46589980f5ab22", "url": "https://github.com/go-openapi/loads/blob/74628589c3b94e3526a842d24f46589980f5ab22/spec.go#L99-L112", "partition": "test"} +{"repo": "go-openapi/loads", "path": "spec.go", "func_name": "Spec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Spec loads a new spec document", "docstring_tokens": ["Spec", "loads", "a", "new", "spec", "document"], "sha": "74628589c3b94e3526a842d24f46589980f5ab22", "url": "https://github.com/go-openapi/loads/blob/74628589c3b94e3526a842d24f46589980f5ab22/spec.go#L115-L152", "partition": "test"} +{"repo": "go-openapi/loads", "path": "spec.go", "func_name": "Analyzed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Analyzed creates a new analyzed spec document", "docstring_tokens": ["Analyzed", "creates", "a", "new", "analyzed", "spec", "document"], "sha": "74628589c3b94e3526a842d24f46589980f5ab22", "url": "https://github.com/go-openapi/loads/blob/74628589c3b94e3526a842d24f46589980f5ab22/spec.go#L155-L197", "partition": "test"} +{"repo": "go-openapi/loads", "path": "spec.go", "func_name": "Expanded", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Expanded expands the ref fields in the spec document and returns a new spec document", "docstring_tokens": ["Expanded", "expands", "the", "ref", "fields", "in", "the", "spec", "document", "and", "returns", "a", "new", "spec", "document"], "sha": "74628589c3b94e3526a842d24f46589980f5ab22", "url": "https://github.com/go-openapi/loads/blob/74628589c3b94e3526a842d24f46589980f5ab22/spec.go#L200-L228", "partition": "test"} +{"repo": "go-openapi/loads", "path": "spec.go", "func_name": "ResetDefinitions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResetDefinitions gives a shallow copy with the models reset", "docstring_tokens": ["ResetDefinitions", "gives", "a", "shallow", "copy", "with", "the", "models", "reset"], "sha": "74628589c3b94e3526a842d24f46589980f5ab22", "url": "https://github.com/go-openapi/loads/blob/74628589c3b94e3526a842d24f46589980f5ab22/spec.go#L266-L274", "partition": "test"} +{"repo": "go-openapi/loads", "path": "spec.go", "func_name": "Pristine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pristine creates a new pristine document instance based on the input data", "docstring_tokens": ["Pristine", "creates", "a", "new", "pristine", "document", "instance", "based", "on", "the", "input", "data"], "sha": "74628589c3b94e3526a842d24f46589980f5ab22", "url": "https://github.com/go-openapi/loads/blob/74628589c3b94e3526a842d24f46589980f5ab22/spec.go#L277-L280", "partition": "test"} +{"repo": "abh/geoip", "path": "geoip.go", "func_name": "OpenDb", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Opens a GeoIP database by filename with specified GeoIPOptions flag.\n// All formats supported by libgeoip are supported though there are only\n// functions to access some of the databases in this API.\n// If you don't pass a filename, it will try opening the database from\n// a list of common paths.", "docstring_tokens": ["Opens", "a", "GeoIP", "database", "by", "filename", "with", "specified", "GeoIPOptions", "flag", ".", "All", "formats", "supported", "by", "libgeoip", "are", "supported", "though", "there", "are", "only", "functions", "to", "access", "some", "of", "the", "databases", "in", "this", "API", ".", "If", "you", "don", "t", "pass", "a", "filename", "it", "will", "try", "opening", "the", "database", "from", "a", "list", "of", "common", "paths", "."], "sha": "07cea4480daa3f28edd2856f2a0490fbe83842eb", "url": "https://github.com/abh/geoip/blob/07cea4480daa3f28edd2856f2a0490fbe83842eb/geoip.go#L58-L102", "partition": "test"} +{"repo": "abh/geoip", "path": "geoip.go", "func_name": "GetOrg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Takes an IPv4 address string and returns the organization name for that IP.\n// Requires the GeoIP organization database.", "docstring_tokens": ["Takes", "an", "IPv4", "address", "string", "and", "returns", "the", "organization", "name", "for", "that", "IP", ".", "Requires", "the", "GeoIP", "organization", "database", "."], "sha": "07cea4480daa3f28edd2856f2a0490fbe83842eb", "url": "https://github.com/abh/geoip/blob/07cea4480daa3f28edd2856f2a0490fbe83842eb/geoip.go#L144-L147", "partition": "test"} +{"repo": "abh/geoip", "path": "geoip.go", "func_name": "GetRegion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the country code and region code for an IP address. Requires\n// the GeoIP Region database.", "docstring_tokens": ["Returns", "the", "country", "code", "and", "region", "code", "for", "an", "IP", "address", ".", "Requires", "the", "GeoIP", "Region", "database", "."], "sha": "07cea4480daa3f28edd2856f2a0490fbe83842eb", "url": "https://github.com/abh/geoip/blob/07cea4480daa3f28edd2856f2a0490fbe83842eb/geoip.go#L234-L255", "partition": "test"} +{"repo": "abh/geoip", "path": "geoip.go", "func_name": "GetRegionName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the region name given a country code and region code", "docstring_tokens": ["Returns", "the", "region", "name", "given", "a", "country", "code", "and", "region", "code"], "sha": "07cea4480daa3f28edd2856f2a0490fbe83842eb", "url": "https://github.com/abh/geoip/blob/07cea4480daa3f28edd2856f2a0490fbe83842eb/geoip.go#L258-L275", "partition": "test"} +{"repo": "abh/geoip", "path": "geoip.go", "func_name": "GetCountry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Takes an IPv4 address string and returns the country code for that IP\n// and the netmask for that IP range.", "docstring_tokens": ["Takes", "an", "IPv4", "address", "string", "and", "returns", "the", "country", "code", "for", "that", "IP", "and", "the", "netmask", "for", "that", "IP", "range", "."], "sha": "07cea4480daa3f28edd2856f2a0490fbe83842eb", "url": "https://github.com/abh/geoip/blob/07cea4480daa3f28edd2856f2a0490fbe83842eb/geoip.go#L301-L319", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/filehandler.go", "func_name": "NewRotatingFileHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRotatingFileHandler creates a RotatingFileHandler", "docstring_tokens": ["NewRotatingFileHandler", "creates", "a", "RotatingFileHandler"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/filehandler.go#L56-L83", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/filehandler.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close implements Handler interface", "docstring_tokens": ["Close", "implements", "Handler", "interface"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/filehandler.go#L94-L99", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns level String", "docstring_tokens": ["String", "returns", "level", "String"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L42-L59", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a logger with specified handler and flag", "docstring_tokens": ["New", "creates", "a", "logger", "with", "specified", "handler", "and", "flag"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L76-L91", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the logger", "docstring_tokens": ["Close", "closes", "the", "logger"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L104-L108", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "SetLevelByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLevelByName sets log level by name", "docstring_tokens": ["SetLevelByName", "sets", "log", "level", "by", "name"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L116-L134", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "Output", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Output records the log with special callstack depth and log level.", "docstring_tokens": ["Output", "records", "the", "log", "with", "special", "callstack", "depth", "and", "log", "level", "."], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L137-L188", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "OutputJson", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Output json format records the log with special callstack depth and log level.", "docstring_tokens": ["Output", "json", "format", "records", "the", "log", "with", "special", "callstack", "depth", "and", "log", "level", "."], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L191-L244", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "Print", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Print records the log with trace level", "docstring_tokens": ["Print", "records", "the", "log", "with", "trace", "level"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L286-L288", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "Println", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Println records the log with trace level", "docstring_tokens": ["Println", "records", "the", "log", "with", "trace", "level"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L296-L298", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "Debug", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Debug records the log with debug level", "docstring_tokens": ["Debug", "records", "the", "log", "with", "debug", "level"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L301-L303", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "Debugln", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Debugln records the log with debug level", "docstring_tokens": ["Debugln", "records", "the", "log", "with", "debug", "level"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L311-L313", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error records the log with error level", "docstring_tokens": ["Error", "records", "the", "log", "with", "error", "level"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L316-L318", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "Errorln", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Errorln records the log with error level", "docstring_tokens": ["Errorln", "records", "the", "log", "with", "error", "level"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L326-L328", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "Info", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Info records the log with info level", "docstring_tokens": ["Info", "records", "the", "log", "with", "info", "level"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L331-L333", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "Infoln", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Infoln records the log with info level", "docstring_tokens": ["Infoln", "records", "the", "log", "with", "info", "level"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L341-L343", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "Warn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Warn records the log with warn level", "docstring_tokens": ["Warn", "records", "the", "log", "with", "warn", "level"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L346-L348", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/logger.go", "func_name": "Warnln", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Warnln records the log with warn level", "docstring_tokens": ["Warnln", "records", "the", "log", "with", "warn", "level"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/logger.go#L356-L358", "partition": "test"} +{"repo": "siddontang/go-log", "path": "log/handler.go", "func_name": "NewStreamHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStreamHandler creates a StreamHandler", "docstring_tokens": ["NewStreamHandler", "creates", "a", "StreamHandler"], "sha": "1e957dd83bed18c84716181da7b80d4af48eaefe", "url": "https://github.com/siddontang/go-log/blob/1e957dd83bed18c84716181da7b80d4af48eaefe/log/handler.go#L19-L25", "partition": "test"} +{"repo": "willf/pad", "path": "pad.go", "func_name": "Right", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Right right-pads the string with pad up to len runes", "docstring_tokens": ["Right", "right", "-", "pads", "the", "string", "with", "pad", "up", "to", "len", "runes"], "sha": "eccfe5d84172e4f9dfd83fac9ed3a5f0eafbc2b4", "url": "https://github.com/willf/pad/blob/eccfe5d84172e4f9dfd83fac9ed3a5f0eafbc2b4/pad.go#L24-L26", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ss.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a Self-Service API client.", "docstring_tokens": ["New", "returns", "a", "Self", "-", "Service", "API", "client", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ss.go#L37-L41", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ss.go", "func_name": "setupMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Initialize GenMetadata from each SS API generated metadata", "docstring_tokens": ["Initialize", "GenMetadata", "from", "each", "SS", "API", "generated", "metadata"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ss.go#L84-L114", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/api15gen/param_analyzer.go", "func_name": "recordTypes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Recursively record all type declarations", "docstring_tokens": ["Recursively", "record", "all", "type", "declarations"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/api15gen/param_analyzer.go#L222-L233", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/api15gen/param_analyzer.go", "func_name": "appendSorted", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sort action params by name", "docstring_tokens": ["Sort", "action", "params", "by", "name"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/api15gen/param_analyzer.go#L236-L240", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/api15gen/param_analyzer.go", "func_name": "parseDataType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse data type in context", "docstring_tokens": ["Parse", "data", "type", "in", "context"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/api15gen/param_analyzer.go#L243-L283", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/api15gen/param_analyzer.go", "func_name": "parseParam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Build action param struct from json data", "docstring_tokens": ["Build", "action", "param", "struct", "from", "json", "data"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/api15gen/param_analyzer.go#L295-L298", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/api15gen/param_analyzer.go", "func_name": "newParam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New parameter from raw values", "docstring_tokens": ["New", "parameter", "from", "raw", "values"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/api15gen/param_analyzer.go#L301-L351", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/helpers.go", "func_name": "toGoReturnTypeName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Produce action return type name", "docstring_tokens": ["Produce", "action", "return", "type", "name"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/helpers.go#L26-L32", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/helpers.go", "func_name": "toGoTypeName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Produce go type name from given ruby type name", "docstring_tokens": ["Produce", "go", "type", "name", "from", "given", "ruby", "type", "name"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/helpers.go#L35-L53", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/helpers.go", "func_name": "prettify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return dumpable representation of given object", "docstring_tokens": ["Return", "dumpable", "representation", "of", "given", "object"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/helpers.go#L68-L74", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/helpers.go", "func_name": "isBuiltInType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns true if given name is the name of a built-in type", "docstring_tokens": ["Returns", "true", "if", "given", "name", "is", "the", "name", "of", "a", "built", "-", "in", "type"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/helpers.go#L91-L98", "partition": "test"} +{"repo": "rightscale/rsc", "path": "metadata/action.go", "func_name": "MatchHref", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MatchHref returns true if the given href matches one of the action's href patterns exactly", "docstring_tokens": ["MatchHref", "returns", "true", "if", "the", "given", "href", "matches", "one", "of", "the", "action", "s", "href", "patterns", "exactly"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/metadata/action.go#L36-L48", "partition": "test"} +{"repo": "rightscale/rsc", "path": "metadata/action.go", "func_name": "Substitute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Substitute attemps to substitute the path pattern variables with the given values.\n// - If the substitution succeeds, it returns the resulting path and the list of variable names\n// that were used to build it.\n// - If the substitution fails, it returns an empty string and the list of variable names that are\n// missing from the list of given values.", "docstring_tokens": ["Substitute", "attemps", "to", "substitute", "the", "path", "pattern", "variables", "with", "the", "given", "values", ".", "-", "If", "the", "substitution", "succeeds", "it", "returns", "the", "resulting", "path", "and", "the", "list", "of", "variable", "names", "that", "were", "used", "to", "build", "it", ".", "-", "If", "the", "substitution", "fails", "it", "returns", "an", "empty", "string", "and", "the", "list", "of", "variable", "names", "that", "are", "missing", "from", "the", "list", "of", "given", "values", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/metadata/action.go#L133-L153", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/http.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON just inserts the contents of the file from disk inline into the json", "docstring_tokens": ["MarshalJSON", "just", "inserts", "the", "contents", "of", "the", "file", "from", "disk", "inline", "into", "the", "json"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/http.go#L26-L32", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/http.go", "func_name": "writeMultipartParams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handle payload params. Each payload param gets its own multipart\n// form section with the section name being the variable name and\n// section contents being the variable contents. Handle recursion as well.", "docstring_tokens": ["Handle", "payload", "params", ".", "Each", "payload", "param", "gets", "its", "own", "multipart", "form", "section", "with", "the", "section", "name", "being", "the", "variable", "name", "and", "section", "contents", "being", "the", "variable", "contents", ".", "Handle", "recursion", "as", "well", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/http.go#L74-L97", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/http.go", "func_name": "PerformRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PerformRequest logs the request, dumping its content if required then makes the request and logs\n// and dumps the corresponding response.", "docstring_tokens": ["PerformRequest", "logs", "the", "request", "dumping", "its", "content", "if", "required", "then", "makes", "the", "request", "and", "logs", "and", "dumps", "the", "corresponding", "response", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/http.go#L217-L230", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/http.go", "func_name": "PerformRequestWithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PerformRequestWithContext performs everything the PerformRequest does but is also context-aware.", "docstring_tokens": ["PerformRequestWithContext", "performs", "everything", "the", "PerformRequest", "does", "but", "is", "also", "context", "-", "aware", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/http.go#L233-L246", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/http.go", "func_name": "LoadResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadResponse deserializes the JSON response into a generic object.\n// If the response has a \"Location\" header then the returned object is a map with one key \"Location\"\n// containing the value of the header.", "docstring_tokens": ["LoadResponse", "deserializes", "the", "JSON", "response", "into", "a", "generic", "object", ".", "If", "the", "response", "has", "a", "Location", "header", "then", "the", "returned", "object", "is", "a", "map", "with", "one", "key", "Location", "containing", "the", "value", "of", "the", "header", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/http.go#L270-L291", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ssd/codegen_client.go", "func_name": "ScheduleLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ScheduleLocator builds a locator from the given href.", "docstring_tokens": ["ScheduleLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ssd/codegen_client.go#L88-L90", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ssd/codegen_client.go", "func_name": "TemplateLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TemplateLocator builds a locator from the given href.", "docstring_tokens": ["TemplateLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ssd/codegen_client.go#L389-L391", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/examples/rsssh/main.go", "func_name": "fetchDetails", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetch details about all servers and server arrays in an environment", "docstring_tokens": ["Fetch", "details", "about", "all", "servers", "and", "server", "arrays", "in", "an", "environment"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/examples/rsssh/main.go#L109-L125", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/examples/rsssh/main.go", "func_name": "buildAliases", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Builds the aliases string based on the SSH configuration of all servers and server arrays in all environments.", "docstring_tokens": ["Builds", "the", "aliases", "string", "based", "on", "the", "SSH", "configuration", "of", "all", "servers", "and", "server", "arrays", "in", "all", "environments", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/examples/rsssh/main.go#L139-L145", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/examples/rsssh/main.go", "func_name": "serverArray", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Makes a GET call on the given server array and returns all its current instances.", "docstring_tokens": ["Makes", "a", "GET", "call", "on", "the", "given", "server", "array", "and", "returns", "all", "its", "current", "instances", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/examples/rsssh/main.go#L148-L176", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/examples/rsssh/main.go", "func_name": "server", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Makes a GET call on the given server and returns the current instance of the server.", "docstring_tokens": ["Makes", "a", "GET", "call", "on", "the", "given", "server", "and", "returns", "the", "current", "instance", "of", "the", "server", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/examples/rsssh/main.go#L179-L191", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/main.go", "func_name": "toPackageName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Convert version number in index.json to go package name\n// \"1.6\" => \"v1_6\"", "docstring_tokens": ["Convert", "version", "number", "in", "index", ".", "json", "to", "go", "package", "name", "1", ".", "6", "=", ">", "v1_6"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/main.go#L173-L186", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/main.go", "func_name": "loadFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Helper function that reads content from given file", "docstring_tokens": ["Helper", "function", "that", "reads", "content", "from", "given", "file"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/main.go#L189-L198", "partition": "test"} +{"repo": "rightscale/rsc", "path": "main.go", "func_name": "main", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Command line client entry point.", "docstring_tokens": ["Command", "line", "client", "entry", "point", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/main.go#L23-L94", "partition": "test"} +{"repo": "rightscale/rsc", "path": "main.go", "func_name": "runCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Helper that runs command line with give command client", "docstring_tokens": ["Helper", "that", "runs", "command", "line", "with", "give", "command", "client"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/main.go#L97-L107", "partition": "test"} +{"repo": "rightscale/rsc", "path": "main.go", "func_name": "CreateJSONResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Constructs an http response from JSON input from Stdin", "docstring_tokens": ["Constructs", "an", "http", "response", "from", "JSON", "input", "from", "Stdin"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/main.go#L136-L144", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "AccountLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AccountLocator builds a locator from the given href.", "docstring_tokens": ["AccountLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L87-L89", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "AccountGroupLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AccountGroupLocator builds a locator from the given href.", "docstring_tokens": ["AccountGroupLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L161-L163", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "AlertLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AlertLocator builds a locator from the given href.", "docstring_tokens": ["AlertLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L292-L294", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "AlertSpecLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AlertSpecLocator builds a locator from the given href.", "docstring_tokens": ["AlertSpecLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L590-L592", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "AuditEntryLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AuditEntryLocator builds a locator from the given href.", "docstring_tokens": ["AuditEntryLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L857-L859", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "BackupLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BackupLocator builds a locator from the given href.", "docstring_tokens": ["BackupLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L1206-L1208", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "ChildAccountLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChildAccountLocator builds a locator from the given href.", "docstring_tokens": ["ChildAccountLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L1579-L1581", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "CloudLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloudLocator builds a locator from the given href.", "docstring_tokens": ["CloudLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L1746-L1748", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "CloudAccountLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloudAccountLocator builds a locator from the given href.", "docstring_tokens": ["CloudAccountLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L1873-L1875", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "CookbookLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CookbookLocator builds a locator from the given href.", "docstring_tokens": ["CookbookLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L2114-L2116", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "CookbookAttachmentLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CookbookAttachmentLocator builds a locator from the given href.", "docstring_tokens": ["CookbookAttachmentLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L2388-L2390", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "CredentialLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CredentialLocator builds a locator from the given href.", "docstring_tokens": ["CredentialLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L2677-L2679", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "DatacenterLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DatacenterLocator builds a locator from the given href.", "docstring_tokens": ["DatacenterLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L2921-L2923", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "DeploymentLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeploymentLocator builds a locator from the given href.", "docstring_tokens": ["DeploymentLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L3052-L3054", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "HealthCheckLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HealthCheckLocator builds a locator from the given href.", "docstring_tokens": ["HealthCheckLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L3424-L3426", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "IdentityProviderLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IdentityProviderLocator builds a locator from the given href.", "docstring_tokens": ["IdentityProviderLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L3500-L3502", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "ImageLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ImageLocator builds a locator from the given href.", "docstring_tokens": ["ImageLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L3636-L3638", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "InputLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InputLocator builds a locator from the given href.", "docstring_tokens": ["InputLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L3755-L3757", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "InstanceLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InstanceLocator builds a locator from the given href.", "docstring_tokens": ["InstanceLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L3969-L3971", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "InstanceTypeLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InstanceTypeLocator builds a locator from the given href.", "docstring_tokens": ["InstanceTypeLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L4606-L4608", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "IpAddressLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IpAddressLocator builds a locator from the given href.", "docstring_tokens": ["IpAddressLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L4747-L4749", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "IpAddressBindingLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IpAddressBindingLocator builds a locator from the given href.", "docstring_tokens": ["IpAddressBindingLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L4979-L4981", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "MonitoringMetricLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MonitoringMetricLocator builds a locator from the given href.", "docstring_tokens": ["MonitoringMetricLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L5179-L5181", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "MultiCloudImageLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MultiCloudImageLocator builds a locator from the given href.", "docstring_tokens": ["MultiCloudImageLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L5396-L5398", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "MultiCloudImageMatcherLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MultiCloudImageMatcherLocator builds a locator from the given href.", "docstring_tokens": ["MultiCloudImageMatcherLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L5712-L5714", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "MultiCloudImageSettingLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MultiCloudImageSettingLocator builds a locator from the given href.", "docstring_tokens": ["MultiCloudImageSettingLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L5925-L5927", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "NetworkLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkLocator builds a locator from the given href.", "docstring_tokens": ["NetworkLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L6157-L6159", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "NetworkGatewayLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkGatewayLocator builds a locator from the given href.", "docstring_tokens": ["NetworkGatewayLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L6390-L6392", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "NetworkOptionGroupLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkOptionGroupLocator builds a locator from the given href.", "docstring_tokens": ["NetworkOptionGroupLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L6628-L6630", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "NetworkOptionGroupAttachmentLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkOptionGroupAttachmentLocator builds a locator from the given href.", "docstring_tokens": ["NetworkOptionGroupAttachmentLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L6865-L6867", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "Oauth2Locator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Oauth2Locator builds a locator from the given href.", "docstring_tokens": ["Oauth2Locator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L7090-L7092", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "PermissionLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PermissionLocator builds a locator from the given href.", "docstring_tokens": ["PermissionLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L7232-L7234", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "PlacementGroupLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PlacementGroupLocator builds a locator from the given href.", "docstring_tokens": ["PlacementGroupLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L7441-L7443", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "PreferenceLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PreferenceLocator builds a locator from the given href.", "docstring_tokens": ["PreferenceLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L7644-L7646", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "PublicationLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublicationLocator builds a locator from the given href.", "docstring_tokens": ["PublicationLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L7838-L7840", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "PublicationLineageLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublicationLineageLocator builds a locator from the given href.", "docstring_tokens": ["PublicationLineageLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L8004-L8006", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "RecurringVolumeAttachmentLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RecurringVolumeAttachmentLocator builds a locator from the given href.", "docstring_tokens": ["RecurringVolumeAttachmentLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L8090-L8092", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "RepositoryLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RepositoryLocator builds a locator from the given href.", "docstring_tokens": ["RepositoryLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L8312-L8314", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "RepositoryAssetLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RepositoryAssetLocator builds a locator from the given href.", "docstring_tokens": ["RepositoryAssetLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L8773-L8775", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "ResourceGroupLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResourceGroupLocator builds a locator from the given href.", "docstring_tokens": ["ResourceGroupLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L8903-L8905", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "RightScriptLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RightScriptLocator builds a locator from the given href.", "docstring_tokens": ["RightScriptLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L9143-L9145", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "RightScriptAttachmentLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RightScriptAttachmentLocator builds a locator from the given href.", "docstring_tokens": ["RightScriptAttachmentLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L9494-L9496", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "RouteLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RouteLocator builds a locator from the given href.", "docstring_tokens": ["RouteLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L9742-L9744", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "RouteTableLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RouteTableLocator builds a locator from the given href.", "docstring_tokens": ["RouteTableLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L9979-L9981", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "RunnableBindingLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunnableBindingLocator builds a locator from the given href.", "docstring_tokens": ["RunnableBindingLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L10224-L10226", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "SchedulerLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SchedulerLocator builds a locator from the given href.", "docstring_tokens": ["SchedulerLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L10451-L10453", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "SecurityGroupLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SecurityGroupLocator builds a locator from the given href.", "docstring_tokens": ["SecurityGroupLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L10633-L10635", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "SecurityGroupRuleLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SecurityGroupRuleLocator builds a locator from the given href.", "docstring_tokens": ["SecurityGroupRuleLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L10853-L10855", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "ServerLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServerLocator builds a locator from the given href.", "docstring_tokens": ["ServerLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L11111-L11113", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "ServerArrayLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServerArrayLocator builds a locator from the given href.", "docstring_tokens": ["ServerArrayLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L11628-L11630", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "ServerTemplateLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServerTemplateLocator builds a locator from the given href.", "docstring_tokens": ["ServerTemplateLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L12286-L12288", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "ServerTemplateMultiCloudImageLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServerTemplateMultiCloudImageLocator builds a locator from the given href.", "docstring_tokens": ["ServerTemplateMultiCloudImageLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L12814-L12816", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "SessionLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SessionLocator builds a locator from the given href.", "docstring_tokens": ["SessionLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L13051-L13053", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "SshKeyLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SshKeyLocator builds a locator from the given href.", "docstring_tokens": ["SshKeyLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L13238-L13240", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "SubnetLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SubnetLocator builds a locator from the given href.", "docstring_tokens": ["SubnetLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L13445-L13447", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "TagLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TagLocator builds a locator from the given href.", "docstring_tokens": ["TagLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L13666-L13668", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "TaskLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TaskLocator builds a locator from the given href.", "docstring_tokens": ["TaskLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L13920-L13922", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "UserLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UserLocator builds a locator from the given href.", "docstring_tokens": ["UserLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L14007-L14009", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "UserDataLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UserDataLocator builds a locator from the given href.", "docstring_tokens": ["UserDataLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L14222-L14224", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "VolumeLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VolumeLocator builds a locator from the given href.", "docstring_tokens": ["VolumeLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L14303-L14305", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "VolumeAttachmentLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VolumeAttachmentLocator builds a locator from the given href.", "docstring_tokens": ["VolumeAttachmentLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L14547-L14549", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "VolumeSnapshotLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VolumeSnapshotLocator builds a locator from the given href.", "docstring_tokens": ["VolumeSnapshotLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L14776-L14778", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/codegen_client.go", "func_name": "VolumeTypeLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VolumeTypeLocator builds a locator from the given href.", "docstring_tokens": ["VolumeTypeLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/codegen_client.go#L15025-L15027", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/commands.go", "func_name": "RegisterCommands", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterCommands registers all the commands with the kinpin application.", "docstring_tokens": ["RegisterCommands", "registers", "all", "the", "commands", "with", "the", "kinpin", "application", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/commands.go#L18-L21", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/commands.go", "func_name": "ShowCommandHelp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShowCommandHelp displays the command help.", "docstring_tokens": ["ShowCommandHelp", "displays", "the", "command", "help", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/commands.go#L37-L39", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/commands.go", "func_name": "ShowAPIActions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShowAPIActions displays the command hrefs.", "docstring_tokens": ["ShowAPIActions", "displays", "the", "command", "hrefs", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/commands.go#L42-L44", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/commands.go", "func_name": "ShowHelp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShowHelp displays help for the given command and flags.", "docstring_tokens": ["ShowHelp", "displays", "help", "for", "the", "given", "command", "and", "flags", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/commands.go#L167-L198", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/commands.go", "func_name": "ParseCommandAndFlags", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseCommandAndFlags parses a command flag and infers the resource, action, href and params.", "docstring_tokens": ["ParseCommandAndFlags", "parses", "a", "command", "flag", "and", "infers", "the", "resource", "action", "href", "and", "params", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/commands.go#L209-L239", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/commands.go", "func_name": "validateFlagValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate flag value using validation criteria provided in metadata", "docstring_tokens": ["Validate", "flag", "value", "using", "validation", "criteria", "provided", "in", "metadata"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/commands.go#L425-L451", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/commands.go", "func_name": "buildQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reconstruct query from flatten values", "docstring_tokens": ["Reconstruct", "query", "from", "flatten", "values"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/commands.go#L454-L471", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/commands.go", "func_name": "buildPayload", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reconstruct payload map from flatten values", "docstring_tokens": ["Reconstruct", "payload", "map", "from", "flatten", "values"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/commands.go#L474-L485", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/commands.go", "func_name": "shortenPattern", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Attempt to shorten action pattern for display by looking at other action hrefs\n// and picking one that doesn't have the suffix if there is one.", "docstring_tokens": ["Attempt", "to", "shorten", "action", "pattern", "for", "display", "by", "looking", "at", "other", "action", "hrefs", "and", "picking", "one", "that", "doesn", "t", "have", "the", "suffix", "if", "there", "is", "one", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/commands.go#L572-L591", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/helpers.go", "func_name": "cleanDescription", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cleans up description, removing blank lines and extraneous info", "docstring_tokens": ["cleans", "up", "description", "removing", "blank", "lines", "and", "extraneous", "info"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/helpers.go#L64-L78", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/main.go", "func_name": "fileExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fileExists reads content from existing file and returns a byte array", "docstring_tokens": ["fileExists", "reads", "content", "from", "existing", "file", "and", "returns", "a", "byte", "array"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/main.go#L131-L134", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "AnalysisSnapshotLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AnalysisSnapshotLocator builds a locator from the given href.", "docstring_tokens": ["AnalysisSnapshotLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L221-L223", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "BudgetAlertLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BudgetAlertLocator builds a locator from the given href.", "docstring_tokens": ["BudgetAlertLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L355-L357", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "CloudBillLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloudBillLocator builds a locator from the given href.", "docstring_tokens": ["CloudBillLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L628-L630", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "CloudBillMetricLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloudBillMetricLocator builds a locator from the given href.", "docstring_tokens": ["CloudBillMetricLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L702-L704", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "CurrentUserLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CurrentUserLocator builds a locator from the given href.", "docstring_tokens": ["CurrentUserLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L778-L780", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "InstanceCombinationLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InstanceCombinationLocator builds a locator from the given href.", "docstring_tokens": ["InstanceCombinationLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L1373-L1375", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "InstanceMetricLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InstanceMetricLocator builds a locator from the given href.", "docstring_tokens": ["InstanceMetricLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L1663-L1665", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "InstanceUsagePeriodLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InstanceUsagePeriodLocator builds a locator from the given href.", "docstring_tokens": ["InstanceUsagePeriodLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L2012-L2014", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "PatternLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PatternLocator builds a locator from the given href.", "docstring_tokens": ["PatternLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L2081-L2083", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "ReservedInstanceLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReservedInstanceLocator builds a locator from the given href.", "docstring_tokens": ["ReservedInstanceLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L2400-L2402", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "ReservedInstancePurchaseLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReservedInstancePurchaseLocator builds a locator from the given href.", "docstring_tokens": ["ReservedInstancePurchaseLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L2727-L2729", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "ScenarioLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ScenarioLocator builds a locator from the given href.", "docstring_tokens": ["ScenarioLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L2978-L2980", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "ScheduledReportLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ScheduledReportLocator builds a locator from the given href.", "docstring_tokens": ["ScheduledReportLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L3285-L3287", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "TempInstancePriceLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TempInstancePriceLocator builds a locator from the given href.", "docstring_tokens": ["TempInstancePriceLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L3585-L3587", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/cac/codegen_client.go", "func_name": "UserSettingLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UserSettingLocator builds a locator from the given href.", "docstring_tokens": ["UserSettingLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/cac/codegen_client.go#L3902-L3904", "partition": "test"} +{"repo": "rightscale/rsc", "path": "recorder/main.go", "func_name": "readAllAsync", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read file asynchronously", "docstring_tokens": ["Read", "file", "asynchronously"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/recorder/main.go#L104-L117", "partition": "test"} +{"repo": "rightscale/rsc", "path": "recorder/main.go", "func_name": "extractArg", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Extract command line argument with given name and return remaining arguments", "docstring_tokens": ["Extract", "command", "line", "argument", "with", "given", "name", "and", "return", "remaining", "arguments"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/recorder/main.go#L120-L144", "partition": "test"} +{"repo": "rightscale/rsc", "path": "recorder/main.go", "func_name": "write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Helper function that appends a string to output file", "docstring_tokens": ["Helper", "function", "that", "appends", "a", "string", "to", "output", "file"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/recorder/main.go#L147-L155", "partition": "test"} +{"repo": "rightscale/rsc", "path": "policy/codegen_client.go", "func_name": "AppliedPolicyLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppliedPolicyLocator builds a locator from the given href.", "docstring_tokens": ["AppliedPolicyLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/policy/codegen_client.go#L94-L96", "partition": "test"} +{"repo": "rightscale/rsc", "path": "policy/codegen_client.go", "func_name": "ApprovalLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApprovalLocator builds a locator from the given href.", "docstring_tokens": ["ApprovalLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/policy/codegen_client.go#L399-L401", "partition": "test"} +{"repo": "rightscale/rsc", "path": "policy/codegen_client.go", "func_name": "IncidentLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IncidentLocator builds a locator from the given href.", "docstring_tokens": ["IncidentLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/policy/codegen_client.go#L610-L612", "partition": "test"} +{"repo": "rightscale/rsc", "path": "policy/codegen_client.go", "func_name": "PolicyTemplateLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PolicyTemplateLocator builds a locator from the given href.", "docstring_tokens": ["PolicyTemplateLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/policy/codegen_client.go#L844-L846", "partition": "test"} +{"repo": "rightscale/rsc", "path": "policy/codegen_client.go", "func_name": "PublishedTemplateLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublishedTemplateLocator builds a locator from the given href.", "docstring_tokens": ["PublishedTemplateLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/policy/codegen_client.go#L1129-L1131", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/codegen_client.go", "func_name": "DebugCookbookPathLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DebugCookbookPathLocator builds a locator from the given href.", "docstring_tokens": ["DebugCookbookPathLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/codegen_client.go#L71-L73", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/codegen_client.go", "func_name": "DockerControlLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DockerControlLocator builds a locator from the given href.", "docstring_tokens": ["DockerControlLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/codegen_client.go#L202-L204", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/codegen_client.go", "func_name": "EnvLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EnvLocator builds a locator from the given href.", "docstring_tokens": ["EnvLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/codegen_client.go#L306-L308", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/codegen_client.go", "func_name": "LoginControlLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoginControlLocator builds a locator from the given href.", "docstring_tokens": ["LoginControlLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/codegen_client.go#L474-L476", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/codegen_client.go", "func_name": "ProcLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ProcLocator builds a locator from the given href.", "docstring_tokens": ["ProcLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/codegen_client.go#L574-L576", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/codegen_client.go", "func_name": "Rl10Locator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Rl10Locator builds a locator from the given href.", "docstring_tokens": ["Rl10Locator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/codegen_client.go#L712-L714", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/codegen_client.go", "func_name": "TSSLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TSSLocator builds a locator from the given href.", "docstring_tokens": ["TSSLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/codegen_client.go#L877-L879", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/codegen_client.go", "func_name": "TSSControlLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TSSControlLocator builds a locator from the given href.", "docstring_tokens": ["TSSControlLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/codegen_client.go#L978-L980", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/codegen_client.go", "func_name": "TSSPluginLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TSSPluginLocator builds a locator from the given href.", "docstring_tokens": ["TSSPluginLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/codegen_client.go#L1128-L1130", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/angular.go", "func_name": "NewAngularWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAngularWriter creates a new code writer that generates angular.js types.", "docstring_tokens": ["NewAngularWriter", "creates", "a", "new", "code", "writer", "that", "generates", "angular", ".", "js", "types", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/angular.go#L17-L31", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/angular.go", "func_name": "WriteResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteResource writes the code for a resource.", "docstring_tokens": ["WriteResource", "writes", "the", "code", "for", "a", "resource", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/angular.go#L34-L36", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/angular.go", "func_name": "path", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Path for given action, for now simplify and take first path in PathPatterns.\n// In the future we may want to create one \"action\" in generated JS per path.", "docstring_tokens": ["Path", "for", "given", "action", "for", "now", "simplify", "and", "take", "first", "path", "in", "PathPatterns", ".", "In", "the", "future", "we", "may", "want", "to", "create", "one", "action", "in", "generated", "JS", "per", "path", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/angular.go#L40-L48", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/angular.go", "func_name": "mandatory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns true if parameter with given name is mandatory", "docstring_tokens": ["Returns", "true", "if", "parameter", "with", "given", "name", "is", "mandatory"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/angular.go#L51-L58", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/rsapi.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a API client that uses the given authenticator.\n// host may be blank in which case client attempts to resolve it using auth.", "docstring_tokens": ["New", "returns", "a", "API", "client", "that", "uses", "the", "given", "authenticator", ".", "host", "may", "be", "blank", "in", "which", "case", "client", "attempts", "to", "resolve", "it", "using", "auth", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/rsapi.go#L44-L60", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/rsapi.go", "func_name": "FromCommandLine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromCommandLine builds an API client from the command line.", "docstring_tokens": ["FromCommandLine", "builds", "an", "API", "client", "from", "the", "command", "line", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/rsapi.go#L107-L163", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/rsapi.go", "func_name": "CanAuthenticate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CanAuthenticate makes a test authenticated request to the RightScale API and returns an error\n// if it fails.", "docstring_tokens": ["CanAuthenticate", "makes", "a", "test", "authenticated", "request", "to", "the", "RightScale", "API", "and", "returns", "an", "error", "if", "it", "fails", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/rsapi.go#L167-L170", "partition": "test"} +{"repo": "rightscale/rsc", "path": "encrypt.go", "func_name": "Encrypt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encrypt encrypts the given text with a hard-coded secret. Not truly secure.", "docstring_tokens": ["Encrypt", "encrypts", "the", "given", "text", "with", "a", "hard", "-", "coded", "secret", ".", "Not", "truly", "secure", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/encrypt.go#L29-L45", "partition": "test"} +{"repo": "rightscale/rsc", "path": "encrypt.go", "func_name": "Decrypt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Decrypt decrypts the given encrypted string using the hard-coded secret.", "docstring_tokens": ["Decrypt", "decrypts", "the", "given", "encrypted", "string", "using", "the", "hard", "-", "coded", "secret", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/encrypt.go#L48-L66", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/definition.go", "func_name": "guessType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// guessType tries to guess the resource name based on the definition and service.\n// This info is not stored in the swagger. TBD manual overrides if needed.", "docstring_tokens": ["guessType", "tries", "to", "guess", "the", "resource", "name", "based", "on", "the", "definition", "and", "service", ".", "This", "info", "is", "not", "stored", "in", "the", "swagger", ".", "TBD", "manual", "overrides", "if", "needed", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/definition.go#L52-L102", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/definition.go", "func_name": "addType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// addType conditionally adds a new type, trying its best to avoid type\n// collisions. This is the downside of swagger 2 vs swagger 3. For swagger 2\n// if you the same type like \"User\" returned in multiple places, each have to\n// create their own definition in the swagger \"definitions\" section for goa\n// v2. So they'll be X copies of identical definition for a User struct lets\n// say. This tries to collapse those things down into one return type struct.", "docstring_tokens": ["addType", "conditionally", "adds", "a", "new", "type", "trying", "its", "best", "to", "avoid", "type", "collisions", ".", "This", "is", "the", "downside", "of", "swagger", "2", "vs", "swagger", "3", ".", "For", "swagger", "2", "if", "you", "the", "same", "type", "like", "User", "returned", "in", "multiple", "places", "each", "have", "to", "create", "their", "own", "definition", "in", "the", "swagger", "definitions", "section", "for", "goa", "v2", ".", "So", "they", "ll", "be", "X", "copies", "of", "identical", "definition", "for", "a", "User", "struct", "lets", "say", ".", "This", "tries", "to", "collapse", "those", "things", "down", "into", "one", "return", "type", "struct", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/definition.go#L207-L244", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/api.go", "func_name": "extractCmdLineParams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// extractCmdLineParams generates flags for the command line", "docstring_tokens": ["extractCmdLineParams", "generates", "flags", "for", "the", "command", "line"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/api.go#L122-L163", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/metadata.go", "func_name": "NewMetadataWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMetadataWriter creates a new writer that generates metadata data structures.", "docstring_tokens": ["NewMetadataWriter", "creates", "a", "new", "writer", "that", "generates", "metadata", "data", "structures", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/metadata.go#L18-L40", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/metadata.go", "func_name": "WriteHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteHeader writes the generic header text.", "docstring_tokens": ["WriteHeader", "writes", "the", "generic", "header", "text", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/metadata.go#L43-L45", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/metadata.go", "func_name": "WriteMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteMetadata writes the data structures that describe the API resources and actions.", "docstring_tokens": ["WriteMetadata", "writes", "the", "data", "structures", "that", "describe", "the", "API", "resources", "and", "actions", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/metadata.go#L48-L54", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/metadata.go", "func_name": "location", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Return code corresponding to param location", "docstring_tokens": ["Return", "code", "corresponding", "to", "param", "location"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/metadata.go#L57-L68", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/rl10.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a client that uses RL10 authentication.\n// accountId, host and auth arguments are not used.\n// If no HTTP client is specified then the default client is used.", "docstring_tokens": ["New", "returns", "a", "client", "that", "uses", "RL10", "authentication", ".", "accountId", "host", "and", "auth", "arguments", "are", "not", "used", ".", "If", "no", "HTTP", "client", "is", "specified", "then", "the", "default", "client", "is", "used", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/rl10.go#L16-L18", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rl10/rl10.go", "func_name": "fromAPI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap generic client into RL10 client", "docstring_tokens": ["Wrap", "generic", "client", "into", "RL10", "client"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rl10/rl10.go#L41-L44", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm16/http.go", "func_name": "BuildRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BuildRequest builds a HTTP request from a resource name and href and an action name and\n// parameters.\n// It is intended for generic clients that need to consume APIs in a generic maner.\n// The method builds an HTTP request that can be fed to PerformRequest.", "docstring_tokens": ["BuildRequest", "builds", "a", "HTTP", "request", "from", "a", "resource", "name", "and", "href", "and", "an", "action", "name", "and", "parameters", ".", "It", "is", "intended", "for", "generic", "clients", "that", "need", "to", "consume", "APIs", "in", "a", "generic", "maner", ".", "The", "method", "builds", "an", "HTTP", "request", "that", "can", "be", "fed", "to", "PerformRequest", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm16/http.go#L14-L36", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ca/ca.go", "func_name": "setupMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Initialize GenMetadata from each CA API generated metadata", "docstring_tokens": ["Initialize", "GenMetadata", "from", "each", "CA", "API", "generated", "metadata"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ca/ca.go#L60-L66", "partition": "test"} +{"repo": "rightscale/rsc", "path": "displayer.go", "func_name": "NewDisplayer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDisplayer creates a new displayer using the response body.", "docstring_tokens": ["NewDisplayer", "creates", "a", "new", "displayer", "using", "the", "response", "body", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/displayer.go#L22-L36", "partition": "test"} +{"repo": "rightscale/rsc", "path": "displayer.go", "func_name": "ApplySingleExtract", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplySingleExtract applies the given JSON selector and returns the results.\n// It's an error if the selector yields more than one value.", "docstring_tokens": ["ApplySingleExtract", "applies", "the", "given", "JSON", "selector", "and", "returns", "the", "results", ".", "It", "s", "an", "error", "if", "the", "selector", "yields", "more", "than", "one", "value", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/displayer.go#L40-L66", "partition": "test"} +{"repo": "rightscale/rsc", "path": "displayer.go", "func_name": "ApplyExtract", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyExtract applies selector to js.", "docstring_tokens": ["ApplyExtract", "applies", "selector", "to", "js", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/displayer.go#L69-L90", "partition": "test"} +{"repo": "rightscale/rsc", "path": "displayer.go", "func_name": "ApplyHeaderExtract", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplyHeaderExtract reads the value of the given header.", "docstring_tokens": ["ApplyHeaderExtract", "reads", "the", "value", "of", "the", "given", "header", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/displayer.go#L93-L99", "partition": "test"} +{"repo": "rightscale/rsc", "path": "displayer.go", "func_name": "Output", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Output returns the current output.", "docstring_tokens": ["Output", "returns", "the", "current", "output", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/displayer.go#L107-L140", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/api15gen/api_analyzer.go", "func_name": "NewAPIAnalyzer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAPIAnalyzer is the factory method for the API analyzer", "docstring_tokens": ["NewAPIAnalyzer", "is", "the", "factory", "method", "for", "the", "API", "analyzer"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/api15gen/api_analyzer.go#L39-L45", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/api15gen/api_analyzer.go", "func_name": "Analyze", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Analyze iterate through all resources and initializes the Resources and ParamTypes fields of\n// the APIAnalyzer struct accordingly.", "docstring_tokens": ["Analyze", "iterate", "through", "all", "resources", "and", "initializes", "the", "Resources", "and", "ParamTypes", "fields", "of", "the", "APIAnalyzer", "struct", "accordingly", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/api15gen/api_analyzer.go#L49-L68", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/api15gen/api_analyzer.go", "func_name": "AnalyzeAliases", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AnalyzeAliases goes through the aliases and copies the details from original actions to the\n// aliased actions. It skips the route field since we have the routes hard-coded in the\n// ParseRoute function.", "docstring_tokens": ["AnalyzeAliases", "goes", "through", "the", "aliases", "and", "copies", "the", "details", "from", "original", "actions", "to", "the", "aliased", "actions", ".", "It", "skips", "the", "route", "field", "since", "we", "have", "the", "routes", "hard", "-", "coded", "in", "the", "ParseRoute", "function", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/api15gen/api_analyzer.go#L73-L91", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/api15gen/api_analyzer.go", "func_name": "LocatorFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LocatorFunc returns the source code for building a locator instance from a resource.", "docstring_tokens": ["LocatorFunc", "returns", "the", "source", "code", "for", "building", "a", "locator", "instance", "from", "a", "resource", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/api15gen/api_analyzer.go#L341-L358", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/api15gen/api_analyzer.go", "func_name": "ParseRoute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseRoute parses a API 1.5 route and returns corresponding path patterns.", "docstring_tokens": ["ParseRoute", "parses", "a", "API", "1", ".", "5", "route", "and", "returns", "corresponding", "path", "patterns", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/api15gen/api_analyzer.go#L361-L413", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/api15gen/api_analyzer.go", "func_name": "isDeprecated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// true if path is for a deprecated API", "docstring_tokens": ["true", "if", "path", "is", "for", "a", "deprecated", "API"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/api15gen/api_analyzer.go#L416-L418", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/api15gen/api_analyzer.go", "func_name": "isQueryParam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Heuristic to determine whether given param is a query string param\n// For now only consider view and filter...", "docstring_tokens": ["Heuristic", "to", "determine", "whether", "given", "param", "is", "a", "query", "string", "param", "For", "now", "only", "consider", "view", "and", "filter", "..."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/api15gen/api_analyzer.go#L427-L429", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/api15gen/api_analyzer.go", "func_name": "isPathParam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Look in given path patterns to chek whether given parameter name corresponds to a variable\n// name.", "docstring_tokens": ["Look", "in", "given", "path", "patterns", "to", "chek", "whether", "given", "parameter", "name", "corresponds", "to", "a", "variable", "name", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/api15gen/api_analyzer.go#L433-L442", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/examples/auditail/main.go", "func_name": "fetchAuditEntries", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Make an API call and fetch the audit entries matching specified criteria", "docstring_tokens": ["Make", "an", "API", "call", "and", "fetch", "the", "audit", "entries", "matching", "specified", "criteria"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/examples/auditail/main.go#L72-L85", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/examples/auditail/main.go", "func_name": "formatTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns time in RightScale API supported format", "docstring_tokens": ["Returns", "time", "in", "RightScale", "API", "supported", "format"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/examples/auditail/main.go#L98-L101", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/examples/auditail/main.go", "func_name": "printAudits", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Prints the audit entries to console", "docstring_tokens": ["Prints", "the", "audit", "entries", "to", "console"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/examples/auditail/main.go#L104-L108", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/examples/auditail/main.go", "func_name": "extractUnique", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Extract unique audit entries from the newly received list by comparing the href of audit entries\n// in the old list.", "docstring_tokens": ["Extract", "unique", "audit", "entries", "from", "the", "newly", "received", "list", "by", "comparing", "the", "href", "of", "audit", "entries", "in", "the", "old", "list", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/examples/auditail/main.go#L112-L124", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/examples/auditail/main.go", "func_name": "getHref", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get the href of an audit entry from the Links attribute by inspecting the self link", "docstring_tokens": ["Get", "the", "href", "of", "an", "audit", "entry", "from", "the", "Links", "attribute", "by", "inspecting", "the", "self", "link"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/examples/auditail/main.go#L127-L136", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/examples/auditail/main.go", "func_name": "fail", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Print error message and exit with code 1", "docstring_tokens": ["Print", "error", "message", "and", "exit", "with", "code", "1"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/examples/auditail/main.go#L149-L155", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/helpers.go", "func_name": "parameters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Serialize action parameters", "docstring_tokens": ["Serialize", "action", "parameters"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/helpers.go#L90-L106", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/helpers.go", "func_name": "paramsInitializer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Produces code that initializes a APIParams struct with the values of parameters for the given\n// action and location.", "docstring_tokens": ["Produces", "code", "that", "initializes", "a", "APIParams", "struct", "with", "the", "values", "of", "parameters", "for", "the", "given", "action", "and", "location", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/helpers.go#L110-L146", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/helpers.go", "func_name": "commandLine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Command line used to run tool", "docstring_tokens": ["Command", "line", "used", "to", "run", "tool"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/helpers.go#L149-L151", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/helpers.go", "func_name": "toVerb", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GET => Get", "docstring_tokens": ["GET", "=", ">", "Get"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/helpers.go#L174-L180", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/helpers.go", "func_name": "escapeBackticks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Escape ` in string to be wrapped in them", "docstring_tokens": ["Escape", "in", "string", "to", "be", "wrapped", "in", "them"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/helpers.go#L200-L203", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ssc/codegen_client.go", "func_name": "AccountPreferenceLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AccountPreferenceLocator builds a locator from the given href.", "docstring_tokens": ["AccountPreferenceLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ssc/codegen_client.go#L87-L89", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ssc/codegen_client.go", "func_name": "ApplicationLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ApplicationLocator builds a locator from the given href.", "docstring_tokens": ["ApplicationLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ssc/codegen_client.go#L293-L295", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ssc/codegen_client.go", "func_name": "EndUserLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EndUserLocator builds a locator from the given href.", "docstring_tokens": ["EndUserLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ssc/codegen_client.go#L756-L758", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ssc/codegen_client.go", "func_name": "NotificationRuleLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotificationRuleLocator builds a locator from the given href.", "docstring_tokens": ["NotificationRuleLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ssc/codegen_client.go#L949-L951", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ssc/codegen_client.go", "func_name": "UserPreferenceLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UserPreferenceLocator builds a locator from the given href.", "docstring_tokens": ["UserPreferenceLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ssc/codegen_client.go#L1241-L1243", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ssc/codegen_client.go", "func_name": "UserPreferenceInfoLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UserPreferenceInfoLocator builds a locator from the given href.", "docstring_tokens": ["UserPreferenceInfoLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ssc/codegen_client.go#L1487-L1489", "partition": "test"} +{"repo": "rightscale/rsc", "path": "config.go", "func_name": "LoadConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadConfig loads the client configuration from disk", "docstring_tokens": ["LoadConfig", "loads", "the", "client", "configuration", "from", "disk"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/config.go#L20-L36", "partition": "test"} +{"repo": "rightscale/rsc", "path": "config.go", "func_name": "CreateConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateConfig creates a configuration file and saves it to the file at the given path.", "docstring_tokens": ["CreateConfig", "creates", "a", "configuration", "file", "and", "saves", "it", "to", "the", "file", "at", "the", "given", "path", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/config.go#L63-L129", "partition": "test"} +{"repo": "rightscale/rsc", "path": "policy/auth.go", "func_name": "fromAPI", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap generic client into API 1.0 client", "docstring_tokens": ["Wrap", "generic", "client", "into", "API", "1", ".", "0", "client"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/policy/auth.go#L35-L41", "partition": "test"} +{"repo": "rightscale/rsc", "path": "policy/auth.go", "func_name": "HostFromLogin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HostFromLogin returns the policy endpoint from its login endpoint.\n// The following isn't great but seems better than having to enter by hand.", "docstring_tokens": ["HostFromLogin", "returns", "the", "policy", "endpoint", "from", "its", "login", "endpoint", ".", "The", "following", "isn", "t", "great", "but", "seems", "better", "than", "having", "to", "enter", "by", "hand", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/policy/auth.go#L45-L61", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/param.go", "func_name": "AnalyzeParam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AnalyzeParam analyzes input parameters to methods", "docstring_tokens": ["AnalyzeParam", "analyzes", "input", "parameters", "to", "methods"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/param.go#L15-L38", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/type_analysis.go", "func_name": "AnalyzeAttribute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AnalyzeAttribute analyzes an attribute creating a corresponding ActionParam.", "docstring_tokens": ["AnalyzeAttribute", "analyzes", "an", "attribute", "creating", "a", "corresponding", "ActionParam", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/type_analysis.go#L17-L57", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/type_analysis.go", "func_name": "AnalyzeType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AnalyzeType analyzes a type given its JSON definition.", "docstring_tokens": ["AnalyzeType", "analyzes", "a", "type", "given", "its", "JSON", "definition", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/type_analysis.go#L60-L184", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/type_analysis.go", "func_name": "CreateType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateType is a helper method that creates or retrieve a object data type given its attributes.", "docstring_tokens": ["CreateType", "is", "a", "helper", "method", "that", "creates", "or", "retrieve", "a", "object", "data", "type", "given", "its", "attributes", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/type_analysis.go#L187-L206", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/swagger.go", "func_name": "Ref", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ref gets a definition for a Schema reference, if it exists", "docstring_tokens": ["Ref", "gets", "a", "definition", "for", "a", "Schema", "reference", "if", "it", "exists"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/swagger.go#L110-L116", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/swagger.go", "func_name": "Type", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Type gets a type for a Schema reference, if it exists", "docstring_tokens": ["Type", "gets", "a", "type", "for", "a", "Schema", "reference", "if", "it", "exists"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/swagger.go#L119-L127", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/swagger.go", "func_name": "Required", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Required gets a type for a Schema reference, if it exists", "docstring_tokens": ["Required", "gets", "a", "type", "for", "a", "Schema", "reference", "if", "it", "exists"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/swagger.go#L130-L135", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/swagger.go", "func_name": "ID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ID of the reference", "docstring_tokens": ["ID", "of", "the", "reference"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/swagger.go#L138-L143", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/swagger.go", "func_name": "Service", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Service returns the goa.v2 service", "docstring_tokens": ["Service", "returns", "the", "goa", ".", "v2", "service"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/swagger.go#L146-L154", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/swagger.go", "func_name": "Method", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Methods returns the goa.v2 method", "docstring_tokens": ["Methods", "returns", "the", "goa", ".", "v2", "method"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/swagger.go#L157-L162", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/api_analyzer.go", "func_name": "NewTypeRegistry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTypeRegistry creates a type registry.", "docstring_tokens": ["NewTypeRegistry", "creates", "a", "type", "registry", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/api_analyzer.go#L83-L88", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/api_analyzer.go", "func_name": "GetNamedType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNamedType retrieves a type given its name.", "docstring_tokens": ["GetNamedType", "retrieves", "a", "type", "given", "its", "name", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/api_analyzer.go#L91-L93", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/api_analyzer.go", "func_name": "CreateNamedType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateNamedType returns a new type given a name, the name must be unique.", "docstring_tokens": ["CreateNamedType", "returns", "a", "new", "type", "given", "a", "name", "the", "name", "must", "be", "unique", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/api_analyzer.go#L96-L104", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/api_analyzer.go", "func_name": "CreateInlineType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateInlineType creates a new inline type.", "docstring_tokens": ["CreateInlineType", "creates", "a", "new", "inline", "type", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/api_analyzer.go#L107-L112", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/api_analyzer.go", "func_name": "FinalizeTypeNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FinalizeTypeNames makes sure type names are unique, it should be called after analysis\n// has completed.", "docstring_tokens": ["FinalizeTypeNames", "makes", "sure", "type", "names", "are", "unique", "it", "should", "be", "called", "after", "analysis", "has", "completed", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/api_analyzer.go#L116-L121", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/data_types.go", "func_name": "Merge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge two descriptors together, make sure there are no duplicate resource names and that\n// common types are compatible.", "docstring_tokens": ["Merge", "two", "descriptors", "together", "make", "sure", "there", "are", "no", "duplicate", "resource", "names", "and", "that", "common", "types", "are", "compatible", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/data_types.go#L24-L58", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/data_types.go", "func_name": "FinalizeTypeNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FinalizeTypeNames goes through all the types generated by the analyzer and generate unique names.", "docstring_tokens": ["FinalizeTypeNames", "goes", "through", "all", "the", "types", "generated", "by", "the", "analyzer", "and", "generate", "unique", "names", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/data_types.go#L61-L138", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/data_types.go", "func_name": "uniqueTypeName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Build unique type name by appending \"next available index\" to given prefix", "docstring_tokens": ["Build", "unique", "type", "name", "by", "appending", "next", "available", "index", "to", "given", "prefix"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/data_types.go#L141-L165", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/data_types.go", "func_name": "MandatoryParams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MandatoryParams returns the list of all action mandatory parameters", "docstring_tokens": ["MandatoryParams", "returns", "the", "list", "of", "all", "action", "mandatory", "parameters"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/data_types.go#L207-L217", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/data_types.go", "func_name": "HasOptionalParams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasOptionalParams returns true if the action takes optional parameters, false otherwise.", "docstring_tokens": ["HasOptionalParams", "returns", "true", "if", "the", "action", "takes", "optional", "parameters", "false", "otherwise", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/data_types.go#L220-L227", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/data_types.go", "func_name": "MakeUniq", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakeUniq makes a unique name given a prefix and a set of names.", "docstring_tokens": ["MakeUniq", "makes", "a", "unique", "name", "given", "a", "prefix", "and", "a", "set", "of", "names", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/data_types.go#L418-L436", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/client.go", "func_name": "NewClientWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClientWriter is the client writer factory.", "docstring_tokens": ["NewClientWriter", "is", "the", "client", "writer", "factory", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/client.go#L19-L40", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/client.go", "func_name": "WriteHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteHeader writes the header text.", "docstring_tokens": ["WriteHeader", "writes", "the", "header", "text", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/client.go#L43-L51", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/client.go", "func_name": "WriteResourceHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteResourceHeader writes the resource header.", "docstring_tokens": ["WriteResourceHeader", "writes", "the", "resource", "header", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/client.go#L54-L56", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/client.go", "func_name": "WriteType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteType writest the type declaration for a resource action arguments.", "docstring_tokens": ["WriteType", "writest", "the", "type", "declaration", "for", "a", "resource", "action", "arguments", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/client.go#L64-L73", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/writers/client.go", "func_name": "WriteResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteResource writest the code for a resource.", "docstring_tokens": ["WriteResource", "writest", "the", "code", "for", "a", "resource", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/writers/client.go#L76-L78", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/endpoint.go", "func_name": "WithTrail", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTrail creates a new context with trail appended to", "docstring_tokens": ["WithTrail", "creates", "a", "new", "context", "with", "trail", "appended", "to"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/endpoint.go#L23-L31", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/goav2gen/endpoint.go", "func_name": "AnalyzeEndpoint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AnalyzeEndpoint creates an API descriptor from goa v2 generated swagger definition", "docstring_tokens": ["AnalyzeEndpoint", "creates", "an", "API", "descriptor", "from", "goa", "v2", "generated", "swagger", "definition"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/goav2gen/endpoint.go#L34-L146", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm16/codegen_client.go", "func_name": "NetworkInterfaceLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkInterfaceLocator builds a locator from the given href.", "docstring_tokens": ["NetworkInterfaceLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm16/codegen_client.go#L1336-L1338", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm16/codegen_client.go", "func_name": "NetworkInterfaceAttachmentLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkInterfaceAttachmentLocator builds a locator from the given href.", "docstring_tokens": ["NetworkInterfaceAttachmentLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm16/codegen_client.go#L1437-L1439", "partition": "test"} +{"repo": "rightscale/rsc", "path": "cm15/ruby_time.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON implements the unmarshaller interface.", "docstring_tokens": ["UnmarshalJSON", "implements", "the", "unmarshaller", "interface", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/cm15/ruby_time.go#L20-L28", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ssm/codegen_client.go", "func_name": "ExecutionLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExecutionLocator builds a locator from the given href.", "docstring_tokens": ["ExecutionLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ssm/codegen_client.go#L120-L122", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ssm/codegen_client.go", "func_name": "NotificationLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotificationLocator builds a locator from the given href.", "docstring_tokens": ["NotificationLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ssm/codegen_client.go#L842-L844", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ssm/codegen_client.go", "func_name": "OperationLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OperationLocator builds a locator from the given href.", "docstring_tokens": ["OperationLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ssm/codegen_client.go#L965-L967", "partition": "test"} +{"repo": "rightscale/rsc", "path": "ss/ssm/codegen_client.go", "func_name": "ScheduledActionLocator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ScheduledActionLocator builds a locator from the given href.", "docstring_tokens": ["ScheduledActionLocator", "builds", "a", "locator", "from", "the", "given", "href", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/ss/ssm/codegen_client.go#L1155-L1157", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/auth.go", "func_name": "NewBasicAuthenticator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBasicAuthenticator returns a authenticator that uses email and password to create sessions.\n// The returned authenticator takes care of refreshing the RightScale session as needed.", "docstring_tokens": ["NewBasicAuthenticator", "returns", "a", "authenticator", "that", "uses", "email", "and", "password", "to", "create", "sessions", ".", "The", "returned", "authenticator", "takes", "care", "of", "refreshing", "the", "RightScale", "session", "as", "needed", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/auth.go#L32-L35", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/auth.go", "func_name": "NewSSAuthenticator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSSAuthenticator returns an authenticator that wraps another one and adds the logic needed to\n// create sessions in Self-Service.", "docstring_tokens": ["NewSSAuthenticator", "returns", "an", "authenticator", "that", "wraps", "another", "one", "and", "adds", "the", "logic", "needed", "to", "create", "sessions", "in", "Self", "-", "Service", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/auth.go#L72-L83", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/auth.go", "func_name": "newCookieSigner", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newCookieSigner returns a cookie signer that uses the given builder to build login requests.", "docstring_tokens": ["newCookieSigner", "returns", "a", "cookie", "signer", "that", "uses", "the", "given", "builder", "to", "build", "login", "requests", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/auth.go#L108-L115", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/auth.go", "func_name": "Sign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sign adds the username and password authorization cookies to the request.\n// Checks the freshness of the session and creates a new one if needed.", "docstring_tokens": ["Sign", "adds", "the", "username", "and", "password", "authorization", "cookies", "to", "the", "request", ".", "Checks", "the", "freshness", "of", "the", "session", "and", "creates", "a", "new", "one", "if", "needed", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/auth.go#L119-L155", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/auth.go", "func_name": "CanAuthenticate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CanAuthenticate makes a test request to CM 1.5 and returns true if it is successful.", "docstring_tokens": ["CanAuthenticate", "makes", "a", "test", "request", "to", "CM", "1", ".", "5", "and", "returns", "true", "if", "it", "is", "successful", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/auth.go#L163-L166", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/auth.go", "func_name": "refresh", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// refresh updates the cookie and expiration used to sign requests from a successful session\n// creation API response.", "docstring_tokens": ["refresh", "updates", "the", "cookie", "and", "expiration", "used", "to", "sign", "requests", "from", "a", "successful", "session", "creation", "API", "response", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/auth.go#L170-L177", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/auth.go", "func_name": "Sign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sign sets the OAuth authorization header", "docstring_tokens": ["Sign", "sets", "the", "OAuth", "authorization", "header"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/auth.go#L261-L267", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/auth.go", "func_name": "Sign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RL10 authenticator uses special header", "docstring_tokens": ["RL10", "authenticator", "uses", "special", "header"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/auth.go#L287-L290", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/auth.go", "func_name": "Sign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Self-Service authenticator first creates a global session with the core then creates a local\n// session with self-service.", "docstring_tokens": ["Self", "-", "Service", "authenticator", "first", "creates", "a", "global", "session", "with", "the", "core", "then", "creates", "a", "local", "session", "with", "self", "-", "service", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/auth.go#L314-L358", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/auth.go", "func_name": "SetHost", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetHost sets the host used to create Self-Service session.\n// Pass in the CM 1.5 host, this method computes the Self-Service host from it.", "docstring_tokens": ["SetHost", "sets", "the", "host", "used", "to", "create", "Self", "-", "Service", "session", ".", "Pass", "in", "the", "CM", "1", ".", "5", "host", "this", "method", "computes", "the", "Self", "-", "Service", "host", "from", "it", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/auth.go#L362-L380", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/auth.go", "func_name": "CanAuthenticate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CanAuthenticate makes a test request to SS and returns true if it is successful.", "docstring_tokens": ["CanAuthenticate", "makes", "a", "test", "request", "to", "SS", "and", "returns", "true", "if", "it", "is", "successful", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/auth.go#L383-L405", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/auth.go", "func_name": "extractRedirectURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// extractRedirectURL is a helper function that extracts the Location header from a redirect\n// response. It returns nil if the header is missing, an error if it's malformed.", "docstring_tokens": ["extractRedirectURL", "is", "a", "helper", "function", "that", "extracts", "the", "Location", "header", "from", "a", "redirect", "response", ".", "It", "returns", "nil", "if", "the", "header", "is", "missing", "an", "error", "if", "it", "s", "malformed", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/auth.go#L456-L469", "partition": "test"} +{"repo": "rightscale/rsc", "path": "rsapi/auth.go", "func_name": "buildURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compute API URL given a scheme, hostname and a path", "docstring_tokens": ["Compute", "API", "URL", "given", "a", "scheme", "hostname", "and", "a", "path"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/rsapi/auth.go#L472-L483", "partition": "test"} +{"repo": "rightscale/rsc", "path": "metadata/resource.go", "func_name": "GetAction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAction returns the action with the given name, returns nil if none is found.", "docstring_tokens": ["GetAction", "returns", "the", "action", "with", "the", "given", "name", "returns", "nil", "if", "none", "is", "found", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/metadata/resource.go#L51-L58", "partition": "test"} +{"repo": "rightscale/rsc", "path": "metadata/resource.go", "func_name": "HasLink", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasLink returns whether the resource has a link with the given name.", "docstring_tokens": ["HasLink", "returns", "whether", "the", "resource", "has", "a", "link", "with", "the", "given", "name", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/metadata/resource.go#L61-L68", "partition": "test"} +{"repo": "rightscale/rsc", "path": "metadata/resource.go", "func_name": "findMatches", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Find paths that match given href", "docstring_tokens": ["Find", "paths", "that", "match", "given", "href"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/metadata/resource.go#L71-L81", "partition": "test"} +{"repo": "rightscale/rsc", "path": "httpclient/http.go", "func_name": "NewPB", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPB returns an HTTP client using only the parameter block and ignoring\n// the current values of the package variables, which are not go-routine safe.", "docstring_tokens": ["NewPB", "returns", "an", "HTTP", "client", "using", "only", "the", "parameter", "block", "and", "ignoring", "the", "current", "values", "of", "the", "package", "variables", "which", "are", "not", "go", "-", "routine", "safe", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/httpclient/http.go#L158-L184", "partition": "test"} +{"repo": "rightscale/rsc", "path": "httpclient/http.go", "func_name": "newVariableDumpClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newVariableDumpClient defines accessors for package variables, which are not\n// go-routine safe so can theoretically change value while the client is in use.\n// this emulates the legacy behavior.", "docstring_tokens": ["newVariableDumpClient", "defines", "accessors", "for", "package", "variables", "which", "are", "not", "go", "-", "routine", "safe", "so", "can", "theoretically", "change", "value", "while", "the", "client", "is", "in", "use", ".", "this", "emulates", "the", "legacy", "behavior", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/httpclient/http.go#L189-L201", "partition": "test"} +{"repo": "rightscale/rsc", "path": "httpclient/http.go", "func_name": "newRawClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newRawClient creates an http package Client taking into account both the parameters and package\n// variables.", "docstring_tokens": ["newRawClient", "creates", "an", "http", "package", "Client", "taking", "into", "account", "both", "the", "parameters", "and", "package", "variables", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/httpclient/http.go#L213-L230", "partition": "test"} +{"repo": "rightscale/rsc", "path": "httpclient/http.go", "func_name": "DoHidden", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DoHidden is equivalent to Do with the exception that nothing gets logged unless DumpFormat is\n// set to Verbose.", "docstring_tokens": ["DoHidden", "is", "equivalent", "to", "Do", "with", "the", "exception", "that", "nothing", "gets", "logged", "unless", "DumpFormat", "is", "set", "to", "Verbose", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/httpclient/http.go#L254-L256", "partition": "test"} +{"repo": "rightscale/rsc", "path": "httpclient/http.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do dumps the request, makes the request and dumps the response as specified by DumpFormat.", "docstring_tokens": ["Do", "dumps", "the", "request", "makes", "the", "request", "and", "dumps", "the", "response", "as", "specified", "by", "DumpFormat", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/httpclient/http.go#L259-L261", "partition": "test"} +{"repo": "rightscale/rsc", "path": "httpclient/http.go", "func_name": "doImp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// doImp actually performs the HTTP request logging according to the various settings.", "docstring_tokens": ["doImp", "actually", "performs", "the", "HTTP", "request", "logging", "according", "to", "the", "various", "settings", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/httpclient/http.go#L272-L323", "partition": "test"} +{"repo": "rightscale/rsc", "path": "httpclient/http.go", "func_name": "getClientWithoutTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getClientWithoutTimeout returns a modified client that doesn't have the ResponseHeaderTimeout field set\n// in its Transport.", "docstring_tokens": ["getClientWithoutTimeout", "returns", "a", "modified", "client", "that", "doesn", "t", "have", "the", "ResponseHeaderTimeout", "field", "set", "in", "its", "Transport", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/httpclient/http.go#L327-L361", "partition": "test"} +{"repo": "rightscale/rsc", "path": "httpclient/http.go", "func_name": "dumpRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Dump request if needed.\n// Return request serialized as JSON if DumpFormat is JSON, nil otherwise.", "docstring_tokens": ["Dump", "request", "if", "needed", ".", "Return", "request", "serialized", "as", "JSON", "if", "DumpFormat", "is", "JSON", "nil", "otherwise", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/httpclient/http.go#L365-L388", "partition": "test"} +{"repo": "rightscale/rsc", "path": "httpclient/http.go", "func_name": "writeHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// writeHeaders is a helper function that writes the given HTTP headers to the given buffer as\n// human readable strings. If DumpFormat is not Verbose then writeHeaders filters out headers whose\n// names are keys of HiddenHeaders.", "docstring_tokens": ["writeHeaders", "is", "a", "helper", "function", "that", "writes", "the", "given", "HTTP", "headers", "to", "the", "given", "buffer", "as", "human", "readable", "strings", ".", "If", "DumpFormat", "is", "not", "Verbose", "then", "writeHeaders", "filters", "out", "headers", "whose", "names", "are", "keys", "of", "HiddenHeaders", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/httpclient/http.go#L448-L459", "partition": "test"} +{"repo": "rightscale/rsc", "path": "httpclient/http.go", "func_name": "copyHiddenHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// copyHiddenHeaders copies the given map", "docstring_tokens": ["copyHiddenHeaders", "copies", "the", "given", "map"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/httpclient/http.go#L550-L556", "partition": "test"} +{"repo": "rightscale/rsc", "path": "command_line.go", "func_name": "validateCommandLine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Make sure all the required information is there", "docstring_tokens": ["Make", "sure", "all", "the", "required", "information", "is", "there"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/command_line.go#L112-L129", "partition": "test"} +{"repo": "rightscale/rsc", "path": "command_line.go", "func_name": "APIClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// APIClient instantiates a client with the given name from command line arguments.", "docstring_tokens": ["APIClient", "instantiates", "a", "client", "with", "the", "given", "name", "from", "command", "line", "arguments", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/command_line.go#L155-L172", "partition": "test"} +{"repo": "rightscale/rsc", "path": "command_line.go", "func_name": "RegisterClientCommands", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterClientCommands registers all API client commands.", "docstring_tokens": ["RegisterClientCommands", "registers", "all", "API", "client", "commands", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/command_line.go#L175-L199", "partition": "test"} +{"repo": "rightscale/rsc", "path": "log/log.go", "func_name": "Interactive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Interactive configures the logger to log messages of level Info or higher to Stdout and messages\n// of level Error or lesser to Stderr.", "docstring_tokens": ["Interactive", "configures", "the", "logger", "to", "log", "messages", "of", "level", "Info", "or", "higher", "to", "Stdout", "and", "messages", "of", "level", "Error", "or", "lesser", "to", "Stderr", "."], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/log/log.go#L17-L22", "partition": "test"} +{"repo": "rightscale/rsc", "path": "gen/praxisgen/action_analysis.go", "func_name": "toPattern", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create path pattern from HTTP verb and request path", "docstring_tokens": ["Create", "path", "pattern", "from", "HTTP", "verb", "and", "request", "path"], "sha": "96079a1ee7238dae9cbb7efa77dd94a479d217bd", "url": "https://github.com/rightscale/rsc/blob/96079a1ee7238dae9cbb7efa77dd94a479d217bd/gen/praxisgen/action_analysis.go#L275-L291", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "nsqlookup/topology.go", "func_name": "WithClientIP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithClientIP returns a context which carries the given client IP.", "docstring_tokens": ["WithClientIP", "returns", "a", "context", "which", "carries", "the", "given", "client", "IP", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/nsqlookup/topology.go#L36-L41", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "nsqlookup/topology.go", "func_name": "ClientIP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientIP returns the client IP embedded in the context, or nil if none were\n// found.", "docstring_tokens": ["ClientIP", "returns", "the", "client", "IP", "embedded", "in", "the", "context", "or", "nil", "if", "none", "were", "found", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/nsqlookup/topology.go#L45-L48", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "producer.go", "func_name": "NewProducer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewProducer configures a new producer instance.", "docstring_tokens": ["NewProducer", "configures", "a", "new", "producer", "instance", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/producer.go#L74-L88", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "producer.go", "func_name": "StartProducer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartProducer starts and returns a new producer p, configured with the\n// variables from the config parameter, or returning an non-nil error if\n// some of the configuration variables were invalid.", "docstring_tokens": ["StartProducer", "starts", "and", "returns", "a", "new", "producer", "p", "configured", "with", "the", "variables", "from", "the", "config", "parameter", "or", "returning", "an", "non", "-", "nil", "error", "if", "some", "of", "the", "configuration", "variables", "were", "invalid", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/producer.go#L93-L101", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "producer.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start explicitly begins the producer in case it was initialized with\n// NewProducer instead of StartProducer.", "docstring_tokens": ["Start", "explicitly", "begins", "the", "producer", "in", "case", "it", "was", "initialized", "with", "NewProducer", "instead", "of", "StartProducer", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/producer.go#L105-L117", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "producer.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop gracefully shutsdown the producer, cancelling all inflight requests and\n// waiting for all backend connections to be closed.\n//\n// It is safe to call the method multiple times and from multiple goroutines,\n// they will all block until the producer has been completely shutdown.", "docstring_tokens": ["Stop", "gracefully", "shutsdown", "the", "producer", "cancelling", "all", "inflight", "requests", "and", "waiting", "for", "all", "backend", "connections", "to", "be", "closed", ".", "It", "is", "safe", "to", "call", "the", "method", "multiple", "times", "and", "from", "multiple", "goroutines", "they", "will", "all", "block", "until", "the", "producer", "has", "been", "completely", "shutdown", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/producer.go#L124-L133", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "producer.go", "func_name": "Publish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Publish sends a message using the producer p, returning an error if it was\n// already closed or if an error occurred while publishing the message.\n//\n// Note that no retry is done internally, the producer will fail after the\n// first unsuccessful attempt to publish the message. It is the responsibility\n// of the caller to retry if necessary.", "docstring_tokens": ["Publish", "sends", "a", "message", "using", "the", "producer", "p", "returning", "an", "error", "if", "it", "was", "already", "closed", "or", "if", "an", "error", "occurred", "while", "publishing", "the", "message", ".", "Note", "that", "no", "retry", "is", "done", "internally", "the", "producer", "will", "fail", "after", "the", "first", "unsuccessful", "attempt", "to", "publish", "the", "message", ".", "It", "is", "the", "responsibility", "of", "the", "caller", "to", "retry", "if", "necessary", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/producer.go#L141-L143", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "producer.go", "func_name": "PublishTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PublishTo sends a message to a specific topic using the producer p, returning\n// an error if it was already closed or if an error occurred while publishing the\n// message.\n//\n// Note that no retry is done internally, the producer will fail after the\n// first unsuccessful attempt to publish the message. It is the responsibility\n// of the caller to retry if necessary.", "docstring_tokens": ["PublishTo", "sends", "a", "message", "to", "a", "specific", "topic", "using", "the", "producer", "p", "returning", "an", "error", "if", "it", "was", "already", "closed", "or", "if", "an", "error", "occurred", "while", "publishing", "the", "message", ".", "Note", "that", "no", "retry", "is", "done", "internally", "the", "producer", "will", "fail", "after", "the", "first", "unsuccessful", "attempt", "to", "publish", "the", "message", ".", "It", "is", "the", "responsibility", "of", "the", "caller", "to", "retry", "if", "necessary", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/producer.go#L152-L179", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "nsqlookup/local.go", "func_name": "NewLocalEngine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLocalEngine creates and returns an instance of LocalEngine configured with\n// config.", "docstring_tokens": ["NewLocalEngine", "creates", "and", "returns", "an", "instance", "of", "LocalEngine", "configured", "with", "config", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/nsqlookup/local.go#L52-L73", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "consumer.go", "func_name": "validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// validate ensures that this configuration is well-formed.", "docstring_tokens": ["validate", "ensures", "that", "this", "configuration", "is", "well", "-", "formed", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/consumer.go#L52-L62", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "consumer.go", "func_name": "defaults", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// defaults will set up this configuration with the global defaults where they\n// were not already set.", "docstring_tokens": ["defaults", "will", "set", "up", "this", "configuration", "with", "the", "global", "defaults", "where", "they", "were", "not", "already", "set", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/consumer.go#L66-L82", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "consumer.go", "func_name": "NewConsumer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConsumer configures a new consumer instance.", "docstring_tokens": ["NewConsumer", "configures", "a", "new", "consumer", "instance", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/consumer.go#L85-L110", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "consumer.go", "func_name": "StartConsumer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartConsumer creates and starts consuming from NSQ right away. This is the\n// fastest way to get up and running.", "docstring_tokens": ["StartConsumer", "creates", "and", "starts", "consuming", "from", "NSQ", "right", "away", ".", "This", "is", "the", "fastest", "way", "to", "get", "up", "and", "running", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/consumer.go#L114-L122", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "consumer.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start explicitly begins consumption in case the consumer was initialized\n// with NewConsumer instead of StartConsumer.", "docstring_tokens": ["Start", "explicitly", "begins", "consumption", "in", "case", "the", "consumer", "was", "initialized", "with", "NewConsumer", "instead", "of", "StartConsumer", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/consumer.go#L126-L134", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "consumer.go", "func_name": "RateLimit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RateLimit consumes messages from the messages channel and limits the rate at\n// which they are produced to the channel returned by this function.\n//\n// The limit is the maximum number of messages per second that are produced.\n// No rate limit is applied if limit is negative or zero.\n//\n// The returned channel is closed when the messages channel is closed.", "docstring_tokens": ["RateLimit", "consumes", "messages", "from", "the", "messages", "channel", "and", "limits", "the", "rate", "at", "which", "they", "are", "produced", "to", "the", "channel", "returned", "by", "this", "function", ".", "The", "limit", "is", "the", "maximum", "number", "of", "messages", "per", "second", "that", "are", "produced", ".", "No", "rate", "limit", "is", "applied", "if", "limit", "is", "negative", "or", "zero", ".", "The", "returned", "channel", "is", "closed", "when", "the", "messages", "channel", "is", "closed", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/consumer.go#L347-L383", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "nsqlookup/response.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write outputs the response to w.", "docstring_tokens": ["Write", "outputs", "the", "response", "to", "w", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/nsqlookup/response.go#L30-L32", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "nsqlookup/response.go", "func_name": "ReadResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadResponse reads res from r, or returns an error if no responses could be\n// read.", "docstring_tokens": ["ReadResponse", "reads", "res", "from", "r", "or", "returns", "an", "error", "if", "no", "responses", "could", "be", "read", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/nsqlookup/response.go#L36-L62", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "cmd/nsq-to-http/main.go", "func_name": "backoff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// backoff computes a random exponential backoff value for a given number of\n// attempts, and boundaries of min and max backoff durations.", "docstring_tokens": ["backoff", "computes", "a", "random", "exponential", "backoff", "value", "for", "a", "given", "number", "of", "attempts", "and", "boundaries", "of", "min", "and", "max", "backoff", "durations", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/cmd/nsq-to-http/main.go#L143-L156", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "frame.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a human-readable representation of the frame type.", "docstring_tokens": ["String", "returns", "a", "human", "-", "readable", "representation", "of", "the", "frame", "type", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/frame.go#L30-L44", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "nsqlookup/consul.go", "func_name": "NewConsulEngine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewConsulEngine creates and return a new engine configured with config.", "docstring_tokens": ["NewConsulEngine", "creates", "and", "return", "a", "new", "engine", "configured", "with", "config", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/nsqlookup/consul.go#L61-L89", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "message.go", "func_name": "ParseMessageID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseMessageID attempts to parse s, which should be an hexadecimal\n// representation of an 8 byte message ID.", "docstring_tokens": ["ParseMessageID", "attempts", "to", "parse", "s", "which", "should", "be", "an", "hexadecimal", "representation", "of", "an", "8", "byte", "message", "ID", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/message.go#L18-L23", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "message.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo writes the message ID to w.\n//\n// This method satisfies the io.WriterTo interface.", "docstring_tokens": ["WriteTo", "writes", "the", "message", "ID", "to", "w", ".", "This", "method", "satisfies", "the", "io", ".", "WriterTo", "interface", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/message.go#L33-L45", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "message.go", "func_name": "NewMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMessage is a helper for creating Message instances directly. A common\n// use-case is for writing tests, generally you won't use this directly.\n//\n// If you do use this, the Command channel is used internally to communicate\n// message commands, such as \"Finish\" or \"Requeue\". When using this for testing,\n// you can make a channel and inspect any message sent along it for assertions.", "docstring_tokens": ["NewMessage", "is", "a", "helper", "for", "creating", "Message", "instances", "directly", ".", "A", "common", "use", "-", "case", "is", "for", "writing", "tests", "generally", "you", "won", "t", "use", "this", "directly", ".", "If", "you", "do", "use", "this", "the", "Command", "channel", "is", "used", "internally", "to", "communicate", "message", "commands", "such", "as", "Finish", "or", "Requeue", ".", "When", "using", "this", "for", "testing", "you", "can", "make", "a", "channel", "and", "inspect", "any", "message", "sent", "along", "it", "for", "assertions", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/message.go#L71-L77", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "message.go", "func_name": "Finish", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Finish must be called on every message received from a consumer to let the\n// NSQ server know that the message was successfully processed.\n//\n// One of Finish or Requeue should be called on every message, and the methods\n// will panic if they are called more than once.", "docstring_tokens": ["Finish", "must", "be", "called", "on", "every", "message", "received", "from", "a", "consumer", "to", "let", "the", "NSQ", "server", "know", "that", "the", "message", "was", "successfully", "processed", ".", "One", "of", "Finish", "or", "Requeue", "should", "be", "called", "on", "every", "message", "and", "the", "methods", "will", "panic", "if", "they", "are", "called", "more", "than", "once", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/message.go#L84-L91", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "message.go", "func_name": "Requeue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Requeue must be called on messages received from a consumer to let the NSQ\n// server know that the message could not be proessed and should be retried.\n// The timeout is the amount of time the NSQ server waits before offering this\n// message again to its consumers.\n//\n// One of Finish or Requeue should be called on every message, and the methods\n// will panic if they are called more than once.", "docstring_tokens": ["Requeue", "must", "be", "called", "on", "messages", "received", "from", "a", "consumer", "to", "let", "the", "NSQ", "server", "know", "that", "the", "message", "could", "not", "be", "proessed", "and", "should", "be", "retried", ".", "The", "timeout", "is", "the", "amount", "of", "time", "the", "NSQ", "server", "waits", "before", "offering", "this", "message", "again", "to", "its", "consumers", ".", "One", "of", "Finish", "or", "Requeue", "should", "be", "called", "on", "every", "message", "and", "the", "methods", "will", "panic", "if", "they", "are", "called", "more", "than", "once", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/message.go#L100-L107", "partition": "test"} +{"repo": "segmentio/nsq-go", "path": "nsqlookup/command.go", "func_name": "ReadCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadCommand reads cmd from r, or returns an error if no commands could be\n// read.", "docstring_tokens": ["ReadCommand", "reads", "cmd", "from", "r", "or", "returns", "an", "error", "if", "no", "commands", "could", "be", "read", "."], "sha": "ff4eef968f46eb580d9dba4f637c5dfb1e5b2208", "url": "https://github.com/segmentio/nsq-go/blob/ff4eef968f46eb580d9dba4f637c5dfb1e5b2208/nsqlookup/command.go#L22-L53", "partition": "test"} +{"repo": "qor/render", "path": "template.go", "func_name": "funcMapMaker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FuncMap get func maps from tmpl", "docstring_tokens": ["FuncMap", "get", "func", "maps", "from", "tmpl"], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/template.go#L21-L38", "partition": "test"} +{"repo": "qor/render", "path": "template.go", "func_name": "Funcs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Funcs register Funcs for tmpl", "docstring_tokens": ["Funcs", "register", "Funcs", "for", "tmpl"], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/template.go#L41-L44", "partition": "test"} +{"repo": "qor/render", "path": "template.go", "func_name": "Execute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Execute execute tmpl", "docstring_tokens": ["Execute", "execute", "tmpl"], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/template.go#L137-L147", "partition": "test"} +{"repo": "qor/render", "path": "assetfs/filesystem.go", "func_name": "RegisterPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterPath register view paths", "docstring_tokens": ["RegisterPath", "register", "view", "paths"], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/assetfs/filesystem.go#L19-L34", "partition": "test"} +{"repo": "qor/render", "path": "assetfs/filesystem.go", "func_name": "Asset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Asset get content with name from assetfs", "docstring_tokens": ["Asset", "get", "content", "with", "name", "from", "assetfs"], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/assetfs/filesystem.go#L55-L62", "partition": "test"} +{"repo": "qor/render", "path": "assetfs/filesystem.go", "func_name": "Glob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Glob list matched files from assetfs", "docstring_tokens": ["Glob", "list", "matched", "files", "from", "assetfs"], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/assetfs/filesystem.go#L65-L74", "partition": "test"} +{"repo": "qor/render", "path": "assetfs/filesystem.go", "func_name": "NameSpace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NameSpace return namespaced filesystem", "docstring_tokens": ["NameSpace", "return", "namespaced", "filesystem"], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/assetfs/filesystem.go#L82-L88", "partition": "test"} +{"repo": "qor/render", "path": "render.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New initalize the render struct.", "docstring_tokens": ["New", "initalize", "the", "render", "struct", "."], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/render.go#L35-L57", "partition": "test"} +{"repo": "qor/render", "path": "render.go", "func_name": "RegisterViewPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterViewPath register view path", "docstring_tokens": ["RegisterViewPath", "register", "view", "path"], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/render.go#L60-L81", "partition": "test"} +{"repo": "qor/render", "path": "render.go", "func_name": "SetAssetFS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAssetFS set asset fs for render", "docstring_tokens": ["SetAssetFS", "set", "asset", "fs", "for", "render"], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/render.go#L108-L114", "partition": "test"} +{"repo": "qor/render", "path": "render.go", "func_name": "Layout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Layout set layout for template.", "docstring_tokens": ["Layout", "set", "layout", "for", "template", "."], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/render.go#L117-L119", "partition": "test"} +{"repo": "qor/render", "path": "render.go", "func_name": "Funcs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Funcs set helper functions for template with default \"application\" layout.", "docstring_tokens": ["Funcs", "set", "helper", "functions", "for", "template", "with", "default", "application", "layout", "."], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/render.go#L122-L125", "partition": "test"} +{"repo": "qor/render", "path": "render.go", "func_name": "Execute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Execute render template with default \"application\" layout.", "docstring_tokens": ["Execute", "render", "template", "with", "default", "application", "layout", "."], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/render.go#L128-L131", "partition": "test"} +{"repo": "qor/render", "path": "render.go", "func_name": "RegisterFuncMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterFuncMap register FuncMap for render.", "docstring_tokens": ["RegisterFuncMap", "register", "FuncMap", "for", "render", "."], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/render.go#L134-L139", "partition": "test"} +{"repo": "qor/render", "path": "render.go", "func_name": "Asset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Asset get content from AssetFS by name", "docstring_tokens": ["Asset", "get", "content", "from", "AssetFS", "by", "name"], "sha": "63566e46f01b134ae9882a59a06518e82a903231", "url": "https://github.com/qor/render/blob/63566e46f01b134ae9882a59a06518e82a903231/render.go#L142-L144", "partition": "test"} +{"repo": "emersion/go-sasl", "path": "plain.go", "func_name": "NewPlainClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// A client implementation of the PLAIN authentication mechanism, as described\n// in RFC 4616. Authorization identity may be left blank to indicate that it is\n// the same as the username.", "docstring_tokens": ["A", "client", "implementation", "of", "the", "PLAIN", "authentication", "mechanism", "as", "described", "in", "RFC", "4616", ".", "Authorization", "identity", "may", "be", "left", "blank", "to", "indicate", "that", "it", "is", "the", "same", "as", "the", "username", "."], "sha": "7e096a0a6197b89989e8cc31016daa67c8c62051", "url": "https://github.com/emersion/go-sasl/blob/7e096a0a6197b89989e8cc31016daa67c8c62051/plain.go#L30-L32", "partition": "test"} +{"repo": "kr/s3", "path": "s3util/uploader.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates an S3 object at url and sends multipart upload requests as\n// data is written.\n//\n// If h is not nil, each of its entries is added to the HTTP request header.\n// If c is nil, Create uses DefaultConfig.", "docstring_tokens": ["Create", "creates", "an", "S3", "object", "at", "url", "and", "sends", "multipart", "upload", "requests", "as", "data", "is", "written", ".", "If", "h", "is", "not", "nil", "each", "of", "its", "entries", "is", "added", "to", "the", "HTTP", "request", "header", ".", "If", "c", "is", "nil", "Create", "uses", "DefaultConfig", "."], "sha": "c070c8f9a8f0032d48f0d2a77d4e382788bd8a1d", "url": "https://github.com/kr/s3/blob/c070c8f9a8f0032d48f0d2a77d4e382788bd8a1d/s3util/uploader.go#L66-L71", "partition": "test"} +{"repo": "kr/s3", "path": "s3util/open.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open requests the S3 object at url. An HTTP status other than 200 is\n// considered an error.\n//\n// If c is nil, Open uses DefaultConfig.", "docstring_tokens": ["Open", "requests", "the", "S3", "object", "at", "url", ".", "An", "HTTP", "status", "other", "than", "200", "is", "considered", "an", "error", ".", "If", "c", "is", "nil", "Open", "uses", "DefaultConfig", "."], "sha": "c070c8f9a8f0032d48f0d2a77d4e382788bd8a1d", "url": "https://github.com/kr/s3/blob/c070c8f9a8f0032d48f0d2a77d4e382788bd8a1d/s3util/open.go#L13-L33", "partition": "test"} +{"repo": "kr/s3", "path": "sign.go", "func_name": "Sign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sign signs an HTTP request with the given S3 keys.\n//\n// This function is a wrapper around DefaultService.Sign.", "docstring_tokens": ["Sign", "signs", "an", "HTTP", "request", "with", "the", "given", "S3", "keys", ".", "This", "function", "is", "a", "wrapper", "around", "DefaultService", ".", "Sign", "."], "sha": "c070c8f9a8f0032d48f0d2a77d4e382788bd8a1d", "url": "https://github.com/kr/s3/blob/c070c8f9a8f0032d48f0d2a77d4e382788bd8a1d/sign.go#L81-L83", "partition": "test"} +{"repo": "kr/s3", "path": "sign.go", "func_name": "Sign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sign signs an HTTP request with the given S3 keys for use on service s.", "docstring_tokens": ["Sign", "signs", "an", "HTTP", "request", "with", "the", "given", "S3", "keys", "for", "use", "on", "service", "s", "."], "sha": "c070c8f9a8f0032d48f0d2a77d4e382788bd8a1d", "url": "https://github.com/kr/s3/blob/c070c8f9a8f0032d48f0d2a77d4e382788bd8a1d/sign.go#L98-L107", "partition": "test"} +{"repo": "kr/s3", "path": "s3util/readdir.go", "func_name": "Readdir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Readdir requests a list of entries in the S3 directory\n// represented by f and returns a slice of up to n FileInfo\n// values, in alphabetical order. Subsequent calls\n// on the same File will yield further FileInfos.\n// Only direct children are returned, not deeper descendants.", "docstring_tokens": ["Readdir", "requests", "a", "list", "of", "entries", "in", "the", "S3", "directory", "represented", "by", "f", "and", "returns", "a", "slice", "of", "up", "to", "n", "FileInfo", "values", "in", "alphabetical", "order", ".", "Subsequent", "calls", "on", "the", "same", "File", "will", "yield", "further", "FileInfos", ".", "Only", "direct", "children", "are", "returned", "not", "deeper", "descendants", "."], "sha": "c070c8f9a8f0032d48f0d2a77d4e382788bd8a1d", "url": "https://github.com/kr/s3/blob/c070c8f9a8f0032d48f0d2a77d4e382788bd8a1d/s3util/readdir.go#L103-L115", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "internal/execxp/findutil/findUtil.go", "func_name": "Find", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Find finds nodes based on the pathexpr.PathExpr", "docstring_tokens": ["Find", "finds", "nodes", "based", "on", "the", "pathexpr", ".", "PathExpr"], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/internal/execxp/findutil/findUtil.go#L34-L46", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "lexer/lexer.go", "func_name": "Lex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Lex an XPath expresion on the io.Reader", "docstring_tokens": ["Lex", "an", "XPath", "expresion", "on", "the", "io", ".", "Reader"], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/lexer/lexer.go#L80-L87", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/xmltree/xmltree.go", "func_name": "MustParseXML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//MustParseXML is like ParseXML, but panics instead of returning an error.", "docstring_tokens": ["MustParseXML", "is", "like", "ParseXML", "but", "panics", "instead", "of", "returning", "an", "error", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/xmltree/xmltree.go#L34-L42", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/xmltree/xmltree.go", "func_name": "ParseXML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ParseXML creates an XMLTree structure from an io.Reader.", "docstring_tokens": ["ParseXML", "creates", "an", "XMLTree", "structure", "from", "an", "io", ".", "Reader", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/xmltree/xmltree.go#L45-L105", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/xfn.go", "func_name": "Call", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Call checks the arguments and calls Fn if they are valid", "docstring_tokens": ["Call", "checks", "the", "arguments", "and", "calls", "Fn", "if", "they", "are", "valid"], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/xfn.go#L36-L52", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "goxpath.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Parse parses the XPath expression, xp, returning an XPath executor.", "docstring_tokens": ["Parse", "parses", "the", "XPath", "expression", "xp", "returning", "an", "XPath", "executor", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/goxpath.go#L28-L31", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "goxpath.go", "func_name": "MustParse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//MustParse is like Parse, but panics instead of returning an error.", "docstring_tokens": ["MustParse", "is", "like", "Parse", "but", "panics", "instead", "of", "returning", "an", "error", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/goxpath.go#L34-L40", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "goxpath.go", "func_name": "Exec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Exec executes the XPath expression, xp, against the tree, t, with the\n//namespace mappings, ns, and returns the result as a stringer.", "docstring_tokens": ["Exec", "executes", "the", "XPath", "expression", "xp", "against", "the", "tree", "t", "with", "the", "namespace", "mappings", "ns", "and", "returns", "the", "result", "as", "a", "stringer", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/goxpath.go#L44-L54", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "goxpath.go", "func_name": "ExecBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ExecBool is like Exec, except it will attempt to convert the result to its boolean value.", "docstring_tokens": ["ExecBool", "is", "like", "Exec", "except", "it", "will", "attempt", "to", "convert", "the", "result", "to", "its", "boolean", "value", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/goxpath.go#L57-L69", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "goxpath.go", "func_name": "ExecNum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ExecNum is like Exec, except it will attempt to convert the result to its number value.", "docstring_tokens": ["ExecNum", "is", "like", "Exec", "except", "it", "will", "attempt", "to", "convert", "the", "result", "to", "its", "number", "value", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/goxpath.go#L72-L84", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "goxpath.go", "func_name": "ExecNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ExecNode is like Exec, except it will attempt to return the result as a node-set.", "docstring_tokens": ["ExecNode", "is", "like", "Exec", "except", "it", "will", "attempt", "to", "return", "the", "result", "as", "a", "node", "-", "set", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/goxpath.go#L87-L99", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "goxpath.go", "func_name": "MustExec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//MustExec is like Exec, but panics instead of returning an error.", "docstring_tokens": ["MustExec", "is", "like", "Exec", "but", "panics", "instead", "of", "returning", "an", "error", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/goxpath.go#L102-L108", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "goxpath.go", "func_name": "ParseExec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ParseExec parses the XPath string, xpstr, and runs Exec.", "docstring_tokens": ["ParseExec", "parses", "the", "XPath", "string", "xpstr", "and", "runs", "Exec", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/goxpath.go#L111-L117", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/xmltree/xmlele/xmlele.go", "func_name": "CreateNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//CreateNode is an implementation of xmlbuilder.XMLBuilder. It appends the node\n//specified in opts and returns the child if it is an element. Otherwise, it returns x.", "docstring_tokens": ["CreateNode", "is", "an", "implementation", "of", "xmlbuilder", ".", "XMLBuilder", ".", "It", "appends", "the", "node", "specified", "in", "opts", "and", "returns", "the", "child", "if", "it", "is", "an", "element", ".", "Otherwise", "it", "returns", "x", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/xmltree/xmlele/xmlele.go#L29-L59", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/xmltree/xmlele/xmlele.go", "func_name": "GetChildren", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetChildren returns all child nodes of the element", "docstring_tokens": ["GetChildren", "returns", "all", "child", "nodes", "of", "the", "element"], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/xmltree/xmlele/xmlele.go#L77-L85", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/xmltree/xmlele/xmlele.go", "func_name": "GetAttrs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetAttrs returns all attributes of the element", "docstring_tokens": ["GetAttrs", "returns", "all", "attributes", "of", "the", "element"], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/xmltree/xmlele/xmlele.go#L88-L94", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/xmltree/xmlele/xmlele.go", "func_name": "ResValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ResValue returns the string value of the element and children", "docstring_tokens": ["ResValue", "returns", "the", "string", "value", "of", "the", "element", "and", "children"], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/xmltree/xmlele/xmlele.go#L97-L106", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "parser/parser.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Parse creates an AST tree for XPath expressions.", "docstring_tokens": ["Parse", "creates", "an", "AST", "tree", "for", "XPath", "expressions", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/parser/parser.go#L89-L104", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/xmltree/xmlnode/xmlnode.go", "func_name": "GetToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetToken returns the xml.Token representation of the node", "docstring_tokens": ["GetToken", "returns", "the", "xml", ".", "Token", "representation", "of", "the", "node"], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/xmltree/xmlnode/xmlnode.go#L18-L24", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/xmltree/xmlnode/xmlnode.go", "func_name": "ResValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ResValue returns the string value of the attribute", "docstring_tokens": ["ResValue", "returns", "the", "string", "value", "of", "the", "attribute"], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/xmltree/xmlnode/xmlnode.go#L32-L43", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "internal/execxp/execxp.go", "func_name": "Exec", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Exec executes the XPath expression, xp, against the tree, t, with the\n//namespace mappings, ns.", "docstring_tokens": ["Exec", "executes", "the", "XPath", "expression", "xp", "against", "the", "tree", "t", "with", "the", "namespace", "mappings", "ns", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/internal/execxp/execxp.go#L12-L22", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/xtypes.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ResValue satisfies the Res interface for Num", "docstring_tokens": ["ResValue", "satisfies", "the", "Res", "interface", "for", "Num"], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/xtypes.go#L46-L54", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/xtypes.go", "func_name": "Num", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Num satisfies the HasNum interface for String's", "docstring_tokens": ["Num", "satisfies", "the", "HasNum", "interface", "for", "String", "s"], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/xtypes.go#L80-L86", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/tree.go", "func_name": "BuildNS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//BuildNS resolves all the namespace nodes of the element and returns them", "docstring_tokens": ["BuildNS", "resolves", "all", "the", "namespace", "nodes", "of", "the", "element", "and", "returns", "them"], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/tree.go#L89-L116", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/tree.go", "func_name": "GetAttribute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetAttribute is a convenience function for getting the specified attribute from an element.\n//false is returned if the attribute is not found.", "docstring_tokens": ["GetAttribute", "is", "a", "convenience", "function", "for", "getting", "the", "specified", "attribute", "from", "an", "element", ".", "false", "is", "returned", "if", "the", "attribute", "is", "not", "found", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/tree.go#L157-L166", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/tree.go", "func_name": "GetAttributeVal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetAttributeVal is like GetAttribute, except it returns the attribute's value.", "docstring_tokens": ["GetAttributeVal", "is", "like", "GetAttribute", "except", "it", "returns", "the", "attribute", "s", "value", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/tree.go#L169-L172", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/tree.go", "func_name": "GetAttrValOrEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetAttrValOrEmpty is like GetAttributeVal, except it returns an empty string if\n//the attribute is not found instead of false.", "docstring_tokens": ["GetAttrValOrEmpty", "is", "like", "GetAttributeVal", "except", "it", "returns", "an", "empty", "string", "if", "the", "attribute", "is", "not", "found", "instead", "of", "false", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/tree.go#L176-L182", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "tree/tree.go", "func_name": "FindNodeByPos", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//FindNodeByPos finds a node from the given position. Returns nil if the node\n//is not found.", "docstring_tokens": ["FindNodeByPos", "finds", "a", "node", "from", "the", "given", "position", ".", "Returns", "nil", "if", "the", "node", "is", "not", "found", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/tree/tree.go#L186-L221", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "marshal.go", "func_name": "Marshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Marshal prints the result tree, r, in XML form to w.", "docstring_tokens": ["Marshal", "prints", "the", "result", "tree", "r", "in", "XML", "form", "to", "w", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/marshal.go#L12-L14", "partition": "test"} +{"repo": "ChrisTrenkamp/goxpath", "path": "marshal.go", "func_name": "MarshalStr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//MarshalStr is like Marhal, but returns a string.", "docstring_tokens": ["MarshalStr", "is", "like", "Marhal", "but", "returns", "a", "string", "."], "sha": "c385f95c6022e7756e91beac5f5510872f7dcb7d", "url": "https://github.com/ChrisTrenkamp/goxpath/blob/c385f95c6022e7756e91beac5f5510872f7dcb7d/marshal.go#L17-L22", "partition": "test"} +{"repo": "anmitsu/go-shlex", "path": "shlex.go", "func_name": "NewLexer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLexer creates a new Lexer reading from io.Reader. This Lexer\n// has a DefaultTokenizer according to posix and whitespacesplit\n// rules.", "docstring_tokens": ["NewLexer", "creates", "a", "new", "Lexer", "reading", "from", "io", ".", "Reader", ".", "This", "Lexer", "has", "a", "DefaultTokenizer", "according", "to", "posix", "and", "whitespacesplit", "rules", "."], "sha": "648efa622239a2f6ff949fed78ee37b48d499ba4", "url": "https://github.com/anmitsu/go-shlex/blob/648efa622239a2f6ff949fed78ee37b48d499ba4/shlex.go#L62-L69", "partition": "test"} +{"repo": "anmitsu/go-shlex", "path": "shlex.go", "func_name": "NewLexerString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLexerString creates a new Lexer reading from a string. This\n// Lexer has a DefaultTokenizer according to posix and whitespacesplit\n// rules.", "docstring_tokens": ["NewLexerString", "creates", "a", "new", "Lexer", "reading", "from", "a", "string", ".", "This", "Lexer", "has", "a", "DefaultTokenizer", "according", "to", "posix", "and", "whitespacesplit", "rules", "."], "sha": "648efa622239a2f6ff949fed78ee37b48d499ba4", "url": "https://github.com/anmitsu/go-shlex/blob/648efa622239a2f6ff949fed78ee37b48d499ba4/shlex.go#L74-L76", "partition": "test"} +{"repo": "anmitsu/go-shlex", "path": "shlex.go", "func_name": "Split", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Split splits a string according to posix or non-posix rules.", "docstring_tokens": ["Split", "splits", "a", "string", "according", "to", "posix", "or", "non", "-", "posix", "rules", "."], "sha": "648efa622239a2f6ff949fed78ee37b48d499ba4", "url": "https://github.com/anmitsu/go-shlex/blob/648efa622239a2f6ff949fed78ee37b48d499ba4/shlex.go#L79-L81", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/registry.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register registers a new error type", "docstring_tokens": ["Register", "registers", "a", "new", "error", "type"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/registry.go#L18-L32", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/registry.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns the descriptor if it exists or nil otherwise", "docstring_tokens": ["Get", "returns", "the", "descriptor", "if", "it", "exists", "or", "nil", "otherwise"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/registry.go#L35-L39", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/registry.go", "func_name": "GetAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAll returns all registered error descriptors", "docstring_tokens": ["GetAll", "returns", "all", "registered", "error", "descriptors"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/registry.go#L42-L51", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/registry.go", "func_name": "From", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// From lifts an error to be and Error", "docstring_tokens": ["From", "lifts", "an", "error", "to", "be", "and", "Error"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/registry.go#L71-L77", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/registry.go", "func_name": "Descriptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Descriptor returns the error descriptor from any error", "docstring_tokens": ["Descriptor", "returns", "the", "error", "descriptor", "from", "any", "error"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/registry.go#L80-L93", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/registry.go", "func_name": "GetAttributes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAttributes returns the error attributes or falls back\n// to empty attributes", "docstring_tokens": ["GetAttributes", "returns", "the", "error", "attributes", "or", "falls", "back", "to", "empty", "attributes"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/registry.go#L114-L121", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/http.go", "func_name": "HTTPStatusCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTPStatusCode returns the corresponding http status code from an error type", "docstring_tokens": ["HTTPStatusCode", "returns", "the", "corresponding", "http", "status", "code", "from", "an", "error", "type"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/http.go#L15-L50", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/http.go", "func_name": "HTTPStatusCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTPStatusCode returns the HTTP status code for the given error or 500 if it doesn't know", "docstring_tokens": ["HTTPStatusCode", "returns", "the", "HTTP", "status", "code", "for", "the", "given", "error", "or", "500", "if", "it", "doesn", "t", "know"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/http.go#L53-L60", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/http.go", "func_name": "HTTPStatusToType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTPStatusToType infers the error Type from a HTTP Status code", "docstring_tokens": ["HTTPStatusToType", "infers", "the", "error", "Type", "from", "a", "HTTP", "Status", "code"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/http.go#L63-L90", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/http.go", "func_name": "ToHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToHTTP writes the error to the http response", "docstring_tokens": ["ToHTTP", "writes", "the", "error", "to", "the", "http", "response"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/http.go#L122-L135", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/impl.go", "func_name": "toImpl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// toImpl creates an equivalent impl for any Error", "docstring_tokens": ["toImpl", "creates", "an", "equivalent", "impl", "for", "any", "Error"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/impl.go#L35-L46", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "MetadataFromIncomingContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MetadataFromIncomingContext gets the metadata from the given context", "docstring_tokens": ["MetadataFromIncomingContext", "gets", "the", "metadata", "from", "the", "given", "context"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L15-L18", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "MetadataFromOutgoingContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MetadataFromOutgoingContext gets the metadata from the given context", "docstring_tokens": ["MetadataFromOutgoingContext", "gets", "the", "metadata", "from", "the", "given", "context"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L21-L24", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "TokenFromMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TokenFromMetadata gets the token from the metadata or returns ErrNoToken", "docstring_tokens": ["TokenFromMetadata", "gets", "the", "token", "from", "the", "metadata", "or", "returns", "ErrNoToken"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L27-L33", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "TokenFromIncomingContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TokenFromIncomingContext gets the token from the incoming context or returns ErrNoToken", "docstring_tokens": ["TokenFromIncomingContext", "gets", "the", "token", "from", "the", "incoming", "context", "or", "returns", "ErrNoToken"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L42-L45", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "OutgoingContextWithToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OutgoingContextWithToken returns an outgoing context with the token", "docstring_tokens": ["OutgoingContextWithToken", "returns", "an", "outgoing", "context", "with", "the", "token"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L48-L50", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "KeyFromMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeyFromMetadata gets the key from the metadata or returns ErrNoKey", "docstring_tokens": ["KeyFromMetadata", "gets", "the", "key", "from", "the", "metadata", "or", "returns", "ErrNoKey"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L53-L59", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "KeyFromIncomingContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeyFromIncomingContext gets the key from the incoming context or returns ErrNoKey", "docstring_tokens": ["KeyFromIncomingContext", "gets", "the", "key", "from", "the", "incoming", "context", "or", "returns", "ErrNoKey"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L62-L65", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "OutgoingContextWithKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OutgoingContextWithKey returns an outgoing context with the key", "docstring_tokens": ["OutgoingContextWithKey", "returns", "an", "outgoing", "context", "with", "the", "key"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L68-L70", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "IDFromMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IDFromMetadata gets the key from the metadata or returns ErrNoID", "docstring_tokens": ["IDFromMetadata", "gets", "the", "key", "from", "the", "metadata", "or", "returns", "ErrNoID"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L73-L79", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "IDFromIncomingContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IDFromIncomingContext gets the key from the incoming context or returns ErrNoID", "docstring_tokens": ["IDFromIncomingContext", "gets", "the", "key", "from", "the", "incoming", "context", "or", "returns", "ErrNoID"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L82-L85", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "OutgoingContextWithID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OutgoingContextWithID returns an outgoing context with the id", "docstring_tokens": ["OutgoingContextWithID", "returns", "an", "outgoing", "context", "with", "the", "id"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L88-L90", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "ServiceInfoFromMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServiceInfoFromMetadata gets the service information from the metadata or returns empty strings", "docstring_tokens": ["ServiceInfoFromMetadata", "gets", "the", "service", "information", "from", "the", "metadata", "or", "returns", "empty", "strings"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L93-L107", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "ServiceInfoFromIncomingContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServiceInfoFromIncomingContext gets the service information from the incoming context or returns empty strings", "docstring_tokens": ["ServiceInfoFromIncomingContext", "gets", "the", "service", "information", "from", "the", "incoming", "context", "or", "returns", "empty", "strings"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L110-L113", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "OutgoingContextWithServiceInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OutgoingContextWithServiceInfo returns an outgoing context with the id", "docstring_tokens": ["OutgoingContextWithServiceInfo", "returns", "an", "outgoing", "context", "with", "the", "id"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L116-L118", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "LimitFromMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LimitFromMetadata gets the limit from the metadata", "docstring_tokens": ["LimitFromMetadata", "gets", "the", "limit", "from", "the", "metadata"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L121-L127", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "OffsetFromMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OffsetFromMetadata gets the offset from the metadata", "docstring_tokens": ["OffsetFromMetadata", "gets", "the", "offset", "from", "the", "metadata"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L130-L136", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "LimitAndOffsetFromIncomingContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LimitAndOffsetFromIncomingContext gets the limit and offset from the incoming context", "docstring_tokens": ["LimitAndOffsetFromIncomingContext", "gets", "the", "limit", "and", "offset", "from", "the", "incoming", "context"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L139-L150", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/ttnctx/context.go", "func_name": "OutgoingContextWithLimitAndOffset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OutgoingContextWithLimitAndOffset returns an outgoing context with the limit and offset", "docstring_tokens": ["OutgoingContextWithLimitAndOffset", "returns", "an", "outgoing", "context", "with", "the", "limit", "and", "offset"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/ttnctx/context.go#L153-L165", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "queue/schedule.go", "func_name": "before", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// returns true if i before j", "docstring_tokens": ["returns", "true", "if", "i", "before", "j"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/queue/schedule.go#L67-L77", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/descriptor.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new error based on the error descriptor", "docstring_tokens": ["New", "creates", "a", "new", "error", "based", "on", "the", "error", "descriptor"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/descriptor.go#L38-L49", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/namespaced/namespaced.go", "func_name": "WithNamespace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithNamespace adds a namespace to the logging context", "docstring_tokens": ["WithNamespace", "adds", "a", "namespace", "to", "the", "logging", "context"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/namespaced/namespaced.go#L21-L23", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/namespaced/namespaced.go", "func_name": "Wrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap wraps the logger in a Namespaced logger and enables the specified\n// namespaces. See SetNamespaces for information on how to set the namspaces", "docstring_tokens": ["Wrap", "wraps", "the", "logger", "in", "a", "Namespaced", "logger", "and", "enables", "the", "specified", "namespaces", ".", "See", "SetNamespaces", "for", "information", "on", "how", "to", "set", "the", "namspaces"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/namespaced/namespaced.go#L27-L34", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/namespaced/namespaced.go", "func_name": "WithField", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithField adds a field to the logger", "docstring_tokens": ["WithField", "adds", "a", "field", "to", "the", "logger"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/namespaced/namespaced.go#L52-L68", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/namespaced/namespaced.go", "func_name": "WithFields", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithFields adds multiple fields to the logger", "docstring_tokens": ["WithFields", "adds", "multiple", "fields", "to", "the", "logger"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/namespaced/namespaced.go#L71-L77", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/format.go", "func_name": "Format", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Format formats the values into the provided string", "docstring_tokens": ["Format", "formats", "the", "values", "into", "the", "provided", "string"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/format.go#L14-L38", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/format.go", "func_name": "fix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fix coerces types that cannot be formatted by messageformat to string", "docstring_tokens": ["Fix", "coerces", "types", "that", "cannot", "be", "formatted", "by", "messageformat", "to", "string"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/format.go#L41-L67", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/grpc.go", "func_name": "GRPCCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GRPCCode returns the corresponding http status code from an error type", "docstring_tokens": ["GRPCCode", "returns", "the", "corresponding", "http", "status", "code", "from", "an", "error", "type"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/grpc.go#L15-L48", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/grpc.go", "func_name": "GRPCCodeToType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GRPCCodeToType converts the gRPC error code to an error type or returns the\n// Unknown type if not possible.", "docstring_tokens": ["GRPCCodeToType", "converts", "the", "gRPC", "error", "code", "to", "an", "error", "type", "or", "returns", "the", "Unknown", "type", "if", "not", "possible", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/grpc.go#L52-L82", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/grpc.go", "func_name": "GRPCCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GRPCCode returns the corresponding http status code from an error", "docstring_tokens": ["GRPCCode", "returns", "the", "corresponding", "http", "status", "code", "from", "an", "error"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/grpc.go#L85-L92", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/grpc.go", "func_name": "FromGRPC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromGRPC parses a gRPC error and returns an Error", "docstring_tokens": ["FromGRPC", "parses", "a", "gRPC", "error", "and", "returns", "an", "Error"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/grpc.go#L98-L121", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/grpc.go", "func_name": "ToGRPC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToGRPC turns an error into a gRPC error", "docstring_tokens": ["ToGRPC", "turns", "an", "error", "into", "a", "gRPC", "error"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/grpc.go#L124-L131", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/namespaced/namespaces.go", "func_name": "IsEnabled", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isEnabled checks wether or not the namespace is enabled", "docstring_tokens": ["isEnabled", "checks", "wether", "or", "not", "the", "namespace", "is", "enabled"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/namespaced/namespaces.go#L16-L46", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/namespaced/namespaces.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set updates the namespaces", "docstring_tokens": ["Set", "updates", "the", "namespaces"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/namespaced/namespaces.go#L49-L53", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/cause.go", "func_name": "Cause", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Cause returns the cause of an error", "docstring_tokens": ["Cause", "returns", "the", "cause", "of", "an", "error"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/cause.go#L16-L35", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/code.go", "func_name": "parseCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// pareCode parses a string into a Code or returns 0 if the parse failed", "docstring_tokens": ["pareCode", "parses", "a", "string", "into", "a", "Code", "or", "returns", "0", "if", "the", "parse", "failed"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/code.go#L23-L29", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/rpcerror/grpc.go", "func_name": "UnaryServerInterceptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnaryServerInterceptor applies fn to errors returned by server.", "docstring_tokens": ["UnaryServerInterceptor", "applies", "fn", "to", "errors", "returned", "by", "server", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/rpcerror/grpc.go#L15-L20", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/rpcerror/grpc.go", "func_name": "StreamServerInterceptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StreamServerInterceptor applies fn to errors returned by server.", "docstring_tokens": ["StreamServerInterceptor", "applies", "fn", "to", "errors", "returned", "by", "server", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/rpcerror/grpc.go#L23-L27", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/rpcerror/grpc.go", "func_name": "UnaryClientInterceptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnaryClientInterceptor applies fn to errors recieved by client.", "docstring_tokens": ["UnaryClientInterceptor", "applies", "fn", "to", "errors", "recieved", "by", "client", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/rpcerror/grpc.go#L30-L34", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/rpcerror/grpc.go", "func_name": "StreamClientInterceptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StreamClientInterceptor applies fn to errors recieved by client.", "docstring_tokens": ["StreamClientInterceptor", "applies", "fn", "to", "errors", "recieved", "by", "client", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/rpcerror/grpc.go#L37-L42", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/restartstream/restart.go", "func_name": "Interceptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Interceptor automatically restarts streams on non-expected errors\n// To do so, the application should create a for-loop around RecvMsg, which\n// returns the same errors that are received from the server.\n//\n// An io.EOF indicates the end of the stream\n//\n// To stop the reconnect behaviour, you have to cancel the context", "docstring_tokens": ["Interceptor", "automatically", "restarts", "streams", "on", "non", "-", "expected", "errors", "To", "do", "so", "the", "application", "should", "create", "a", "for", "-", "loop", "around", "RecvMsg", "which", "returns", "the", "same", "errors", "that", "are", "received", "from", "the", "server", ".", "An", "io", ".", "EOF", "indicates", "the", "end", "of", "the", "stream", "To", "stop", "the", "reconnect", "behaviour", "you", "have", "to", "cancel", "the", "context"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/restartstream/restart.go#L200-L222", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/logrus/logrus.go", "func_name": "Wrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap logrus.Logger", "docstring_tokens": ["Wrap", "logrus", ".", "Logger"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/logrus/logrus.go#L14-L16", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "rate/rate.go", "func_name": "NewCounter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCounter returns a new rate counter with the given bucket size and retention", "docstring_tokens": ["NewCounter", "returns", "a", "new", "rate", "counter", "with", "the", "given", "bucket", "size", "and", "retention"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/rate/rate.go#L27-L33", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "rate/rate.go", "func_name": "NewRedisCounter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRedisCounter returns a new redis-based counter", "docstring_tokens": ["NewRedisCounter", "returns", "a", "new", "redis", "-", "based", "counter"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/rate/rate.go#L97-L104", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "rate/rate.go", "func_name": "NewLimiter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLimiter returns a new limiter", "docstring_tokens": ["NewLimiter", "returns", "a", "new", "limiter"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/rate/rate.go#L166-L172", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/auth/auth.go", "func_name": "WithInsecure", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithInsecure returns a copy of the TokenCredentials, allowing insecure transport", "docstring_tokens": ["WithInsecure", "returns", "a", "copy", "of", "the", "TokenCredentials", "allowing", "insecure", "transport"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/auth/auth.go#L23-L25", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/auth/auth.go", "func_name": "WithTokenFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTokenFunc returns TokenCredentials that execute the tokenFunc on each request\n// The value of v sent to the tokenFunk is the MD value of the supplied k", "docstring_tokens": ["WithTokenFunc", "returns", "TokenCredentials", "that", "execute", "the", "tokenFunc", "on", "each", "request", "The", "value", "of", "v", "sent", "to", "the", "tokenFunk", "is", "the", "MD", "value", "of", "the", "supplied", "k"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/auth/auth.go#L36-L41", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/auth/auth.go", "func_name": "GetRequestMetadata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRequestMetadata implements credentials.PerRPCCredentials", "docstring_tokens": ["GetRequestMetadata", "implements", "credentials", ".", "PerRPCCredentials"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/auth/auth.go#L47-L64", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/rpclog/fields.go", "func_name": "FieldsFromIncomingContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FieldsFromIncomingContext returns peer information and MDLogFields from the given context", "docstring_tokens": ["FieldsFromIncomingContext", "returns", "peer", "information", "and", "MDLogFields", "from", "the", "given", "context"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/rpclog/fields.go#L68-L77", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/type.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String implements stringer", "docstring_tokens": ["String", "implements", "stringer"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/type.go#L73-L108", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/type.go", "func_name": "UnmarshalText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalText implements TextUnmarsheler", "docstring_tokens": ["UnmarshalText", "implements", "TextUnmarsheler"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/type.go#L116-L125", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "errors/type.go", "func_name": "fromString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fromString parses a string into an error type. If the type is invalid, the\n// Unknown type will be returned as well as an error.", "docstring_tokens": ["fromString", "parses", "a", "string", "into", "an", "error", "type", ".", "If", "the", "type", "is", "invalid", "the", "Unknown", "type", "will", "be", "returned", "as", "well", "as", "an", "error", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/errors/type.go#L129-L165", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "stats/stats.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start starts the stat process that will log relevant memory-related stats\n// to ctx, at an interval determined by interval.", "docstring_tokens": ["Start", "starts", "the", "stat", "process", "that", "will", "log", "relevant", "memory", "-", "related", "stats", "to", "ctx", "at", "an", "interval", "determined", "by", "interval", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/stats/stats.go#L17-L29", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "queue/simple.go", "func_name": "NewSimple", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSimple returns a new Simple Queue", "docstring_tokens": ["NewSimple", "returns", "a", "new", "Simple", "Queue"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/queue/simple.go#L23-L29", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/filtered/filtered.go", "func_name": "Wrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap wraps an existing logger, filtering the fields as it goes along\n// using the provided filters", "docstring_tokens": ["Wrap", "wraps", "an", "existing", "logger", "filtering", "the", "fields", "as", "it", "goes", "along", "using", "the", "provided", "filters"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/filtered/filtered.go#L31-L36", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/filtered/filtered.go", "func_name": "WithFilters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithFilter creates a new Filtered that will use the extra filters", "docstring_tokens": ["WithFilter", "creates", "a", "new", "Filtered", "that", "will", "use", "the", "extra", "filters"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/filtered/filtered.go#L39-L44", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/filtered/filtered.go", "func_name": "WithField", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithField filters the field and passes it on to the wrapped loggers WithField", "docstring_tokens": ["WithField", "filters", "the", "field", "and", "passes", "it", "on", "to", "the", "wrapped", "loggers", "WithField"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/filtered/filtered.go#L47-L59", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/filtered/filtered.go", "func_name": "WithFields", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithFields filters the fields and passes them on to the wrapped loggers WithFields", "docstring_tokens": ["WithFields", "filters", "the", "fields", "and", "passes", "them", "on", "to", "the", "wrapped", "loggers", "WithFields"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/filtered/filtered.go#L62-L80", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/filtered/filtered.go", "func_name": "FilterSensitive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FilterSensitive creates a Filter that filters most sensitive data like passwords,\n// keys, access_tokens, etc. and replaces them with the elided value", "docstring_tokens": ["FilterSensitive", "creates", "a", "Filter", "that", "filters", "most", "sensitive", "data", "like", "passwords", "keys", "access_tokens", "etc", ".", "and", "replaces", "them", "with", "the", "elided", "value"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/filtered/filtered.go#L105-L116", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/filtered/filtered.go", "func_name": "SliceFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SliceFilter lifts the filter to also work on slices. It loses the\n// type information of the slice elements", "docstring_tokens": ["SliceFilter", "lifts", "the", "filter", "to", "also", "work", "on", "slices", ".", "It", "loses", "the", "type", "information", "of", "the", "slice", "elements"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/filtered/filtered.go#L120-L135", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/filtered/filtered.go", "func_name": "MapFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MapFilter lifts the filter to also work on maps. It loses the type\n// information of the map fields", "docstring_tokens": ["MapFilter", "lifts", "the", "filter", "to", "also", "work", "on", "maps", ".", "It", "loses", "the", "type", "information", "of", "the", "map", "fields"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/filtered/filtered.go#L139-L156", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/filtered/filtered.go", "func_name": "RestrictFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestrictFilter restricts the filter to only work on a certain field", "docstring_tokens": ["RestrictFilter", "restricts", "the", "filter", "to", "only", "work", "on", "a", "certain", "field"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/filtered/filtered.go#L159-L167", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/filtered/filtered.go", "func_name": "LowerCaseFilter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LowerCaseFilter creates a filter that only get passed lowercase field names", "docstring_tokens": ["LowerCaseFilter", "creates", "a", "filter", "that", "only", "get", "passed", "lowercase", "field", "names"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/filtered/filtered.go#L170-L174", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "influx/writer.go", "func_name": "newBatchPoints", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newBatchPoints creates new influxdb.BatchPoints with specified bpConf.\n// Panics on errors.", "docstring_tokens": ["newBatchPoints", "creates", "new", "influxdb", ".", "BatchPoints", "with", "specified", "bpConf", ".", "Panics", "on", "errors", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/influx/writer.go#L24-L31", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "influx/writer.go", "func_name": "NewSinglePointWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSinglePointWriter creates new SinglePointWriter", "docstring_tokens": ["NewSinglePointWriter", "creates", "new", "SinglePointWriter"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/influx/writer.go#L50-L55", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "influx/writer.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write creates new influxdb.BatchPoints containing p and delegates that to the writer", "docstring_tokens": ["Write", "creates", "new", "influxdb", ".", "BatchPoints", "containing", "p", "and", "delegates", "that", "to", "the", "writer"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/influx/writer.go#L58-L62", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "influx/writer.go", "func_name": "WithScalingInterval", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithInstanceLimit sets a limit on amount of additional instances spawned by BatchingWriter", "docstring_tokens": ["WithInstanceLimit", "sets", "a", "limit", "on", "amount", "of", "additional", "instances", "spawned", "by", "BatchingWriter"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/influx/writer.go#L148-L152", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "influx/writer.go", "func_name": "NewBatchingWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBatchingWriter creates new BatchingWriter. If WithScalingInterval is not specified, DefaultScalingInterval value is used. If WithInstanceLimit is not specified, DefaultInstanceLimit is used.", "docstring_tokens": ["NewBatchingWriter", "creates", "new", "BatchingWriter", ".", "If", "WithScalingInterval", "is", "not", "specified", "DefaultScalingInterval", "value", "is", "used", ".", "If", "WithInstanceLimit", "is", "not", "specified", "DefaultInstanceLimit", "is", "used", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/influx/writer.go#L155-L171", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "influx/writer.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write delegates p to a running instance of BatchingWriter and spawns new instances as required.", "docstring_tokens": ["Write", "delegates", "p", "to", "a", "running", "instance", "of", "BatchingWriter", "and", "spawns", "new", "instances", "as", "required", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/influx/writer.go#L174-L212", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "log/apex/apex.go", "func_name": "MustParseLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustParseLevel is a convience function that parses the passed in string\n// as a log level and sets the log level of the apexInterfaceWrapper to the\n// parsed level. If an error occurs it will handle it with w.Fatal", "docstring_tokens": ["MustParseLevel", "is", "a", "convience", "function", "that", "parses", "the", "passed", "in", "string", "as", "a", "log", "level", "and", "sets", "the", "log", "level", "of", "the", "apexInterfaceWrapper", "to", "the", "parsed", "level", ".", "If", "an", "error", "occurs", "it", "will", "handle", "it", "with", "w", ".", "Fatal"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/log/apex/apex.go#L56-L62", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/streambuffer/streambuffer.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new Stream with the given buffer size and setup function.", "docstring_tokens": ["New", "returns", "a", "new", "Stream", "with", "the", "given", "buffer", "size", "and", "setup", "function", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/streambuffer/streambuffer.go#L19-L25", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/streambuffer/streambuffer.go", "func_name": "SetLogger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLogger sets the logger for this streambuffer", "docstring_tokens": ["SetLogger", "sets", "the", "logger", "for", "this", "streambuffer"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/streambuffer/streambuffer.go#L54-L58", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/streambuffer/streambuffer.go", "func_name": "CloseRecv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloseRecv closes the receive channel", "docstring_tokens": ["CloseRecv", "closes", "the", "receive", "channel"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/streambuffer/streambuffer.go#L73-L80", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/streambuffer/streambuffer.go", "func_name": "Stats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stats of the stream", "docstring_tokens": ["Stats", "of", "the", "stream"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/streambuffer/streambuffer.go#L83-L85", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/streambuffer/streambuffer.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run the stream.\n//\n// This calls the underlying grpc.ClientStreams methods to send and receive messages over the stream.\n// Run returns the error returned by any of those functions, or context.Canceled if the context is canceled.", "docstring_tokens": ["Run", "the", "stream", ".", "This", "calls", "the", "underlying", "grpc", ".", "ClientStreams", "methods", "to", "send", "and", "receive", "messages", "over", "the", "stream", ".", "Run", "returns", "the", "error", "returned", "by", "any", "of", "those", "functions", "or", "context", ".", "Canceled", "if", "the", "context", "is", "canceled", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/streambuffer/streambuffer.go#L131-L201", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/rpclog/grpc.go", "func_name": "ServerOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServerOptions for logging RPCs", "docstring_tokens": ["ServerOptions", "for", "logging", "RPCs"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/rpclog/grpc.go#L23-L28", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/rpclog/grpc.go", "func_name": "ClientOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ClientOptions for logging RPCs", "docstring_tokens": ["ClientOptions", "for", "logging", "RPCs"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/rpclog/grpc.go#L31-L36", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/rpclog/grpc.go", "func_name": "UnaryServerInterceptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnaryServerInterceptor logs unary RPCs on the server side", "docstring_tokens": ["UnaryServerInterceptor", "logs", "unary", "RPCs", "on", "the", "server", "side"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/rpclog/grpc.go#L39-L53", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/rpclog/grpc.go", "func_name": "StreamServerInterceptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StreamServerInterceptor logs streaming RPCs on the server side", "docstring_tokens": ["StreamServerInterceptor", "logs", "streaming", "RPCs", "on", "the", "server", "side"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/rpclog/grpc.go#L56-L75", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/rpclog/grpc.go", "func_name": "UnaryClientInterceptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnaryClientInterceptor logs unary RPCs on the client side", "docstring_tokens": ["UnaryClientInterceptor", "logs", "unary", "RPCs", "on", "the", "client", "side"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/rpclog/grpc.go#L78-L92", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "grpc/rpclog/grpc.go", "func_name": "StreamClientInterceptor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StreamClientInterceptor logs streaming RPCs on the client side", "docstring_tokens": ["StreamClientInterceptor", "logs", "streaming", "RPCs", "on", "the", "client", "side"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/grpc/rpclog/grpc.go#L95-L118", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "handlers/elasticsearch/elasticsearch.go", "func_name": "defaults", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// defaults applies defaults to the config.", "docstring_tokens": ["defaults", "applies", "defaults", "to", "the", "config", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/handlers/elasticsearch/elasticsearch.go#L30-L38", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "handlers/elasticsearch/elasticsearch.go", "func_name": "Flush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Flush the current `batch`.", "docstring_tokens": ["Flush", "the", "current", "batch", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/handlers/elasticsearch/elasticsearch.go#L96-L103", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "handlers/cli/cli.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New handler.", "docstring_tokens": ["New", "handler", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/handlers/cli/cli.go#L72-L89", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "handlers/cli/cli.go", "func_name": "HandleLog", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleLog implements log.Handler.", "docstring_tokens": ["HandleLog", "implements", "log", ".", "Handler", "."], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/handlers/cli/cli.go#L92-L135", "partition": "test"} +{"repo": "TheThingsNetwork/go-utils", "path": "pseudorandom/random.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new Random, in most cases you can also just use the global funcs", "docstring_tokens": ["New", "returns", "a", "new", "Random", "in", "most", "cases", "you", "can", "also", "just", "use", "the", "global", "funcs"], "sha": "aa2a11bd59104d2a8609328c2b2b55da61826470", "url": "https://github.com/TheThingsNetwork/go-utils/blob/aa2a11bd59104d2a8609328c2b2b55da61826470/pseudorandom/random.go#L21-L27", "partition": "test"} +{"repo": "jtacoma/uritemplates", "path": "uritemplates.go", "func_name": "Names", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Names returns the names of all variables within the template.", "docstring_tokens": ["Names", "returns", "the", "names", "of", "all", "variables", "within", "the", "template", "."], "sha": "307ae868f90f4ee1b73ebe4596e0394237dacce8", "url": "https://github.com/jtacoma/uritemplates/blob/307ae868f90f4ee1b73ebe4596e0394237dacce8/uritemplates.go#L192-L206", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "perfdata.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the string representation of a PerfDatum, suitable for\n// check output.", "docstring_tokens": ["String", "returns", "the", "string", "representation", "of", "a", "PerfDatum", "suitable", "for", "check", "output", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/perfdata.go#L99-L105", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "perfdata.go", "func_name": "RenderPerfdata", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenderPerfdata accepts a slice of PerfDatum objects and returns their\n// concatenated string representations in a form suitable to append to\n// the first line of check output.", "docstring_tokens": ["RenderPerfdata", "accepts", "a", "slice", "of", "PerfDatum", "objects", "and", "returns", "their", "concatenated", "string", "representations", "in", "a", "form", "suitable", "to", "append", "to", "the", "first", "line", "of", "check", "output", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/perfdata.go#L110-L121", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "check.go", "func_name": "Exit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exit is a standalone exit function for simple checks without multiple results\n// or perfdata.", "docstring_tokens": ["Exit", "is", "a", "standalone", "exit", "function", "for", "simple", "checks", "without", "multiple", "results", "or", "perfdata", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/check.go#L15-L18", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "check.go", "func_name": "NewCheckWithOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCheckWithOptions returns an empty Check object with\n// caller-specified behavioural modifications. See CheckOptions.", "docstring_tokens": ["NewCheckWithOptions", "returns", "an", "empty", "Check", "object", "with", "caller", "-", "specified", "behavioural", "modifications", ".", "See", "CheckOptions", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/check.go#L57-L63", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "check.go", "func_name": "AddResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddResult adds a check result. This will not terminate the check. If\n// status is the highest yet reported, this will update the check's\n// final return status.", "docstring_tokens": ["AddResult", "adds", "a", "check", "result", ".", "This", "will", "not", "terminate", "the", "check", ".", "If", "status", "is", "the", "highest", "yet", "reported", "this", "will", "update", "the", "check", "s", "final", "return", "status", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/check.go#L68-L77", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "check.go", "func_name": "AddResultf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddResultf functions as AddResult, but takes a printf-style format\n// string and arguments.", "docstring_tokens": ["AddResultf", "functions", "as", "AddResult", "but", "takes", "a", "printf", "-", "style", "format", "string", "and", "arguments", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/check.go#L81-L84", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "check.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String representation of the check results, suitable for output and\n// parsing by Nagios.", "docstring_tokens": ["String", "representation", "of", "the", "check", "results", "suitable", "for", "output", "and", "parsing", "by", "Nagios", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/check.go#L125-L129", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "check.go", "func_name": "Exitf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exitf takes a status plus a format string, and a list of\n// parameters to pass to Sprintf. It then immediately outputs and exits.", "docstring_tokens": ["Exitf", "takes", "a", "status", "plus", "a", "format", "string", "and", "a", "list", "of", "parameters", "to", "pass", "to", "Sprintf", ".", "It", "then", "immediately", "outputs", "and", "exits", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/check.go#L146-L150", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "check.go", "func_name": "Criticalf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Criticalf is a shorthand function which exits the check with status\n// CRITICAL and the message provided.", "docstring_tokens": ["Criticalf", "is", "a", "shorthand", "function", "which", "exits", "the", "check", "with", "status", "CRITICAL", "and", "the", "message", "provided", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/check.go#L154-L156", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "check.go", "func_name": "Unknownf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unknownf is a shorthand function which exits the check with status\n// UNKNOWN and the message provided.", "docstring_tokens": ["Unknownf", "is", "a", "shorthand", "function", "which", "exits", "the", "check", "with", "status", "UNKNOWN", "and", "the", "message", "provided", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/check.go#L160-L162", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "result.go", "func_name": "NewDefaultStatusPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDefaultStatusPolicy returns a status policy that assigns relative\n// severity in accordance with conventional Nagios plugin return codes.\n// Statuses associated with higher return codes are more severe.", "docstring_tokens": ["NewDefaultStatusPolicy", "returns", "a", "status", "policy", "that", "assigns", "relative", "severity", "in", "accordance", "with", "conventional", "Nagios", "plugin", "return", "codes", ".", "Statuses", "associated", "with", "higher", "return", "codes", "are", "more", "severe", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/result.go#L29-L36", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "result.go", "func_name": "NewStatusPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStatusPolicy returns a status policy that assigns relative\n// severity in accordance with a user-configurable prioritised slice.\n// Check statuses must be listed in ascending severity order.", "docstring_tokens": ["NewStatusPolicy", "returns", "a", "status", "policy", "that", "assigns", "relative", "severity", "in", "accordance", "with", "a", "user", "-", "configurable", "prioritised", "slice", ".", "Check", "statuses", "must", "be", "listed", "in", "ascending", "severity", "order", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/result.go#L50-L66", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "range.go", "func_name": "ParseRange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseRange returns a new range object and nil if the given range definition was\n// valid, or nil and an error if it was invalid.", "docstring_tokens": ["ParseRange", "returns", "a", "new", "range", "object", "and", "nil", "if", "the", "given", "range", "definition", "was", "valid", "or", "nil", "and", "an", "error", "if", "it", "was", "invalid", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/range.go#L24-L70", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "range.go", "func_name": "Check", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check returns true if an alert should be raised based on the range (if the\n// value is outside the range for normal semantics, or if the value is\n// inside the range for inverted semantics ('@-semantics')).", "docstring_tokens": ["Check", "returns", "true", "if", "an", "alert", "should", "be", "raised", "based", "on", "the", "range", "(", "if", "the", "value", "is", "outside", "the", "range", "for", "normal", "semantics", "or", "if", "the", "value", "is", "inside", "the", "range", "for", "inverted", "semantics", "("], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/range.go#L75-L81", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "range.go", "func_name": "CheckInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckInt is a convenience method which does an unchecked type\n// conversion from an int to a float64.", "docstring_tokens": ["CheckInt", "is", "a", "convenience", "method", "which", "does", "an", "unchecked", "type", "conversion", "from", "an", "int", "to", "a", "float64", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/range.go#L85-L87", "partition": "test"} +{"repo": "olorin/nagiosplugin", "path": "range.go", "func_name": "CheckUint64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CheckUint64 is a convenience method which does an unchecked type\n// conversion from an uint64 to a float64.", "docstring_tokens": ["CheckUint64", "is", "a", "convenience", "method", "which", "does", "an", "unchecked", "type", "conversion", "from", "an", "uint64", "to", "a", "float64", "."], "sha": "893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064", "url": "https://github.com/olorin/nagiosplugin/blob/893f9702af4ea1e2dc4cd6528cbdcdb3dc7ca064/range.go#L91-L93", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClient returns a configured Rundeck client.", "docstring_tokens": ["NewClient", "returns", "a", "configured", "Rundeck", "client", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/client.go#L50-L72", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/key.go", "func_name": "GetKeyMeta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetKeyMeta returns the metadata for the key at the given keystore path.", "docstring_tokens": ["GetKeyMeta", "returns", "the", "metadata", "for", "the", "key", "at", "the", "given", "keystore", "path", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/key.go#L25-L29", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/key.go", "func_name": "GetKeysInDirMeta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetKeysInDirMeta returns the metadata for the keys and subdirectories within\n// the directory at the given keystore path.", "docstring_tokens": ["GetKeysInDirMeta", "returns", "the", "metadata", "for", "the", "keys", "and", "subdirectories", "within", "the", "directory", "at", "the", "given", "keystore", "path", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/key.go#L33-L40", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/key.go", "func_name": "GetKeyContent", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetKeyContent retrieves and returns the content of the key at the given keystore path.\n// Private keys are write-only, so they cannot be retrieved via this interface.", "docstring_tokens": ["GetKeyContent", "retrieves", "and", "returns", "the", "content", "of", "the", "key", "at", "the", "given", "keystore", "path", ".", "Private", "keys", "are", "write", "-", "only", "so", "they", "cannot", "be", "retrieved", "via", "this", "interface", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/key.go#L44-L46", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/job.go", "func_name": "GetJobSummariesForProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetJobSummariesForProject returns summaries of the jobs belonging to the named project.", "docstring_tokens": ["GetJobSummariesForProject", "returns", "summaries", "of", "the", "jobs", "belonging", "to", "the", "named", "project", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/job.go#L310-L314", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/job.go", "func_name": "GetJobsForProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetJobsForProject returns the full job details of the jobs belonging to the named project.", "docstring_tokens": ["GetJobsForProject", "returns", "the", "full", "job", "details", "of", "the", "jobs", "belonging", "to", "the", "named", "project", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/job.go#L317-L324", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/job.go", "func_name": "GetJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetJob returns the full job details of the job with the given id.", "docstring_tokens": ["GetJob", "returns", "the", "full", "job", "details", "of", "the", "job", "with", "the", "given", "id", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/job.go#L327-L334", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/job.go", "func_name": "CreateJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateJob creates a new job based on the provided structure.", "docstring_tokens": ["CreateJob", "creates", "a", "new", "job", "based", "on", "the", "provided", "structure", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/job.go#L337-L339", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/job.go", "func_name": "CreateOrUpdateJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateOrUpdateJob takes a job detail structure which has its ID set and either updates\n// an existing job with the same id or creates a new job with that id.", "docstring_tokens": ["CreateOrUpdateJob", "takes", "a", "job", "detail", "structure", "which", "has", "its", "ID", "set", "and", "either", "updates", "an", "existing", "job", "with", "the", "same", "id", "or", "creates", "a", "new", "job", "with", "that", "id", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/job.go#L343-L345", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/job.go", "func_name": "DeleteJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteJob deletes the job with the given id.", "docstring_tokens": ["DeleteJob", "deletes", "the", "job", "with", "the", "given", "id", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/job.go#L377-L379", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/job.go", "func_name": "JobSummary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JobSummary produces a JobSummary instance with values populated from the import result.\n// The summary object won't have its Description populated, since import results do not\n// include descriptions.", "docstring_tokens": ["JobSummary", "produces", "a", "JobSummary", "instance", "with", "values", "populated", "from", "the", "import", "result", ".", "The", "summary", "object", "won", "t", "have", "its", "Description", "populated", "since", "import", "results", "do", "not", "include", "descriptions", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/job.go#L457-L464", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/system_info.go", "func_name": "GetSystemInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSystemInfo retrieves and returns miscellaneous system information about the Rundeck server\n// and the machine it's running on.", "docstring_tokens": ["GetSystemInfo", "retrieves", "and", "returns", "miscellaneous", "system", "information", "about", "the", "Rundeck", "server", "and", "the", "machine", "it", "s", "running", "on", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/system_info.go#L103-L107", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/system_info.go", "func_name": "DateTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DateTime produces a time.Time object from a SystemTimestamp object.", "docstring_tokens": ["DateTime", "produces", "a", "time", ".", "Time", "object", "from", "a", "SystemTimestamp", "object", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/system_info.go#L110-L116", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/project.go", "func_name": "GetAllProjects", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAllProjects retrieves and returns all of the projects defined in the Rundeck server.", "docstring_tokens": ["GetAllProjects", "retrieves", "and", "returns", "all", "of", "the", "projects", "defined", "in", "the", "Rundeck", "server", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/project.go#L45-L49", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/project.go", "func_name": "GetProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetProject retrieves and returns the named project.", "docstring_tokens": ["GetProject", "retrieves", "and", "returns", "the", "named", "project", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/project.go#L52-L56", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/project.go", "func_name": "CreateProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateProject creates a new, empty project.", "docstring_tokens": ["CreateProject", "creates", "a", "new", "empty", "project", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/project.go#L59-L63", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/project.go", "func_name": "DeleteProject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteProject deletes a project and all of its jobs.", "docstring_tokens": ["DeleteProject", "deletes", "a", "project", "and", "all", "of", "its", "jobs", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/project.go#L66-L68", "partition": "test"} +{"repo": "apparentlymart/go-rundeck-api", "path": "rundeck/project.go", "func_name": "SetProjectConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetProjectConfig replaces the configuration of the named project.", "docstring_tokens": ["SetProjectConfig", "replaces", "the", "configuration", "of", "the", "named", "project", "."], "sha": "2c962acae81080a937c350a5bea054c239f27a81", "url": "https://github.com/apparentlymart/go-rundeck-api/blob/2c962acae81080a937c350a5bea054c239f27a81/rundeck/project.go#L71-L77", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "profitbricks.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewClient is a constructor for Client object", "docstring_tokens": ["NewClient", "is", "a", "constructor", "for", "Client", "object"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/profitbricks.go#L15-L23", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "profitbricks.go", "func_name": "NewClientbyToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewClientbyToken is a constructor for Client object using bearer tokens for\n// authentication instead of username, password", "docstring_tokens": ["NewClientbyToken", "is", "a", "constructor", "for", "Client", "object", "using", "bearer", "tokens", "for", "authentication", "instead", "of", "username", "password"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/profitbricks.go#L27-L34", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "profitbricks.go", "func_name": "SetDepth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDepth sets depth parameter for api calls", "docstring_tokens": ["SetDepth", "sets", "depth", "parameter", "for", "api", "calls"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/profitbricks.go#L37-L39", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "datacenter.go", "func_name": "ListDatacenters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListDatacenters lists all data centers", "docstring_tokens": ["ListDatacenters", "lists", "all", "data", "centers"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/datacenter.go#L59-L64", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "datacenter.go", "func_name": "CreateDatacenter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//CreateDatacenter creates a data center", "docstring_tokens": ["CreateDatacenter", "creates", "a", "data", "center"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/datacenter.go#L67-L72", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "datacenter.go", "func_name": "GetDatacenter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetDatacenter gets a datacenter", "docstring_tokens": ["GetDatacenter", "gets", "a", "datacenter"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/datacenter.go#L75-L80", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "datacenter.go", "func_name": "UpdateDataCenter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//UpdateDataCenter updates a data center", "docstring_tokens": ["UpdateDataCenter", "updates", "a", "data", "center"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/datacenter.go#L83-L88", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "datacenter.go", "func_name": "DeleteDatacenter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//DeleteDatacenter deletes a data center", "docstring_tokens": ["DeleteDatacenter", "deletes", "a", "data", "center"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/datacenter.go#L91-L95", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "datacenter.go", "func_name": "WaitTillProvisioned", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//WaitTillProvisioned helper function", "docstring_tokens": ["WaitTillProvisioned", "helper", "function"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/datacenter.go#L98-L112", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "firewallrule.go", "func_name": "ListFirewallRules", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListFirewallRules lists all firewall rules", "docstring_tokens": ["ListFirewallRules", "lists", "all", "firewall", "rules"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/firewallrule.go#L45-L50", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "firewallrule.go", "func_name": "GetFirewallRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetFirewallRule gets a firewall rule", "docstring_tokens": ["GetFirewallRule", "gets", "a", "firewall", "rule"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/firewallrule.go#L53-L58", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "firewallrule.go", "func_name": "CreateFirewallRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//CreateFirewallRule creates a firewall rule", "docstring_tokens": ["CreateFirewallRule", "creates", "a", "firewall", "rule"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/firewallrule.go#L61-L66", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "firewallrule.go", "func_name": "UpdateFirewallRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//UpdateFirewallRule updates a firewall rule", "docstring_tokens": ["UpdateFirewallRule", "updates", "a", "firewall", "rule"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/firewallrule.go#L69-L74", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "firewallrule.go", "func_name": "DeleteFirewallRule", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//DeleteFirewallRule deletes a firewall rule", "docstring_tokens": ["DeleteFirewallRule", "deletes", "a", "firewall", "rule"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/firewallrule.go#L77-L82", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "loadbalancer.go", "func_name": "ListLoadbalancers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListLoadbalancers returns a Collection struct for loadbalancers in the Datacenter", "docstring_tokens": ["ListLoadbalancers", "returns", "a", "Collection", "struct", "for", "loadbalancers", "in", "the", "Datacenter"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/loadbalancer.go#L54-L60", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "loadbalancer.go", "func_name": "GetLoadbalancer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetLoadbalancer pulls data for the Loadbalancer where id = lbalid returns a Instance struct", "docstring_tokens": ["GetLoadbalancer", "pulls", "data", "for", "the", "Loadbalancer", "where", "id", "=", "lbalid", "returns", "a", "Instance", "struct"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/loadbalancer.go#L72-L77", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "loadbalancer.go", "func_name": "UpdateLoadbalancer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//UpdateLoadbalancer updates a load balancer", "docstring_tokens": ["UpdateLoadbalancer", "updates", "a", "load", "balancer"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/loadbalancer.go#L80-L85", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "loadbalancer.go", "func_name": "DeleteLoadbalancer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//DeleteLoadbalancer deletes a load balancer", "docstring_tokens": ["DeleteLoadbalancer", "deletes", "a", "load", "balancer"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/loadbalancer.go#L88-L93", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "loadbalancer.go", "func_name": "ListBalancedNics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListBalancedNics lists balanced nics", "docstring_tokens": ["ListBalancedNics", "lists", "balanced", "nics"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/loadbalancer.go#L96-L101", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "loadbalancer.go", "func_name": "AssociateNic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AssociateNic attach a nic to load balancer", "docstring_tokens": ["AssociateNic", "attach", "a", "nic", "to", "load", "balancer"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/loadbalancer.go#L104-L110", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "loadbalancer.go", "func_name": "GetBalancedNic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetBalancedNic gets a balanced nic", "docstring_tokens": ["GetBalancedNic", "gets", "a", "balanced", "nic"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/loadbalancer.go#L113-L118", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "loadbalancer.go", "func_name": "DeleteBalancedNic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//DeleteBalancedNic removes a balanced nic", "docstring_tokens": ["DeleteBalancedNic", "removes", "a", "balanced", "nic"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/loadbalancer.go#L121-L126", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "lan.go", "func_name": "ListLans", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListLans returns a Collection for lans in the Datacenter", "docstring_tokens": ["ListLans", "returns", "a", "Collection", "for", "lans", "in", "the", "Datacenter"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/lan.go#L59-L64", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "lan.go", "func_name": "GetLan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLan pulls data for the lan where id = lanid returns an Instance struct", "docstring_tokens": ["GetLan", "pulls", "data", "for", "the", "lan", "where", "id", "=", "lanid", "returns", "an", "Instance", "struct"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/lan.go#L76-L81", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "lan.go", "func_name": "DeleteLan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteLan deletes a lan where id == lanid", "docstring_tokens": ["DeleteLan", "deletes", "a", "lan", "where", "id", "==", "lanid"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/lan.go#L92-L97", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "nic.go", "func_name": "ListNics", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListNics returns a Nics struct collection", "docstring_tokens": ["ListNics", "returns", "a", "Nics", "struct", "collection"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/nic.go#L49-L54", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "nic.go", "func_name": "CreateNic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateNic creates a nic on a server", "docstring_tokens": ["CreateNic", "creates", "a", "nic", "on", "a", "server"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/nic.go#L57-L64", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "nic.go", "func_name": "GetNic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNic pulls data for the nic where id = srvid returns a Instance struct", "docstring_tokens": ["GetNic", "pulls", "data", "for", "the", "nic", "where", "id", "=", "srvid", "returns", "a", "Instance", "struct"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/nic.go#L67-L73", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "nic.go", "func_name": "UpdateNic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateNic partial update of nic properties", "docstring_tokens": ["UpdateNic", "partial", "update", "of", "nic", "properties"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/nic.go#L76-L83", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "nic.go", "func_name": "DeleteNic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteNic deletes the nic where id=nicid and returns a Resp struct", "docstring_tokens": ["DeleteNic", "deletes", "the", "nic", "where", "id", "=", "nicid", "and", "returns", "a", "Resp", "struct"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/nic.go#L86-L91", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "snapshot.go", "func_name": "ListSnapshots", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListSnapshots lists all snapshots", "docstring_tokens": ["ListSnapshots", "lists", "all", "snapshots"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/snapshot.go#L51-L56", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "snapshot.go", "func_name": "GetSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetSnapshot gets a specific snapshot", "docstring_tokens": ["GetSnapshot", "gets", "a", "specific", "snapshot"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/snapshot.go#L59-L64", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "snapshot.go", "func_name": "DeleteSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteSnapshot deletes a specified snapshot", "docstring_tokens": ["DeleteSnapshot", "deletes", "a", "specified", "snapshot"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/snapshot.go#L67-L72", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "snapshot.go", "func_name": "UpdateSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateSnapshot updates a snapshot", "docstring_tokens": ["UpdateSnapshot", "updates", "a", "snapshot"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/snapshot.go#L75-L80", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "ipblock.go", "func_name": "ListIPBlocks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListIPBlocks lists all IP blocks", "docstring_tokens": ["ListIPBlocks", "lists", "all", "IP", "blocks"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/ipblock.go#L40-L45", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "ipblock.go", "func_name": "ReserveIPBlock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ReserveIPBlock creates an IP block", "docstring_tokens": ["ReserveIPBlock", "creates", "an", "IP", "block"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/ipblock.go#L48-L53", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "ipblock.go", "func_name": "GetIPBlock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetIPBlock gets an IP blocks", "docstring_tokens": ["GetIPBlock", "gets", "an", "IP", "blocks"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/ipblock.go#L56-L61", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "ipblock.go", "func_name": "UpdateIPBlock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateIPBlock partial update of ipblock properties", "docstring_tokens": ["UpdateIPBlock", "partial", "update", "of", "ipblock", "properties"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/ipblock.go#L64-L69", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "ipblock.go", "func_name": "ReleaseIPBlock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ReleaseIPBlock deletes an IP block", "docstring_tokens": ["ReleaseIPBlock", "deletes", "an", "IP", "block"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/ipblock.go#L72-L77", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "volume.go", "func_name": "ListVolumes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListVolumes returns a Collection struct for volumes in the Datacenter", "docstring_tokens": ["ListVolumes", "returns", "a", "Collection", "struct", "for", "volumes", "in", "the", "Datacenter"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/volume.go#L58-L63", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "volume.go", "func_name": "GetVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetVolume gets a volume", "docstring_tokens": ["GetVolume", "gets", "a", "volume"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/volume.go#L66-L71", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "volume.go", "func_name": "UpdateVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//UpdateVolume updates a volume", "docstring_tokens": ["UpdateVolume", "updates", "a", "volume"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/volume.go#L74-L79", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "volume.go", "func_name": "CreateVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//CreateVolume creates a volume", "docstring_tokens": ["CreateVolume", "creates", "a", "volume"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/volume.go#L82-L87", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "volume.go", "func_name": "DeleteVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteVolume deletes a volume", "docstring_tokens": ["DeleteVolume", "deletes", "a", "volume"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/volume.go#L90-L95", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "volume.go", "func_name": "CreateSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//CreateSnapshot creates a volume snapshot", "docstring_tokens": ["CreateSnapshot", "creates", "a", "volume", "snapshot"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/volume.go#L98-L107", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "volume.go", "func_name": "RestoreSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RestoreSnapshot restores a volume with provided snapshot", "docstring_tokens": ["RestoreSnapshot", "restores", "a", "volume", "with", "provided", "snapshot"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/volume.go#L110-L117", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "server.go", "func_name": "ListServers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListServers returns a server struct collection", "docstring_tokens": ["ListServers", "returns", "a", "server", "struct", "collection"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/server.go#L59-L64", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "server.go", "func_name": "GetServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetServer pulls data for the server where id = srvid returns a Instance struct", "docstring_tokens": ["GetServer", "pulls", "data", "for", "the", "server", "where", "id", "=", "srvid", "returns", "a", "Instance", "struct"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/server.go#L75-L80", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "server.go", "func_name": "DeleteServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteServer deletes the server where id=srvid and returns Resp struct", "docstring_tokens": ["DeleteServer", "deletes", "the", "server", "where", "id", "=", "srvid", "and", "returns", "Resp", "struct"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/server.go#L92-L96", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "server.go", "func_name": "ListAttachedCdroms", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListAttachedCdroms returns list of attached cd roms", "docstring_tokens": ["ListAttachedCdroms", "returns", "list", "of", "attached", "cd", "roms"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/server.go#L99-L104", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "server.go", "func_name": "AttachCdrom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AttachCdrom attaches a CD rom", "docstring_tokens": ["AttachCdrom", "attaches", "a", "CD", "rom"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/server.go#L107-L117", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "server.go", "func_name": "GetAttachedCdrom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetAttachedCdrom gets attached cd roms", "docstring_tokens": ["GetAttachedCdrom", "gets", "attached", "cd", "roms"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/server.go#L120-L125", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "server.go", "func_name": "DetachCdrom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//DetachCdrom detaches a CD rom", "docstring_tokens": ["DetachCdrom", "detaches", "a", "CD", "rom"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/server.go#L128-L133", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "server.go", "func_name": "ListAttachedVolumes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListAttachedVolumes lists attached volumes", "docstring_tokens": ["ListAttachedVolumes", "lists", "attached", "volumes"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/server.go#L136-L141", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "server.go", "func_name": "AttachVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AttachVolume attaches a volume", "docstring_tokens": ["AttachVolume", "attaches", "a", "volume"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/server.go#L144-L155", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "server.go", "func_name": "GetAttachedVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetAttachedVolume gets an attached volume", "docstring_tokens": ["GetAttachedVolume", "gets", "an", "attached", "volume"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/server.go#L158-L164", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "server.go", "func_name": "DetachVolume", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//DetachVolume detaches a volume", "docstring_tokens": ["DetachVolume", "detaches", "a", "volume"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/server.go#L167-L172", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "server.go", "func_name": "StartServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartServer starts a server", "docstring_tokens": ["StartServer", "starts", "a", "server"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/server.go#L175-L180", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "location.go", "func_name": "ListLocations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListLocations returns location collection data", "docstring_tokens": ["ListLocations", "returns", "location", "collection", "data"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/location.go#L39-L44", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "location.go", "func_name": "GetRegionalLocations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRegionalLocations returns a list of available locations in a specific region", "docstring_tokens": ["GetRegionalLocations", "returns", "a", "list", "of", "available", "locations", "in", "a", "specific", "region"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/location.go#L47-L52", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "location.go", "func_name": "GetLocation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLocation returns location data", "docstring_tokens": ["GetLocation", "returns", "location", "data"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/location.go#L55-L60", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "contractresources.go", "func_name": "GetContractResources", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetContractResources returns list of contract resources", "docstring_tokens": ["GetContractResources", "returns", "list", "of", "contract", "resources"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/contractresources.go#L47-L53", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "image.go", "func_name": "ListImages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ListImages returns an Collection struct", "docstring_tokens": ["ListImages", "returns", "an", "Collection", "struct"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/image.go#L68-L73", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "image.go", "func_name": "GetImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetImage returns an Instance struct where id ==imageid", "docstring_tokens": ["GetImage", "returns", "an", "Instance", "struct", "where", "id", "==", "imageid"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/image.go#L76-L81", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "resp.go", "func_name": "PrintHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintHeaders prints the http headers as k,v pairs", "docstring_tokens": ["PrintHeaders", "prints", "the", "http", "headers", "as", "k", "v", "pairs"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/resp.go#L15-L20", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "ListGroups", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListGroups lists all groups", "docstring_tokens": ["ListGroups", "lists", "all", "groups"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L166-L171", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "GetGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetGroup gets a group", "docstring_tokens": ["GetGroup", "gets", "a", "group"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L174-L179", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "CreateGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//CreateGroup creates a group", "docstring_tokens": ["CreateGroup", "creates", "a", "group"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L182-L187", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "UpdateGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//UpdateGroup updates a group", "docstring_tokens": ["UpdateGroup", "updates", "a", "group"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L190-L195", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "DeleteGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//DeleteGroup deletes a group", "docstring_tokens": ["DeleteGroup", "deletes", "a", "group"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L198-L203", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "ListShares", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListShares lists all shares", "docstring_tokens": ["ListShares", "lists", "all", "shares"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L206-L211", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "GetShare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetShare gets a share", "docstring_tokens": ["GetShare", "gets", "a", "share"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L214-L219", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "AddShare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddShare adds a share", "docstring_tokens": ["AddShare", "adds", "a", "share"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L222-L227", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "UpdateShare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateShare updates a share", "docstring_tokens": ["UpdateShare", "updates", "a", "share"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L230-L235", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "DeleteShare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteShare deletes a share", "docstring_tokens": ["DeleteShare", "deletes", "a", "share"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L238-L243", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "ListGroupUsers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListGroupUsers lists Users in a group", "docstring_tokens": ["ListGroupUsers", "lists", "Users", "in", "a", "group"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L246-L251", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "AddUserToGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddUserToGroup adds a user to a group", "docstring_tokens": ["AddUserToGroup", "adds", "a", "user", "to", "a", "group"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L254-L261", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "DeleteUserFromGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteUserFromGroup removes a user from a group", "docstring_tokens": ["DeleteUserFromGroup", "removes", "a", "user", "from", "a", "group"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L264-L269", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "ListUsers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListUsers lists all users", "docstring_tokens": ["ListUsers", "lists", "all", "users"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L272-L277", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "GetUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUser gets a user", "docstring_tokens": ["GetUser", "gets", "a", "user"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L280-L285", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "CreateUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//CreateUser creates a user", "docstring_tokens": ["CreateUser", "creates", "a", "user"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L288-L293", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "UpdateUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//UpdateUser updates user information", "docstring_tokens": ["UpdateUser", "updates", "user", "information"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L296-L301", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "DeleteUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//DeleteUser deletes the specified user", "docstring_tokens": ["DeleteUser", "deletes", "the", "specified", "user"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L304-L309", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "ListResources", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListResources lists all resources", "docstring_tokens": ["ListResources", "lists", "all", "resources"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L312-L317", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "GetResourceByType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetResourceByType gets a resource by type", "docstring_tokens": ["GetResourceByType", "gets", "a", "resource", "by", "type"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L320-L325", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "usermanagment.go", "func_name": "ListResourcesByType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListResourcesByType list resources by type", "docstring_tokens": ["ListResourcesByType", "list", "resources", "by", "type"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/usermanagment.go#L328-L333", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "request.go", "func_name": "ListRequests", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ListRequests lists all requests", "docstring_tokens": ["ListRequests", "lists", "all", "requests"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/request.go#L72-L77", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "request.go", "func_name": "GetRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetRequest gets a specific request", "docstring_tokens": ["GetRequest", "gets", "a", "specific", "request"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/request.go#L80-L85", "partition": "test"} +{"repo": "profitbricks/profitbricks-sdk-go", "path": "request.go", "func_name": "GetRequestStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRequestStatus retursn status of the request", "docstring_tokens": ["GetRequestStatus", "retursn", "status", "of", "the", "request"], "sha": "1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4", "url": "https://github.com/profitbricks/profitbricks-sdk-go/blob/1d2db5f00bf5dd0b6c29273541c71c60cdf4d4d4/request.go#L88-L93", "partition": "test"} +{"repo": "mipearson/rfw", "path": "rfw.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close our writer. Subsequent writes will fail.", "docstring_tokens": ["Close", "our", "writer", ".", "Subsequent", "writes", "will", "fail", "."], "sha": "6f0a6f3266ba1058df9ef0c94cda1cecd2e62852", "url": "https://github.com/mipearson/rfw/blob/6f0a6f3266ba1058df9ef0c94cda1cecd2e62852/rfw.go#L55-L60", "partition": "test"} +{"repo": "qor/serializable_meta", "path": "serializable_meta.go", "func_name": "GetSerializableArgument", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSerializableArgument get serializable argument", "docstring_tokens": ["GetSerializableArgument", "get", "serializable", "argument"], "sha": "5fd8542db4170c6ce0f8d669b521803b87eb0a99", "url": "https://github.com/qor/serializable_meta/blob/5fd8542db4170c6ce0f8d669b521803b87eb0a99/serializable_meta.go#L67-L78", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "BoolVar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BoolVar defines a bool flag with specified name, default value, and\n// usage string. The argument p points to a bool variable in which to\n// store the value of the flag.", "docstring_tokens": ["BoolVar", "defines", "a", "bool", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "argument", "p", "points", "to", "a", "bool", "variable", "in", "which", "to", "store", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L53-L55", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "Bool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Bool defines a bool flag with specified name, default value, and\n// usage string. The return value is the address of a bool variable\n// that stores the value of the flag.", "docstring_tokens": ["Bool", "defines", "a", "bool", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "return", "value", "is", "the", "address", "of", "a", "bool", "variable", "that", "stores", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L60-L62", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "IntVar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IntVar defines an int flag with specified name, default value, and\n// usage string. The argument p points to an int variable in which to\n// store the value of the flag.", "docstring_tokens": ["IntVar", "defines", "an", "int", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "argument", "p", "points", "to", "an", "int", "variable", "in", "which", "to", "store", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L67-L69", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "Int", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Int defines an int flag with specified name, default value, and\n// usage string. The return value is the address of an int variable\n// that stores the value of the flag.", "docstring_tokens": ["Int", "defines", "an", "int", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "return", "value", "is", "the", "address", "of", "an", "int", "variable", "that", "stores", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L74-L76", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "Int64Var", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Int64Var defines an int64 flag with specified name, default value,\n// and usage string. The argument p points to an int64 variable in\n// which to store the value of the flag.", "docstring_tokens": ["Int64Var", "defines", "an", "int64", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "argument", "p", "points", "to", "an", "int64", "variable", "in", "which", "to", "store", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L81-L83", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "Int64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Int64 defines an int64 flag with specified name, default value, and\n// usage string. The return value is the address of an int64 variable\n// that stores the value of the flag.", "docstring_tokens": ["Int64", "defines", "an", "int64", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "return", "value", "is", "the", "address", "of", "an", "int64", "variable", "that", "stores", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L88-L90", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "UintVar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UintVar defines a uint flag with specified name, default value, and\n// usage string. The argument p points to a uint variable in which to\n// store the value of the flag.", "docstring_tokens": ["UintVar", "defines", "a", "uint", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "argument", "p", "points", "to", "a", "uint", "variable", "in", "which", "to", "store", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L95-L97", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "Uint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uint defines a uint flag with specified name, default value, and\n// usage string. The return value is the address of a uint variable\n// that stores the value of the flag.", "docstring_tokens": ["Uint", "defines", "a", "uint", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "return", "value", "is", "the", "address", "of", "a", "uint", "variable", "that", "stores", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L102-L104", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "Uint64Var", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uint64Var defines a uint64 flag with specified name, default value,\n// and usage string. The argument p points to a uint64 variable in\n// which to store the value of the flag.", "docstring_tokens": ["Uint64Var", "defines", "a", "uint64", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "argument", "p", "points", "to", "a", "uint64", "variable", "in", "which", "to", "store", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L109-L111", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "Uint64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Uint64 defines a uint64 flag with specified name, default value,\n// and usage string. The return value is the address of a uint64\n// variable that stores the value of the flag.", "docstring_tokens": ["Uint64", "defines", "a", "uint64", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "return", "value", "is", "the", "address", "of", "a", "uint64", "variable", "that", "stores", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L116-L118", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "StringVar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StringVar defines a string flag with specified name, default value,\n// and usage string. The argument p points to a string variable in\n// which to store the value of the flag.", "docstring_tokens": ["StringVar", "defines", "a", "string", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "argument", "p", "points", "to", "a", "string", "variable", "in", "which", "to", "store", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L123-L125", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String defines a string flag with specified name, default value,\n// and usage string. The return value is the address of a string\n// variable that stores the value of the flag.", "docstring_tokens": ["String", "defines", "a", "string", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "return", "value", "is", "the", "address", "of", "a", "string", "variable", "that", "stores", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L130-L132", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "Float64Var", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Float64Var defines a float64 flag with specified name, default\n// value, and usage string. The argument p points to a float64\n// variable in which to store the value of the flag.", "docstring_tokens": ["Float64Var", "defines", "a", "float64", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "argument", "p", "points", "to", "a", "float64", "variable", "in", "which", "to", "store", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L137-L139", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "Float64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Float64 defines a float64 flag with specified name, default value,\n// and usage string. The return value is the address of a float64\n// variable that stores the value of the flag.", "docstring_tokens": ["Float64", "defines", "a", "float64", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "return", "value", "is", "the", "address", "of", "a", "float64", "variable", "that", "stores", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L144-L146", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "DurationVar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DurationVar defines a time.Duration flag with specified name,\n// default value, and usage string. The argument p points to a\n// time.Duration variable in which to store the value of the flag.", "docstring_tokens": ["DurationVar", "defines", "a", "time", ".", "Duration", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "argument", "p", "points", "to", "a", "time", ".", "Duration", "variable", "in", "which", "to", "store", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L151-L153", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "Duration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Duration defines a time.Duration flag with specified name, default\n// value, and usage string. The return value is the address of a\n// time.Duration variable that stores the value of the flag.", "docstring_tokens": ["Duration", "defines", "a", "time", ".", "Duration", "flag", "with", "specified", "name", "default", "value", "and", "usage", "string", ".", "The", "return", "value", "is", "the", "address", "of", "a", "time", ".", "Duration", "variable", "that", "stores", "the", "value", "of", "the", "flag", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L158-L160", "partition": "test"} +{"repo": "ianschenck/envflag", "path": "envflag.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses the environment flags from os.Environ. Must be called\n// after all flags are defined and before flags are accessed by the\n// program.", "docstring_tokens": ["Parse", "parses", "the", "environment", "flags", "from", "os", ".", "Environ", ".", "Must", "be", "called", "after", "all", "flags", "are", "defined", "and", "before", "flags", "are", "accessed", "by", "the", "program", "."], "sha": "9111d830d133f952887a936367fb0211c3134f0d", "url": "https://github.com/ianschenck/envflag/blob/9111d830d133f952887a936367fb0211c3134f0d/envflag.go#L171-L182", "partition": "test"} +{"repo": "akutz/gotil", "path": "gotil.go", "func_name": "WriteStringToFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteStringToFile writes the string to the file at the provided path.", "docstring_tokens": ["WriteStringToFile", "writes", "the", "string", "to", "the", "file", "at", "the", "provided", "path", "."], "sha": "6fa2e80bd3ac40f15788cfc3d12ebba49a0add92", "url": "https://github.com/akutz/gotil/blob/6fa2e80bd3ac40f15788cfc3d12ebba49a0add92/gotil.go#L67-L77", "partition": "test"} +{"repo": "akutz/gotil", "path": "gotil.go", "func_name": "ReadFileToString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadFileToString reads the file at the provided path to a string.", "docstring_tokens": ["ReadFileToString", "reads", "the", "file", "at", "the", "provided", "path", "to", "a", "string", "."], "sha": "6fa2e80bd3ac40f15788cfc3d12ebba49a0add92", "url": "https://github.com/akutz/gotil/blob/6fa2e80bd3ac40f15788cfc3d12ebba49a0add92/gotil.go#L80-L92", "partition": "test"} +{"repo": "akutz/gotil", "path": "gotil.go", "func_name": "LineReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LineReader returns a channel that reads the contents of a reader\n// line-by-line.", "docstring_tokens": ["LineReader", "returns", "a", "channel", "that", "reads", "the", "contents", "of", "a", "reader", "line", "-", "by", "-", "line", "."], "sha": "6fa2e80bd3ac40f15788cfc3d12ebba49a0add92", "url": "https://github.com/akutz/gotil/blob/6fa2e80bd3ac40f15788cfc3d12ebba49a0add92/gotil.go#L136-L138", "partition": "test"} +{"repo": "akutz/gotil", "path": "gotil.go", "func_name": "LineReaderFrom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LineReaderFrom returns a channel that reads the contents of a file\n// line-by-line.", "docstring_tokens": ["LineReaderFrom", "returns", "a", "channel", "that", "reads", "the", "contents", "of", "a", "file", "line", "-", "by", "-", "line", "."], "sha": "6fa2e80bd3ac40f15788cfc3d12ebba49a0add92", "url": "https://github.com/akutz/gotil/blob/6fa2e80bd3ac40f15788cfc3d12ebba49a0add92/gotil.go#L142-L153", "partition": "test"} +{"repo": "akutz/gotil", "path": "gotil.go", "func_name": "FileExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FileExists returns a flag indicating whether a provided file path exists.", "docstring_tokens": ["FileExists", "returns", "a", "flag", "indicating", "whether", "a", "provided", "file", "path", "exists", "."], "sha": "6fa2e80bd3ac40f15788cfc3d12ebba49a0add92", "url": "https://github.com/akutz/gotil/blob/6fa2e80bd3ac40f15788cfc3d12ebba49a0add92/gotil.go#L156-L161", "partition": "test"} +{"repo": "akutz/gotil", "path": "gotil.go", "func_name": "FileExistsInPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FileExistsInPath returns a flag indicating whether the provided file exists\n// in the current path.", "docstring_tokens": ["FileExistsInPath", "returns", "a", "flag", "indicating", "whether", "the", "provided", "file", "exists", "in", "the", "current", "path", "."], "sha": "6fa2e80bd3ac40f15788cfc3d12ebba49a0add92", "url": "https://github.com/akutz/gotil/blob/6fa2e80bd3ac40f15788cfc3d12ebba49a0add92/gotil.go#L165-L168", "partition": "test"} +{"repo": "akutz/gotil", "path": "gotil.go", "func_name": "GetPathParts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPathParts returns the absolute directory path, the file name, and the\n// absolute path of the provided path string.", "docstring_tokens": ["GetPathParts", "returns", "the", "absolute", "directory", "path", "the", "file", "name", "and", "the", "absolute", "path", "of", "the", "provided", "path", "string", "."], "sha": "6fa2e80bd3ac40f15788cfc3d12ebba49a0add92", "url": "https://github.com/akutz/gotil/blob/6fa2e80bd3ac40f15788cfc3d12ebba49a0add92/gotil.go#L172-L181", "partition": "test"} +{"repo": "akutz/gotil", "path": "gotil.go", "func_name": "GetThisPathParts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetThisPathParts returns the same information as GetPathParts for the\n// current executable.", "docstring_tokens": ["GetThisPathParts", "returns", "the", "same", "information", "as", "GetPathParts", "for", "the", "current", "executable", "."], "sha": "6fa2e80bd3ac40f15788cfc3d12ebba49a0add92", "url": "https://github.com/akutz/gotil/blob/6fa2e80bd3ac40f15788cfc3d12ebba49a0add92/gotil.go#L185-L188", "partition": "test"} +{"repo": "akutz/gotil", "path": "gotil.go", "func_name": "RandomString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RandomString generates a random set of characters with the given lenght.", "docstring_tokens": ["RandomString", "generates", "a", "random", "set", "of", "characters", "with", "the", "given", "lenght", "."], "sha": "6fa2e80bd3ac40f15788cfc3d12ebba49a0add92", "url": "https://github.com/akutz/gotil/blob/6fa2e80bd3ac40f15788cfc3d12ebba49a0add92/gotil.go#L191-L207", "partition": "test"} +{"repo": "akutz/gotil", "path": "gotil.go", "func_name": "ParseAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseAddress parses a standard golang network address and returns the\n// protocol and path.", "docstring_tokens": ["ParseAddress", "parses", "a", "standard", "golang", "network", "address", "and", "returns", "the", "protocol", "and", "path", "."], "sha": "6fa2e80bd3ac40f15788cfc3d12ebba49a0add92", "url": "https://github.com/akutz/gotil/blob/6fa2e80bd3ac40f15788cfc3d12ebba49a0add92/gotil.go#L226-L232", "partition": "test"} +{"repo": "akutz/gotil", "path": "gotil.go", "func_name": "HomeDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HomeDir returns the home directory of the user that owns the current process.", "docstring_tokens": ["HomeDir", "returns", "the", "home", "directory", "of", "the", "user", "that", "owns", "the", "current", "process", "."], "sha": "6fa2e80bd3ac40f15788cfc3d12ebba49a0add92", "url": "https://github.com/akutz/gotil/blob/6fa2e80bd3ac40f15788cfc3d12ebba49a0add92/gotil.go#L273-L282", "partition": "test"} +{"repo": "akutz/gotil", "path": "gotil.go", "func_name": "IsTCPPortAvailable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsTCPPortAvailable returns a flag indicating whether or not a TCP port is\n// available.", "docstring_tokens": ["IsTCPPortAvailable", "returns", "a", "flag", "indicating", "whether", "or", "not", "a", "TCP", "port", "is", "available", "."], "sha": "6fa2e80bd3ac40f15788cfc3d12ebba49a0add92", "url": "https://github.com/akutz/gotil/blob/6fa2e80bd3ac40f15788cfc3d12ebba49a0add92/gotil.go#L297-L307", "partition": "test"} +{"repo": "akutz/gotil", "path": "gotil.go", "func_name": "RandomTCPPort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RandomTCPPort gets a free, random TCP port between 1025-65535. If no free\n// ports are available -1 is returned.", "docstring_tokens": ["RandomTCPPort", "gets", "a", "free", "random", "TCP", "port", "between", "1025", "-", "65535", ".", "If", "no", "free", "ports", "are", "available", "-", "1", "is", "returned", "."], "sha": "6fa2e80bd3ac40f15788cfc3d12ebba49a0add92", "url": "https://github.com/akutz/gotil/blob/6fa2e80bd3ac40f15788cfc3d12ebba49a0add92/gotil.go#L311-L319", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/jump/jump.go", "func_name": "HashString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HashString works like hash but accept string as an input.", "docstring_tokens": ["HashString", "works", "like", "hash", "but", "accept", "string", "as", "an", "input", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/jump/jump.go#L33-L38", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "mnemosyned/session_manager.go", "func_name": "Context", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Context gets implements RPCServer interface.", "docstring_tokens": ["Context", "gets", "implements", "RPCServer", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/mnemosyned/session_manager.go#L123-L142", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "mnemosynerpc/session.go", "func_name": "Token", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Token implements oauth2.TokenSource interface.", "docstring_tokens": ["Token", "implements", "oauth2", ".", "TokenSource", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/mnemosynerpc/session.go#L12-L32", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "mnemosyned/daemon.go", "func_name": "NewDaemon", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDaemon allocates new daemon instance using given options.", "docstring_tokens": ["NewDaemon", "allocates", "new", "daemon", "instance", "using", "given", "options", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/mnemosyned/daemon.go#L83-L113", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "mnemosyned/daemon.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close implements io.Closer interface.", "docstring_tokens": ["Close", "implements", "io", ".", "Closer", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/mnemosyned/daemon.go#L293-L312", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "token.go", "func_name": "NewAccessTokenContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAccessTokenContext returns a new Context that carries token value.", "docstring_tokens": ["NewAccessTokenContext", "returns", "a", "new", "Context", "that", "carries", "token", "value", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/token.go#L22-L24", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "token.go", "func_name": "AccessTokenFromContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AccessTokenFromContext returns the token value stored in context, if any.", "docstring_tokens": ["AccessTokenFromContext", "returns", "the", "token", "value", "stored", "in", "context", "if", "any", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/token.go#L27-L31", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "token.go", "func_name": "RandomAccessToken", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RandomAccessToken generate Access Token with given key and generated hash of length 64.", "docstring_tokens": ["RandomAccessToken", "generate", "Access", "Token", "with", "given", "key", "and", "generated", "hash", "of", "length", "64", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/token.go#L34-L47", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/service/logger/logger.go", "func_name": "Init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Init allocates new logger based on given options.", "docstring_tokens": ["Init", "allocates", "new", "logger", "based", "on", "given", "options", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/service/logger/logger.go#L34-L67", "partition": "test"} +{"repo": "ikawaha/kagome.ipadic", "path": "internal/dic/dic.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load loads a dictionary from a file.", "docstring_tokens": ["Load", "loads", "a", "dictionary", "from", "a", "file", "."], "sha": "fe03f87a0c7c32945d956fcfc934c3e11d5eb182", "url": "https://github.com/ikawaha/kagome.ipadic/blob/fe03f87a0c7c32945d956fcfc934c3e11d5eb182/internal/dic/dic.go#L130-L181", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/storage/postgres/storage.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start implements storage interface.", "docstring_tokens": ["Start", "implements", "storage", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/storage/postgres/storage.go#L98-L115", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/storage/postgres/storage.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get implements storage interface.", "docstring_tokens": ["Get", "implements", "storage", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/storage/postgres/storage.go#L139-L175", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/storage/postgres/storage.go", "func_name": "List", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// List implements storage interface.", "docstring_tokens": ["List", "implements", "storage", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/storage/postgres/storage.go#L178-L251", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/storage/postgres/storage.go", "func_name": "Exists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exists implements storage interface.", "docstring_tokens": ["Exists", "implements", "storage", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/storage/postgres/storage.go#L254-L270", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/storage/postgres/storage.go", "func_name": "Abandon", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Abandon implements storage interface.", "docstring_tokens": ["Abandon", "implements", "storage", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/storage/postgres/storage.go#L273-L296", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/storage/postgres/storage.go", "func_name": "SetValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetValue implements storage interface.", "docstring_tokens": ["SetValue", "implements", "storage", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/storage/postgres/storage.go#L299-L358", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/storage/postgres/storage.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete implements storage interface.", "docstring_tokens": ["Delete", "implements", "storage", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/storage/postgres/storage.go#L361-L381", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/storage/postgres/storage.go", "func_name": "Setup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Setup implements storage interface.", "docstring_tokens": ["Setup", "implements", "storage", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/storage/postgres/storage.go#L384-L407", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/storage/postgres/storage.go", "func_name": "TearDown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TearDown implements storage interface.", "docstring_tokens": ["TearDown", "implements", "storage", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/storage/postgres/storage.go#L410-L414", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "mnemosyned/service.go", "func_name": "initJaeger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// initJaeger returns an instance of Jaeger Tracer that samples 100% of traces and logs all spans to stdout.", "docstring_tokens": ["initJaeger", "returns", "an", "instance", "of", "Jaeger", "Tracer", "that", "samples", "100%", "of", "traces", "and", "logs", "all", "spans", "to", "stdout", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/mnemosyned/service.go#L33-L54", "partition": "test"} +{"repo": "ikawaha/kagome.ipadic", "path": "cmd/kagome/main.go", "func_name": "Usage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Usage prints to stdout information about the tool", "docstring_tokens": ["Usage", "prints", "to", "stdout", "information", "about", "the", "tool"], "sha": "fe03f87a0c7c32945d956fcfc934c3e11d5eb182", "url": "https://github.com/ikawaha/kagome.ipadic/blob/fe03f87a0c7c32945d956fcfc934c3e11d5eb182/cmd/kagome/main.go#L60-L63", "partition": "test"} +{"repo": "ikawaha/kagome.ipadic", "path": "internal/da/da.go", "func_name": "Build", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Build constructs a double array from given keywords.", "docstring_tokens": ["Build", "constructs", "a", "double", "array", "from", "given", "keywords", "."], "sha": "fe03f87a0c7c32945d956fcfc934c3e11d5eb182", "url": "https://github.com/ikawaha/kagome.ipadic/blob/fe03f87a0c7c32945d956fcfc934c3e11d5eb182/internal/da/da.go#L37-L47", "partition": "test"} +{"repo": "ikawaha/kagome.ipadic", "path": "internal/da/da.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read loads a double array.", "docstring_tokens": ["Read", "loads", "a", "double", "array", "."], "sha": "fe03f87a0c7c32945d956fcfc934c3e11d5eb182", "url": "https://github.com/ikawaha/kagome.ipadic/blob/fe03f87a0c7c32945d956fcfc934c3e11d5eb182/internal/da/da.go#L182-L198", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/cluster/cluster.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get if possible returns node for a given bucket id.", "docstring_tokens": ["Get", "if", "possible", "returns", "node", "for", "a", "given", "bucket", "id", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/cluster/cluster.go#L108-L116", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/cluster/cluster.go", "func_name": "ExternalNodes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExternalNodes returns all available nodes except host.", "docstring_tokens": ["ExternalNodes", "returns", "all", "available", "nodes", "except", "host", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/cluster/cluster.go#L124-L131", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/cluster/cluster.go", "func_name": "GetOther", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOther returns node for given access token.\n// Returns false if cluster is nil, has only one element or if node that was found has same listen address as current one.", "docstring_tokens": ["GetOther", "returns", "node", "for", "given", "access", "token", ".", "Returns", "false", "if", "cluster", "is", "nil", "has", "only", "one", "element", "or", "if", "node", "that", "was", "found", "has", "same", "listen", "address", "as", "current", "one", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/cluster/cluster.go#L145-L161", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/cluster/cluster.go", "func_name": "GoString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GoString implements fmt GoStringer interface.", "docstring_tokens": ["GoString", "implements", "fmt", "GoStringer", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/cluster/cluster.go#L164-L171", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/model/backpack.go", "func_name": "Scan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Scan satisfy sql.Scanner interface.", "docstring_tokens": ["Scan", "satisfy", "sql", ".", "Scanner", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/model/backpack.go#L15-L24", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/model/backpack.go", "func_name": "Value", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Value satisfy driver.Valuer interface.", "docstring_tokens": ["Value", "satisfy", "driver", ".", "Valuer", "interface", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/model/backpack.go#L27-L35", "partition": "test"} +{"repo": "piotrkowalczuk/mnemosyne", "path": "internal/model/backpack.go", "func_name": "Has", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Has checks if the given key is set.", "docstring_tokens": ["Has", "checks", "if", "the", "given", "key", "is", "set", "."], "sha": "66d59c3c5b886e8e869915bb76257bcba4a47250", "url": "https://github.com/piotrkowalczuk/mnemosyne/blob/66d59c3c5b886e8e869915bb76257bcba4a47250/internal/model/backpack.go#L48-L52", "partition": "test"} +{"repo": "ikawaha/kagome.ipadic", "path": "internal/dic/index.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo saves a index table.", "docstring_tokens": ["WriteTo", "saves", "a", "index", "table", "."], "sha": "fe03f87a0c7c32945d956fcfc934c3e11d5eb182", "url": "https://github.com/ikawaha/kagome.ipadic/blob/fe03f87a0c7c32945d956fcfc934c3e11d5eb182/internal/dic/index.go#L105-L118", "partition": "test"} +{"repo": "ikawaha/kagome.ipadic", "path": "internal/dic/index.go", "func_name": "ReadIndexTable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadIndexTable loads a index table.", "docstring_tokens": ["ReadIndexTable", "loads", "a", "index", "table", "."], "sha": "fe03f87a0c7c32945d956fcfc934c3e11d5eb182", "url": "https://github.com/ikawaha/kagome.ipadic/blob/fe03f87a0c7c32945d956fcfc934c3e11d5eb182/internal/dic/index.go#L121-L135", "partition": "test"} +{"repo": "qor/action_bar", "path": "action_bar.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New will create an ActionBar object", "docstring_tokens": ["New", "will", "create", "an", "ActionBar", "object"], "sha": "136e5e2c5b8c50976dc39edddf523fcaab0a73b8", "url": "https://github.com/qor/action_bar/blob/136e5e2c5b8c50976dc39edddf523fcaab0a73b8/action_bar.go#L24-L30", "partition": "test"} +{"repo": "qor/action_bar", "path": "action_bar.go", "func_name": "RegisterAction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterAction register global action", "docstring_tokens": ["RegisterAction", "register", "global", "action"], "sha": "136e5e2c5b8c50976dc39edddf523fcaab0a73b8", "url": "https://github.com/qor/action_bar/blob/136e5e2c5b8c50976dc39edddf523fcaab0a73b8/action_bar.go#L33-L36", "partition": "test"} +{"repo": "qor/action_bar", "path": "action_bar.go", "func_name": "Actions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Actions register actions", "docstring_tokens": ["Actions", "register", "actions"], "sha": "136e5e2c5b8c50976dc39edddf523fcaab0a73b8", "url": "https://github.com/qor/action_bar/blob/136e5e2c5b8c50976dc39edddf523fcaab0a73b8/action_bar.go#L39-L43", "partition": "test"} +{"repo": "qor/action_bar", "path": "action_bar.go", "func_name": "Render", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Render will return the HTML of the bar, used this function to render the bar in frontend page's template or layout", "docstring_tokens": ["Render", "will", "return", "the", "HTML", "of", "the", "bar", "used", "this", "function", "to", "render", "the", "bar", "in", "frontend", "page", "s", "template", "or", "layout"], "sha": "136e5e2c5b8c50976dc39edddf523fcaab0a73b8", "url": "https://github.com/qor/action_bar/blob/136e5e2c5b8c50976dc39edddf523fcaab0a73b8/action_bar.go#L46-L68", "partition": "test"} +{"repo": "qor/action_bar", "path": "action_bar.go", "func_name": "FuncMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FuncMap will return helper to render inline edit button", "docstring_tokens": ["FuncMap", "will", "return", "helper", "to", "render", "inline", "edit", "button"], "sha": "136e5e2c5b8c50976dc39edddf523fcaab0a73b8", "url": "https://github.com/qor/action_bar/blob/136e5e2c5b8c50976dc39edddf523fcaab0a73b8/action_bar.go#L71-L79", "partition": "test"} +{"repo": "qor/action_bar", "path": "action_bar.go", "func_name": "EditMode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// EditMode return whether current mode is `Preview` or `Edit`", "docstring_tokens": ["EditMode", "return", "whether", "current", "mode", "is", "Preview", "or", "Edit"], "sha": "136e5e2c5b8c50976dc39edddf523fcaab0a73b8", "url": "https://github.com/qor/action_bar/blob/136e5e2c5b8c50976dc39edddf523fcaab0a73b8/action_bar.go#L82-L84", "partition": "test"} +{"repo": "qor/action_bar", "path": "controller.go", "func_name": "SwitchMode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SwitchMode is handle to store switch status in cookie", "docstring_tokens": ["SwitchMode", "is", "handle", "to", "store", "switch", "status", "in", "cookie"], "sha": "136e5e2c5b8c50976dc39edddf523fcaab0a73b8", "url": "https://github.com/qor/action_bar/blob/136e5e2c5b8c50976dc39edddf523fcaab0a73b8/controller.go#L15-L24", "partition": "test"} +{"repo": "qor/action_bar", "path": "controller.go", "func_name": "InlineEdit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InlineEdit using to make inline edit resource shown as slideout", "docstring_tokens": ["InlineEdit", "using", "to", "make", "inline", "edit", "resource", "shown", "as", "slideout"], "sha": "136e5e2c5b8c50976dc39edddf523fcaab0a73b8", "url": "https://github.com/qor/action_bar/blob/136e5e2c5b8c50976dc39edddf523fcaab0a73b8/controller.go#L27-L29", "partition": "test"} +{"repo": "fhs/go-netrc", "path": "netrc/netrc.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error returns a string representation of error e.", "docstring_tokens": ["Error", "returns", "a", "string", "representation", "of", "error", "e", "."], "sha": "4ffed54ee5c32ebfb1b8c7c72fc90bb08dc3ff43", "url": "https://github.com/fhs/go-netrc/blob/4ffed54ee5c32ebfb1b8c7c72fc90bb08dc3ff43/netrc/netrc.go#L80-L82", "partition": "test"} +{"repo": "fhs/go-netrc", "path": "netrc/netrc.go", "func_name": "ParseFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseFile parses the netrc file identified by filename and returns the set of\n// machine information and macros defined in it. The ``default'' machine,\n// which is intended to be used when no machine name matches, is identified\n// by an empty machine name. There can be only one ``default'' machine.\n//\n// If there is a parsing error, an Error is returned.", "docstring_tokens": ["ParseFile", "parses", "the", "netrc", "file", "identified", "by", "filename", "and", "returns", "the", "set", "of", "machine", "information", "and", "macros", "defined", "in", "it", ".", "The", "default", "machine", "which", "is", "intended", "to", "be", "used", "when", "no", "machine", "name", "matches", "is", "identified", "by", "an", "empty", "machine", "name", ".", "There", "can", "be", "only", "one", "default", "machine", ".", "If", "there", "is", "a", "parsing", "error", "an", "Error", "is", "returned", "."], "sha": "4ffed54ee5c32ebfb1b8c7c72fc90bb08dc3ff43", "url": "https://github.com/fhs/go-netrc/blob/4ffed54ee5c32ebfb1b8c7c72fc90bb08dc3ff43/netrc/netrc.go#L228-L236", "partition": "test"} +{"repo": "fhs/go-netrc", "path": "netrc/netrc.go", "func_name": "FindMachine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FindMachine parses the netrc file identified by filename and returns\n// the Machine named by name. If no Machine with name name is found, the\n// ``default'' machine is returned.", "docstring_tokens": ["FindMachine", "parses", "the", "netrc", "file", "identified", "by", "filename", "and", "returns", "the", "Machine", "named", "by", "name", ".", "If", "no", "Machine", "with", "name", "name", "is", "found", "the", "default", "machine", "is", "returned", "."], "sha": "4ffed54ee5c32ebfb1b8c7c72fc90bb08dc3ff43", "url": "https://github.com/fhs/go-netrc/blob/4ffed54ee5c32ebfb1b8c7c72fc90bb08dc3ff43/netrc/netrc.go#L241-L259", "partition": "test"} +{"repo": "codemodus/kace", "path": "kace.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a pointer to an instance of kace loaded with a common\n// initialsms trie based on the provided map. Before conversion to a\n// trie, the provided map keys are all upper cased.", "docstring_tokens": ["New", "returns", "a", "pointer", "to", "an", "instance", "of", "kace", "loaded", "with", "a", "common", "initialsms", "trie", "based", "on", "the", "provided", "map", ".", "Before", "conversion", "to", "a", "trie", "the", "provided", "map", "keys", "are", "all", "upper", "cased", "."], "sha": "e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8", "url": "https://github.com/codemodus/kace/blob/e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8/kace.go#L69-L87", "partition": "test"} +{"repo": "codemodus/kace", "path": "kace.go", "func_name": "Camel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Camel returns a camelCased string.", "docstring_tokens": ["Camel", "returns", "a", "camelCased", "string", "."], "sha": "e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8", "url": "https://github.com/codemodus/kace/blob/e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8/kace.go#L90-L92", "partition": "test"} +{"repo": "codemodus/kace", "path": "kace.go", "func_name": "Pascal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pascal returns a PascalCased string.", "docstring_tokens": ["Pascal", "returns", "a", "PascalCased", "string", "."], "sha": "e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8", "url": "https://github.com/codemodus/kace/blob/e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8/kace.go#L95-L97", "partition": "test"} +{"repo": "codemodus/kace", "path": "kace.go", "func_name": "Snake", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Snake returns a snake_cased string with all lowercase letters.", "docstring_tokens": ["Snake", "returns", "a", "snake_cased", "string", "with", "all", "lowercase", "letters", "."], "sha": "e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8", "url": "https://github.com/codemodus/kace/blob/e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8/kace.go#L100-L102", "partition": "test"} +{"repo": "codemodus/kace", "path": "kace.go", "func_name": "SnakeUpper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SnakeUpper returns a SNAKE_CASED string with all upper case letters.", "docstring_tokens": ["SnakeUpper", "returns", "a", "SNAKE_CASED", "string", "with", "all", "upper", "case", "letters", "."], "sha": "e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8", "url": "https://github.com/codemodus/kace/blob/e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8/kace.go#L105-L107", "partition": "test"} +{"repo": "codemodus/kace", "path": "kace.go", "func_name": "Kebab", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Kebab returns a kebab-cased string with all lowercase letters.", "docstring_tokens": ["Kebab", "returns", "a", "kebab", "-", "cased", "string", "with", "all", "lowercase", "letters", "."], "sha": "e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8", "url": "https://github.com/codemodus/kace/blob/e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8/kace.go#L110-L112", "partition": "test"} +{"repo": "codemodus/kace", "path": "kace.go", "func_name": "KebabUpper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KebabUpper returns a KEBAB-CASED string with all upper case letters.", "docstring_tokens": ["KebabUpper", "returns", "a", "KEBAB", "-", "CASED", "string", "with", "all", "upper", "case", "letters", "."], "sha": "e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8", "url": "https://github.com/codemodus/kace/blob/e3ecf78ee2a5e58652cb2be34d3159ad9c89acf8/kace.go#L115-L117", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "sanitize.go", "func_name": "isPathSafe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isPathSafe checks if the passed in path conforms to a whitelist.", "docstring_tokens": ["isPathSafe", "checks", "if", "the", "passed", "in", "path", "conforms", "to", "a", "whitelist", "."], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/sanitize.go#L33-L53", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "tracer.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start is called on start of a request", "docstring_tokens": ["Start", "is", "called", "on", "start", "of", "a", "request"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/tracer.go#L78-L82", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "creds.go", "func_name": "ParseAuthHeaders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseAuthHeaders parses authentication headers from HTTP request\n// it currently detects Bearer and Basic auth types", "docstring_tokens": ["ParseAuthHeaders", "parses", "authentication", "headers", "from", "HTTP", "request", "it", "currently", "detects", "Bearer", "and", "Basic", "auth", "types"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/creds.go#L44-L94", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "client.go", "func_name": "Tracer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tracer sets a request tracer constructor", "docstring_tokens": ["Tracer", "sets", "a", "request", "tracer", "constructor"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/client.go#L57-L62", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "client.go", "func_name": "HTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTPClient is a functional parameter that sets the internal\n// HTTPClient of the roundtrip client wrapper", "docstring_tokens": ["HTTPClient", "is", "a", "functional", "parameter", "that", "sets", "the", "internal", "HTTPClient", "of", "the", "roundtrip", "client", "wrapper"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/client.go#L66-L71", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "client.go", "func_name": "BasicAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BasicAuth sets username and password for HTTP client", "docstring_tokens": ["BasicAuth", "sets", "username", "and", "password", "for", "HTTP", "client"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/client.go#L74-L79", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "client.go", "func_name": "BearerAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BearerAuth sets token for HTTP client", "docstring_tokens": ["BearerAuth", "sets", "token", "for", "HTTP", "client"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/client.go#L82-L87", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "client.go", "func_name": "CookieJar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CookieJar sets HTTP cookie jar for this client", "docstring_tokens": ["CookieJar", "sets", "HTTP", "cookie", "jar", "for", "this", "client"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/client.go#L90-L95", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "client.go", "func_name": "SanitizerEnabled", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SanitizerEnabled will enable the input sanitizer which passes the URL\n// path through a strict whitelist.", "docstring_tokens": ["SanitizerEnabled", "will", "enable", "the", "input", "sanitizer", "which", "passes", "the", "URL", "path", "through", "a", "strict", "whitelist", "."], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/client.go#L99-L104", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "client.go", "func_name": "OpenFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OpenFile opens file using HTTP protocol and uses `Range` headers\n// to seek to various positions in the file, this means that server\n// has to support the flags `Range` and `Content-Range`", "docstring_tokens": ["OpenFile", "opens", "file", "using", "HTTP", "protocol", "and", "uses", "Range", "headers", "to", "seek", "to", "various", "positions", "in", "the", "file", "this", "means", "that", "server", "has", "to", "support", "the", "flags", "Range", "and", "Content", "-", "Range"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/client.go#L429-L445", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "client.go", "func_name": "RoundTrip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RoundTrip collects response and error assuming fn has done\n// HTTP roundtrip", "docstring_tokens": ["RoundTrip", "collects", "response", "and", "error", "assuming", "fn", "has", "done", "HTTP", "roundtrip"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/client.go#L453-L470", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "client.go", "func_name": "SetAuthHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAuthHeader sets client's authorization headers if client\n// was configured to work with authorization", "docstring_tokens": ["SetAuthHeader", "sets", "client", "s", "authorization", "headers", "if", "client", "was", "configured", "to", "work", "with", "authorization"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/client.go#L474-L478", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "client.go", "func_name": "FileName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FileName returns HTTP file name", "docstring_tokens": ["FileName", "returns", "HTTP", "file", "name"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/client.go#L555-L565", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "client.go", "func_name": "newBuffersFromFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newBuffersFromFiles wraps the specified files with a reader\n// that caches data into a memory buffer", "docstring_tokens": ["newBuffersFromFiles", "wraps", "the", "specified", "files", "with", "a", "reader", "that", "caches", "data", "into", "a", "memory", "buffer"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/client.go#L631-L637", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "client.go", "func_name": "newFileBuffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newFileBuffer creates a buffer for reading from the specified File file", "docstring_tokens": ["newFileBuffer", "creates", "a", "buffer", "for", "reading", "from", "the", "specified", "File", "file"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/client.go#L640-L647", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "client.go", "func_name": "rewind", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rewind resets this fileBuffer to read from the beginning", "docstring_tokens": ["rewind", "resets", "this", "fileBuffer", "to", "read", "from", "the", "beginning"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/client.go#L659-L661", "partition": "test"} +{"repo": "gravitational/roundtrip", "path": "errors.go", "func_name": "ConvertResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ConvertResponse converts http error to internal error type\n// based on HTTP response code and HTTP body contents", "docstring_tokens": ["ConvertResponse", "converts", "http", "error", "to", "internal", "error", "type", "based", "on", "HTTP", "response", "code", "and", "HTTP", "body", "contents"], "sha": "e1e0cd6b05a6bb1791b262e63160038828fd7b3a", "url": "https://github.com/gravitational/roundtrip/blob/e1e0cd6b05a6bb1791b262e63160038828fd7b3a/errors.go#L62-L70", "partition": "test"} +{"repo": "coryb/figtree", "path": "gen-rawoption.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This is useful with kingpin option parser", "docstring_tokens": ["This", "is", "useful", "with", "kingpin", "option", "parser"], "sha": "e5fa026ccd54e0a6a99b6d81f73bfcc8e6fe6a6b", "url": "https://github.com/coryb/figtree/blob/e5fa026ccd54e0a6a99b6d81f73bfcc8e6fe6a6b/gen-rawoption.go#L43-L51", "partition": "test"} +{"repo": "coryb/figtree", "path": "gen-rawoption.go", "func_name": "WriteAnswer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// This is useful with survey prompting library", "docstring_tokens": ["This", "is", "useful", "with", "survey", "prompting", "library"], "sha": "e5fa026ccd54e0a6a99b6d81f73bfcc8e6fe6a6b", "url": "https://github.com/coryb/figtree/blob/e5fa026ccd54e0a6a99b6d81f73bfcc8e6fe6a6b/gen-rawoption.go#L54-L62", "partition": "test"} +{"repo": "coryb/figtree", "path": "gen-rawoption.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String is required for kingpin to generate usage with this datatype", "docstring_tokens": ["String", "is", "required", "for", "kingpin", "to", "generate", "usage", "with", "this", "datatype"], "sha": "e5fa026ccd54e0a6a99b6d81f73bfcc8e6fe6a6b", "url": "https://github.com/coryb/figtree/blob/e5fa026ccd54e0a6a99b6d81f73bfcc8e6fe6a6b/gen-rawoption.go#L124-L129", "partition": "test"} +{"repo": "stvp/pager", "path": "pager.go", "func_name": "TriggerIncidentKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TriggerIncidentKey triggers an incident using the default client with a\n// given incident key only if that incident has been resolved or if that\n// incident doesn't exist yet.", "docstring_tokens": ["TriggerIncidentKey", "triggers", "an", "incident", "using", "the", "default", "client", "with", "a", "given", "incident", "key", "only", "if", "that", "incident", "has", "been", "resolved", "or", "if", "that", "incident", "doesn", "t", "exist", "yet", "."], "sha": "17442a04891b757880b72d926848df3e3af06c15", "url": "https://github.com/stvp/pager/blob/17442a04891b757880b72d926848df3e3af06c15/pager.go#L42-L44", "partition": "test"} +{"repo": "stvp/pager", "path": "pager.go", "func_name": "TriggerWithDetails", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TriggerWithDetails triggers an incident using the default client with a\n// description string and a key-value map that will be saved as the incident's\n// \"details\".", "docstring_tokens": ["TriggerWithDetails", "triggers", "an", "incident", "using", "the", "default", "client", "with", "a", "description", "string", "and", "a", "key", "-", "value", "map", "that", "will", "be", "saved", "as", "the", "incident", "s", "details", "."], "sha": "17442a04891b757880b72d926848df3e3af06c15", "url": "https://github.com/stvp/pager/blob/17442a04891b757880b72d926848df3e3af06c15/pager.go#L49-L51", "partition": "test"} +{"repo": "stvp/pager", "path": "pager.go", "func_name": "TriggerIncidentKeyWithDetails", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TriggerIncidentKeyWithDetails triggers an incident using the default client\n// with a given incident key only if that incident has been resolved or if that\n// incident doesn't exist yet.", "docstring_tokens": ["TriggerIncidentKeyWithDetails", "triggers", "an", "incident", "using", "the", "default", "client", "with", "a", "given", "incident", "key", "only", "if", "that", "incident", "has", "been", "resolved", "or", "if", "that", "incident", "doesn", "t", "exist", "yet", "."], "sha": "17442a04891b757880b72d926848df3e3af06c15", "url": "https://github.com/stvp/pager/blob/17442a04891b757880b72d926848df3e3af06c15/pager.go#L56-L58", "partition": "test"} +{"repo": "coryb/figtree", "path": "figtree.go", "func_name": "Merge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge will attempt to merge the data from src into dst. They shoud be either both maps or both structs.\n// The structs do not need to have the same structure, but any field name that exists in both\n// structs will must be the same type.", "docstring_tokens": ["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", "but", "any", "field", "name", "that", "exists", "in", "both", "structs", "will", "must", "be", "the", "same", "type", "."], "sha": "e5fa026ccd54e0a6a99b6d81f73bfcc8e6fe6a6b", "url": "https://github.com/coryb/figtree/blob/e5fa026ccd54e0a6a99b6d81f73bfcc8e6fe6a6b/figtree.go#L321-L324", "partition": "test"} +{"repo": "coryb/figtree", "path": "figtree.go", "func_name": "setSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// recursively set the Source attribute of the Options", "docstring_tokens": ["recursively", "set", "the", "Source", "attribute", "of", "the", "Options"], "sha": "e5fa026ccd54e0a6a99b6d81f73bfcc8e6fe6a6b", "url": "https://github.com/coryb/figtree/blob/e5fa026ccd54e0a6a99b6d81f73bfcc8e6fe6a6b/figtree.go#L547-L589", "partition": "test"} +{"repo": "coryb/figtree", "path": "convert.go", "func_name": "convertString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// dst must be a pointer type", "docstring_tokens": ["dst", "must", "be", "a", "pointer", "type"], "sha": "e5fa026ccd54e0a6a99b6d81f73bfcc8e6fe6a6b", "url": "https://github.com/coryb/figtree/blob/e5fa026ccd54e0a6a99b6d81f73bfcc8e6fe6a6b/convert.go#L9-L91", "partition": "test"} +{"repo": "shogo82148/txmanager", "path": "txmanager.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Do executes the function in a transaction.", "docstring_tokens": ["Do", "executes", "the", "function", "in", "a", "transaction", "."], "sha": "5c0985a3720f2c462fe54ce430cae4ccfaf49d31", "url": "https://github.com/shogo82148/txmanager/blob/5c0985a3720f2c462fe54ce430cae4ccfaf49d31/txmanager.go#L180-L191", "partition": "test"} +{"repo": "nicholasjackson/bench", "path": "util/newfile.go", "func_name": "NewFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFile is a convenience function which creates and opens a file", "docstring_tokens": ["NewFile", "is", "a", "convenience", "function", "which", "creates", "and", "opens", "a", "file"], "sha": "2df9635f0ad020b2e82616b0fd87130aaa1ee12e", "url": "https://github.com/nicholasjackson/bench/blob/2df9635f0ad020b2e82616b0fd87130aaa1ee12e/util/newfile.go#L9-L17", "partition": "test"} +{"repo": "nicholasjackson/bench", "path": "internal.go", "func_name": "internalRun", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunBenchmarks executes the benchmarks based upon the given criteria\n//\n// Returns a resultset", "docstring_tokens": ["RunBenchmarks", "executes", "the", "benchmarks", "based", "upon", "the", "given", "criteria", "Returns", "a", "resultset"], "sha": "2df9635f0ad020b2e82616b0fd87130aaa1ee12e", "url": "https://github.com/nicholasjackson/bench/blob/2df9635f0ad020b2e82616b0fd87130aaa1ee12e/internal.go#L16-L48", "partition": "test"} +{"repo": "nicholasjackson/bench", "path": "results/summary.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String implements String from the Stringer interface and\n// allows results to be serialized to a sting", "docstring_tokens": ["String", "implements", "String", "from", "the", "Stringer", "interface", "and", "allows", "results", "to", "be", "serialized", "to", "a", "sting"], "sha": "2df9635f0ad020b2e82616b0fd87130aaa1ee12e", "url": "https://github.com/nicholasjackson/bench/blob/2df9635f0ad020b2e82616b0fd87130aaa1ee12e/results/summary.go#L24-L34", "partition": "test"} +{"repo": "nicholasjackson/bench", "path": "results/summary.go", "func_name": "Tabulate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tabulate transforms the ResultsSets and returns a slice of Row", "docstring_tokens": ["Tabulate", "transforms", "the", "ResultsSets", "and", "returns", "a", "slice", "of", "Row"], "sha": "2df9635f0ad020b2e82616b0fd87130aaa1ee12e", "url": "https://github.com/nicholasjackson/bench/blob/2df9635f0ad020b2e82616b0fd87130aaa1ee12e/results/summary.go#L41-L102", "partition": "test"} +{"repo": "nicholasjackson/bench", "path": "example/main.go", "func_name": "AmazonRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AmazonRequest is an example to benchmark a call to googles homepage", "docstring_tokens": ["AmazonRequest", "is", "an", "example", "to", "benchmark", "a", "call", "to", "googles", "homepage"], "sha": "2df9635f0ad020b2e82616b0fd87130aaa1ee12e", "url": "https://github.com/nicholasjackson/bench/blob/2df9635f0ad020b2e82616b0fd87130aaa1ee12e/example/main.go#L27-L41", "partition": "test"} +{"repo": "nicholasjackson/bench", "path": "output/tablewriter.go", "func_name": "WriteTabularData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTabularData writes the given results to the given output stream", "docstring_tokens": ["WriteTabularData", "writes", "the", "given", "results", "to", "the", "given", "output", "stream"], "sha": "2df9635f0ad020b2e82616b0fd87130aaa1ee12e", "url": "https://github.com/nicholasjackson/bench/blob/2df9635f0ad020b2e82616b0fd87130aaa1ee12e/output/tablewriter.go#L11-L21", "partition": "test"} +{"repo": "nicholasjackson/bench", "path": "results/results.go", "func_name": "Reduce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reduce reduces the ResultSet into buckets defined by the given interval", "docstring_tokens": ["Reduce", "reduces", "the", "ResultSet", "into", "buckets", "defined", "by", "the", "given", "interval"], "sha": "2df9635f0ad020b2e82616b0fd87130aaa1ee12e", "url": "https://github.com/nicholasjackson/bench/blob/2df9635f0ad020b2e82616b0fd87130aaa1ee12e/results/results.go#L33-L50", "partition": "test"} +{"repo": "nicholasjackson/bench", "path": "semaphore/semaphore.go", "func_name": "NewSemaphore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSemaphore is used to create a new semaphore, initalised with a capacity\n// this controls the number of locks which can be active at any one time.", "docstring_tokens": ["NewSemaphore", "is", "used", "to", "create", "a", "new", "semaphore", "initalised", "with", "a", "capacity", "this", "controls", "the", "number", "of", "locks", "which", "can", "be", "active", "at", "any", "one", "time", "."], "sha": "2df9635f0ad020b2e82616b0fd87130aaa1ee12e", "url": "https://github.com/nicholasjackson/bench/blob/2df9635f0ad020b2e82616b0fd87130aaa1ee12e/semaphore/semaphore.go#L22-L40", "partition": "test"} +{"repo": "nicholasjackson/bench", "path": "semaphore/semaphore.go", "func_name": "Release", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Release unlocks the semaphore and allows new lock instances to be called without\n// blocking if the number of locks currently equal the capacity.\n// It is important to call Release at the end of any operation which aquires a lock.", "docstring_tokens": ["Release", "unlocks", "the", "semaphore", "and", "allows", "new", "lock", "instances", "to", "be", "called", "without", "blocking", "if", "the", "number", "of", "locks", "currently", "equal", "the", "capacity", ".", "It", "is", "important", "to", "call", "Release", "at", "the", "end", "of", "any", "operation", "which", "aquires", "a", "lock", "."], "sha": "2df9635f0ad020b2e82616b0fd87130aaa1ee12e", "url": "https://github.com/nicholasjackson/bench/blob/2df9635f0ad020b2e82616b0fd87130aaa1ee12e/semaphore/semaphore.go#L53-L65", "partition": "test"} +{"repo": "nicholasjackson/bench", "path": "semaphore/semaphore.go", "func_name": "Resize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Resize allows dynamic resizing of the semaphore, it can be used if it desired\n// to increase the current number of allowable concurent processes.", "docstring_tokens": ["Resize", "allows", "dynamic", "resizing", "of", "the", "semaphore", "it", "can", "be", "used", "if", "it", "desired", "to", "increase", "the", "current", "number", "of", "allowable", "concurent", "processes", "."], "sha": "2df9635f0ad020b2e82616b0fd87130aaa1ee12e", "url": "https://github.com/nicholasjackson/bench/blob/2df9635f0ad020b2e82616b0fd87130aaa1ee12e/semaphore/semaphore.go#L69-L94", "partition": "test"} +{"repo": "nicholasjackson/bench", "path": "bench.go", "func_name": "AddOutput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddOutput adds an output writer to Bench", "docstring_tokens": ["AddOutput", "adds", "an", "output", "writer", "to", "Bench"], "sha": "2df9635f0ad020b2e82616b0fd87130aaa1ee12e", "url": "https://github.com/nicholasjackson/bench/blob/2df9635f0ad020b2e82616b0fd87130aaa1ee12e/bench.go#L56-L65", "partition": "test"} +{"repo": "nicholasjackson/bench", "path": "bench.go", "func_name": "RunBenchmarks", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunBenchmarks runs the benchmarking for the given function", "docstring_tokens": ["RunBenchmarks", "runs", "the", "benchmarking", "for", "the", "given", "function"], "sha": "2df9635f0ad020b2e82616b0fd87130aaa1ee12e", "url": "https://github.com/nicholasjackson/bench/blob/2df9635f0ad020b2e82616b0fd87130aaa1ee12e/bench.go#L68-L73", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "parseBool", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// We start by dealing with each of the primitive types in turn.\n// BOOLEAN", "docstring_tokens": ["We", "start", "by", "dealing", "with", "each", "of", "the", "primitive", "types", "in", "turn", ".", "BOOLEAN"], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L34-L53", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "checkInteger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// INTEGER\n// checkInteger returns nil if the given bytes are a valid DER-encoded\n// INTEGER and an error otherwise.", "docstring_tokens": ["INTEGER", "checkInteger", "returns", "nil", "if", "the", "given", "bytes", "are", "a", "valid", "DER", "-", "encoded", "INTEGER", "and", "an", "error", "otherwise", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L59-L70", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "parseInt64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseInt64 treats the given bytes as a big-endian, signed integer and\n// returns the result.", "docstring_tokens": ["parseInt64", "treats", "the", "given", "bytes", "as", "a", "big", "-", "endian", "signed", "integer", "and", "returns", "the", "result", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L74-L93", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "parseInt32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseInt treats the given bytes as a big-endian, signed integer and returns\n// the result.", "docstring_tokens": ["parseInt", "treats", "the", "given", "bytes", "as", "a", "big", "-", "endian", "signed", "integer", "and", "returns", "the", "result", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L97-L109", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "parseBigInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseBigInt treats the given bytes as a big-endian, signed integer and returns\n// the result.", "docstring_tokens": ["parseBigInt", "treats", "the", "given", "bytes", "as", "a", "big", "-", "endian", "signed", "integer", "and", "returns", "the", "result", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L115-L133", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "parseBitString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BIT STRING\n// parseBitString parses an ASN.1 bit string from the given byte slice and returns it.", "docstring_tokens": ["BIT", "STRING", "parseBitString", "parses", "an", "ASN", ".", "1", "bit", "string", "from", "the", "given", "byte", "slice", "and", "returns", "it", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L138-L153", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "parseObjectIdentifier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OBJECT IDENTIFIER\n// parseObjectIdentifier parses an OBJECT IDENTIFIER from the given bytes and\n// returns it. An object identifier is a sequence of variable length integers\n// that are assigned in a hierarchy.", "docstring_tokens": ["OBJECT", "IDENTIFIER", "parseObjectIdentifier", "parses", "an", "OBJECT", "IDENTIFIER", "from", "the", "given", "bytes", "and", "returns", "it", ".", "An", "object", "identifier", "is", "a", "sequence", "of", "variable", "length", "integers", "that", "are", "assigned", "in", "a", "hierarchy", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L160-L196", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "parseBase128Int", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseBase128Int parses a base-128 encoded int from the given offset in the\n// given byte slice. It returns the value and the new offset.", "docstring_tokens": ["parseBase128Int", "parses", "a", "base", "-", "128", "encoded", "int", "from", "the", "given", "offset", "in", "the", "given", "byte", "slice", ".", "It", "returns", "the", "value", "and", "the", "new", "offset", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L215-L224", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "parseGeneralizedTime", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseGeneralizedTime parses the GeneralizedTime from the given byte slice\n// and returns the resulting time.", "docstring_tokens": ["parseGeneralizedTime", "parses", "the", "GeneralizedTime", "from", "the", "given", "byte", "slice", "and", "returns", "the", "resulting", "time", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L256-L269", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "parsePrintableString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintableString\n// parsePrintableString parses a ASN.1 PrintableString from the given byte\n// array and returns it.", "docstring_tokens": ["PrintableString", "parsePrintableString", "parses", "a", "ASN", ".", "1", "PrintableString", "from", "the", "given", "byte", "array", "and", "returns", "it", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L275-L284", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "isPrintable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isPrintable reports whether the given b is in the ASN.1 PrintableString set.", "docstring_tokens": ["isPrintable", "reports", "whether", "the", "given", "b", "is", "in", "the", "ASN", ".", "1", "PrintableString", "set", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L287-L301", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "parseSequenceOf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseSequenceOf is used for SEQUENCE OF and SET OF values. It tries to parse\n// a number of ASN.1 values from the given byte slice and returns them as a\n// slice of Go values of the given type.", "docstring_tokens": ["parseSequenceOf", "is", "used", "for", "SEQUENCE", "OF", "and", "SET", "OF", "values", ".", "It", "tries", "to", "parse", "a", "number", "of", "ASN", ".", "1", "values", "from", "the", "given", "byte", "slice", "and", "returns", "them", "as", "a", "slice", "of", "Go", "values", "of", "the", "given", "type", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L413-L461", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "invalidLength", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// invalidLength returns true iff offset + length > sliceLength, or if the\n// addition would overflow.", "docstring_tokens": ["invalidLength", "returns", "true", "iff", "offset", "+", "length", ">", "sliceLength", "or", "if", "the", "addition", "would", "overflow", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L476-L478", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "setDefaultValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setDefaultValue is used to install a default value, from a tag string, into\n// a Value. It is successful if the field was optional, even if a default value\n// wasn't provided or it failed to install it into the Value.", "docstring_tokens": ["setDefaultValue", "is", "used", "to", "install", "a", "default", "value", "from", "a", "tag", "string", "into", "a", "Value", ".", "It", "is", "successful", "if", "the", "field", "was", "optional", "even", "if", "a", "default", "value", "wasn", "t", "provided", "or", "it", "failed", "to", "install", "it", "into", "the", "Value", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L820-L832", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "ber.go", "func_name": "UnmarshalWithParams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalWithParams allows field parameters to be specified for the\n// top-level element. The form of the params is the same as the field tags.", "docstring_tokens": ["UnmarshalWithParams", "allows", "field", "parameters", "to", "be", "specified", "for", "the", "top", "-", "level", "element", ".", "The", "form", "of", "the", "params", "is", "the", "same", "as", "the", "field", "tags", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/ber.go#L892-L899", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "common.go", "func_name": "parseFieldParameters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Given a tag string with the format specified in the package comment,\n// parseFieldParameters will parse it into a fieldParameters structure,\n// ignoring unknown parts of the string.", "docstring_tokens": ["Given", "a", "tag", "string", "with", "the", "format", "specified", "in", "the", "package", "comment", "parseFieldParameters", "will", "parse", "it", "into", "a", "fieldParameters", "structure", "ignoring", "unknown", "parts", "of", "the", "string", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/common.go#L61-L105", "partition": "test"} +{"repo": "geoffgarside/ber", "path": "common.go", "func_name": "getUniversalType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Given a reflected Go type, getUniversalType returns the default tag number\n// and expected compound flag.", "docstring_tokens": ["Given", "a", "reflected", "Go", "type", "getUniversalType", "returns", "the", "default", "tag", "number", "and", "expected", "compound", "flag", "."], "sha": "27a1aff36ce64dbe5d93c08cc5f161983134ddc5", "url": "https://github.com/geoffgarside/ber/blob/27a1aff36ce64dbe5d93c08cc5f161983134ddc5/common.go#L109-L141", "partition": "test"} +{"repo": "manifoldco/go-base32", "path": "base32.go", "func_name": "DecodeString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DecodeString decodes the given base32 encodeed bytes", "docstring_tokens": ["DecodeString", "decodes", "the", "given", "base32", "encodeed", "bytes"], "sha": "47b2838451516c36d06986c7b85bf1355522ecbb", "url": "https://github.com/manifoldco/go-base32/blob/47b2838451516c36d06986c7b85bf1355522ecbb/base32.go#L20-L32", "partition": "test"} +{"repo": "skyrings/skyring-common", "path": "dbprovider/mongodb/mailnotifier.go", "func_name": "MailNotifier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// User returns the Mail notifier.", "docstring_tokens": ["User", "returns", "the", "Mail", "notifier", "."], "sha": "d1c0bb1cbd5ed8438be1385c85c4f494608cde1e", "url": "https://github.com/skyrings/skyring-common/blob/d1c0bb1cbd5ed8438be1385c85c4f494608cde1e/dbprovider/mongodb/mailnotifier.go#L28-L38", "partition": "test"} +{"repo": "skyrings/skyring-common", "path": "dbprovider/mongodb/mailnotifier.go", "func_name": "SaveMailNotifier", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Save mail notifier adds a new mail notifier, it replaces the existing one if there\n// is already a notifier available.", "docstring_tokens": ["Save", "mail", "notifier", "adds", "a", "new", "mail", "notifier", "it", "replaces", "the", "existing", "one", "if", "there", "is", "already", "a", "notifier", "available", "."], "sha": "d1c0bb1cbd5ed8438be1385c85c4f494608cde1e", "url": "https://github.com/skyrings/skyring-common/blob/d1c0bb1cbd5ed8438be1385c85c4f494608cde1e/dbprovider/mongodb/mailnotifier.go#L42-L51", "partition": "test"} +{"repo": "skyrings/skyring-common", "path": "provisioner/provision_provider.go", "func_name": "RegisterProvider", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterPlugin registers a plugin by name. This\n// is expected to happen during app startup.", "docstring_tokens": ["RegisterPlugin", "registers", "a", "plugin", "by", "name", ".", "This", "is", "expected", "to", "happen", "during", "app", "startup", "."], "sha": "d1c0bb1cbd5ed8438be1385c85c4f494608cde1e", "url": "https://github.com/skyrings/skyring-common/blob/d1c0bb1cbd5ed8438be1385c85c4f494608cde1e/provisioner/provision_provider.go#L43-L50", "partition": "test"} +{"repo": "skyrings/skyring-common", "path": "dbprovider/mongodb/monogodbprovider.go", "func_name": "InitDb", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Set up the indexes for the Db\n//Can be called during the initialization", "docstring_tokens": ["Set", "up", "the", "indexes", "for", "the", "Db", "Can", "be", "called", "during", "the", "initialization"], "sha": "d1c0bb1cbd5ed8438be1385c85c4f494608cde1e", "url": "https://github.com/skyrings/skyring-common/blob/d1c0bb1cbd5ed8438be1385c85c4f494608cde1e/dbprovider/mongodb/monogodbprovider.go#L76-L82", "partition": "test"} +{"repo": "skyrings/skyring-common", "path": "utils/util.go", "func_name": "Until", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Until loops until stop channel is closed, running f every period.\n// Catches any panics, and keeps going. f may not be invoked if\n// stop channel is already closed.", "docstring_tokens": ["Until", "loops", "until", "stop", "channel", "is", "closed", "running", "f", "every", "period", ".", "Catches", "any", "panics", "and", "keeps", "going", ".", "f", "may", "not", "be", "invoked", "if", "stop", "channel", "is", "already", "closed", "."], "sha": "d1c0bb1cbd5ed8438be1385c85c4f494608cde1e", "url": "https://github.com/skyrings/skyring-common/blob/d1c0bb1cbd5ed8438be1385c85c4f494608cde1e/utils/util.go#L52-L65", "partition": "test"} +{"repo": "skyrings/skyring-common", "path": "utils/util.go", "func_name": "logPanic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// logPanic logs the caller tree when a panic occurs.", "docstring_tokens": ["logPanic", "logs", "the", "caller", "tree", "when", "a", "panic", "occurs", "."], "sha": "d1c0bb1cbd5ed8438be1385c85c4f494608cde1e", "url": "https://github.com/skyrings/skyring-common/blob/d1c0bb1cbd5ed8438be1385c85c4f494608cde1e/utils/util.go#L68-L78", "partition": "test"} +{"repo": "skyrings/skyring-common", "path": "dbprovider/mongodb/user.go", "func_name": "User", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// User returns the user with the given username. Error is set to\n// ErrMissingUser if user is not found.", "docstring_tokens": ["User", "returns", "the", "user", "with", "the", "given", "username", ".", "Error", "is", "set", "to", "ErrMissingUser", "if", "user", "is", "not", "found", "."], "sha": "d1c0bb1cbd5ed8438be1385c85c4f494608cde1e", "url": "https://github.com/skyrings/skyring-common/blob/d1c0bb1cbd5ed8438be1385c85c4f494608cde1e/dbprovider/mongodb/user.go#L28-L36", "partition": "test"} +{"repo": "skyrings/skyring-common", "path": "dbprovider/mongodb/user.go", "func_name": "Users", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Users returns a slice of all users.", "docstring_tokens": ["Users", "returns", "a", "slice", "of", "all", "users", "."], "sha": "d1c0bb1cbd5ed8438be1385c85c4f494608cde1e", "url": "https://github.com/skyrings/skyring-common/blob/d1c0bb1cbd5ed8438be1385c85c4f494608cde1e/dbprovider/mongodb/user.go#L39-L49", "partition": "test"} +{"repo": "skyrings/skyring-common", "path": "dbprovider/mongodb/user.go", "func_name": "SaveUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SaveUser adds a new user, replacing if the same username is in use.", "docstring_tokens": ["SaveUser", "adds", "a", "new", "user", "replacing", "if", "the", "same", "username", "is", "in", "use", "."], "sha": "d1c0bb1cbd5ed8438be1385c85c4f494608cde1e", "url": "https://github.com/skyrings/skyring-common/blob/d1c0bb1cbd5ed8438be1385c85c4f494608cde1e/dbprovider/mongodb/user.go#L52-L62", "partition": "test"} +{"repo": "skyrings/skyring-common", "path": "dbprovider/mongodb/user.go", "func_name": "DeleteUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteUser removes a user. ErrNotFound is returned if the user isn't found.", "docstring_tokens": ["DeleteUser", "removes", "a", "user", ".", "ErrNotFound", "is", "returned", "if", "the", "user", "isn", "t", "found", "."], "sha": "d1c0bb1cbd5ed8438be1385c85c4f494608cde1e", "url": "https://github.com/skyrings/skyring-common/blob/d1c0bb1cbd5ed8438be1385c85c4f494608cde1e/dbprovider/mongodb/user.go#L65-L76", "partition": "test"} +{"repo": "pantheon-systems/go-certauth", "path": "certutils/certutils_pre_go18.go", "func_name": "LoadCACertFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadCACertFile reads in a CA cert file that may contain multiple certs\n// and gives you back a proper x509.CertPool for your fun and proffit", "docstring_tokens": ["LoadCACertFile", "reads", "in", "a", "CA", "cert", "file", "that", "may", "contain", "multiple", "certs", "and", "gives", "you", "back", "a", "proper", "x509", ".", "CertPool", "for", "your", "fun", "and", "proffit"], "sha": "8764720d23a5034dd9fab090815b7859463c68f6", "url": "https://github.com/pantheon-systems/go-certauth/blob/8764720d23a5034dd9fab090815b7859463c68f6/certutils/certutils_pre_go18.go#L104-L117", "partition": "test"} +{"repo": "pantheon-systems/go-certauth", "path": "certauth.go", "func_name": "NewAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAuth returns an auth", "docstring_tokens": ["NewAuth", "returns", "an", "auth"], "sha": "8764720d23a5034dd9fab090815b7859463c68f6", "url": "https://github.com/pantheon-systems/go-certauth/blob/8764720d23a5034dd9fab090815b7859463c68f6/certauth.go#L63-L78", "partition": "test"} +{"repo": "pantheon-systems/go-certauth", "path": "certauth.go", "func_name": "ValidateRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateRequest perfomrs verification on the TLS certs and chain", "docstring_tokens": ["ValidateRequest", "perfomrs", "verification", "on", "the", "TLS", "certs", "and", "chain"], "sha": "8764720d23a5034dd9fab090815b7859463c68f6", "url": "https://github.com/pantheon-systems/go-certauth/blob/8764720d23a5034dd9fab090815b7859463c68f6/certauth.go#L121-L136", "partition": "test"} +{"repo": "pantheon-systems/go-certauth", "path": "certauth.go", "func_name": "Process", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Process is the main Entrypoint", "docstring_tokens": ["Process", "is", "the", "main", "Entrypoint"], "sha": "8764720d23a5034dd9fab090815b7859463c68f6", "url": "https://github.com/pantheon-systems/go-certauth/blob/8764720d23a5034dd9fab090815b7859463c68f6/certauth.go#L139-L162", "partition": "test"} +{"repo": "pantheon-systems/go-certauth", "path": "certauth.go", "func_name": "ValidateCN", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateCN checks the CN of a verified peer cert and raises a 403 if the CN doesn't match any CN in the AllowedCNs list.", "docstring_tokens": ["ValidateCN", "checks", "the", "CN", "of", "a", "verified", "peer", "cert", "and", "raises", "a", "403", "if", "the", "CN", "doesn", "t", "match", "any", "CN", "in", "the", "AllowedCNs", "list", "."], "sha": "8764720d23a5034dd9fab090815b7859463c68f6", "url": "https://github.com/pantheon-systems/go-certauth/blob/8764720d23a5034dd9fab090815b7859463c68f6/certauth.go#L165-L175", "partition": "test"} +{"repo": "pantheon-systems/go-certauth", "path": "certauth.go", "func_name": "ValidateOU", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidateOU checks the OU of a verified peer cert and raises 403 if the OU doesn't match any OU in the AllowedOUs list.", "docstring_tokens": ["ValidateOU", "checks", "the", "OU", "of", "a", "verified", "peer", "cert", "and", "raises", "403", "if", "the", "OU", "doesn", "t", "match", "any", "OU", "in", "the", "AllowedOUs", "list", "."], "sha": "8764720d23a5034dd9fab090815b7859463c68f6", "url": "https://github.com/pantheon-systems/go-certauth/blob/8764720d23a5034dd9fab090815b7859463c68f6/certauth.go#L178-L190", "partition": "test"} +{"repo": "jmank88/nuts", "path": "key.go", "func_name": "KeyLen", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KeyLen returns the minimum number of bytes required to represent x; the result is 1 for x == 0.\n// Returns 1-8.", "docstring_tokens": ["KeyLen", "returns", "the", "minimum", "number", "of", "bytes", "required", "to", "represent", "x", ";", "the", "result", "is", "1", "for", "x", "==", "0", ".", "Returns", "1", "-", "8", "."], "sha": "8b28145dffc87104e66d074f62ea8080edfad7c8", "url": "https://github.com/jmank88/nuts/blob/8b28145dffc87104e66d074f62ea8080edfad7c8/key.go#L5-L20", "partition": "test"} +{"repo": "giantswarm/certctl", "path": "service/cert-signer/cert_signer.go", "func_name": "DefaultConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultConfig provides a default configuration to create a certificate\n// signer.", "docstring_tokens": ["DefaultConfig", "provides", "a", "default", "configuration", "to", "create", "a", "certificate", "signer", "."], "sha": "2a6615f61499cd09a8d5ced9a5fade322d2de254", "url": "https://github.com/giantswarm/certctl/blob/2a6615f61499cd09a8d5ced9a5fade322d2de254/service/cert-signer/cert_signer.go#L24-L38", "partition": "test"} +{"repo": "giantswarm/certctl", "path": "service/cert-signer/cert_signer.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new configured certificate signer.", "docstring_tokens": ["New", "creates", "a", "new", "configured", "certificate", "signer", "."], "sha": "2a6615f61499cd09a8d5ced9a5fade322d2de254", "url": "https://github.com/giantswarm/certctl/blob/2a6615f61499cd09a8d5ced9a5fade322d2de254/service/cert-signer/cert_signer.go#L41-L52", "partition": "test"} +{"repo": "giantswarm/certctl", "path": "service/vault-factory/vault_factory.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new configured Vault factory.", "docstring_tokens": ["New", "creates", "a", "new", "configured", "Vault", "factory", "."], "sha": "2a6615f61499cd09a8d5ced9a5fade322d2de254", "url": "https://github.com/giantswarm/certctl/blob/2a6615f61499cd09a8d5ced9a5fade322d2de254/service/vault-factory/vault_factory.go#L30-L44", "partition": "test"} +{"repo": "giantswarm/certctl", "path": "service/pki/service.go", "func_name": "DefaultServiceConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultServiceConfig provides a default configuration to create a PKI controller.", "docstring_tokens": ["DefaultServiceConfig", "provides", "a", "default", "configuration", "to", "create", "a", "PKI", "controller", "."], "sha": "2a6615f61499cd09a8d5ced9a5fade322d2de254", "url": "https://github.com/giantswarm/certctl/blob/2a6615f61499cd09a8d5ced9a5fade322d2de254/service/pki/service.go#L17-L31", "partition": "test"} +{"repo": "giantswarm/certctl", "path": "service/pki/service.go", "func_name": "NewService", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewService creates a new configured PKI controller.", "docstring_tokens": ["NewService", "creates", "a", "new", "configured", "PKI", "controller", "."], "sha": "2a6615f61499cd09a8d5ced9a5fade322d2de254", "url": "https://github.com/giantswarm/certctl/blob/2a6615f61499cd09a8d5ced9a5fade322d2de254/service/pki/service.go#L34-L45", "partition": "test"} +{"repo": "giantswarm/certctl", "path": "service/pki/service.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PKI management.", "docstring_tokens": ["PKI", "management", "."], "sha": "2a6615f61499cd09a8d5ced9a5fade322d2de254", "url": "https://github.com/giantswarm/certctl/blob/2a6615f61499cd09a8d5ced9a5fade322d2de254/service/pki/service.go#L53-L71", "partition": "test"} +{"repo": "giantswarm/certctl", "path": "service/role/error.go", "func_name": "IsNoVaultHandlerDefined", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsNoVaultHandlerDefined asserts a dirty string matching against the error\n// message provided by err. This is necessary due to the poor error handling\n// design of the Vault library we are using.", "docstring_tokens": ["IsNoVaultHandlerDefined", "asserts", "a", "dirty", "string", "matching", "against", "the", "error", "message", "provided", "by", "err", ".", "This", "is", "necessary", "due", "to", "the", "poor", "error", "handling", "design", "of", "the", "Vault", "library", "we", "are", "using", "."], "sha": "2a6615f61499cd09a8d5ced9a5fade322d2de254", "url": "https://github.com/giantswarm/certctl/blob/2a6615f61499cd09a8d5ced9a5fade322d2de254/service/role/error.go#L21-L29", "partition": "test"} +{"repo": "giantswarm/certctl", "path": "service/role/service.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New takes a configuration and returns a configured service.", "docstring_tokens": ["New", "takes", "a", "configuration", "and", "returns", "a", "configured", "service", "."], "sha": "2a6615f61499cd09a8d5ced9a5fade322d2de254", "url": "https://github.com/giantswarm/certctl/blob/2a6615f61499cd09a8d5ced9a5fade322d2de254/service/role/service.go#L27-L43", "partition": "test"} +{"repo": "giantswarm/certctl", "path": "service/role/service.go", "func_name": "Create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Create creates a role if it doesn't exist yet. Creating roles is idempotent\n// in the vault api, so no need to check if it already exists.", "docstring_tokens": ["Create", "creates", "a", "role", "if", "it", "doesn", "t", "exist", "yet", ".", "Creating", "roles", "is", "idempotent", "in", "the", "vault", "api", "so", "no", "need", "to", "check", "if", "it", "already", "exists", "."], "sha": "2a6615f61499cd09a8d5ced9a5fade322d2de254", "url": "https://github.com/giantswarm/certctl/blob/2a6615f61499cd09a8d5ced9a5fade322d2de254/service/role/service.go#L55-L71", "partition": "test"} +{"repo": "fossapps/captain", "path": "captain.go", "func_name": "CreateJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateJob creates a basic empty configuration with some defaults.", "docstring_tokens": ["CreateJob", "creates", "a", "basic", "empty", "configuration", "with", "some", "defaults", "."], "sha": "0f30dc3a624d523638831aa2bcb08bc962234a95", "url": "https://github.com/fossapps/captain/blob/0f30dc3a624d523638831aa2bcb08bc962234a95/captain.go#L44-L52", "partition": "test"} +{"repo": "fossapps/captain", "path": "captain.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run starts the job", "docstring_tokens": ["Run", "starts", "the", "job"], "sha": "0f30dc3a624d523638831aa2bcb08bc962234a95", "url": "https://github.com/fossapps/captain/blob/0f30dc3a624d523638831aa2bcb08bc962234a95/captain.go#L80-L89", "partition": "test"} +{"repo": "gokyle/fswatch", "path": "watcher.go", "func_name": "newWatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newWatcher is the internal function for properly setting up a new watcher.", "docstring_tokens": ["newWatcher", "is", "the", "internal", "function", "for", "properly", "setting", "up", "a", "new", "watcher", "."], "sha": "1dbdf8320a690537582afe0f45c947f501adeaad", "url": "https://github.com/gokyle/fswatch/blob/1dbdf8320a690537582afe0f45c947f501adeaad/watcher.go#L19-L40", "partition": "test"} +{"repo": "gokyle/fswatch", "path": "watcher.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Start begins watching the files, sending notifications when files change.\n// It returns a channel that notifications are sent on.", "docstring_tokens": ["Start", "begins", "watching", "the", "files", "sending", "notifications", "when", "files", "change", ".", "It", "returns", "a", "channel", "that", "notifications", "are", "sent", "on", "."], "sha": "1dbdf8320a690537582afe0f45c947f501adeaad", "url": "https://github.com/gokyle/fswatch/blob/1dbdf8320a690537582afe0f45c947f501adeaad/watcher.go#L59-L70", "partition": "test"} +{"repo": "gokyle/fswatch", "path": "watcher.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop listening for changes to the files.", "docstring_tokens": ["Stop", "listening", "for", "changes", "to", "the", "files", "."], "sha": "1dbdf8320a690537582afe0f45c947f501adeaad", "url": "https://github.com/gokyle/fswatch/blob/1dbdf8320a690537582afe0f45c947f501adeaad/watcher.go#L73-L81", "partition": "test"} +{"repo": "gokyle/fswatch", "path": "watcher.go", "func_name": "Active", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns true if the Watcher is actively looking for changes.", "docstring_tokens": ["Returns", "true", "if", "the", "Watcher", "is", "actively", "looking", "for", "changes", "."], "sha": "1dbdf8320a690537582afe0f45c947f501adeaad", "url": "https://github.com/gokyle/fswatch/blob/1dbdf8320a690537582afe0f45c947f501adeaad/watcher.go#L84-L86", "partition": "test"} +{"repo": "gokyle/fswatch", "path": "watcher.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// The Add method takes a variable number of string arguments and adds those\n// files to the watch list, returning the number of files added.", "docstring_tokens": ["The", "Add", "method", "takes", "a", "variable", "number", "of", "string", "arguments", "and", "adds", "those", "files", "to", "the", "watch", "list", "returning", "the", "number", "of", "files", "added", "."], "sha": "1dbdf8320a690537582afe0f45c947f501adeaad", "url": "https://github.com/gokyle/fswatch/blob/1dbdf8320a690537582afe0f45c947f501adeaad/watcher.go#L90-L111", "partition": "test"} +{"repo": "gokyle/fswatch", "path": "watcher.go", "func_name": "watch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// goroutine that cycles through the list of paths and checks for updates.", "docstring_tokens": ["goroutine", "that", "cycles", "through", "the", "list", "of", "paths", "and", "checks", "for", "updates", "."], "sha": "1dbdf8320a690537582afe0f45c947f501adeaad", "url": "https://github.com/gokyle/fswatch/blob/1dbdf8320a690537582afe0f45c947f501adeaad/watcher.go#L114-L134", "partition": "test"} +{"repo": "gokyle/fswatch", "path": "watcher.go", "func_name": "Watching", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Watching returns a list of the files being watched.", "docstring_tokens": ["Watching", "returns", "a", "list", "of", "the", "files", "being", "watched", "."], "sha": "1dbdf8320a690537582afe0f45c947f501adeaad", "url": "https://github.com/gokyle/fswatch/blob/1dbdf8320a690537582afe0f45c947f501adeaad/watcher.go#L231-L237", "partition": "test"} +{"repo": "gokyle/fswatch", "path": "watcher.go", "func_name": "State", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// State returns a slice of Notifications representing the files being watched\n// and their last event.", "docstring_tokens": ["State", "returns", "a", "slice", "of", "Notifications", "representing", "the", "files", "being", "watched", "and", "their", "last", "event", "."], "sha": "1dbdf8320a690537582afe0f45c947f501adeaad", "url": "https://github.com/gokyle/fswatch/blob/1dbdf8320a690537582afe0f45c947f501adeaad/watcher.go#L241-L250", "partition": "test"} +{"repo": "bluekeyes/hatpear", "path": "hatpear.go", "func_name": "Store", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Store stores an error into the request's context. It panics if the request\n// was not configured to store errors.", "docstring_tokens": ["Store", "stores", "an", "error", "into", "the", "request", "s", "context", ".", "It", "panics", "if", "the", "request", "was", "not", "configured", "to", "store", "errors", "."], "sha": "ffb42d5bb417aa8e12b3b7ff73d028b915dafa10", "url": "https://github.com/bluekeyes/hatpear/blob/ffb42d5bb417aa8e12b3b7ff73d028b915dafa10/hatpear.go#L26-L35", "partition": "test"} +{"repo": "bluekeyes/hatpear", "path": "hatpear.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get retrieves an error from the request's context. It returns nil if the\n// request was not configured to store errors.", "docstring_tokens": ["Get", "retrieves", "an", "error", "from", "the", "request", "s", "context", ".", "It", "returns", "nil", "if", "the", "request", "was", "not", "configured", "to", "store", "errors", "."], "sha": "ffb42d5bb417aa8e12b3b7ff73d028b915dafa10", "url": "https://github.com/bluekeyes/hatpear/blob/ffb42d5bb417aa8e12b3b7ff73d028b915dafa10/hatpear.go#L39-L45", "partition": "test"} +{"repo": "bluekeyes/hatpear", "path": "hatpear.go", "func_name": "Catch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Catch creates middleware that processes errors stored while serving a\n// request. Errors are passed to the callback, which should write them to the\n// response in an appropriate format. This is usually the outermost middleware\n// in a chain.", "docstring_tokens": ["Catch", "creates", "middleware", "that", "processes", "errors", "stored", "while", "serving", "a", "request", ".", "Errors", "are", "passed", "to", "the", "callback", "which", "should", "write", "them", "to", "the", "response", "in", "an", "appropriate", "format", ".", "This", "is", "usually", "the", "outermost", "middleware", "in", "a", "chain", "."], "sha": "ffb42d5bb417aa8e12b3b7ff73d028b915dafa10", "url": "https://github.com/bluekeyes/hatpear/blob/ffb42d5bb417aa8e12b3b7ff73d028b915dafa10/hatpear.go#L54-L66", "partition": "test"} +{"repo": "bluekeyes/hatpear", "path": "hatpear.go", "func_name": "Try", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Try converts a handler to a standard http.Handler, storing any error in the\n// request's context.", "docstring_tokens": ["Try", "converts", "a", "handler", "to", "a", "standard", "http", ".", "Handler", "storing", "any", "error", "in", "the", "request", "s", "context", "."], "sha": "ffb42d5bb417aa8e12b3b7ff73d028b915dafa10", "url": "https://github.com/bluekeyes/hatpear/blob/ffb42d5bb417aa8e12b3b7ff73d028b915dafa10/hatpear.go#L82-L87", "partition": "test"} +{"repo": "bluekeyes/hatpear", "path": "hatpear.go", "func_name": "Recover", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Recover creates middleware that can recover from a panic in a handler,\n// storing a PanicError for future handling.", "docstring_tokens": ["Recover", "creates", "middleware", "that", "can", "recover", "from", "a", "panic", "in", "a", "handler", "storing", "a", "PanicError", "for", "future", "handling", "."], "sha": "ffb42d5bb417aa8e12b3b7ff73d028b915dafa10", "url": "https://github.com/bluekeyes/hatpear/blob/ffb42d5bb417aa8e12b3b7ff73d028b915dafa10/hatpear.go#L96-L110", "partition": "test"} +{"repo": "jpillora/velox", "path": "example/go/perf/client/client.go", "func_name": "main", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//go client for performance testing", "docstring_tokens": ["go", "client", "for", "performance", "testing"], "sha": "42845d32322027cde41ba6b065a083ea4120238f", "url": "https://github.com/jpillora/velox/blob/42845d32322027cde41ba6b065a083ea4120238f/example/go/perf/client/client.go#L12-L34", "partition": "test"} +{"repo": "jpillora/velox", "path": "go/sync.go", "func_name": "SyncHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//SyncHandler is a small wrapper around Sync which simply synchronises\n//all incoming connections. Use Sync if you wish to implement user authentication\n//or any other request-time checks.", "docstring_tokens": ["SyncHandler", "is", "a", "small", "wrapper", "around", "Sync", "which", "simply", "synchronises", "all", "incoming", "connections", ".", "Use", "Sync", "if", "you", "wish", "to", "implement", "user", "authentication", "or", "any", "other", "request", "-", "time", "checks", "."], "sha": "42845d32322027cde41ba6b065a083ea4120238f", "url": "https://github.com/jpillora/velox/blob/42845d32322027cde41ba6b065a083ea4120238f/go/sync.go#L21-L29", "partition": "test"} +{"repo": "jpillora/velox", "path": "go/conn.go", "func_name": "connect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//connect using the provided transport\n//and block until connection is ready", "docstring_tokens": ["connect", "using", "the", "provided", "transport", "and", "block", "until", "connection", "is", "ready"], "sha": "42845d32322027cde41ba6b065a083ea4120238f", "url": "https://github.com/jpillora/velox/blob/42845d32322027cde41ba6b065a083ea4120238f/go/conn.go#L76-L123", "partition": "test"} +{"repo": "jpillora/velox", "path": "go/conn.go", "func_name": "send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//send to connection, ensure only 1 concurrent sender", "docstring_tokens": ["send", "to", "connection", "ensure", "only", "1", "concurrent", "sender"], "sha": "42845d32322027cde41ba6b065a083ea4120238f", "url": "https://github.com/jpillora/velox/blob/42845d32322027cde41ba6b065a083ea4120238f/go/conn.go#L177-L182", "partition": "test"} +{"repo": "jpillora/velox", "path": "go/state.go", "func_name": "NumConnections", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NumConnections currently active", "docstring_tokens": ["NumConnections", "currently", "active"], "sha": "42845d32322027cde41ba6b065a083ea4120238f", "url": "https://github.com/jpillora/velox/blob/42845d32322027cde41ba6b065a083ea4120238f/go/state.go#L135-L140", "partition": "test"} +{"repo": "jpillora/velox", "path": "go/state.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Push the changes from this object to all connected clients.\n//Push is thread-safe and is throttled so it can be called\n//with abandon. Returns false if a Push is already in progress.", "docstring_tokens": ["Push", "the", "changes", "from", "this", "object", "to", "all", "connected", "clients", ".", "Push", "is", "thread", "-", "safe", "and", "is", "throttled", "so", "it", "can", "be", "called", "with", "abandon", ".", "Returns", "false", "if", "a", "Push", "is", "already", "in", "progress", "."], "sha": "42845d32322027cde41ba6b065a083ea4120238f", "url": "https://github.com/jpillora/velox/blob/42845d32322027cde41ba6b065a083ea4120238f/go/state.go#L145-L154", "partition": "test"} +{"repo": "jpillora/velox", "path": "go/state.go", "func_name": "gopush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//non-blocking push", "docstring_tokens": ["non", "-", "blocking", "push"], "sha": "42845d32322027cde41ba6b065a083ea4120238f", "url": "https://github.com/jpillora/velox/blob/42845d32322027cde41ba6b065a083ea4120238f/go/state.go#L157-L210", "partition": "test"} +{"repo": "fujiwara/fluent-agent-hydra", "path": "hydra/out_forward.go", "func_name": "NewOutForward", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OutForward ... recieve FluentRecordSet from channel, and send it to passed loggers until success.", "docstring_tokens": ["OutForward", "...", "recieve", "FluentRecordSet", "from", "channel", "and", "send", "it", "to", "passed", "loggers", "until", "success", "."], "sha": "f5c1c02a0b892cf5c08918ec2ff7bbca71cc7e4f", "url": "https://github.com/fujiwara/fluent-agent-hydra/blob/f5c1c02a0b892cf5c08918ec2ff7bbca71cc7e4f/hydra/out_forward.go#L24-L40", "partition": "test"} +{"repo": "fujiwara/fluent-agent-hydra", "path": "hydra/in_tail.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InTail follow the tail of file and post BulkMessage to channel.", "docstring_tokens": ["InTail", "follow", "the", "tail", "of", "file", "and", "post", "BulkMessage", "to", "channel", "."], "sha": "f5c1c02a0b892cf5c08918ec2ff7bbca71cc7e4f", "url": "https://github.com/fujiwara/fluent-agent-hydra/blob/f5c1c02a0b892cf5c08918ec2ff7bbca71cc7e4f/hydra/in_tail.go#L148-L204", "partition": "test"} +{"repo": "fujiwara/fluent-agent-hydra", "path": "fluent/fluent.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new Logger.", "docstring_tokens": ["New", "creates", "a", "new", "Logger", "."], "sha": "f5c1c02a0b892cf5c08918ec2ff7bbca71cc7e4f", "url": "https://github.com/fujiwara/fluent-agent-hydra/blob/f5c1c02a0b892cf5c08918ec2ff7bbca71cc7e4f/fluent/fluent.go#L66-L86", "partition": "test"} +{"repo": "fujiwara/fluent-agent-hydra", "path": "fluent/fluent.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close closes the connection.", "docstring_tokens": ["Close", "closes", "the", "connection", "."], "sha": "f5c1c02a0b892cf5c08918ec2ff7bbca71cc7e4f", "url": "https://github.com/fujiwara/fluent-agent-hydra/blob/f5c1c02a0b892cf5c08918ec2ff7bbca71cc7e4f/fluent/fluent.go#L89-L101", "partition": "test"} +{"repo": "fujiwara/fluent-agent-hydra", "path": "fluent/fluent.go", "func_name": "IsReconnecting", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsReconnecting return true if a reconnecting process in progress.", "docstring_tokens": ["IsReconnecting", "return", "true", "if", "a", "reconnecting", "process", "in", "progress", "."], "sha": "f5c1c02a0b892cf5c08918ec2ff7bbca71cc7e4f", "url": "https://github.com/fujiwara/fluent-agent-hydra/blob/f5c1c02a0b892cf5c08918ec2ff7bbca71cc7e4f/fluent/fluent.go#L121-L125", "partition": "test"} +{"repo": "fujiwara/fluent-agent-hydra", "path": "fluent/fluent.go", "func_name": "connect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// connect establishes a new connection using the specified transport.", "docstring_tokens": ["connect", "establishes", "a", "new", "connection", "using", "the", "specified", "transport", "."], "sha": "f5c1c02a0b892cf5c08918ec2ff7bbca71cc7e4f", "url": "https://github.com/fujiwara/fluent-agent-hydra/blob/f5c1c02a0b892cf5c08918ec2ff7bbca71cc7e4f/fluent/fluent.go#L132-L157", "partition": "test"} +{"repo": "haklop/gnotifier", "path": "gnotifier.go", "func_name": "Notification", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Notification is the builder", "docstring_tokens": ["Notification", "is", "the", "builder"], "sha": "0de36badf60155d5953373ed432982b20c62fb91", "url": "https://github.com/haklop/gnotifier/blob/0de36badf60155d5953373ed432982b20c62fb91/gnotifier.go#L48-L52", "partition": "test"} +{"repo": "haklop/gnotifier", "path": "gnotifier.go", "func_name": "NullNotification", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NullNotification is the builder for tests where no side effects are desired", "docstring_tokens": ["NullNotification", "is", "the", "builder", "for", "tests", "where", "no", "side", "effects", "are", "desired"], "sha": "0de36badf60155d5953373ed432982b20c62fb91", "url": "https://github.com/haklop/gnotifier/blob/0de36badf60155d5953373ed432982b20c62fb91/gnotifier.go#L71-L75", "partition": "test"} +{"repo": "mastahyeti/fakeca", "path": "identity.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new CA.", "docstring_tokens": ["New", "creates", "a", "new", "CA", "."], "sha": "c1d84b1b473e99212130da7b311dd0605de5ed0a", "url": "https://github.com/mastahyeti/fakeca/blob/c1d84b1b473e99212130da7b311dd0605de5ed0a/identity.go#L24-L32", "partition": "test"} +{"repo": "mastahyeti/fakeca", "path": "identity.go", "func_name": "Issue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Issue issues a new Identity with this one as its parent.", "docstring_tokens": ["Issue", "issues", "a", "new", "Identity", "with", "this", "one", "as", "its", "parent", "."], "sha": "c1d84b1b473e99212130da7b311dd0605de5ed0a", "url": "https://github.com/mastahyeti/fakeca/blob/c1d84b1b473e99212130da7b311dd0605de5ed0a/identity.go#L35-L38", "partition": "test"} +{"repo": "mastahyeti/fakeca", "path": "configuration.go", "func_name": "Subject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subject is an Option that sets a identity's subject field.", "docstring_tokens": ["Subject", "is", "an", "Option", "that", "sets", "a", "identity", "s", "subject", "field", "."], "sha": "c1d84b1b473e99212130da7b311dd0605de5ed0a", "url": "https://github.com/mastahyeti/fakeca/blob/c1d84b1b473e99212130da7b311dd0605de5ed0a/configuration.go#L171-L175", "partition": "test"} +{"repo": "mastahyeti/fakeca", "path": "configuration.go", "func_name": "PrivateKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrivateKey is an Option for setting the identity's private key.", "docstring_tokens": ["PrivateKey", "is", "an", "Option", "for", "setting", "the", "identity", "s", "private", "key", "."], "sha": "c1d84b1b473e99212130da7b311dd0605de5ed0a", "url": "https://github.com/mastahyeti/fakeca/blob/c1d84b1b473e99212130da7b311dd0605de5ed0a/configuration.go#L186-L190", "partition": "test"} +{"repo": "mastahyeti/fakeca", "path": "configuration.go", "func_name": "NotBefore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotBefore is an Option for setting the identity's certificate's NotBefore.", "docstring_tokens": ["NotBefore", "is", "an", "Option", "for", "setting", "the", "identity", "s", "certificate", "s", "NotBefore", "."], "sha": "c1d84b1b473e99212130da7b311dd0605de5ed0a", "url": "https://github.com/mastahyeti/fakeca/blob/c1d84b1b473e99212130da7b311dd0605de5ed0a/configuration.go#L200-L204", "partition": "test"} +{"repo": "mastahyeti/fakeca", "path": "configuration.go", "func_name": "NotAfter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotAfter is an Option for setting the identity's certificate's NotAfter.", "docstring_tokens": ["NotAfter", "is", "an", "Option", "for", "setting", "the", "identity", "s", "certificate", "s", "NotAfter", "."], "sha": "c1d84b1b473e99212130da7b311dd0605de5ed0a", "url": "https://github.com/mastahyeti/fakeca/blob/c1d84b1b473e99212130da7b311dd0605de5ed0a/configuration.go#L207-L211", "partition": "test"} +{"repo": "mastahyeti/fakeca", "path": "configuration.go", "func_name": "IssuingCertificateURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IssuingCertificateURL is an Option for setting the identity's certificate's\n// IssuingCertificateURL.", "docstring_tokens": ["IssuingCertificateURL", "is", "an", "Option", "for", "setting", "the", "identity", "s", "certificate", "s", "IssuingCertificateURL", "."], "sha": "c1d84b1b473e99212130da7b311dd0605de5ed0a", "url": "https://github.com/mastahyeti/fakeca/blob/c1d84b1b473e99212130da7b311dd0605de5ed0a/configuration.go#L215-L219", "partition": "test"} +{"repo": "mastahyeti/fakeca", "path": "configuration.go", "func_name": "OCSPServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OCSPServer is an Option for setting the identity's certificate's OCSPServer.", "docstring_tokens": ["OCSPServer", "is", "an", "Option", "for", "setting", "the", "identity", "s", "certificate", "s", "OCSPServer", "."], "sha": "c1d84b1b473e99212130da7b311dd0605de5ed0a", "url": "https://github.com/mastahyeti/fakeca/blob/c1d84b1b473e99212130da7b311dd0605de5ed0a/configuration.go#L222-L226", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "api.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new API Client for a Telegram bot using the apiKey\n// provided.\n// It will call the GetMe method to retrieve the bots id, name and\n// username.\n//\n// This bot uses long polling to retrieve its updates. If a webhook was set\n// for the given apiKey, this will remove it.", "docstring_tokens": ["New", "creates", "a", "new", "API", "Client", "for", "a", "Telegram", "bot", "using", "the", "apiKey", "provided", ".", "It", "will", "call", "the", "GetMe", "method", "to", "retrieve", "the", "bots", "id", "name", "and", "username", ".", "This", "bot", "uses", "long", "polling", "to", "retrieve", "its", "updates", ".", "If", "a", "webhook", "was", "set", "for", "the", "given", "apiKey", "this", "will", "remove", "it", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/api.go#L60-L85", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "api.go", "func_name": "NewWithWebhook", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWithWebhook creates a new API client for a Telegram bot using the apiKey\n// provided. It will call the GetMe method to retrieve the bots id, name and\n// username.\n// In addition to the API client, a http.HandlerFunc will be returned. This\n// handler func reacts to webhook requests and will put updates into the\n// Updates channel.", "docstring_tokens": ["NewWithWebhook", "creates", "a", "new", "API", "client", "for", "a", "Telegram", "bot", "using", "the", "apiKey", "provided", ".", "It", "will", "call", "the", "GetMe", "method", "to", "retrieve", "the", "bots", "id", "name", "and", "username", ".", "In", "addition", "to", "the", "API", "client", "a", "http", ".", "HandlerFunc", "will", "be", "returned", ".", "This", "handler", "func", "reacts", "to", "webhook", "requests", "and", "will", "put", "updates", "into", "the", "Updates", "channel", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/api.go#L93-L137", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "api.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close shuts down this client.\n// Until Close returns, new updates and errors will be put into the\n// respective channels.\n// Note that, if no updates are received, this function may block for up to\n// one minute, which is the time interval\n// for long polling.", "docstring_tokens": ["Close", "shuts", "down", "this", "client", ".", "Until", "Close", "returns", "new", "updates", "and", "errors", "will", "be", "put", "into", "the", "respective", "channels", ".", "Note", "that", "if", "no", "updates", "are", "received", "this", "function", "may", "block", "for", "up", "to", "one", "minute", "which", "is", "the", "time", "interval", "for", "long", "polling", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/api.go#L145-L153", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "api.go", "func_name": "GetMe", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMe returns basic information about the bot in form of a UserResponse.", "docstring_tokens": ["GetMe", "returns", "basic", "information", "about", "the", "bot", "in", "form", "of", "a", "UserResponse", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/api.go#L265-L277", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "examples/boilerplate/boilerplate.go", "func_name": "RunBot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunBot runs a bot.\n// It will block until either something very bad happens or closing is closed.", "docstring_tokens": ["RunBot", "runs", "a", "bot", ".", "It", "will", "block", "until", "either", "something", "very", "bad", "happens", "or", "closing", "is", "closed", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/examples/boilerplate/boilerplate.go#L25-L83", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "examples/boilerplate/boilerplate.go", "func_name": "RunBotOnWebhook", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunBotOnWebhook runs the given BotFunc with a webhook.", "docstring_tokens": ["RunBotOnWebhook", "runs", "the", "given", "BotFunc", "with", "a", "webhook", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/examples/boilerplate/boilerplate.go#L86-L155", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingMessage creates a new outgoing message.", "docstring_tokens": ["NewOutgoingMessage", "creates", "a", "new", "outgoing", "message", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L10-L21", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingLocation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingLocation creates a new outgoing location.", "docstring_tokens": ["NewOutgoingLocation", "creates", "a", "new", "outgoing", "location", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L24-L35", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingVenue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingVenue creates a new outgoing location.", "docstring_tokens": ["NewOutgoingVenue", "creates", "a", "new", "outgoing", "location", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L38-L51", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingVideo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingVideo creates a new outgoing video file.", "docstring_tokens": ["NewOutgoingVideo", "creates", "a", "new", "outgoing", "video", "file", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L54-L67", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingVideoResend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingVideoResend creates a new outgoing video file for re-sending.", "docstring_tokens": ["NewOutgoingVideoResend", "creates", "a", "new", "outgoing", "video", "file", "for", "re", "-", "sending", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L70-L82", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingPhoto", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingPhoto creates a new outgoing photo.", "docstring_tokens": ["NewOutgoingPhoto", "creates", "a", "new", "outgoing", "photo", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L85-L98", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingPhotoResend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingPhotoResend creates a new outgoing photo for re-sending.", "docstring_tokens": ["NewOutgoingPhotoResend", "creates", "a", "new", "outgoing", "photo", "for", "re", "-", "sending", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L101-L113", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingSticker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingSticker creates a new outgoing sticker message.", "docstring_tokens": ["NewOutgoingSticker", "creates", "a", "new", "outgoing", "sticker", "message", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L116-L129", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingStickerResend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingStickerResend creates a new outgoing sticker message for\n// re-sending.", "docstring_tokens": ["NewOutgoingStickerResend", "creates", "a", "new", "outgoing", "sticker", "message", "for", "re", "-", "sending", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L133-L145", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingVoice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingVoice creates a new outgoing voice note.", "docstring_tokens": ["NewOutgoingVoice", "creates", "a", "new", "outgoing", "voice", "note", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L148-L161", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingVoiceResend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingVoiceResend creates a new outgoing voice note for re-sending.", "docstring_tokens": ["NewOutgoingVoiceResend", "creates", "a", "new", "outgoing", "voice", "note", "for", "re", "-", "sending", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L164-L176", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingAudio", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingAudio creates a new outgoing audio file.", "docstring_tokens": ["NewOutgoingAudio", "creates", "a", "new", "outgoing", "audio", "file", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L179-L192", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingAudioResend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingAudioResend creates a new outgoing audio file for re-sending.", "docstring_tokens": ["NewOutgoingAudioResend", "creates", "a", "new", "outgoing", "audio", "file", "for", "re", "-", "sending", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L195-L207", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingDocument", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingDocument creates a new outgoing file.", "docstring_tokens": ["NewOutgoingDocument", "creates", "a", "new", "outgoing", "file", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L210-L223", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingDocumentResend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingDocumentResend creates a new outgoing file for re-sending.", "docstring_tokens": ["NewOutgoingDocumentResend", "creates", "a", "new", "outgoing", "file", "for", "re", "-", "sending", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L226-L238", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingForward", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingForward creates a new outgoing, forwarded message.", "docstring_tokens": ["NewOutgoingForward", "creates", "a", "new", "outgoing", "forwarded", "message", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L241-L252", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingChatAction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingChatAction creates a new outgoing chat action.", "docstring_tokens": ["NewOutgoingChatAction", "creates", "a", "new", "outgoing", "chat", "action", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L255-L263", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingUserProfilePhotosRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingUserProfilePhotosRequest creates a new request for a users\n// profile photos.", "docstring_tokens": ["NewOutgoingUserProfilePhotosRequest", "creates", "a", "new", "request", "for", "a", "users", "profile", "photos", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L267-L272", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingKickChatMember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingKickChatMember creates a request to kick a member from a\n// group chat or channel.", "docstring_tokens": ["NewOutgoingKickChatMember", "creates", "a", "request", "to", "kick", "a", "member", "from", "a", "group", "chat", "or", "channel", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L276-L282", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingUnbanChatMember", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingUnbanChatMember creates a request to unban a member of a\n// group chat or channel.", "docstring_tokens": ["NewOutgoingUnbanChatMember", "creates", "a", "request", "to", "unban", "a", "member", "of", "a", "group", "chat", "or", "channel", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L286-L292", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewOutgoingCallbackQueryResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOutgoingCallbackQueryResponse creates a response to a callback query.", "docstring_tokens": ["NewOutgoingCallbackQueryResponse", "creates", "a", "response", "to", "a", "callback", "query", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L295-L300", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "ctors.go", "func_name": "NewInlineQueryAnswer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInlineQueryAnswer creates a new inline query answer.", "docstring_tokens": ["NewInlineQueryAnswer", "creates", "a", "new", "inline", "query", "answer", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/ctors.go#L303-L309", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "incoming.go", "func_name": "Type", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Type determines the type of the message.\n// Note that, for all these types, messages can still be replies or\n// forwarded.", "docstring_tokens": ["Type", "determines", "the", "type", "of", "the", "message", ".", "Note", "that", "for", "all", "these", "types", "messages", "can", "still", "be", "replies", "or", "forwarded", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/incoming.go#L150-L196", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "incoming.go", "func_name": "Type", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Type returns the type of the update.", "docstring_tokens": ["Type", "returns", "the", "type", "of", "the", "update", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/incoming.go#L376-L385", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "shared.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON marshals the recipient to JSON.", "docstring_tokens": ["MarshalJSON", "marshals", "the", "recipient", "to", "JSON", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/shared.go#L43-L53", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "outgoing.go", "func_name": "querystring", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// querystring implements querystringer to represent the outgoing certificate\n// file.", "docstring_tokens": ["querystring", "implements", "querystringer", "to", "represent", "the", "outgoing", "certificate", "file", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/outgoing.go#L20-L28", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "outgoing.go", "func_name": "getBaseQueryString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getBaseQueryString gets a Querystring representing this message.", "docstring_tokens": ["getBaseQueryString", "gets", "a", "Querystring", "representing", "this", "message", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/outgoing.go#L107-L117", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "outgoing.go", "func_name": "getBaseQueryString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getMessageBaseQueryString gets a Querystring representing this message.", "docstring_tokens": ["getMessageBaseQueryString", "gets", "a", "Querystring", "representing", "this", "message", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/outgoing.go#L120-L146", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "outgoing.go", "func_name": "querystring", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// querystring implements querystringer to represent the audio file.", "docstring_tokens": ["querystring", "implements", "querystringer", "to", "represent", "the", "audio", "file", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/outgoing.go#L194-L210", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "outgoing.go", "func_name": "querystring", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// querystring implements querystringer to represent the photo.", "docstring_tokens": ["querystring", "implements", "querystringer", "to", "represent", "the", "photo", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/outgoing.go#L304-L312", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "outgoing.go", "func_name": "querystring", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// querystring implements querystringer to represent the request.", "docstring_tokens": ["querystring", "implements", "querystringer", "to", "represent", "the", "request", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/outgoing.go#L369-L382", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "outgoing.go", "func_name": "querystring", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// querystring implements querystringer to represent the outgoing video\n// file.", "docstring_tokens": ["querystring", "implements", "querystringer", "to", "represent", "the", "outgoing", "video", "file", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/outgoing.go#L406-L418", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "outgoing.go", "func_name": "querystring", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// querystring implements querystringer to represent the outgoing voice\n// note.", "docstring_tokens": ["querystring", "implements", "querystringer", "to", "represent", "the", "outgoing", "voice", "note", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/outgoing.go#L435-L443", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "outgoing.go", "func_name": "NewInlineQueryResultArticle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInlineQueryResultArticle returns a new InlineQueryResultArticle with\n// all mandatory fields set.", "docstring_tokens": ["NewInlineQueryResultArticle", "returns", "a", "new", "InlineQueryResultArticle", "with", "all", "mandatory", "fields", "set", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/outgoing.go#L592-L601", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "outgoing.go", "func_name": "NewInlineQueryResultPhoto", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInlineQueryResultPhoto returns a new InlineQueryResultPhoto with all\n// mandatory fields set.", "docstring_tokens": ["NewInlineQueryResultPhoto", "returns", "a", "new", "InlineQueryResultPhoto", "with", "all", "mandatory", "fields", "set", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/outgoing.go#L624-L633", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "outgoing.go", "func_name": "NewInlineQueryResultGif", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInlineQueryResultGif returns a new InlineQueryResultGif with all\n// mandatory fields set.", "docstring_tokens": ["NewInlineQueryResultGif", "returns", "a", "new", "InlineQueryResultGif", "with", "all", "mandatory", "fields", "set", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/outgoing.go#L648-L657", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "outgoing.go", "func_name": "NewInlineQueryResultMpeg4Gif", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInlineQueryResultMpeg4Gif returns a new InlineQueryResultMpeg4Gif\n// with all mandatory fields set.", "docstring_tokens": ["NewInlineQueryResultMpeg4Gif", "returns", "a", "new", "InlineQueryResultMpeg4Gif", "with", "all", "mandatory", "fields", "set", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/outgoing.go#L673-L682", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "outgoing.go", "func_name": "NewInlineQueryResultVideo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInlineQueryResultVideo returns a new InlineQueryResultVideo with all\n// mandatory fields set.", "docstring_tokens": ["NewInlineQueryResultVideo", "returns", "a", "new", "InlineQueryResultVideo", "with", "all", "mandatory", "fields", "set", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/outgoing.go#L710-L722", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "sendable.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends the request.\n// On success, the photos are returned as a UserProfilePhotosResponse.", "docstring_tokens": ["Send", "sends", "the", "request", ".", "On", "success", "the", "photos", "are", "returned", "as", "a", "UserProfilePhotosResponse", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/sendable.go#L91-L104", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "sendable.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends the chat action.\n// On success, nil is returned.", "docstring_tokens": ["Send", "sends", "the", "chat", "action", ".", "On", "success", "nil", "is", "returned", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/sendable.go#L108-L117", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "sendable.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends the inline query answer.\n// On success, nil is returned.", "docstring_tokens": ["Send", "sends", "the", "inline", "query", "answer", ".", "On", "success", "nil", "is", "returned", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/sendable.go#L121-L130", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "sendable.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends the kick request.", "docstring_tokens": ["Send", "sends", "the", "kick", "request", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/sendable.go#L133-L142", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "sendable.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends the unban request.", "docstring_tokens": ["Send", "sends", "the", "unban", "request", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/sendable.go#L145-L154", "partition": "test"} +{"repo": "mrd0ll4r/tbotapi", "path": "sendable.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends the callback response.", "docstring_tokens": ["Send", "sends", "the", "callback", "response", "."], "sha": "edc257282178bb5cebbfcc41260ec04c1ec7ac19", "url": "https://github.com/mrd0ll4r/tbotapi/blob/edc257282178bb5cebbfcc41260ec04c1ec7ac19/sendable.go#L157-L166", "partition": "test"} +{"repo": "grokify/go-scim-client", "path": "api_client.go", "func_name": "NewAPIClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAPIClient creates a new API client. Requires a userAgent string describing your application.\n// optionally a custom http.Client to allow for advanced features such as caching.", "docstring_tokens": ["NewAPIClient", "creates", "a", "new", "API", "client", ".", "Requires", "a", "userAgent", "string", "describing", "your", "application", ".", "optionally", "a", "custom", "http", ".", "Client", "to", "allow", "for", "advanced", "features", "such", "as", "caching", "."], "sha": "800878015236174e45b05db1ec125aae20a093e4", "url": "https://github.com/grokify/go-scim-client/blob/800878015236174e45b05db1ec125aae20a093e4/api_client.go#L56-L70", "partition": "test"} +{"repo": "naoina/genmai", "path": "field.go", "func_name": "BeforeInsert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BeforeInsert sets current time to CreatedAt and UpdatedAt field.\n// It always returns nil.", "docstring_tokens": ["BeforeInsert", "sets", "current", "time", "to", "CreatedAt", "and", "UpdatedAt", "field", ".", "It", "always", "returns", "nil", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/field.go#L16-L21", "partition": "test"} +{"repo": "naoina/genmai", "path": "util.go", "func_name": "ColumnName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// columnName returns the column name that added the table name with quoted if needed.", "docstring_tokens": ["columnName", "returns", "the", "column", "name", "that", "added", "the", "table", "name", "with", "quoted", "if", "needed", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/util.go#L22-L30", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new DB.\n// If any error occurs, it returns nil and error.", "docstring_tokens": ["New", "returns", "a", "new", "DB", ".", "If", "any", "error", "occurs", "it", "returns", "nil", "and", "error", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L36-L42", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "From", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// From returns a \"FROM\" statement.\n// A table name will be determined from name of struct of arg.\n// If arg argument is not struct type, it panics.", "docstring_tokens": ["From", "returns", "a", "FROM", "statement", ".", "A", "table", "name", "will", "be", "determined", "from", "name", "of", "struct", "of", "arg", ".", "If", "arg", "argument", "is", "not", "struct", "type", "it", "panics", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L128-L134", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Where", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Where returns a new Condition of \"WHERE\" clause.", "docstring_tokens": ["Where", "returns", "a", "new", "Condition", "of", "WHERE", "clause", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L137-L139", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "OrderBy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OrderBy returns a new Condition of \"ORDER BY\" clause.", "docstring_tokens": ["OrderBy", "returns", "a", "new", "Condition", "of", "ORDER", "BY", "clause", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L142-L144", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Limit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Limit returns a new Condition of \"LIMIT\" clause.", "docstring_tokens": ["Limit", "returns", "a", "new", "Condition", "of", "LIMIT", "clause", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L147-L149", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Offset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Offset returns a new Condition of \"OFFSET\" clause.", "docstring_tokens": ["Offset", "returns", "a", "new", "Condition", "of", "OFFSET", "clause", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L152-L154", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Join", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Join returns a new JoinCondition of \"JOIN\" clause.", "docstring_tokens": ["Join", "returns", "a", "new", "JoinCondition", "of", "JOIN", "clause", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L162-L164", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Count", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Count returns \"COUNT\" function.", "docstring_tokens": ["Count", "returns", "COUNT", "function", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L171-L182", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update updates the one record.\n// The obj must be struct, and must have field that specified \"pk\" struct tag.\n// Update will try to update record which searched by value of primary key in obj.\n// Update returns the number of rows affected by an update.", "docstring_tokens": ["Update", "updates", "the", "one", "record", ".", "The", "obj", "must", "be", "struct", "and", "must", "have", "field", "that", "specified", "pk", "struct", "tag", ".", "Update", "will", "try", "to", "update", "record", "which", "searched", "by", "value", "of", "primary", "key", "in", "obj", ".", "Update", "returns", "the", "number", "of", "rows", "affected", "by", "an", "update", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L298-L342", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes the records from database table.\n// The obj must be pointer to struct or slice of struct, and must have field that specified \"pk\" struct tag.\n// Delete will try to delete record which searched by value of primary key in obj.\n// Delete returns teh number of rows affected by a delete.", "docstring_tokens": ["Delete", "deletes", "the", "records", "from", "database", "table", ".", "The", "obj", "must", "be", "pointer", "to", "struct", "or", "slice", "of", "struct", "and", "must", "have", "field", "that", "specified", "pk", "struct", "tag", ".", "Delete", "will", "try", "to", "delete", "record", "which", "searched", "by", "value", "of", "primary", "key", "in", "obj", ".", "Delete", "returns", "teh", "number", "of", "rows", "affected", "by", "a", "delete", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L432-L482", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Begin", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Begin starts a transaction.", "docstring_tokens": ["Begin", "starts", "a", "transaction", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L485-L494", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Commit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Commit commits the transaction.\n// If Begin still not called, or Commit or Rollback already called, Commit returns ErrTxDone.", "docstring_tokens": ["Commit", "commits", "the", "transaction", ".", "If", "Begin", "still", "not", "called", "or", "Commit", "or", "Rollback", "already", "called", "Commit", "returns", "ErrTxDone", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L498-L507", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Quote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Quote returns a quoted s.\n// It is for a column name, not a value.", "docstring_tokens": ["Quote", "returns", "a", "quoted", "s", ".", "It", "is", "for", "a", "column", "name", "not", "a", "value", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L544-L546", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "SetLogOutput", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLogOutput sets output destination for logging.\n// If w is nil, it unsets output of logging.", "docstring_tokens": ["SetLogOutput", "sets", "output", "destination", "for", "logging", ".", "If", "w", "is", "nil", "it", "unsets", "output", "of", "logging", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L555-L561", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "selectToSlice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// selectToSlice returns a slice value fetched from rows.", "docstring_tokens": ["selectToSlice", "returns", "a", "slice", "value", "fetched", "from", "rows", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L580-L625", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "selectToValue", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// selectToValue returns a single value fetched from rows.", "docstring_tokens": ["selectToValue", "returns", "a", "single", "value", "fetched", "from", "rows", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L628-L643", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "fieldIndexByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fieldIndexByName returns the nested field corresponding to the index sequence.", "docstring_tokens": ["fieldIndexByName", "returns", "the", "nested", "field", "corresponding", "to", "the", "index", "sequence", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L646-L659", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "columns", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// columns returns the comma-separated column name with quoted.", "docstring_tokens": ["columns", "returns", "the", "comma", "-", "separated", "column", "name", "with", "quoted", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L708-L726", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "tagsFromField", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// tagsFromField returns a slice of option strings.", "docstring_tokens": ["tagsFromField", "returns", "a", "slice", "of", "option", "strings", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L783-L793", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "hasSkipTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hasSkipTag returns whether the struct field has the \"-\" tag.", "docstring_tokens": ["hasSkipTag", "returns", "whether", "the", "struct", "field", "has", "the", "-", "tag", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L796-L801", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "hasPKTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// hasPKTag returns whether the struct field has the \"pk\" tag.", "docstring_tokens": ["hasPKTag", "returns", "whether", "the", "struct", "field", "has", "the", "pk", "tag", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L804-L811", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "isAutoIncrementable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// isAutoIncrementable returns whether the struct field is integer.", "docstring_tokens": ["isAutoIncrementable", "returns", "whether", "the", "struct", "field", "is", "integer", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L814-L821", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "collectFieldIndexes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// collectFieldIndexes returns the indexes of field which doesn't have skip tag and pk tag.", "docstring_tokens": ["collectFieldIndexes", "returns", "the", "indexes", "of", "field", "which", "doesn", "t", "have", "skip", "tag", "and", "pk", "tag", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L824-L842", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "findPKIndex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// findPKIndex returns the nested field corresponding to the index sequence of field of primary key.", "docstring_tokens": ["findPKIndex", "returns", "the", "nested", "field", "corresponding", "to", "the", "index", "sequence", "of", "field", "of", "primary", "key", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L845-L862", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "sizeFromTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// sizeFromTag returns a size from tag.\n// If \"size\" tag specified to struct field, it will converted to uint64 and returns it.\n// If it doesn't specify, it returns 0.\n// If value of \"size\" tag cannot convert to uint64, it returns 0 and error.", "docstring_tokens": ["sizeFromTag", "returns", "a", "size", "from", "tag", ".", "If", "size", "tag", "specified", "to", "struct", "field", "it", "will", "converted", "to", "uint64", "and", "returns", "it", ".", "If", "it", "doesn", "t", "specify", "it", "returns", "0", ".", "If", "value", "of", "size", "tag", "cannot", "convert", "to", "uint64", "it", "returns", "0", "and", "error", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L868-L873", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "columnFromTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// columnFromTag returns the column name.\n// If \"column\" tag specified to struct field, returns it.\n// Otherwise, it returns snake-cased field name as column name.", "docstring_tokens": ["columnFromTag", "returns", "the", "column", "name", ".", "If", "column", "tag", "specified", "to", "struct", "field", "returns", "it", ".", "Otherwise", "it", "returns", "snake", "-", "cased", "field", "name", "as", "column", "name", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L885-L891", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "defaultFromTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// defaultFromTag returns a \"DEFAULT ...\" keyword.\n// If \"default\" tag specified to struct field, it use as the default value.\n// If it doesn't specify, it returns empty string.", "docstring_tokens": ["defaultFromTag", "returns", "a", "DEFAULT", "...", "keyword", ".", "If", "default", "tag", "specified", "to", "struct", "field", "it", "use", "as", "the", "default", "value", ".", "If", "it", "doesn", "t", "specify", "it", "returns", "empty", "string", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L896-L910", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Where", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Where adds \"WHERE\" clause to the Condition and returns it for method chain.", "docstring_tokens": ["Where", "adds", "WHERE", "clause", "to", "the", "Condition", "and", "returns", "it", "for", "method", "chain", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L1134-L1136", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "And", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// And adds \"AND\" operator to the Condition and returns it for method chain.", "docstring_tokens": ["And", "adds", "AND", "operator", "to", "the", "Condition", "and", "returns", "it", "for", "method", "chain", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L1139-L1141", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Or", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Or adds \"OR\" operator to the Condition and returns it for method chain.", "docstring_tokens": ["Or", "adds", "OR", "operator", "to", "the", "Condition", "and", "returns", "it", "for", "method", "chain", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L1144-L1146", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Like", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Like adds \"LIKE\" clause to the Condition and returns it for method chain.", "docstring_tokens": ["Like", "adds", "LIKE", "clause", "to", "the", "Condition", "and", "returns", "it", "for", "method", "chain", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L1154-L1156", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Between", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Between adds \"BETWEEN ... AND ...\" clause to the Condition and returns it for method chain.", "docstring_tokens": ["Between", "adds", "BETWEEN", "...", "AND", "...", "clause", "to", "the", "Condition", "and", "returns", "it", "for", "method", "chain", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L1159-L1161", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "OrderBy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OrderBy adds \"ORDER BY\" clause to the Condition and returns it for method chain.", "docstring_tokens": ["OrderBy", "adds", "ORDER", "BY", "clause", "to", "the", "Condition", "and", "returns", "it", "for", "method", "chain", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L1174-L1196", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Limit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Limit adds \"LIMIT\" clause to the Condition and returns it for method chain.", "docstring_tokens": ["Limit", "adds", "LIMIT", "clause", "to", "the", "Condition", "and", "returns", "it", "for", "method", "chain", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L1199-L1201", "partition": "test"} +{"repo": "naoina/genmai", "path": "genmai.go", "func_name": "Offset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Offset adds \"OFFSET\" clause to the Condition and returns it for method chain.", "docstring_tokens": ["Offset", "adds", "OFFSET", "clause", "to", "the", "Condition", "and", "returns", "it", "for", "method", "chain", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/genmai.go#L1204-L1206", "partition": "test"} +{"repo": "naoina/genmai", "path": "log.go", "func_name": "SetFormat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetFormat sets the format for logging.", "docstring_tokens": ["SetFormat", "sets", "the", "format", "for", "logging", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/log.go#L38-L47", "partition": "test"} +{"repo": "naoina/genmai", "path": "log.go", "func_name": "Print", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Print outputs query log using format template.\n// All arguments will be used to formatting.", "docstring_tokens": ["Print", "outputs", "query", "log", "using", "format", "template", ".", "All", "arguments", "will", "be", "used", "to", "formatting", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/log.go#L51-L76", "partition": "test"} +{"repo": "naoina/genmai", "path": "log.go", "func_name": "Print", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Print is a dummy method.", "docstring_tokens": ["Print", "is", "a", "dummy", "method", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/log.go#L88-L90", "partition": "test"} +{"repo": "naoina/genmai", "path": "dialect.go", "func_name": "Quote", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Quote returns a quoted s for a column name.", "docstring_tokens": ["Quote", "returns", "a", "quoted", "s", "for", "a", "column", "name", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/dialect.go#L138-L140", "partition": "test"} +{"repo": "naoina/genmai", "path": "dialect.go", "func_name": "SQLType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SQLType returns the SQL type of the v for PostgreSQL.", "docstring_tokens": ["SQLType", "returns", "the", "SQL", "type", "of", "the", "v", "for", "PostgreSQL", "."], "sha": "78583835e1e41e3938e1ddfffd7101f8ad27fae0", "url": "https://github.com/naoina/genmai/blob/78583835e1e41e3938e1ddfffd7101f8ad27fae0/dialect.go#L251-L291", "partition": "test"} +{"repo": "goreleaser/archive", "path": "archive.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New archive\n// If the exentions of the target file is .zip, the archive will be in the zip\n// format, otherwise, it will be a tar.gz archive.", "docstring_tokens": ["New", "archive", "If", "the", "exentions", "of", "the", "target", "file", "is", ".", "zip", "the", "archive", "will", "be", "in", "the", "zip", "format", "otherwise", "it", "will", "be", "a", "tar", ".", "gz", "archive", "."], "sha": "9c6b0c177751034bab579499b81c69993ddfe563", "url": "https://github.com/goreleaser/archive/blob/9c6b0c177751034bab579499b81c69993ddfe563/archive.go#L22-L27", "partition": "test"} +{"repo": "hooklift/govix", "path": "host.go", "func_name": "Disconnect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Disconnect destroys the state for a particular host instance.\n//\n// Call this function to disconnect the host. After you call this function the\n// Host object is no longer valid and you should not longer use it.\n// Similarly, you should not use any other object instances obtained from the\n// Host object while it was connected.\n//\n// Since VMware Server 1.0", "docstring_tokens": ["Disconnect", "destroys", "the", "state", "for", "a", "particular", "host", "instance", ".", "Call", "this", "function", "to", "disconnect", "the", "host", ".", "After", "you", "call", "this", "function", "the", "Host", "object", "is", "no", "longer", "valid", "and", "you", "should", "not", "longer", "use", "it", ".", "Similarly", "you", "should", "not", "use", "any", "other", "object", "instances", "obtained", "from", "the", "Host", "object", "while", "it", "was", "connected", ".", "Since", "VMware", "Server", "1", ".", "0"], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/host.go#L31-L44", "partition": "test"} +{"repo": "hooklift/govix", "path": "network.go", "func_name": "nextNetworkAdapterID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// nextNetworkAdapterID returns the next available ethernet ID, reusing ids if\n// the ethernet adapter has \"present\" equal to \"FALSE\"", "docstring_tokens": ["nextNetworkAdapterID", "returns", "the", "next", "available", "ethernet", "ID", "reusing", "ids", "if", "the", "ethernet", "adapter", "has", "present", "equal", "to", "FALSE"], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/network.go#L305-L328", "partition": "test"} +{"repo": "hooklift/govix", "path": "network.go", "func_name": "totalNetworkAdapters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// totalNetworkAdapters returns the total number of network adapters in the VMX file.", "docstring_tokens": ["totalNetworkAdapters", "returns", "the", "total", "number", "of", "network", "adapters", "in", "the", "VMX", "file", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/network.go#L331-L347", "partition": "test"} +{"repo": "hooklift/govix", "path": "network.go", "func_name": "RemoveAllNetworkAdapters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveAllNetworkAdapters deletes all network adapters from a VM.", "docstring_tokens": ["RemoveAllNetworkAdapters", "deletes", "all", "network", "adapters", "from", "a", "VM", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/network.go#L350-L368", "partition": "test"} +{"repo": "hooklift/govix", "path": "network.go", "func_name": "RemoveNetworkAdapter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveNetworkAdapter deletes network adapter from VMX file that matches the ID in \"adapter.Id\".", "docstring_tokens": ["RemoveNetworkAdapter", "deletes", "network", "adapter", "from", "VMX", "file", "that", "matches", "the", "ID", "in", "adapter", ".", "Id", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/network.go#L371-L411", "partition": "test"} +{"repo": "hooklift/govix", "path": "network.go", "func_name": "NetworkAdapters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NetworkAdapters lists current network adapters attached to the virtual\n// machine.", "docstring_tokens": ["NetworkAdapters", "lists", "current", "network", "adapters", "attached", "to", "the", "virtual", "machine", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/network.go#L415-L464", "partition": "test"} +{"repo": "kjk/lzmadec", "path": "lzmadec.go", "func_name": "newArchive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewArchive uses 7z to extract a list of files in .7z archive", "docstring_tokens": ["NewArchive", "uses", "7z", "to", "extract", "a", "list", "of", "files", "in", ".", "7z", "archive"], "sha": "4c61f00ce86f6f11ed9630fa16b771889b08147b", "url": "https://github.com/kjk/lzmadec/blob/4c61f00ce86f6f11ed9630fa16b771889b08147b/lzmadec.go#L198-L217", "partition": "test"} +{"repo": "kjk/lzmadec", "path": "lzmadec.go", "func_name": "GetFileReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetFileReader returns a reader for reading a given file", "docstring_tokens": ["GetFileReader", "returns", "a", "reader", "for", "reading", "a", "given", "file"], "sha": "4c61f00ce86f6f11ed9630fa16b771889b08147b", "url": "https://github.com/kjk/lzmadec/blob/4c61f00ce86f6f11ed9630fa16b771889b08147b/lzmadec.go#L238-L268", "partition": "test"} +{"repo": "kjk/lzmadec", "path": "lzmadec.go", "func_name": "ExtractToWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExtractToWriter writes the content of a given file inside the archive to dst", "docstring_tokens": ["ExtractToWriter", "writes", "the", "content", "of", "a", "given", "file", "inside", "the", "archive", "to", "dst"], "sha": "4c61f00ce86f6f11ed9630fa16b771889b08147b", "url": "https://github.com/kjk/lzmadec/blob/4c61f00ce86f6f11ed9630fa16b771889b08147b/lzmadec.go#L271-L282", "partition": "test"} +{"repo": "kjk/lzmadec", "path": "lzmadec.go", "func_name": "ExtractToFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ExtractToFile extracts a given file from the archive to a file on disk", "docstring_tokens": ["ExtractToFile", "extracts", "a", "given", "file", "from", "the", "archive", "to", "a", "file", "on", "disk"], "sha": "4c61f00ce86f6f11ed9630fa16b771889b08147b", "url": "https://github.com/kjk/lzmadec/blob/4c61f00ce86f6f11ed9630fa16b771889b08147b/lzmadec.go#L285-L292", "partition": "test"} +{"repo": "hooklift/govix", "path": "guest.go", "func_name": "SharedFoldersParentDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SharedFoldersParentDir returns the parent dir for share folders in the Guest.", "docstring_tokens": ["SharedFoldersParentDir", "returns", "the", "parent", "dir", "for", "share", "folders", "in", "the", "Guest", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/guest.go#L23-L42", "partition": "test"} +{"repo": "hooklift/govix", "path": "snapshot.go", "func_name": "Name", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Name returns user defined name for the snapshot.", "docstring_tokens": ["Name", "returns", "user", "defined", "name", "for", "the", "snapshot", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/snapshot.go#L25-L44", "partition": "test"} +{"repo": "hooklift/govix", "path": "snapshot.go", "func_name": "Description", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Description returns user defined description for the snapshot.", "docstring_tokens": ["Description", "returns", "user", "defined", "description", "for", "the", "snapshot", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/snapshot.go#L47-L66", "partition": "test"} +{"repo": "hooklift/govix", "path": "snapshot.go", "func_name": "cleanupSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cleanupSnapshot cleans up snapshot internal C handle.", "docstring_tokens": ["cleanupSnapshot", "cleans", "up", "snapshot", "internal", "C", "handle", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/snapshot.go#L162-L167", "partition": "test"} +{"repo": "hooklift/govix", "path": "cddvd.go", "func_name": "BusTypeFromID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BusTypeFromID gets BusType from device ID.", "docstring_tokens": ["BusTypeFromID", "gets", "BusType", "from", "device", "ID", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/cddvd.go#L178-L190", "partition": "test"} +{"repo": "hooklift/govix", "path": "vmx.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read reads VMX file from disk and unmarshals it", "docstring_tokens": ["Read", "reads", "VMX", "file", "from", "disk", "and", "unmarshals", "it"], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vmx.go#L27-L43", "partition": "test"} +{"repo": "hooklift/govix", "path": "vmx.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write marshals and writes VMX file to disk", "docstring_tokens": ["Write", "marshals", "and", "writes", "VMX", "file", "to", "disk"], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vmx.go#L46-L64", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "NewVirtualMachine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewVirtualMachine creates a new VM instance.", "docstring_tokens": ["NewVirtualMachine", "creates", "a", "new", "VM", "instance", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L33-L51", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "Vcpus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Vcpus returns number of virtual CPUs configured for the virtual machine.", "docstring_tokens": ["Vcpus", "returns", "number", "of", "virtual", "CPUs", "configured", "for", "the", "virtual", "machine", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L54-L71", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "VmxPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// VmxPath returns path to the virtual machine configuration file.", "docstring_tokens": ["VmxPath", "returns", "path", "to", "the", "virtual", "machine", "configuration", "file", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L74-L93", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "MemorySize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MemorySize returns memory size of the virtual machine.", "docstring_tokens": ["MemorySize", "returns", "memory", "size", "of", "the", "virtual", "machine", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L118-L135", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "ReadOnly", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ReadOnly tells whether or not the VM is read-only.", "docstring_tokens": ["ReadOnly", "tells", "whether", "or", "not", "the", "VM", "is", "read", "-", "only", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L138-L159", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "InVMTeam", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InVMTeam returns whether the virtual machine is a member of a team.", "docstring_tokens": ["InVMTeam", "returns", "whether", "the", "virtual", "machine", "is", "a", "member", "of", "a", "team", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L162-L183", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "PowerState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PowerState returns power state of the virtual machine.", "docstring_tokens": ["PowerState", "returns", "power", "state", "of", "the", "virtual", "machine", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L186-L203", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "ToolsState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToolsState returns state of the VMware Tools suite in the guest.", "docstring_tokens": ["ToolsState", "returns", "state", "of", "the", "VMware", "Tools", "suite", "in", "the", "guest", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L206-L223", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "IsRunning", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsRunning returns whether the virtual machine is running.", "docstring_tokens": ["IsRunning", "returns", "whether", "the", "virtual", "machine", "is", "running", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L226-L247", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "GuestOS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GuestOS returns the guest os.", "docstring_tokens": ["GuestOS", "returns", "the", "guest", "os", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L250-L269", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "cleanupVM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// cleanupVM cleans up VM VIX handle.", "docstring_tokens": ["cleanupVM", "cleans", "up", "VM", "VIX", "handle", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L593-L598", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "updateVMX", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// updateVMX updates VMX file for the VM.", "docstring_tokens": ["updateVMX", "updates", "VMX", "file", "for", "the", "VM", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L1959-L2001", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "SetMemorySize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetMemorySize sets memory size in megabytes. VM has to be powered off in order to change this parameter.", "docstring_tokens": ["SetMemorySize", "sets", "memory", "size", "in", "megabytes", ".", "VM", "has", "to", "be", "powered", "off", "in", "order", "to", "change", "this", "parameter", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L2004-L2019", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "SetNumberVcpus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetNumberVcpus sets number of virtual cpus assigned to this machine. VM has to be powered off in order to change this parameter.", "docstring_tokens": ["SetNumberVcpus", "sets", "number", "of", "virtual", "cpus", "assigned", "to", "this", "machine", ".", "VM", "has", "to", "be", "powered", "off", "in", "order", "to", "change", "this", "parameter", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L2022-L2031", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "SetDisplayName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDisplayName sets virtual machine name.", "docstring_tokens": ["SetDisplayName", "sets", "virtual", "machine", "name", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L2034-L2039", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "SetAnnotation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAnnotation sets annotations for the virtual machine.", "docstring_tokens": ["SetAnnotation", "sets", "annotations", "for", "the", "virtual", "machine", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L2047-L2052", "partition": "test"} +{"repo": "hooklift/govix", "path": "vm.go", "func_name": "SetVirtualHwVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetVirtualHwVersion sets a virtual hardware version in the VMX file of the VM.", "docstring_tokens": ["SetVirtualHwVersion", "sets", "a", "virtual", "hardware", "version", "in", "the", "VMX", "file", "of", "the", "VM", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vm.go#L2060-L2070", "partition": "test"} +{"repo": "hooklift/govix", "path": "vix.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error returns a description of the error along with its code and operation\n// implementing Go's error interface.", "docstring_tokens": ["Error", "returns", "a", "description", "of", "the", "error", "along", "with", "its", "code", "and", "operation", "implementing", "Go", "s", "error", "interface", "."], "sha": "063702285520a992b920fc1575e305dc9ffd6ffe", "url": "https://github.com/hooklift/govix/blob/063702285520a992b920fc1575e305dc9ffd6ffe/vix.go#L396-L398", "partition": "test"} +{"repo": "st3v/tracerr", "path": "tracerr.go", "func_name": "Errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Errorf returns a traceable error with the given formatted message.", "docstring_tokens": ["Errorf", "returns", "a", "traceable", "error", "with", "the", "given", "formatted", "message", "."], "sha": "07f754d5ee02576c14a8272df820e8947d87e723", "url": "https://github.com/st3v/tracerr/blob/07f754d5ee02576c14a8272df820e8947d87e723/tracerr.go#L39-L41", "partition": "test"} +{"repo": "st3v/tracerr", "path": "tracerr.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error returns the original error message plus the stack trace captured\n// at the time the error was first wrapped.", "docstring_tokens": ["Error", "returns", "the", "original", "error", "message", "plus", "the", "stack", "trace", "captured", "at", "the", "time", "the", "error", "was", "first", "wrapped", "."], "sha": "07f754d5ee02576c14a8272df820e8947d87e723", "url": "https://github.com/st3v/tracerr/blob/07f754d5ee02576c14a8272df820e8947d87e723/tracerr.go#L65-L71", "partition": "test"} +{"repo": "st3v/tracerr", "path": "tracerr.go", "func_name": "string", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// string converts a given stack frame to a formated string.", "docstring_tokens": ["string", "converts", "a", "given", "stack", "frame", "to", "a", "formated", "string", "."], "sha": "07f754d5ee02576c14a8272df820e8947d87e723", "url": "https://github.com/st3v/tracerr/blob/07f754d5ee02576c14a8272df820e8947d87e723/tracerr.go#L81-L83", "partition": "test"} +{"repo": "st3v/tracerr", "path": "tracerr.go", "func_name": "newStackFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// newStackFrame returns a new stack frame initialized from the passed\n// in program counter.", "docstring_tokens": ["newStackFrame", "returns", "a", "new", "stack", "frame", "initialized", "from", "the", "passed", "in", "program", "counter", "."], "sha": "07f754d5ee02576c14a8272df820e8947d87e723", "url": "https://github.com/st3v/tracerr/blob/07f754d5ee02576c14a8272df820e8947d87e723/tracerr.go#L87-L98", "partition": "test"} +{"repo": "st3v/tracerr", "path": "tracerr.go", "func_name": "captureStack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// captureStack returns a slice of stack frames representing the stack\n// of the calling go routine.", "docstring_tokens": ["captureStack", "returns", "a", "slice", "of", "stack", "frames", "representing", "the", "stack", "of", "the", "calling", "go", "routine", "."], "sha": "07f754d5ee02576c14a8272df820e8947d87e723", "url": "https://github.com/st3v/tracerr/blob/07f754d5ee02576c14a8272df820e8947d87e723/tracerr.go#L102-L112", "partition": "test"} +{"repo": "st3v/tracerr", "path": "tracerr.go", "func_name": "parseFuncName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// parseFuncName returns the package path and function signature for a\n// give Func name.", "docstring_tokens": ["parseFuncName", "returns", "the", "package", "path", "and", "function", "signature", "for", "a", "give", "Func", "name", "."], "sha": "07f754d5ee02576c14a8272df820e8947d87e723", "url": "https://github.com/st3v/tracerr/blob/07f754d5ee02576c14a8272df820e8947d87e723/tracerr.go#L116-L122", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "log/log.go", "func_name": "Stack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stack logs the error err with the stack trace.", "docstring_tokens": ["Stack", "logs", "the", "error", "err", "with", "the", "stack", "trace", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/log/log.go#L11-L16", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "log/log.go", "func_name": "StackWithCaller", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StackWithCaller logs the error err with the caller package name and the stack trace.", "docstring_tokens": ["StackWithCaller", "logs", "the", "error", "err", "with", "the", "caller", "package", "name", "and", "the", "stack", "trace", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/log/log.go#L19-L28", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "httputil/response.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write calls the writer upstream after executing the functions in the before field.", "docstring_tokens": ["Write", "calls", "the", "writer", "upstream", "after", "executing", "the", "functions", "in", "the", "before", "field", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/httputil/response.go#L20-L25", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "httputil/response.go", "func_name": "ResponseStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResponseStatus returns the HTTP response status.\n// Remember that the status is only set by the server after WriteHeader has been called.", "docstring_tokens": ["ResponseStatus", "returns", "the", "HTTP", "response", "status", ".", "Remember", "that", "the", "status", "is", "only", "set", "by", "the", "server", "after", "WriteHeader", "has", "been", "called", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/httputil/response.go#L35-L37", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "httputil/response.go", "func_name": "httpResponseStruct", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// httpResponseStruct returns the response structure after going trough all the intermediary response writers.", "docstring_tokens": ["httpResponseStruct", "returns", "the", "response", "structure", "after", "going", "trough", "all", "the", "intermediary", "response", "writers", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/httputil/response.go#L40-L50", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "httputil/response.go", "func_name": "SetDetectedContentType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetDetectedContentType detects, sets and returns the response Conten-Type header value.", "docstring_tokens": ["SetDetectedContentType", "detects", "sets", "and", "returns", "the", "response", "Conten", "-", "Type", "header", "value", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/httputil/response.go#L53-L60", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "errors.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New ServerError.New", "docstring_tokens": ["New", "ServerError", ".", "New"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/errors.go#L50-L55", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "errors.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New DBError.New", "docstring_tokens": ["New", "DBError", ".", "New"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/errors.go#L77-L83", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "errors.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New ValidationError.New", "docstring_tokens": ["New", "ValidationError", ".", "New"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/errors.go#L91-L96", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "errors.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New NotFoundError.New", "docstring_tokens": ["New", "NotFoundError", ".", "New"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/errors.go#L104-L109", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "controller.go", "func_name": "StrLength", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StrLength param is a string, length must be n", "docstring_tokens": ["StrLength", "param", "is", "a", "string", "length", "must", "be", "n"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/controller.go#L154-L167", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "controller.go", "func_name": "StrLenIn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StrLenIn param is a string, length is in array", "docstring_tokens": ["StrLenIn", "param", "is", "a", "string", "length", "is", "in", "array"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/controller.go#L186-L205", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "controller.go", "func_name": "StrIn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StrIn param is a string, the string is in array", "docstring_tokens": ["StrIn", "param", "is", "a", "string", "the", "string", "is", "in", "array"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/controller.go#L208-L226", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "controller.go", "func_name": "GetEmail", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEmail check is a email", "docstring_tokens": ["GetEmail", "check", "is", "a", "email"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/controller.go#L229-L242", "partition": "test"} +{"repo": "Financial-Times/neo-model-utils-go", "path": "mapper/types.go", "func_name": "MostSpecificType", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MostSpecific returns the most specific from a list of types in an hierarchy\n// behaviour is undefined if any of the types are siblings.", "docstring_tokens": ["MostSpecific", "returns", "the", "most", "specific", "from", "a", "list", "of", "types", "in", "an", "hierarchy", "behaviour", "is", "undefined", "if", "any", "of", "the", "types", "are", "siblings", "."], "sha": "aea1e95c83055aaed6761c5e546400dd383fb220", "url": "https://github.com/Financial-Times/neo-model-utils-go/blob/aea1e95c83055aaed6761c5e546400dd383fb220/mapper/types.go#L51-L60", "partition": "test"} +{"repo": "Financial-Times/neo-model-utils-go", "path": "mapper/types.go", "func_name": "FullTypeHierarchy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Full type hierarchy is returned when provided either the concept type\n// or full uri of the most specific concept type", "docstring_tokens": ["Full", "type", "hierarchy", "is", "returned", "when", "provided", "either", "the", "concept", "type", "or", "full", "uri", "of", "the", "most", "specific", "concept", "type"], "sha": "aea1e95c83055aaed6761c5e546400dd383fb220", "url": "https://github.com/Financial-Times/neo-model-utils-go/blob/aea1e95c83055aaed6761c5e546400dd383fb220/mapper/types.go#L64-L78", "partition": "test"} +{"repo": "Financial-Times/neo-model-utils-go", "path": "mapper/types.go", "func_name": "SortTypes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SortTypes sorts the given types from least specific to most specific", "docstring_tokens": ["SortTypes", "sorts", "the", "given", "types", "from", "least", "specific", "to", "most", "specific"], "sha": "aea1e95c83055aaed6761c5e546400dd383fb220", "url": "https://github.com/Financial-Times/neo-model-utils-go/blob/aea1e95c83055aaed6761c5e546400dd383fb220/mapper/types.go#L83-L91", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "store.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete value in redis session", "docstring_tokens": ["Delete", "value", "in", "redis", "session"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/store.go#L47-L51", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "store.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set value in redis session", "docstring_tokens": ["Set", "value", "in", "redis", "session"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/store.go#L63-L67", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "store.go", "func_name": "refresh", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// refresh refresh store to redis", "docstring_tokens": ["refresh", "refresh", "store", "to", "redis"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/store.go#L70-L80", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "store.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get read redis session by sid", "docstring_tokens": ["Get", "read", "redis", "session", "by", "sid"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/store.go#L83-L92", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "store.go", "func_name": "Destroy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Destroy delete redis session by id", "docstring_tokens": ["Destroy", "delete", "redis", "session", "by", "id"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/store.go#L95-L101", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "store.go", "func_name": "UpExpire", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpExpire refresh session expire", "docstring_tokens": ["UpExpire", "refresh", "session", "expire"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/store.go#L104-L110", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "handler.go", "func_name": "Use", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Use adds a handler to the handlers stack.", "docstring_tokens": ["Use", "adds", "a", "handler", "to", "the", "handlers", "stack", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/handler.go#L22-L24", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "handler.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP makes a context for the request, sets some good practice default headers and enters the handlers stack.", "docstring_tokens": ["ServeHTTP", "makes", "a", "context", "for", "the", "request", "sets", "some", "good", "practice", "default", "headers", "and", "enters", "the", "handlers", "stack", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/handler.go#L46-L71", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "routergroup.go", "func_name": "Use", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Use adds middleware to the group, see example code in github.", "docstring_tokens": ["Use", "adds", "middleware", "to", "the", "group", "see", "example", "code", "in", "github", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/routergroup.go#L50-L53", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "routergroup.go", "func_name": "Group", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Group creates a new router group. You should add all the routes that have common middlwares or the same path prefix.\n// For example, all the routes that use a common middlware for authorization could be grouped.", "docstring_tokens": ["Group", "creates", "a", "new", "router", "group", ".", "You", "should", "add", "all", "the", "routes", "that", "have", "common", "middlwares", "or", "the", "same", "path", "prefix", ".", "For", "example", "all", "the", "routes", "that", "use", "a", "common", "middlware", "for", "authorization", "could", "be", "grouped", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/routergroup.go#L57-L63", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "server.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run starts the server for listening and serving.", "docstring_tokens": ["Run", "starts", "the", "server", "for", "listening", "and", "serving", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/server.go#L65-L104", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "routerengine.go", "func_name": "create", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// create returns a new blank Engine instance without any middleware attached.", "docstring_tokens": ["create", "returns", "a", "new", "blank", "Engine", "instance", "without", "any", "middleware", "attached", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/routerengine.go#L30-L41", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "context.go", "func_name": "Redirect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Redirect Redirect replies to the request with a redirect to url, which may be a path relative to the request path.", "docstring_tokens": ["Redirect", "Redirect", "replies", "to", "the", "request", "with", "a", "redirect", "to", "url", "which", "may", "be", "a", "path", "relative", "to", "the", "request", "path", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/context.go#L47-L49", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "context.go", "func_name": "Ok", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ok Response json", "docstring_tokens": ["Ok", "Response", "json"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/context.go#L52-L62", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "context.go", "func_name": "Fail", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fail Response fail", "docstring_tokens": ["Fail", "Response", "fail"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/context.go#L65-L100", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "context.go", "func_name": "ResStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ResStatus Response status code, use http.StatusText to write the response.", "docstring_tokens": ["ResStatus", "Response", "status", "code", "use", "http", ".", "StatusText", "to", "write", "the", "response", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/context.go#L139-L146", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "context.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next calls the next handler in the stack, but only if the response isn't already written.", "docstring_tokens": ["Next", "calls", "the", "next", "handler", "in", "the", "stack", "but", "only", "if", "the", "response", "isn", "t", "already", "written", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/context.go#L154-L160", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "context.go", "func_name": "GetSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSession get session", "docstring_tokens": ["GetSession", "get", "session"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/context.go#L173-L183", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "context.go", "func_name": "GetBodyJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetBodyJSON return a json from body", "docstring_tokens": ["GetBodyJSON", "return", "a", "json", "from", "body"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/context.go#L186-L204", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "context.go", "func_name": "SetSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetSession set session", "docstring_tokens": ["SetSession", "set", "session"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/context.go#L207-L227", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "context.go", "func_name": "FreshSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FreshSession set session", "docstring_tokens": ["FreshSession", "set", "session"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/context.go#L230-L236", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "context.go", "func_name": "DeleteSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteSession delete session", "docstring_tokens": ["DeleteSession", "delete", "session"], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/context.go#L239-L247", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "context.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write sets the context's written flag before writing the response.", "docstring_tokens": ["Write", "sets", "the", "context", "s", "written", "flag", "before", "writing", "the", "response", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/context.go#L336-L339", "partition": "test"} +{"repo": "HiLittleCat/core", "path": "context.go", "func_name": "WriteHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteHeader sets the context's written flag before writing the response header.", "docstring_tokens": ["WriteHeader", "sets", "the", "context", "s", "written", "flag", "before", "writing", "the", "response", "header", "."], "sha": "ae2101184ecd36354d3fcff0ea69d67d3fdbe156", "url": "https://github.com/HiLittleCat/core/blob/ae2101184ecd36354d3fcff0ea69d67d3fdbe156/context.go#L342-L345", "partition": "test"} +{"repo": "dailyburn/bigquery", "path": "client/client.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New instantiates a new client with the given params and return a reference to it", "docstring_tokens": ["New", "instantiates", "a", "new", "client", "with", "the", "given", "params", "and", "return", "a", "reference", "to", "it"], "sha": "b6f18972580ed8882d195da0e9b7c9b94902a1ea", "url": "https://github.com/dailyburn/bigquery/blob/b6f18972580ed8882d195da0e9b7c9b94902a1ea/client/client.go#L43-L59", "partition": "test"} +{"repo": "dailyburn/bigquery", "path": "client/client.go", "func_name": "setAllowLargeResults", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// setAllowLargeResults - private function to set the AllowLargeResults and tempTableName values", "docstring_tokens": ["setAllowLargeResults", "-", "private", "function", "to", "set", "the", "AllowLargeResults", "and", "tempTableName", "values"], "sha": "b6f18972580ed8882d195da0e9b7c9b94902a1ea", "url": "https://github.com/dailyburn/bigquery/blob/b6f18972580ed8882d195da0e9b7c9b94902a1ea/client/client.go#L75-L80", "partition": "test"} +{"repo": "dailyburn/bigquery", "path": "client/client.go", "func_name": "connect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// connect - opens a new connection to bigquery, reusing the token if possible or regenerating a new auth token if required", "docstring_tokens": ["connect", "-", "opens", "a", "new", "connection", "to", "bigquery", "reusing", "the", "token", "if", "possible", "or", "regenerating", "a", "new", "auth", "token", "if", "required"], "sha": "b6f18972580ed8882d195da0e9b7c9b94902a1ea", "url": "https://github.com/dailyburn/bigquery/blob/b6f18972580ed8882d195da0e9b7c9b94902a1ea/client/client.go#L83-L110", "partition": "test"} +{"repo": "dailyburn/bigquery", "path": "client/client.go", "func_name": "InsertRow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InsertRow inserts a new row into the desired project, dataset and table or returns an error", "docstring_tokens": ["InsertRow", "inserts", "a", "new", "row", "into", "the", "desired", "project", "dataset", "and", "table", "or", "returns", "an", "error"], "sha": "b6f18972580ed8882d195da0e9b7c9b94902a1ea", "url": "https://github.com/dailyburn/bigquery/blob/b6f18972580ed8882d195da0e9b7c9b94902a1ea/client/client.go#L113-L132", "partition": "test"} +{"repo": "dailyburn/bigquery", "path": "client/client.go", "func_name": "AsyncQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AsyncQuery loads the data by paging through the query results and sends back payloads over the dataChan - dataChan sends a payload containing Data objects made up of the headers, rows and an error attribute", "docstring_tokens": ["AsyncQuery", "loads", "the", "data", "by", "paging", "through", "the", "query", "results", "and", "sends", "back", "payloads", "over", "the", "dataChan", "-", "dataChan", "sends", "a", "payload", "containing", "Data", "objects", "made", "up", "of", "the", "headers", "rows", "and", "an", "error", "attribute"], "sha": "b6f18972580ed8882d195da0e9b7c9b94902a1ea", "url": "https://github.com/dailyburn/bigquery/blob/b6f18972580ed8882d195da0e9b7c9b94902a1ea/client/client.go#L172-L174", "partition": "test"} +{"repo": "dailyburn/bigquery", "path": "client/client.go", "func_name": "Query", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Query loads the data for the query paging if necessary and return the data rows, headers and error", "docstring_tokens": ["Query", "loads", "the", "data", "for", "the", "query", "paging", "if", "necessary", "and", "return", "the", "data", "rows", "headers", "and", "error"], "sha": "b6f18972580ed8882d195da0e9b7c9b94902a1ea", "url": "https://github.com/dailyburn/bigquery/blob/b6f18972580ed8882d195da0e9b7c9b94902a1ea/client/client.go#L177-L179", "partition": "test"} +{"repo": "dailyburn/bigquery", "path": "client/client.go", "func_name": "stdPagedQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stdPagedQuery executes a query using default job parameters and paging over the results, returning them over the data chan provided", "docstring_tokens": ["stdPagedQuery", "executes", "a", "query", "using", "default", "job", "parameters", "and", "paging", "over", "the", "results", "returning", "them", "over", "the", "data", "chan", "provided"], "sha": "b6f18972580ed8882d195da0e9b7c9b94902a1ea", "url": "https://github.com/dailyburn/bigquery/blob/b6f18972580ed8882d195da0e9b7c9b94902a1ea/client/client.go#L182-L211", "partition": "test"} +{"repo": "dailyburn/bigquery", "path": "client/client.go", "func_name": "largeDataPagedQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// largeDataPagedQuery builds a job and inserts it into the job queue allowing the flexibility to set the custom AllowLargeResults flag for the job", "docstring_tokens": ["largeDataPagedQuery", "builds", "a", "job", "and", "inserts", "it", "into", "the", "job", "queue", "allowing", "the", "flexibility", "to", "set", "the", "custom", "AllowLargeResults", "flag", "for", "the", "job"], "sha": "b6f18972580ed8882d195da0e9b7c9b94902a1ea", "url": "https://github.com/dailyburn/bigquery/blob/b6f18972580ed8882d195da0e9b7c9b94902a1ea/client/client.go#L214-L295", "partition": "test"} +{"repo": "dailyburn/bigquery", "path": "client/client.go", "func_name": "pagedQuery", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// pagedQuery executes the query using bq's paging mechanism to load all results and sends them back via dataChan if available, otherwise it returns the full result set, headers and error as return values", "docstring_tokens": ["pagedQuery", "executes", "the", "query", "using", "bq", "s", "paging", "mechanism", "to", "load", "all", "results", "and", "sends", "them", "back", "via", "dataChan", "if", "available", "otherwise", "it", "returns", "the", "full", "result", "set", "headers", "and", "error", "as", "return", "values"], "sha": "b6f18972580ed8882d195da0e9b7c9b94902a1ea", "url": "https://github.com/dailyburn/bigquery/blob/b6f18972580ed8882d195da0e9b7c9b94902a1ea/client/client.go#L298-L313", "partition": "test"} +{"repo": "dailyburn/bigquery", "path": "client/client.go", "func_name": "pageOverJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// pageOverJob loads results for the given job reference and if the total results has not been hit continues to load recursively", "docstring_tokens": ["pageOverJob", "loads", "results", "for", "the", "given", "job", "reference", "and", "if", "the", "total", "results", "has", "not", "been", "hit", "continues", "to", "load", "recursively"], "sha": "b6f18972580ed8882d195da0e9b7c9b94902a1ea", "url": "https://github.com/dailyburn/bigquery/blob/b6f18972580ed8882d195da0e9b7c9b94902a1ea/client/client.go#L350-L396", "partition": "test"} +{"repo": "dailyburn/bigquery", "path": "client/client.go", "func_name": "Count", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Count loads the row count for the provided dataset.tablename", "docstring_tokens": ["Count", "loads", "the", "row", "count", "for", "the", "provided", "dataset", ".", "tablename"], "sha": "b6f18972580ed8882d195da0e9b7c9b94902a1ea", "url": "https://github.com/dailyburn/bigquery/blob/b6f18972580ed8882d195da0e9b7c9b94902a1ea/client/client.go#L519-L529", "partition": "test"} +{"repo": "stefantalpalaru/pool", "path": "examples/web_crawler.go", "func_name": "work", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// work uses fetcher to recursively crawl\n// pages starting with url, to a maximum of depth.", "docstring_tokens": ["work", "uses", "fetcher", "to", "recursively", "crawl", "pages", "starting", "with", "url", "to", "a", "maximum", "of", "depth", "."], "sha": "df8b849d27751462526089005979b28064c1e08e", "url": "https://github.com/stefantalpalaru/pool/blob/df8b849d27751462526089005979b28064c1e08e/examples/web_crawler.go#L28-L37", "partition": "test"} +{"repo": "stefantalpalaru/pool", "path": "pool.go", "func_name": "subworker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// subworker catches any panic while running the job.", "docstring_tokens": ["subworker", "catches", "any", "panic", "while", "running", "the", "job", "."], "sha": "df8b849d27751462526089005979b28064c1e08e", "url": "https://github.com/stefantalpalaru/pool/blob/df8b849d27751462526089005979b28064c1e08e/pool.go#L63-L72", "partition": "test"} +{"repo": "stefantalpalaru/pool", "path": "pool.go", "func_name": "worker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// worker gets a job from the job_pipe, passes it to a\n// subworker and puts the job in the done_pipe when finished.", "docstring_tokens": ["worker", "gets", "a", "job", "from", "the", "job_pipe", "passes", "it", "to", "a", "subworker", "and", "puts", "the", "job", "in", "the", "done_pipe", "when", "finished", "."], "sha": "df8b849d27751462526089005979b28064c1e08e", "url": "https://github.com/stefantalpalaru/pool/blob/df8b849d27751462526089005979b28064c1e08e/pool.go#L76-L96", "partition": "test"} +{"repo": "stefantalpalaru/pool", "path": "pool.go", "func_name": "supervisor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// the supervisor feeds jobs to workers and keeps track of them.", "docstring_tokens": ["the", "supervisor", "feeds", "jobs", "to", "workers", "and", "keeps", "track", "of", "them", "."], "sha": "df8b849d27751462526089005979b28064c1e08e", "url": "https://github.com/stefantalpalaru/pool/blob/df8b849d27751462526089005979b28064c1e08e/pool.go#L120-L179", "partition": "test"} +{"repo": "stefantalpalaru/pool", "path": "pool.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run starts the Pool by launching the workers.\n// It's OK to start an empty Pool. The jobs will be fed to the workers as soon\n// as they become available.", "docstring_tokens": ["Run", "starts", "the", "Pool", "by", "launching", "the", "workers", ".", "It", "s", "OK", "to", "start", "an", "empty", "Pool", ".", "The", "jobs", "will", "be", "fed", "to", "the", "workers", "as", "soon", "as", "they", "become", "available", "."], "sha": "df8b849d27751462526089005979b28064c1e08e", "url": "https://github.com/stefantalpalaru/pool/blob/df8b849d27751462526089005979b28064c1e08e/pool.go#L184-L197", "partition": "test"} +{"repo": "stefantalpalaru/pool", "path": "pool.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add creates a Job from the given function and args and\n// adds it to the Pool.", "docstring_tokens": ["Add", "creates", "a", "Job", "from", "the", "given", "function", "and", "args", "and", "adds", "it", "to", "the", "Pool", "."], "sha": "df8b849d27751462526089005979b28064c1e08e", "url": "https://github.com/stefantalpalaru/pool/blob/df8b849d27751462526089005979b28064c1e08e/pool.go#L234-L238", "partition": "test"} +{"repo": "stefantalpalaru/pool", "path": "pool.go", "func_name": "Wait", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wait blocks until all the jobs in the Pool are done.", "docstring_tokens": ["Wait", "blocks", "until", "all", "the", "jobs", "in", "the", "Pool", "are", "done", "."], "sha": "df8b849d27751462526089005979b28064c1e08e", "url": "https://github.com/stefantalpalaru/pool/blob/df8b849d27751462526089005979b28064c1e08e/pool.go#L246-L255", "partition": "test"} +{"repo": "stefantalpalaru/pool", "path": "pool.go", "func_name": "Results", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Results retrieves the completed jobs.", "docstring_tokens": ["Results", "retrieves", "the", "completed", "jobs", "."], "sha": "df8b849d27751462526089005979b28064c1e08e", "url": "https://github.com/stefantalpalaru/pool/blob/df8b849d27751462526089005979b28064c1e08e/pool.go#L258-L267", "partition": "test"} +{"repo": "stefantalpalaru/pool", "path": "pool.go", "func_name": "WaitForJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitForJob blocks until a completed job is available and returns it.\n// If there are no jobs running, it returns nil.", "docstring_tokens": ["WaitForJob", "blocks", "until", "a", "completed", "job", "is", "available", "and", "returns", "it", ".", "If", "there", "are", "no", "jobs", "running", "it", "returns", "nil", "."], "sha": "df8b849d27751462526089005979b28064c1e08e", "url": "https://github.com/stefantalpalaru/pool/blob/df8b849d27751462526089005979b28064c1e08e/pool.go#L271-L290", "partition": "test"} +{"repo": "stefantalpalaru/pool", "path": "pool.go", "func_name": "Status", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Status returns a \"stats\" instance.", "docstring_tokens": ["Status", "returns", "a", "stats", "instance", "."], "sha": "df8b849d27751462526089005979b28064c1e08e", "url": "https://github.com/stefantalpalaru/pool/blob/df8b849d27751462526089005979b28064c1e08e/pool.go#L293-L301", "partition": "test"} +{"repo": "mikespook/possum", "path": "helper.go", "func_name": "WrapHTTPHandlerFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WrapHTTPHandlerFunc wraps http.HandlerFunc in possum.HandlerFunc.\n// See pprof.go.", "docstring_tokens": ["WrapHTTPHandlerFunc", "wraps", "http", ".", "HandlerFunc", "in", "possum", ".", "HandlerFunc", ".", "See", "pprof", ".", "go", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/helper.go#L50-L56", "partition": "test"} +{"repo": "mikespook/possum", "path": "helper.go", "func_name": "WebSocketHandlerFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WebSocketHandlerFunc convert websocket function to possum.HandlerFunc.", "docstring_tokens": ["WebSocketHandlerFunc", "convert", "websocket", "function", "to", "possum", ".", "HandlerFunc", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/helper.go#L59-L62", "partition": "test"} +{"repo": "mikespook/possum", "path": "view/static.go", "func_name": "StaticFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StaticFile returns the view which can serve static files.", "docstring_tokens": ["StaticFile", "returns", "the", "view", "which", "can", "serve", "static", "files", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/view/static.go#L11-L18", "partition": "test"} +{"repo": "mikespook/possum", "path": "view/preload.go", "func_name": "PreloadFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PreloadFile returns the view which can preload static files and serve them.\n// The different between `StaticFile` and `PreloadFile` is that `StaticFile`\n// load the content of file at every request, while `PreloadFile` load\n// the content into memory at the initial stage. Despite that `PreloadFile`\n// will be using more memories and could not update the content in time until\n// restart the application, it should be fast than `StaticFile` in runtime.", "docstring_tokens": ["PreloadFile", "returns", "the", "view", "which", "can", "preload", "static", "files", "and", "serve", "them", ".", "The", "different", "between", "StaticFile", "and", "PreloadFile", "is", "that", "StaticFile", "load", "the", "content", "of", "file", "at", "every", "request", "while", "PreloadFile", "load", "the", "content", "into", "memory", "at", "the", "initial", "stage", ".", "Despite", "that", "PreloadFile", "will", "be", "using", "more", "memories", "and", "could", "not", "update", "the", "content", "in", "time", "until", "restart", "the", "application", "it", "should", "be", "fast", "than", "StaticFile", "in", "runtime", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/view/preload.go#L16-L27", "partition": "test"} +{"repo": "mikespook/possum", "path": "view/template.go", "func_name": "InitHtmlTemplates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitHtmlTemplates initialzes a series of HTML templates\n// in the directory `pattern`.", "docstring_tokens": ["InitHtmlTemplates", "initialzes", "a", "series", "of", "HTML", "templates", "in", "the", "directory", "pattern", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/view/template.go#L40-L43", "partition": "test"} +{"repo": "mikespook/possum", "path": "view/template.go", "func_name": "InitTextTemplates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitTextTemplates initialzes a series of plain text templates\n// in the directory `pattern`.", "docstring_tokens": ["InitTextTemplates", "initialzes", "a", "series", "of", "plain", "text", "templates", "in", "the", "directory", "pattern", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/view/template.go#L47-L50", "partition": "test"} +{"repo": "mikespook/possum", "path": "view/template.go", "func_name": "Html", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Html retruns a TemplateView witch uses HTML templates internally.", "docstring_tokens": ["Html", "retruns", "a", "TemplateView", "witch", "uses", "HTML", "templates", "internally", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/view/template.go#L53-L67", "partition": "test"} +{"repo": "mikespook/possum", "path": "view/template.go", "func_name": "Text", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Text retruns a TemplateView witch uses text templates internally.", "docstring_tokens": ["Text", "retruns", "a", "TemplateView", "witch", "uses", "text", "templates", "internally", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/view/template.go#L70-L84", "partition": "test"} +{"repo": "mikespook/possum", "path": "view/template.go", "func_name": "InitWatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitWatcher initialzes a watcher to watch templates changes in the `pattern`.\n// f would be InitHtmlTemplates or InitTextTemplates.\n// If the watcher raises an error internally, the callback function ef will be executed.\n// ef can be nil witch represents ignoring all internal errors.", "docstring_tokens": ["InitWatcher", "initialzes", "a", "watcher", "to", "watch", "templates", "changes", "in", "the", "pattern", ".", "f", "would", "be", "InitHtmlTemplates", "or", "InitTextTemplates", ".", "If", "the", "watcher", "raises", "an", "error", "internally", "the", "callback", "function", "ef", "will", "be", "executed", ".", "ef", "can", "be", "nil", "witch", "represents", "ignoring", "all", "internal", "errors", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/view/template.go#L90-L130", "partition": "test"} +{"repo": "mikespook/possum", "path": "view/template.go", "func_name": "CloseWatcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloseWatcher closes the wathcer.", "docstring_tokens": ["CloseWatcher", "closes", "the", "wathcer", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/view/template.go#L133-L138", "partition": "test"} +{"repo": "mikespook/possum", "path": "router.go", "func_name": "Find", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Find a router with the specific path and return it.", "docstring_tokens": ["Find", "a", "router", "with", "the", "specific", "path", "and", "return", "it", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/router.go#L24-L41", "partition": "test"} +{"repo": "mikespook/possum", "path": "router.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add a router to list", "docstring_tokens": ["Add", "a", "router", "to", "list"], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/router.go#L44-L58", "partition": "test"} +{"repo": "mikespook/possum", "path": "router.go", "func_name": "NewRouters", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRouters initailizes Routers instance.", "docstring_tokens": ["NewRouters", "initailizes", "Routers", "instance", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/router.go#L61-L70", "partition": "test"} +{"repo": "mikespook/possum", "path": "server.go", "func_name": "NewServerMux", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewServerMux returns a new Handler.", "docstring_tokens": ["NewServerMux", "returns", "a", "new", "Handler", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/server.go#L36-L42", "partition": "test"} +{"repo": "mikespook/possum", "path": "server.go", "func_name": "err", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Internal error handler", "docstring_tokens": ["Internal", "error", "handler"], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/server.go#L45-L49", "partition": "test"} +{"repo": "mikespook/possum", "path": "server.go", "func_name": "HandleFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleFunc specifies a pair of handler and view to handle\n// the request witch matching router.", "docstring_tokens": ["HandleFunc", "specifies", "a", "pair", "of", "handler", "and", "view", "to", "handle", "the", "request", "witch", "matching", "router", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/server.go#L53-L55", "partition": "test"} +{"repo": "mikespook/possum", "path": "server.go", "func_name": "handleError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// handleError tests the context `Error` and assign it to response.", "docstring_tokens": ["handleError", "tests", "the", "context", "Error", "and", "assign", "it", "to", "response", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/server.go#L58-L73", "partition": "test"} +{"repo": "mikespook/possum", "path": "context.go", "func_name": "Redirect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Redirect performs a redirecting to the url, if the code belongs to\n// one of StatusMovedPermanently, StatusFound, StatusSeeOther, and\n// StatusTemporaryRedirect.", "docstring_tokens": ["Redirect", "performs", "a", "redirecting", "to", "the", "url", "if", "the", "code", "belongs", "to", "one", "of", "StatusMovedPermanently", "StatusFound", "StatusSeeOther", "and", "StatusTemporaryRedirect", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/context.go#L32-L35", "partition": "test"} +{"repo": "mikespook/possum", "path": "pprof.go", "func_name": "InitPProf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitPProf registers pprof handlers to the ServeMux.\n// The pprof handlers can be specified a customized prefix.", "docstring_tokens": ["InitPProf", "registers", "pprof", "handlers", "to", "the", "ServeMux", ".", "The", "pprof", "handlers", "can", "be", "specified", "a", "customized", "prefix", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/pprof.go#L18-L30", "partition": "test"} +{"repo": "mikespook/possum", "path": "session.go", "func_name": "StartSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StartSession initaillizes a session context.\n// This function should be called in a implementation\n// of possum.HandleFunc.", "docstring_tokens": ["StartSession", "initaillizes", "a", "session", "context", ".", "This", "function", "should", "be", "called", "in", "a", "implementation", "of", "possum", ".", "HandleFunc", "."], "sha": "56d7ebb6470b670001632b11be7fc089038f4dd7", "url": "https://github.com/mikespook/possum/blob/56d7ebb6470b670001632b11be7fc089038f4dd7/session.go#L8-L11", "partition": "test"} +{"repo": "kokardy/listing", "path": "comb.go", "func_name": "combinations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Combination generator for int slice", "docstring_tokens": ["Combination", "generator", "for", "int", "slice"], "sha": "795534c33c5ab6be8b85a15951664ab11fb70ea7", "url": "https://github.com/kokardy/listing/blob/795534c33c5ab6be8b85a15951664ab11fb70ea7/comb.go#L29-L49", "partition": "test"} +{"repo": "kokardy/listing", "path": "comb.go", "func_name": "repeated_combinations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Repeated combination generator for int slice", "docstring_tokens": ["Repeated", "combination", "generator", "for", "int", "slice"], "sha": "795534c33c5ab6be8b85a15951664ab11fb70ea7", "url": "https://github.com/kokardy/listing/blob/795534c33c5ab6be8b85a15951664ab11fb70ea7/comb.go#L52-L69", "partition": "test"} +{"repo": "kokardy/listing", "path": "perm.go", "func_name": "permutations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Permtation generator for int slice", "docstring_tokens": ["Permtation", "generator", "for", "int", "slice"], "sha": "795534c33c5ab6be8b85a15951664ab11fb70ea7", "url": "https://github.com/kokardy/listing/blob/795534c33c5ab6be8b85a15951664ab11fb70ea7/perm.go#L35-L63", "partition": "test"} +{"repo": "kokardy/listing", "path": "perm.go", "func_name": "repeated_permutations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Repeated permtation generator for int slice", "docstring_tokens": ["Repeated", "permtation", "generator", "for", "int", "slice"], "sha": "795534c33c5ab6be8b85a15951664ab11fb70ea7", "url": "https://github.com/kokardy/listing/blob/795534c33c5ab6be8b85a15951664ab11fb70ea7/perm.go#L66-L84", "partition": "test"} +{"repo": "delicb/gstring", "path": "gstring.go", "func_name": "gformat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Receives format string in gstring format and map of arguments and translates\n// them to format and arguments compatible with standard golang formatting.", "docstring_tokens": ["Receives", "format", "string", "in", "gstring", "format", "and", "map", "of", "arguments", "and", "translates", "them", "to", "format", "and", "arguments", "compatible", "with", "standard", "golang", "formatting", "."], "sha": "77637d5e476b8e22d81f6a7bc5311a836dceb1c2", "url": "https://github.com/delicb/gstring/blob/77637d5e476b8e22d81f6a7bc5311a836dceb1c2/gstring.go#L12-L103", "partition": "test"} +{"repo": "delicb/gstring", "path": "gstring.go", "func_name": "Errorm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// interface similar to \"fmt\" package\n// Errorm returns error instance with formatted error message.\n// This is same as fmt.Errorf, but uses gstring formatting.", "docstring_tokens": ["interface", "similar", "to", "fmt", "package", "Errorm", "returns", "error", "instance", "with", "formatted", "error", "message", ".", "This", "is", "same", "as", "fmt", ".", "Errorf", "but", "uses", "gstring", "formatting", "."], "sha": "77637d5e476b8e22d81f6a7bc5311a836dceb1c2", "url": "https://github.com/delicb/gstring/blob/77637d5e476b8e22d81f6a7bc5311a836dceb1c2/gstring.go#L109-L112", "partition": "test"} +{"repo": "delicb/gstring", "path": "gstring.go", "func_name": "Fprintm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fprintm writes formatted string to provided writer.\n// This is same as fmt.Fprintf, but uses gstring formatting.", "docstring_tokens": ["Fprintm", "writes", "formatted", "string", "to", "provided", "writer", ".", "This", "is", "same", "as", "fmt", ".", "Fprintf", "but", "uses", "gstring", "formatting", "."], "sha": "77637d5e476b8e22d81f6a7bc5311a836dceb1c2", "url": "https://github.com/delicb/gstring/blob/77637d5e476b8e22d81f6a7bc5311a836dceb1c2/gstring.go#L116-L119", "partition": "test"} +{"repo": "delicb/gstring", "path": "gstring.go", "func_name": "Printm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Printf prints formatted string to stdout.\n// This is same as fmt.Printf, but uses gstring formatting.", "docstring_tokens": ["Printf", "prints", "formatted", "string", "to", "stdout", ".", "This", "is", "same", "as", "fmt", ".", "Printf", "but", "uses", "gstring", "formatting", "."], "sha": "77637d5e476b8e22d81f6a7bc5311a836dceb1c2", "url": "https://github.com/delicb/gstring/blob/77637d5e476b8e22d81f6a7bc5311a836dceb1c2/gstring.go#L123-L126", "partition": "test"} +{"repo": "delicb/gstring", "path": "gstring.go", "func_name": "Sprintm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sprintf returns formatted string.\n// This is same as fmt.Sprintf, but uses gstring formatting.", "docstring_tokens": ["Sprintf", "returns", "formatted", "string", ".", "This", "is", "same", "as", "fmt", ".", "Sprintf", "but", "uses", "gstring", "formatting", "."], "sha": "77637d5e476b8e22d81f6a7bc5311a836dceb1c2", "url": "https://github.com/delicb/gstring/blob/77637d5e476b8e22d81f6a7bc5311a836dceb1c2/gstring.go#L130-L133", "partition": "test"} +{"repo": "michaelbironneau/garbler", "path": "lib/password_strength.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Validate a password against the given requirements\n//Returns a boolean indicating whether the password meets the requirements.\n//The second argument is a string explaining why it doesn't meet the requirements,\n//if it doesn't. It is empty if the requirements are met.", "docstring_tokens": ["Validate", "a", "password", "against", "the", "given", "requirements", "Returns", "a", "boolean", "indicating", "whether", "the", "password", "meets", "the", "requirements", ".", "The", "second", "argument", "is", "a", "string", "explaining", "why", "it", "doesn", "t", "meet", "the", "requirements", "if", "it", "doesn", "t", ".", "It", "is", "empty", "if", "the", "requirements", "are", "met", "."], "sha": "2018e2dc9c1173564cc1352ccb90bdc0ac29c12f", "url": "https://github.com/michaelbironneau/garbler/blob/2018e2dc9c1173564cc1352ccb90bdc0ac29c12f/lib/password_strength.go#L41-L59", "partition": "test"} +{"repo": "michaelbironneau/garbler", "path": "lib/password_strength.go", "func_name": "MakeRequirements", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Generate password requirements from an existing password.", "docstring_tokens": ["Generate", "password", "requirements", "from", "an", "existing", "password", "."], "sha": "2018e2dc9c1173564cc1352ccb90bdc0ac29c12f", "url": "https://github.com/michaelbironneau/garbler/blob/2018e2dc9c1173564cc1352ccb90bdc0ac29c12f/lib/password_strength.go#L62-L78", "partition": "test"} +{"repo": "michaelbironneau/garbler", "path": "lib/password_strength.go", "func_name": "sanityCheck", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Make sure password strength requirements make sense", "docstring_tokens": ["Make", "sure", "password", "strength", "requirements", "make", "sense"], "sha": "2018e2dc9c1173564cc1352ccb90bdc0ac29c12f", "url": "https://github.com/michaelbironneau/garbler/blob/2018e2dc9c1173564cc1352ccb90bdc0ac29c12f/lib/password_strength.go#L81-L101", "partition": "test"} +{"repo": "michaelbironneau/garbler", "path": "lib/garbler.go", "func_name": "password", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Generate a password given requirements", "docstring_tokens": ["Generate", "a", "password", "given", "requirements"], "sha": "2018e2dc9c1173564cc1352ccb90bdc0ac29c12f", "url": "https://github.com/michaelbironneau/garbler/blob/2018e2dc9c1173564cc1352ccb90bdc0ac29c12f/lib/garbler.go#L55-L78", "partition": "test"} +{"repo": "michaelbironneau/garbler", "path": "lib/garbler.go", "func_name": "NewPassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Generate one password that meets the given requirements", "docstring_tokens": ["Generate", "one", "password", "that", "meets", "the", "given", "requirements"], "sha": "2018e2dc9c1173564cc1352ccb90bdc0ac29c12f", "url": "https://github.com/michaelbironneau/garbler/blob/2018e2dc9c1173564cc1352ccb90bdc0ac29c12f/lib/garbler.go#L81-L90", "partition": "test"} +{"repo": "michaelbironneau/garbler", "path": "lib/garbler.go", "func_name": "NewPasswords", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Generate n passwords that meet the given requirements", "docstring_tokens": ["Generate", "n", "passwords", "that", "meet", "the", "given", "requirements"], "sha": "2018e2dc9c1173564cc1352ccb90bdc0ac29c12f", "url": "https://github.com/michaelbironneau/garbler/blob/2018e2dc9c1173564cc1352ccb90bdc0ac29c12f/lib/garbler.go#L93-L110", "partition": "test"} +{"repo": "michaelbironneau/garbler", "path": "lib/garbler.go", "func_name": "addNums", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//append digits to string", "docstring_tokens": ["append", "digits", "to", "string"], "sha": "2018e2dc9c1173564cc1352ccb90bdc0ac29c12f", "url": "https://github.com/michaelbironneau/garbler/blob/2018e2dc9c1173564cc1352ccb90bdc0ac29c12f/lib/garbler.go#L113-L126", "partition": "test"} +{"repo": "michaelbironneau/garbler", "path": "lib/garbler.go", "func_name": "punctuate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//add punctuation characters to start and end of string", "docstring_tokens": ["add", "punctuation", "characters", "to", "start", "and", "end", "of", "string"], "sha": "2018e2dc9c1173564cc1352ccb90bdc0ac29c12f", "url": "https://github.com/michaelbironneau/garbler/blob/2018e2dc9c1173564cc1352ccb90bdc0ac29c12f/lib/garbler.go#L129-L142", "partition": "test"} +{"repo": "drone/drone-plugin-go", "path": "plugin/param.go", "func_name": "deprecated_init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// this init function is deprecated, but I'm keeping it\n// around just in case it proves useful in the future.", "docstring_tokens": ["this", "init", "function", "is", "deprecated", "but", "I", "m", "keeping", "it", "around", "just", "in", "case", "it", "proves", "useful", "in", "the", "future", "."], "sha": "d6109f644c5935c22620081b4c234bb2263743c7", "url": "https://github.com/drone/drone-plugin-go/blob/d6109f644c5935c22620081b4c234bb2263743c7/plugin/param.go#L31-L55", "partition": "test"} +{"repo": "drone/drone-plugin-go", "path": "plugin/param.go", "func_name": "Param", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Param defines a parameter with the specified name.", "docstring_tokens": ["Param", "defines", "a", "parameter", "with", "the", "specified", "name", "."], "sha": "d6109f644c5935c22620081b4c234bb2263743c7", "url": "https://github.com/drone/drone-plugin-go/blob/d6109f644c5935c22620081b4c234bb2263743c7/plugin/param.go#L70-L72", "partition": "test"} +{"repo": "drone/drone-plugin-go", "path": "plugin/param.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses parameter definitions from the map.", "docstring_tokens": ["Parse", "parses", "parameter", "definitions", "from", "the", "map", "."], "sha": "d6109f644c5935c22620081b4c234bb2263743c7", "url": "https://github.com/drone/drone-plugin-go/blob/d6109f644c5935c22620081b4c234bb2263743c7/plugin/param.go#L75-L94", "partition": "test"} +{"repo": "drone/drone-plugin-go", "path": "plugin/param.go", "func_name": "Unmarshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unmarshal parses the JSON payload from the command\n// arguments and unmarshal into a value pointed to by v.", "docstring_tokens": ["Unmarshal", "parses", "the", "JSON", "payload", "from", "the", "command", "arguments", "and", "unmarshal", "into", "a", "value", "pointed", "to", "by", "v", "."], "sha": "d6109f644c5935c22620081b4c234bb2263743c7", "url": "https://github.com/drone/drone-plugin-go/blob/d6109f644c5935c22620081b4c234bb2263743c7/plugin/param.go#L98-L100", "partition": "test"} +{"repo": "fossapps/pushy", "path": "pushy.go", "func_name": "GetDefaultHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDefaultHTTPClient returns a httpClient with configured timeout", "docstring_tokens": ["GetDefaultHTTPClient", "returns", "a", "httpClient", "with", "configured", "timeout"], "sha": "4c6045d7a1d3c310d61168ff1ccd5421d5c162f6", "url": "https://github.com/fossapps/pushy/blob/4c6045d7a1d3c310d61168ff1ccd5421d5c162f6/pushy.go#L29-L34", "partition": "test"} +{"repo": "fossapps/pushy", "path": "pushy.go", "func_name": "DeviceInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeviceInfo returns information about a particular device", "docstring_tokens": ["DeviceInfo", "returns", "information", "about", "a", "particular", "device"], "sha": "4c6045d7a1d3c310d61168ff1ccd5421d5c162f6", "url": "https://github.com/fossapps/pushy/blob/4c6045d7a1d3c310d61168ff1ccd5421d5c162f6/pushy.go#L48-L54", "partition": "test"} +{"repo": "fossapps/pushy", "path": "pushy.go", "func_name": "DevicePresence", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DevicePresence returns data about presence of a data", "docstring_tokens": ["DevicePresence", "returns", "data", "about", "presence", "of", "a", "data"], "sha": "4c6045d7a1d3c310d61168ff1ccd5421d5c162f6", "url": "https://github.com/fossapps/pushy/blob/4c6045d7a1d3c310d61168ff1ccd5421d5c162f6/pushy.go#L57-L63", "partition": "test"} +{"repo": "fossapps/pushy", "path": "pushy.go", "func_name": "NotificationStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotificationStatus returns status of a particular notification", "docstring_tokens": ["NotificationStatus", "returns", "status", "of", "a", "particular", "notification"], "sha": "4c6045d7a1d3c310d61168ff1ccd5421d5c162f6", "url": "https://github.com/fossapps/pushy/blob/4c6045d7a1d3c310d61168ff1ccd5421d5c162f6/pushy.go#L66-L72", "partition": "test"} +{"repo": "fossapps/pushy", "path": "pushy.go", "func_name": "DeleteNotification", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteNotification deletes a created notification", "docstring_tokens": ["DeleteNotification", "deletes", "a", "created", "notification"], "sha": "4c6045d7a1d3c310d61168ff1ccd5421d5c162f6", "url": "https://github.com/fossapps/pushy/blob/4c6045d7a1d3c310d61168ff1ccd5421d5c162f6/pushy.go#L75-L81", "partition": "test"} +{"repo": "fossapps/pushy", "path": "pushy.go", "func_name": "NotifyDevice", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotifyDevice sends notification data to devices", "docstring_tokens": ["NotifyDevice", "sends", "notification", "data", "to", "devices"], "sha": "4c6045d7a1d3c310d61168ff1ccd5421d5c162f6", "url": "https://github.com/fossapps/pushy/blob/4c6045d7a1d3c310d61168ff1ccd5421d5c162f6/pushy.go#L110-L116", "partition": "test"} +{"repo": "heketi/tests", "path": "assert.go", "func_name": "Assert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Simple assert call for unit and functional tests", "docstring_tokens": ["Simple", "assert", "call", "for", "unit", "and", "functional", "tests"], "sha": "f3775cbcefd6822086c729e3ce4b70ca85a5bd21", "url": "https://github.com/heketi/tests/blob/f3775cbcefd6822086c729e3ce4b70ca85a5bd21/assert.go#L29-L47", "partition": "test"} +{"repo": "heketi/tests", "path": "tempfile.go", "func_name": "CreateFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// We could use Fallocate, but some test CI systems\n// do not support it, like Travis-ci.org.", "docstring_tokens": ["We", "could", "use", "Fallocate", "but", "some", "test", "CI", "systems", "do", "not", "support", "it", "like", "Travis", "-", "ci", ".", "org", "."], "sha": "f3775cbcefd6822086c729e3ce4b70ca85a5bd21", "url": "https://github.com/heketi/tests/blob/f3775cbcefd6822086c729e3ce4b70ca85a5bd21/tempfile.go#L42-L59", "partition": "test"} +{"repo": "janos/web", "path": "form.go", "func_name": "AddError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddError appends an error to a list of general errors.", "docstring_tokens": ["AddError", "appends", "an", "error", "to", "a", "list", "of", "general", "errors", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/form.go#L16-L18", "partition": "test"} +{"repo": "janos/web", "path": "form.go", "func_name": "AddFieldError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddFieldError appends an error to a list of field specific errors.", "docstring_tokens": ["AddFieldError", "appends", "an", "error", "to", "a", "list", "of", "field", "specific", "errors", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/form.go#L21-L29", "partition": "test"} +{"repo": "janos/web", "path": "form.go", "func_name": "HasErrors", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HasErrors returns weather FormErrors instance contains at leas one error.", "docstring_tokens": ["HasErrors", "returns", "weather", "FormErrors", "instance", "contains", "at", "leas", "one", "error", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/form.go#L32-L42", "partition": "test"} +{"repo": "janos/web", "path": "form.go", "func_name": "NewError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewError initializes FormErrors with one general error.", "docstring_tokens": ["NewError", "initializes", "FormErrors", "with", "one", "general", "error", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/form.go#L45-L49", "partition": "test"} +{"repo": "janos/web", "path": "form.go", "func_name": "NewFieldError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFieldError initializes FormErrors with one field error.", "docstring_tokens": ["NewFieldError", "initializes", "FormErrors", "with", "one", "field", "error", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/form.go#L52-L56", "partition": "test"} +{"repo": "janos/web", "path": "chain.go", "func_name": "ChainHandlers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ChainHandlers executes each function from the arguments with handler\n// from the next function to construct a chan fo callers.", "docstring_tokens": ["ChainHandlers", "executes", "each", "function", "from", "the", "arguments", "with", "handler", "from", "the", "next", "function", "to", "construct", "a", "chan", "fo", "callers", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/chain.go#L12-L17", "partition": "test"} +{"repo": "janos/web", "path": "chain.go", "func_name": "FinalHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FinalHandler is a helper function to wrap the last http.Handler element\n// in the ChainHandlers function.", "docstring_tokens": ["FinalHandler", "is", "a", "helper", "function", "to", "wrap", "the", "last", "http", ".", "Handler", "element", "in", "the", "ChainHandlers", "function", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/chain.go#L21-L25", "partition": "test"} +{"repo": "janos/web", "path": "file-server/hasher.go", "func_name": "Hash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Hash returns a part of a MD5 sum of a file.", "docstring_tokens": ["Hash", "returns", "a", "part", "of", "a", "MD5", "sum", "of", "a", "file", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/file-server/hasher.go#L29-L39", "partition": "test"} +{"repo": "janos/web", "path": "file-server/hasher.go", "func_name": "IsHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsHash checks is provided string a valid hash.", "docstring_tokens": ["IsHash", "checks", "is", "provided", "string", "a", "valid", "hash", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/file-server/hasher.go#L42-L60", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "WithBaseDir", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBaseDir sets the directory in which template files\n// are stored.", "docstring_tokens": ["WithBaseDir", "sets", "the", "directory", "in", "which", "template", "files", "are", "stored", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L65-L71", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "WithFileFindFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithFileFindFunc sets the function that will return the\n// file path on disk based on filename provided from files\n// defind using WithTemplateFromFile or WithTemplateFromFiles.", "docstring_tokens": ["WithFileFindFunc", "sets", "the", "function", "that", "will", "return", "the", "file", "path", "on", "disk", "based", "on", "filename", "provided", "from", "files", "defind", "using", "WithTemplateFromFile", "or", "WithTemplateFromFiles", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L76-L78", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "WithTemplateFromFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTemplateFromFiles adds a template parsed from files.", "docstring_tokens": ["WithTemplateFromFiles", "adds", "a", "template", "parsed", "from", "files", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L87-L89", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "WithTemplatesFromFiles", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTemplatesFromFiles adds a map of templates parsed from files.", "docstring_tokens": ["WithTemplatesFromFiles", "adds", "a", "map", "of", "templates", "parsed", "from", "files", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L92-L98", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "WithTemplateFromStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTemplateFromStrings adds a template parsed from string.", "docstring_tokens": ["WithTemplateFromStrings", "adds", "a", "template", "parsed", "from", "string", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L101-L103", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "WithTemplatesFromStrings", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTemplatesFromStrings adds a map of templates parsed from strings.", "docstring_tokens": ["WithTemplatesFromStrings", "adds", "a", "map", "of", "templates", "parsed", "from", "strings", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L106-L112", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "WithFunction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithFunction adds a function to templates.", "docstring_tokens": ["WithFunction", "adds", "a", "function", "to", "templates", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L115-L117", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "WithFunctions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithFunctions adds function map to templates.", "docstring_tokens": ["WithFunctions", "adds", "function", "map", "to", "templates", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L120-L126", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "WithDelims", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithDelims sets the delimiters used in templates.", "docstring_tokens": ["WithDelims", "sets", "the", "delimiters", "used", "in", "templates", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L129-L134", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new instance of Templates and parses\n// provided files and strings.", "docstring_tokens": ["New", "creates", "a", "new", "instance", "of", "Templates", "and", "parses", "provided", "files", "and", "strings", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L152-L196", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "RespondWithStatus", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RespondWithStatus executes a template with provided data into buffer,\n// then writes the the status and body to the response writer.\n// A panic will be raised if the template does not exist or fails to execute.", "docstring_tokens": ["RespondWithStatus", "executes", "a", "template", "with", "provided", "data", "into", "buffer", "then", "writes", "the", "the", "status", "and", "body", "to", "the", "response", "writer", ".", "A", "panic", "will", "be", "raised", "if", "the", "template", "does", "not", "exist", "or", "fails", "to", "execute", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L224-L242", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "RespondTemplate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RespondTemplate executes a named template with provided data into buffer,\n// then writes the the body to the response writer.\n// A panic will be raised if the template does not exist or fails to execute.", "docstring_tokens": ["RespondTemplate", "executes", "a", "named", "template", "with", "provided", "data", "into", "buffer", "then", "writes", "the", "the", "body", "to", "the", "response", "writer", ".", "A", "panic", "will", "be", "raised", "if", "the", "template", "does", "not", "exist", "or", "fails", "to", "execute", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L247-L249", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "Respond", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Respond executes template with provided data into buffer,\n// then writes the the body to the response writer.\n// A panic will be raised if the template does not exist or fails to execute.", "docstring_tokens": ["Respond", "executes", "template", "with", "provided", "data", "into", "buffer", "then", "writes", "the", "the", "body", "to", "the", "response", "writer", ".", "A", "panic", "will", "be", "raised", "if", "the", "template", "does", "not", "exist", "or", "fails", "to", "execute", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L254-L256", "partition": "test"} +{"repo": "janos/web", "path": "templates/templates.go", "func_name": "RenderTemplate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenderTemplate executes a named template and returns the string.", "docstring_tokens": ["RenderTemplate", "executes", "a", "named", "template", "and", "returns", "the", "string", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/templates.go#L259-L269", "partition": "test"} +{"repo": "janos/web", "path": "servers/quic/quic.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new instance of Server.", "docstring_tokens": ["New", "creates", "a", "new", "instance", "of", "Server", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/servers/quic/quic.go#L44-L58", "partition": "test"} +{"repo": "janos/web", "path": "servers/quic/quic.go", "func_name": "ServeUDP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeUDP serves requests over UDP connection.", "docstring_tokens": ["ServeUDP", "serves", "requests", "over", "UDP", "connection", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/servers/quic/quic.go#L61-L64", "partition": "test"} +{"repo": "janos/web", "path": "servers/quic/quic.go", "func_name": "Shutdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Shutdown calls h2quic.Server.Close method.", "docstring_tokens": ["Shutdown", "calls", "h2quic", ".", "Server", ".", "Close", "method", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/servers/quic/quic.go#L67-L69", "partition": "test"} +{"repo": "janos/web", "path": "servers/quic/quic.go", "func_name": "QuicHeadersHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// QuicHeadersHandler should be used as a middleware to set\n// quic related headers to TCP server that suggest alternative svc.", "docstring_tokens": ["QuicHeadersHandler", "should", "be", "used", "as", "a", "middleware", "to", "set", "quic", "related", "headers", "to", "TCP", "server", "that", "suggest", "alternative", "svc", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/servers/quic/quic.go#L73-L78", "partition": "test"} +{"repo": "janos/web", "path": "request.go", "func_name": "GetRequestIPs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRequestIPs returns all possible IPs found in HTTP request.", "docstring_tokens": ["GetRequestIPs", "returns", "all", "possible", "IPs", "found", "in", "HTTP", "request", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/request.go#L15-L30", "partition": "test"} +{"repo": "janos/web", "path": "domain_redirect.go", "func_name": "DomainRedirectHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DomainRedirectHandler responds with redirect url based on\n// domain and httpsPort, othervise it executes the handler.", "docstring_tokens": ["DomainRedirectHandler", "responds", "with", "redirect", "url", "based", "on", "domain", "and", "httpsPort", "othervise", "it", "executes", "the", "handler", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/domain_redirect.go#L17-L76", "partition": "test"} +{"repo": "janos/web", "path": "servers/servers.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new instance of Servers with applied options.", "docstring_tokens": ["New", "creates", "a", "new", "instance", "of", "Servers", "with", "applied", "options", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/servers/servers.go#L55-L64", "partition": "test"} +{"repo": "janos/web", "path": "servers/servers.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add adds a new server instance by a custom name and with\n// address to listen to.", "docstring_tokens": ["Add", "adds", "a", "new", "server", "instance", "by", "a", "custom", "name", "and", "with", "address", "to", "listen", "to", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/servers/servers.go#L123-L131", "partition": "test"} +{"repo": "janos/web", "path": "servers/servers.go", "func_name": "TCPAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TCPAddr returns a TCP address of the listener that a server\n// with a specific name is using. If there are more servers\n// with the same name, the address of the first started server\n// is returned.", "docstring_tokens": ["TCPAddr", "returns", "a", "TCP", "address", "of", "the", "listener", "that", "a", "server", "with", "a", "specific", "name", "is", "using", ".", "If", "there", "are", "more", "servers", "with", "the", "same", "name", "the", "address", "of", "the", "first", "started", "server", "is", "returned", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/servers/servers.go#L203-L213", "partition": "test"} +{"repo": "janos/web", "path": "servers/servers.go", "func_name": "UDPAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UDPAddr returns a UDP address of the listener that a server\n// with a specific name is using. If there are more servers\n// with the same name, the address of the first started server\n// is returned.", "docstring_tokens": ["UDPAddr", "returns", "a", "UDP", "address", "of", "the", "listener", "that", "a", "server", "with", "a", "specific", "name", "is", "using", ".", "If", "there", "are", "more", "servers", "with", "the", "same", "name", "the", "address", "of", "the", "first", "started", "server", "is", "returned", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/servers/servers.go#L219-L229", "partition": "test"} +{"repo": "janos/web", "path": "servers/servers.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close stops all servers, by calling Close method on each of them.", "docstring_tokens": ["Close", "stops", "all", "servers", "by", "calling", "Close", "method", "on", "each", "of", "them", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/servers/servers.go#L232-L248", "partition": "test"} +{"repo": "janos/web", "path": "servers/servers.go", "func_name": "Shutdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Shutdown gracefully stops all servers, by calling Shutdown method on each of them.", "docstring_tokens": ["Shutdown", "gracefully", "stops", "all", "servers", "by", "calling", "Shutdown", "method", "on", "each", "of", "them", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/servers/servers.go#L251-L267", "partition": "test"} +{"repo": "janos/web", "path": "https_redirect.go", "func_name": "Accept", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Accept accepts TCP connection, sets keep alive and checks if a client\n// requested an encrypted connection.", "docstring_tokens": ["Accept", "accepts", "TCP", "connection", "sets", "keep", "alive", "and", "checks", "if", "a", "client", "requested", "an", "encrypted", "connection", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/https_redirect.go#L52-L81", "partition": "test"} +{"repo": "janos/web", "path": "static_files.go", "func_name": "NewStaticFilesHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStaticFilesHandler serves a file under specified filesystem if it\n// can be opened, otherwise it serves HTTP from a specified handler.", "docstring_tokens": ["NewStaticFilesHandler", "serves", "a", "file", "under", "specified", "filesystem", "if", "it", "can", "be", "opened", "otherwise", "it", "serves", "HTTP", "from", "a", "specified", "handler", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/static_files.go#L15-L26", "partition": "test"} +{"repo": "janos/web", "path": "auth.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP serves an HTTP response for a request.", "docstring_tokens": ["ServeHTTP", "serves", "an", "HTTP", "response", "for", "a", "request", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/auth.go#L64-L88", "partition": "test"} +{"repo": "janos/web", "path": "client/http/http_client.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON implements of json.Marshaler interface.\n// It marshals string representations of time.Duration.", "docstring_tokens": ["MarshalJSON", "implements", "of", "json", ".", "Marshaler", "interface", ".", "It", "marshals", "string", "representations", "of", "time", ".", "Duration", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/http/http_client.go#L137-L147", "partition": "test"} +{"repo": "janos/web", "path": "client/http/http_client.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON implements json.Unamrshaler interface.\n// It parses time.Duration as strings.", "docstring_tokens": ["UnmarshalJSON", "implements", "json", ".", "Unamrshaler", "interface", ".", "It", "parses", "time", ".", "Duration", "as", "strings", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/http/http_client.go#L151-L166", "partition": "test"} +{"repo": "janos/web", "path": "client/http/http_client.go", "func_name": "MarshalYAML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalYAML implements of yaml.Marshaler interface.\n// It marshals string representations of time.Duration.", "docstring_tokens": ["MarshalYAML", "implements", "of", "yaml", ".", "Marshaler", "interface", ".", "It", "marshals", "string", "representations", "of", "time", ".", "Duration", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/http/http_client.go#L170-L180", "partition": "test"} +{"repo": "janos/web", "path": "client/http/http_client.go", "func_name": "UnmarshalYAML", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalYAML implements yaml.Unamrshaler interface.\n// It parses time.Duration as strings.", "docstring_tokens": ["UnmarshalYAML", "implements", "yaml", ".", "Unamrshaler", "interface", ".", "It", "parses", "time", ".", "Duration", "as", "strings", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/http/http_client.go#L184-L199", "partition": "test"} +{"repo": "janos/web", "path": "log/access/access_log.go", "func_name": "NewHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHandler returns a handler that logs HTTP requests.\n// It logs information about remote address, X-Forwarded-For or X-Real-Ip,\n// HTTP method, request URI, HTTP protocol, HTTP response status, total bytes\n// written to http.ResponseWriter, response duration, HTTP referrer and\n// HTTP client user agent.", "docstring_tokens": ["NewHandler", "returns", "a", "handler", "that", "logs", "HTTP", "requests", ".", "It", "logs", "information", "about", "remote", "address", "X", "-", "Forwarded", "-", "For", "or", "X", "-", "Real", "-", "Ip", "HTTP", "method", "request", "URI", "HTTP", "protocol", "HTTP", "response", "status", "total", "bytes", "written", "to", "http", ".", "ResponseWriter", "response", "duration", "HTTP", "referrer", "and", "HTTP", "client", "user", "agent", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/log/access/access_log.go#L58-L99", "partition": "test"} +{"repo": "janos/web", "path": "recovery/recovery.go", "func_name": "WithPanicResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPanicResponse sets a fixed body and its content type HTTP header\n// that will be returned as HTTP response on panic event.\n// If WithPanicResponseHandler is defined, this options are ignored.", "docstring_tokens": ["WithPanicResponse", "sets", "a", "fixed", "body", "and", "its", "content", "type", "HTTP", "header", "that", "will", "be", "returned", "as", "HTTP", "response", "on", "panic", "event", ".", "If", "WithPanicResponseHandler", "is", "defined", "this", "options", "are", "ignored", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/recovery/recovery.go#L38-L43", "partition": "test"} +{"repo": "janos/web", "path": "recovery/recovery.go", "func_name": "WithPanicResponseHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithPanicResponseHandler sets http.Handler that will be executed on\n// panic event. It is useful when the response has dynamic content.\n// If the content is static it is better to use WithPanicResponse option\n// instead. This option has a precedence upon WithPanicResponse.", "docstring_tokens": ["WithPanicResponseHandler", "sets", "http", ".", "Handler", "that", "will", "be", "executed", "on", "panic", "event", ".", "It", "is", "useful", "when", "the", "response", "has", "dynamic", "content", ".", "If", "the", "content", "is", "static", "it", "is", "better", "to", "use", "WithPanicResponse", "option", "instead", ".", "This", "option", "has", "a", "precedence", "upon", "WithPanicResponse", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/recovery/recovery.go#L49-L51", "partition": "test"} +{"repo": "janos/web", "path": "recovery/recovery.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new Handler from the handler that is wrapped and\n// protected with recover function.", "docstring_tokens": ["New", "creates", "a", "new", "Handler", "from", "the", "handler", "that", "is", "wrapped", "and", "protected", "with", "recover", "function", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/recovery/recovery.go#L65-L74", "partition": "test"} +{"repo": "janos/web", "path": "recovery/recovery.go", "func_name": "ServeHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeHTTP implements http.Handler interface.", "docstring_tokens": ["ServeHTTP", "implements", "http", ".", "Handler", "interface", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/recovery/recovery.go#L77-L130", "partition": "test"} +{"repo": "janos/web", "path": "templates/functions.go", "func_name": "NewContextFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewContextFunc creates a new function that can be used to store\n// and access arbitrary data by keys.", "docstring_tokens": ["NewContextFunc", "creates", "a", "new", "function", "that", "can", "be", "used", "to", "store", "and", "access", "arbitrary", "data", "by", "keys", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/templates/functions.go#L18-L25", "partition": "test"} +{"repo": "janos/web", "path": "client/api/error_registry.go", "func_name": "NewMapErrorRegistry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMapErrorRegistry creates a new instance of MapErrorRegistry.", "docstring_tokens": ["NewMapErrorRegistry", "creates", "a", "new", "instance", "of", "MapErrorRegistry", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/error_registry.go#L32-L43", "partition": "test"} +{"repo": "janos/web", "path": "client/api/error_registry.go", "func_name": "AddError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddError adds a new error with a code to the registry.\n// It there already is an error or handler with the same code,\n// ErrErrorAlreadyRegistered will be returned.", "docstring_tokens": ["AddError", "adds", "a", "new", "error", "with", "a", "code", "to", "the", "registry", ".", "It", "there", "already", "is", "an", "error", "or", "handler", "with", "the", "same", "code", "ErrErrorAlreadyRegistered", "will", "be", "returned", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/error_registry.go#L48-L57", "partition": "test"} +{"repo": "janos/web", "path": "client/api/error_registry.go", "func_name": "AddMessageError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddMessageError adds a new Error isntance with a code and message\n// to the registry.\n// It there already is an error or handler with the same code,\n// ErrErrorAlreadyRegistered will be returned.", "docstring_tokens": ["AddMessageError", "adds", "a", "new", "Error", "isntance", "with", "a", "code", "and", "message", "to", "the", "registry", ".", "It", "there", "already", "is", "an", "error", "or", "handler", "with", "the", "same", "code", "ErrErrorAlreadyRegistered", "will", "be", "returned", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/error_registry.go#L63-L76", "partition": "test"} +{"repo": "janos/web", "path": "client/api/error_registry.go", "func_name": "MustAddError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustAddError calls AddError and panics in case of an error.", "docstring_tokens": ["MustAddError", "calls", "AddError", "and", "panics", "in", "case", "of", "an", "error", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/error_registry.go#L79-L83", "partition": "test"} +{"repo": "janos/web", "path": "client/api/error_registry.go", "func_name": "MustAddMessageError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustAddMessageError calls AddMessageError and panics in case of an error.", "docstring_tokens": ["MustAddMessageError", "calls", "AddMessageError", "and", "panics", "in", "case", "of", "an", "error", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/error_registry.go#L86-L92", "partition": "test"} +{"repo": "janos/web", "path": "client/api/error_registry.go", "func_name": "AddHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddHandler adds a new error handler with a code to the registry.\n// It there already is an error or handler with the same code,\n// ErrErrorAlreadyRegistered will be returned.", "docstring_tokens": ["AddHandler", "adds", "a", "new", "error", "handler", "with", "a", "code", "to", "the", "registry", ".", "It", "there", "already", "is", "an", "error", "or", "handler", "with", "the", "same", "code", "ErrErrorAlreadyRegistered", "will", "be", "returned", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/error_registry.go#L102-L111", "partition": "test"} +{"repo": "janos/web", "path": "client/api/error_registry.go", "func_name": "MustAddHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustAddHandler calls AddHandler and panics in case of an error.", "docstring_tokens": ["MustAddHandler", "calls", "AddHandler", "and", "panics", "in", "case", "of", "an", "error", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/error_registry.go#L114-L118", "partition": "test"} +{"repo": "janos/web", "path": "client/api/error_registry.go", "func_name": "Handler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handler returns a handler that is registered under the provided code.", "docstring_tokens": ["Handler", "returns", "a", "handler", "that", "is", "registered", "under", "the", "provided", "code", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/error_registry.go#L121-L123", "partition": "test"} +{"repo": "janos/web", "path": "client/api/api_client.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new instance of Client with default values.", "docstring_tokens": ["New", "returns", "a", "new", "instance", "of", "Client", "with", "default", "values", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/api_client.go#L57-L64", "partition": "test"} +{"repo": "janos/web", "path": "client/api/api_client.go", "func_name": "Request", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Request makes a HTTP request based on Client configuration and\n// arguments provided.", "docstring_tokens": ["Request", "makes", "a", "HTTP", "request", "based", "on", "Client", "configuration", "and", "arguments", "provided", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/api_client.go#L169-L171", "partition": "test"} +{"repo": "janos/web", "path": "client/api/api_client.go", "func_name": "JSONContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JSONContext provides the same functionality as JSON with Context instance passing to http.Request.", "docstring_tokens": ["JSONContext", "provides", "the", "same", "functionality", "as", "JSON", "with", "Context", "instance", "passing", "to", "http", ".", "Request", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/api_client.go#L174-L203", "partition": "test"} +{"repo": "janos/web", "path": "client/api/api_client.go", "func_name": "StreamContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StreamContext provides the same functionality as Stream with Context instance passing to http.Request.", "docstring_tokens": ["StreamContext", "provides", "the", "same", "functionality", "as", "Stream", "with", "Context", "instance", "passing", "to", "http", ".", "Request", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/api_client.go#L212-L221", "partition": "test"} +{"repo": "janos/web", "path": "client/api/api_client.go", "func_name": "Stream", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stream makes a HTTP request and returns request body as io.ReadCloser,\n// to be able to read long running responses. Returned io.ReadCloser must be\n// closed at the end of read. To reuse HTTP connection, make sure that the\n// whole data is read before closing the reader.", "docstring_tokens": ["Stream", "makes", "a", "HTTP", "request", "and", "returns", "request", "body", "as", "io", ".", "ReadCloser", "to", "be", "able", "to", "read", "long", "running", "responses", ".", "Returned", "io", ".", "ReadCloser", "must", "be", "closed", "at", "the", "end", "of", "read", ".", "To", "reuse", "HTTP", "connection", "make", "sure", "that", "the", "whole", "data", "is", "read", "before", "closing", "the", "reader", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/api_client.go#L227-L229", "partition": "test"} +{"repo": "janos/web", "path": "client/api/api_client.go", "func_name": "JSONUnmarshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// JSONUnmarshal decodes data into v and returns json.SyntaxError and\n// json.UnmarshalTypeError formated with additional information.", "docstring_tokens": ["JSONUnmarshal", "decodes", "data", "into", "v", "and", "returns", "json", ".", "SyntaxError", "and", "json", ".", "UnmarshalTypeError", "formated", "with", "additional", "information", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/client/api/api_client.go#L233-L246", "partition": "test"} +{"repo": "janos/web", "path": "servers/http/http.go", "func_name": "ServeTCP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeTCP executes http.Server.Serve method.\n// If the provided listener is net.TCPListener, keep alive\n// will be enabled. If server is configured with TLS,\n// a tls.Listener will be created with provided listener.", "docstring_tokens": ["ServeTCP", "executes", "http", ".", "Server", ".", "Serve", "method", ".", "If", "the", "provided", "listener", "is", "net", ".", "TCPListener", "keep", "alive", "will", "be", "enabled", ".", "If", "server", "is", "configured", "with", "TLS", "a", "tls", ".", "Listener", "will", "be", "created", "with", "provided", "listener", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/servers/http/http.go#L61-L74", "partition": "test"} +{"repo": "janos/web", "path": "servers/grpc/grpc.go", "func_name": "ServeTCP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ServeTCP serves request on TCP listener.", "docstring_tokens": ["ServeTCP", "serves", "request", "on", "TCP", "listener", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/servers/grpc/grpc.go#L35-L37", "partition": "test"} +{"repo": "janos/web", "path": "servers/grpc/grpc.go", "func_name": "Shutdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Shutdown executes grpc.Server.GracefulStop method.", "docstring_tokens": ["Shutdown", "executes", "grpc", ".", "Server", ".", "GracefulStop", "method", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/servers/grpc/grpc.go#L46-L49", "partition": "test"} +{"repo": "janos/web", "path": "method.go", "func_name": "HandleMethods", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleMethods uses a corresponding Handler based on HTTP request method.\n// If Handler is not found, a method not allowed HTTP response is returned\n// with specified body and Content-Type header.", "docstring_tokens": ["HandleMethods", "uses", "a", "corresponding", "Handler", "based", "on", "HTTP", "request", "method", ".", "If", "Handler", "is", "not", "found", "a", "method", "not", "allowed", "HTTP", "response", "is", "returned", "with", "specified", "body", "and", "Content", "-", "Type", "header", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/method.go#L18-L36", "partition": "test"} +{"repo": "janos/web", "path": "set_headers.go", "func_name": "NewSetHeadersHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSetHeadersHandler sets provied headers on HTTP response.", "docstring_tokens": ["NewSetHeadersHandler", "sets", "provied", "headers", "on", "HTTP", "response", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/set_headers.go#L23-L30", "partition": "test"} +{"repo": "janos/web", "path": "file-server/server.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New initializes a new instance of Server.", "docstring_tokens": ["New", "initializes", "a", "new", "instance", "of", "Server", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/file-server/server.go#L29-L42", "partition": "test"} +{"repo": "janos/web", "path": "file-server/server.go", "func_name": "HashedPath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HashedPath returns a URL path with hash injected into the filename.", "docstring_tokens": ["HashedPath", "returns", "a", "URL", "path", "with", "hash", "injected", "into", "the", "filename", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/file-server/server.go#L140-L154", "partition": "test"} +{"repo": "janos/web", "path": "maintenance/maintenance.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new instance of Handler.\n// The first argument is the handler that will be executed\n// when maintenance mode is off.", "docstring_tokens": ["New", "creates", "a", "new", "instance", "of", "Handler", ".", "The", "first", "argument", "is", "the", "handler", "that", "will", "be", "executed", "when", "maintenance", "mode", "is", "off", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/maintenance/maintenance.go#L197-L208", "partition": "test"} +{"repo": "janos/web", "path": "maintenance/maintenance.go", "func_name": "HTMLHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTMLHandler is a HTTP middleware that should be used\n// alongide HTML pages.", "docstring_tokens": ["HTMLHandler", "is", "a", "HTTP", "middleware", "that", "should", "be", "used", "alongide", "HTML", "pages", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/maintenance/maintenance.go#L212-L230", "partition": "test"} +{"repo": "janos/web", "path": "maintenance/maintenance.go", "func_name": "Status", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Status returns whether the maintenance mode is enabled.", "docstring_tokens": ["Status", "returns", "whether", "the", "maintenance", "mode", "is", "enabled", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/maintenance/maintenance.go#L277-L279", "partition": "test"} +{"repo": "janos/web", "path": "maintenance/maintenance.go", "func_name": "StatusHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StatusHandler can be used in JSON-encoded HTTP API\n// to check the status of maintenance.", "docstring_tokens": ["StatusHandler", "can", "be", "used", "in", "JSON", "-", "encoded", "HTTP", "API", "to", "check", "the", "status", "of", "maintenance", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/maintenance/maintenance.go#L283-L291", "partition": "test"} +{"repo": "janos/web", "path": "maintenance/maintenance.go", "func_name": "OnHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OnHandler can be used in JSON-encoded HTTP API to enable maintenance.\n// It returns HTTP Status Created if the maintenance is enabled.\n// If the maintenance is already enabled, it returns HTTP Status OK.", "docstring_tokens": ["OnHandler", "can", "be", "used", "in", "JSON", "-", "encoded", "HTTP", "API", "to", "enable", "maintenance", ".", "It", "returns", "HTTP", "Status", "Created", "if", "the", "maintenance", "is", "enabled", ".", "If", "the", "maintenance", "is", "already", "enabled", "it", "returns", "HTTP", "Status", "OK", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/maintenance/maintenance.go#L296-L309", "partition": "test"} +{"repo": "janos/web", "path": "maintenance/maintenance.go", "func_name": "OffHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// OffHandler can be used in JSON-encoded HTTP API to disable maintenance.", "docstring_tokens": ["OffHandler", "can", "be", "used", "in", "JSON", "-", "encoded", "HTTP", "API", "to", "disable", "maintenance", "."], "sha": "0fb0203103deb84424510a8d5166ac00700f2b0e", "url": "https://github.com/janos/web/blob/0fb0203103deb84424510a8d5166ac00700f2b0e/maintenance/maintenance.go#L312-L323", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tcnotify/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON calls json.RawMessage method of the same name. Required since\n// PostIRCMessageRequest is of type json.RawMessage...", "docstring_tokens": ["MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "PostIRCMessageRequest", "is", "of", "type", "json", ".", "RawMessage", "..."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tcnotify/types.go#L194-L197", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tcqueue/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON calls json.RawMessage method of the same name. Required since\n// PostArtifactRequest is of type json.RawMessage...", "docstring_tokens": ["MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "PostArtifactRequest", "is", "of", "type", "json", ".", "RawMessage", "..."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tcqueue/types.go#L2457-L2460", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tcqueue/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON calls json.RawMessage method of the same name. Required since\n// PostArtifactResponse is of type json.RawMessage...", "docstring_tokens": ["MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "PostArtifactResponse", "is", "of", "type", "json", ".", "RawMessage", "..."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tcqueue/types.go#L2473-L2476", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tchooksevents/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON calls json.RawMessage method of the same name. Required since\n// HookChangedMessage is of type json.RawMessage...", "docstring_tokens": ["MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "HookChangedMessage", "is", "of", "type", "json", ".", "RawMessage", "..."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tchooksevents/types.go#L36-L39", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tchooks/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON calls json.RawMessage method of the same name. Required since\n// TriggerHookRequest is of type json.RawMessage...", "docstring_tokens": ["MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "TriggerHookRequest", "is", "of", "type", "json", ".", "RawMessage", "..."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tchooks/types.go#L598-L601", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tchooks/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON calls json.RawMessage method of the same name. Required since\n// TriggerHookResponse is of type json.RawMessage...", "docstring_tokens": ["MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "TriggerHookResponse", "is", "of", "type", "json", ".", "RawMessage", "..."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tchooks/types.go#L614-L617", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tchooks/types.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON is a copy of the json.RawMessage implementation.", "docstring_tokens": ["UnmarshalJSON", "is", "a", "copy", "of", "the", "json", ".", "RawMessage", "implementation", "."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tchooks/types.go#L620-L626", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tcec2manager/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON calls json.RawMessage method of the same name. Required since\n// LaunchInfo is of type json.RawMessage...", "docstring_tokens": ["MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "LaunchInfo", "is", "of", "type", "json", ".", "RawMessage", "..."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tcec2manager/types.go#L494-L497", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tcec2manager/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON calls json.RawMessage method of the same name. Required since\n// Var is of type json.RawMessage...", "docstring_tokens": ["MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "Var", "is", "of", "type", "json", ".", "RawMessage", "..."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tcec2manager/types.go#L510-L513", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tcec2manager/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON calls json.RawMessage method of the same name. Required since\n// Var1 is of type json.RawMessage...", "docstring_tokens": ["MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "Var1", "is", "of", "type", "json", ".", "RawMessage", "..."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tcec2manager/types.go#L526-L529", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tcec2manager/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON calls json.RawMessage method of the same name. Required since\n// Var3 is of type json.RawMessage...", "docstring_tokens": ["MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "Var3", "is", "of", "type", "json", ".", "RawMessage", "..."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tcec2manager/types.go#L542-L545", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "time.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON implements the json.Marshaler interface.\n// The time is a quoted string in RFC 3339 format, with sub-second precision added if present.", "docstring_tokens": ["MarshalJSON", "implements", "the", "json", ".", "Marshaler", "interface", ".", "The", "time", "is", "a", "quoted", "string", "in", "RFC", "3339", "format", "with", "sub", "-", "second", "precision", "added", "if", "present", "."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/time.go#L19-L26", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "time.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON implements the json.Unmarshaler interface.\n// The time is expected to be a quoted string in RFC 3339 format.", "docstring_tokens": ["UnmarshalJSON", "implements", "the", "json", ".", "Unmarshaler", "interface", ".", "The", "time", "is", "expected", "to", "be", "a", "quoted", "string", "in", "RFC", "3339", "format", "."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/time.go#L30-L36", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "readwriteseeker/readwriteseeker.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write implements the io.Writer interface", "docstring_tokens": ["Write", "implements", "the", "io", ".", "Writer", "interface"], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/readwriteseeker/readwriteseeker.go#L15-L28", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "readwriteseeker/readwriteseeker.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek implements the io.Seeker interface", "docstring_tokens": ["Seek", "implements", "the", "io", ".", "Seeker", "interface"], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/readwriteseeker/readwriteseeker.go#L31-L46", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "readwriteseeker/readwriteseeker.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read implements the io.Reader interface", "docstring_tokens": ["Read", "implements", "the", "io", ".", "Reader", "interface"], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/readwriteseeker/readwriteseeker.go#L54-L61", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tcawsprovisioner/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON calls json.RawMessage method of the same name. Required since\n// LaunchSpecsResponse is of type json.RawMessage...", "docstring_tokens": ["MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "LaunchSpecsResponse", "is", "of", "type", "json", ".", "RawMessage", "..."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tcawsprovisioner/types.go#L555-L558", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tcawsprovisioner/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON calls json.RawMessage method of the same name. Required since\n// RegionLaunchSpec is of type json.RawMessage...", "docstring_tokens": ["MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "RegionLaunchSpec", "is", "of", "type", "json", ".", "RawMessage", "..."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tcawsprovisioner/types.go#L571-L574", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "codegenerator/model/model.go", "func_name": "GenerateCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GenerateCode takes the objects loaded into memory in LoadAPIs\n// and writes them out as go code.", "docstring_tokens": ["GenerateCode", "takes", "the", "objects", "loaded", "into", "memory", "in", "LoadAPIs", "and", "writes", "them", "out", "as", "go", "code", "."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/codegenerator/model/model.go#L200-L266", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "codegenerator/model/api.go", "func_name": "postPopulate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add entry.Input and entry.Output to schemaURLs, if they are set", "docstring_tokens": ["Add", "entry", ".", "Input", "and", "entry", ".", "Output", "to", "schemaURLs", "if", "they", "are", "set"], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/codegenerator/model/api.go#L244-L253", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "creds.go", "func_name": "CreateTemporaryCredentials", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateTemporaryCredentials is an alias for CreateNamedTemporaryCredentials\n// with an empty name.", "docstring_tokens": ["CreateTemporaryCredentials", "is", "an", "alias", "for", "CreateNamedTemporaryCredentials", "with", "an", "empty", "name", "."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/creds.go#L153-L155", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "http.go", "func_name": "setURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// utility function to create a URL object based on given data", "docstring_tokens": ["utility", "function", "to", "create", "a", "URL", "object", "based", "on", "given", "data"], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/http.go#L85-L102", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "http.go", "func_name": "SignRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SignRequest will add an Authorization header", "docstring_tokens": ["SignRequest", "will", "add", "an", "Authorization", "header"], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/http.go#L175-L192", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "http.go", "func_name": "APICall", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// APICall is the generic REST API calling method which performs all REST API\n// calls for this library. Each auto-generated REST API method simply is a\n// wrapper around this method, calling it with specific specific arguments.", "docstring_tokens": ["APICall", "is", "the", "generic", "REST", "API", "calling", "method", "which", "performs", "all", "REST", "API", "calls", "for", "this", "library", ".", "Each", "auto", "-", "generated", "REST", "API", "method", "simply", "is", "a", "wrapper", "around", "this", "method", "calling", "it", "with", "specific", "specific", "arguments", "."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/http.go#L206-L252", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "http.go", "func_name": "SignedURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SignedURL creates a signed URL using the given Client, where route is the\n// url path relative to the BaseURL stored in the Client, query is the set of\n// query string parameters, if any, and duration is the amount of time that the\n// signed URL should remain valid for.", "docstring_tokens": ["SignedURL", "creates", "a", "signed", "URL", "using", "the", "given", "Client", "where", "route", "is", "the", "url", "path", "relative", "to", "the", "BaseURL", "stored", "in", "the", "Client", "query", "is", "the", "set", "of", "query", "string", "parameters", "if", "any", "and", "duration", "is", "the", "amount", "of", "time", "that", "the", "signed", "URL", "should", "remain", "valid", "for", "."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/http.go#L258-L283", "partition": "test"} +{"repo": "taskcluster/taskcluster-client-go", "path": "tcauth/types.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON calls json.RawMessage method of the same name. Required since\n// HawkSignatureAuthenticationResponse is of type json.RawMessage...", "docstring_tokens": ["MarshalJSON", "calls", "json", ".", "RawMessage", "method", "of", "the", "same", "name", ".", "Required", "since", "HawkSignatureAuthenticationResponse", "is", "of", "type", "json", ".", "RawMessage", "..."], "sha": "ef6acd428ae5844a933792ed6479d0e7dca61ef8", "url": "https://github.com/taskcluster/taskcluster-client-go/blob/ef6acd428ae5844a933792ed6479d0e7dca61ef8/tcauth/types.go#L912-L915", "partition": "test"} +{"repo": "bitgoin/lyra2rev2", "path": "bmw.go", "func_name": "bmw256", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//bmw256 calculates and returns bmw256 of input.\n//length of input must be 32 bytes.", "docstring_tokens": ["bmw256", "calculates", "and", "returns", "bmw256", "of", "input", ".", "length", "of", "input", "must", "be", "32", "bytes", "."], "sha": "bae9ad2043bb55facb14c4918e909f88a7d3ed84", "url": "https://github.com/bitgoin/lyra2rev2/blob/bae9ad2043bb55facb14c4918e909f88a7d3ed84/bmw.go#L131-L152", "partition": "test"} +{"repo": "bitgoin/lyra2rev2", "path": "cubehash.go", "func_name": "NewCubeHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewCubeHash initializes anrd retuns Cubuhash struct.", "docstring_tokens": ["NewCubeHash", "initializes", "anrd", "retuns", "Cubuhash", "struct", "."], "sha": "bae9ad2043bb55facb14c4918e909f88a7d3ed84", "url": "https://github.com/bitgoin/lyra2rev2/blob/bae9ad2043bb55facb14c4918e909f88a7d3ed84/cubehash.go#L88-L124", "partition": "test"} +{"repo": "bitgoin/lyra2rev2", "path": "cubehash.go", "func_name": "cubehash256", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//cubehash56 calculates cubuhash256.\n//length of data must be 32 bytes.", "docstring_tokens": ["cubehash56", "calculates", "cubuhash256", ".", "length", "of", "data", "must", "be", "32", "bytes", "."], "sha": "bae9ad2043bb55facb14c4918e909f88a7d3ed84", "url": "https://github.com/bitgoin/lyra2rev2/blob/bae9ad2043bb55facb14c4918e909f88a7d3ed84/cubehash.go#L337-L359", "partition": "test"} +{"repo": "bitgoin/lyra2rev2", "path": "lyra2re2.go", "func_name": "Sum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Sum returns the result of Lyra2re2 hash.", "docstring_tokens": ["Sum", "returns", "the", "result", "of", "Lyra2re2", "hash", "."], "sha": "bae9ad2043bb55facb14c4918e909f88a7d3ed84", "url": "https://github.com/bitgoin/lyra2rev2/blob/bae9ad2043bb55facb14c4918e909f88a7d3ed84/lyra2re2.go#L38-L59", "partition": "test"} +{"repo": "bitgoin/lyra2rev2", "path": "lyra2.go", "func_name": "squeeze", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "/**\n * squeeze Performs a squeeze operation, using Blake2b's G function as the\n * internal permutation\n *\n * @param state The current state of the sponge\n * @param out Array that will receive the data squeezed\n * @param len The number of bytes to be squeezed into the \"out\" array\n */", "docstring_tokens": ["squeeze", "Performs", "a", "squeeze", "operation", "using", "Blake2b", "s", "G", "function", "as", "the", "internal", "permutation"], "sha": "bae9ad2043bb55facb14c4918e909f88a7d3ed84", "url": "https://github.com/bitgoin/lyra2rev2/blob/bae9ad2043bb55facb14c4918e909f88a7d3ed84/lyra2.go#L135-L144", "partition": "test"} +{"repo": "bitgoin/lyra2rev2", "path": "lyra2.go", "func_name": "reducedSqueezeRow0", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "/**\n * reducedSqueezeRow0 erforms a reduced squeeze operation for a single row, from the highest to\n * the lowest index, using the reduced-round Blake2b's G function as the\n * internal permutation\n *\n * @param state The current state of the sponge\n * @param rowOut Row to receive the data squeezed\n */", "docstring_tokens": ["reducedSqueezeRow0", "erforms", "a", "reduced", "squeeze", "operation", "for", "a", "single", "row", "from", "the", "highest", "to", "the", "lowest", "index", "using", "the", "reduced", "-", "round", "Blake2b", "s", "G", "function", "as", "the", "internal", "permutation"], "sha": "bae9ad2043bb55facb14c4918e909f88a7d3ed84", "url": "https://github.com/bitgoin/lyra2rev2/blob/bae9ad2043bb55facb14c4918e909f88a7d3ed84/lyra2.go#L204-L228", "partition": "test"} +{"repo": "bitgoin/lyra2rev2", "path": "lyra2.go", "func_name": "reducedDuplexRow1", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "/**\n * reducedDuplexRow1 Performs a reduced duplex operation for a single row, from the highest to\n * the lowest index, using the reduced-round Blake2b's G function as the\n * internal permutation\n *\n * @param state\t\tThe current state of the sponge\n * @param rowIn\t\tRow to feed the sponge\n * @param rowOut\tRow to receive the sponge's output\n */", "docstring_tokens": ["reducedDuplexRow1", "Performs", "a", "reduced", "duplex", "operation", "for", "a", "single", "row", "from", "the", "highest", "to", "the", "lowest", "index", "using", "the", "reduced", "-", "round", "Blake2b", "s", "G", "function", "as", "the", "internal", "permutation"], "sha": "bae9ad2043bb55facb14c4918e909f88a7d3ed84", "url": "https://github.com/bitgoin/lyra2rev2/blob/bae9ad2043bb55facb14c4918e909f88a7d3ed84/lyra2.go#L239-L282", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/reader.go", "func_name": "NewReaderByteCodeLoader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReaderByteCodeLoader creates a new object", "docstring_tokens": ["NewReaderByteCodeLoader", "creates", "a", "new", "object"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/reader.go#L14-L16", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/reader.go", "func_name": "LoadReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadReader takes a io.Reader and compiles it into vm.ByteCode", "docstring_tokens": ["LoadReader", "takes", "a", "io", ".", "Reader", "and", "compiles", "it", "into", "vm", ".", "ByteCode"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/reader.go#L19-L35", "partition": "test"} +{"repo": "fgrid/uuid", "path": "v3.go", "func_name": "NewV3", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewV3 creates a new UUID with variant 3 as described in RFC 4122.\n// Variant 3 based namespace-uuid and name and MD-5 hash calculation.", "docstring_tokens": ["NewV3", "creates", "a", "new", "UUID", "with", "variant", "3", "as", "described", "in", "RFC", "4122", ".", "Variant", "3", "based", "namespace", "-", "uuid", "and", "name", "and", "MD", "-", "5", "hash", "calculation", "."], "sha": "6f72a2d331c927473b9b19f590d43ccb5018c844", "url": "https://github.com/fgrid/uuid/blob/6f72a2d331c927473b9b19f590d43ccb5018c844/v3.go#L10-L14", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/ops.go", "func_name": "txLiteral", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sets literal in op arg to register sa", "docstring_tokens": ["Sets", "literal", "in", "op", "arg", "to", "register", "sa"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/ops.go#L207-L210", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/ops.go", "func_name": "txFetchSymbol", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetches a symbol specified in op arg from template variables.\n// XXX need to handle local vars?", "docstring_tokens": ["Fetches", "a", "symbol", "specified", "in", "op", "arg", "from", "template", "variables", ".", "XXX", "need", "to", "handle", "local", "vars?"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/ops.go#L214-L224", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/ops.go", "func_name": "txMarkRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wraps the contents of register sa with a \"raw string\" mark\n// Note that this effectively stringifies the contents of register sa", "docstring_tokens": ["Wraps", "the", "contents", "of", "register", "sa", "with", "a", "raw", "string", "mark", "Note", "that", "this", "effectively", "stringifies", "the", "contents", "of", "register", "sa"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/ops.go#L320-L325", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/ops.go", "func_name": "txUnmarkRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sets the contents of register sa to a regular string, and removes\n// the \"raw string\" mark, forcing html escapes to be applied when printing.\n// Note that this effectively stringifies the contents of register sa", "docstring_tokens": ["Sets", "the", "contents", "of", "register", "sa", "to", "a", "regular", "string", "and", "removes", "the", "raw", "string", "mark", "forcing", "html", "escapes", "to", "be", "applied", "when", "printing", ".", "Note", "that", "this", "effectively", "stringifies", "the", "contents", "of", "register", "sa"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/ops.go#L330-L335", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/ops.go", "func_name": "txPrint", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Prints the contents of register sa to Output.\n// Forcefully applies html escaping unless the variable in sa is marked \"raw\"", "docstring_tokens": ["Prints", "the", "contents", "of", "register", "sa", "to", "Output", ".", "Forcefully", "applies", "html", "escaping", "unless", "the", "variable", "in", "sa", "is", "marked", "raw"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/ops.go#L339-L349", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/ops.go", "func_name": "txPrintRaw", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Prints the contents of register sa, forcing raw string semantics", "docstring_tokens": ["Prints", "the", "contents", "of", "register", "sa", "forcing", "raw", "string", "semantics"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/ops.go#L357-L366", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/ops.go", "func_name": "NewLoopVar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLoopVar creates the loop variable", "docstring_tokens": ["NewLoopVar", "creates", "the", "loop", "variable"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/ops.go#L461-L474", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/ops.go", "func_name": "txMakeArray", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Grab every thing from current mark up to the tip of the stack,\n// and make it a list", "docstring_tokens": ["Grab", "every", "thing", "from", "current", "mark", "up", "to", "the", "tip", "of", "the", "stack", "and", "make", "it", "a", "list"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/ops.go#L857-L871", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/ops.go", "func_name": "txFunCallOmni", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Executes what's in st.sa", "docstring_tokens": ["Executes", "what", "s", "in", "st", ".", "sa"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/ops.go#L991-L1005", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/loader.go", "func_name": "DumpAST", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DumpAST sets the bitmask for DumpAST debug flag", "docstring_tokens": ["DumpAST", "sets", "the", "bitmask", "for", "DumpAST", "debug", "flag"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/loader.go#L13-L19", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/loader.go", "func_name": "DumpByteCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DumpByteCode sets the bitmask for DumpByteCode debug flag", "docstring_tokens": ["DumpByteCode", "sets", "the", "bitmask", "for", "DumpByteCode", "debug", "flag"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/loader.go#L22-L28", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "compiler/optimizer.go", "func_name": "Optimize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Optimize modifies the ByteCode in place to an optimized version", "docstring_tokens": ["Optimize", "modifies", "the", "ByteCode", "in", "place", "to", "an", "optimized", "version"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/compiler/optimizer.go#L10-L26", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "functions/depot.go", "func_name": "NewFuncDepot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFuncDepot creates a new FuncDepot under the given `namespace`", "docstring_tokens": ["NewFuncDepot", "creates", "a", "new", "FuncDepot", "under", "the", "given", "namespace"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/functions/depot.go#L15-L17", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "functions/depot.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns the function associated with the given key. The function\n// is wrapped as reflect.Value so reflection can be used to determine\n// attributes about this function", "docstring_tokens": ["Get", "returns", "the", "function", "associated", "with", "the", "given", "key", ".", "The", "function", "is", "wrapped", "as", "reflect", ".", "Value", "so", "reflection", "can", "be", "used", "to", "determine", "attributes", "about", "this", "function"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/functions/depot.go#L27-L30", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "functions/depot.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set stores the function under the name `key`", "docstring_tokens": ["Set", "stores", "the", "function", "under", "the", "name", "key"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/functions/depot.go#L33-L35", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/file.go", "func_name": "NewFileTemplateFetcher", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFileTemplateFetcher creates a new struct. `paths` must give us the\n// directories for us to look the templates in", "docstring_tokens": ["NewFileTemplateFetcher", "creates", "a", "new", "struct", ".", "paths", "must", "give", "us", "the", "directories", "for", "us", "to", "look", "the", "templates", "in"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/file.go#L19-L31", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/file.go", "func_name": "LastModified", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LastModified returns time when the target template file was last modified", "docstring_tokens": ["LastModified", "returns", "time", "when", "the", "target", "template", "file", "was", "last", "modified"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/file.go#L54-L75", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/file.go", "func_name": "Reader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reader returns the io.Reader instance for the file source", "docstring_tokens": ["Reader", "returns", "the", "io", ".", "Reader", "instance", "for", "the", "file", "source"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/file.go#L78-L84", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/file.go", "func_name": "Bytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Bytes returns the bytes in teh template file", "docstring_tokens": ["Bytes", "returns", "the", "bytes", "in", "teh", "template", "file"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/file.go#L87-L93", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/state.go", "func_name": "NewState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewState creates a new State struct", "docstring_tokens": ["NewState", "creates", "a", "new", "State", "struct"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/state.go#L12-L28", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/state.go", "func_name": "PushFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushFrame pushes a new frame to the frame stack", "docstring_tokens": ["PushFrame", "pushes", "a", "new", "frame", "to", "the", "frame", "stack"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/state.go#L61-L66", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/state.go", "func_name": "PopFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PopFrame pops the frame from the top of the frame stack", "docstring_tokens": ["PopFrame", "pops", "the", "frame", "from", "the", "top", "of", "the", "frame", "stack"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/state.go#L69-L79", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/state.go", "func_name": "CurrentFrame", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CurrentFrame returns the frame currently at the top of the frame stack", "docstring_tokens": ["CurrentFrame", "returns", "the", "frame", "currently", "at", "the", "top", "of", "the", "frame", "stack"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/state.go#L82-L88", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/state.go", "func_name": "Warnf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Warnf is used to generate warnings during virtual machine execution", "docstring_tokens": ["Warnf", "is", "used", "to", "generate", "warnings", "during", "virtual", "machine", "execution"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/state.go#L91-L93", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/state.go", "func_name": "AppendOutputString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendOutputString is the same as AppendOutput, but uses a string", "docstring_tokens": ["AppendOutputString", "is", "the", "same", "as", "AppendOutput", "but", "uses", "a", "string"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/state.go#L102-L104", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/state.go", "func_name": "Popmark", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Popmark pops the mark stored at the top of the mark stack", "docstring_tokens": ["Popmark", "pops", "the", "mark", "stored", "at", "the", "top", "of", "the", "mark", "stack"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/state.go#L113-L116", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/state.go", "func_name": "CurrentMark", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CurrentMark returns the mark stored at the top of the mark stack", "docstring_tokens": ["CurrentMark", "returns", "the", "mark", "stored", "at", "the", "top", "of", "the", "mark", "stack"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/state.go#L119-L125", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/state.go", "func_name": "LoadByteCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadByteCode loads a new ByteCode. This is used for op codes that\n// call to external templates such as `include`", "docstring_tokens": ["LoadByteCode", "loads", "a", "new", "ByteCode", ".", "This", "is", "used", "for", "op", "codes", "that", "call", "to", "external", "templates", "such", "as", "include"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/state.go#L144-L146", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/state.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset resets the whole State object", "docstring_tokens": ["Reset", "resets", "the", "whole", "State", "object"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/state.go#L149-L160", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "internal/frame/frame.go", "func_name": "DeclareVar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeclareVar puts a new variable in the stack, and returns the\n// index where it now resides", "docstring_tokens": ["DeclareVar", "puts", "a", "new", "variable", "in", "the", "stack", "and", "returns", "the", "index", "where", "it", "now", "resides"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/internal/frame/frame.go#L42-L45", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "internal/frame/frame.go", "func_name": "GetLvar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLvar gets the frame local variable at position i", "docstring_tokens": ["GetLvar", "gets", "the", "frame", "local", "variable", "at", "position", "i"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/internal/frame/frame.go#L48-L54", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "internal/frame/frame.go", "func_name": "SetLvar", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetLvar sets the frame local variable at position i", "docstring_tokens": ["SetLvar", "sets", "the", "frame", "local", "variable", "at", "position", "i"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/internal/frame/frame.go#L57-L59", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/bytecode.go", "func_name": "NewByteCode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewByteCode creates an empty ByteCode instance.", "docstring_tokens": ["NewByteCode", "creates", "an", "empty", "ByteCode", "instance", "."], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/bytecode.go#L11-L18", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/bytecode.go", "func_name": "Append", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Append appends an op code to the current list of op codes.", "docstring_tokens": ["Append", "appends", "an", "op", "code", "to", "the", "current", "list", "of", "op", "codes", "."], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/bytecode.go#L32-L34", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/bytecode.go", "func_name": "AppendOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendOp is an utility method to create AND append a new op code to the\n// current list of op codes", "docstring_tokens": ["AppendOp", "is", "an", "utility", "method", "to", "create", "AND", "append", "a", "new", "op", "code", "to", "the", "current", "list", "of", "op", "codes"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/bytecode.go#L38-L42", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/bytecode.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the textual representation of this ByteCode", "docstring_tokens": ["String", "returns", "the", "textual", "representation", "of", "this", "ByteCode"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/bytecode.go#L45-L58", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/cache.go", "func_name": "NewCachedByteCodeLoader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCachedByteCodeLoader creates a new CachedByteCodeLoader", "docstring_tokens": ["NewCachedByteCodeLoader", "creates", "a", "new", "CachedByteCodeLoader"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/cache.go#L18-L32", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/cache.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load loads the ByteCode for template specified by `key`, which, for this\n// ByteCodeLoader, is the path to the template we want.\n// If cached vm.ByteCode struct is found, it is loaded and its last modified\n// time is compared against that of the template file. If the template is\n// newer, it's compiled. Otherwise the cached version is used, saving us the\n// time to parse and compile the template.", "docstring_tokens": ["Load", "loads", "the", "ByteCode", "for", "template", "specified", "by", "key", "which", "for", "this", "ByteCodeLoader", "is", "the", "path", "to", "the", "template", "we", "want", ".", "If", "cached", "vm", ".", "ByteCode", "struct", "is", "found", "it", "is", "loaded", "and", "its", "last", "modified", "time", "is", "compared", "against", "that", "of", "the", "template", "file", ".", "If", "the", "template", "is", "newer", "it", "s", "compiled", ".", "Otherwise", "the", "cached", "version", "is", "used", "saving", "us", "the", "time", "to", "parse", "and", "compile", "the", "template", "."], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/cache.go#L58-L117", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/cache.go", "func_name": "NewFileCache", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewFileCache creates a new FileCache which stores caches underneath\n// the directory specified by `dir`", "docstring_tokens": ["NewFileCache", "creates", "a", "new", "FileCache", "which", "stores", "caches", "underneath", "the", "directory", "specified", "by", "dir"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/cache.go#L121-L124", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/cache.go", "func_name": "GetCachePath", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCachePath creates a string describing where a given template key\n// would be cached in the file system", "docstring_tokens": ["GetCachePath", "creates", "a", "string", "describing", "where", "a", "given", "template", "key", "would", "be", "cached", "in", "the", "file", "system"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/cache.go#L128-L134", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/cache.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns the cached vm.ByteCode, if available", "docstring_tokens": ["Get", "returns", "the", "cached", "vm", ".", "ByteCode", "if", "available"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/cache.go#L137-L154", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/cache.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set creates a new cache file to store the ByteCode.", "docstring_tokens": ["Set", "creates", "a", "new", "cache", "file", "to", "store", "the", "ByteCode", "."], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/cache.go#L157-L178", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/cache.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes the cache", "docstring_tokens": ["Delete", "deletes", "the", "cache"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/cache.go#L181-L183", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/cache.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns the cached ByteCode", "docstring_tokens": ["Get", "returns", "the", "cached", "ByteCode"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/cache.go#L186-L192", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/cache.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set stores the ByteCode", "docstring_tokens": ["Set", "stores", "the", "ByteCode"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/cache.go#L195-L198", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/cache.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete deletes the ByteCode", "docstring_tokens": ["Delete", "deletes", "the", "ByteCode"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/cache.go#L201-L204", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "parser/tterse/tterse.go", "func_name": "NewStringLexer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStringLexer creates a new lexer", "docstring_tokens": ["NewStringLexer", "creates", "a", "new", "lexer"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/parser/tterse/tterse.go#L36-L42", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "parser/tterse/tterse.go", "func_name": "NewReaderLexer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewReaderLexer creates a new lexer", "docstring_tokens": ["NewReaderLexer", "creates", "a", "new", "lexer"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/parser/tterse/tterse.go#L45-L51", "partition": "test"} +{"repo": "fgrid/uuid", "path": "v4.go", "func_name": "NewV4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewV4 creates a new UUID with variant 4 as described in RFC 4122. Variant 4 based on pure random bytes.", "docstring_tokens": ["NewV4", "creates", "a", "new", "UUID", "with", "variant", "4", "as", "described", "in", "RFC", "4122", ".", "Variant", "4", "based", "on", "pure", "random", "bytes", "."], "sha": "6f72a2d331c927473b9b19f590d43ccb5018c844", "url": "https://github.com/fgrid/uuid/blob/6f72a2d331c927473b9b19f590d43ccb5018c844/v4.go#L6-L14", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "parser/kolonish/kolonish.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses the given template and creates an AST", "docstring_tokens": ["Parse", "parses", "the", "given", "template", "and", "creates", "an", "AST"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/parser/kolonish/kolonish.go#L54-L56", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "parser/kolonish/kolonish.go", "func_name": "ParseReader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ParseReader gets the template content from an io.Reader type", "docstring_tokens": ["ParseReader", "gets", "the", "template", "content", "from", "an", "io", ".", "Reader", "type"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/parser/kolonish/kolonish.go#L66-L70", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "parser/ast.go", "func_name": "Visit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Visit returns a channel which you can receive Node structs in order that\n// that they would be processed", "docstring_tokens": ["Visit", "returns", "a", "channel", "which", "you", "can", "receive", "Node", "structs", "in", "order", "that", "that", "they", "would", "be", "processed"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/parser/ast.go#L12-L19", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "parser/ast.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the textual representation of this AST", "docstring_tokens": ["String", "returns", "the", "textual", "representation", "of", "this", "AST"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/parser/ast.go#L22-L33", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/vm.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run executes the given vm.ByteCode using the given variables. For historical\n// reasons, it also allows re-executing the previous bytecode instructions\n// given to a virtual machine, but this will probably be removed in the future", "docstring_tokens": ["Run", "executes", "the", "given", "vm", ".", "ByteCode", "using", "the", "given", "variables", ".", "For", "historical", "reasons", "it", "also", "allows", "re", "-", "executing", "the", "previous", "bytecode", "instructions", "given", "to", "a", "virtual", "machine", "but", "this", "will", "probably", "be", "removed", "in", "the", "future"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/vm.go#L52-L91", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "xslate.go", "func_name": "DefaultParser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultParser sets up and assigns the default parser to be used by Xslate.", "docstring_tokens": ["DefaultParser", "sets", "up", "and", "assigns", "the", "default", "parser", "to", "be", "used", "by", "Xslate", "."], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/xslate.go#L114-L129", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "xslate.go", "func_name": "DefaultLoader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultLoader sets up and assigns the default loader to be used by Xslate.", "docstring_tokens": ["DefaultLoader", "sets", "up", "and", "assigns", "the", "default", "loader", "to", "be", "used", "by", "Xslate", "."], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/xslate.go#L132-L165", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "xslate.go", "func_name": "DefaultVM", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultVM sets up and assigns the default VM to be used by Xslate", "docstring_tokens": ["DefaultVM", "sets", "up", "and", "assigns", "the", "default", "VM", "to", "be", "used", "by", "Xslate"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/xslate.go#L168-L173", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "xslate.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get retrieves the value assigned to `key`", "docstring_tokens": ["Get", "retrieves", "the", "value", "assigned", "to", "key"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/xslate.go#L176-L179", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/http.go", "func_name": "NewHTTPSource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewHTTPSource creates a new HTTPSource instance", "docstring_tokens": ["NewHTTPSource", "creates", "a", "new", "HTTPSource", "instance"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/http.go#L60-L83", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/string.go", "func_name": "NewStringByteCodeLoader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStringByteCodeLoader creates a new object", "docstring_tokens": ["NewStringByteCodeLoader", "creates", "a", "new", "object"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/string.go#L12-L14", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "loader/string.go", "func_name": "LoadString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadString takes a template string and compiles it into vm.ByteCode", "docstring_tokens": ["LoadString", "takes", "a", "template", "string", "and", "compiles", "it", "into", "vm", ".", "ByteCode"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/loader/string.go#L17-L37", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/vars.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns the variable stored in slot `x`", "docstring_tokens": ["Get", "returns", "the", "variable", "stored", "in", "slot", "x"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/vars.go#L13-L20", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/op.go", "func_name": "NewOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOp creates a new Op.", "docstring_tokens": ["NewOp", "creates", "a", "new", "Op", "."], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/op.go#L27-L40", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/op.go", "func_name": "MarshalBinary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalBinary is used to serialize an Op into a binary form. This\n// is used to cache the ByteCode", "docstring_tokens": ["MarshalBinary", "is", "used", "to", "serialize", "an", "Op", "into", "a", "binary", "form", ".", "This", "is", "used", "to", "cache", "the", "ByteCode"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/op.go#L52-L108", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/op.go", "func_name": "UnmarshalBinary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalBinary is used to deserialize an Op from binary form.", "docstring_tokens": ["UnmarshalBinary", "is", "used", "to", "deserialize", "an", "Op", "from", "binary", "form", "."], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/op.go#L111-L170", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/op.go", "func_name": "ArgInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArgInt returns the integer representation of the argument", "docstring_tokens": ["ArgInt", "returns", "the", "integer", "representation", "of", "the", "argument"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/op.go#L192-L195", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "vm/op.go", "func_name": "ArgString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArgString returns the string representatin of the argument", "docstring_tokens": ["ArgString", "returns", "the", "string", "representatin", "of", "the", "argument"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/vm/op.go#L198-L204", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "compiler/compiler.go", "func_name": "AppendOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AppendOp creates and appends a new op to the current set of ByteCode", "docstring_tokens": ["AppendOp", "creates", "and", "appends", "a", "new", "op", "to", "the", "current", "set", "of", "ByteCode"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/compiler/compiler.go#L13-L15", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "compiler/compiler.go", "func_name": "Compile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Compile satisfies the compiler.Compiler interface. It accepts an AST\n// created by parser.Parser, and returns vm.ByteCode or an error", "docstring_tokens": ["Compile", "satisfies", "the", "compiler", ".", "Compiler", "interface", ".", "It", "accepts", "an", "AST", "created", "by", "parser", ".", "Parser", "and", "returns", "vm", ".", "ByteCode", "or", "an", "error"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/compiler/compiler.go#L24-L40", "partition": "test"} +{"repo": "fgrid/uuid", "path": "v5.go", "func_name": "NewV5", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewV5 creates a new UUID with variant 5 as described in RFC 4122.\n// Variant 5 based namespace-uuid and name and SHA-1 hash calculation.", "docstring_tokens": ["NewV5", "creates", "a", "new", "UUID", "with", "variant", "5", "as", "described", "in", "RFC", "4122", ".", "Variant", "5", "based", "namespace", "-", "uuid", "and", "name", "and", "SHA", "-", "1", "hash", "calculation", "."], "sha": "6f72a2d331c927473b9b19f590d43ccb5018c844", "url": "https://github.com/fgrid/uuid/blob/6f72a2d331c927473b9b19f590d43ccb5018c844/v5.go#L7-L11", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "parser/symbols.go", "func_name": "Sort", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sort returns a sorted list of LexSymbols, sorted by Priority", "docstring_tokens": ["Sort", "returns", "a", "sorted", "list", "of", "LexSymbols", "sorted", "by", "Priority"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/parser/symbols.go#L39-L45", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "parser/symbols.go", "func_name": "Less", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Less returns true if the i-th element's Priority is less than the j-th element", "docstring_tokens": ["Less", "returns", "true", "if", "the", "i", "-", "th", "element", "s", "Priority", "is", "less", "than", "the", "j", "-", "th", "element"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/parser/symbols.go#L53-L55", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "parser/symbols.go", "func_name": "Swap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Swap swaps the elements at i and j", "docstring_tokens": ["Swap", "swaps", "the", "elements", "at", "i", "and", "j"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/parser/symbols.go#L58-L60", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "parser/symbols.go", "func_name": "Copy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Copy creates a new copy of the given LexSymbolSet", "docstring_tokens": ["Copy", "creates", "a", "new", "copy", "of", "the", "given", "LexSymbolSet"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/parser/symbols.go#L71-L77", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "parser/symbols.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set creates and sets a new LexItem to `name`", "docstring_tokens": ["Set", "creates", "and", "sets", "a", "new", "LexItem", "to", "name"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/parser/symbols.go#L90-L99", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "parser/symbols.go", "func_name": "GetSortedList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSortedList returns the lsit of LexSymbols in order that they should\n// be searched for in the tempalte", "docstring_tokens": ["GetSortedList", "returns", "the", "lsit", "of", "LexSymbols", "in", "order", "that", "they", "should", "be", "searched", "for", "in", "the", "tempalte"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/parser/symbols.go#L103-L125", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "internal/stack/stack.go", "func_name": "Top", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Top returns the element at the top of the stack or an error if stack is empty", "docstring_tokens": ["Top", "returns", "the", "element", "at", "the", "top", "of", "the", "stack", "or", "an", "error", "if", "stack", "is", "empty"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/internal/stack/stack.go#L32-L37", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "internal/stack/stack.go", "func_name": "Resize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Resize changes the size of the underlying buffer", "docstring_tokens": ["Resize", "changes", "the", "size", "of", "the", "underlying", "buffer"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/internal/stack/stack.go#L50-L54", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "internal/stack/stack.go", "func_name": "Extend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Extend changes the size of the underlying buffer, extending it by `extendBy`", "docstring_tokens": ["Extend", "changes", "the", "size", "of", "the", "underlying", "buffer", "extending", "it", "by", "extendBy"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/internal/stack/stack.go#L57-L59", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "internal/stack/stack.go", "func_name": "Grow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Grow automatically grows the underlying buffer so that it can hold at\n// least `min` elements", "docstring_tokens": ["Grow", "automatically", "grows", "the", "underlying", "buffer", "so", "that", "it", "can", "hold", "at", "least", "min", "elements"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/internal/stack/stack.go#L63-L71", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "internal/stack/stack.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns the element at position `i`", "docstring_tokens": ["Get", "returns", "the", "element", "at", "position", "i"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/internal/stack/stack.go#L74-L80", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "internal/stack/stack.go", "func_name": "Set", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Set sets the element at position `i` to `v`. The stack size is automatically\n// adjusted.", "docstring_tokens": ["Set", "sets", "the", "element", "at", "position", "i", "to", "v", ".", "The", "stack", "size", "is", "automatically", "adjusted", "."], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/internal/stack/stack.go#L84-L99", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "internal/stack/stack.go", "func_name": "Push", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Push adds an element at the end of the stack", "docstring_tokens": ["Push", "adds", "an", "element", "at", "the", "end", "of", "the", "stack"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/internal/stack/stack.go#L102-L108", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "internal/stack/stack.go", "func_name": "Pop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pop removes and returns the item at the end of the stack", "docstring_tokens": ["Pop", "removes", "and", "returns", "the", "item", "at", "the", "end", "of", "the", "stack"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/internal/stack/stack.go#L111-L120", "partition": "test"} +{"repo": "lestrrat-go/xslate", "path": "internal/stack/stack.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns the textual representation of the stack", "docstring_tokens": ["String", "returns", "the", "textual", "representation", "of", "the", "stack"], "sha": "6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8", "url": "https://github.com/lestrrat-go/xslate/blob/6a6eb0fce8ab7407a3e0460af60758e5d6f2b9f8/internal/stack/stack.go#L123-L129", "partition": "test"} +{"repo": "mailgun/iptools", "path": "ip.go", "func_name": "GetHostIPs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHostIPs returns a list of IP addresses of all host's interfaces.", "docstring_tokens": ["GetHostIPs", "returns", "a", "list", "of", "IP", "addresses", "of", "all", "host", "s", "interfaces", "."], "sha": "ba8d5743f6788db9906c07c292a033f194849563", "url": "https://github.com/mailgun/iptools/blob/ba8d5743f6788db9906c07c292a033f194849563/ip.go#L32-L55", "partition": "test"} +{"repo": "mailgun/iptools", "path": "ip.go", "func_name": "GetPrivateHostIPs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrivateHostIPs returns a list of host's private IP addresses.", "docstring_tokens": ["GetPrivateHostIPs", "returns", "a", "list", "of", "host", "s", "private", "IP", "addresses", "."], "sha": "ba8d5743f6788db9906c07c292a033f194849563", "url": "https://github.com/mailgun/iptools/blob/ba8d5743f6788db9906c07c292a033f194849563/ip.go#L58-L74", "partition": "test"} +{"repo": "mailgun/iptools", "path": "ip.go", "func_name": "IsPrivate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsPrivate determines whether a passed IP address is from one of private blocks or not.", "docstring_tokens": ["IsPrivate", "determines", "whether", "a", "passed", "IP", "address", "is", "from", "one", "of", "private", "blocks", "or", "not", "."], "sha": "ba8d5743f6788db9906c07c292a033f194849563", "url": "https://github.com/mailgun/iptools/blob/ba8d5743f6788db9906c07c292a033f194849563/ip.go#L77-L84", "partition": "test"} +{"repo": "danott/envflag", "path": "envflag.go", "func_name": "Environ", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Identical to os.Environ, but limited to the environment variable equivalents\n// for the flags your program cares about.", "docstring_tokens": ["Identical", "to", "os", ".", "Environ", "but", "limited", "to", "the", "environment", "variable", "equivalents", "for", "the", "flags", "your", "program", "cares", "about", "."], "sha": "14c5f9aaa227ddb49f3206fe06432edfc27735a5", "url": "https://github.com/danott/envflag/blob/14c5f9aaa227ddb49f3206fe06432edfc27735a5/envflag.go#L59-L69", "partition": "test"} +{"repo": "danott/envflag", "path": "envflag.go", "func_name": "getenv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Just like os.Getenv, but with a second return value; a boolean specifying\n// if name was actually set in the environment.", "docstring_tokens": ["Just", "like", "os", ".", "Getenv", "but", "with", "a", "second", "return", "value", ";", "a", "boolean", "specifying", "if", "name", "was", "actually", "set", "in", "the", "environment", "."], "sha": "14c5f9aaa227ddb49f3206fe06432edfc27735a5", "url": "https://github.com/danott/envflag/blob/14c5f9aaa227ddb49f3206fe06432edfc27735a5/envflag.go#L96-L110", "partition": "test"} +{"repo": "danott/envflag", "path": "envflag.go", "func_name": "flagAsEnv", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// To be unix'y, we translate flagnames to their uppercase equivalents.", "docstring_tokens": ["To", "be", "unix", "y", "we", "translate", "flagnames", "to", "their", "uppercase", "equivalents", "."], "sha": "14c5f9aaa227ddb49f3206fe06432edfc27735a5", "url": "https://github.com/danott/envflag/blob/14c5f9aaa227ddb49f3206fe06432edfc27735a5/envflag.go#L113-L118", "partition": "test"} +{"repo": "sayanarijit/gopassgen", "path": "gopassgen.go", "func_name": "NewPolicy", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPolicy returns a default password policy which can be modified", "docstring_tokens": ["NewPolicy", "returns", "a", "default", "password", "policy", "which", "can", "be", "modified"], "sha": "cf555de90ad6031f567a55be7d7c90f2fbe8389a", "url": "https://github.com/sayanarijit/gopassgen/blob/cf555de90ad6031f567a55be7d7c90f2fbe8389a/gopassgen.go#L49-L63", "partition": "test"} +{"repo": "sayanarijit/gopassgen", "path": "gopassgen.go", "func_name": "CreateRandom", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateRandom returns a random byte string of given length from given byte string", "docstring_tokens": ["CreateRandom", "returns", "a", "random", "byte", "string", "of", "given", "length", "from", "given", "byte", "string"], "sha": "cf555de90ad6031f567a55be7d7c90f2fbe8389a", "url": "https://github.com/sayanarijit/gopassgen/blob/cf555de90ad6031f567a55be7d7c90f2fbe8389a/gopassgen.go#L74-L84", "partition": "test"} +{"repo": "sayanarijit/gopassgen", "path": "gopassgen.go", "func_name": "Shuffle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Shuffle the given byte string", "docstring_tokens": ["Shuffle", "the", "given", "byte", "string"], "sha": "cf555de90ad6031f567a55be7d7c90f2fbe8389a", "url": "https://github.com/sayanarijit/gopassgen/blob/cf555de90ad6031f567a55be7d7c90f2fbe8389a/gopassgen.go#L87-L94", "partition": "test"} +{"repo": "sayanarijit/gopassgen", "path": "gopassgen.go", "func_name": "Generate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Generate a new password based on given policy", "docstring_tokens": ["Generate", "a", "new", "password", "based", "on", "given", "policy"], "sha": "cf555de90ad6031f567a55be7d7c90f2fbe8389a", "url": "https://github.com/sayanarijit/gopassgen/blob/cf555de90ad6031f567a55be7d7c90f2fbe8389a/gopassgen.go#L97-L143", "partition": "test"} +{"repo": "mitchellh/osext", "path": "osext.go", "func_name": "ExecutableFolder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns same path as Executable, returns just the folder\n// path. Excludes the executable name.", "docstring_tokens": ["Returns", "same", "path", "as", "Executable", "returns", "just", "the", "folder", "path", ".", "Excludes", "the", "executable", "name", "."], "sha": "5e2d6d41470f99c881826dedd8c526728b783c9c", "url": "https://github.com/mitchellh/osext/blob/5e2d6d41470f99c881826dedd8c526728b783c9c/osext.go#L20-L27", "partition": "test"} +{"repo": "brankas/sentinel", "path": "opts.go", "func_name": "Ignore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ignore is a sentinel option to add ignore error handlers.", "docstring_tokens": ["Ignore", "is", "a", "sentinel", "option", "to", "add", "ignore", "error", "handlers", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/opts.go#L68-L80", "partition": "test"} +{"repo": "brankas/sentinel", "path": "opts.go", "func_name": "Sigs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sigs is a sentinel option to set the specified signals for shutdown.", "docstring_tokens": ["Sigs", "is", "a", "sentinel", "option", "to", "set", "the", "specified", "signals", "for", "shutdown", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/opts.go#L83-L95", "partition": "test"} +{"repo": "brankas/sentinel", "path": "opts.go", "func_name": "Logf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Logf is a sentinel option to set a logger.", "docstring_tokens": ["Logf", "is", "a", "sentinel", "option", "to", "set", "a", "logger", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/opts.go#L98-L103", "partition": "test"} +{"repo": "brankas/sentinel", "path": "opts.go", "func_name": "Errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Errorf is a sentinel option to set a error logger.", "docstring_tokens": ["Errorf", "is", "a", "sentinel", "option", "to", "set", "a", "error", "logger", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/opts.go#L106-L111", "partition": "test"} +{"repo": "brankas/sentinel", "path": "sentinel.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new sentinel server group.", "docstring_tokens": ["New", "creates", "a", "new", "sentinel", "server", "group", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/sentinel.go#L38-L66", "partition": "test"} +{"repo": "brankas/sentinel", "path": "sentinel.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run starts the server group, returning the first encountered error upon\n// shutdown.", "docstring_tokens": ["Run", "starts", "the", "server", "group", "returning", "the", "first", "encountered", "error", "upon", "shutdown", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/sentinel.go#L70-L105", "partition": "test"} +{"repo": "brankas/sentinel", "path": "sentinel.go", "func_name": "Shutdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Shutdown calls all registered shutdown funcs.", "docstring_tokens": ["Shutdown", "calls", "all", "registered", "shutdown", "funcs", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/sentinel.go#L108-L121", "partition": "test"} +{"repo": "brankas/sentinel", "path": "sentinel.go", "func_name": "ShutdownIgnore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ShutdownIgnore returns if any of the registered ignore funcs reported true.", "docstring_tokens": ["ShutdownIgnore", "returns", "if", "any", "of", "the", "registered", "ignore", "funcs", "reported", "true", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/sentinel.go#L124-L134", "partition": "test"} +{"repo": "brankas/sentinel", "path": "sentinel.go", "func_name": "Register", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Register registers a server, its shutdown func, and ignore error funcs.", "docstring_tokens": ["Register", "registers", "a", "server", "its", "shutdown", "func", "and", "ignore", "error", "funcs", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/sentinel.go#L137-L151", "partition": "test"} +{"repo": "brankas/sentinel", "path": "sentinel.go", "func_name": "Mux", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Mux creates a new network connection muxer and registers its server,\n// shutdown, and ignore error funcs.", "docstring_tokens": ["Mux", "creates", "a", "new", "network", "connection", "muxer", "and", "registers", "its", "server", "shutdown", "and", "ignore", "error", "funcs", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/sentinel.go#L155-L175", "partition": "test"} +{"repo": "brankas/sentinel", "path": "sentinel.go", "func_name": "HTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTP creates a HTTP server and registers it with the sentinel.", "docstring_tokens": ["HTTP", "creates", "a", "HTTP", "server", "and", "registers", "it", "with", "the", "sentinel", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/sentinel.go#L178-L202", "partition": "test"} +{"repo": "brankas/sentinel", "path": "sentinel.go", "func_name": "IgnoreError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IgnoreError returns a func that will return true when the passed errors\n// match.", "docstring_tokens": ["IgnoreError", "returns", "a", "func", "that", "will", "return", "true", "when", "the", "passed", "errors", "match", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/sentinel.go#L206-L210", "partition": "test"} +{"repo": "brankas/sentinel", "path": "sentinel.go", "func_name": "IgnoreNetOpError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IgnoreNetOpError returns true when the passed error is a net.OpError with\n// error \"use of closed network connection\".", "docstring_tokens": ["IgnoreNetOpError", "returns", "true", "when", "the", "passed", "error", "is", "a", "net", ".", "OpError", "with", "error", "use", "of", "closed", "network", "connection", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/sentinel.go#L226-L231", "partition": "test"} +{"repo": "brankas/sentinel", "path": "util.go", "func_name": "convertAndAppendContextFuncs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// convertAndAppendContextFuncs converts and appends funcs in v to o.", "docstring_tokens": ["convertAndAppendContextFuncs", "converts", "and", "appends", "funcs", "in", "v", "to", "o", "."], "sha": "0ff081867c31a45cb71f5976ea6144fd06a557b5", "url": "https://github.com/brankas/sentinel/blob/0ff081867c31a45cb71f5976ea6144fd06a557b5/util.go#L25-L51", "partition": "test"} +{"repo": "Financial-Times/base-ft-rw-app-go", "path": "baseftrwapp/baseftapp.go", "func_name": "router", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Router sets up the Router - extracted for testability", "docstring_tokens": ["Router", "sets", "up", "the", "Router", "-", "extracted", "for", "testability"], "sha": "1ea8a13e1f37b95318cd965796558d932750f407", "url": "https://github.com/Financial-Times/base-ft-rw-app-go/blob/1ea8a13e1f37b95318cd965796558d932750f407/baseftrwapp/baseftapp.go#L84-L128", "partition": "test"} +{"repo": "Financial-Times/base-ft-rw-app-go", "path": "baseftrwapp/http_handlers.go", "func_name": "buildInfoHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// buildInfoHandler - This is a stop gap and will be added to when we can define what we should display here", "docstring_tokens": ["buildInfoHandler", "-", "This", "is", "a", "stop", "gap", "and", "will", "be", "added", "to", "when", "we", "can", "define", "what", "we", "should", "display", "here"], "sha": "1ea8a13e1f37b95318cd965796558d932750f407", "url": "https://github.com/Financial-Times/base-ft-rw-app-go/blob/1ea8a13e1f37b95318cd965796558d932750f407/baseftrwapp/http_handlers.go#L192-L194", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "encoder/encoder.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// jsonEncoder is an Encoder that produces JSON-formatted responses.", "docstring_tokens": ["jsonEncoder", "is", "an", "Encoder", "that", "produces", "JSON", "-", "formatted", "responses", "."], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/encoder/encoder.go#L32-L58", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "binding/binding.go", "func_name": "Json", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Json is middleware to deserialize a JSON payload from the request\n// into the struct that is passed in. The resulting struct is then\n// validated, but no error handling is actually performed here.\n// An interface pointer can be added as a second argument in order\n// to map the struct to a specific interface.", "docstring_tokens": ["Json", "is", "middleware", "to", "deserialize", "a", "JSON", "payload", "from", "the", "request", "into", "the", "struct", "that", "is", "passed", "in", ".", "The", "resulting", "struct", "is", "then", "validated", "but", "no", "error", "handling", "is", "actually", "performed", "here", ".", "An", "interface", "pointer", "can", "be", "added", "as", "a", "second", "argument", "in", "order", "to", "map", "the", "struct", "to", "a", "specific", "interface", "."], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/binding/binding.go#L116-L132", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "binding/binding.go", "func_name": "validateAndMap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Performs validation and combines errors from validation\n// with errors from deserialization, then maps both the\n// resulting struct and the errors to the context.", "docstring_tokens": ["Performs", "validation", "and", "combines", "errors", "from", "validation", "with", "errors", "from", "deserialization", "then", "maps", "both", "the", "resulting", "struct", "and", "the", "errors", "to", "the", "context", "."], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/binding/binding.go#L299-L307", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "binding/binding.go", "func_name": "Count", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Total errors is the sum of errors with the request overall\n// and errors on individual fields.", "docstring_tokens": ["Total", "errors", "is", "the", "sum", "of", "errors", "with", "the", "request", "overall", "and", "errors", "on", "individual", "fields", "."], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/binding/binding.go#L332-L334", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "cors/cors.go", "func_name": "Header", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Converts options into CORS headers.", "docstring_tokens": ["Converts", "options", "into", "CORS", "headers", "."], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/cors/cors.go#L44-L82", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "cors/cors.go", "func_name": "PreflightHeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Converts options into CORS headers for a preflight response.", "docstring_tokens": ["Converts", "options", "into", "CORS", "headers", "for", "a", "preflight", "response", "."], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/cors/cors.go#L85-L125", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "cors/cors.go", "func_name": "IsOriginAllowed", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Looks up if the origin matches one of the patterns\n// provided in Options.AllowOrigins patterns.", "docstring_tokens": ["Looks", "up", "if", "the", "origin", "matches", "one", "of", "the", "patterns", "provided", "in", "Options", ".", "AllowOrigins", "patterns", "."], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/cors/cors.go#L129-L137", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "cors/cors.go", "func_name": "Allow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Allows CORS for requests those match the provided options.", "docstring_tokens": ["Allows", "CORS", "for", "requests", "those", "match", "the", "provided", "options", "."], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/cors/cors.go#L140-L163", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "render/render.go", "func_name": "Renderer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Renderer is a Middleware that maps a render.Render service into the Martini handler chain. An single variadic render.Options\n// struct can be optionally provided to configure HTML rendering. The default directory for templates is \"templates\" and the default\n// file extension is \".tmpl\".\n//\n// If MARTINI_ENV is set to \"\" or \"development\" then templates will be recompiled on every request. For more performance, set the\n// MARTINI_ENV environment variable to \"production\"", "docstring_tokens": ["Renderer", "is", "a", "Middleware", "that", "maps", "a", "render", ".", "Render", "service", "into", "the", "Martini", "handler", "chain", ".", "An", "single", "variadic", "render", ".", "Options", "struct", "can", "be", "optionally", "provided", "to", "configure", "HTML", "rendering", ".", "The", "default", "directory", "for", "templates", "is", "templates", "and", "the", "default", "file", "extension", "is", ".", "tmpl", ".", "If", "MARTINI_ENV", "is", "set", "to", "or", "development", "then", "templates", "will", "be", "recompiled", "on", "every", "request", ".", "For", "more", "performance", "set", "the", "MARTINI_ENV", "environment", "variable", "to", "production"], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/render/render.go#L107-L119", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "acceptlang/handler.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the parsed languages in a human readable fashion.", "docstring_tokens": ["Returns", "the", "parsed", "languages", "in", "a", "human", "readable", "fashion", "."], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/acceptlang/handler.go#L52-L66", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "acceptlang/handler.go", "func_name": "Languages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Creates a new handler that parses the Accept-Language HTTP header.\n//\n// The parsed structure is a slice of Accept-Language values stored in an\n// AcceptLanguages instance, sorted based on the language qualifier.", "docstring_tokens": ["Creates", "a", "new", "handler", "that", "parses", "the", "Accept", "-", "Language", "HTTP", "header", ".", "The", "parsed", "structure", "is", "a", "slice", "of", "Accept", "-", "Language", "values", "stored", "in", "an", "AcceptLanguages", "instance", "sorted", "based", "on", "the", "language", "qualifier", "."], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/acceptlang/handler.go#L72-L101", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "strip/prefix.go", "func_name": "Prefix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// strip Prefix for every incoming http request", "docstring_tokens": ["strip", "Prefix", "for", "every", "incoming", "http", "request"], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/strip/prefix.go#L12-L23", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "auth/basic.go", "func_name": "Basic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Basic returns a Handler that authenticates via Basic Auth. Writes a http.StatusUnauthorized\n// if authentication fails", "docstring_tokens": ["Basic", "returns", "a", "Handler", "that", "authenticates", "via", "Basic", "Auth", ".", "Writes", "a", "http", ".", "StatusUnauthorized", "if", "authentication", "fails"], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/auth/basic.go#L10-L19", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "sessionauth/login.go", "func_name": "UpdateUser", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateUser updates the User object stored in the session. This is useful incase a change\n// is made to the user model that needs to persist across requests.", "docstring_tokens": ["UpdateUser", "updates", "the", "User", "object", "stored", "in", "the", "session", ".", "This", "is", "useful", "incase", "a", "change", "is", "made", "to", "the", "user", "model", "that", "needs", "to", "persist", "across", "requests", "."], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/sessionauth/login.go#L101-L104", "partition": "test"} +{"repo": "codegangsta/martini-contrib", "path": "sessionauth/example/user.go", "func_name": "GetById", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetById will populate a user object from a database model with\n// a matching id.", "docstring_tokens": ["GetById", "will", "populate", "a", "user", "object", "from", "a", "database", "model", "with", "a", "matching", "id", "."], "sha": "8ce6181c2609699e4c7cd30994b76a850a9cdadc", "url": "https://github.com/codegangsta/martini-contrib/blob/8ce6181c2609699e4c7cd30994b76a850a9cdadc/sessionauth/example/user.go#L48-L55", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "main.go", "func_name": "AddressToAccountId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddressToAccountId converts the provided address into a xdr.AccountId", "docstring_tokens": ["AddressToAccountId", "converts", "the", "provided", "address", "into", "a", "xdr", ".", "AccountId"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/main.go#L16-L34", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/change_trust.go", "func_name": "MutateChangeTrust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateChangeTrust for Asset sets the ChangeTrustOp's Line field", "docstring_tokens": ["MutateChangeTrust", "for", "Asset", "sets", "the", "ChangeTrustOp", "s", "Line", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/change_trust.go#L51-L58", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/change_trust.go", "func_name": "MutateChangeTrust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateChangeTrust for Limit sets the ChangeTrustOp's Limit field", "docstring_tokens": ["MutateChangeTrust", "for", "Limit", "sets", "the", "ChangeTrustOp", "s", "Limit", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/change_trust.go#L61-L64", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/change_trust.go", "func_name": "Trust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Trust is a helper that creates ChangeTrustBuilder", "docstring_tokens": ["Trust", "is", "a", "helper", "that", "creates", "ChangeTrustBuilder"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/change_trust.go#L67-L87", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/change_trust.go", "func_name": "RemoveTrust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveTrust is a helper that creates ChangeTrustBuilder", "docstring_tokens": ["RemoveTrust", "is", "a", "helper", "that", "creates", "ChangeTrustBuilder"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/change_trust.go#L90-L101", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/payment.go", "func_name": "MutatePayment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutatePayment for Asset sets the PaymentOp's Asset field", "docstring_tokens": ["MutatePayment", "for", "Asset", "sets", "the", "PaymentOp", "s", "Asset", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/payment.go#L64-L84", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/payment.go", "func_name": "MutatePayment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutatePayment for Destination sets the PaymentOp's Destination field", "docstring_tokens": ["MutatePayment", "for", "Destination", "sets", "the", "PaymentOp", "s", "Destination", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/payment.go#L87-L97", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/payment.go", "func_name": "MutatePayment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutatePayment for NativeAmount sets the PaymentOp's currency field to\n// native and sets its amount to the provided integer", "docstring_tokens": ["MutatePayment", "for", "NativeAmount", "sets", "the", "PaymentOp", "s", "currency", "field", "to", "native", "and", "sets", "its", "amount", "to", "the", "provided", "integer"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/payment.go#L101-L121", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/payment.go", "func_name": "MutatePayment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutatePayment for PayWithPath sets the PathPaymentOp's SendAsset,\n// SendMax and Path fields", "docstring_tokens": ["MutatePayment", "for", "PayWithPath", "sets", "the", "PathPaymentOp", "s", "SendAsset", "SendMax", "and", "Path", "fields"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/payment.go#L125-L156", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/account_merge.go", "func_name": "MutateAccountMerge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateAccountMerge for Destination sets the AccountMergeBuilder's Destination field", "docstring_tokens": ["MutateAccountMerge", "for", "Destination", "sets", "the", "AccountMergeBuilder", "s", "Destination", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/account_merge.go#L50-L52", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "amount/main.go", "func_name": "MustParse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustParse is the panicking version of Parse", "docstring_tokens": ["MustParse", "is", "the", "panicking", "version", "of", "Parse"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/amount/main.go#L25-L31", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "amount/main.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse parses the provided as a stellar \"amount\", i.e. A 64-bit signed integer\n// that represents a decimal number with 7 digits of significance in the\n// fractional portion of the number.", "docstring_tokens": ["Parse", "parses", "the", "provided", "as", "a", "stellar", "amount", "i", ".", "e", ".", "A", "64", "-", "bit", "signed", "integer", "that", "represents", "a", "decimal", "number", "with", "7", "digits", "of", "significance", "in", "the", "fractional", "portion", "of", "the", "number", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/amount/main.go#L36-L53", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "amount/main.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns an \"amount string\" from the provided raw value `v`.", "docstring_tokens": ["String", "returns", "an", "amount", "string", "from", "the", "provided", "raw", "value", "v", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/amount/main.go#L56-L64", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/manage_offer.go", "func_name": "CreateOffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreateOffer creates a new offer", "docstring_tokens": ["CreateOffer", "creates", "a", "new", "offer"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/manage_offer.go#L12-L14", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/manage_offer.go", "func_name": "CreatePassiveOffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CreatePassiveOffer creates a new passive offer", "docstring_tokens": ["CreatePassiveOffer", "creates", "a", "new", "passive", "offer"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/manage_offer.go#L17-L19", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/manage_offer.go", "func_name": "UpdateOffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UpdateOffer updates an existing offer", "docstring_tokens": ["UpdateOffer", "updates", "an", "existing", "offer"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/manage_offer.go#L22-L24", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/manage_offer.go", "func_name": "DeleteOffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteOffer deletes an existing offer", "docstring_tokens": ["DeleteOffer", "deletes", "an", "existing", "offer"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/manage_offer.go#L27-L29", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/manage_offer.go", "func_name": "ManageOffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ManageOffer groups the creation of a new ManageOfferBuilder with a call to Mutate.", "docstring_tokens": ["ManageOffer", "groups", "the", "creation", "of", "a", "new", "ManageOfferBuilder", "with", "a", "call", "to", "Mutate", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/manage_offer.go#L32-L36", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/manage_offer.go", "func_name": "Mutate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Mutate applies the provided mutators to this builder's offer or operation.", "docstring_tokens": ["Mutate", "applies", "the", "provided", "mutators", "to", "this", "builder", "s", "offer", "or", "operation", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/manage_offer.go#L55-L76", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/manage_offer.go", "func_name": "MutateManageOffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateManageOffer for Amount sets the ManageOfferOp's Amount field", "docstring_tokens": ["MutateManageOffer", "for", "Amount", "sets", "the", "ManageOfferOp", "s", "Amount", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/manage_offer.go#L79-L89", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/manage_offer.go", "func_name": "MutateManageOffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateManageOffer for OfferID sets the ManageOfferOp's OfferID field", "docstring_tokens": ["MutateManageOffer", "for", "OfferID", "sets", "the", "ManageOfferOp", "s", "OfferID", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/manage_offer.go#L92-L100", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/manage_offer.go", "func_name": "MutateManageOffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateManageOffer for Rate sets the ManageOfferOp's selling, buying and price fields", "docstring_tokens": ["MutateManageOffer", "for", "Rate", "sets", "the", "ManageOfferOp", "s", "selling", "buying", "and", "price", "fields"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/manage_offer.go#L103-L133", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/operation.go", "func_name": "MutateOperation", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateOperation for SourceAccount sets the operation's SourceAccount\n// to the pubilic key for the address provided", "docstring_tokens": ["MutateOperation", "for", "SourceAccount", "sets", "the", "operation", "s", "SourceAccount", "to", "the", "pubilic", "key", "for", "the", "address", "provided"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/operation.go#L16-L19", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/price.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a string represenation of `p`", "docstring_tokens": ["String", "returns", "a", "string", "represenation", "of", "p"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/price.go#L8-L10", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "Transaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Transaction groups the creation of a new TransactionBuilder with a call\n// to Mutate.", "docstring_tokens": ["Transaction", "groups", "the", "creation", "of", "a", "new", "TransactionBuilder", "with", "a", "call", "to", "Mutate", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L15-L20", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "Mutate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Mutate applies the provided TransactionMutators to this builder's transaction", "docstring_tokens": ["Mutate", "applies", "the", "provided", "TransactionMutators", "to", "this", "builder", "s", "transaction"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L37-L49", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "Hash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Hash returns the hash of this builder's transaction.", "docstring_tokens": ["Hash", "returns", "the", "hash", "of", "this", "builder", "s", "transaction", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L52-L71", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "HashHex", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HashHex returns the hex-encoded hash of this builder's transaction", "docstring_tokens": ["HashHex", "returns", "the", "hex", "-", "encoded", "hash", "of", "this", "builder", "s", "transaction"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L74-L81", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "Sign", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Sign returns an new TransactionEnvelopeBuilder using this builder's\n// transaction as the basis and with signatures of that transaction from the\n// provided Signers.", "docstring_tokens": ["Sign", "returns", "an", "new", "TransactionEnvelopeBuilder", "using", "this", "builder", "s", "transaction", "as", "the", "basis", "and", "with", "signatures", "of", "that", "transaction", "from", "the", "provided", "Signers", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L86-L94", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for AllowTrustBuilder causes the underylying AllowTrustOp\n// to be added to the operation list for the provided transaction", "docstring_tokens": ["MutateTransaction", "for", "AllowTrustBuilder", "causes", "the", "underylying", "AllowTrustOp", "to", "be", "added", "to", "the", "operation", "list", "for", "the", "provided", "transaction"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L116-L124", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for ChangeTrustBuilder causes the underylying\n// CreateAccountOp to be added to the operation list for the provided\n// transaction", "docstring_tokens": ["MutateTransaction", "for", "ChangeTrustBuilder", "causes", "the", "underylying", "CreateAccountOp", "to", "be", "added", "to", "the", "operation", "list", "for", "the", "provided", "transaction"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L148-L156", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for CreateAccountBuilder causes the underylying\n// CreateAccountOp to be added to the operation list for the provided\n// transaction", "docstring_tokens": ["MutateTransaction", "for", "CreateAccountBuilder", "causes", "the", "underylying", "CreateAccountOp", "to", "be", "added", "to", "the", "operation", "list", "for", "the", "provided", "transaction"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L161-L169", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for Defaults sets reasonable defaults on the transaction being built", "docstring_tokens": ["MutateTransaction", "for", "Defaults", "sets", "reasonable", "defaults", "on", "the", "transaction", "being", "built"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L172-L182", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for InflationBuilder causes the underylying\n// InflationOp to be added to the operation list for the provided\n// transaction", "docstring_tokens": ["MutateTransaction", "for", "InflationBuilder", "causes", "the", "underylying", "InflationOp", "to", "be", "added", "to", "the", "operation", "list", "for", "the", "provided", "transaction"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L187-L195", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for ManageDataBuilder causes the underylying\n// ManageData to be added to the operation list for the provided\n// transaction", "docstring_tokens": ["MutateTransaction", "for", "ManageDataBuilder", "causes", "the", "underylying", "ManageData", "to", "be", "added", "to", "the", "operation", "list", "for", "the", "provided", "transaction"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L200-L208", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for ManageOfferBuilder causes the underylying\n// ManageData to be added to the operation list for the provided\n// transaction", "docstring_tokens": ["MutateTransaction", "for", "ManageOfferBuilder", "causes", "the", "underylying", "ManageData", "to", "be", "added", "to", "the", "operation", "list", "for", "the", "provided", "transaction"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L213-L226", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for MemoHash sets the memo.", "docstring_tokens": ["MutateTransaction", "for", "MemoHash", "sets", "the", "memo", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L229-L232", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for MemoID sets the memo.", "docstring_tokens": ["MutateTransaction", "for", "MemoID", "sets", "the", "memo", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L235-L238", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for MemoReturn sets the memo.", "docstring_tokens": ["MutateTransaction", "for", "MemoReturn", "sets", "the", "memo", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L241-L244", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for MemoText sets the memo.", "docstring_tokens": ["MutateTransaction", "for", "MemoText", "sets", "the", "memo", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L247-L256", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for Network sets the Network ID to use when signing this transaction", "docstring_tokens": ["MutateTransaction", "for", "Network", "sets", "the", "Network", "ID", "to", "use", "when", "signing", "this", "transaction"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L259-L262", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for PaymentBuilder causes the underylying PaymentOp\n// or PathPaymentOp to be added to the operation list for the provided transaction", "docstring_tokens": ["MutateTransaction", "for", "PaymentBuilder", "causes", "the", "underylying", "PaymentOp", "or", "PathPaymentOp", "to", "be", "added", "to", "the", "operation", "list", "for", "the", "provided", "transaction"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L266-L280", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for SetOptionsBuilder causes the underylying\n// SetOptionsOp to be added to the operation list for the provided\n// transaction", "docstring_tokens": ["MutateTransaction", "for", "SetOptionsBuilder", "causes", "the", "underylying", "SetOptionsOp", "to", "be", "added", "to", "the", "operation", "list", "for", "the", "provided", "transaction"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L285-L293", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for Sequence sets the SeqNum on the transaction.", "docstring_tokens": ["MutateTransaction", "for", "Sequence", "sets", "the", "SeqNum", "on", "the", "transaction", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L296-L299", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction.go", "func_name": "MutateTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransaction for SourceAccount sets the transaction's SourceAccount\n// to the pubilic key for the address provided", "docstring_tokens": ["MutateTransaction", "for", "SourceAccount", "sets", "the", "transaction", "s", "SourceAccount", "to", "the", "pubilic", "key", "for", "the", "address", "provided"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction.go#L303-L305", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/db.go", "func_name": "Scan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Scan reads from src into an Int64", "docstring_tokens": ["Scan", "reads", "from", "src", "into", "an", "Int64"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/db.go#L33-L41", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "meta/bundle.go", "func_name": "InitialState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// InitialState returns the initial state of the LedgerEntry identified by `key`\n// just prior to the application of the transaction the produced `b`. Returns\n// nil if the ledger entry did not exist prior to the bundle.", "docstring_tokens": ["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", "did", "not", "exist", "prior", "to", "the", "bundle", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/meta/bundle.go#L18-L34", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "meta/bundle.go", "func_name": "Changes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Changes returns any changes within the bundle that apply to the entry\n// identified by `key`.", "docstring_tokens": ["Changes", "returns", "any", "changes", "within", "the", "bundle", "that", "apply", "to", "the", "entry", "identified", "by", "key", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/meta/bundle.go#L38-L40", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "meta/bundle.go", "func_name": "StateAfter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StateAfter returns the state of entry `key` after the application of the\n// operation at `opidx`", "docstring_tokens": ["StateAfter", "returns", "the", "state", "of", "entry", "key", "after", "the", "application", "of", "the", "operation", "at", "opidx"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/meta/bundle.go#L44-L71", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "meta/bundle.go", "func_name": "changes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// changes returns any changes within the bundle that apply to the entry\n// identified by `key` that occurred at or before `maxOp`.", "docstring_tokens": ["changes", "returns", "any", "changes", "within", "the", "bundle", "that", "apply", "to", "the", "entry", "identified", "by", "key", "that", "occurred", "at", "or", "before", "maxOp", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/meta/bundle.go#L109-L137", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "strkey/main.go", "func_name": "MustDecode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustDecode is like Decode, but panics on error", "docstring_tokens": ["MustDecode", "is", "like", "Decode", "but", "panics", "on", "error"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/strkey/main.go#L64-L70", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "strkey/main.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode encodes the provided data to a StrKey, using the provided version\n// byte.", "docstring_tokens": ["Encode", "encodes", "the", "provided", "data", "to", "a", "StrKey", "using", "the", "provided", "version", "byte", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/strkey/main.go#L74-L99", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "strkey/main.go", "func_name": "MustEncode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustEncode is like Encode, but panics on error", "docstring_tokens": ["MustEncode", "is", "like", "Encode", "but", "panics", "on", "error"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/strkey/main.go#L102-L108", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "strkey/main.go", "func_name": "checkValidVersionByte", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// checkValidVersionByte returns an error if the provided value\n// is not one of the defined valid version byte constants.", "docstring_tokens": ["checkValidVersionByte", "returns", "an", "error", "if", "the", "provided", "value", "is", "not", "one", "of", "the", "defined", "valid", "version", "byte", "constants", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/strkey/main.go#L112-L121", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "crc16/main.go", "func_name": "Checksum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Checksum returns the 2-byte checksum for the provided data", "docstring_tokens": ["Checksum", "returns", "the", "2", "-", "byte", "checksum", "for", "the", "provided", "data"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/crc16/main.go#L95-L108", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "crc16/main.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate returns an error if the provided checksum does not match\n// the calculated checksum of the provided data", "docstring_tokens": ["Validate", "returns", "an", "error", "if", "the", "provided", "checksum", "does", "not", "match", "the", "calculated", "checksum", "of", "the", "provided", "data"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/crc16/main.go#L112-L122", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/ledger_entry_change.go", "func_name": "LedgerKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LedgerKey returns the key for the ledger entry that was changed\n// in `change`.", "docstring_tokens": ["LedgerKey", "returns", "the", "key", "for", "the", "ledger", "entry", "that", "was", "changed", "in", "change", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/ledger_entry_change.go#L12-L28", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "cmd/stellar-vanity-gen/main.go", "func_name": "checkPlausible", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// aborts the attempt if a desired character is not a valid base32 digit", "docstring_tokens": ["aborts", "the", "attempt", "if", "a", "desired", "character", "is", "not", "a", "valid", "base32", "digit"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/cmd/stellar-vanity-gen/main.go#L50-L57", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/account_id.go", "func_name": "Address", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Address returns the strkey encoded form of this AccountId. This method will\n// panic if the accountid is backed by a public key of an unknown type.", "docstring_tokens": ["Address", "returns", "the", "strkey", "encoded", "form", "of", "this", "AccountId", ".", "This", "method", "will", "panic", "if", "the", "accountid", "is", "backed", "by", "a", "public", "key", "of", "an", "unknown", "type", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/account_id.go#L12-L26", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/account_id.go", "func_name": "Equals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equals returns true if `other` is equivalent to `aid`", "docstring_tokens": ["Equals", "returns", "true", "if", "other", "is", "equivalent", "to", "aid"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/account_id.go#L29-L42", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/account_id.go", "func_name": "SetAddress", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAddress modifies the receiver, setting it's value to the AccountId form\n// of the provided address.", "docstring_tokens": ["SetAddress", "modifies", "the", "receiver", "setting", "it", "s", "value", "to", "the", "AccountId", "form", "of", "the", "provided", "address", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/account_id.go#L56-L76", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/main.go", "func_name": "ToXdrObject", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToXdrObject creates xdr.Asset object from build.Asset object", "docstring_tokens": ["ToXdrObject", "creates", "xdr", ".", "Asset", "object", "from", "build", ".", "Asset", "object"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/main.go#L52-L80", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/main.go", "func_name": "Through", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Through appends a new asset to the path", "docstring_tokens": ["Through", "appends", "a", "new", "asset", "to", "the", "path"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/main.go#L182-L185", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/main.go", "func_name": "PayWith", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PayWith is a helper to create PayWithPath struct", "docstring_tokens": ["PayWith", "is", "a", "helper", "to", "create", "PayWithPath", "struct"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/main.go#L188-L193", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "price/main.go", "func_name": "continuedFraction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// continuedFraction calculates and returns the best rational approximation of the given real number.", "docstring_tokens": ["continuedFraction", "calculates", "and", "returns", "the", "best", "rational", "approximation", "of", "the", "given", "real", "number", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/price/main.go#L18-L77", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction_envelope.go", "func_name": "Mutate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Mutate applies the provided TransactionEnvelopeMutators to this builder's\n// envelope", "docstring_tokens": ["Mutate", "applies", "the", "provided", "TransactionEnvelopeMutators", "to", "this", "builder", "s", "envelope"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction_envelope.go#L38-L48", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction_envelope.go", "func_name": "MutateTX", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTX runs Mutate on the underlying transaction using the provided\n// mutators.", "docstring_tokens": ["MutateTX", "runs", "Mutate", "on", "the", "underlying", "transaction", "using", "the", "provided", "mutators", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction_envelope.go#L52-L61", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction_envelope.go", "func_name": "Bytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Bytes encodes the builder's underlying envelope to XDR", "docstring_tokens": ["Bytes", "encodes", "the", "builder", "s", "underlying", "envelope", "to", "XDR"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction_envelope.go#L64-L76", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction_envelope.go", "func_name": "Base64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Base64 returns a string which is the xdr-then-base64-encoded form\n// of the builder's underlying transaction envelope", "docstring_tokens": ["Base64", "returns", "a", "string", "which", "is", "the", "xdr", "-", "then", "-", "base64", "-", "encoded", "form", "of", "the", "builder", "s", "underlying", "transaction", "envelope"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction_envelope.go#L80-L83", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/transaction_envelope.go", "func_name": "MutateTransactionEnvelope", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateTransactionEnvelope for TransactionBuilder causes the underylying\n// transaction to be set as the provided envelope's Tx field", "docstring_tokens": ["MutateTransactionEnvelope", "for", "TransactionBuilder", "causes", "the", "underylying", "transaction", "to", "be", "set", "as", "the", "provided", "envelope", "s", "Tx", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/transaction_envelope.go#L115-L125", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/set_options.go", "func_name": "MutateSetOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateSetOptions for HomeDomain sets the SetOptionsOp's HomeDomain field", "docstring_tokens": ["MutateSetOptions", "for", "HomeDomain", "sets", "the", "SetOptionsOp", "s", "HomeDomain", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/set_options.go#L50-L58", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/set_options.go", "func_name": "MutateSetOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateSetOptions for InflationDest sets the SetOptionsOp's InflationDest field", "docstring_tokens": ["MutateSetOptions", "for", "InflationDest", "sets", "the", "SetOptionsOp", "s", "InflationDest", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/set_options.go#L66-L70", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/set_options.go", "func_name": "MutateSetOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateSetOptions for MasterWeight sets the SetOptionsOp's MasterWeight field", "docstring_tokens": ["MutateSetOptions", "for", "MasterWeight", "sets", "the", "SetOptionsOp", "s", "MasterWeight", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/set_options.go#L78-L82", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/set_options.go", "func_name": "MutateSetOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateSetOptions for Signer sets the SetOptionsOp's signer field", "docstring_tokens": ["MutateSetOptions", "for", "Signer", "sets", "the", "SetOptionsOp", "s", "signer", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/set_options.go#L100-L106", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/set_options.go", "func_name": "SetThresholds", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetThresholds creates Thresholds mutator", "docstring_tokens": ["SetThresholds", "creates", "Thresholds", "mutator"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/set_options.go#L114-L120", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/set_options.go", "func_name": "MutateSetOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateSetOptions for Thresholds sets the SetOptionsOp's thresholds fields", "docstring_tokens": ["MutateSetOptions", "for", "Thresholds", "sets", "the", "SetOptionsOp", "s", "thresholds", "fields"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/set_options.go#L138-L155", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/set_options.go", "func_name": "MutateSetOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateSetOptions for SetFlag sets the SetOptionsOp's SetFlags field", "docstring_tokens": ["MutateSetOptions", "for", "SetFlag", "sets", "the", "SetOptionsOp", "s", "SetFlags", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/set_options.go#L178-L191", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/set_options.go", "func_name": "MutateSetOptions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateSetOptions for ClearFlag sets the SetOptionsOp's ClearFlags field", "docstring_tokens": ["MutateSetOptions", "for", "ClearFlag", "sets", "the", "SetOptionsOp", "s", "ClearFlags", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/set_options.go#L214-L227", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/create_account.go", "func_name": "MutateCreateAccount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateCreateAccount for Destination sets the CreateAccountOp's Destination\n// field", "docstring_tokens": ["MutateCreateAccount", "for", "Destination", "sets", "the", "CreateAccountOp", "s", "Destination", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/create_account.go#L53-L55", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/create_account.go", "func_name": "MutateCreateAccount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateCreateAccount for NativeAmount sets the CreateAccountOp's\n// StartingBalance field", "docstring_tokens": ["MutateCreateAccount", "for", "NativeAmount", "sets", "the", "CreateAccountOp", "s", "StartingBalance", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/create_account.go#L59-L62", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "keypair/main.go", "func_name": "Random", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Random creates a random full keypair", "docstring_tokens": ["Random", "creates", "a", "random", "full", "keypair"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/keypair/main.go#L44-L59", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "keypair/main.go", "func_name": "Master", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Master returns the master keypair for a given network passphrase", "docstring_tokens": ["Master", "returns", "the", "master", "keypair", "for", "a", "given", "network", "passphrase"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/keypair/main.go#L62-L70", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "keypair/main.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse constructs a new KP from the provided string, which should be either\n// an address, or a seed. If the provided input is a seed, the resulting KP\n// will have signing capabilities.", "docstring_tokens": ["Parse", "constructs", "a", "new", "KP", "from", "the", "provided", "string", "which", "should", "be", "either", "an", "address", "or", "a", "seed", ".", "If", "the", "provided", "input", "is", "a", "seed", "the", "resulting", "KP", "will", "have", "signing", "capabilities", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/keypair/main.go#L75-L91", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "keypair/main.go", "func_name": "MustParse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustParse is the panic-on-fail version of Parse", "docstring_tokens": ["MustParse", "is", "the", "panic", "-", "on", "-", "fail", "version", "of", "Parse"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/keypair/main.go#L104-L111", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/allow_trust.go", "func_name": "MutateAllowTrust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateAllowTrust for Authorize sets the AllowTrustOp's Authorize field", "docstring_tokens": ["MutateAllowTrust", "for", "Authorize", "sets", "the", "AllowTrustOp", "s", "Authorize", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/allow_trust.go#L50-L53", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/allow_trust.go", "func_name": "MutateAllowTrust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateAllowTrust for Asset sets the AllowTrustOp's Asset field", "docstring_tokens": ["MutateAllowTrust", "for", "Asset", "sets", "the", "AllowTrustOp", "s", "Asset", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/allow_trust.go#L56-L75", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "build/allow_trust.go", "func_name": "MutateAllowTrust", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MutateAllowTrust for Trustor sets the AllowTrustOp's Trustor field", "docstring_tokens": ["MutateAllowTrust", "for", "Trustor", "sets", "the", "AllowTrustOp", "s", "Trustor", "field"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/build/allow_trust.go#L78-L80", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/allow_trust_op_asset.go", "func_name": "ToAsset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToAsset converts `a` to a proper xdr.Asset", "docstring_tokens": ["ToAsset", "converts", "a", "to", "a", "proper", "xdr", ".", "Asset"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/allow_trust_op_asset.go#L8-L31", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/asset.go", "func_name": "SetNative", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetNative overwrites `a` with the native asset type", "docstring_tokens": ["SetNative", "overwrites", "a", "with", "the", "native", "asset", "type"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/asset.go#L45-L52", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/asset.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String returns a display friendly form of the asset", "docstring_tokens": ["String", "returns", "a", "display", "friendly", "form", "of", "the", "asset"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/asset.go#L55-L65", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/asset.go", "func_name": "Equals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equals returns true if `other` is equivalent to `a`", "docstring_tokens": ["Equals", "returns", "true", "if", "other", "is", "equivalent", "to", "a"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/asset.go#L68-L86", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/asset.go", "func_name": "MustExtract", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustExtract behaves as Extract, but panics if an error occurs.", "docstring_tokens": ["MustExtract", "behaves", "as", "Extract", "but", "panics", "if", "an", "error", "occurs", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/asset.go#L148-L154", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "Unmarshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unmarshal reads an xdr element from `r` into `v`.", "docstring_tokens": ["Unmarshal", "reads", "an", "xdr", "element", "from", "r", "into", "v", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L21-L24", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "Marshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Marshal writes an xdr element `v` into `w`.", "docstring_tokens": ["Marshal", "writes", "an", "xdr", "element", "v", "into", "w", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L27-L30", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for CryptoKeyType", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "CryptoKeyType"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L87-L90", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewPublicKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPublicKey creates a new PublicKey.", "docstring_tokens": ["NewPublicKey", "creates", "a", "new", "PublicKey", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L128-L140", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustEd25519", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustEd25519 retrieves the Ed25519 value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustEd25519", "retrieves", "the", "Ed25519", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L144-L152", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewNodeId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewNodeId creates a new NodeId.", "docstring_tokens": ["NewNodeId", "creates", "a", "new", "NodeId", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L198-L202", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewAccountId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAccountId creates a new AccountId.", "docstring_tokens": ["NewAccountId", "creates", "a", "new", "AccountId", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L279-L283", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for AssetType", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "AssetType"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L362-L365", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of Asset", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "Asset"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L437-L447", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewAsset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAsset creates a new Asset.", "docstring_tokens": ["NewAsset", "creates", "a", "new", "Asset", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L450-L471", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustAlphaNum4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustAlphaNum4 retrieves the AlphaNum4 value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustAlphaNum4", "retrieves", "the", "AlphaNum4", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L475-L483", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetAlphaNum4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAlphaNum4 retrieves the AlphaNum4 value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetAlphaNum4", "retrieves", "the", "AlphaNum4", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L487-L496", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustAlphaNum12", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustAlphaNum12 retrieves the AlphaNum12 value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustAlphaNum12", "retrieves", "the", "AlphaNum12", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L500-L508", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetAlphaNum12", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAlphaNum12 retrieves the AlphaNum12 value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetAlphaNum12", "retrieves", "the", "AlphaNum12", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L512-L521", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for ThresholdIndexes", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "ThresholdIndexes"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L564-L567", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for LedgerEntryType", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "LedgerEntryType"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L603-L606", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for AccountFlags", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "AccountFlags"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L659-L662", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewAccountEntryExt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAccountEntryExt creates a new AccountEntryExt.", "docstring_tokens": ["NewAccountEntryExt", "creates", "a", "new", "AccountEntryExt", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L699-L706", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for TrustLineFlags", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "TrustLineFlags"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L770-L773", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewTrustLineEntryExt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTrustLineEntryExt creates a new TrustLineEntryExt.", "docstring_tokens": ["NewTrustLineEntryExt", "creates", "a", "new", "TrustLineEntryExt", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L810-L817", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for OfferEntryFlags", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "OfferEntryFlags"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L869-L872", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewOfferEntryExt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOfferEntryExt creates a new OfferEntryExt.", "docstring_tokens": ["NewOfferEntryExt", "creates", "a", "new", "OfferEntryExt", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L909-L916", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewDataEntryExt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDataEntryExt creates a new DataEntryExt.", "docstring_tokens": ["NewDataEntryExt", "creates", "a", "new", "DataEntryExt", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L985-L992", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewLedgerEntryData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLedgerEntryData creates a new LedgerEntryData.", "docstring_tokens": ["NewLedgerEntryData", "creates", "a", "new", "LedgerEntryData", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1063-L1096", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewLedgerEntryExt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLedgerEntryExt creates a new LedgerEntryExt.", "docstring_tokens": ["NewLedgerEntryExt", "creates", "a", "new", "LedgerEntryExt", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1227-L1234", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for EnvelopeType", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "EnvelopeType"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1295-L1298", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for OperationType", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "OperationType"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1368-L1371", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of AllowTrustOpAsset", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "AllowTrustOpAsset"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1547-L1555", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewAllowTrustOpAsset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAllowTrustOpAsset creates a new AllowTrustOpAsset.", "docstring_tokens": ["NewAllowTrustOpAsset", "creates", "a", "new", "AllowTrustOpAsset", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1558-L1577", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustAssetCode4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustAssetCode4 retrieves the AssetCode4 value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustAssetCode4", "retrieves", "the", "AssetCode4", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1581-L1589", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetAssetCode4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAssetCode4 retrieves the AssetCode4 value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetAssetCode4", "retrieves", "the", "AssetCode4", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1593-L1602", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustAssetCode12", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustAssetCode12 retrieves the AssetCode12 value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustAssetCode12", "retrieves", "the", "AssetCode12", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1606-L1614", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetAssetCode12", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAssetCode12 retrieves the AssetCode12 value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetAssetCode12", "retrieves", "the", "AssetCode12", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1618-L1627", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewOperationBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOperationBody creates a new OperationBody.", "docstring_tokens": ["NewOperationBody", "creates", "a", "new", "OperationBody", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1748-L1825", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustCreateAccountOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustCreateAccountOp retrieves the CreateAccountOp value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustCreateAccountOp", "retrieves", "the", "CreateAccountOp", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1829-L1837", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetCreateAccountOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCreateAccountOp retrieves the CreateAccountOp value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetCreateAccountOp", "retrieves", "the", "CreateAccountOp", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1841-L1850", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustPaymentOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustPaymentOp retrieves the PaymentOp value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustPaymentOp", "retrieves", "the", "PaymentOp", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1854-L1862", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetPaymentOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPaymentOp retrieves the PaymentOp value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetPaymentOp", "retrieves", "the", "PaymentOp", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1866-L1875", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustPathPaymentOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustPathPaymentOp retrieves the PathPaymentOp value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustPathPaymentOp", "retrieves", "the", "PathPaymentOp", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1879-L1887", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetPathPaymentOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPathPaymentOp retrieves the PathPaymentOp value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetPathPaymentOp", "retrieves", "the", "PathPaymentOp", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1891-L1900", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustManageOfferOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustManageOfferOp retrieves the ManageOfferOp value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustManageOfferOp", "retrieves", "the", "ManageOfferOp", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1904-L1912", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetManageOfferOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetManageOfferOp retrieves the ManageOfferOp value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetManageOfferOp", "retrieves", "the", "ManageOfferOp", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1916-L1925", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustCreatePassiveOfferOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustCreatePassiveOfferOp retrieves the CreatePassiveOfferOp value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustCreatePassiveOfferOp", "retrieves", "the", "CreatePassiveOfferOp", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1929-L1937", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetCreatePassiveOfferOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCreatePassiveOfferOp retrieves the CreatePassiveOfferOp value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetCreatePassiveOfferOp", "retrieves", "the", "CreatePassiveOfferOp", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1941-L1950", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustSetOptionsOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustSetOptionsOp retrieves the SetOptionsOp value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustSetOptionsOp", "retrieves", "the", "SetOptionsOp", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1954-L1962", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetSetOptionsOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSetOptionsOp retrieves the SetOptionsOp value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetSetOptionsOp", "retrieves", "the", "SetOptionsOp", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1966-L1975", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustChangeTrustOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustChangeTrustOp retrieves the ChangeTrustOp value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustChangeTrustOp", "retrieves", "the", "ChangeTrustOp", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1979-L1987", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetChangeTrustOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetChangeTrustOp retrieves the ChangeTrustOp value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetChangeTrustOp", "retrieves", "the", "ChangeTrustOp", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L1991-L2000", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustAllowTrustOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustAllowTrustOp retrieves the AllowTrustOp value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustAllowTrustOp", "retrieves", "the", "AllowTrustOp", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2004-L2012", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetAllowTrustOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAllowTrustOp retrieves the AllowTrustOp value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetAllowTrustOp", "retrieves", "the", "AllowTrustOp", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2016-L2025", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustDestination", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustDestination retrieves the Destination value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustDestination", "retrieves", "the", "Destination", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2029-L2037", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetDestination", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDestination retrieves the Destination value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetDestination", "retrieves", "the", "Destination", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2041-L2050", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustManageDataOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustManageDataOp retrieves the ManageDataOp value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustManageDataOp", "retrieves", "the", "ManageDataOp", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2054-L2062", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetManageDataOp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetManageDataOp retrieves the ManageDataOp value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetManageDataOp", "retrieves", "the", "ManageDataOp", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2066-L2075", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for MemoType", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "MemoType"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2150-L2153", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of Memo", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "Memo"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2193-L2207", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewMemo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewMemo creates a new Memo.", "docstring_tokens": ["NewMemo", "creates", "a", "new", "Memo", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2210-L2245", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustText retrieves the Text value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustText", "retrieves", "the", "Text", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2249-L2257", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetText retrieves the Text value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetText", "retrieves", "the", "Text", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2261-L2270", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustId retrieves the Id value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustId", "retrieves", "the", "Id", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2274-L2282", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetId retrieves the Id value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetId", "retrieves", "the", "Id", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2286-L2295", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustHash retrieves the Hash value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustHash", "retrieves", "the", "Hash", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2299-L2307", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHash retrieves the Hash value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetHash", "retrieves", "the", "Hash", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2311-L2320", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustRetHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustRetHash retrieves the RetHash value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustRetHash", "retrieves", "the", "RetHash", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2324-L2332", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewTransactionExt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTransactionExt creates a new TransactionExt.", "docstring_tokens": ["NewTransactionExt", "creates", "a", "new", "TransactionExt", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2389-L2396", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for CreateAccountResultCode", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "CreateAccountResultCode"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2511-L2514", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of CreateAccountResult", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "CreateAccountResult"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2544-L2551", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewCreateAccountResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewCreateAccountResult creates a new CreateAccountResult.", "docstring_tokens": ["NewCreateAccountResult", "creates", "a", "new", "CreateAccountResult", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2554-L2563", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for PaymentResultCode", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "PaymentResultCode"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2614-L2617", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of PaymentResult", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "PaymentResult"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2647-L2654", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewPaymentResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPaymentResult creates a new PaymentResult.", "docstring_tokens": ["NewPaymentResult", "creates", "a", "new", "PaymentResult", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2657-L2666", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for PathPaymentResultCode", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "PathPaymentResultCode"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2726-L2729", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of PathPaymentResult", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "PathPaymentResult"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2795-L2804", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewPathPaymentResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPathPaymentResult creates a new PathPaymentResult.", "docstring_tokens": ["NewPathPaymentResult", "creates", "a", "new", "PathPaymentResult", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2807-L2828", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustNoIssuer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustNoIssuer retrieves the NoIssuer value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustNoIssuer", "retrieves", "the", "NoIssuer", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2857-L2865", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetNoIssuer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNoIssuer retrieves the NoIssuer value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetNoIssuer", "retrieves", "the", "NoIssuer", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2869-L2878", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for ManageOfferResultCode", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "ManageOfferResultCode"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2941-L2944", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for ManageOfferEffect", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "ManageOfferEffect"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L2977-L2980", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of ManageOfferSuccessResultOffer", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "ManageOfferSuccessResultOffer"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3012-L3021", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewManageOfferSuccessResultOffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewManageOfferSuccessResultOffer creates a new ManageOfferSuccessResultOffer.", "docstring_tokens": ["NewManageOfferSuccessResultOffer", "creates", "a", "new", "ManageOfferSuccessResultOffer", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3024-L3045", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of ManageOfferResult", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "ManageOfferResult"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3118-L3125", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewManageOfferResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewManageOfferResult creates a new ManageOfferResult.", "docstring_tokens": ["NewManageOfferResult", "creates", "a", "new", "ManageOfferResult", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3128-L3142", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for SetOptionsResultCode", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "SetOptionsResultCode"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3217-L3220", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of SetOptionsResult", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "SetOptionsResult"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3250-L3257", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewSetOptionsResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSetOptionsResult creates a new SetOptionsResult.", "docstring_tokens": ["NewSetOptionsResult", "creates", "a", "new", "SetOptionsResult", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3260-L3269", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for ChangeTrustResultCode", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "ChangeTrustResultCode"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3305-L3308", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of ChangeTrustResult", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "ChangeTrustResult"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3338-L3345", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewChangeTrustResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewChangeTrustResult creates a new ChangeTrustResult.", "docstring_tokens": ["NewChangeTrustResult", "creates", "a", "new", "ChangeTrustResult", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3348-L3357", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for AllowTrustResultCode", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "AllowTrustResultCode"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3393-L3396", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of AllowTrustResult", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "AllowTrustResult"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3426-L3433", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewAllowTrustResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAllowTrustResult creates a new AllowTrustResult.", "docstring_tokens": ["NewAllowTrustResult", "creates", "a", "new", "AllowTrustResult", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3436-L3445", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for AccountMergeResultCode", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "AccountMergeResultCode"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3480-L3483", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of AccountMergeResult", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "AccountMergeResult"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3514-L3521", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewAccountMergeResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAccountMergeResult creates a new AccountMergeResult.", "docstring_tokens": ["NewAccountMergeResult", "creates", "a", "new", "AccountMergeResult", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3524-L3538", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustSourceAccountBalance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustSourceAccountBalance retrieves the SourceAccountBalance value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustSourceAccountBalance", "retrieves", "the", "SourceAccountBalance", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3542-L3550", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetSourceAccountBalance", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSourceAccountBalance retrieves the SourceAccountBalance value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetSourceAccountBalance", "retrieves", "the", "SourceAccountBalance", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3554-L3563", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for InflationResultCode", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "InflationResultCode"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3589-L3592", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of InflationResult", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "InflationResult"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3636-L3643", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewInflationResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewInflationResult creates a new InflationResult.", "docstring_tokens": ["NewInflationResult", "creates", "a", "new", "InflationResult", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3646-L3660", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustPayouts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustPayouts retrieves the Payouts value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustPayouts", "retrieves", "the", "Payouts", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3664-L3672", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetPayouts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPayouts retrieves the Payouts value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetPayouts", "retrieves", "the", "Payouts", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3676-L3685", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for ManageDataResultCode", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "ManageDataResultCode"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3720-L3723", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of ManageDataResult", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "ManageDataResult"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3753-L3760", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewManageDataResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewManageDataResult creates a new ManageDataResult.", "docstring_tokens": ["NewManageDataResult", "creates", "a", "new", "ManageDataResult", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3763-L3772", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for OperationResultCode", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "OperationResultCode"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3800-L3803", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of OperationResultTr", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "OperationResultTr"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3862-L3888", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewOperationResultTr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOperationResultTr creates a new OperationResultTr.", "docstring_tokens": ["NewOperationResultTr", "creates", "a", "new", "OperationResultTr", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3891-L3973", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustCreateAccountResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustCreateAccountResult retrieves the CreateAccountResult value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustCreateAccountResult", "retrieves", "the", "CreateAccountResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3977-L3985", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetCreateAccountResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCreateAccountResult retrieves the CreateAccountResult value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetCreateAccountResult", "retrieves", "the", "CreateAccountResult", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L3989-L3998", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustPaymentResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustPaymentResult retrieves the PaymentResult value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustPaymentResult", "retrieves", "the", "PaymentResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4002-L4010", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetPaymentResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPaymentResult retrieves the PaymentResult value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetPaymentResult", "retrieves", "the", "PaymentResult", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4014-L4023", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustPathPaymentResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustPathPaymentResult retrieves the PathPaymentResult value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustPathPaymentResult", "retrieves", "the", "PathPaymentResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4027-L4035", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetPathPaymentResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPathPaymentResult retrieves the PathPaymentResult value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetPathPaymentResult", "retrieves", "the", "PathPaymentResult", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4039-L4048", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustManageOfferResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustManageOfferResult retrieves the ManageOfferResult value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustManageOfferResult", "retrieves", "the", "ManageOfferResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4052-L4060", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetManageOfferResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetManageOfferResult retrieves the ManageOfferResult value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetManageOfferResult", "retrieves", "the", "ManageOfferResult", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4064-L4073", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustCreatePassiveOfferResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustCreatePassiveOfferResult retrieves the CreatePassiveOfferResult value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustCreatePassiveOfferResult", "retrieves", "the", "CreatePassiveOfferResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4077-L4085", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustSetOptionsResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustSetOptionsResult retrieves the SetOptionsResult value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustSetOptionsResult", "retrieves", "the", "SetOptionsResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4102-L4110", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetSetOptionsResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSetOptionsResult retrieves the SetOptionsResult value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetSetOptionsResult", "retrieves", "the", "SetOptionsResult", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4114-L4123", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustChangeTrustResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustChangeTrustResult retrieves the ChangeTrustResult value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustChangeTrustResult", "retrieves", "the", "ChangeTrustResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4127-L4135", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetChangeTrustResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetChangeTrustResult retrieves the ChangeTrustResult value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetChangeTrustResult", "retrieves", "the", "ChangeTrustResult", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4139-L4148", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustAllowTrustResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustAllowTrustResult retrieves the AllowTrustResult value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustAllowTrustResult", "retrieves", "the", "AllowTrustResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4152-L4160", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetAllowTrustResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAllowTrustResult retrieves the AllowTrustResult value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetAllowTrustResult", "retrieves", "the", "AllowTrustResult", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4164-L4173", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustAccountMergeResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustAccountMergeResult retrieves the AccountMergeResult value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustAccountMergeResult", "retrieves", "the", "AccountMergeResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4177-L4185", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetAccountMergeResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAccountMergeResult retrieves the AccountMergeResult value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetAccountMergeResult", "retrieves", "the", "AccountMergeResult", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4189-L4198", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustInflationResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustInflationResult retrieves the InflationResult value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustInflationResult", "retrieves", "the", "InflationResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4202-L4210", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetInflationResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetInflationResult retrieves the InflationResult value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetInflationResult", "retrieves", "the", "InflationResult", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4214-L4223", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustManageDataResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustManageDataResult retrieves the ManageDataResult value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustManageDataResult", "retrieves", "the", "ManageDataResult", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4227-L4235", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetManageDataResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetManageDataResult retrieves the ManageDataResult value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetManageDataResult", "retrieves", "the", "ManageDataResult", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4239-L4248", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of OperationResult", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "OperationResult"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4298-L4305", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewOperationResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewOperationResult creates a new OperationResult.", "docstring_tokens": ["NewOperationResult", "creates", "a", "new", "OperationResult", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4308-L4322", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustTr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustTr retrieves the Tr value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustTr", "retrieves", "the", "Tr", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4326-L4334", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetTr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTr retrieves the Tr value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetTr", "retrieves", "the", "Tr", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4338-L4347", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for TransactionResultCode", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "TransactionResultCode"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4404-L4407", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of TransactionResultResult", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "TransactionResultResult"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4439-L4448", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewTransactionResultResult", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTransactionResultResult creates a new TransactionResultResult.", "docstring_tokens": ["NewTransactionResultResult", "creates", "a", "new", "TransactionResultResult", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4451-L4472", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustResults", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustResults retrieves the Results value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustResults", "retrieves", "the", "Results", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4476-L4484", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetResults", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetResults retrieves the Results value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetResults", "retrieves", "the", "Results", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4488-L4497", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewTransactionResultExt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTransactionResultExt creates a new TransactionResultExt.", "docstring_tokens": ["NewTransactionResultExt", "creates", "a", "new", "TransactionResultExt", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4528-L4535", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewStellarValueExt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStellarValueExt creates a new StellarValueExt.", "docstring_tokens": ["NewStellarValueExt", "creates", "a", "new", "StellarValueExt", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4603-L4610", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewLedgerHeaderExt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLedgerHeaderExt creates a new LedgerHeaderExt.", "docstring_tokens": ["NewLedgerHeaderExt", "creates", "a", "new", "LedgerHeaderExt", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4671-L4678", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for LedgerUpgradeType", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "LedgerUpgradeType"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4763-L4766", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of LedgerUpgrade", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "LedgerUpgrade"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4801-L4811", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewLedgerUpgrade", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLedgerUpgrade creates a new LedgerUpgrade.", "docstring_tokens": ["NewLedgerUpgrade", "creates", "a", "new", "LedgerUpgrade", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4814-L4840", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustNewLedgerVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustNewLedgerVersion retrieves the NewLedgerVersion value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustNewLedgerVersion", "retrieves", "the", "NewLedgerVersion", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4844-L4852", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetNewLedgerVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNewLedgerVersion retrieves the NewLedgerVersion value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetNewLedgerVersion", "retrieves", "the", "NewLedgerVersion", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4856-L4865", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustNewBaseFee", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustNewBaseFee retrieves the NewBaseFee value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustNewBaseFee", "retrieves", "the", "NewBaseFee", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4869-L4877", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetNewBaseFee", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNewBaseFee retrieves the NewBaseFee value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetNewBaseFee", "retrieves", "the", "NewBaseFee", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4881-L4890", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustNewMaxTxSetSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustNewMaxTxSetSize retrieves the NewMaxTxSetSize value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustNewMaxTxSetSize", "retrieves", "the", "NewMaxTxSetSize", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4894-L4902", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetNewMaxTxSetSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNewMaxTxSetSize retrieves the NewMaxTxSetSize value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetNewMaxTxSetSize", "retrieves", "the", "NewMaxTxSetSize", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L4906-L4915", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of LedgerKey", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "LedgerKey"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5015-L5027", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewLedgerKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLedgerKey creates a new LedgerKey.", "docstring_tokens": ["NewLedgerKey", "creates", "a", "new", "LedgerKey", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5030-L5063", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for BucketEntryType", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "BucketEntryType"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5187-L5190", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of BucketEntry", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "BucketEntry"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5223-L5231", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewBucketEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBucketEntry creates a new BucketEntry.", "docstring_tokens": ["NewBucketEntry", "creates", "a", "new", "BucketEntry", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5234-L5253", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustLiveEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustLiveEntry retrieves the LiveEntry value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustLiveEntry", "retrieves", "the", "LiveEntry", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5257-L5265", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetLiveEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLiveEntry retrieves the LiveEntry value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetLiveEntry", "retrieves", "the", "LiveEntry", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5269-L5278", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustDeadEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustDeadEntry retrieves the DeadEntry value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustDeadEntry", "retrieves", "the", "DeadEntry", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5282-L5290", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetDeadEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDeadEntry retrieves the DeadEntry value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetDeadEntry", "retrieves", "the", "DeadEntry", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5294-L5303", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewTransactionHistoryEntryExt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTransactionHistoryEntryExt creates a new TransactionHistoryEntryExt.", "docstring_tokens": ["NewTransactionHistoryEntryExt", "creates", "a", "new", "TransactionHistoryEntryExt", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5377-L5384", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of TransactionHistoryResultEntryExt", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "TransactionHistoryResultEntryExt"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5428-L5434", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewTransactionHistoryResultEntryExt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTransactionHistoryResultEntryExt creates a new TransactionHistoryResultEntryExt.", "docstring_tokens": ["NewTransactionHistoryResultEntryExt", "creates", "a", "new", "TransactionHistoryResultEntryExt", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5437-L5444", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewLedgerHeaderHistoryEntryExt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLedgerHeaderHistoryEntryExt creates a new LedgerHeaderHistoryEntryExt.", "docstring_tokens": ["NewLedgerHeaderHistoryEntryExt", "creates", "a", "new", "LedgerHeaderHistoryEntryExt", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5497-L5504", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewScpHistoryEntry", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewScpHistoryEntry creates a new ScpHistoryEntry.", "docstring_tokens": ["NewScpHistoryEntry", "creates", "a", "new", "ScpHistoryEntry", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5584-L5596", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for LedgerEntryChangeType", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "LedgerEntryChangeType"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5651-L5654", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of LedgerEntryChange", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "LedgerEntryChange"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5692-L5704", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewLedgerEntryChange", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLedgerEntryChange creates a new LedgerEntryChange.", "docstring_tokens": ["NewLedgerEntryChange", "creates", "a", "new", "LedgerEntryChange", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5707-L5740", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustCreated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustCreated retrieves the Created value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustCreated", "retrieves", "the", "Created", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5744-L5752", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetCreated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetCreated retrieves the Created value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetCreated", "retrieves", "the", "Created", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5756-L5765", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustUpdated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustUpdated retrieves the Updated value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustUpdated", "retrieves", "the", "Updated", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5769-L5777", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetUpdated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetUpdated retrieves the Updated value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetUpdated", "retrieves", "the", "Updated", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5781-L5790", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustRemoved", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustRemoved retrieves the Removed value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustRemoved", "retrieves", "the", "Removed", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5794-L5802", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetRemoved", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRemoved retrieves the Removed value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetRemoved", "retrieves", "the", "Removed", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5806-L5815", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustState retrieves the State value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustState", "retrieves", "the", "State", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5819-L5827", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetState", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetState retrieves the State value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetState", "retrieves", "the", "State", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5831-L5840", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewTransactionMeta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTransactionMeta creates a new TransactionMeta.", "docstring_tokens": ["NewTransactionMeta", "creates", "a", "new", "TransactionMeta", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5889-L5901", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustOperations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustOperations retrieves the Operations value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustOperations", "retrieves", "the", "Operations", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5905-L5913", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetOperations", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetOperations retrieves the Operations value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetOperations", "retrieves", "the", "Operations", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5917-L5926", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for ErrorCode", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "ErrorCode"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L5959-L5962", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for IpAddrType", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "IpAddrType"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6060-L6063", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of PeerAddressIp", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "PeerAddressIp"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6095-L6103", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewPeerAddressIp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPeerAddressIp creates a new PeerAddressIp.", "docstring_tokens": ["NewPeerAddressIp", "creates", "a", "new", "PeerAddressIp", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6106-L6125", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustIpv4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustIpv4 retrieves the Ipv4 value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustIpv4", "retrieves", "the", "Ipv4", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6129-L6137", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetIpv4", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIpv4 retrieves the Ipv4 value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetIpv4", "retrieves", "the", "Ipv4", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6141-L6150", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustIpv6", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustIpv6 retrieves the Ipv6 value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustIpv6", "retrieves", "the", "Ipv6", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6154-L6162", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetIpv6", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetIpv6 retrieves the Ipv6 value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetIpv6", "retrieves", "the", "Ipv6", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6166-L6175", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for MessageType", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "MessageType"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6261-L6264", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of StellarMessage", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "StellarMessage"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6345-L6375", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewStellarMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewStellarMessage creates a new StellarMessage.", "docstring_tokens": ["NewStellarMessage", "creates", "a", "new", "StellarMessage", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6378-L6469", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustError retrieves the Error value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustError", "retrieves", "the", "Error", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6473-L6481", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetError", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetError retrieves the Error value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetError", "retrieves", "the", "Error", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6485-L6494", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustHello", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustHello retrieves the Hello value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustHello", "retrieves", "the", "Hello", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6498-L6506", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetHello", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetHello retrieves the Hello value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetHello", "retrieves", "the", "Hello", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6510-L6519", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustAuth retrieves the Auth value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustAuth", "retrieves", "the", "Auth", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6523-L6531", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetAuth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetAuth retrieves the Auth value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetAuth", "retrieves", "the", "Auth", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6535-L6544", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustDontHave", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustDontHave retrieves the DontHave value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustDontHave", "retrieves", "the", "DontHave", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6548-L6556", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetDontHave", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDontHave retrieves the DontHave value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetDontHave", "retrieves", "the", "DontHave", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6560-L6569", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustPeers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustPeers retrieves the Peers value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustPeers", "retrieves", "the", "Peers", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6573-L6581", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetPeers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPeers retrieves the Peers value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetPeers", "retrieves", "the", "Peers", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6585-L6594", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustTxSetHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustTxSetHash retrieves the TxSetHash value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustTxSetHash", "retrieves", "the", "TxSetHash", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6598-L6606", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetTxSetHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTxSetHash retrieves the TxSetHash value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetTxSetHash", "retrieves", "the", "TxSetHash", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6610-L6619", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustTxSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustTxSet retrieves the TxSet value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustTxSet", "retrieves", "the", "TxSet", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6623-L6631", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetTxSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTxSet retrieves the TxSet value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetTxSet", "retrieves", "the", "TxSet", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6635-L6644", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustTransaction retrieves the Transaction value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustTransaction", "retrieves", "the", "Transaction", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6648-L6656", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetTransaction retrieves the Transaction value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetTransaction", "retrieves", "the", "Transaction", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6660-L6669", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustQSetHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustQSetHash retrieves the QSetHash value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustQSetHash", "retrieves", "the", "QSetHash", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6673-L6681", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetQSetHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetQSetHash retrieves the QSetHash value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetQSetHash", "retrieves", "the", "QSetHash", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6685-L6694", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustQSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustQSet retrieves the QSet value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustQSet", "retrieves", "the", "QSet", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6698-L6706", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetQSet", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetQSet retrieves the QSet value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetQSet", "retrieves", "the", "QSet", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6710-L6719", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustEnvelope", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustEnvelope retrieves the Envelope value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustEnvelope", "retrieves", "the", "Envelope", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6723-L6731", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetEnvelope", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetEnvelope retrieves the Envelope value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetEnvelope", "retrieves", "the", "Envelope", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6735-L6744", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustGetScpLedgerSeq", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustGetScpLedgerSeq retrieves the GetScpLedgerSeq value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustGetScpLedgerSeq", "retrieves", "the", "GetScpLedgerSeq", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6748-L6756", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetGetScpLedgerSeq", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetGetScpLedgerSeq retrieves the GetScpLedgerSeq value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetGetScpLedgerSeq", "retrieves", "the", "GetScpLedgerSeq", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6760-L6769", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of AuthenticatedMessage", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "AuthenticatedMessage"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6812-L6818", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewAuthenticatedMessage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewAuthenticatedMessage creates a new AuthenticatedMessage.", "docstring_tokens": ["NewAuthenticatedMessage", "creates", "a", "new", "AuthenticatedMessage", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6821-L6833", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ValidEnum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ValidEnum validates a proposed value for this enum. Implements\n// the Enum interface for ScpStatementType", "docstring_tokens": ["ValidEnum", "validates", "a", "proposed", "value", "for", "this", "enum", ".", "Implements", "the", "Enum", "interface", "for", "ScpStatementType"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L6907-L6910", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "ArmForSwitch", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ArmForSwitch returns which field name should be used for storing\n// the value for an instance of ScpStatementPledges", "docstring_tokens": ["ArmForSwitch", "returns", "which", "field", "name", "should", "be", "used", "for", "storing", "the", "value", "for", "an", "instance", "of", "ScpStatementPledges"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L7038-L7050", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "NewScpStatementPledges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewScpStatementPledges creates a new ScpStatementPledges.", "docstring_tokens": ["NewScpStatementPledges", "creates", "a", "new", "ScpStatementPledges", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L7053-L7086", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustPrepare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustPrepare retrieves the Prepare value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustPrepare", "retrieves", "the", "Prepare", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L7090-L7098", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetPrepare", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetPrepare retrieves the Prepare value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetPrepare", "retrieves", "the", "Prepare", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L7102-L7111", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustConfirm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustConfirm retrieves the Confirm value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustConfirm", "retrieves", "the", "Confirm", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L7115-L7123", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetConfirm", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetConfirm retrieves the Confirm value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetConfirm", "retrieves", "the", "Confirm", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L7127-L7136", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustExternalize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustExternalize retrieves the Externalize value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustExternalize", "retrieves", "the", "Externalize", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L7140-L7148", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetExternalize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetExternalize retrieves the Externalize value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetExternalize", "retrieves", "the", "Externalize", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L7152-L7161", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "MustNominate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MustNominate retrieves the Nominate value from the union,\n// panicing if the value is not set.", "docstring_tokens": ["MustNominate", "retrieves", "the", "Nominate", "value", "from", "the", "union", "panicing", "if", "the", "value", "is", "not", "set", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L7165-L7173", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/xdr_generated.go", "func_name": "GetNominate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNominate retrieves the Nominate value from the union,\n// returning ok if the union's switch indicated the value is valid.", "docstring_tokens": ["GetNominate", "retrieves", "the", "Nominate", "value", "from", "the", "union", "returning", "ok", "if", "the", "union", "s", "switch", "indicated", "the", "value", "is", "valid", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/xdr_generated.go#L7177-L7186", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/main.go", "func_name": "SafeUnmarshalBase64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SafeUnmarshalBase64 first decodes the provided reader from base64 before decoding the xdr\n// into the provided destination. Also ensures that the reader is fully consumed.", "docstring_tokens": ["SafeUnmarshalBase64", "first", "decodes", "the", "provided", "reader", "from", "base64", "before", "decoding", "the", "xdr", "into", "the", "provided", "destination", ".", "Also", "ensures", "that", "the", "reader", "is", "fully", "consumed", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/main.go#L23-L40", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/main.go", "func_name": "SafeUnmarshal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SafeUnmarshal decodes the provided reader into the destination and verifies\n// that provided bytes are all consumed by the unmarshalling process.", "docstring_tokens": ["SafeUnmarshal", "decodes", "the", "provided", "reader", "into", "the", "destination", "and", "verifies", "that", "provided", "bytes", "are", "all", "consumed", "by", "the", "unmarshalling", "process", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/main.go#L44-L57", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/path_payment_result.go", "func_name": "SendAmount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendAmount returns the amount spent, denominated in the source asset, in the\n// course of this path payment", "docstring_tokens": ["SendAmount", "returns", "the", "amount", "spent", "denominated", "in", "the", "source", "asset", "in", "the", "course", "of", "this", "path", "payment"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/path_payment_result.go#L5-L26", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "horizon/main.go", "func_name": "LoadAccount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadAccount loads the account state from horizon. err can be either error\n// object or horizon.Error object.", "docstring_tokens": ["LoadAccount", "loads", "the", "account", "state", "from", "horizon", ".", "err", "can", "be", "either", "error", "object", "or", "horizon", ".", "Error", "object", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/horizon/main.go#L48-L57", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "horizon/main.go", "func_name": "SequenceForAccount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SequenceForAccount implements build.SequenceProvider", "docstring_tokens": ["SequenceForAccount", "implements", "build", ".", "SequenceProvider"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/horizon/main.go#L60-L75", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "horizon/main.go", "func_name": "SubmitTransaction", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SubmitTransaction submits a transaction to the network. err can be either error object or horizon.Error object.", "docstring_tokens": ["SubmitTransaction", "submits", "a", "transaction", "to", "the", "network", ".", "err", "can", "be", "either", "error", "object", "or", "horizon", ".", "Error", "object", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/horizon/main.go#L78-L90", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/ledger_key.go", "func_name": "Equals", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equals returns true if `other` is equivalent to `key`", "docstring_tokens": ["Equals", "returns", "true", "if", "other", "is", "equivalent", "to", "key"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/ledger_key.go#L11-L36", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/ledger_key.go", "func_name": "SetAccount", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetAccount mutates `key` such that it represents the identity of `account`", "docstring_tokens": ["SetAccount", "mutates", "key", "such", "that", "it", "represents", "the", "identity", "of", "account"], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/ledger_key.go#L39-L48", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/ledger_key.go", "func_name": "SetData", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetData mutates `key` such that it represents the identity of the\n// data entry owned by `account` and for `name`.", "docstring_tokens": ["SetData", "mutates", "key", "such", "that", "it", "represents", "the", "identity", "of", "the", "data", "entry", "owned", "by", "account", "and", "for", "name", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/ledger_key.go#L52-L61", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/ledger_key.go", "func_name": "SetOffer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetOffer mutates `key` such that it represents the identity of the\n// data entry owned by `account` and for offer `id`.", "docstring_tokens": ["SetOffer", "mutates", "key", "such", "that", "it", "represents", "the", "identity", "of", "the", "data", "entry", "owned", "by", "account", "and", "for", "offer", "id", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/ledger_key.go#L65-L74", "partition": "test"} +{"repo": "stellar/go-stellar-base", "path": "xdr/ledger_key.go", "func_name": "SetTrustline", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTrustline mutates `key` such that it represents the identity of the\n// trustline owned by `account` and for `asset`.", "docstring_tokens": ["SetTrustline", "mutates", "key", "such", "that", "it", "represents", "the", "identity", "of", "the", "trustline", "owned", "by", "account", "and", "for", "asset", "."], "sha": "79c570612c0b461db178aa8949d9f13cafc2a7c9", "url": "https://github.com/stellar/go-stellar-base/blob/79c570612c0b461db178aa8949d9f13cafc2a7c9/xdr/ledger_key.go#L78-L87", "partition": "test"} +{"repo": "alecthomas/mph", "path": "chd_builder.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add a key and value to the hash table.", "docstring_tokens": ["Add", "a", "key", "and", "value", "to", "the", "hash", "table", "."], "sha": "cf7b0cd2d9579868ec2a49493fd62b2e28bcb336", "url": "https://github.com/alecthomas/mph/blob/cf7b0cd2d9579868ec2a49493fd62b2e28bcb336/chd_builder.go#L51-L54", "partition": "test"} +{"repo": "alecthomas/mph", "path": "chd_builder.go", "func_name": "tryHash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Try to find a hash function that does not cause collisions with table, when\n// applied to the keys in the bucket.", "docstring_tokens": ["Try", "to", "find", "a", "hash", "function", "that", "does", "not", "cause", "collisions", "with", "table", "when", "applied", "to", "the", "keys", "in", "the", "bucket", "."], "sha": "cf7b0cd2d9579868ec2a49493fd62b2e28bcb336", "url": "https://github.com/alecthomas/mph/blob/cf7b0cd2d9579868ec2a49493fd62b2e28bcb336/chd_builder.go#L58-L89", "partition": "test"} +{"repo": "alecthomas/mph", "path": "chd_builder.go", "func_name": "HashIndexFromKey", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Hash index from key.", "docstring_tokens": ["Hash", "index", "from", "key", "."], "sha": "cf7b0cd2d9579868ec2a49493fd62b2e28bcb336", "url": "https://github.com/alecthomas/mph/blob/cf7b0cd2d9579868ec2a49493fd62b2e28bcb336/chd_builder.go#L187-L189", "partition": "test"} +{"repo": "alecthomas/mph", "path": "slicereader_fast.go", "func_name": "ReadInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Despite returning a uint64, this actually reads a uint32. All table indices\n// and lengths are stored as uint32 values.", "docstring_tokens": ["Despite", "returning", "a", "uint64", "this", "actually", "reads", "a", "uint32", ".", "All", "table", "indices", "and", "lengths", "are", "stored", "as", "uint32", "values", "."], "sha": "cf7b0cd2d9579868ec2a49493fd62b2e28bcb336", "url": "https://github.com/alecthomas/mph/blob/cf7b0cd2d9579868ec2a49493fd62b2e28bcb336/slicereader_fast.go#L37-L39", "partition": "test"} +{"repo": "alecthomas/mph", "path": "chd.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read a serialized CHD.", "docstring_tokens": ["Read", "a", "serialized", "CHD", "."], "sha": "cf7b0cd2d9579868ec2a49493fd62b2e28bcb336", "url": "https://github.com/alecthomas/mph/blob/cf7b0cd2d9579868ec2a49493fd62b2e28bcb336/chd.go#L61-L67", "partition": "test"} +{"repo": "alecthomas/mph", "path": "chd.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get an entry from the hash table.", "docstring_tokens": ["Get", "an", "entry", "from", "the", "hash", "table", "."], "sha": "cf7b0cd2d9579868ec2a49493fd62b2e28bcb336", "url": "https://github.com/alecthomas/mph/blob/cf7b0cd2d9579868ec2a49493fd62b2e28bcb336/chd.go#L99-L117", "partition": "test"} +{"repo": "alecthomas/mph", "path": "chd.go", "func_name": "Iterate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Iterate over entries in the hash table.", "docstring_tokens": ["Iterate", "over", "entries", "in", "the", "hash", "table", "."], "sha": "cf7b0cd2d9579868ec2a49493fd62b2e28bcb336", "url": "https://github.com/alecthomas/mph/blob/cf7b0cd2d9579868ec2a49493fd62b2e28bcb336/chd.go#L124-L129", "partition": "test"} +{"repo": "alecthomas/mph", "path": "chd.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Serialize the CHD. The serialized form is conducive to mmapped access. See\n// the Mmap function for details.", "docstring_tokens": ["Serialize", "the", "CHD", ".", "The", "serialized", "form", "is", "conducive", "to", "mmapped", "access", ".", "See", "the", "Mmap", "function", "for", "details", "."], "sha": "cf7b0cd2d9579868ec2a49493fd62b2e28bcb336", "url": "https://github.com/alecthomas/mph/blob/cf7b0cd2d9579868ec2a49493fd62b2e28bcb336/chd.go#L133-L166", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "RegisterDatasources", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterDatasources adds path to the Mapnik plugin search path.", "docstring_tokens": ["RegisterDatasources", "adds", "path", "to", "the", "Mapnik", "plugin", "search", "path", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L40-L51", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "RegisterFonts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RegisterDatasources adds path to the Mapnik fonts search path.", "docstring_tokens": ["RegisterDatasources", "adds", "path", "to", "the", "Mapnik", "fonts", "search", "path", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L54-L65", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New initializes a new Map.", "docstring_tokens": ["New", "initializes", "a", "new", "Map", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L99-L105", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "NewSized", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSized initializes a new Map with the given size.", "docstring_tokens": ["NewSized", "initializes", "a", "new", "Map", "with", "the", "given", "size", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L108-L114", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "Load", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Load reads in a Mapnik map XML.", "docstring_tokens": ["Load", "reads", "in", "a", "Mapnik", "map", "XML", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L121-L128", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "Resize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Resize changes the map size in pixel.\n// Sizes larger than 16k pixels are ignored by Mapnik. Use NewSized\n// to initialize larger maps.", "docstring_tokens": ["Resize", "changes", "the", "map", "size", "in", "pixel", ".", "Sizes", "larger", "than", "16k", "pixels", "are", "ignored", "by", "Mapnik", ".", "Use", "NewSized", "to", "initialize", "larger", "maps", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L133-L137", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "Free", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Free deallocates the map.", "docstring_tokens": ["Free", "deallocates", "the", "map", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L140-L143", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "SRS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SRS returns the projection of the map.", "docstring_tokens": ["SRS", "returns", "the", "projection", "of", "the", "map", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L146-L148", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "ZoomAll", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ZoomAll zooms to the maximum extent.", "docstring_tokens": ["ZoomAll", "zooms", "to", "the", "maximum", "extent", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L163-L168", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "ZoomTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ZoomTo zooms to the given bounding box.", "docstring_tokens": ["ZoomTo", "zooms", "to", "the", "given", "bounding", "box", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L171-L175", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "Render", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Render returns the map as an encoded image.", "docstring_tokens": ["Render", "returns", "the", "map", "as", "an", "encoded", "image", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L301-L329", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "RenderImage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenderImage returns the map as an unencoded image.Image.", "docstring_tokens": ["RenderImage", "returns", "the", "map", "as", "an", "unencoded", "image", ".", "Image", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L332-L351", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "RenderToFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RenderToFile writes the map as an encoded image to the file system.", "docstring_tokens": ["RenderToFile", "writes", "the", "map", "as", "an", "encoded", "image", "to", "the", "file", "system", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L354-L372", "partition": "test"} +{"repo": "omniscale/go-mapnik", "path": "mapnik.go", "func_name": "SetBufferSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetBufferSize sets the pixel buffer at the map image edges where Mapnik should not render any labels.", "docstring_tokens": ["SetBufferSize", "sets", "the", "pixel", "buffer", "at", "the", "map", "image", "edges", "where", "Mapnik", "should", "not", "render", "any", "labels", "."], "sha": "710dfcc5e486e5760d0a5c46be909d91968e1ffb", "url": "https://github.com/omniscale/go-mapnik/blob/710dfcc5e486e5760d0a5c46be909d91968e1ffb/mapnik.go#L375-L377", "partition": "test"} +{"repo": "bcurren/go-ssdp", "path": "ssdp.go", "func_name": "Search", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Search the network for SSDP devices using the given search string and duration\n// to discover new devices. This function will return an array of SearchReponses\n// discovered.", "docstring_tokens": ["Search", "the", "network", "for", "SSDP", "devices", "using", "the", "given", "search", "string", "and", "duration", "to", "discover", "new", "devices", ".", "This", "function", "will", "return", "an", "array", "of", "SearchReponses", "discovered", "."], "sha": "ae8e7a0ef8a8f119ef439791570ee2a094d1d094", "url": "https://github.com/bcurren/go-ssdp/blob/ae8e7a0ef8a8f119ef439791570ee2a094d1d094/ssdp.go#L47-L62", "partition": "test"} +{"repo": "ctripcorp/ghost", "path": "pool/blockingPool.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Get blocks for an available connection.", "docstring_tokens": ["Get", "blocks", "for", "an", "available", "connection", "."], "sha": "9dce30d85194129b9c0ba6702c612f3b5c41d02f", "url": "https://github.com/ctripcorp/ghost/blob/9dce30d85194129b9c0ba6702c612f3b5c41d02f/pool/blockingPool.go#L55-L84", "partition": "test"} +{"repo": "ctripcorp/ghost", "path": "pool/blockingPool.go", "func_name": "put", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//put puts the connection back to the pool. If the pool is closed, put simply close \n//any connections received and return immediately. A nil net.Conn is illegal and will be rejected.", "docstring_tokens": ["put", "puts", "the", "connection", "back", "to", "the", "pool", ".", "If", "the", "pool", "is", "closed", "put", "simply", "close", "any", "connections", "received", "and", "return", "immediately", ".", "A", "nil", "net", ".", "Conn", "is", "illegal", "and", "will", "be", "rejected", "."], "sha": "9dce30d85194129b9c0ba6702c612f3b5c41d02f", "url": "https://github.com/ctripcorp/ghost/blob/9dce30d85194129b9c0ba6702c612f3b5c41d02f/pool/blockingPool.go#L88-L112", "partition": "test"} +{"repo": "go-audio/transforms", "path": "stereo.go", "func_name": "MonoToStereoF32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MonoToStereoF32 converts a mono stream into a stereo one\n// by copying the mono signal to both channels in an interleaved\n// signal.", "docstring_tokens": ["MonoToStereoF32", "converts", "a", "mono", "stream", "into", "a", "stereo", "one", "by", "copying", "the", "mono", "signal", "to", "both", "channels", "in", "an", "interleaved", "signal", "."], "sha": "51830ccc35a5ce4be9d09b1d1f3f82dad376c240", "url": "https://github.com/go-audio/transforms/blob/51830ccc35a5ce4be9d09b1d1f3f82dad376c240/stereo.go#L8-L23", "partition": "test"} +{"repo": "go-audio/transforms", "path": "bit_crush.go", "func_name": "BitCrush", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BitCrush reduces the resolution of the sample to the target bit depth\n// Note that bit crusher effects are usually made of this feature + a decimator", "docstring_tokens": ["BitCrush", "reduces", "the", "resolution", "of", "the", "sample", "to", "the", "target", "bit", "depth", "Note", "that", "bit", "crusher", "effects", "are", "usually", "made", "of", "this", "feature", "+", "a", "decimator"], "sha": "51830ccc35a5ce4be9d09b1d1f3f82dad376c240", "url": "https://github.com/go-audio/transforms/blob/51830ccc35a5ce4be9d09b1d1f3f82dad376c240/bit_crush.go#L17-L24", "partition": "test"} +{"repo": "go-audio/transforms", "path": "normalize.go", "func_name": "NormalizeMax", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NormalizeMax sets the max value to 1 and normalize the rest of the data.", "docstring_tokens": ["NormalizeMax", "sets", "the", "max", "value", "to", "1", "and", "normalize", "the", "rest", "of", "the", "data", "."], "sha": "51830ccc35a5ce4be9d09b1d1f3f82dad376c240", "url": "https://github.com/go-audio/transforms/blob/51830ccc35a5ce4be9d09b1d1f3f82dad376c240/normalize.go#L10-L27", "partition": "test"} +{"repo": "go-audio/transforms", "path": "gain.go", "func_name": "Gain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Gain applies the multiplier to the passed buffer.\n// A multipler of 1 would increase the amplitude of the signal by 100%\n// while a multiplier of 0 would not do anything.\n// Note that this is a very very naive implementation and we will more\n// than add a more useful DB gain transform.", "docstring_tokens": ["Gain", "applies", "the", "multiplier", "to", "the", "passed", "buffer", ".", "A", "multipler", "of", "1", "would", "increase", "the", "amplitude", "of", "the", "signal", "by", "100%", "while", "a", "multiplier", "of", "0", "would", "not", "do", "anything", ".", "Note", "that", "this", "is", "a", "very", "very", "naive", "implementation", "and", "we", "will", "more", "than", "add", "a", "more", "useful", "DB", "gain", "transform", "."], "sha": "51830ccc35a5ce4be9d09b1d1f3f82dad376c240", "url": "https://github.com/go-audio/transforms/blob/51830ccc35a5ce4be9d09b1d1f3f82dad376c240/gain.go#L10-L20", "partition": "test"} +{"repo": "go-audio/transforms", "path": "mono.go", "func_name": "MonoDownmix", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MonoDownmix converts the buffer to a mono buffer\n// by downmixing the channels together.", "docstring_tokens": ["MonoDownmix", "converts", "the", "buffer", "to", "a", "mono", "buffer", "by", "downmixing", "the", "channels", "together", "."], "sha": "51830ccc35a5ce4be9d09b1d1f3f82dad376c240", "url": "https://github.com/go-audio/transforms/blob/51830ccc35a5ce4be9d09b1d1f3f82dad376c240/mono.go#L7-L30", "partition": "test"} +{"repo": "go-audio/transforms", "path": "quantize.go", "func_name": "Quantize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Quantize quantizes the audio signal to match the target bitDepth", "docstring_tokens": ["Quantize", "quantizes", "the", "audio", "signal", "to", "match", "the", "target", "bitDepth"], "sha": "51830ccc35a5ce4be9d09b1d1f3f82dad376c240", "url": "https://github.com/go-audio/transforms/blob/51830ccc35a5ce4be9d09b1d1f3f82dad376c240/quantize.go#L10-L20", "partition": "test"} +{"repo": "go-audio/transforms", "path": "pcm_scale.go", "func_name": "PCMScale", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PCMScale converts a buffer with audio content from -1 to 1 into\n// the PCM scale based on the passed bitdepth.\n// Note that while the PCM data is scaled, the PCM format is not changed.", "docstring_tokens": ["PCMScale", "converts", "a", "buffer", "with", "audio", "content", "from", "-", "1", "to", "1", "into", "the", "PCM", "scale", "based", "on", "the", "passed", "bitdepth", ".", "Note", "that", "while", "the", "PCM", "data", "is", "scaled", "the", "PCM", "format", "is", "not", "changed", "."], "sha": "51830ccc35a5ce4be9d09b1d1f3f82dad376c240", "url": "https://github.com/go-audio/transforms/blob/51830ccc35a5ce4be9d09b1d1f3f82dad376c240/pcm_scale.go#L12-L22", "partition": "test"} +{"repo": "go-audio/transforms", "path": "stereo_pan.go", "func_name": "StereoPan", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StereoPan changes the balance of the input buffer by \"panning\"\n// more to the left or the right. The pan value must be between\n// 0 and 1 where 0 is full first channel, 0.5 center and 1 full second channel.\n// Note that the signal from 1 channel is not sent to the other, this transform\n// only reduces the balance of one of the 2 channels.", "docstring_tokens": ["StereoPan", "changes", "the", "balance", "of", "the", "input", "buffer", "by", "panning", "more", "to", "the", "left", "or", "the", "right", ".", "The", "pan", "value", "must", "be", "between", "0", "and", "1", "where", "0", "is", "full", "first", "channel", "0", ".", "5", "center", "and", "1", "full", "second", "channel", ".", "Note", "that", "the", "signal", "from", "1", "channel", "is", "not", "sent", "to", "the", "other", "this", "transform", "only", "reduces", "the", "balance", "of", "one", "of", "the", "2", "channels", "."], "sha": "51830ccc35a5ce4be9d09b1d1f3f82dad376c240", "url": "https://github.com/go-audio/transforms/blob/51830ccc35a5ce4be9d09b1d1f3f82dad376c240/stereo_pan.go#L14-L36", "partition": "test"} +{"repo": "abronan/leadership", "path": "follower.go", "func_name": "Leader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Leader returns the current leader.", "docstring_tokens": ["Leader", "returns", "the", "current", "leader", "."], "sha": "76df1b7fa3841b453d70d7183e8c02a87538c0ee", "url": "https://github.com/abronan/leadership/blob/76df1b7fa3841b453d70d7183e8c02a87538c0ee/follower.go#L33-L37", "partition": "test"} +{"repo": "abronan/leadership", "path": "candidate.go", "func_name": "IsLeader", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// IsLeader returns true if the candidate is currently a leader.", "docstring_tokens": ["IsLeader", "returns", "true", "if", "the", "candidate", "is", "currently", "a", "leader", "."], "sha": "76df1b7fa3841b453d70d7183e8c02a87538c0ee", "url": "https://github.com/abronan/leadership/blob/76df1b7fa3841b453d70d7183e8c02a87538c0ee/candidate.go#L45-L49", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "security/response.go", "func_name": "NewResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewResponse returns a new OAuth2Response", "docstring_tokens": ["NewResponse", "returns", "a", "new", "OAuth2Response"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/security/response.go#L29-L31", "partition": "test"} +{"repo": "solher/snakepit", "path": "request_id.go", "func_name": "GetRequestID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRequestID returns a request ID from the given context if one is present.\n// Returns the empty string if a request ID cannot be found.", "docstring_tokens": ["GetRequestID", "returns", "a", "request", "ID", "from", "the", "given", "context", "if", "one", "is", "present", ".", "Returns", "the", "empty", "string", "if", "a", "request", "ID", "cannot", "be", "found", "."], "sha": "bc2b6bc4ed85156fe5f715b058a30048c62f7ad5", "url": "https://github.com/solher/snakepit/blob/bc2b6bc4ed85156fe5f715b058a30048c62f7ad5/request_id.go#L26-L41", "partition": "test"} +{"repo": "jpillora/requestlog", "path": "writer.go", "func_name": "Log", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//replace ResponseWriter with a monitorable one, return logger", "docstring_tokens": ["replace", "ResponseWriter", "with", "a", "monitorable", "one", "return", "logger"], "sha": "df8817be5f8288874e4cbe58d441a01222a28a2f", "url": "https://github.com/jpillora/requestlog/blob/df8817be5f8288874e4cbe58d441a01222a28a2f/writer.go#L81-L108", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "smtp/util.go", "func_name": "SendMailSSL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SendMailSSL envoie un email par SSL", "docstring_tokens": ["SendMailSSL", "envoie", "un", "email", "par", "SSL"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/smtp/util.go#L26-L70", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "smtp/mail.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Send envoie un email", "docstring_tokens": ["Send", "envoie", "un", "email"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/smtp/mail.go#L34-L45", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "waitforit/waitforit.go", "func_name": "WaitForIt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitForIt waits for a service or URL to become online", "docstring_tokens": ["WaitForIt", "waits", "for", "a", "service", "or", "URL", "to", "become", "online"], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/waitforit/waitforit.go#L122-L156", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "config/utils.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get a config", "docstring_tokens": ["Get", "a", "config"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/config/utils.go#L27-L48", "partition": "test"} +{"repo": "solher/snakepit", "path": "root/root.go", "func_name": "initConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read in config file and ENV variables if set.", "docstring_tokens": ["Read", "in", "config", "file", "and", "ENV", "variables", "if", "set", "."], "sha": "bc2b6bc4ed85156fe5f715b058a30048c62f7ad5", "url": "https://github.com/solher/snakepit/blob/bc2b6bc4ed85156fe5f715b058a30048c62f7ad5/root/root.go#L37-L51", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "database/rethinkdb/rethinkdb.go", "func_name": "WritePluginResultsToDatabase", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WritePluginResultsToDatabase upserts plugin results into Database", "docstring_tokens": ["WritePluginResultsToDatabase", "upserts", "plugin", "results", "into", "Database"], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/database/rethinkdb/rethinkdb.go#L23-L58", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "security/controller.go", "func_name": "NewAuthController", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewAuthController constructs new AuthController", "docstring_tokens": ["NewAuthController", "constructs", "new", "AuthController"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/security/controller.go#L39-L42", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "security/controller.go", "func_name": "Authenticate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Authenticate controls authorizations", "docstring_tokens": ["Authenticate", "controls", "authorizations"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/security/controller.go#L45-L69", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "security/controller.go", "func_name": "NewOAuth2Controller", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewOAuth2Controller constructs new AuthController", "docstring_tokens": ["NewOAuth2Controller", "constructs", "new", "AuthController"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/security/controller.go#L78-L81", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "security/controller.go", "func_name": "Refresh", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Refresh returns a new access token", "docstring_tokens": ["Refresh", "returns", "a", "new", "access", "token"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/security/controller.go#L84-L115", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "security/controller.go", "func_name": "Token", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Token returns a new access token", "docstring_tokens": ["Token", "returns", "a", "new", "access", "token"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/security/controller.go#L118-L157", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "web/handlers.go", "func_name": "Logging", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Logging logs http requests", "docstring_tokens": ["Logging", "logs", "http", "requests"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/web/handlers.go#L29-L39", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "web/handlers.go", "func_name": "SingleFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//SingleFile returns a handler", "docstring_tokens": ["SingleFile", "returns", "a", "handler"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/web/handlers.go#L42-L46", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "web/handlers.go", "func_name": "Write", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Write Satisfy the http.ResponseWriter interface", "docstring_tokens": ["Write", "Satisfy", "the", "http", ".", "ResponseWriter", "interface"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/web/handlers.go#L71-L74", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "web/handlers.go", "func_name": "Hijack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Hijack Satisfy the http.ResponseWriter interface", "docstring_tokens": ["Hijack", "Satisfy", "the", "http", ".", "ResponseWriter", "interface"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/web/handlers.go#L77-L82", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "datasource/mongo/mongo.go", "func_name": "NewMongo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewMongo creates a newinstance of Mongo", "docstring_tokens": ["NewMongo", "creates", "a", "newinstance", "of", "Mongo"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/datasource/mongo/mongo.go#L34-L75", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "datasource/mongo/mongo.go", "func_name": "Disconnect", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Disconnect a Mongo client", "docstring_tokens": ["Disconnect", "a", "Mongo", "client"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/datasource/mongo/mongo.go#L78-L85", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "clitable/table.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New - Creates a new table.", "docstring_tokens": ["New", "-", "Creates", "a", "new", "table", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/clitable/table.go#L48-L54", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "clitable/table.go", "func_name": "PrintTable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintTable - Prints table.", "docstring_tokens": ["PrintTable", "-", "Prints", "table", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/clitable/table.go#L57-L63", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "clitable/table.go", "func_name": "PrintHorizontal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintHorizontal - Prints horizontal table from a map.", "docstring_tokens": ["PrintHorizontal", "-", "Prints", "horizontal", "table", "from", "a", "map", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/clitable/table.go#L66-L74", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "clitable/table.go", "func_name": "PrintRow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PrintRow - Prints table with only one row.", "docstring_tokens": ["PrintRow", "-", "Prints", "table", "with", "only", "one", "row", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/clitable/table.go#L77-L81", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "clitable/table.go", "func_name": "AddRow", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddRow - Adds row to the table.", "docstring_tokens": ["AddRow", "-", "Adds", "row", "to", "the", "table", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/clitable/table.go#L84-L105", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "clitable/table.go", "func_name": "Print", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Print - Prints table.", "docstring_tokens": ["Print", "-", "Prints", "table", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/clitable/table.go#L113-L143", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "clitable/table.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// String - Ouput table as a string.", "docstring_tokens": ["String", "-", "Ouput", "table", "as", "a", "string", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/clitable/table.go#L146-L187", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "clitable/table.go", "func_name": "getHead", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// getHead - Returns table header containing fields names.", "docstring_tokens": ["getHead", "-", "Returns", "table", "header", "containing", "fields", "names", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/clitable/table.go#L190-L196", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "clitable/table.go", "func_name": "rowString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// rowString - Creates a string row.", "docstring_tokens": ["rowString", "-", "Creates", "a", "string", "row", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/clitable/table.go#L199-L206", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "clitable/table.go", "func_name": "fieldString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// fieldString - Creates field value string.", "docstring_tokens": ["fieldString", "-", "Creates", "field", "value", "string", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/clitable/table.go#L209-L218", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "clitable/table.go", "func_name": "stringTableDash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stringTableDash - output table dash. Markdown or not depending on settings.", "docstring_tokens": ["stringTableDash", "-", "output", "table", "dash", ".", "Markdown", "or", "not", "depending", "on", "settings", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/clitable/table.go#L230-L235", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "clitable/table.go", "func_name": "printMarkdownDash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// printMarkdownDash - Prints dash in middle of table.", "docstring_tokens": ["printMarkdownDash", "-", "Prints", "dash", "in", "middle", "of", "table", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/clitable/table.go#L258-L264", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "clitable/table.go", "func_name": "stringMarkdownDash", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// stringMarkdownDash - output dash in middle of table.", "docstring_tokens": ["stringMarkdownDash", "-", "output", "dash", "in", "middle", "of", "table", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/clitable/table.go#L267-L273", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "security/utils.go", "func_name": "HashPassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//HashPassword hash un mot de passe", "docstring_tokens": ["HashPassword", "hash", "un", "mot", "de", "passe"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/security/utils.go#L41-L47", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "security/utils.go", "func_name": "EncodeOAuth2Code", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//EncodeOAuth2Code generate an OAuth2 code", "docstring_tokens": ["EncodeOAuth2Code", "generate", "an", "OAuth2", "code"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/security/utils.go#L95-L114", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "security/utils.go", "func_name": "DecodeOAuth2Code", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//DecodeOAuth2Code inverse of EncodeOAuth2Code", "docstring_tokens": ["DecodeOAuth2Code", "inverse", "of", "EncodeOAuth2Code"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/security/utils.go#L117-L134", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "web/server.go", "func_name": "NewServer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewServer create a new instance of Server", "docstring_tokens": ["NewServer", "create", "a", "new", "instance", "of", "Server"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/web/server.go#L50-L71", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "web/server.go", "func_name": "Start", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Start the server.", "docstring_tokens": ["Start", "the", "server", "."], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/web/server.go#L74-L119", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "web/server.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Stop the server.", "docstring_tokens": ["Stop", "the", "server", "."], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/web/server.go#L122-L131", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "web/server.go", "func_name": "NewLoggingServeMux", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLoggingServeMux allocates and returns a new LoggingServeMux", "docstring_tokens": ["NewLoggingServeMux", "allocates", "and", "returns", "a", "new", "LoggingServeMux"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/web/server.go#L142-L145", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "web/server.go", "func_name": "Handler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Handler sastisfy interface", "docstring_tokens": ["Handler", "sastisfy", "interface"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/web/server.go#L148-L150", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "web/server.go", "func_name": "Handle", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Handle register handler", "docstring_tokens": ["Handle", "register", "handler"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/web/server.go#L158-L170", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "web/server.go", "func_name": "HandleFunc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HandleFunc registers the handler function for the given pattern.", "docstring_tokens": ["HandleFunc", "registers", "the", "handler", "function", "for", "the", "given", "pattern", "."], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/web/server.go#L173-L175", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "database/elasticsearch/elasticsearch.go", "func_name": "Init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Init initalizes ElasticSearch for use with malice", "docstring_tokens": ["Init", "initalizes", "ElasticSearch", "for", "use", "with", "malice"], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/database/elasticsearch/elasticsearch.go#L82-L126", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "database/elasticsearch/elasticsearch.go", "func_name": "WaitForConnection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WaitForConnection waits for connection to Elasticsearch to be ready", "docstring_tokens": ["WaitForConnection", "waits", "for", "connection", "to", "Elasticsearch", "to", "be", "ready"], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/database/elasticsearch/elasticsearch.go#L164-L191", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "database/elasticsearch/elasticsearch.go", "func_name": "StoreFileInfo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoreFileInfo inserts initial sample info into database creating a placeholder for it", "docstring_tokens": ["StoreFileInfo", "inserts", "initial", "sample", "info", "into", "database", "creating", "a", "placeholder", "for", "it"], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/database/elasticsearch/elasticsearch.go#L194-L243", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "database/elasticsearch/elasticsearch.go", "func_name": "StorePluginResults", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StorePluginResults stores a plugin's results in the database by updating\n// the placeholder created by the call to StoreFileInfo", "docstring_tokens": ["StorePluginResults", "stores", "a", "plugin", "s", "results", "in", "the", "database", "by", "updating", "the", "placeholder", "created", "by", "the", "call", "to", "StoreFileInfo"], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/database/elasticsearch/elasticsearch.go#L305-L384", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "utils/utils.go", "func_name": "CamelCase", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CamelCase converts strings to their camel case equivalent", "docstring_tokens": ["CamelCase", "converts", "strings", "to", "their", "camel", "case", "equivalent"], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/utils/utils.go#L45-L54", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "utils/utils.go", "func_name": "Getopt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Getopt reads environment variables.\n// If not found will return a supplied default value", "docstring_tokens": ["Getopt", "reads", "environment", "variables", ".", "If", "not", "found", "will", "return", "a", "supplied", "default", "value"], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/utils/utils.go#L58-L64", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "utils/utils.go", "func_name": "Getopts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Getopts reads from user input then environment variable and finally a sane default.", "docstring_tokens": ["Getopts", "reads", "from", "user", "input", "then", "environment", "variable", "and", "finally", "a", "sane", "default", "."], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/utils/utils.go#L67-L77", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "utils/utils.go", "func_name": "GetSHA256", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSHA256 calculates a file's sha256sum", "docstring_tokens": ["GetSHA256", "calculates", "a", "file", "s", "sha256sum"], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/utils/utils.go#L87-L97", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "utils/utils.go", "func_name": "RunCommand", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RunCommand runs cmd on file", "docstring_tokens": ["RunCommand", "runs", "cmd", "on", "file"], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/utils/utils.go#L100-L123", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "utils/utils.go", "func_name": "RemoveDuplicates", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveDuplicates removes duplicate items from a list", "docstring_tokens": ["RemoveDuplicates", "removes", "duplicate", "items", "from", "a", "list"], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/utils/utils.go#L130-L147", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "utils/utils.go", "func_name": "Unzip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unzip unzips archive to target location", "docstring_tokens": ["Unzip", "unzips", "archive", "to", "target", "location"], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/utils/utils.go#L190-L224", "partition": "test"} +{"repo": "malice-plugins/go-plugin-utils", "path": "utils/utils.go", "func_name": "SliceContainsString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SliceContainsString returns if slice contains substring", "docstring_tokens": ["SliceContainsString", "returns", "if", "slice", "contains", "substring"], "sha": "9ee76663c3b0a531b8c529f03f12a5a84ff9b61b", "url": "https://github.com/malice-plugins/go-plugin-utils/blob/9ee76663c3b0a531b8c529f03f12a5a84ff9b61b/utils/utils.go#L227-L234", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "smtp/server.go", "func_name": "NewSMTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewSMTP create new SMTP", "docstring_tokens": ["NewSMTP", "create", "new", "SMTP"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/smtp/server.go#L36-L48", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "smtp/server.go", "func_name": "SendMail", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//SendMail send an email", "docstring_tokens": ["SendMail", "send", "an", "email"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/smtp/server.go#L51-L54", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "smtp/config.go", "func_name": "GetEnvironment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetEnvironment returns a SMTP Server configuration for the specified environment in parameter", "docstring_tokens": ["GetEnvironment", "returns", "a", "SMTP", "Server", "configuration", "for", "the", "specified", "environment", "in", "parameter"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/smtp/config.go#L58-L65", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "smtp/config.go", "func_name": "GetSMTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetSMTP returns a SMTP Server configurations", "docstring_tokens": ["GetSMTP", "returns", "a", "SMTP", "Server", "configurations"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/smtp/config.go#L68-L73", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "web/config.go", "func_name": "GetConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetConfig returns a Server configurations", "docstring_tokens": ["GetConfig", "returns", "a", "Server", "configurations"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/web/config.go#L75-L80", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "datasource/mongo/config.go", "func_name": "GetEnvironment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetEnvironment returns a Mongo configuration for the specified environment in parameter", "docstring_tokens": ["GetEnvironment", "returns", "a", "Mongo", "configuration", "for", "the", "specified", "environment", "in", "parameter"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/datasource/mongo/config.go#L56-L63", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "datasource/mongo/config.go", "func_name": "GetMongo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetMongo returns a Mongo configurations", "docstring_tokens": ["GetMongo", "returns", "a", "Mongo", "configurations"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/datasource/mongo/config.go#L66-L71", "partition": "test"} +{"repo": "DamienFontaine/lunarc", "path": "security/handler.go", "func_name": "TokenHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//TokenHandler manage authorizations", "docstring_tokens": ["TokenHandler", "manage", "authorizations"], "sha": "2e7332a51f554794a549a313430eaa7dec8d13cc", "url": "https://github.com/DamienFontaine/lunarc/blob/2e7332a51f554794a549a313430eaa7dec8d13cc/security/handler.go#L28-L47", "partition": "test"} +{"repo": "soygul/gcm", "path": "ccs/ccs.go", "func_name": "Receive", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Receive waits to receive the next incoming messages from the CCS connection.", "docstring_tokens": ["Receive", "waits", "to", "receive", "the", "next", "incoming", "messages", "from", "the", "CCS", "connection", "."], "sha": "08c1e33b494fc198134b9f1000c99b2ff8d1883b", "url": "https://github.com/soygul/gcm/blob/08c1e33b494fc198134b9f1000c99b2ff8d1883b/ccs/ccs.go#L53-L98", "partition": "test"} +{"repo": "soygul/gcm", "path": "ccs/ccs.go", "func_name": "Send", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Send sends a message to GCM CCS server and returns the number of bytes written and any error encountered.\n// If empty message ID is given, it's auto-generated and message object is modified with the generated ID.", "docstring_tokens": ["Send", "sends", "a", "message", "to", "GCM", "CCS", "server", "and", "returns", "the", "number", "of", "bytes", "written", "and", "any", "error", "encountered", ".", "If", "empty", "message", "ID", "is", "given", "it", "s", "auto", "-", "generated", "and", "message", "object", "is", "modified", "with", "the", "generated", "ID", "."], "sha": "08c1e33b494fc198134b9f1000c99b2ff8d1883b", "url": "https://github.com/soygul/gcm/blob/08c1e33b494fc198134b9f1000c99b2ff8d1883b/ccs/ccs.go#L102-L116", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "diff/pivnetreleasediffer.go", "func_name": "allBoshReleaseNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// allBoshReleaseNames returns a union of unique BOSH release names across all\n// contained BOSH releases.", "docstring_tokens": ["allBoshReleaseNames", "returns", "a", "union", "of", "unique", "BOSH", "release", "names", "across", "all", "contained", "BOSH", "releases", "."], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/diff/pivnetreleasediffer.go#L59-L73", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "diff/result.go", "func_name": "AddedProperty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddedProperty adds a new \"added\" job property to the list of differences", "docstring_tokens": ["AddedProperty", "adds", "a", "new", "added", "job", "property", "to", "the", "list", "of", "differences"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/diff/result.go#L29-L31", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "diff/result.go", "func_name": "RemovedProperty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemovedProperty adds a new \"removed\" job property to the list of differences", "docstring_tokens": ["RemovedProperty", "adds", "a", "new", "removed", "job", "property", "to", "the", "list", "of", "differences"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/diff/result.go#L34-L36", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "diff/result.go", "func_name": "AddDeltaJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddDeltaJob adds a new delta for a specific job", "docstring_tokens": ["AddDeltaJob", "adds", "a", "new", "delta", "for", "a", "specific", "job"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/diff/result.go#L39-L41", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "diff/result.go", "func_name": "Concat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Concat adds the other result to this result", "docstring_tokens": ["Concat", "adds", "the", "other", "result", "to", "this", "result"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/diff/result.go#L44-L48", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "pull/releasepull.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read downloads the specified Release to the local cache dir and returns a\n// reader to the underyling release package.", "docstring_tokens": ["Read", "downloads", "the", "specified", "Release", "to", "the", "local", "cache", "dir", "and", "returns", "a", "reader", "to", "the", "underyling", "release", "package", "."], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/pull/releasepull.go#L26-L36", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "pull/releasepull.go", "func_name": "Pull", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Pull downloads the specified Release to the local cache dir", "docstring_tokens": ["Pull", "downloads", "the", "specified", "Release", "to", "the", "local", "cache", "dir"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/pull/releasepull.go#L39-L57", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "releasejob_experiment/job.go", "func_name": "BuildJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//BuildJob - function to create a compiled version of the current job", "docstring_tokens": ["BuildJob", "-", "function", "to", "create", "a", "compiled", "version", "of", "the", "current", "job"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/releasejob_experiment/job.go#L42-L63", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "release/boshrelease.go", "func_name": "LoadBoshRelease", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadBoshRelease creates an initialized boshRelease instance from the\n// specifed local or remote .tgz file", "docstring_tokens": ["LoadBoshRelease", "creates", "an", "initialized", "boshRelease", "instance", "from", "the", "specifed", "local", "or", "remote", ".", "tgz", "file"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/release/boshrelease.go#L26-L39", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "release/boshrelease.go", "func_name": "readBoshRelease", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readBoshRelease creates an initialized boshRelease instance from the\n// specifed .tgz reader", "docstring_tokens": ["readBoshRelease", "creates", "an", "initialized", "boshRelease", "instance", "from", "the", "specifed", ".", "tgz", "reader"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/release/boshrelease.go#L43-L49", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "release/boshrelease.go", "func_name": "readBoshRelease", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readBoshRelease reads a bosh release out of the given reader into a new\n// boshRelease struct", "docstring_tokens": ["readBoshRelease", "reads", "a", "bosh", "release", "out", "of", "the", "given", "reader", "into", "a", "new", "boshRelease", "struct"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/release/boshrelease.go#L53-L67", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "release/boshrelease.go", "func_name": "readBoshJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readBoshJob reads a BOSH job manifest out of the given reader into a new\n// JobManifest struct", "docstring_tokens": ["readBoshJob", "reads", "a", "BOSH", "job", "manifest", "out", "of", "the", "given", "reader", "into", "a", "new", "JobManifest", "struct"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/release/boshrelease.go#L71-L79", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "enamlbosh/api.go", "func_name": "NewRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewRequest is like http.NewRequest, with the exception that it will add\n// basic auth headers if the client is configured for basic auth.", "docstring_tokens": ["NewRequest", "is", "like", "http", ".", "NewRequest", "with", "the", "exception", "that", "it", "will", "add", "basic", "auth", "headers", "if", "the", "client", "is", "configured", "for", "basic", "auth", "."], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/enamlbosh/api.go#L111-L119", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "enamlbosh/api.go", "func_name": "PushCloudConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PushCloudConfig uploads a cloud config to bosh.", "docstring_tokens": ["PushCloudConfig", "uploads", "a", "cloud", "config", "to", "bosh", "."], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/enamlbosh/api.go#L144-L163", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "generators/generate.go", "func_name": "Generate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Generate - used to generate a struct for a given job", "docstring_tokens": ["Generate", "-", "used", "to", "generate", "a", "struct", "for", "a", "given", "job"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/generators/generate.go#L16-L57", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "generators/generate.go", "func_name": "CreateNewRecord", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//CreateNewRecord - creates a record from a given period delimited property and enaml.JobManifestProperty", "docstring_tokens": ["CreateNewRecord", "-", "creates", "a", "record", "from", "a", "given", "period", "delimited", "property", "and", "enaml", ".", "JobManifestProperty"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/generators/generate.go#L115-L124", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "run/showcmd.go", "func_name": "NewShowCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewShowCmd creates a new ShowCmd instance.", "docstring_tokens": ["NewShowCmd", "creates", "a", "new", "ShowCmd", "instance", "."], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/run/showcmd.go#L20-L25", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "run/showcmd.go", "func_name": "All", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// All writes out all the release data to writer.", "docstring_tokens": ["All", "writes", "out", "all", "the", "release", "data", "to", "writer", "."], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/run/showcmd.go#L28-L45", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "concourse.go", "func_name": "GetDefaultTaskImageResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetDefaultTaskImageResource - convenience helper to output default object for\n// task images", "docstring_tokens": ["GetDefaultTaskImageResource", "-", "convenience", "helper", "to", "output", "default", "object", "for", "task", "images"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/concourse.go#L27-L34", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "concourse.go", "func_name": "AddRawJob", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AddRawJob helper to add a job to the pipeline manifest", "docstring_tokens": ["AddRawJob", "helper", "to", "add", "a", "job", "to", "the", "pipeline", "manifest"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/concourse.go#L42-L44", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "concourse.go", "func_name": "AddGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AddGroup helper to add a group to the pipeline manifest", "docstring_tokens": ["AddGroup", "helper", "to", "add", "a", "group", "to", "the", "pipeline", "manifest"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/concourse.go#L47-L52", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "concourse.go", "func_name": "GetResourceByName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetResourceByName convenience method to find and return a resource by name", "docstring_tokens": ["GetResourceByName", "convenience", "method", "to", "find", "and", "return", "a", "resource", "by", "name"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/concourse.go#L62-L69", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "concourse.go", "func_name": "AddRawResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AddRawResource helper to add a resource to the pipeline manifest", "docstring_tokens": ["AddRawResource", "helper", "to", "add", "a", "resource", "to", "the", "pipeline", "manifest"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/concourse.go#L72-L74", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "concourse.go", "func_name": "AddResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AddResource helper to add a resource to the pipeline manifest", "docstring_tokens": ["AddResource", "helper", "to", "add", "a", "resource", "to", "the", "pipeline", "manifest"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/concourse.go#L77-L83", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "concourse.go", "func_name": "AddGithubResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AddGithubResource github specific resource add", "docstring_tokens": ["AddGithubResource", "github", "specific", "resource", "add"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/concourse.go#L86-L88", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "concourse.go", "func_name": "AddBoshIOResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AddBoshIOResource bosh io specific resource add", "docstring_tokens": ["AddBoshIOResource", "bosh", "io", "specific", "resource", "add"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/concourse.go#L91-L93", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "concourse.go", "func_name": "AddBoshDeploymentResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AddBoshDeploymentResource bosh deployment resource add", "docstring_tokens": ["AddBoshDeploymentResource", "bosh", "deployment", "resource", "add"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/concourse.go#L96-L98", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "concourse.go", "func_name": "AddGitResource", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AddGitResource git specific resource add", "docstring_tokens": ["AddGitResource", "git", "specific", "resource", "add"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/concourse.go#L101-L103", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "diff/boshreleasediffer.go", "func_name": "allJobNames", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// allJobNames returns a union of unique job names across both BOSH releases", "docstring_tokens": ["allJobNames", "returns", "a", "union", "of", "unique", "job", "names", "across", "both", "BOSH", "releases"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/diff/boshreleasediffer.go#L52-L68", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "deploymentmanifest.go", "func_name": "NewDeploymentManifestFromFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewDeploymentManifestFromFile - will read any implementor of os.File and\n//initialize a deployment manifest from its bytes.\n//this can be used to read a file or os.Stdin", "docstring_tokens": ["NewDeploymentManifestFromFile", "-", "will", "read", "any", "implementor", "of", "os", ".", "File", "and", "initialize", "a", "deployment", "manifest", "from", "its", "bytes", ".", "this", "can", "be", "used", "to", "read", "a", "file", "or", "os", ".", "Stdin"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/deploymentmanifest.go#L24-L32", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "deploymentmanifest.go", "func_name": "NewDeploymentManifest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewDeploymentManifest - deployment manifest constructor", "docstring_tokens": ["NewDeploymentManifest", "-", "deployment", "manifest", "constructor"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/deploymentmanifest.go#L35-L39", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "deploymentmanifest.go", "func_name": "AddRemoteRelease", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//AddRemoteRelease - adds a remote release to the manifest. Url should not\n//contain version information", "docstring_tokens": ["AddRemoteRelease", "-", "adds", "a", "remote", "release", "to", "the", "manifest", ".", "Url", "should", "not", "contain", "version", "information"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/deploymentmanifest.go#L62-L70", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "deploymentmanifest.go", "func_name": "AddRemoteStemcell", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddRemoteStemcell adds a remote stemcell to the manifest.\n// The URL should not contain version information.", "docstring_tokens": ["AddRemoteStemcell", "adds", "a", "remote", "stemcell", "to", "the", "manifest", ".", "The", "URL", "should", "not", "contain", "version", "information", "."], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/deploymentmanifest.go#L110-L118", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "deploymentmanifest.go", "func_name": "Tag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Tag gets the tag value for a specified key.", "docstring_tokens": ["Tag", "gets", "the", "tag", "value", "for", "a", "specified", "key", "."], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/deploymentmanifest.go#L179-L184", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "deploymentmanifest.go", "func_name": "RemoveTag", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RemoveTag removes the tag with the specified key.", "docstring_tokens": ["RemoveTag", "removes", "the", "tag", "with", "the", "specified", "key", "."], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/deploymentmanifest.go#L197-L201", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "release/pivnetrelease.go", "func_name": "LoadPivnetRelease", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadPivnetRelease creates an initialized pivnetRelease instance from the\n// specified .pivotal file.", "docstring_tokens": ["LoadPivnetRelease", "creates", "an", "initialized", "pivnetRelease", "instance", "from", "the", "specified", ".", "pivotal", "file", "."], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/release/pivnetrelease.go#L16-L28", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "release/pivnetrelease.go", "func_name": "BoshReleaseOrEmpty", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// BoshReleaseOrEmpty returns the named BOSH release from this pivnet release\n// if it exists, otherwise emptyBoshRelease is returned.", "docstring_tokens": ["BoshReleaseOrEmpty", "returns", "the", "named", "BOSH", "release", "from", "this", "pivnet", "release", "if", "it", "exists", "otherwise", "emptyBoshRelease", "is", "returned", "."], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/release/pivnetrelease.go#L32-L38", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "release/pivnetrelease.go", "func_name": "readPivnetRelease", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// readPivnetRelease reads a pivnet release out of the given reader into a new\n// pivnetRelease struct", "docstring_tokens": ["readPivnetRelease", "reads", "a", "pivnet", "release", "out", "of", "the", "given", "reader", "into", "a", "new", "pivnetRelease", "struct"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/release/pivnetrelease.go#L42-L53", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "release/yaml.go", "func_name": "decodeYaml", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// decodeYaml takes a reader to a YAML file and unmarshals it to the given struct.", "docstring_tokens": ["decodeYaml", "takes", "a", "reader", "to", "a", "YAML", "file", "and", "unmarshals", "it", "to", "the", "given", "struct", "."], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/release/yaml.go#L11-L17", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "pkg/zipwalker.go", "func_name": "NewZipWalker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewZipWalker creates a new Walker instance that can read a .zip stream", "docstring_tokens": ["NewZipWalker", "creates", "a", "new", "Walker", "instance", "that", "can", "read", "a", ".", "zip", "stream"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/pkg/zipwalker.go#L15-L20", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "run/diffcmd.go", "func_name": "NewDiffCmd", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDiffCmd creates a new DiffCmd instance.", "docstring_tokens": ["NewDiffCmd", "creates", "a", "new", "DiffCmd", "instance", "."], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/run/diffcmd.go#L20-L26", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "run/diffcmd.go", "func_name": "All", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// All writes out all the differences between the specified releases", "docstring_tokens": ["All", "writes", "out", "all", "the", "differences", "between", "the", "specified", "releases"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/run/diffcmd.go#L29-L40", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "run/diffcmd.go", "func_name": "Job", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Job writes out the job differences between the specified releases", "docstring_tokens": ["Job", "writes", "out", "the", "job", "differences", "between", "the", "specified", "releases"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/run/diffcmd.go#L43-L54", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "diff/differ.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a Differ instance for comparing two releases", "docstring_tokens": ["New", "creates", "a", "Differ", "instance", "for", "comparing", "two", "releases"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/diff/differ.go#L18-L46", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "generators/record.go", "func_name": "StructName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//StructName - gets struct name for property", "docstring_tokens": ["StructName", "-", "gets", "struct", "name", "for", "property"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/generators/record.go#L6-L20", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "generators/record.go", "func_name": "TypeName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//TypeName - returns valid type name for a give record", "docstring_tokens": ["TypeName", "-", "returns", "valid", "type", "name", "for", "a", "give", "record"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/generators/record.go#L23-L37", "partition": "test"} +{"repo": "enaml-ops/enaml", "path": "pkg/tgzwalker.go", "func_name": "NewTgzWalker", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewTgzWalker creates a new Walker instance that can read a .tgz stream", "docstring_tokens": ["NewTgzWalker", "creates", "a", "new", "Walker", "instance", "that", "can", "read", "a", ".", "tgz", "stream"], "sha": "4f847ee10b41afca41fe09fa839cb2f6ade06fb5", "url": "https://github.com/enaml-ops/enaml/blob/4f847ee10b41afca41fe09fa839cb2f6ade06fb5/pkg/tgzwalker.go#L17-L22", "partition": "test"} +{"repo": "Diggs/go-backoff", "path": "backoff.go", "func_name": "NewBackoff", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewBackoff creates a new Backoff using the specified BackoffStrategy, start duration and limit.", "docstring_tokens": ["NewBackoff", "creates", "a", "new", "Backoff", "using", "the", "specified", "BackoffStrategy", "start", "duration", "and", "limit", "."], "sha": "f7b9f7e6b83be485b2e1b3eebba36652c6c4cd8a", "url": "https://github.com/Diggs/go-backoff/blob/f7b9f7e6b83be485b2e1b3eebba36652c6c4cd8a/backoff.go#L30-L34", "partition": "test"} +{"repo": "Diggs/go-backoff", "path": "backoff.go", "func_name": "Reset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reset sets the Backoff to its initial conditions ready to start over.", "docstring_tokens": ["Reset", "sets", "the", "Backoff", "to", "its", "initial", "conditions", "ready", "to", "start", "over", "."], "sha": "f7b9f7e6b83be485b2e1b3eebba36652c6c4cd8a", "url": "https://github.com/Diggs/go-backoff/blob/f7b9f7e6b83be485b2e1b3eebba36652c6c4cd8a/backoff.go#L37-L41", "partition": "test"} +{"repo": "Diggs/go-backoff", "path": "backoff.go", "func_name": "NewExponential", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewExponential creates a new backoff using the exponential backoff algorithm.", "docstring_tokens": ["NewExponential", "creates", "a", "new", "backoff", "using", "the", "exponential", "backoff", "algorithm", "."], "sha": "f7b9f7e6b83be485b2e1b3eebba36652c6c4cd8a", "url": "https://github.com/Diggs/go-backoff/blob/f7b9f7e6b83be485b2e1b3eebba36652c6c4cd8a/backoff.go#L67-L69", "partition": "test"} +{"repo": "Diggs/go-backoff", "path": "backoff.go", "func_name": "NewExponentialFullJitter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewExponentialFullJitter creates a new backoff using the exponential with full jitter backoff algorithm.", "docstring_tokens": ["NewExponentialFullJitter", "creates", "a", "new", "backoff", "using", "the", "exponential", "with", "full", "jitter", "backoff", "algorithm", "."], "sha": "f7b9f7e6b83be485b2e1b3eebba36652c6c4cd8a", "url": "https://github.com/Diggs/go-backoff/blob/f7b9f7e6b83be485b2e1b3eebba36652c6c4cd8a/backoff.go#L89-L91", "partition": "test"} +{"repo": "Diggs/go-backoff", "path": "backoff.go", "func_name": "NewLinear", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLinear creates a new backoff using the linear backoff algorithm.", "docstring_tokens": ["NewLinear", "creates", "a", "new", "backoff", "using", "the", "linear", "backoff", "algorithm", "."], "sha": "f7b9f7e6b83be485b2e1b3eebba36652c6c4cd8a", "url": "https://github.com/Diggs/go-backoff/blob/f7b9f7e6b83be485b2e1b3eebba36652c6c4cd8a/backoff.go#L100-L102", "partition": "test"} +{"repo": "moul/sapin", "path": "sapin.go", "func_name": "GetLineSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLineSize returns the size of the sapin for a specified floor and line.", "docstring_tokens": ["GetLineSize", "returns", "the", "size", "of", "the", "sapin", "for", "a", "specified", "floor", "and", "line", "."], "sha": "03dc419f50a637fd6fd353ffa8f4c93b4f3a80a6", "url": "https://github.com/moul/sapin/blob/03dc419f50a637fd6fd353ffa8f4c93b4f3a80a6/sapin.go#L30-L32", "partition": "test"} +{"repo": "moul/sapin", "path": "sapin.go", "func_name": "GetMaxSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetMaxSize returns the size of the widest part of the sapin.", "docstring_tokens": ["GetMaxSize", "returns", "the", "size", "of", "the", "widest", "part", "of", "the", "sapin", "."], "sha": "03dc419f50a637fd6fd353ffa8f4c93b4f3a80a6", "url": "https://github.com/moul/sapin/blob/03dc419f50a637fd6fd353ffa8f4c93b4f3a80a6/sapin.go#L35-L37", "partition": "test"} +{"repo": "moul/sapin", "path": "sapin.go", "func_name": "compute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// compute iterates over floors and lines to generate the output of the sapin.", "docstring_tokens": ["compute", "iterates", "over", "floors", "and", "lines", "to", "generate", "the", "output", "of", "the", "sapin", "."], "sha": "03dc419f50a637fd6fd353ffa8f4c93b4f3a80a6", "url": "https://github.com/moul/sapin/blob/03dc419f50a637fd6fd353ffa8f4c93b4f3a80a6/sapin.go#L51-L99", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/post_apps_parameters.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout adds the timeout to the post apps params", "docstring_tokens": ["WithTimeout", "adds", "the", "timeout", "to", "the", "post", "apps", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/post_apps_parameters.go#L79-L82", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/post_apps_parameters.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext adds the context to the post apps params", "docstring_tokens": ["WithContext", "adds", "the", "context", "to", "the", "post", "apps", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/post_apps_parameters.go#L90-L93", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/post_apps_parameters.go", "func_name": "WithHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHTTPClient adds the HTTPClient to the post apps params", "docstring_tokens": ["WithHTTPClient", "adds", "the", "HTTPClient", "to", "the", "post", "apps", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/post_apps_parameters.go#L101-L104", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/post_apps_parameters.go", "func_name": "WithBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBody adds the body to the post apps params", "docstring_tokens": ["WithBody", "adds", "the", "body", "to", "the", "post", "apps", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/post_apps_parameters.go#L112-L115", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/get_apps_app_parameters.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout adds the timeout to the get apps app params", "docstring_tokens": ["WithTimeout", "adds", "the", "timeout", "to", "the", "get", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/get_apps_app_parameters.go#L77-L80", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/get_apps_app_parameters.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext adds the context to the get apps app params", "docstring_tokens": ["WithContext", "adds", "the", "context", "to", "the", "get", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/get_apps_app_parameters.go#L88-L91", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/get_apps_app_parameters.go", "func_name": "WithHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHTTPClient adds the HTTPClient to the get apps app params", "docstring_tokens": ["WithHTTPClient", "adds", "the", "HTTPClient", "to", "the", "get", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/get_apps_app_parameters.go#L99-L102", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/get_apps_app_parameters.go", "func_name": "WithApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithApp adds the app to the get apps app params", "docstring_tokens": ["WithApp", "adds", "the", "app", "to", "the", "get", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/get_apps_app_parameters.go#L110-L113", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "models/route_wrapper.go", "func_name": "UnmarshalBinary", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalBinary interface implementation", "docstring_tokens": ["UnmarshalBinary", "interface", "implementation"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/models/route_wrapper.go#L105-L112", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/get_apps_parameters.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout adds the timeout to the get apps params", "docstring_tokens": ["WithTimeout", "adds", "the", "timeout", "to", "the", "get", "apps", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/get_apps_parameters.go#L70-L73", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/get_apps_parameters.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext adds the context to the get apps params", "docstring_tokens": ["WithContext", "adds", "the", "context", "to", "the", "get", "apps", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/get_apps_parameters.go#L81-L84", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/get_apps_parameters.go", "func_name": "WithHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHTTPClient adds the HTTPClient to the get apps params", "docstring_tokens": ["WithHTTPClient", "adds", "the", "HTTPClient", "to", "the", "get", "apps", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/get_apps_parameters.go#L92-L95", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/delete_apps_app_parameters.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout adds the timeout to the delete apps app params", "docstring_tokens": ["WithTimeout", "adds", "the", "timeout", "to", "the", "delete", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/delete_apps_app_parameters.go#L77-L80", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/delete_apps_app_parameters.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext adds the context to the delete apps app params", "docstring_tokens": ["WithContext", "adds", "the", "context", "to", "the", "delete", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/delete_apps_app_parameters.go#L88-L91", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/delete_apps_app_parameters.go", "func_name": "WithHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHTTPClient adds the HTTPClient to the delete apps app params", "docstring_tokens": ["WithHTTPClient", "adds", "the", "HTTPClient", "to", "the", "delete", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/delete_apps_app_parameters.go#L99-L102", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/delete_apps_app_parameters.go", "func_name": "WithApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithApp adds the app to the delete apps app params", "docstring_tokens": ["WithApp", "adds", "the", "app", "to", "the", "delete", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/delete_apps_app_parameters.go#L110-L113", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/patch_apps_app_routes_route_parameters.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout adds the timeout to the patch apps app routes route params", "docstring_tokens": ["WithTimeout", "adds", "the", "timeout", "to", "the", "patch", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/patch_apps_app_routes_route_parameters.go#L89-L92", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/patch_apps_app_routes_route_parameters.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext adds the context to the patch apps app routes route params", "docstring_tokens": ["WithContext", "adds", "the", "context", "to", "the", "patch", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/patch_apps_app_routes_route_parameters.go#L100-L103", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/patch_apps_app_routes_route_parameters.go", "func_name": "WithHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHTTPClient adds the HTTPClient to the patch apps app routes route params", "docstring_tokens": ["WithHTTPClient", "adds", "the", "HTTPClient", "to", "the", "patch", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/patch_apps_app_routes_route_parameters.go#L111-L114", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/patch_apps_app_routes_route_parameters.go", "func_name": "WithApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithApp adds the app to the patch apps app routes route params", "docstring_tokens": ["WithApp", "adds", "the", "app", "to", "the", "patch", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/patch_apps_app_routes_route_parameters.go#L122-L125", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/patch_apps_app_routes_route_parameters.go", "func_name": "WithBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBody adds the body to the patch apps app routes route params", "docstring_tokens": ["WithBody", "adds", "the", "body", "to", "the", "patch", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/patch_apps_app_routes_route_parameters.go#L133-L136", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/patch_apps_app_routes_route_parameters.go", "func_name": "WithRoute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithRoute adds the route to the patch apps app routes route params", "docstring_tokens": ["WithRoute", "adds", "the", "route", "to", "the", "patch", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/patch_apps_app_routes_route_parameters.go#L144-L147", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/post_apps_app_routes_parameters.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout adds the timeout to the post apps app routes params", "docstring_tokens": ["WithTimeout", "adds", "the", "timeout", "to", "the", "post", "apps", "app", "routes", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/post_apps_app_routes_parameters.go#L84-L87", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/post_apps_app_routes_parameters.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext adds the context to the post apps app routes params", "docstring_tokens": ["WithContext", "adds", "the", "context", "to", "the", "post", "apps", "app", "routes", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/post_apps_app_routes_parameters.go#L95-L98", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/post_apps_app_routes_parameters.go", "func_name": "WithHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHTTPClient adds the HTTPClient to the post apps app routes params", "docstring_tokens": ["WithHTTPClient", "adds", "the", "HTTPClient", "to", "the", "post", "apps", "app", "routes", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/post_apps_app_routes_parameters.go#L106-L109", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/post_apps_app_routes_parameters.go", "func_name": "WithApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithApp adds the app to the post apps app routes params", "docstring_tokens": ["WithApp", "adds", "the", "app", "to", "the", "post", "apps", "app", "routes", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/post_apps_app_routes_parameters.go#L117-L120", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/post_apps_app_routes_parameters.go", "func_name": "WithBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBody adds the body to the post apps app routes params", "docstring_tokens": ["WithBody", "adds", "the", "body", "to", "the", "post", "apps", "app", "routes", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/post_apps_app_routes_parameters.go#L128-L131", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/put_apps_app_routes_route_parameters.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout adds the timeout to the put apps app routes route params", "docstring_tokens": ["WithTimeout", "adds", "the", "timeout", "to", "the", "put", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/put_apps_app_routes_route_parameters.go#L76-L79", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/put_apps_app_routes_route_parameters.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext adds the context to the put apps app routes route params", "docstring_tokens": ["WithContext", "adds", "the", "context", "to", "the", "put", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/put_apps_app_routes_route_parameters.go#L87-L90", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/put_apps_app_routes_route_parameters.go", "func_name": "WithApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithApp adds the app to the put apps app routes route params", "docstring_tokens": ["WithApp", "adds", "the", "app", "to", "the", "put", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/put_apps_app_routes_route_parameters.go#L98-L101", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/put_apps_app_routes_route_parameters.go", "func_name": "WithBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBody adds the body to the put apps app routes route params", "docstring_tokens": ["WithBody", "adds", "the", "body", "to", "the", "put", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/put_apps_app_routes_route_parameters.go#L109-L112", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/put_apps_app_routes_route_parameters.go", "func_name": "WithRoute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithRoute adds the route to the put apps app routes route params", "docstring_tokens": ["WithRoute", "adds", "the", "route", "to", "the", "put", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/put_apps_app_routes_route_parameters.go#L120-L123", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/get_apps_app_routes_parameters.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout adds the timeout to the get apps app routes params", "docstring_tokens": ["WithTimeout", "adds", "the", "timeout", "to", "the", "get", "apps", "app", "routes", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/get_apps_app_routes_parameters.go#L77-L80", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/get_apps_app_routes_parameters.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext adds the context to the get apps app routes params", "docstring_tokens": ["WithContext", "adds", "the", "context", "to", "the", "get", "apps", "app", "routes", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/get_apps_app_routes_parameters.go#L88-L91", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/get_apps_app_routes_parameters.go", "func_name": "WithHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHTTPClient adds the HTTPClient to the get apps app routes params", "docstring_tokens": ["WithHTTPClient", "adds", "the", "HTTPClient", "to", "the", "get", "apps", "app", "routes", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/get_apps_app_routes_parameters.go#L99-L102", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/get_apps_app_routes_parameters.go", "func_name": "WithApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithApp adds the app to the get apps app routes params", "docstring_tokens": ["WithApp", "adds", "the", "app", "to", "the", "get", "apps", "app", "routes", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/get_apps_app_routes_parameters.go#L110-L113", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/patch_apps_app_parameters.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout adds the timeout to the patch apps app params", "docstring_tokens": ["WithTimeout", "adds", "the", "timeout", "to", "the", "patch", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/patch_apps_app_parameters.go#L84-L87", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/patch_apps_app_parameters.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext adds the context to the patch apps app params", "docstring_tokens": ["WithContext", "adds", "the", "context", "to", "the", "patch", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/patch_apps_app_parameters.go#L95-L98", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/patch_apps_app_parameters.go", "func_name": "WithHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHTTPClient adds the HTTPClient to the patch apps app params", "docstring_tokens": ["WithHTTPClient", "adds", "the", "HTTPClient", "to", "the", "patch", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/patch_apps_app_parameters.go#L106-L109", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/patch_apps_app_parameters.go", "func_name": "WithApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithApp adds the app to the patch apps app params", "docstring_tokens": ["WithApp", "adds", "the", "app", "to", "the", "patch", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/patch_apps_app_parameters.go#L117-L120", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/patch_apps_app_parameters.go", "func_name": "WithBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBody adds the body to the patch apps app params", "docstring_tokens": ["WithBody", "adds", "the", "body", "to", "the", "patch", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/patch_apps_app_parameters.go#L128-L131", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/put_apps_app_parameters.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout adds the timeout to the put apps app params", "docstring_tokens": ["WithTimeout", "adds", "the", "timeout", "to", "the", "put", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/put_apps_app_parameters.go#L71-L74", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/put_apps_app_parameters.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext adds the context to the put apps app params", "docstring_tokens": ["WithContext", "adds", "the", "context", "to", "the", "put", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/put_apps_app_parameters.go#L82-L85", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/put_apps_app_parameters.go", "func_name": "WithApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithApp adds the app to the put apps app params", "docstring_tokens": ["WithApp", "adds", "the", "app", "to", "the", "put", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/put_apps_app_parameters.go#L93-L96", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/apps/put_apps_app_parameters.go", "func_name": "WithBody", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithBody adds the body to the put apps app params", "docstring_tokens": ["WithBody", "adds", "the", "body", "to", "the", "put", "apps", "app", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/apps/put_apps_app_parameters.go#L104-L107", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "models/task.go", "func_name": "UnmarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UnmarshalJSON unmarshals this object from a JSON structure", "docstring_tokens": ["UnmarshalJSON", "unmarshals", "this", "object", "from", "a", "JSON", "structure"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/models/task.go#L25-L40", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "models/task.go", "func_name": "MarshalJSON", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MarshalJSON marshals this object to a JSON structure", "docstring_tokens": ["MarshalJSON", "marshals", "this", "object", "to", "a", "JSON", "structure"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/models/task.go#L43-L59", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "models/task.go", "func_name": "Validate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Validate validates this task", "docstring_tokens": ["Validate", "validates", "this", "task"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/models/task.go#L62-L77", "partition": "test"} +{"repo": "gopistolet/gospf", "path": "spf.go", "func_name": "GetRanges", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRanges composes the CIDR IP ranges following RFC 4632 and RFC 4291\n// of the given IPs, with a given IPv4 CIDR and IPv6 CIDR", "docstring_tokens": ["GetRanges", "composes", "the", "CIDR", "IP", "ranges", "following", "RFC", "4632", "and", "RFC", "4291", "of", "the", "given", "IPs", "with", "a", "given", "IPv4", "CIDR", "and", "IPv6", "CIDR"], "sha": "a58dd1fcbf509d558a6809c54defbce6872c40c5", "url": "https://github.com/gopistolet/gospf/blob/a58dd1fcbf509d558a6809c54defbce6872c40c5/spf.go#L483-L519", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/get_apps_app_routes_route_parameters.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout adds the timeout to the get apps app routes route params", "docstring_tokens": ["WithTimeout", "adds", "the", "timeout", "to", "the", "get", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/get_apps_app_routes_route_parameters.go#L82-L85", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/get_apps_app_routes_route_parameters.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext adds the context to the get apps app routes route params", "docstring_tokens": ["WithContext", "adds", "the", "context", "to", "the", "get", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/get_apps_app_routes_route_parameters.go#L93-L96", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/get_apps_app_routes_route_parameters.go", "func_name": "WithHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHTTPClient adds the HTTPClient to the get apps app routes route params", "docstring_tokens": ["WithHTTPClient", "adds", "the", "HTTPClient", "to", "the", "get", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/get_apps_app_routes_route_parameters.go#L104-L107", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/get_apps_app_routes_route_parameters.go", "func_name": "WithApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithApp adds the app to the get apps app routes route params", "docstring_tokens": ["WithApp", "adds", "the", "app", "to", "the", "get", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/get_apps_app_routes_route_parameters.go#L115-L118", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/get_apps_app_routes_route_parameters.go", "func_name": "WithRoute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithRoute adds the route to the get apps app routes route params", "docstring_tokens": ["WithRoute", "adds", "the", "route", "to", "the", "get", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/get_apps_app_routes_route_parameters.go#L126-L129", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/functions_client.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new functions client", "docstring_tokens": ["New", "creates", "a", "new", "functions", "client"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/functions_client.go#L57-L70", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/functions_client.go", "func_name": "SetTransport", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetTransport changes the transport on the client and all its subresources", "docstring_tokens": ["SetTransport", "changes", "the", "transport", "on", "the", "client", "and", "all", "its", "subresources"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/functions_client.go#L125-L136", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/delete_apps_app_routes_route_parameters.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout adds the timeout to the delete apps app routes route params", "docstring_tokens": ["WithTimeout", "adds", "the", "timeout", "to", "the", "delete", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/delete_apps_app_routes_route_parameters.go#L82-L85", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/delete_apps_app_routes_route_parameters.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext adds the context to the delete apps app routes route params", "docstring_tokens": ["WithContext", "adds", "the", "context", "to", "the", "delete", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/delete_apps_app_routes_route_parameters.go#L93-L96", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/delete_apps_app_routes_route_parameters.go", "func_name": "WithHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHTTPClient adds the HTTPClient to the delete apps app routes route params", "docstring_tokens": ["WithHTTPClient", "adds", "the", "HTTPClient", "to", "the", "delete", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/delete_apps_app_routes_route_parameters.go#L104-L107", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/delete_apps_app_routes_route_parameters.go", "func_name": "WithApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithApp adds the app to the delete apps app routes route params", "docstring_tokens": ["WithApp", "adds", "the", "app", "to", "the", "delete", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/delete_apps_app_routes_route_parameters.go#L115-L118", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/routes/delete_apps_app_routes_route_parameters.go", "func_name": "WithRoute", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithRoute adds the route to the delete apps app routes route params", "docstring_tokens": ["WithRoute", "adds", "the", "route", "to", "the", "delete", "apps", "app", "routes", "route", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/routes/delete_apps_app_routes_route_parameters.go#L126-L129", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/tasks/get_tasks_parameters.go", "func_name": "WithTimeout", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithTimeout adds the timeout to the get tasks params", "docstring_tokens": ["WithTimeout", "adds", "the", "timeout", "to", "the", "get", "tasks", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/tasks/get_tasks_parameters.go#L70-L73", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/tasks/get_tasks_parameters.go", "func_name": "WithContext", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithContext adds the context to the get tasks params", "docstring_tokens": ["WithContext", "adds", "the", "context", "to", "the", "get", "tasks", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/tasks/get_tasks_parameters.go#L81-L84", "partition": "test"} +{"repo": "iron-io/functions_go", "path": "client/tasks/get_tasks_parameters.go", "func_name": "WithHTTPClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WithHTTPClient adds the HTTPClient to the get tasks params", "docstring_tokens": ["WithHTTPClient", "adds", "the", "HTTPClient", "to", "the", "get", "tasks", "params"], "sha": "91b84f5bbb17095bf1c7028ec6e70a3dc06a5893", "url": "https://github.com/iron-io/functions_go/blob/91b84f5bbb17095bf1c7028ec6e70a3dc06a5893/client/tasks/get_tasks_parameters.go#L92-L95", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "api/valuestore_GEN_.go", "func_name": "NewValueStore", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewValueStore creates a ValueStore connection via grpc to the given\n// address.", "docstring_tokens": ["NewValueStore", "creates", "a", "ValueStore", "connection", "via", "grpc", "to", "the", "given", "address", "."], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/api/valuestore_GEN_.go#L44-L97", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "api/valuestore_GEN_.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close will shutdown outgoing connectivity and stop all background\n// goroutines; note that the valueStore is no longer usable after a call to\n// Close, including using Startup.", "docstring_tokens": ["Close", "will", "shutdown", "outgoing", "connectivity", "and", "stop", "all", "background", "goroutines", ";", "note", "that", "the", "valueStore", "is", "no", "longer", "usable", "after", "a", "call", "to", "Close", "including", "using", "Startup", "."], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/api/valuestore_GEN_.go#L151-L156", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "oort/oort.go", "func_name": "SetBackend", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//SetBackend sets the current backend", "docstring_tokens": ["SetBackend", "sets", "the", "current", "backend"], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/oort/oort.go#L77-L81", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "oort/oort.go", "func_name": "Ring", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Ring returns an instance of the current Ring", "docstring_tokens": ["Ring", "returns", "an", "instance", "of", "the", "current", "Ring"], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/oort/oort.go#L94-L98", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "oort/oort.go", "func_name": "GetLocalID", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetLocalID returns the current local id", "docstring_tokens": ["GetLocalID", "returns", "the", "current", "local", "id"], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/oort/oort.go#L101-L105", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "oort/oort.go", "func_name": "GetListenAddr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetListenAddr returns the current localnode.address2 instance", "docstring_tokens": ["GetListenAddr", "returns", "the", "current", "localnode", ".", "address2", "instance"], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/oort/oort.go#L108-L112", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "api/groupreplstore_GEN_.go", "func_name": "Startup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Startup is not required to use the ReplGroupStore; it will automatically\n// connect to backend stores as needed. However, if you'd like to use the ring\n// service to receive ring updates and have the ReplGroupStore automatically\n// update itself accordingly, Startup will launch a connector to that service.\n// Otherwise, you will need to call SetRing yourself to inform the\n// ReplGroupStore of which backends to connect to.", "docstring_tokens": ["Startup", "is", "not", "required", "to", "use", "the", "ReplGroupStore", ";", "it", "will", "automatically", "connect", "to", "backend", "stores", "as", "needed", ".", "However", "if", "you", "d", "like", "to", "use", "the", "ring", "service", "to", "receive", "ring", "updates", "and", "have", "the", "ReplGroupStore", "automatically", "update", "itself", "accordingly", "Startup", "will", "launch", "a", "connector", "to", "that", "service", ".", "Otherwise", "you", "will", "need", "to", "call", "SetRing", "yourself", "to", "inform", "the", "ReplGroupStore", "of", "which", "backends", "to", "connect", "to", "."], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/api/groupreplstore_GEN_.go#L356-L364", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "oort/cmdctrl.go", "func_name": "shutdownFinished", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// shutdownFinished closes the shutdownComplete channel\n// 10 miliseconds after being invoked (to give a cmd ctrl client\n// a chance to return.", "docstring_tokens": ["shutdownFinished", "closes", "the", "shutdownComplete", "channel", "10", "miliseconds", "after", "being", "invoked", "(", "to", "give", "a", "cmd", "ctrl", "client", "a", "chance", "to", "return", "."], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/oort/cmdctrl.go#L106-L109", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "oort/cmdctrl.go", "func_name": "Stop", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stop the backend and shutdown all listeners.\n// Does NOT exist the process.", "docstring_tokens": ["Stop", "the", "backend", "and", "shutdown", "all", "listeners", ".", "Does", "NOT", "exist", "the", "process", "."], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/oort/cmdctrl.go#L113-L125", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "oort/cmdctrl.go", "func_name": "Exit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exit the backend and shutdown all listeners.\n// Closes the ShutdownComplete chan when finsihed.", "docstring_tokens": ["Exit", "the", "backend", "and", "shutdown", "all", "listeners", ".", "Closes", "the", "ShutdownComplete", "chan", "when", "finsihed", "."], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/oort/cmdctrl.go#L129-L144", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "oort/cmdctrl.go", "func_name": "SelfUpgrade", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SelfUpgrade deploys an updated binary to disk using cmdctrl.GithubUpdater", "docstring_tokens": ["SelfUpgrade", "deploys", "an", "updated", "binary", "to", "disk", "using", "cmdctrl", ".", "GithubUpdater"], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/oort/cmdctrl.go#L147-L155", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "oort/cmdctrl.go", "func_name": "SoftwareVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SoftwareVersion returns the version of the currently running instance", "docstring_tokens": ["SoftwareVersion", "returns", "the", "version", "of", "the", "currently", "running", "instance"], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/oort/cmdctrl.go#L158-L162", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "api/groupstore_GEN_.go", "func_name": "Shutdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Shutdown will close any existing connections; note that Startup may\n// automatically get called with any further activity, but it will use a new\n// connection. To ensure the groupStore has no further activity, use Close.", "docstring_tokens": ["Shutdown", "will", "close", "any", "existing", "connections", ";", "note", "that", "Startup", "may", "automatically", "get", "called", "with", "any", "further", "activity", "but", "it", "will", "use", "a", "new", "connection", ".", "To", "ensure", "the", "groupStore", "has", "no", "further", "activity", "use", "Close", "."], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/api/groupstore_GEN_.go#L161-L166", "partition": "test"} +{"repo": "jayeshsolanki93/devgorant", "path": "devrant.go", "func_name": "Rant", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetches a rant and its comments given a valid rant id", "docstring_tokens": ["Fetches", "a", "rant", "and", "its", "comments", "given", "a", "valid", "rant", "id"], "sha": "69fb03e5c3b1da904aacf77240e04d85dd8e1c3c", "url": "https://github.com/jayeshsolanki93/devgorant/blob/69fb03e5c3b1da904aacf77240e04d85dd8e1c3c/devrant.go#L50-L62", "partition": "test"} +{"repo": "jayeshsolanki93/devgorant", "path": "devrant.go", "func_name": "Profile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetches ranter's profile data", "docstring_tokens": ["Fetches", "ranter", "s", "profile", "data"], "sha": "69fb03e5c3b1da904aacf77240e04d85dd8e1c3c", "url": "https://github.com/jayeshsolanki93/devgorant/blob/69fb03e5c3b1da904aacf77240e04d85dd8e1c3c/devrant.go#L65-L81", "partition": "test"} +{"repo": "jayeshsolanki93/devgorant", "path": "devrant.go", "func_name": "Search", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Search for rants matching the search term", "docstring_tokens": ["Search", "for", "rants", "matching", "the", "search", "term"], "sha": "69fb03e5c3b1da904aacf77240e04d85dd8e1c3c", "url": "https://github.com/jayeshsolanki93/devgorant/blob/69fb03e5c3b1da904aacf77240e04d85dd8e1c3c/devrant.go#L84-L96", "partition": "test"} +{"repo": "jayeshsolanki93/devgorant", "path": "devrant.go", "func_name": "Surprise", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns a random rant", "docstring_tokens": ["Returns", "a", "random", "rant"], "sha": "69fb03e5c3b1da904aacf77240e04d85dd8e1c3c", "url": "https://github.com/jayeshsolanki93/devgorant/blob/69fb03e5c3b1da904aacf77240e04d85dd8e1c3c/devrant.go#L99-L111", "partition": "test"} +{"repo": "jayeshsolanki93/devgorant", "path": "devrant.go", "func_name": "WeeklyRants", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the rants tagged for 'weekly'", "docstring_tokens": ["Returns", "the", "rants", "tagged", "for", "weekly"], "sha": "69fb03e5c3b1da904aacf77240e04d85dd8e1c3c", "url": "https://github.com/jayeshsolanki93/devgorant/blob/69fb03e5c3b1da904aacf77240e04d85dd8e1c3c/devrant.go#L114-L126", "partition": "test"} +{"repo": "jayeshsolanki93/devgorant", "path": "devrant.go", "func_name": "getUserId", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fetches the userId given a valid username", "docstring_tokens": ["Fetches", "the", "userId", "given", "a", "valid", "username"], "sha": "69fb03e5c3b1da904aacf77240e04d85dd8e1c3c", "url": "https://github.com/jayeshsolanki93/devgorant/blob/69fb03e5c3b1da904aacf77240e04d85dd8e1c3c/devrant.go#L129-L141", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "api/valuereplstore_GEN_.go", "func_name": "Shutdown", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Shutdown will close all connections to backend stores and shutdown any\n// running ring service connector. Note that the ReplValueStore can still be\n// used after Shutdown, it will just start reconnecting to backends again. To\n// relaunch the ring service connector, you will need to call Startup.", "docstring_tokens": ["Shutdown", "will", "close", "all", "connections", "to", "backend", "stores", "and", "shutdown", "any", "running", "ring", "service", "connector", ".", "Note", "that", "the", "ReplValueStore", "can", "still", "be", "used", "after", "Shutdown", "it", "will", "just", "start", "reconnecting", "to", "backends", "again", ".", "To", "relaunch", "the", "ring", "service", "connector", "you", "will", "need", "to", "call", "Startup", "."], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/api/valuereplstore_GEN_.go#L370-L392", "partition": "test"} +{"repo": "pandemicsyn/oort", "path": "oort/config.go", "func_name": "FExists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FExists true if a file or dir exists", "docstring_tokens": ["FExists", "true", "if", "a", "file", "or", "dir", "exists"], "sha": "fca1d3baddc1d944387cc8bbe8b21f911ec9091b", "url": "https://github.com/pandemicsyn/oort/blob/fca1d3baddc1d944387cc8bbe8b21f911ec9091b/oort/config.go#L19-L24", "partition": "test"} +{"repo": "shaleman/libOpenflow", "path": "util/stream.go", "func_name": "outbound", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Listen for a Shutdown signal or Outbound messages.", "docstring_tokens": ["Listen", "for", "a", "Shutdown", "signal", "or", "Outbound", "messages", "."], "sha": "ef74a407cc85370620a5515d627580b20f18a582", "url": "https://github.com/shaleman/libOpenflow/blob/ef74a407cc85370620a5515d627580b20f18a582/util/stream.go#L78-L97", "partition": "test"} +{"repo": "shaleman/libOpenflow", "path": "util/stream.go", "func_name": "parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse incoming message", "docstring_tokens": ["Parse", "incoming", "message"], "sha": "ef74a407cc85370620a5515d627580b20f18a582", "url": "https://github.com/shaleman/libOpenflow/blob/ef74a407cc85370620a5515d627580b20f18a582/util/stream.go#L145-L159", "partition": "test"} +{"repo": "blacksails/cgp", "path": "group.go", "func_name": "Group", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Group creates a Group type from a domain, with the given name and members", "docstring_tokens": ["Group", "creates", "a", "Group", "type", "from", "a", "domain", "with", "the", "given", "name", "and", "members"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/group.go#L18-L20", "partition": "test"} +{"repo": "blacksails/cgp", "path": "group.go", "func_name": "Groups", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Groups lists the groups of a domain", "docstring_tokens": ["Groups", "lists", "the", "groups", "of", "a", "domain"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/group.go#L28-L44", "partition": "test"} +{"repo": "blacksails/cgp", "path": "group.go", "func_name": "GetGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetGroup retrieves a group from a domain with the given group name", "docstring_tokens": ["GetGroup", "retrieves", "a", "group", "from", "a", "domain", "with", "the", "given", "group", "name"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/group.go#L52-L76", "partition": "test"} +{"repo": "fcavani/text", "path": "util.go", "func_name": "Reticence", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Reticence trucate the string in the space or on pontuation mark and put\n// reticences in the resulting string.", "docstring_tokens": ["Reticence", "trucate", "the", "string", "in", "the", "space", "or", "on", "pontuation", "mark", "and", "put", "reticences", "in", "the", "resulting", "string", "."], "sha": "023e76809b57fc8cfc80c855ba59537720821cb5", "url": "https://github.com/fcavani/text/blob/023e76809b57fc8cfc80c855ba59537720821cb5/util.go#L27-L77", "partition": "test"} +{"repo": "fcavani/text", "path": "validation.go", "func_name": "CheckPassword", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Check the user password. Graphics character are allowed. See unicode.IsGraphic.", "docstring_tokens": ["Check", "the", "user", "password", ".", "Graphics", "character", "are", "allowed", ".", "See", "unicode", ".", "IsGraphic", "."], "sha": "023e76809b57fc8cfc80c855ba59537720821cb5", "url": "https://github.com/fcavani/text/blob/023e76809b57fc8cfc80c855ba59537720821cb5/validation.go#L84-L94", "partition": "test"} +{"repo": "fcavani/text", "path": "validation.go", "func_name": "CleanUrl", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CleanUrl check the characteres in url and parser it with url.Parse.\n// If url is ok return one string with it or if the scheme is missing\n// return the url and an error.", "docstring_tokens": ["CleanUrl", "check", "the", "characteres", "in", "url", "and", "parser", "it", "with", "url", ".", "Parse", ".", "If", "url", "is", "ok", "return", "one", "string", "with", "it", "or", "if", "the", "scheme", "is", "missing", "return", "the", "url", "and", "an", "error", "."], "sha": "023e76809b57fc8cfc80c855ba59537720821cb5", "url": "https://github.com/fcavani/text/blob/023e76809b57fc8cfc80c855ba59537720821cb5/validation.go#L193-L206", "partition": "test"} +{"repo": "mota/klash", "path": "parameter.go", "func_name": "NewParameter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// A capacity of 2 seems to be a good guess for the number of aliases.", "docstring_tokens": ["A", "capacity", "of", "2", "seems", "to", "be", "a", "good", "guess", "for", "the", "number", "of", "aliases", "."], "sha": "ca6c37a4c8c2e69831c428cf0c6daac80ab56c22", "url": "https://github.com/mota/klash/blob/ca6c37a4c8c2e69831c428cf0c6daac80ab56c22/parameter.go#L21-L27", "partition": "test"} +{"repo": "mota/klash", "path": "params.go", "func_name": "MakeParams", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Params store the mapping of ParamName -> Parameter for the given structure.\n// Since multiple names can be affected to a single parameter, multiple\n// keys can be associated with a single parameter.", "docstring_tokens": ["Params", "store", "the", "mapping", "of", "ParamName", "-", ">", "Parameter", "for", "the", "given", "structure", ".", "Since", "multiple", "names", "can", "be", "affected", "to", "a", "single", "parameter", "multiple", "keys", "can", "be", "associated", "with", "a", "single", "parameter", "."], "sha": "ca6c37a4c8c2e69831c428cf0c6daac80ab56c22", "url": "https://github.com/mota/klash/blob/ca6c37a4c8c2e69831c428cf0c6daac80ab56c22/params.go#L17-L22", "partition": "test"} +{"repo": "mota/klash", "path": "params.go", "func_name": "Parse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Parse discovers the given parameters structure and associates the structure's\n// field names with their values into the Params structure.", "docstring_tokens": ["Parse", "discovers", "the", "given", "parameters", "structure", "and", "associates", "the", "structure", "s", "field", "names", "with", "their", "values", "into", "the", "Params", "structure", "."], "sha": "ca6c37a4c8c2e69831c428cf0c6daac80ab56c22", "url": "https://github.com/mota/klash/blob/ca6c37a4c8c2e69831c428cf0c6daac80ab56c22/params.go#L41-L70", "partition": "test"} +{"repo": "blacksails/cgp", "path": "forwarder.go", "func_name": "Email", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Email returns the forwarder email on the primary domain", "docstring_tokens": ["Email", "returns", "the", "forwarder", "email", "on", "the", "primary", "domain"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/forwarder.go#L16-L18", "partition": "test"} +{"repo": "blacksails/cgp", "path": "forwarder.go", "func_name": "Forwarder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Forwarder returns a forwarder type with the given from and dest", "docstring_tokens": ["Forwarder", "returns", "a", "forwarder", "type", "with", "the", "given", "from", "and", "dest"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/forwarder.go#L21-L23", "partition": "test"} +{"repo": "blacksails/cgp", "path": "forwarder.go", "func_name": "Forwarders", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Forwarders lists the forwarders of a domain", "docstring_tokens": ["Forwarders", "lists", "the", "forwarders", "of", "a", "domain"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/forwarder.go#L31-L47", "partition": "test"} +{"repo": "blacksails/cgp", "path": "forwarder.go", "func_name": "GetForwarder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetForwarder retreives a forwarder with the given name", "docstring_tokens": ["GetForwarder", "retreives", "a", "forwarder", "with", "the", "given", "name"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/forwarder.go#L55-L62", "partition": "test"} +{"repo": "blacksails/cgp", "path": "cgp.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New returns a new Communigate Pro client", "docstring_tokens": ["New", "returns", "a", "new", "Communigate", "Pro", "client"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/cgp.go#L11-L13", "partition": "test"} +{"repo": "fcavani/text", "path": "escape.go", "func_name": "EscapeCommaSeparated", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//EscapeCommaSeparated escapes the args and make a comma separeted list with it.", "docstring_tokens": ["EscapeCommaSeparated", "escapes", "the", "args", "and", "make", "a", "comma", "separeted", "list", "with", "it", "."], "sha": "023e76809b57fc8cfc80c855ba59537720821cb5", "url": "https://github.com/fcavani/text/blob/023e76809b57fc8cfc80c855ba59537720821cb5/escape.go#L15-L27", "partition": "test"} +{"repo": "blacksails/cgp", "path": "alias.go", "func_name": "Alias", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Alias creates an Alias type from an account", "docstring_tokens": ["Alias", "creates", "an", "Alias", "type", "from", "an", "account"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/alias.go#L15-L17", "partition": "test"} +{"repo": "blacksails/cgp", "path": "alias.go", "func_name": "Email", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Email returns the alias email on the primary domain name", "docstring_tokens": ["Email", "returns", "the", "alias", "email", "on", "the", "primary", "domain", "name"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/alias.go#L20-L22", "partition": "test"} +{"repo": "blacksails/cgp", "path": "alias.go", "func_name": "Aliases", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Aliases lists the aliases of an account", "docstring_tokens": ["Aliases", "lists", "the", "aliases", "of", "an", "account"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/alias.go#L30-L42", "partition": "test"} +{"repo": "blacksails/cgp", "path": "account.go", "func_name": "RealName", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// RealName return the real name of the account as registered", "docstring_tokens": ["RealName", "return", "the", "real", "name", "of", "the", "account", "as", "registered"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/account.go#L20-L27", "partition": "test"} +{"repo": "blacksails/cgp", "path": "account.go", "func_name": "Email", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Email returns the primary email of the account", "docstring_tokens": ["Email", "returns", "the", "primary", "email", "of", "the", "account"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/account.go#L30-L32", "partition": "test"} +{"repo": "blacksails/cgp", "path": "account.go", "func_name": "Account", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Account returns an account type with the given name", "docstring_tokens": ["Account", "returns", "an", "account", "type", "with", "the", "given", "name"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/account.go#L35-L37", "partition": "test"} +{"repo": "blacksails/cgp", "path": "account.go", "func_name": "Accounts", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Accounts lists the acounts of a domain", "docstring_tokens": ["Accounts", "lists", "the", "acounts", "of", "a", "domain"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/account.go#L53-L65", "partition": "test"} +{"repo": "blacksails/cgp", "path": "domain.go", "func_name": "Exists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Exists returns true if the domain", "docstring_tokens": ["Exists", "returns", "true", "if", "the", "domain"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/domain.go#L17-L27", "partition": "test"} +{"repo": "blacksails/cgp", "path": "domain.go", "func_name": "Aliases", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Aliases returns a list of domain aliases", "docstring_tokens": ["Aliases", "returns", "a", "list", "of", "domain", "aliases"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/domain.go#L35-L42", "partition": "test"} +{"repo": "blacksails/cgp", "path": "domain.go", "func_name": "Domain", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Domain creates a domain type with the given name", "docstring_tokens": ["Domain", "creates", "a", "domain", "type", "with", "the", "given", "name"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/domain.go#L49-L51", "partition": "test"} +{"repo": "blacksails/cgp", "path": "domain.go", "func_name": "Domains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Domains lists the domains on the server", "docstring_tokens": ["Domains", "lists", "the", "domains", "on", "the", "server"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/domain.go#L54-L66", "partition": "test"} +{"repo": "marcuswestin/go-errs", "path": "errs.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new Err with the given Info and optional public message", "docstring_tokens": ["New", "creates", "a", "new", "Err", "with", "the", "given", "Info", "and", "optional", "public", "message"], "sha": "b09b17aacd5a8213690bc30f9ccfe7400be7b380", "url": "https://github.com/marcuswestin/go-errs/blob/b09b17aacd5a8213690bc30f9ccfe7400be7b380/errs.go#L79-L81", "partition": "test"} +{"repo": "marcuswestin/go-errs", "path": "errs.go", "func_name": "Wrap", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wrap the given error in an errs.Err. If err is nil, Wrap returns nil.\n// Use Err.WrappedError for direct access to the wrapped error.", "docstring_tokens": ["Wrap", "the", "given", "error", "in", "an", "errs", ".", "Err", ".", "If", "err", "is", "nil", "Wrap", "returns", "nil", ".", "Use", "Err", ".", "WrappedError", "for", "direct", "access", "to", "the", "wrapped", "error", "."], "sha": "b09b17aacd5a8213690bc30f9ccfe7400be7b380", "url": "https://github.com/marcuswestin/go-errs/blob/b09b17aacd5a8213690bc30f9ccfe7400be7b380/errs.go#L85-L100", "partition": "test"} +{"repo": "marcuswestin/go-errs", "path": "errs.go", "func_name": "mergeIn", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge in the given info and public message parts into this error", "docstring_tokens": ["Merge", "in", "the", "given", "info", "and", "public", "message", "parts", "into", "this", "error"], "sha": "b09b17aacd5a8213690bc30f9ccfe7400be7b380", "url": "https://github.com/marcuswestin/go-errs/blob/b09b17aacd5a8213690bc30f9ccfe7400be7b380/errs.go#L173-L188", "partition": "test"} +{"repo": "marcuswestin/go-errs", "path": "errs.go", "func_name": "wrappedErrStr", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get the string representation of the wrapper error,\n// or an empty string if wrappedErr is nil", "docstring_tokens": ["Get", "the", "string", "representation", "of", "the", "wrapper", "error", "or", "an", "empty", "string", "if", "wrappedErr", "is", "nil"], "sha": "b09b17aacd5a8213690bc30f9ccfe7400be7b380", "url": "https://github.com/marcuswestin/go-errs/blob/b09b17aacd5a8213690bc30f9ccfe7400be7b380/errs.go#L192-L200", "partition": "test"} +{"repo": "marcuswestin/go-errs", "path": "errs.go", "func_name": "concatArgs", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Helper to concatenate arguments into a string,\n// with spaces between the arguments", "docstring_tokens": ["Helper", "to", "concatenate", "arguments", "into", "a", "string", "with", "spaces", "between", "the", "arguments"], "sha": "b09b17aacd5a8213690bc30f9ccfe7400be7b380", "url": "https://github.com/marcuswestin/go-errs/blob/b09b17aacd5a8213690bc30f9ccfe7400be7b380/errs.go#L204-L207", "partition": "test"} +{"repo": "blacksails/cgp", "path": "mailing_list.go", "func_name": "MailingList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MailingList creates a MailingList type from a domain, with the given name", "docstring_tokens": ["MailingList", "creates", "a", "MailingList", "type", "from", "a", "domain", "with", "the", "given", "name"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/mailing_list.go#L15-L17", "partition": "test"} +{"repo": "blacksails/cgp", "path": "mailing_list.go", "func_name": "Subscriber", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subscriber create a Subscriber type from a MalingList, with the given email\n// and name", "docstring_tokens": ["Subscriber", "create", "a", "Subscriber", "type", "from", "a", "MalingList", "with", "the", "given", "email", "and", "name"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/mailing_list.go#L28-L30", "partition": "test"} +{"repo": "blacksails/cgp", "path": "mailing_list.go", "func_name": "Subscribers", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Subscribers returns a list of subscriber of a mailing list.", "docstring_tokens": ["Subscribers", "returns", "a", "list", "of", "subscriber", "of", "a", "mailing", "list", "."], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/mailing_list.go#L42-L55", "partition": "test"} +{"repo": "blacksails/cgp", "path": "mailing_list.go", "func_name": "MailingLists", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MailingLists lists the mailing lists of a domain", "docstring_tokens": ["MailingLists", "lists", "the", "mailing", "lists", "of", "a", "domain"], "sha": "570ac705cf2d7a9235d911d00b6f976ab3386c2f", "url": "https://github.com/blacksails/cgp/blob/570ac705cf2d7a9235d911d00b6f976ab3386c2f/mailing_list.go#L63-L75", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/item.go", "func_name": "NewByteKeyItem", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewByteKeyItem creates a new item from bytes", "docstring_tokens": ["NewByteKeyItem", "creates", "a", "new", "item", "from", "bytes"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/item.go#L46-L49", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/item.go", "func_name": "CompareBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CompareBytes is a byte item comparator", "docstring_tokens": ["CompareBytes", "is", "a", "byte", "item", "comparator"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/item.go#L52-L56", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/item.go", "func_name": "CompareInt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CompareInt is a helper integer item comparator", "docstring_tokens": ["CompareInt", "is", "a", "helper", "integer", "item", "comparator"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/item.go#L69-L73", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "mm/malloc.go", "func_name": "Malloc", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Malloc implements C like memory allocator", "docstring_tokens": ["Malloc", "implements", "C", "like", "memory", "allocator"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/mm/malloc.go#L36-L41", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "mm/malloc.go", "func_name": "Free", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Free implements C like memory deallocator", "docstring_tokens": ["Free", "implements", "C", "like", "memory", "deallocator"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/mm/malloc.go#L44-L49", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "mm/malloc.go", "func_name": "Stats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stats returns allocator statistics\n// Returns jemalloc stats", "docstring_tokens": ["Stats", "returns", "allocator", "statistics", "Returns", "jemalloc", "stats"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/mm/malloc.go#L53-L70", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "mm/malloc.go", "func_name": "FreeOSMemory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FreeOSMemory forces jemalloc to scrub memory and release back to OS", "docstring_tokens": ["FreeOSMemory", "forces", "jemalloc", "to", "scrub", "memory", "and", "release", "back", "to", "OS"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/mm/malloc.go#L78-L85", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/builder.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add an item into skiplist segment", "docstring_tokens": ["Add", "an", "item", "into", "skiplist", "segment"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/builder.go#L36-L55", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/builder.go", "func_name": "NewSegment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewSegment creates a new skiplist segment", "docstring_tokens": ["NewSegment", "creates", "a", "new", "skiplist", "segment"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/builder.go#L68-L76", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/builder.go", "func_name": "Assemble", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Assemble multiple skiplist segments and form a parent skiplist", "docstring_tokens": ["Assemble", "multiple", "skiplist", "segments", "and", "form", "a", "parent", "skiplist"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/builder.go#L79-L112", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nodetable/table.go", "func_name": "CompareNodeTable", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CompareNodeTable implements comparator for nodetable instances", "docstring_tokens": ["CompareNodeTable", "implements", "comparator", "for", "nodetable", "instances"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nodetable/table.go#L58-L60", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nodetable/table.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a nodetable instance", "docstring_tokens": ["New", "creates", "a", "nodetable", "instance"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nodetable/table.go#L80-L93", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nodetable/table.go", "func_name": "Stats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Stats returns nodetable statistics", "docstring_tokens": ["Stats", "returns", "nodetable", "statistics"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nodetable/table.go#L96-L102", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nodetable/table.go", "func_name": "MemoryInUse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MemoryInUse returns memory used by nodetable instance", "docstring_tokens": ["MemoryInUse", "returns", "memory", "used", "by", "nodetable", "instance"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nodetable/table.go#L105-L107", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nodetable/table.go", "func_name": "Get", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Get returns node pointer for the lookup key", "docstring_tokens": ["Get", "returns", "node", "pointer", "for", "the", "lookup", "key"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nodetable/table.go#L110-L120", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nodetable/table.go", "func_name": "Update", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Update inserts or replaces an existing entry", "docstring_tokens": ["Update", "inserts", "or", "replaces", "an", "existing", "entry"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nodetable/table.go#L123-L159", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nodetable/table.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove an item from the nodetable", "docstring_tokens": ["Remove", "an", "item", "from", "the", "nodetable"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nodetable/table.go#L162-L209", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nodetable/table.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close destroys the nodetable", "docstring_tokens": ["Close", "destroys", "the", "nodetable"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nodetable/table.go#L273-L283", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nodetable/table.go", "func_name": "MemoryInUse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MemoryInUse returns total memory used by nodetables in a process", "docstring_tokens": ["MemoryInUse", "returns", "total", "memory", "used", "by", "nodetables", "in", "a", "process"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nodetable/table.go#L286-L296", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/node_alloc_amd64.go", "func_name": "debugMarkFree", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Fill free blocks with a const\n// This can help debugging of memory reclaimer bugs", "docstring_tokens": ["Fill", "free", "blocks", "with", "a", "const", "This", "can", "help", "debugging", "of", "memory", "reclaimer", "bugs"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/node_alloc_amd64.go#L276-L285", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "iterator.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek to a specified key or the next bigger one if an item with key does not\n// exist.", "docstring_tokens": ["Seek", "to", "a", "specified", "key", "or", "the", "next", "bigger", "one", "if", "an", "item", "with", "key", "does", "not", "exist", "."], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/iterator.go#L48-L52", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "iterator.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next moves iterator cursor to the next item", "docstring_tokens": ["Next", "moves", "iterator", "cursor", "to", "the", "next", "item"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/iterator.go#L70-L78", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "iterator.go", "func_name": "Refresh", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Refresh is a helper API to call refresh accessor tokens manually\n// This would enable SMR to reclaim objects faster if an iterator is\n// alive for a longer duration of time.", "docstring_tokens": ["Refresh", "is", "a", "helper", "API", "to", "call", "refresh", "accessor", "tokens", "manually", "This", "would", "enable", "SMR", "to", "reclaim", "objects", "faster", "if", "an", "iterator", "is", "alive", "for", "a", "longer", "duration", "of", "time", "."], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/iterator.go#L83-L90", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "iterator.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close executes destructor for iterator", "docstring_tokens": ["Close", "executes", "destructor", "for", "iterator"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/iterator.go#L100-L104", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "iterator.go", "func_name": "NewIterator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewIterator creates an iterator for a Nitro snapshot", "docstring_tokens": ["NewIterator", "creates", "an", "iterator", "for", "a", "Nitro", "snapshot"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/iterator.go#L107-L117", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/merger.go", "func_name": "SeekFirst", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SeekFirst moves cursor to the first item", "docstring_tokens": ["SeekFirst", "moves", "cursor", "to", "the", "first", "item"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/merger.go#L53-L64", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/merger.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next moves cursor to the next item", "docstring_tokens": ["Next", "moves", "cursor", "to", "the", "next", "item"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/merger.go#L72-L86", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/merger.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek moves cursor to the specified item, if present", "docstring_tokens": ["Seek", "moves", "cursor", "to", "the", "specified", "item", "if", "present"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/merger.go#L89-L105", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nodelist.go", "func_name": "Keys", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Keys returns all keys from the node list", "docstring_tokens": ["Keys", "returns", "all", "keys", "from", "the", "node", "list"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nodelist.go#L30-L39", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nodelist.go", "func_name": "Remove", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Remove a key from the node list", "docstring_tokens": ["Remove", "a", "key", "from", "the", "node", "list"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nodelist.go#L42-L61", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nodelist.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add a key into the node list", "docstring_tokens": ["Add", "a", "key", "into", "the", "node", "list"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nodelist.go#L64-L67", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/skiplist.go", "func_name": "NewWithConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWithConfig creates a config from given config", "docstring_tokens": ["NewWithConfig", "creates", "a", "config", "from", "given", "config"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/skiplist.go#L85-L121", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/skiplist.go", "func_name": "FreeNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FreeNode deallocates the skiplist node memory", "docstring_tokens": ["FreeNode", "deallocates", "the", "skiplist", "node", "memory"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/skiplist.go#L129-L132", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/skiplist.go", "func_name": "MakeBuf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MakeBuf creates an action buffer", "docstring_tokens": ["MakeBuf", "creates", "an", "action", "buffer"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/skiplist.go#L141-L146", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/skiplist.go", "func_name": "Size", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Size returns the size of a node", "docstring_tokens": ["Size", "returns", "the", "size", "of", "a", "node"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/skiplist.go#L153-L155", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/skiplist.go", "func_name": "NewLevel", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLevel returns a random level for the next node", "docstring_tokens": ["NewLevel", "returns", "a", "random", "level", "for", "the", "next", "node"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/skiplist.go#L158-L178", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/skiplist.go", "func_name": "Insert", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Insert adds an item into the skiplist", "docstring_tokens": ["Insert", "adds", "an", "item", "into", "the", "skiplist"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/skiplist.go#L232-L236", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/skiplist.go", "func_name": "Insert2", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Insert2 is a more verbose version of Insert", "docstring_tokens": ["Insert2", "is", "a", "more", "verbose", "version", "of", "Insert"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/skiplist.go#L239-L243", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/skiplist.go", "func_name": "Insert3", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Insert3 is more verbose version of Insert2", "docstring_tokens": ["Insert3", "is", "more", "verbose", "version", "of", "Insert2"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/skiplist.go#L246-L304", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/skiplist.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete an item from the skiplist", "docstring_tokens": ["Delete", "an", "item", "from", "the", "skiplist"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/skiplist.go#L324-L336", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/skiplist.go", "func_name": "DeleteNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DeleteNode an item from the skiplist by specifying its node", "docstring_tokens": ["DeleteNode", "an", "item", "from", "the", "skiplist", "by", "specifying", "its", "node"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/skiplist.go#L339-L345", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/skiplist.go", "func_name": "GetRangeSplitItems", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetRangeSplitItems returns `nways` split range pivots of the skiplist items\n// Explicit barrier and release should be used by the caller before\n// and after this function call", "docstring_tokens": ["GetRangeSplitItems", "returns", "nways", "split", "range", "pivots", "of", "the", "skiplist", "items", "Explicit", "barrier", "and", "release", "should", "be", "used", "by", "the", "caller", "before", "and", "after", "this", "function", "call"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/skiplist.go#L360-L390", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "item.go", "func_name": "Bytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Bytes return item data bytes", "docstring_tokens": ["Bytes", "return", "item", "data", "bytes"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/item.go#L96-L105", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "item.go", "func_name": "ItemSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ItemSize returns total bytes consumed by item representation", "docstring_tokens": ["ItemSize", "returns", "total", "bytes", "consumed", "by", "item", "representation"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/item.go#L108-L111", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "item.go", "func_name": "KVFromBytes", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// KVFromBytes extracts key-value pair from item bytes returned by iterator", "docstring_tokens": ["KVFromBytes", "extracts", "key", "-", "value", "pair", "from", "item", "bytes", "returned", "by", "iterator"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/item.go#L126-L129", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "item.go", "func_name": "CompareKV", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CompareKV is a comparator for KV item", "docstring_tokens": ["CompareKV", "is", "a", "comparator", "for", "KV", "item"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/item.go#L132-L137", "partition": "test"} +{"repo": "intelsdi-x/gomit", "path": "event_controller.go", "func_name": "Emit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Emits an Event from the EventController. Takes an EventBody which is used\n// to build an Event. Returns number of handlers that\n// received the event and error if an error was raised.", "docstring_tokens": ["Emits", "an", "Event", "from", "the", "EventController", ".", "Takes", "an", "EventBody", "which", "is", "used", "to", "build", "an", "Event", ".", "Returns", "number", "of", "handlers", "that", "received", "the", "event", "and", "error", "if", "an", "error", "was", "raised", "."], "sha": "286c3ad6599724faed681cd18a9ff595b00d9f3f", "url": "https://github.com/intelsdi-x/gomit/blob/286c3ad6599724faed681cd18a9ff595b00d9f3f/event_controller.go#L66-L84", "partition": "test"} +{"repo": "intelsdi-x/gomit", "path": "event_controller.go", "func_name": "UnregisterHandler", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Unregisters Handler from the EventController. This is idempotent where if a Handler is\n// not registered no error is returned.", "docstring_tokens": ["Unregisters", "Handler", "from", "the", "EventController", ".", "This", "is", "idempotent", "where", "if", "a", "Handler", "is", "not", "registered", "no", "error", "is", "returned", "."], "sha": "286c3ad6599724faed681cd18a9ff595b00d9f3f", "url": "https://github.com/intelsdi-x/gomit/blob/286c3ad6599724faed681cd18a9ff595b00d9f3f/event_controller.go#L104-L111", "partition": "test"} +{"repo": "intelsdi-x/gomit", "path": "event_controller.go", "func_name": "IsHandlerRegistered", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns bool on whether the Handler is registered with this EventController.", "docstring_tokens": ["Returns", "bool", "on", "whether", "the", "Handler", "is", "registered", "with", "this", "EventController", "."], "sha": "286c3ad6599724faed681cd18a9ff595b00d9f3f", "url": "https://github.com/intelsdi-x/gomit/blob/286c3ad6599724faed681cd18a9ff595b00d9f3f/event_controller.go#L114-L117", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "CompareNitro", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CompareNitro implements comparator for Nitro instances based on its id", "docstring_tokens": ["CompareNitro", "implements", "comparator", "for", "Nitro", "instances", "based", "on", "its", "id"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L79-L84", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "DefaultConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DefaultConfig - Nitro configuration", "docstring_tokens": ["DefaultConfig", "-", "Nitro", "configuration"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L87-L94", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete an item\n// Delete always succeed if an item exists.", "docstring_tokens": ["Delete", "an", "item", "Delete", "always", "succeed", "if", "an", "item", "exists", "."], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L220-L223", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "GetNode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetNode implements lookup of an item and return its skiplist Node\n// This API enables to lookup an item without using a snapshot handle.", "docstring_tokens": ["GetNode", "implements", "lookup", "of", "an", "item", "and", "return", "its", "skiplist", "Node", "This", "API", "enables", "to", "lookup", "an", "item", "without", "using", "a", "snapshot", "handle", "."], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L269-L281", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "SetKeyComparator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SetKeyComparator provides key comparator for the Nitro item data", "docstring_tokens": ["SetKeyComparator", "provides", "key", "comparator", "for", "the", "Nitro", "item", "data"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L300-L305", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "UseMemoryMgmt", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// UseMemoryMgmt provides custom memory allocator for Nitro items storage", "docstring_tokens": ["UseMemoryMgmt", "provides", "custom", "memory", "allocator", "for", "Nitro", "items", "storage"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L308-L314", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "NewWithConfig", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWithConfig creates a new Nitro instance based on provided configuration.", "docstring_tokens": ["NewWithConfig", "creates", "a", "new", "Nitro", "instance", "based", "on", "provided", "configuration", "."], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L354-L374", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "MemoryInUse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MemoryInUse returns total memory used by the Nitro instance.", "docstring_tokens": ["MemoryInUse", "returns", "total", "memory", "used", "by", "the", "Nitro", "instance", "."], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L410-L413", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "Close", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Close shuts down the nitro instance", "docstring_tokens": ["Close", "shuts", "down", "the", "nitro", "instance"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L416-L465", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "NewWriter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWriter creates a Nitro writer", "docstring_tokens": ["NewWriter", "creates", "a", "Nitro", "writer"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L485-L499", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "SnapshotSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SnapshotSize returns the memory used by Nitro snapshot metadata", "docstring_tokens": ["SnapshotSize", "returns", "the", "memory", "used", "by", "Nitro", "snapshot", "metadata"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L512-L516", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "Encode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Encode implements Binary encoder for snapshot metadata", "docstring_tokens": ["Encode", "implements", "Binary", "encoder", "for", "snapshot", "metadata"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L524-L537", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "Decode", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Decode implements binary decoder for snapshot metadata", "docstring_tokens": ["Decode", "implements", "binary", "decoder", "for", "snapshot", "metadata"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L540-L546", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "Open", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Open implements reference couting and garbage collection for snapshots\n// When snapshots are shared by multiple threads, each thread should Open the\n// snapshot. This API internally tracks the reference count for the snapshot.", "docstring_tokens": ["Open", "implements", "reference", "couting", "and", "garbage", "collection", "for", "snapshots", "When", "snapshots", "are", "shared", "by", "multiple", "threads", "each", "thread", "should", "Open", "the", "snapshot", ".", "This", "API", "internally", "tracks", "the", "reference", "count", "for", "the", "snapshot", "."], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L551-L557", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "CompareSnapshot", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CompareSnapshot implements comparator for snapshots based on snapshot number", "docstring_tokens": ["CompareSnapshot", "implements", "comparator", "for", "snapshots", "based", "on", "snapshot", "number"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L581-L586", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "GC", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GC implements manual garbage collection of Nitro snapshots.", "docstring_tokens": ["GC", "implements", "manual", "garbage", "collection", "of", "Nitro", "snapshots", "."], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L702-L707", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "GetSnapshots", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetSnapshots returns the list of current live snapshots\n// This API is mainly for debugging purpose", "docstring_tokens": ["GetSnapshots", "returns", "the", "list", "of", "current", "live", "snapshots", "This", "API", "is", "mainly", "for", "debugging", "purpose"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L711-L722", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "nitro.go", "func_name": "MemoryInUse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// MemoryInUse returns total memory used by all Nitro instances in the current process", "docstring_tokens": ["MemoryInUse", "returns", "total", "memory", "used", "by", "all", "Nitro", "instances", "in", "the", "current", "process"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/nitro.go#L1184-L1194", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/access_barrier.go", "func_name": "CompareBS", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CompareBS is a barrier session comparator based on seqno", "docstring_tokens": ["CompareBS", "is", "a", "barrier", "session", "comparator", "based", "on", "seqno"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/access_barrier.go#L77-L82", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/access_barrier.go", "func_name": "Acquire", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Acquire marks enter of an accessor in the skiplist", "docstring_tokens": ["Acquire", "marks", "enter", "of", "an", "accessor", "in", "the", "skiplist"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/access_barrier.go#L141-L155", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/access_barrier.go", "func_name": "Release", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Release marks leaving of an accessor in the skiplist", "docstring_tokens": ["Release", "marks", "leaving", "of", "an", "accessor", "in", "the", "skiplist"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/access_barrier.go#L158-L176", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/access_barrier.go", "func_name": "FlushSession", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FlushSession closes the current barrier session and starts the new session.\n// The caller should provide the destructor pointer for the new session.", "docstring_tokens": ["FlushSession", "closes", "the", "current", "barrier", "session", "and", "starts", "the", "new", "session", ".", "The", "caller", "should", "provide", "the", "destructor", "pointer", "for", "the", "new", "session", "."], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/access_barrier.go#L180-L196", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/stats.go", "func_name": "Apply", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Apply updates the report with provided paritial stats", "docstring_tokens": ["Apply", "updates", "the", "report", "with", "provided", "paritial", "stats"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/stats.go#L30-L50", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/stats.go", "func_name": "AddInt64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddInt64 provides atomic add", "docstring_tokens": ["AddInt64", "provides", "atomic", "add"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/stats.go#L70-L76", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/stats.go", "func_name": "AddUint64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddUint64 provides atomic add", "docstring_tokens": ["AddUint64", "provides", "atomic", "add"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/stats.go#L79-L85", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/stats.go", "func_name": "Merge", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Merge updates global stats with partial stats and resets partial stats", "docstring_tokens": ["Merge", "updates", "global", "stats", "with", "partial", "stats", "and", "resets", "partial", "stats"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/stats.go#L88-L108", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/stats.go", "func_name": "GetStats", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// GetStats returns skiplist stats", "docstring_tokens": ["GetStats", "returns", "skiplist", "stats"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/stats.go#L134-L138", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/iterator.go", "func_name": "NewIterator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewIterator creates an iterator for skiplist", "docstring_tokens": ["NewIterator", "creates", "an", "iterator", "for", "skiplist"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/iterator.go#L28-L37", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/iterator.go", "func_name": "SeekFirst", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SeekFirst moves cursor to the start", "docstring_tokens": ["SeekFirst", "moves", "cursor", "to", "the", "start"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/iterator.go#L40-L44", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/iterator.go", "func_name": "SeekWithCmp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// SeekWithCmp moves iterator to a provided item by using custom comparator", "docstring_tokens": ["SeekWithCmp", "moves", "iterator", "to", "a", "provided", "item", "by", "using", "custom", "comparator"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/iterator.go#L47-L59", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/iterator.go", "func_name": "Seek", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Seek moves iterator to a provided item", "docstring_tokens": ["Seek", "moves", "iterator", "to", "a", "provided", "item"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/iterator.go#L62-L68", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/iterator.go", "func_name": "Valid", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Valid returns true when iterator reaches the end", "docstring_tokens": ["Valid", "returns", "true", "when", "iterator", "reaches", "the", "end"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/iterator.go#L71-L77", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/iterator.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Delete removes the current item from the skiplist", "docstring_tokens": ["Delete", "removes", "the", "current", "item", "from", "the", "skiplist"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/iterator.go#L90-L96", "partition": "test"} +{"repo": "t3rm1n4l/nitro", "path": "skiplist/iterator.go", "func_name": "Next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Next moves iterator to the next item", "docstring_tokens": ["Next", "moves", "iterator", "to", "the", "next", "item"], "sha": "937fe99f63a01a8bea7661c49e2f3f8af6541d7c", "url": "https://github.com/t3rm1n4l/nitro/blob/937fe99f63a01a8bea7661c49e2f3f8af6541d7c/skiplist/iterator.go#L99-L128", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "skus/m1small/types.go", "func_name": "Init", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Init - externally available init method", "docstring_tokens": ["Init", "-", "externally", "available", "init", "method"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/skus/m1small/types.go#L31-L35", "partition": "test"} +{"repo": "getantibody/folder", "path": "main.go", "func_name": "FromURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// FromURL converts the given URL to a folder name", "docstring_tokens": ["FromURL", "converts", "the", "given", "URL", "to", "a", "folder", "name"], "sha": "e65aa38ebeb03e6d6e91b90a637f3b7c17e1b6d6", "url": "https://github.com/getantibody/folder/blob/e65aa38ebeb03e6d6e91b90a637f3b7c17e1b6d6/main.go#L12-L18", "partition": "test"} +{"repo": "getantibody/folder", "path": "main.go", "func_name": "ToURL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// ToURL converts the given folder to an URL", "docstring_tokens": ["ToURL", "converts", "the", "given", "folder", "to", "an", "URL"], "sha": "e65aa38ebeb03e6d6e91b90a637f3b7c17e1b6d6", "url": "https://github.com/getantibody/folder/blob/e65aa38ebeb03e6d6e91b90a637f3b7c17e1b6d6/main.go#L21-L27", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "header.go", "func_name": "Size", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Size returns the Version 1 header size plus the size of all the offsets", "docstring_tokens": ["Size", "returns", "the", "Version", "1", "header", "size", "plus", "the", "size", "of", "all", "the", "offsets"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/header.go#L36-L38", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "header.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo writes the TupleHeader into the given writer.", "docstring_tokens": ["WriteTo", "writes", "the", "TupleHeader", "into", "the", "given", "writer", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/header.go#L41-L96", "partition": "test"} +{"repo": "insionng/martini", "path": "static.go", "func_name": "Static", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Static returns a middleware handler that serves static files in the given directory.", "docstring_tokens": ["Static", "returns", "a", "middleware", "handler", "that", "serves", "static", "files", "in", "the", "given", "directory", "."], "sha": "2d0ba5dc75fe9549c10e2f71927803a11e5e4957", "url": "https://github.com/insionng/martini/blob/2d0ba5dc75fe9549c10e2f71927803a11e5e4957/static.go#L46-L112", "partition": "test"} +{"repo": "ccding/go-config-reader", "path": "config/config.go", "func_name": "Read", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Read function reads configurations from the file defined in\n// Config.filename.", "docstring_tokens": ["Read", "function", "reads", "configurations", "from", "the", "file", "defined", "in", "Config", ".", "filename", "."], "sha": "8b6c2b50197f20da3b1c5944c274c173634dc056", "url": "https://github.com/ccding/go-config-reader/blob/8b6c2b50197f20da3b1c5944c274c173634dc056/config/config.go#L66-L102", "partition": "test"} +{"repo": "ccding/go-config-reader", "path": "config/config.go", "func_name": "Del", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Del function deletes a key from the configuration.", "docstring_tokens": ["Del", "function", "deletes", "a", "key", "from", "the", "configuration", "."], "sha": "8b6c2b50197f20da3b1c5944c274c173634dc056", "url": "https://github.com/ccding/go-config-reader/blob/8b6c2b50197f20da3b1c5944c274c173634dc056/config/config.go#L131-L139", "partition": "test"} +{"repo": "ccding/go-config-reader", "path": "config/config.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo function writes the configuration to a new file. This function\n// re-organizes the configuration and deletes all the comments.", "docstring_tokens": ["WriteTo", "function", "writes", "the", "configuration", "to", "a", "new", "file", ".", "This", "function", "re", "-", "organizes", "the", "configuration", "and", "deletes", "all", "the", "comments", "."], "sha": "8b6c2b50197f20da3b1c5944c274c173634dc056", "url": "https://github.com/ccding/go-config-reader/blob/8b6c2b50197f20da3b1c5944c274c173634dc056/config/config.go#L148-L161", "partition": "test"} +{"repo": "ccding/go-config-reader", "path": "config/config.go", "func_name": "checkSection", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// To check this line is a section or not. If it is not a section, it returns\n// \"\".", "docstring_tokens": ["To", "check", "this", "line", "is", "a", "section", "or", "not", ".", "If", "it", "is", "not", "a", "section", "it", "returns", "."], "sha": "8b6c2b50197f20da3b1c5944c274c173634dc056", "url": "https://github.com/ccding/go-config-reader/blob/8b6c2b50197f20da3b1c5944c274c173634dc056/config/config.go#L165-L175", "partition": "test"} +{"repo": "ccding/go-config-reader", "path": "config/config.go", "func_name": "checkLine", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// To check this line is a valid key-value pair or not.", "docstring_tokens": ["To", "check", "this", "line", "is", "a", "valid", "key", "-", "value", "pair", "or", "not", "."], "sha": "8b6c2b50197f20da3b1c5944c274c173634dc056", "url": "https://github.com/ccding/go-config-reader/blob/8b6c2b50197f20da3b1c5944c274c173634dc056/config/config.go#L178-L188", "partition": "test"} +{"repo": "ccding/go-config-reader", "path": "config/config.go", "func_name": "checkComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// To check this line is a whole line comment or not.", "docstring_tokens": ["To", "check", "this", "line", "is", "a", "whole", "line", "comment", "or", "not", "."], "sha": "8b6c2b50197f20da3b1c5944c274c173634dc056", "url": "https://github.com/ccding/go-config-reader/blob/8b6c2b50197f20da3b1c5944c274c173634dc056/config/config.go#L191-L199", "partition": "test"} +{"repo": "urandom/handler", "path": "response_wrapper.go", "func_name": "NewResponseWrapper", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewResponseWrapper creates a new wrapper. The passed http.ResponseWriter is\n// used in case the wrapper needs to be hijacked.", "docstring_tokens": ["NewResponseWrapper", "creates", "a", "new", "wrapper", ".", "The", "passed", "http", ".", "ResponseWriter", "is", "used", "in", "case", "the", "wrapper", "needs", "to", "be", "hijacked", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/response_wrapper.go#L25-L27", "partition": "test"} +{"repo": "urandom/handler", "path": "response_wrapper.go", "func_name": "Hijack", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Hijack tries to use the original http.ResponseWriter for hijacking. If the\n// original writer doesn't implement http.Hijacker, it returns an error.", "docstring_tokens": ["Hijack", "tries", "to", "use", "the", "original", "http", ".", "ResponseWriter", "for", "hijacking", ".", "If", "the", "original", "writer", "doesn", "t", "implement", "http", ".", "Hijacker", "it", "returns", "an", "error", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/response_wrapper.go#L31-L43", "partition": "test"} +{"repo": "urandom/handler", "path": "response_wrapper.go", "func_name": "CloseNotify", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// CloseNotify tries to use the original http.ResponseWriter for close\n// notification. If the original writer doesn't implement http.CloseNotifier,\n// it returns a channel that will never close.", "docstring_tokens": ["CloseNotify", "tries", "to", "use", "the", "original", "http", ".", "ResponseWriter", "for", "close", "notification", ".", "If", "the", "original", "writer", "doesn", "t", "implement", "http", ".", "CloseNotifier", "it", "returns", "a", "channel", "that", "will", "never", "close", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/response_wrapper.go#L48-L55", "partition": "test"} +{"repo": "urandom/handler", "path": "log/access.go", "func_name": "DateFormat", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// DateFormat is used to format the timestamp.", "docstring_tokens": ["DateFormat", "is", "used", "to", "format", "the", "timestamp", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/log/access.go#L36-L40", "partition": "test"} +{"repo": "lucas-clemente/go-http-logger", "path": "logger.go", "func_name": "Logger", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Logger returns a new logger to be wrapped around your main http.Handler", "docstring_tokens": ["Logger", "returns", "a", "new", "logger", "to", "be", "wrapped", "around", "your", "main", "http", ".", "Handler"], "sha": "0ba07d157a1e5a262f5e7f5ee7bf37719fa8b5d9", "url": "https://github.com/lucas-clemente/go-http-logger/blob/0ba07d157a1e5a262f5e7f5ee7bf37719fa8b5d9/logger.go#L40-L71", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "service/available_inventory.go", "func_name": "GetAvailableInventory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetAvailableInventory - this should return available inventory and start a long task poller", "docstring_tokens": ["GetAvailableInventory", "-", "this", "should", "return", "available", "inventory", "and", "start", "a", "long", "task", "poller"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/service/available_inventory.go#L21-L28", "partition": "test"} +{"repo": "urandom/handler", "path": "auth/jwt.go", "func_name": "Expiration", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Expiration sets the expiration time of the auth token", "docstring_tokens": ["Expiration", "sets", "the", "expiration", "time", "of", "the", "auth", "token"], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/auth/jwt.go#L70-L74", "partition": "test"} +{"repo": "urandom/handler", "path": "auth/jwt.go", "func_name": "Claimer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Claimer is responsible for transforming a standard claims object into a\n// custom one.", "docstring_tokens": ["Claimer", "is", "responsible", "for", "transforming", "a", "standard", "claims", "object", "into", "a", "custom", "one", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/auth/jwt.go#L78-L82", "partition": "test"} +{"repo": "urandom/handler", "path": "auth/jwt.go", "func_name": "Issuer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Issuer sets the issuer in the standart claims object.", "docstring_tokens": ["Issuer", "sets", "the", "issuer", "in", "the", "standart", "claims", "object", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/auth/jwt.go#L85-L89", "partition": "test"} +{"repo": "urandom/handler", "path": "auth/jwt.go", "func_name": "User", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// User sets the query key from which to obtain the user.", "docstring_tokens": ["User", "sets", "the", "query", "key", "from", "which", "to", "obtain", "the", "user", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/auth/jwt.go#L92-L96", "partition": "test"} +{"repo": "urandom/handler", "path": "auth/jwt.go", "func_name": "Password", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Password sets the query key from which to obtain the password.", "docstring_tokens": ["Password", "sets", "the", "query", "key", "from", "which", "to", "obtain", "the", "password", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/auth/jwt.go#L99-L103", "partition": "test"} +{"repo": "urandom/handler", "path": "auth/jwt.go", "func_name": "Extractor", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Extractor extracts a token from a request", "docstring_tokens": ["Extractor", "extracts", "a", "token", "from", "a", "request"], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/auth/jwt.go#L106-L110", "partition": "test"} +{"repo": "urandom/handler", "path": "auth/jwt.go", "func_name": "TokenGenerator", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// TokenGenerator returns a handler that will read a username and password from\n// a request form, create a jwt token if they are valid, and store the signed\n// token in the request context for later consumption.\n//\n// If handler h is nil, the generated token will be written verbatim in the\n// response.", "docstring_tokens": ["TokenGenerator", "returns", "a", "handler", "that", "will", "read", "a", "username", "and", "password", "from", "a", "request", "form", "create", "a", "jwt", "token", "if", "they", "are", "valid", "and", "store", "the", "signed", "token", "in", "the", "request", "context", "for", "later", "consumption", ".", "If", "handler", "h", "is", "nil", "the", "generated", "token", "will", "be", "written", "verbatim", "in", "the", "response", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/auth/jwt.go#L141-L198", "partition": "test"} +{"repo": "urandom/handler", "path": "auth/jwt.go", "func_name": "Token", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Token returns the token string stored in the request context, or an empty\n// string.", "docstring_tokens": ["Token", "returns", "the", "token", "string", "stored", "in", "the", "request", "context", "or", "an", "empty", "string", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/auth/jwt.go#L328-L334", "partition": "test"} +{"repo": "urandom/handler", "path": "auth/jwt.go", "func_name": "Claims", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Claims returns the claims stored in the request", "docstring_tokens": ["Claims", "returns", "the", "claims", "stored", "in", "the", "request"], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/auth/jwt.go#L337-L343", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/lexer.go", "func_name": "String", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Used to print tokens", "docstring_tokens": ["Used", "to", "print", "tokens"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/lexer.go#L79-L90", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/lexer.go", "func_name": "NewLexer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewLexer creates a new scanner from the input", "docstring_tokens": ["NewLexer", "creates", "a", "new", "scanner", "from", "the", "input"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/lexer.go#L100-L107", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/lexer.go", "func_name": "run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Run lexes the input by executing state functions\n// until the state is nil", "docstring_tokens": ["Run", "lexes", "the", "input", "by", "executing", "state", "functions", "until", "the", "state", "is", "nil"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/lexer.go#L122-L126", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/lexer.go", "func_name": "emit", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// emit passes an item pack to the client", "docstring_tokens": ["emit", "passes", "an", "item", "pack", "to", "the", "client"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/lexer.go#L129-L139", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/lexer.go", "func_name": "skipWhitespace", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// skipWhitespace ignores all whitespace characters", "docstring_tokens": ["skipWhitespace", "ignores", "all", "whitespace", "characters"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/lexer.go#L153-L158", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/lexer.go", "func_name": "next", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// next advances the lexer position and returns the next rune. If the input\n// does not have any more runes, an `eof` is returned.", "docstring_tokens": ["next", "advances", "the", "lexer", "position", "and", "returns", "the", "next", "rune", ".", "If", "the", "input", "does", "not", "have", "any", "more", "runes", "an", "eof", "is", "returned", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/lexer.go#L162-L170", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/lexer.go", "func_name": "LineNum", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LineNum returns the current line based on the data processed so far", "docstring_tokens": ["LineNum", "returns", "the", "current", "line", "based", "on", "the", "data", "processed", "so", "far"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/lexer.go#L206-L208", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/lexer.go", "func_name": "Offset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Offset determines the character offset from the beginning of the current line", "docstring_tokens": ["Offset", "determines", "the", "character", "offset", "from", "the", "beginning", "of", "the", "current", "line"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/lexer.go#L211-L223", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/lexer.go", "func_name": "errorf", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// errorf returns an error token and terminates the scan\n// by passing back a nil pointer that will be the next\n// state thus terminating the lexer", "docstring_tokens": ["errorf", "returns", "an", "error", "token", "and", "terminates", "the", "scan", "by", "passing", "back", "a", "nil", "pointer", "that", "will", "be", "the", "next", "state", "thus", "terminating", "the", "lexer"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/lexer.go#L228-L231", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/lexer.go", "func_name": "lexText", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Main lexer loop", "docstring_tokens": ["Main", "lexer", "loop"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/lexer.go#L234-L288", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/lexer.go", "func_name": "lexComment", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Lexes a comment line", "docstring_tokens": ["Lexes", "a", "comment", "line"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/lexer.go#L291-L316", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "types.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New creates a new TupleType with the given namespace and type name", "docstring_tokens": ["New", "creates", "a", "new", "TupleType", "with", "the", "given", "namespace", "and", "type", "name"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/types.go#L31-L36", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "types.go", "func_name": "AddVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// AddVersion adds a version to the tuple type", "docstring_tokens": ["AddVersion", "adds", "a", "version", "to", "the", "tuple", "type"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/types.go#L39-L44", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "types.go", "func_name": "Contains", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Contains determines is a field exists in the TupleType", "docstring_tokens": ["Contains", "determines", "is", "a", "field", "exists", "in", "the", "TupleType"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/types.go#L47-L50", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "types.go", "func_name": "Offset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Offset determines the numerical offset for the given field", "docstring_tokens": ["Offset", "determines", "the", "numerical", "offset", "for", "the", "given", "field"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/types.go#L53-L56", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "types.go", "func_name": "Versions", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Versions returns an array of versions contained in this type", "docstring_tokens": ["Versions", "returns", "an", "array", "of", "versions", "contained", "in", "this", "type"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/types.go#L64-L70", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "taskmanager/task.go", "func_name": "SetPrivateMeta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//SetPrivateMeta - set a private meta data record", "docstring_tokens": ["SetPrivateMeta", "-", "set", "a", "private", "meta", "data", "record"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/taskmanager/task.go#L9-L15", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "taskmanager/task.go", "func_name": "SetPublicMeta", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//SetPublicMeta - set a public metadata record", "docstring_tokens": ["SetPublicMeta", "-", "set", "a", "public", "metadata", "record"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/taskmanager/task.go#L18-L23", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "taskmanager/task.go", "func_name": "GetRedactedVersion", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetRedactedVersion - returns a redacted version of this task, removing private info", "docstring_tokens": ["GetRedactedVersion", "-", "returns", "a", "redacted", "version", "of", "this", "task", "removing", "private", "info"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/taskmanager/task.go#L36-L49", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "taskmanager/task.go", "func_name": "Equal", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Equal - define task equality", "docstring_tokens": ["Equal", "-", "define", "task", "equality"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/taskmanager/task.go#L75-L82", "partition": "test"} +{"repo": "urandom/handler", "path": "method/verb.go", "func_name": "HTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// HTTP returns a handler that will check each request's method against a\n// predefined whitelist. If the request's method is not part of the list,\n// the response will be a 400 Bad Request.", "docstring_tokens": ["HTTP", "returns", "a", "handler", "that", "will", "check", "each", "request", "s", "method", "against", "a", "predefined", "whitelist", ".", "If", "the", "request", "s", "method", "is", "not", "part", "of", "the", "list", "the", "response", "will", "be", "a", "400", "Bad", "Request", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/method/verb.go#L19-L32", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "integers.go", "func_name": "PutUint8", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutUint8 sets an 8-bit unsigned value for the given string name. The field name must be a Uint8Field otherwise an error will be returned. If the type buffer no longer has enough space to write this value an xbinary.ErrOutOfRange error will be returned. Upon success 2 bytes should be written into the buffer and the returned error should be nil. The type code is written first then the byte value.", "docstring_tokens": ["PutUint8", "sets", "an", "8", "-", "bit", "unsigned", "value", "for", "the", "given", "string", "name", ".", "The", "field", "name", "must", "be", "a", "Uint8Field", "otherwise", "an", "error", "will", "be", "returned", ".", "If", "the", "type", "buffer", "no", "longer", "has", "enough", "space", "to", "write", "this", "value", "an", "xbinary", ".", "ErrOutOfRange", "error", "will", "be", "returned", ".", "Upon", "success", "2", "bytes", "should", "be", "written", "into", "the", "buffer", "and", "the", "returned", "error", "should", "be", "nil", ".", "The", "type", "code", "is", "written", "first", "then", "the", "byte", "value", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/integers.go#L10-L35", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "integers.go", "func_name": "PutInt8", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutInt8 sets an 8-bit signed value for the given string name. The field name must be an Int8Field otherwise an error will be returned. If the type buffer no longer has enough space to write this value, an xbinary.ErrOutOfRange error will be returned. Upon success, 2 bytes should be written into the buffer and the returned error should be nil. The type code is written first then the byte value.", "docstring_tokens": ["PutInt8", "sets", "an", "8", "-", "bit", "signed", "value", "for", "the", "given", "string", "name", ".", "The", "field", "name", "must", "be", "an", "Int8Field", "otherwise", "an", "error", "will", "be", "returned", ".", "If", "the", "type", "buffer", "no", "longer", "has", "enough", "space", "to", "write", "this", "value", "an", "xbinary", ".", "ErrOutOfRange", "error", "will", "be", "returned", ".", "Upon", "success", "2", "bytes", "should", "be", "written", "into", "the", "buffer", "and", "the", "returned", "error", "should", "be", "nil", ".", "The", "type", "code", "is", "written", "first", "then", "the", "byte", "value", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/integers.go#L38-L63", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "integers.go", "func_name": "PutUint16", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutUint16 sets a 16-bit unsigned value for the given field name.The field name must be a Uint16Field otherwise an error will be returned. If the type buffer no longer has enough space to write the value, an xbinary.ErrOutOfRange error will be returned. Upon success, the number of bytes written as well as a nil error will be returned. The type code will be writtn first. If the value is `< math.MaxUint8`, only 1 byte will be written. Otherwise, the entire 16-bit value will be written.", "docstring_tokens": ["PutUint16", "sets", "a", "16", "-", "bit", "unsigned", "value", "for", "the", "given", "field", "name", ".", "The", "field", "name", "must", "be", "a", "Uint16Field", "otherwise", "an", "error", "will", "be", "returned", ".", "If", "the", "type", "buffer", "no", "longer", "has", "enough", "space", "to", "write", "the", "value", "an", "xbinary", ".", "ErrOutOfRange", "error", "will", "be", "returned", ".", "Upon", "success", "the", "number", "of", "bytes", "written", "as", "well", "as", "a", "nil", "error", "will", "be", "returned", ".", "The", "type", "code", "will", "be", "writtn", "first", ".", "If", "the", "value", "is", "<", "math", ".", "MaxUint8", "only", "1", "byte", "will", "be", "written", ".", "Otherwise", "the", "entire", "16", "-", "bit", "value", "will", "be", "written", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/integers.go#L66-L114", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "integers.go", "func_name": "PutInt16", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutInt16 sets a 16-bit signed value for the given field name.The field name must be an Int16Field; otherwise, an error will be returned. If the type buffer no longer has enough space to write the value, an xbinary.ErrOutOfRange error will be returned. Upon success, the number of bytes written as well as a nil error will be returned. The type code will be written first. If the value is `< math.MaxUint8`, only 1 byte will be written. Otherwise, the entire 16-bit value will be written.", "docstring_tokens": ["PutInt16", "sets", "a", "16", "-", "bit", "signed", "value", "for", "the", "given", "field", "name", ".", "The", "field", "name", "must", "be", "an", "Int16Field", ";", "otherwise", "an", "error", "will", "be", "returned", ".", "If", "the", "type", "buffer", "no", "longer", "has", "enough", "space", "to", "write", "the", "value", "an", "xbinary", ".", "ErrOutOfRange", "error", "will", "be", "returned", ".", "Upon", "success", "the", "number", "of", "bytes", "written", "as", "well", "as", "a", "nil", "error", "will", "be", "returned", ".", "The", "type", "code", "will", "be", "written", "first", ".", "If", "the", "value", "is", "<", "math", ".", "MaxUint8", "only", "1", "byte", "will", "be", "written", ".", "Otherwise", "the", "entire", "16", "-", "bit", "value", "will", "be", "written", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/integers.go#L117-L165", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "integers.go", "func_name": "PutUint32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutUint32 sets a 32-bit unsigned value for the given field name. The field name must be a Uint32Field, otherwise, an error will be returned. If the type buffer no longer has enough space to write the value, an `xbinary.ErrOutOfRange` error will be returned. Upon success, the number of bytes written as well as a nil error will be returned. The type code will be written first. If the value is `< math.MaxUint8`, only 1 byte will be written. If the value is `< math.MaxUint16`, only 2 bytes will be written. Otherwise, the entire 32-bit value will be written.", "docstring_tokens": ["PutUint32", "sets", "a", "32", "-", "bit", "unsigned", "value", "for", "the", "given", "field", "name", ".", "The", "field", "name", "must", "be", "a", "Uint32Field", "otherwise", "an", "error", "will", "be", "returned", ".", "If", "the", "type", "buffer", "no", "longer", "has", "enough", "space", "to", "write", "the", "value", "an", "xbinary", ".", "ErrOutOfRange", "error", "will", "be", "returned", ".", "Upon", "success", "the", "number", "of", "bytes", "written", "as", "well", "as", "a", "nil", "error", "will", "be", "returned", ".", "The", "type", "code", "will", "be", "written", "first", ".", "If", "the", "value", "is", "<", "math", ".", "MaxUint8", "only", "1", "byte", "will", "be", "written", ".", "If", "the", "value", "is", "<", "math", ".", "MaxUint16", "only", "2", "bytes", "will", "be", "written", ".", "Otherwise", "the", "entire", "32", "-", "bit", "value", "will", "be", "written", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/integers.go#L168-L234", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "integers.go", "func_name": "PutInt32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutInt32 sets a 32-bit signed value for the given field name. The field name must be a Int32Field. Otherwise, an error will be returned. If the type buffer no longer has enough space to write the value, an `xbinary.ErrOutOfRange` error will be returned. Upon success, the number of bytes written as well as a nil error will be returned. The type code will be written first. If the absolute value is `< math.MaxUint8`, only 1 byte will be written. If the absolute value is `< math.MaxUint16`, only 2 bytes will be written. Otherwise, the entire 32-bit value will be written.", "docstring_tokens": ["PutInt32", "sets", "a", "32", "-", "bit", "signed", "value", "for", "the", "given", "field", "name", ".", "The", "field", "name", "must", "be", "a", "Int32Field", ".", "Otherwise", "an", "error", "will", "be", "returned", ".", "If", "the", "type", "buffer", "no", "longer", "has", "enough", "space", "to", "write", "the", "value", "an", "xbinary", ".", "ErrOutOfRange", "error", "will", "be", "returned", ".", "Upon", "success", "the", "number", "of", "bytes", "written", "as", "well", "as", "a", "nil", "error", "will", "be", "returned", ".", "The", "type", "code", "will", "be", "written", "first", ".", "If", "the", "absolute", "value", "is", "<", "math", ".", "MaxUint8", "only", "1", "byte", "will", "be", "written", ".", "If", "the", "absolute", "value", "is", "<", "math", ".", "MaxUint16", "only", "2", "bytes", "will", "be", "written", ".", "Otherwise", "the", "entire", "32", "-", "bit", "value", "will", "be", "written", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/integers.go#L237-L305", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "integers.go", "func_name": "PutUint64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutUint64 sets a 64-bit unsigned integer for the given field name. The field name must be a Uint64Field. Otherwise, an error will be returned. If the type buffer no longer has enough space to write the value, an `xbinary.ErrOutOfRange` error will be returned. Upon success, the number of bytes written as well as a nil error will be returned. The type code will be written first. If the absolute value is `< math.MaxUint8`, only 1 byte will be written. If the absolute value is `< math.MaxUint16`, only 2 bytes will be written. If the absolute value is `< math.MaxUint32`, only 4 bytes will be written. Otherwise, the entire 64-bit value will be written.", "docstring_tokens": ["PutUint64", "sets", "a", "64", "-", "bit", "unsigned", "integer", "for", "the", "given", "field", "name", ".", "The", "field", "name", "must", "be", "a", "Uint64Field", ".", "Otherwise", "an", "error", "will", "be", "returned", ".", "If", "the", "type", "buffer", "no", "longer", "has", "enough", "space", "to", "write", "the", "value", "an", "xbinary", ".", "ErrOutOfRange", "error", "will", "be", "returned", ".", "Upon", "success", "the", "number", "of", "bytes", "written", "as", "well", "as", "a", "nil", "error", "will", "be", "returned", ".", "The", "type", "code", "will", "be", "written", "first", ".", "If", "the", "absolute", "value", "is", "<", "math", ".", "MaxUint8", "only", "1", "byte", "will", "be", "written", ".", "If", "the", "absolute", "value", "is", "<", "math", ".", "MaxUint16", "only", "2", "bytes", "will", "be", "written", ".", "If", "the", "absolute", "value", "is", "<", "math", ".", "MaxUint32", "only", "4", "bytes", "will", "be", "written", ".", "Otherwise", "the", "entire", "64", "-", "bit", "value", "will", "be", "written", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/integers.go#L308-L395", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "integers.go", "func_name": "PutInt64", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutInt64 sets a 64-bit signed integer for the given field name. The field name must be a Int64Field. Otherwise, an error will be returned. If the type buffer no longer has enough space to write the value, an `xbinary.ErrOutOfRange` error will be returned. Upon success, the number of bytes written as well as a nil error will be returned. The type code will be written first. If the absolute value is `< math.MaxUint8`, only 1 byte will be written. If the absolute value is `< math.MaxUint16`, only 2 bytes will be written. If the absolute value is `< math.MaxUint32`, only 4 bytes will be written. Otherwise, the entire 64-bit value will be written.", "docstring_tokens": ["PutInt64", "sets", "a", "64", "-", "bit", "signed", "integer", "for", "the", "given", "field", "name", ".", "The", "field", "name", "must", "be", "a", "Int64Field", ".", "Otherwise", "an", "error", "will", "be", "returned", ".", "If", "the", "type", "buffer", "no", "longer", "has", "enough", "space", "to", "write", "the", "value", "an", "xbinary", ".", "ErrOutOfRange", "error", "will", "be", "returned", ".", "Upon", "success", "the", "number", "of", "bytes", "written", "as", "well", "as", "a", "nil", "error", "will", "be", "returned", ".", "The", "type", "code", "will", "be", "written", "first", ".", "If", "the", "absolute", "value", "is", "<", "math", ".", "MaxUint8", "only", "1", "byte", "will", "be", "written", ".", "If", "the", "absolute", "value", "is", "<", "math", ".", "MaxUint16", "only", "2", "bytes", "will", "be", "written", ".", "If", "the", "absolute", "value", "is", "<", "math", ".", "MaxUint32", "only", "4", "bytes", "will", "be", "written", ".", "Otherwise", "the", "entire", "64", "-", "bit", "value", "will", "be", "written", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/integers.go#L398-L486", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/ast.go", "func_name": "NewPackageList", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewPackageList creates a new package registry", "docstring_tokens": ["NewPackageList", "creates", "a", "new", "package", "registry"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/ast.go#L40-L43", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "floats.go", "func_name": "PutFloat32", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutFloat32 writes a 32-bit float for the given string field. The field type must be `Float32Field`, otherwise an error is returned. The type code is written first then the value. Upon success, the number of bytes written is returned along with a nil error.", "docstring_tokens": ["PutFloat32", "writes", "a", "32", "-", "bit", "float", "for", "the", "given", "string", "field", ".", "The", "field", "type", "must", "be", "Float32Field", "otherwise", "an", "error", "is", "returned", ".", "The", "type", "code", "is", "written", "first", "then", "the", "value", ".", "Upon", "success", "the", "number", "of", "bytes", "written", "is", "returned", "along", "with", "a", "nil", "error", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/floats.go#L6-L30", "partition": "test"} +{"repo": "insionng/martini", "path": "martini.go", "func_name": "Classic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Classic creates a classic Martini with some basic default middleware - martini.Logger, martini.Recovery and martini.Static.\n// Classic also maps martini.Routes as a service.", "docstring_tokens": ["Classic", "creates", "a", "classic", "Martini", "with", "some", "basic", "default", "middleware", "-", "martini", ".", "Logger", "martini", ".", "Recovery", "and", "martini", ".", "Static", ".", "Classic", "also", "maps", "martini", ".", "Routes", "as", "a", "service", "."], "sha": "2d0ba5dc75fe9549c10e2f71927803a11e5e4957", "url": "https://github.com/insionng/martini/blob/2d0ba5dc75fe9549c10e2f71927803a11e5e4957/martini.go#L104-L116", "partition": "test"} +{"repo": "urandom/handler", "path": "lang/i18n.go", "func_name": "Languages", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Languages provides the handler with supported languages.", "docstring_tokens": ["Languages", "provides", "the", "handler", "with", "supported", "languages", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/lang/i18n.go#L28-L32", "partition": "test"} +{"repo": "urandom/handler", "path": "lang/i18n.go", "func_name": "Session", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Session will be used to set the current language.", "docstring_tokens": ["Session", "will", "be", "used", "to", "set", "the", "current", "language", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/lang/i18n.go#L35-L39", "partition": "test"} +{"repo": "urandom/handler", "path": "lang/i18n.go", "func_name": "Data", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Data returns the language data stored in the request.", "docstring_tokens": ["Data", "returns", "the", "language", "data", "stored", "in", "the", "request", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/lang/i18n.go#L204-L210", "partition": "test"} +{"repo": "urandom/handler", "path": "lang/i18n.go", "func_name": "URL", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// URL prefixes a url string with the request language.", "docstring_tokens": ["URL", "prefixes", "a", "url", "string", "with", "the", "request", "language", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/lang/i18n.go#L213-L233", "partition": "test"} +{"repo": "DeMille/termsize", "path": "termsize.go", "func_name": "Size", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Returns the terminal size", "docstring_tokens": ["Returns", "the", "terminal", "size"], "sha": "b7100f0f89ccfa4a591ca92363fe5d434f54666f", "url": "https://github.com/DeMille/termsize/blob/b7100f0f89ccfa4a591ca92363fe5d434f54666f/termsize.go#L50-L57", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "pdclient/get_requestid_from_task.go", "func_name": "GetRequestIDFromTaskResponse", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetRequestIDFromTaskResponse - a function to get a request id from a taskresponse object", "docstring_tokens": ["GetRequestIDFromTaskResponse", "-", "a", "function", "to", "get", "a", "request", "id", "from", "a", "taskresponse", "object"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/pdclient/get_requestid_from_task.go#L10-L38", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "strings.go", "func_name": "PutString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutString writes a string value for the given field. The field type must be a `StringField` otherwise an error will be returned. The type code is written first, then a length, and finally the value. If the size of the string is `< math.MaxUint8`, a single byte will represent the length. If the size of the string is `< math.MaxUint16`, a uint16 value will represent the length and so on. If the buffer does not have enough space for the entire string and field header, an error will be returned. If successful, the number of bytes written will be returned as well as a nil error.", "docstring_tokens": ["PutString", "writes", "a", "string", "value", "for", "the", "given", "field", ".", "The", "field", "type", "must", "be", "a", "StringField", "otherwise", "an", "error", "will", "be", "returned", ".", "The", "type", "code", "is", "written", "first", "then", "a", "length", "and", "finally", "the", "value", ".", "If", "the", "size", "of", "the", "string", "is", "<", "math", ".", "MaxUint8", "a", "single", "byte", "will", "represent", "the", "length", ".", "If", "the", "size", "of", "the", "string", "is", "<", "math", ".", "MaxUint16", "a", "uint16", "value", "will", "represent", "the", "length", "and", "so", "on", ".", "If", "the", "buffer", "does", "not", "have", "enough", "space", "for", "the", "entire", "string", "and", "field", "header", "an", "error", "will", "be", "returned", ".", "If", "successful", "the", "number", "of", "bytes", "written", "will", "be", "returned", "as", "well", "as", "a", "nil", "error", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/strings.go#L10-L87", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/parser.go", "func_name": "LoadDirectory", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadDirectory reads all the schema files from a directory.", "docstring_tokens": ["LoadDirectory", "reads", "all", "the", "schema", "files", "from", "a", "directory", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/parser.go#L28-L79", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/parser.go", "func_name": "LoadFile", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadFile reads a schema document from a file.", "docstring_tokens": ["LoadFile", "reads", "a", "schema", "document", "from", "a", "file", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/parser.go#L82-L97", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "schema/parser.go", "func_name": "LoadPackage", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// LoadPackage parses a text string.", "docstring_tokens": ["LoadPackage", "parses", "a", "text", "string", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/schema/parser.go#L100-L102", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "decoder.go", "func_name": "NewDecoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDecoder creates a new Decoder using a type Registry and an io.Reader.", "docstring_tokens": ["NewDecoder", "creates", "a", "new", "Decoder", "using", "a", "type", "Registry", "and", "an", "io", ".", "Reader", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/decoder.go#L57-L60", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "decoder.go", "func_name": "NewDecoderSize", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewDecoderSize creates a new Decoder using a type Registry, a max size and an io.Reader.", "docstring_tokens": ["NewDecoderSize", "creates", "a", "new", "Decoder", "using", "a", "type", "Registry", "a", "max", "size", "and", "an", "io", ".", "Reader", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/decoder.go#L63-L66", "partition": "test"} +{"repo": "urandom/handler", "path": "log/panic.go", "func_name": "Panic", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Panic returns a handler that invokes the passed handler h, catching any\n// panics. If one occurs, an HTTP 500 response is produced.\n//\n// By default, all messages are printed out to os.Stderr.", "docstring_tokens": ["Panic", "returns", "a", "handler", "that", "invokes", "the", "passed", "handler", "h", "catching", "any", "panics", ".", "If", "one", "occurs", "an", "HTTP", "500", "response", "is", "produced", ".", "By", "default", "all", "messages", "are", "printed", "out", "to", "os", ".", "Stderr", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/log/panic.go#L28-L53", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "fakes/fake.go", "func_name": "DeployVApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//DeployVApp - fake out calling deploy vapp", "docstring_tokens": ["DeployVApp", "-", "fake", "out", "calling", "deploy", "vapp"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/fakes/fake.go#L120-L122", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "fakes/fake.go", "func_name": "UnDeployVApp", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//UnDeployVApp - executes a fake undeploy on a fake client", "docstring_tokens": ["UnDeployVApp", "-", "executes", "a", "fake", "undeploy", "on", "a", "fake", "client"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/fakes/fake.go#L125-L127", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "fakes/fake.go", "func_name": "Auth", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Auth - fake out making an auth call", "docstring_tokens": ["Auth", "-", "fake", "out", "making", "an", "auth", "call"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/fakes/fake.go#L130-L132", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "fakes/fake.go", "func_name": "QueryTemplate", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//QueryTemplate - fake querying for a template", "docstring_tokens": ["QueryTemplate", "-", "fake", "querying", "for", "a", "template"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/fakes/fake.go#L135-L137", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "encoder.go", "func_name": "NewEncoder", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewEncoder creates a new encoder with the given io.Writer", "docstring_tokens": ["NewEncoder", "creates", "a", "new", "encoder", "with", "the", "given", "io", ".", "Writer"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/encoder.go#L23-L25", "partition": "test"} +{"repo": "urandom/handler", "path": "security/nonce.go", "func_name": "Getter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Getter allows the user to set the method by which a nonce is retrieved from\n// the incoming request.", "docstring_tokens": ["Getter", "allows", "the", "user", "to", "set", "the", "method", "by", "which", "a", "nonce", "is", "retrieved", "from", "the", "incoming", "request", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/security/nonce.go#L63-L67", "partition": "test"} +{"repo": "urandom/handler", "path": "security/nonce.go", "func_name": "Setter", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Setter allows the user to set the method by which a nonce is stored in\n// the outgoing response.", "docstring_tokens": ["Setter", "allows", "the", "user", "to", "set", "the", "method", "by", "which", "a", "nonce", "is", "stored", "in", "the", "outgoing", "response", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/security/nonce.go#L71-L75", "partition": "test"} +{"repo": "urandom/handler", "path": "security/nonce.go", "func_name": "Age", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Age sets the maximum time duration a nonce can be valid", "docstring_tokens": ["Age", "sets", "the", "maximum", "time", "duration", "a", "nonce", "can", "be", "valid"], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/security/nonce.go#L78-L82", "partition": "test"} +{"repo": "urandom/handler", "path": "security/nonce.go", "func_name": "Nonce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Nonce returns a handler that will check each request for the\n// existence of a nonce. If a nonce exists, it will be checked for\n// expiration. A status will be recorded in the request's context,\n// indicating whether there was a nonce in the request, and if so,\n// whether it is valid or expired.\n//\n// The recorded status can later be obtained using the\n// NonceValueFromRequest function.\n//\n// A nonce can be set for later checking using the StoreNonce\n// function.", "docstring_tokens": ["Nonce", "returns", "a", "handler", "that", "will", "check", "each", "request", "for", "the", "existence", "of", "a", "nonce", ".", "If", "a", "nonce", "exists", "it", "will", "be", "checked", "for", "expiration", ".", "A", "status", "will", "be", "recorded", "in", "the", "request", "s", "context", "indicating", "whether", "there", "was", "a", "nonce", "in", "the", "request", "and", "if", "so", "whether", "it", "is", "valid", "or", "expired", ".", "The", "recorded", "status", "can", "later", "be", "obtained", "using", "the", "NonceValueFromRequest", "function", ".", "A", "nonce", "can", "be", "set", "for", "later", "checking", "using", "the", "StoreNonce", "function", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/security/nonce.go#L113-L165", "partition": "test"} +{"repo": "urandom/handler", "path": "security/nonce.go", "func_name": "NonceValueFromRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NonceValueFromRequest validates a nonce in the given request, and returns\n// the validation status.", "docstring_tokens": ["NonceValueFromRequest", "validates", "a", "nonce", "in", "the", "given", "request", "and", "returns", "the", "validation", "status", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/security/nonce.go#L169-L177", "partition": "test"} +{"repo": "urandom/handler", "path": "security/nonce.go", "func_name": "StoreNonce", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// StoreNonce generates and stores a nonce in the outgoing response.", "docstring_tokens": ["StoreNonce", "generates", "and", "stores", "a", "nonce", "in", "the", "outgoing", "response", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/security/nonce.go#L180-L188", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "float_array.go", "func_name": "PutFloat32Array", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutFloat32Array writes a float array for the given field. The field type must be a 'Float32ArrayField', otherwise as error will be returned. The type code is written first followed by the array size in bytes. If the size of the array is less than `math.MaxUint8`, a byte will be used to represent the length. If the size of the array is less than `math.MaxUint16`, a 16-bit unsigned integer will be used to represent the length and so on. If the buffer is too small to store the entire array, an `xbinary.ErrOutOfRange` error will be returned. If the write is successful, the total number of bytes will be returned as well as a nil error.", "docstring_tokens": ["PutFloat32Array", "writes", "a", "float", "array", "for", "the", "given", "field", ".", "The", "field", "type", "must", "be", "a", "Float32ArrayField", "otherwise", "as", "error", "will", "be", "returned", ".", "The", "type", "code", "is", "written", "first", "followed", "by", "the", "array", "size", "in", "bytes", ".", "If", "the", "size", "of", "the", "array", "is", "less", "than", "math", ".", "MaxUint8", "a", "byte", "will", "be", "used", "to", "represent", "the", "length", ".", "If", "the", "size", "of", "the", "array", "is", "less", "than", "math", ".", "MaxUint16", "a", "16", "-", "bit", "unsigned", "integer", "will", "be", "used", "to", "represent", "the", "length", "and", "so", "on", ".", "If", "the", "buffer", "is", "too", "small", "to", "store", "the", "entire", "array", "an", "xbinary", ".", "ErrOutOfRange", "error", "will", "be", "returned", ".", "If", "the", "write", "is", "successful", "the", "total", "number", "of", "bytes", "will", "be", "returned", "as", "well", "as", "a", "nil", "error", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/float_array.go#L10-L87", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "float_array.go", "func_name": "PutFloat64Array", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutFloat64Array writes a float array for the given field. The field type must be a 'Float64ArrayField', otherwise as error will be returned. The type code is written first followed by the array size in bytes. If the size of the array is less than `math.MaxUint8`, a byte will be used to represent the length. If the size of the array is less than `math.MaxUint16`, a 16-bit unsigned integer will be used to represent the length and so on. If the buffer is too small to store the entire array, an `xbinary.ErrOutOfRange` error will be returned. If the write is successful, the total number of bytes will be returned as well as a nil error.", "docstring_tokens": ["PutFloat64Array", "writes", "a", "float", "array", "for", "the", "given", "field", ".", "The", "field", "type", "must", "be", "a", "Float64ArrayField", "otherwise", "as", "error", "will", "be", "returned", ".", "The", "type", "code", "is", "written", "first", "followed", "by", "the", "array", "size", "in", "bytes", ".", "If", "the", "size", "of", "the", "array", "is", "less", "than", "math", ".", "MaxUint8", "a", "byte", "will", "be", "used", "to", "represent", "the", "length", ".", "If", "the", "size", "of", "the", "array", "is", "less", "than", "math", ".", "MaxUint16", "a", "16", "-", "bit", "unsigned", "integer", "will", "be", "used", "to", "represent", "the", "length", "and", "so", "on", ".", "If", "the", "buffer", "is", "too", "small", "to", "store", "the", "entire", "array", "an", "xbinary", ".", "ErrOutOfRange", "error", "will", "be", "returned", ".", "If", "the", "write", "is", "successful", "the", "total", "number", "of", "bytes", "will", "be", "returned", "as", "well", "as", "a", "nil", "error", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/float_array.go#L90-L167", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "pdclient/fake/fake.go", "func_name": "Do", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Do - fake do method", "docstring_tokens": ["Do", "-", "fake", "do", "method"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/pdclient/fake/fake.go#L13-L16", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "service/lease.go", "func_name": "NewLease", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewLease - create and return a new lease object", "docstring_tokens": ["NewLease", "-", "create", "and", "return", "a", "new", "lease", "object"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/service/lease.go#L18-L26", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "service/lease.go", "func_name": "Delete", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Delete - handle a delete lease call", "docstring_tokens": ["Delete", "-", "handle", "a", "delete", "lease", "call"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/service/lease.go#L29-L46", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "service/lease.go", "func_name": "Post", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Post - handle a post lease call", "docstring_tokens": ["Post", "-", "handle", "a", "post", "lease", "call"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/service/lease.go#L49-L67", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "service/lease.go", "func_name": "ReStock", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//ReStock - this will reclaim resources for a given lease", "docstring_tokens": ["ReStock", "-", "this", "will", "reclaim", "resources", "for", "a", "given", "lease"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/service/lease.go#L70-L82", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "service/lease.go", "func_name": "Procurement", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Procurement - method to issue a procurement request for the given lease item.", "docstring_tokens": ["Procurement", "-", "method", "to", "issue", "a", "procurement", "request", "for", "the", "given", "lease", "item", "."], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/service/lease.go#L85-L104", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "service/lease.go", "func_name": "InitFromHTTPRequest", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//InitFromHTTPRequest - initialize a lease from the http request object body", "docstring_tokens": ["InitFromHTTPRequest", "-", "initialize", "a", "lease", "from", "the", "http", "request", "object", "body"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/service/lease.go#L107-L125", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "tuple.go", "func_name": "Is", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Is determines if a tuple is a certain type.", "docstring_tokens": ["Is", "determines", "if", "a", "tuple", "is", "a", "certain", "type", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/tuple.go#L30-L32", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "tuple.go", "func_name": "Offset", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Offset returns the byte offset for the given field", "docstring_tokens": ["Offset", "returns", "the", "byte", "offset", "for", "the", "given", "field"], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/tuple.go#L40-L51", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "tuple.go", "func_name": "WriteTo", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteTo sends the binary representation of the Tuple to\n// the given io.Writer.", "docstring_tokens": ["WriteTo", "sends", "the", "binary", "representation", "of", "the", "Tuple", "to", "the", "given", "io", ".", "Writer", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/tuple.go#L61-L73", "partition": "test"} +{"repo": "blacklabeldata/namedtuple", "path": "tuple.go", "func_name": "PutTuple", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// PutTuple writes a tuple into the given field. The field type must be a TupleField, otherwise an error will be returned. The type code is written first, then the length, then the value. If the tuple length is less than `math.MaxUint8`, a single byte is used to represent the length. If the tuple length is less than `math.MaxUint16`, an unsigned 16-bit integer is used to represent the length and so on as the length increases. If the buffer is not large enough to store the entire tuple an `xbinary.ErrOutOfRange` error is returned. If the write is successful, the number of bytes written is returned as well as a nil error.", "docstring_tokens": ["PutTuple", "writes", "a", "tuple", "into", "the", "given", "field", ".", "The", "field", "type", "must", "be", "a", "TupleField", "otherwise", "an", "error", "will", "be", "returned", ".", "The", "type", "code", "is", "written", "first", "then", "the", "length", "then", "the", "value", ".", "If", "the", "tuple", "length", "is", "less", "than", "math", ".", "MaxUint8", "a", "single", "byte", "is", "used", "to", "represent", "the", "length", ".", "If", "the", "tuple", "length", "is", "less", "than", "math", ".", "MaxUint16", "an", "unsigned", "16", "-", "bit", "integer", "is", "used", "to", "represent", "the", "length", "and", "so", "on", "as", "the", "length", "increases", ".", "If", "the", "buffer", "is", "not", "large", "enough", "to", "store", "the", "entire", "tuple", "an", "xbinary", ".", "ErrOutOfRange", "error", "is", "returned", ".", "If", "the", "write", "is", "successful", "the", "number", "of", "bytes", "written", "is", "returned", "as", "well", "as", "a", "nil", "error", "."], "sha": "c341f1db44f30b8164294aa8605ede42be604aba", "url": "https://github.com/blacklabeldata/namedtuple/blob/c341f1db44f30b8164294aa8605ede42be604aba/tuple.go#L92-L200", "partition": "test"} +{"repo": "insionng/martini", "path": "context.go", "func_name": "WriteString", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteString writes string data into the response object.", "docstring_tokens": ["WriteString", "writes", "string", "data", "into", "the", "response", "object", "."], "sha": "2d0ba5dc75fe9549c10e2f71927803a11e5e4957", "url": "https://github.com/insionng/martini/blob/2d0ba5dc75fe9549c10e2f71927803a11e5e4957/context.go#L75-L77", "partition": "test"} +{"repo": "insionng/martini", "path": "context.go", "func_name": "NotFound", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NotFound writes a 404 HTTP response", "docstring_tokens": ["NotFound", "writes", "a", "404", "HTTP", "response"], "sha": "2d0ba5dc75fe9549c10e2f71927803a11e5e4957", "url": "https://github.com/insionng/martini/blob/2d0ba5dc75fe9549c10e2f71927803a11e5e4957/context.go#L101-L104", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "taskmanager/agent.go", "func_name": "Run", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//Run - this begins the running of an agent's async process", "docstring_tokens": ["Run", "-", "this", "begins", "the", "running", "of", "an", "agent", "s", "async", "process"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/taskmanager/agent.go#L21-L36", "partition": "test"} +{"repo": "suicidejack/throttled", "path": "wait_group.go", "func_name": "NewWaitGroup", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// NewWaitGroup instantiates a new WaitGroup with the given throttle.", "docstring_tokens": ["NewWaitGroup", "instantiates", "a", "new", "WaitGroup", "with", "the", "given", "throttle", "."], "sha": "373909e862a27e2190015918229c2605b3221f1d", "url": "https://github.com/suicidejack/throttled/blob/373909e862a27e2190015918229c2605b3221f1d/wait_group.go#L12-L18", "partition": "test"} +{"repo": "suicidejack/throttled", "path": "wait_group.go", "func_name": "Add", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Add will block until the number of goroutines being throttled\n// has fallen below the throttle.", "docstring_tokens": ["Add", "will", "block", "until", "the", "number", "of", "goroutines", "being", "throttled", "has", "fallen", "below", "the", "throttle", "."], "sha": "373909e862a27e2190015918229c2605b3221f1d", "url": "https://github.com/suicidejack/throttled/blob/373909e862a27e2190015918229c2605b3221f1d/wait_group.go#L27-L36", "partition": "test"} +{"repo": "suicidejack/throttled", "path": "wait_group.go", "func_name": "Wait", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Wait until all of the throttled goroutines have signaled they are done.", "docstring_tokens": ["Wait", "until", "all", "of", "the", "throttled", "goroutines", "have", "signaled", "they", "are", "done", "."], "sha": "373909e862a27e2190015918229c2605b3221f1d", "url": "https://github.com/suicidejack/throttled/blob/373909e862a27e2190015918229c2605b3221f1d/wait_group.go#L45-L55", "partition": "test"} +{"repo": "urandom/handler", "path": "encoding/gzip.go", "func_name": "Gzip", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Gzip returns a handler that will use gzip compression on the response body\n// of handler h. Compression will only be applied if the request contains an\n// 'Accept-Encoding' header that contains 'gzip'.\n//\n// By default, no messages are printed out.", "docstring_tokens": ["Gzip", "returns", "a", "handler", "that", "will", "use", "gzip", "compression", "on", "the", "response", "body", "of", "handler", "h", ".", "Compression", "will", "only", "be", "applied", "if", "the", "request", "contains", "an", "Accept", "-", "Encoding", "header", "that", "contains", "gzip", ".", "By", "default", "no", "messages", "are", "printed", "out", "."], "sha": "61508044a5569d1609521d81e81f6737567fd104", "url": "https://github.com/urandom/handler/blob/61508044a5569d1609521d81e81f6737567fd104/encoding/gzip.go#L33-L73", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "innkeeperclient/ik_client.go", "func_name": "New", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// New - create a new api client", "docstring_tokens": ["New", "-", "create", "a", "new", "api", "client"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/innkeeperclient/ik_client.go#L12-L18", "partition": "test"} +{"repo": "insionng/martini", "path": "render.go", "func_name": "Error", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Error writes the given HTTP status to the current ResponseWriter", "docstring_tokens": ["Error", "writes", "the", "given", "HTTP", "status", "to", "the", "current", "ResponseWriter"], "sha": "2d0ba5dc75fe9549c10e2f71927803a11e5e4957", "url": "https://github.com/insionng/martini/blob/2d0ba5dc75fe9549c10e2f71927803a11e5e4957/render.go#L358-L363", "partition": "test"} +{"repo": "insionng/martini", "path": "render.go", "func_name": "Renderer", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// Renderer is a Middleware that maps a render.Render service into the Martini handler chain. An single variadic render.RenderOptions\n// struct can be optionally provided to configure HTML rendering. The default directory for templates is \"templates\" and the default\n// file extension is \".tmpl\".\n//\n// If MARTINI_ENV is set to \"\" or \"development\" then templates will be recompiled on every request. For more performance, set the\n// MARTINI_ENV environment variable to \"production\"", "docstring_tokens": ["Renderer", "is", "a", "Middleware", "that", "maps", "a", "render", ".", "Render", "service", "into", "the", "Martini", "handler", "chain", ".", "An", "single", "variadic", "render", ".", "RenderOptions", "struct", "can", "be", "optionally", "provided", "to", "configure", "HTML", "rendering", ".", "The", "default", "directory", "for", "templates", "is", "templates", "and", "the", "default", "file", "extension", "is", ".", "tmpl", ".", "If", "MARTINI_ENV", "is", "set", "to", "or", "development", "then", "templates", "will", "be", "recompiled", "on", "every", "request", ".", "For", "more", "performance", "set", "the", "MARTINI_ENV", "environment", "variable", "to", "production"], "sha": "2d0ba5dc75fe9549c10e2f71927803a11e5e4957", "url": "https://github.com/insionng/martini/blob/2d0ba5dc75fe9549c10e2f71927803a11e5e4957/render.go#L418-L434", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "pdclient/dispenser_client.go", "func_name": "NewClient", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//NewClient - constructor for a new dispenser client", "docstring_tokens": ["NewClient", "-", "constructor", "for", "a", "new", "dispenser", "client"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/pdclient/dispenser_client.go#L16-L22", "partition": "test"} +{"repo": "pivotal-pez/pezdispenser", "path": "pdclient/dispenser_client.go", "func_name": "GetTask", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "//GetTask - wrapper to rest call to GET task from dispenser", "docstring_tokens": ["GetTask", "-", "wrapper", "to", "rest", "call", "to", "GET", "task", "from", "dispenser"], "sha": "768e2777520868857916b66cfd4cfb7149383ca5", "url": "https://github.com/pivotal-pez/pezdispenser/blob/768e2777520868857916b66cfd4cfb7149383ca5/pdclient/dispenser_client.go#L25-L38", "partition": "test"} +{"repo": "alternaDev/go-avatar-gen", "path": "generator.go", "func_name": "WriteImageToHTTP", "original_string": "", "language": "go", "code": "", "code_tokens": [], "docstring": "// WriteImageToHTTP Sends an image via http.", "docstring_tokens": ["WriteImageToHTTP", "Sends", "an", "image", "via", "http", "."], "sha": "b5ca997c0389dc8ce22e1a95087647aa4bb25b57", "url": "https://github.com/alternaDev/go-avatar-gen/blob/b5ca997c0389dc8ce22e1a95087647aa4bb25b57/generator.go#L89-L101", "partition": "test"}