query stringlengths 7 3.85k | document stringlengths 11 430k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Post is post message to slack | func (s *Slack) Post(msg Message) (err error) {
b, err := json.Marshal(msg)
if err != nil {
return err
}
buf := bytes.NewBuffer(b)
req, err := http.NewRequest("POST", s.URL, buf)
if err != nil {
return errors.Wrap(err, "Can't make new request")
}
req.Header.Set("User-Agent", "Mozilla/5.0 (Windows; U; Win... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (s SlackReporter) Post(ctx context.Context, msg string) (string, error) {\n\t_, ts, err := s.api.PostMessageContext(ctx, s.channel, slack.MsgOptionText(msg, false))\n\treturn ts, err\n}",
"func (t *FakeSlackChat) postMessage(msg Message) error {\n\treturn nil\n}",
"func (s Slack) PostMessage(title string,... | [
"0.76651305",
"0.7442603",
"0.71486974",
"0.71397513",
"0.71380925",
"0.70558584",
"0.7021113",
"0.6846197",
"0.6742398",
"0.6505753",
"0.650403",
"0.6456163",
"0.63341874",
"0.63200605",
"0.6228203",
"0.62201923",
"0.61911505",
"0.6082172",
"0.6075067",
"0.60693914",
"0.6054... | 0.7452913 | 1 |
Retrieve schedules by plan ID | func NewGetPlanSchedules(planID uuid.UUID, logger *zap.Logger, db pgxload.PgxLoader) *GetPlanSchedules {
return &GetPlanSchedules{
planID: planID,
db: db,
logger: logger.Named("GetPlanSchedules"),
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func restGetScheduleById(w http.ResponseWriter, r *http.Request) {\n\tvars := mux.Vars(r)\n\tvar sid string = vars[ID]\n\tvar res models.Schedule\n\terr := dbClient.GetScheduleById(&res, sid)\n\tif err != nil {\n\t\tif err == db.ErrNotFound {\n\t\t\thttp.Error(w, \"Schedule not found\", http.StatusNotFound)\n\t\t\... | [
"0.6269456",
"0.61960685",
"0.60036653",
"0.59995407",
"0.5843331",
"0.5808705",
"0.57743835",
"0.5762594",
"0.5711601",
"0.5688818",
"0.56506807",
"0.558694",
"0.5540339",
"0.55214155",
"0.5469528",
"0.5466648",
"0.5460155",
"0.5455818",
"0.5449708",
"0.5426146",
"0.541981",... | 0.6279898 | 0 |
Get takes name of the cloudwatchEventTarget, and returns the corresponding cloudwatchEventTarget object, and an error if there is any. | func (c *FakeCloudwatchEventTargets) Get(name string, options v1.GetOptions) (result *v1alpha1.CloudwatchEventTarget, err error) {
obj, err := c.Fake.
Invokes(testing.NewGetAction(cloudwatcheventtargetsResource, c.ns, name), &v1alpha1.CloudwatchEventTarget{})
if obj == nil {
return nil, err
}
return obj.(*v1al... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func GetEventTarget(ctx *pulumi.Context,\n\tname string, id pulumi.IDInput, state *EventTargetState, opts ...pulumi.ResourceOption) (*EventTarget, error) {\n\tvar resource EventTarget\n\terr := ctx.ReadResource(\"aws:cloudwatch/eventTarget:EventTarget\", name, id, state, &resource, opts...)\n\tif err != nil {\n\t\... | [
"0.72349846",
"0.60446095",
"0.5682909",
"0.54533374",
"0.5292888",
"0.5286852",
"0.52845055",
"0.51380754",
"0.51060545",
"0.5100123",
"0.49953666",
"0.49781477",
"0.4978093",
"0.49507922",
"0.49051094",
"0.48928928",
"0.4878934",
"0.48690373",
"0.48504093",
"0.48341855",
"0... | 0.7304512 | 0 |
List takes label and field selectors, and returns the list of CloudwatchEventTargets that match those selectors. | func (c *FakeCloudwatchEventTargets) List(opts v1.ListOptions) (result *v1alpha1.CloudwatchEventTargetList, err error) {
obj, err := c.Fake.
Invokes(testing.NewListAction(cloudwatcheventtargetsResource, cloudwatcheventtargetsKind, c.ns, opts), &v1alpha1.CloudwatchEventTargetList{})
if obj == nil {
return nil, er... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (c *FakeAWSSNSTargets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.AWSSNSTargetList, err error) {\n\tobj, err := c.Fake.\n\t\tInvokes(testing.NewListAction(awssnstargetsResource, awssnstargetsKind, c.ns, opts), &v1alpha1.AWSSNSTargetList{})\n\n\tif obj == nil {\n\t\treturn nil, err\n\t}\n... | [
"0.61464715",
"0.56628346",
"0.56543076",
"0.54902506",
"0.5228712",
"0.52107954",
"0.51932913",
"0.5172048",
"0.5141491",
"0.51324284",
"0.5112907",
"0.5101192",
"0.50956565",
"0.5068237",
"0.50504357",
"0.50469285",
"0.50433314",
"0.502446",
"0.49555793",
"0.49431434",
"0.4... | 0.77347326 | 0 |
Watch returns a watch.Interface that watches the requested cloudwatchEventTargets. | func (c *FakeCloudwatchEventTargets) Watch(opts v1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchAction(cloudwatcheventtargetsResource, c.ns, opts))
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (c *ConsulClient) Watch(ctx context.Context, wh *WatchConfig) (IWatcher, error) {\n\tregistryOperationCount.WithLabelValues(env, \"Watch\").Inc()\n\n\tstartTime := time.Now()\n\tdefer func() {\n\t\tregistryOperationTimeTaken.WithLabelValues(env, \"Watch\").Observe(time.Now().Sub(startTime).Seconds())\n\t}()\n... | [
"0.5909597",
"0.59083927",
"0.5884586",
"0.58768004",
"0.58135056",
"0.5808285",
"0.5632079",
"0.5628538",
"0.5565414",
"0.55580974",
"0.5540909",
"0.5540064",
"0.55053604",
"0.55044025",
"0.55031914",
"0.5497162",
"0.54961246",
"0.5490093",
"0.5444556",
"0.5431618",
"0.54204... | 0.74523795 | 0 |
Create takes the representation of a cloudwatchEventTarget and creates it. Returns the server's representation of the cloudwatchEventTarget, and an error, if there is any. | func (c *FakeCloudwatchEventTargets) Create(cloudwatchEventTarget *v1alpha1.CloudwatchEventTarget) (result *v1alpha1.CloudwatchEventTarget, err error) {
obj, err := c.Fake.
Invokes(testing.NewCreateAction(cloudwatcheventtargetsResource, c.ns, cloudwatchEventTarget), &v1alpha1.CloudwatchEventTarget{})
if obj == nil... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewEventTarget(ctx *pulumi.Context,\n\tname string, args *EventTargetArgs, opts ...pulumi.ResourceOption) (*EventTarget, error) {\n\tif args == nil || args.Arn == nil {\n\t\treturn nil, errors.New(\"missing required argument 'Arn'\")\n\t}\n\tif args == nil || args.Rule == nil {\n\t\treturn nil, errors.New(\"m... | [
"0.687223",
"0.5633696",
"0.5631251",
"0.538129",
"0.5321042",
"0.529999",
"0.5294296",
"0.5265981",
"0.5259876",
"0.5250571",
"0.52373767",
"0.52258664",
"0.52252287",
"0.52154547",
"0.5198454",
"0.5183503",
"0.5154956",
"0.5070703",
"0.50693345",
"0.5064346",
"0.5045063",
... | 0.7889584 | 0 |
Update takes the representation of a cloudwatchEventTarget and updates it. Returns the server's representation of the cloudwatchEventTarget, and an error, if there is any. | func (c *FakeCloudwatchEventTargets) Update(cloudwatchEventTarget *v1alpha1.CloudwatchEventTarget) (result *v1alpha1.CloudwatchEventTarget, err error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateAction(cloudwatcheventtargetsResource, c.ns, cloudwatchEventTarget), &v1alpha1.CloudwatchEventTarget{})
if obj == nil... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (c *FakeCloudwatchEventTargets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.CloudwatchEventTarget, err error) {\n\tobj, err := c.Fake.\n\t\tInvokes(testing.NewPatchSubresourceAction(cloudwatcheventtargetsResource, c.ns, name, pt, data, subresources...), &v1alp... | [
"0.5389559",
"0.5306597",
"0.51904404",
"0.515413",
"0.5118005",
"0.5084545",
"0.50144255",
"0.49988312",
"0.4901944",
"0.48523718",
"0.483984",
"0.48148668",
"0.4811473",
"0.47936144",
"0.47582054",
"0.47557688",
"0.4751602",
"0.47373387",
"0.46917793",
"0.46882197",
"0.4630... | 0.7178435 | 0 |
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). | func (c *FakeCloudwatchEventTargets) UpdateStatus(cloudwatchEventTarget *v1alpha1.CloudwatchEventTarget) (*v1alpha1.CloudwatchEventTarget, error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateSubresourceAction(cloudwatcheventtargetsResource, "status", c.ns, cloudwatchEventTarget), &v1alpha1.CloudwatchEventTarget{})... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (i *DeleteOrUpdateInvTask) StatusUpdate(_ *taskrunner.TaskContext, _ object.ObjMetadata) {}",
"func (r *Reconciler) UpdateStatus() error {\n\tlog := r.Logger.WithField(\"func\", \"UpdateStatus\")\n\tlog.Infof(\"Updating noobaa status\")\n\tr.NooBaa.Status.ObservedGeneration = r.NooBaa.Generation\n\treturn r... | [
"0.666095",
"0.64349437",
"0.6427738",
"0.63504577",
"0.62834543",
"0.6276046",
"0.6201595",
"0.62010163",
"0.6190228",
"0.6185797",
"0.61781645",
"0.6126541",
"0.61198777",
"0.60840464",
"0.6035984",
"0.60255826",
"0.6014519",
"0.59933907",
"0.5983749",
"0.59777385",
"0.5976... | 0.0 | -1 |
Delete takes name of the cloudwatchEventTarget and deletes it. Returns an error if one occurs. | func (c *FakeCloudwatchEventTargets) Delete(name string, options *v1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteAction(cloudwatcheventtargetsResource, c.ns, name), &v1alpha1.CloudwatchEventTarget{})
return err
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (e *EventAPI) Delete(name string) error {\n\treturn e.client.httpDELETE(e.backOffConf.create(), e.eventURL(name), \"unable to delete event type\")\n}",
"func (w *Watcher) DeleteTarget(targetName string) (error) {\n\tmutableMutex.Lock()\n\tdefer mutableMutex.Unlock()\n\tif w.TargetMap == nil {\n\t\tw.TargetM... | [
"0.6356107",
"0.57694995",
"0.5659969",
"0.56342745",
"0.5527379",
"0.5476646",
"0.54259104",
"0.5411367",
"0.53984815",
"0.539605",
"0.5359793",
"0.5313885",
"0.52959067",
"0.5263439",
"0.5223835",
"0.51805806",
"0.51521486",
"0.51521426",
"0.51359683",
"0.5103432",
"0.50982... | 0.703014 | 0 |
DeleteCollection deletes a collection of objects. | func (c *FakeCloudwatchEventTargets) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
action := testing.NewDeleteCollectionAction(cloudwatcheventtargetsResource, c.ns, listOptions)
_, err := c.Fake.Invokes(action, &v1alpha1.CloudwatchEventTargetList{})
return err
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (c *kongs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {\n\treturn c.client.Delete().\n\t\tNamespace(c.ns).\n\t\tResource(\"kongs\").\n\t\tVersionedParams(&listOptions, scheme.ParameterCodec).\n\t\tBody(options).\n\t\tDo().\n\t\tError()\n}",
"func (c *stewards) DeleteCollec... | [
"0.7699723",
"0.7570869",
"0.75703704",
"0.75454164",
"0.7514351",
"0.7488343",
"0.7451056",
"0.74491966",
"0.74294275",
"0.7426684",
"0.74233156",
"0.7389707",
"0.7370067",
"0.7361063",
"0.7334545",
"0.7327154",
"0.7316015",
"0.7310656",
"0.729753",
"0.7297466",
"0.72921824"... | 0.6864794 | 83 |
Patch applies the patch and returns the patched cloudwatchEventTarget. | func (c *FakeCloudwatchEventTargets) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.CloudwatchEventTarget, err error) {
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceAction(cloudwatcheventtargetsResource, c.ns, name, pt, data, subresources...), &v1alpha1.Cloudw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (c *FakeCloudwatchEventTargets) Update(cloudwatchEventTarget *v1alpha1.CloudwatchEventTarget) (result *v1alpha1.CloudwatchEventTarget, err error) {\n\tobj, err := c.Fake.\n\t\tInvokes(testing.NewUpdateAction(cloudwatcheventtargetsResource, c.ns, cloudwatchEventTarget), &v1alpha1.CloudwatchEventTarget{})\n\n\t... | [
"0.5266063",
"0.49771908",
"0.48856008",
"0.47132525",
"0.4605321",
"0.45569208",
"0.4526433",
"0.44783974",
"0.44632348",
"0.44467813",
"0.44410396",
"0.434499",
"0.4281584",
"0.42695108",
"0.42690158",
"0.42472798",
"0.4209925",
"0.4201461",
"0.41979274",
"0.4197556",
"0.41... | 0.7371751 | 0 |
String colorized string message. | func (c contentMessage) String() string {
message := console.Colorize("Time", fmt.Sprintf("[%s] ", c.Time.Format(printDate)))
message = message + console.Colorize("Size", fmt.Sprintf("%7s ", strings.Join(strings.Fields(humanize.IBytes(uint64(c.Size))), "")))
message = func() string {
if c.Filetype == "folder" {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func ColorString(code int, str string) string {\n\treturn fmt.Sprintf(\"\\x1b[%d;1m%s\\x1b[39;22m\", code, str)\n}",
"func (s Style) String() string {\n\treturn colors2code(s...)\n}",
"func (s statement) colorString() string {\n\tout := make([]string, 0, len(s)+2)\n\tfor _, t := range s {\n\t\tout = append(out... | [
"0.7172207",
"0.68433386",
"0.67938584",
"0.6777948",
"0.66997826",
"0.6699148",
"0.66343457",
"0.66196483",
"0.65795577",
"0.6576471",
"0.6563334",
"0.6556685",
"0.65492076",
"0.6487279",
"0.6477751",
"0.6475352",
"0.64554566",
"0.6381751",
"0.63747114",
"0.6372769",
"0.6352... | 0.61758167 | 39 |
JSON jsonified content message. | func (c contentMessage) JSON() string {
c.Status = "success"
jsonMessageBytes, e := json.MarshalIndent(c, "", " ")
fatalIf(probe.NewError(e), "Unable to marshal into JSON.")
return string(jsonMessageBytes)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (msg *Message) JsonContent() (string, error) {\n\t//if msg.Content == nil {\n\t//\treturn \"\", nil\n\t//}\n\tb, err := json.Marshal(msg.Content)\n\tif err != nil {\n\t\treturn \"\", err\n\t}\n\treturn string(b), nil\n}",
"func (m lockCmdMessage) JSON() string {\n\tmsgBytes, e := json.MarshalIndent(m, \"\",... | [
"0.81981593",
"0.7193156",
"0.71297085",
"0.70724344",
"0.69950885",
"0.69847697",
"0.6969687",
"0.6947664",
"0.6947664",
"0.6902756",
"0.6756524",
"0.67506754",
"0.6678022",
"0.6643379",
"0.6576812",
"0.6566346",
"0.64627314",
"0.644587",
"0.6444574",
"0.6435986",
"0.6433906... | 0.82813597 | 1 |
parseContent parse client Content container into printer struct. | func parseContent(c *clientContent) contentMessage {
content := contentMessage{}
content.Time = c.Time.Local()
// guess file type.
content.Filetype = func() string {
if c.Type.IsDir() {
return "folder"
}
return "file"
}()
content.Size = c.Size
md5sum := strings.TrimPrefix(c.ETag, "\"")
md5sum = strin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func ParseContent(content string, params Params) (string, error) {\n\tcheckAndInitDefaultView()\n\treturn defaultViewObj.ParseContent(content, params)\n}",
"func (c *GRPCClient) Content(ctx context.Context, contentPath string) (component.ContentResponse, error) {\n\tvar contentResponse component.ContentResponse\... | [
"0.57283705",
"0.56128794",
"0.55986345",
"0.55372673",
"0.54029614",
"0.5345638",
"0.5332285",
"0.5297525",
"0.5254313",
"0.5217522",
"0.51418024",
"0.5105939",
"0.509732",
"0.50940305",
"0.5086418",
"0.5086146",
"0.50813574",
"0.50558066",
"0.50556326",
"0.50510985",
"0.503... | 0.728402 | 0 |
doList list all entities inside a folder. | func doList(clnt Client, isRecursive, isIncomplete bool) error {
prefixPath := clnt.GetURL().Path
separator := string(clnt.GetURL().Separator)
if !strings.HasSuffix(prefixPath, separator) {
prefixPath = prefixPath[:strings.LastIndex(prefixPath, separator)+1]
}
var cErr error
for content := range clnt.List(isRec... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err error) {\n\tvar iErr error\n\t_, err = f.listAll(ctx, dir, false, false, defaultDepth, func(remote string, isDir bool, info *api.Prop) bool {\n\t\tif isDir {\n\t\t\td := fs.NewDir(remote, time.Time(info.Modified))\n\t\t\t// .SetID(info.... | [
"0.64790565",
"0.64580345",
"0.6365296",
"0.6312116",
"0.6310774",
"0.625049",
"0.62205535",
"0.61772364",
"0.6176329",
"0.61612606",
"0.6157272",
"0.6146246",
"0.6144315",
"0.6109358",
"0.6099333",
"0.6089955",
"0.6079026",
"0.607171",
"0.6060557",
"0.6041071",
"0.6028603",
... | 0.67182887 | 0 |
BeforeNow checks a mm/dd/yyyy string to determine if it is before now. | func BeforeNow(d string) bool {
f := strings.FieldsFunc(d, func(r rune) bool { return r == '/' })
t := time.Date(atoi(f[2]), time.Month(atoi(f[0])), atoi(f[1]), 0, 0, 0, 0, time.UTC)
return t.Before(time.Now())
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func ISODateStringBeforeToday(datetime string) (bool, error) {\n\tdate, err := IsoDateFormatter(datetime)\n\tif err != nil {\n\t\treturn false, err\n\t}\n\ttoday := time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day(), 0, 0, 0, 0, date.Location())\n\tif date.Before(today) {\n\t\treturn true, nil\n\t}\... | [
"0.6379344",
"0.5772175",
"0.57539195",
"0.5719056",
"0.5665737",
"0.5650461",
"0.5630643",
"0.5603314",
"0.55422056",
"0.55358124",
"0.55042726",
"0.5495403",
"0.54829955",
"0.5410564",
"0.5358622",
"0.53530425",
"0.53356326",
"0.53226084",
"0.526414",
"0.5255999",
"0.524479... | 0.83958715 | 0 |
////////////////////////////////////////////////////////////////////////////////// // IsAttachment return true if content is attachment | func (c *Content) IsAttachment() bool {
return c.Type == CONTENT_TYPE_ATTACHMENT
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (p *Part) IsAttachment() bool {\n\tif p.gmimePart == nil {\n\t\treturn false\n\t}\n\tif !gobool(C.gmime_is_part(p.gmimePart)) || gobool(C.gmime_is_multi_part(p.gmimePart)) {\n\t\treturn false\n\t}\n\tif gobool(C.g_mime_part_is_attachment((*C.GMimePart)(unsafe.Pointer(p.gmimePart)))) {\n\t\treturn true\n\t}\n\... | [
"0.8364052",
"0.712331",
"0.6851076",
"0.6623727",
"0.65944177",
"0.63823783",
"0.6326309",
"0.62711173",
"0.61442995",
"0.61011577",
"0.60864383",
"0.60676914",
"0.60450274",
"0.59972024",
"0.5980794",
"0.5883554",
"0.5855307",
"0.583973",
"0.58200735",
"0.58034015",
"0.5758... | 0.9088709 | 0 |
IsComment return true if content is comment | func (c *Content) IsComment() bool {
return c.Type == CONTENT_TYPE_COMMENT
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (t Type) IsComment() bool {\n\treturn comm_start < t && t < comm_end\n}",
"func isComment(s state) bool {\n\tswitch s {\n\tcase stateHTMLCmt, stateJSBlockCmt, stateJSLineCmt, stateCSSBlockCmt, stateCSSLineCmt:\n\t\treturn true\n\t}\n\treturn false\n}",
"func (t Token) IsComment() bool {\n\treturn t.Kind =... | [
"0.8070134",
"0.78601515",
"0.7623746",
"0.7510202",
"0.7351018",
"0.7310748",
"0.69591284",
"0.6869606",
"0.6863134",
"0.6551534",
"0.64144266",
"0.6250492",
"0.6241997",
"0.62200755",
"0.61377007",
"0.6091443",
"0.6089278",
"0.6064151",
"0.6043184",
"0.60294676",
"0.6027368... | 0.85867846 | 0 |
IsPage return true if content is page | func (c *Content) IsPage() bool {
return c.Type == CONTENT_TYPE_PAGE
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (c *Container) IsPage() bool {\n\treturn c.Title != \"\"\n}",
"func (si *StructInfo) IsPage() bool {\n\treturn si.Kind == core.PAGE\n}",
"func (p Page) inPage(s string) bool {\n\tfor _, v := range p.Links {\n\t\tif s == v.Url.String() || v.Url.String()+\"/\" == s {\n\t\t\treturn true\n\t\t}\n\t}\n\treturn... | [
"0.8182451",
"0.72458345",
"0.6284937",
"0.62021935",
"0.6069874",
"0.5863453",
"0.5849004",
"0.5813375",
"0.5769847",
"0.57443935",
"0.5733453",
"0.57127947",
"0.56711227",
"0.5647718",
"0.5588009",
"0.55775696",
"0.55400574",
"0.553223",
"0.55277514",
"0.5482119",
"0.548072... | 0.8657112 | 0 |
IsTrashed return true if content is trashed | func (c *Content) IsTrashed() bool {
return c.Status == CONTENT_STATUS_TRASHED
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (o *TrashStructureApplication) HasTrashed() bool {\n\tif o != nil && !IsNil(o.Trashed) {\n\t\treturn true\n\t}\n\n\treturn false\n}",
"func (o *TrashStructureApplication) GetTrashed() bool {\n\tif o == nil || IsNil(o.Trashed) {\n\t\tvar ret bool\n\t\treturn ret\n\t}\n\treturn *o.Trashed\n}",
"func (o *Tra... | [
"0.67762494",
"0.67077285",
"0.6215999",
"0.5996488",
"0.5649976",
"0.533048",
"0.53276575",
"0.5198325",
"0.5166646",
"0.51392007",
"0.50936794",
"0.5033882",
"0.49881992",
"0.49692014",
"0.49692014",
"0.48998713",
"0.48027912",
"0.4781283",
"0.47776878",
"0.47514683",
"0.47... | 0.8638603 | 0 |
IsDraft return true if content is draft | func (c *Content) IsDraft() bool {
return c.Status == CONTENT_STATUS_DRAFT
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (m *ModelStatus) IsDraft() bool {\n\treturn m.Status == Draft\n}",
"func IsDraft(source string) bool {\n\treturn strings.Contains(filepath.Base(filepath.Dir(source)), \"drafts\")\n}",
"func (r *RepositoryRelease) GetDraft() bool {\n\tif r == nil || r.Draft == nil {\n\t\treturn false\n\t}\n\treturn *r.Draf... | [
"0.76661915",
"0.72118825",
"0.62594146",
"0.60783345",
"0.57742465",
"0.5612218",
"0.5590993",
"0.5470714",
"0.53782576",
"0.5354119",
"0.5348146",
"0.5320405",
"0.5315136",
"0.52890354",
"0.5246484",
"0.52413845",
"0.52356356",
"0.5234108",
"0.52093893",
"0.52065074",
"0.51... | 0.86880225 | 0 |
IsGlobal return true if space is global | func (s *Space) IsGlobal() bool {
return s.Type == SPACE_TYPE_GLOBAL
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (TypesObject) IsGlobal() bool { return boolResult }",
"func (o *RiskRulesListAllOfData) HasIsGlobal() bool {\n\tif o != nil && !IsNil(o.IsGlobal) {\n\t\treturn true\n\t}\n\n\treturn false\n}",
"func IsObjectGlobal(obj *metav1.ObjectMeta) bool {\n\tif obj.Annotations == nil {\n\t\treturn false\n\t}\n\n\tif... | [
"0.8007148",
"0.6786136",
"0.66457736",
"0.6634526",
"0.6249949",
"0.6210618",
"0.60924387",
"0.6089236",
"0.6016408",
"0.58948666",
"0.5890985",
"0.5815646",
"0.57908267",
"0.57907593",
"0.5763864",
"0.5744893",
"0.573173",
"0.56694597",
"0.563088",
"0.5604707",
"0.5591501",... | 0.8851892 | 0 |
IsPersonal return true if space is personal | func (s *Space) IsPersonal() bool {
return s.Type == SPACE_TYPE_PERSONAL
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (obj *Global) IsPersonalMode(ctx context.Context) (bool, error) {\n\tresult := &struct {\n\t\tReturn bool `json:\"qReturn\"`\n\t}{}\n\terr := obj.RPC(ctx, \"IsPersonalMode\", result)\n\treturn result.Return, err\n}",
"func (s *System) IsPublic() bool { return s.Name == PublicSystem.Name || s.Name == PublicC... | [
"0.70180583",
"0.6078018",
"0.58026356",
"0.5692048",
"0.56086373",
"0.55681205",
"0.55415803",
"0.5512311",
"0.54638976",
"0.5388905",
"0.5357469",
"0.52480066",
"0.5236056",
"0.52012086",
"0.5195337",
"0.51941645",
"0.5180246",
"0.51634693",
"0.51496786",
"0.510989",
"0.510... | 0.8510974 | 0 |
IsArchived return true if space is archived | func (s *Space) IsArchived() bool {
return s.Type == SPACE_STATUS_ARCHIVED
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (sdk Sdk) IsArchived() bool {\n\treturn sdk.archiveFile() != \"\"\n}",
"func (r *BackupItem) IsArchived() bool {\n\treturn r.Status&StatusArchived == StatusArchived\n}",
"func (r *BackupItem) IsArchived() bool {\n\treturn r.Status&StatusArchived == StatusArchived\n}",
"func (r *RoleList) HasArchived() b... | [
"0.7998938",
"0.7904601",
"0.7904601",
"0.68943787",
"0.6770506",
"0.67099184",
"0.6696357",
"0.66641325",
"0.6639419",
"0.66274315",
"0.6606585",
"0.65943253",
"0.6559072",
"0.6552962",
"0.6517748",
"0.6511882",
"0.64961284",
"0.6490567",
"0.6486505",
"0.6484248",
"0.6432670... | 0.8670008 | 0 |
IsPage return true if container is page | func (c *Container) IsPage() bool {
return c.Title != ""
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (c *Content) IsPage() bool {\n\treturn c.Type == CONTENT_TYPE_PAGE\n}",
"func (si *StructInfo) IsPage() bool {\n\treturn si.Kind == core.PAGE\n}",
"func (p *Paginator) IsCurrentPage(page int) bool {\n\treturn p.CurrentPage() == page\n}",
"func (p *Pagination) IsCurrentPage(page int) bool {\n\treturn p.C... | [
"0.7772381",
"0.72924674",
"0.632932",
"0.61344856",
"0.610035",
"0.60268337",
"0.6011801",
"0.58766586",
"0.5786298",
"0.57827115",
"0.57642055",
"0.5759891",
"0.566043",
"0.56425154",
"0.56420946",
"0.5632037",
"0.5631244",
"0.5612727",
"0.5582618",
"0.5552817",
"0.55508125... | 0.8593985 | 0 |
IsSpace return true if container is space | func (c *Container) IsSpace() bool {
return c.Key != ""
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func isSpace(c byte) bool {\n\treturn c == space\n}",
"func isSpace(b byte) bool {\n\tswitch b {\n\tcase 32, 12, 9:\n\t\treturn true\n\tdefault:\n\t\treturn false\n\t}\n}",
"func IsSpaceRoot(r *Node) bool {\n\tpath := r.InternalPath()\n\tif spaceNameBytes, err := xattr.Get(path, xattrs.SpaceNameAttr); err == n... | [
"0.6675399",
"0.63208467",
"0.62378913",
"0.61830646",
"0.6046376",
"0.6005166",
"0.59704506",
"0.5963759",
"0.59173125",
"0.590388",
"0.5838448",
"0.58182573",
"0.5815866",
"0.5789589",
"0.5774671",
"0.57681674",
"0.5735624",
"0.5731149",
"0.5728202",
"0.57250816",
"0.571731... | 0.8235814 | 0 |
Combined return united slice with all watchers | func (wi *WatchInfo) Combined() []*Watcher {
var result []*Watcher
result = append(result, wi.PageWatchers...)
MAINLOOP:
for _, watcher := range wi.SpaceWatchers {
for _, pageWatcher := range wi.PageWatchers {
if watcher.Key == pageWatcher.Key {
continue MAINLOOP
}
}
result = append(result, watche... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func ThingChanSlice(inp ...[]Thing) (out ThingFrom) {\n\tcha := make(chan Thing)\n\tgo chanThingSlice(cha, inp...)\n\treturn cha\n}",
"func mutatingWatcherFor(source watch.Interface, mutator func(runtime.Object) error) watch.Interface {\n\tw := mutatingWatcher{\n\t\tmutator: mutator,\n\t\tsource: source,\n\t\to... | [
"0.5222102",
"0.52214664",
"0.5113484",
"0.5051384",
"0.5022026",
"0.5010823",
"0.49848473",
"0.49482363",
"0.48892376",
"0.48768497",
"0.48226663",
"0.48220932",
"0.48068982",
"0.47980753",
"0.47792238",
"0.47734892",
"0.47717527",
"0.4766235",
"0.47632176",
"0.47610208",
"0... | 0.5794027 | 0 |
////////////////////////////////////////////////////////////////////////////////// // UnmarshalJSON is custom Date format unmarshaler | func (d *Date) UnmarshalJSON(b []byte) error {
var err error
d.Time, err = time.Parse(time.RFC3339, strings.Trim(string(b), "\""))
if err != nil {
return fmt.Errorf("Cannot unmarshal Date value: %v", err)
}
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (j *JSONDate) UnmarshalJSON(b []byte) error {\n\ts := strings.Trim(string(b), \"\\\"\")\n\tif s == \"null\" {\n\t\treturn nil\n\t}\n\tt, err := time.Parse(\"2006-01-02\", s)\n\tif err != nil {\n\t\treturn err\n\t}\n\t*j = JSONDate(t)\n\treturn nil\n}",
"func (d *Date) UnmarshalJSON(data []byte) error {\n\tv... | [
"0.81394374",
"0.80700237",
"0.8037812",
"0.7958249",
"0.7948897",
"0.79188573",
"0.78638464",
"0.7809091",
"0.776579",
"0.74939996",
"0.7479637",
"0.7475169",
"0.73422307",
"0.7309434",
"0.7237858",
"0.7201589",
"0.7178287",
"0.71777284",
"0.7090374",
"0.70767206",
"0.694411... | 0.7944045 | 5 |
UnmarshalJSON is custom container ID unmarshaler | func (c *ContainerID) UnmarshalJSON(b []byte) error {
switch {
case len(b) == 0:
// nop
case b[0] == '"':
*c = ContainerID(strings.Replace(string(b), "\"", "", -1))
default:
*c = ContainerID(string(b))
}
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (c *Container) UnmarshalJSON(data []byte) error {\n\tvar rawMsg map[string]json.RawMessage\n\tif err := json.Unmarshal(data, &rawMsg); err != nil {\n\t\treturn fmt.Errorf(\"unmarshalling type %T: %v\", c, err)\n\t}\n\tfor key, val := range rawMsg {\n\t\tvar err error\n\t\tswitch key {\n\t\tcase \"id\":\n\t\t\... | [
"0.7148999",
"0.6506939",
"0.6456671",
"0.626328",
"0.62423307",
"0.62230057",
"0.62131965",
"0.62050635",
"0.61372226",
"0.6101458",
"0.6020385",
"0.60104495",
"0.5999803",
"0.59816074",
"0.5956228",
"0.5951397",
"0.59462184",
"0.5914333",
"0.59087616",
"0.5903828",
"0.58749... | 0.74064636 | 0 |
UnmarshalJSON is custom position unmarshaler | func (ep *ExtensionPosition) UnmarshalJSON(b []byte) error {
if string(b) == "\"none\"" {
*ep = ExtensionPosition(-1)
return nil
}
v, err := strconv.Atoi(string(b))
if err != nil {
return fmt.Errorf("Cannot unmarshal ExtensionPosition value: %v", err)
}
*ep = ExtensionPosition(v)
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (v *Position) UnmarshalJSON(data []byte) error {\n\tr := jlexer.Lexer{Data: data}\n\teasyjson3e8ab7adDecodeGithubComAlpacahqAlpacaTradeApiGoV3Alpaca11(&r, v)\n\treturn r.Error()\n}",
"func (v *positionSlice) UnmarshalJSON(data []byte) error {\n\tr := jlexer.Lexer{Data: data}\n\teasyjson3e8ab7adDecodeGithubC... | [
"0.74146724",
"0.6868145",
"0.67995036",
"0.6693155",
"0.66368324",
"0.6594695",
"0.6593127",
"0.65247303",
"0.6522809",
"0.649227",
"0.6414832",
"0.62570053",
"0.61681646",
"0.6066703",
"0.60507333",
"0.6030418",
"0.600614",
"0.5978521",
"0.5969089",
"0.5952851",
"0.594557",... | 0.6696502 | 3 |
UnmarshalJSON is custom Timestamp format unmarshaler | func (d *Timestamp) UnmarshalJSON(b []byte) error {
ts, err := strconv.ParseInt(string(b), 10, 64)
if err != nil {
return err
}
d.Time = time.Unix(ts/1000, (ts%1000)*1000000)
if err != nil {
return fmt.Errorf("Cannot unmarshal Timestamp value: %v", err)
}
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (t *Timestamp) UnmarshalJSON(data []byte) (err error) {\n\tt.Time, err = time.Parse(`\"`+time.RFC3339+`\"`, string(data))\n\treturn\n}",
"func (t *Timestamp) UnmarshalJSON(b []byte) error {\n\n\t// CoinCap timestamp is unix milliseconds\n\tm, err := strconv.ParseInt(string(b), 10, 64)\n\tif err != nil {\n\t... | [
"0.77599716",
"0.76214904",
"0.76178885",
"0.7563524",
"0.7549915",
"0.7549915",
"0.7534542",
"0.7486828",
"0.74658304",
"0.743619",
"0.7401778",
"0.73976845",
"0.73660606",
"0.73597485",
"0.7257218",
"0.7239708",
"0.7195749",
"0.7048042",
"0.68625087",
"0.684933",
"0.6839843... | 0.75225425 | 7 |
////////////////////////////////////////////////////////////////////////////////// // Validate validates parameters | func (p EmptyParameters) Validate() error {
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func validateParams() {\n\tif domain == \"\" {\n\t\tprintAndExit(\"-domain is required!\", true)\n\t}\n\n\tif passLength < 1 {\n\t\tprintAndExit(\"-password-length must be a positive number!\", true)\n\t}\n\n\tif passLength < 8 {\n\t\tfmt.Println(\"WARN: -password-length is too short. We will grant your wish, but ... | [
"0.76747197",
"0.76292884",
"0.75551236",
"0.7502768",
"0.74260867",
"0.74234974",
"0.7338424",
"0.7256845",
"0.71697897",
"0.71468896",
"0.70932436",
"0.708344",
"0.7079252",
"0.703499",
"0.6956334",
"0.6926156",
"0.6903584",
"0.6844796",
"0.6821966",
"0.68136436",
"0.670866... | 0.70064795 | 14 |
////////////////////////////////////////////////////////////////////////////////// // ToQuery convert params to URL query | func (p EmptyParameters) ToQuery() string {
return ""
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (p SearchParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}",
"func (p SpaceParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}",
"func (p UserParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}",
"func (p WatchParameters) ToQuery() string {\n\treturn paramsToQuery(p)\n}",
... | [
"0.69802153",
"0.6851066",
"0.6832986",
"0.6753629",
"0.6604387",
"0.6578298",
"0.6562738",
"0.6556346",
"0.6538245",
"0.65255356",
"0.6513276",
"0.64893854",
"0.6467349",
"0.6452583",
"0.6342201",
"0.6269828",
"0.62599957",
"0.62418145",
"0.6221602",
"0.6195083",
"0.61360025... | 0.6406001 | 14 |
ToQuery convert params to URL query | func (p ExpandParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6832333",
"0.6594184",
"0.6566136",
"0.647473",
"0.6467218",
"0.645976",
"0.6438409",
"0.6438392",
"0.6338079",
"0.6316479",
"0.6304608",
"0.6253197",
"0.6245381",
"0.61825085",
"0.6172136",
"0.61507785",
"0.6148716",
"0.61405796",
"0.61299556",
"0.6129387",
"0.6121026",
... | 0.62643653 | 11 |
ToQuery convert params to URL query | func (p CollectionParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6831997",
"0.6596019",
"0.65677404",
"0.6476657",
"0.6465981",
"0.64611274",
"0.6440736",
"0.6438274",
"0.6336055",
"0.6318419",
"0.6303012",
"0.6266506",
"0.6254942",
"0.62466896",
"0.61847407",
"0.6174108",
"0.61501485",
"0.6149749",
"0.61430305",
"0.61313033",
"0.613094... | 0.58379525 | 38 |
ToQuery convert params to URL query | func (p AuditParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6832333",
"0.6594184",
"0.6566136",
"0.647473",
"0.6467218",
"0.645976",
"0.6438409",
"0.6438392",
"0.6338079",
"0.6316479",
"0.6304608",
"0.62643653",
"0.6253197",
"0.6245381",
"0.61825085",
"0.6172136",
"0.61507785",
"0.6148716",
"0.61405796",
"0.61299556",
"0.6129387",
... | 0.6121026 | 21 |
ToQuery convert params to URL query | func (p AuditSinceParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6832333",
"0.6594184",
"0.6566136",
"0.647473",
"0.6467218",
"0.645976",
"0.6438409",
"0.6438392",
"0.6338079",
"0.6316479",
"0.6304608",
"0.62643653",
"0.6253197",
"0.6245381",
"0.61825085",
"0.6172136",
"0.61507785",
"0.6148716",
"0.61405796",
"0.61299556",
"0.6121026",
... | 0.6129387 | 20 |
ToQuery convert params to URL query | func (p ContentParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6832333",
"0.6594184",
"0.6566136",
"0.647473",
"0.6467218",
"0.645976",
"0.6438409",
"0.6438392",
"0.6338079",
"0.6316479",
"0.6304608",
"0.62643653",
"0.6253197",
"0.6245381",
"0.6172136",
"0.61507785",
"0.6148716",
"0.61405796",
"0.61299556",
"0.6129387",
"0.6121026",
... | 0.61825085 | 14 |
ToQuery convert params to URL query | func (p ContentIDParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6831997",
"0.6596019",
"0.65677404",
"0.6476657",
"0.6465981",
"0.64611274",
"0.6440736",
"0.6438274",
"0.6336055",
"0.6318419",
"0.6303012",
"0.6266506",
"0.6254942",
"0.62466896",
"0.61847407",
"0.61501485",
"0.6149749",
"0.61430305",
"0.61313033",
"0.61309415",
"0.61230... | 0.6174108 | 15 |
ToQuery convert params to URL query | func (p ContentSearchParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6832333",
"0.6594184",
"0.6566136",
"0.647473",
"0.6467218",
"0.645976",
"0.6438409",
"0.6438392",
"0.6338079",
"0.6304608",
"0.62643653",
"0.6253197",
"0.6245381",
"0.61825085",
"0.6172136",
"0.61507785",
"0.6148716",
"0.61405796",
"0.61299556",
"0.6129387",
"0.6121026",
... | 0.6316479 | 9 |
ToQuery convert params to URL query | func (p ChildrenParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6832333",
"0.6594184",
"0.6566136",
"0.647473",
"0.6467218",
"0.645976",
"0.6438409",
"0.6438392",
"0.6338079",
"0.6316479",
"0.6304608",
"0.62643653",
"0.6253197",
"0.6245381",
"0.61825085",
"0.6172136",
"0.61507785",
"0.6148716",
"0.61405796",
"0.61299556",
"0.6129387",
... | 0.5836777 | 37 |
ToQuery convert params to URL query | func (p AttachmentParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6832333",
"0.6594184",
"0.6566136",
"0.647473",
"0.6467218",
"0.645976",
"0.6438409",
"0.6438392",
"0.6338079",
"0.6316479",
"0.6304608",
"0.62643653",
"0.6253197",
"0.6245381",
"0.61825085",
"0.6172136",
"0.61507785",
"0.6148716",
"0.61405796",
"0.61299556",
"0.6129387",
... | 0.6062588 | 23 |
ToQuery convert params to URL query | func (p LabelParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6831997",
"0.6596019",
"0.65677404",
"0.6476657",
"0.6465981",
"0.64611274",
"0.6440736",
"0.6438274",
"0.6336055",
"0.6318419",
"0.6303012",
"0.6266506",
"0.6254942",
"0.62466896",
"0.61847407",
"0.6174108",
"0.61501485",
"0.6149749",
"0.61430305",
"0.61313033",
"0.613094... | 0.5852316 | 36 |
ToQuery convert params to URL query | func (p SearchParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6832333",
"0.6566136",
"0.647473",
"0.6467218",
"0.645976",
"0.6438409",
"0.6438392",
"0.6338079",
"0.6316479",
"0.6304608",
"0.62643653",
"0.6253197",
"0.6245381",
"0.61825085",
"0.6172136",
"0.61507785",
"0.6148716",
"0.61405796",
"0.61299556",
"0.6129387",
"0.6121026",
... | 0.6594184 | 1 |
ToQuery convert params to URL query | func (p SpaceParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6832333",
"0.6594184",
"0.6566136",
"0.647473",
"0.6467218",
"0.645976",
"0.6438392",
"0.6338079",
"0.6316479",
"0.6304608",
"0.62643653",
"0.6253197",
"0.6245381",
"0.61825085",
"0.6172136",
"0.61507785",
"0.6148716",
"0.61405796",
"0.61299556",
"0.6129387",
"0.6121026",
... | 0.6438409 | 6 |
ToQuery convert params to URL query | func (p UserParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6832333",
"0.6594184",
"0.6566136",
"0.6467218",
"0.645976",
"0.6438409",
"0.6438392",
"0.6338079",
"0.6316479",
"0.6304608",
"0.62643653",
"0.6253197",
"0.6245381",
"0.61825085",
"0.6172136",
"0.61507785",
"0.6148716",
"0.61405796",
"0.61299556",
"0.6129387",
"0.6121026",... | 0.647473 | 3 |
ToQuery convert params to URL query | func (p WatchParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6831997",
"0.6596019",
"0.65677404",
"0.6476657",
"0.6465981",
"0.6440736",
"0.6438274",
"0.6336055",
"0.6318419",
"0.6303012",
"0.6266506",
"0.6254942",
"0.62466896",
"0.61847407",
"0.6174108",
"0.61501485",
"0.6149749",
"0.61430305",
"0.61313033",
"0.61309415",
"0.612301... | 0.64611274 | 5 |
ToQuery convert params to URL query | func (p ListWatchersParameters) ToQuery() string {
return paramsToQuery(p)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func makeQueryStringFromParam(params map[string][]string) string {\n\tif params == nil {\n\t\treturn \"\"\n\t}\n\tresult := \"\"\n\tfor key, array := range params {\n\t\tfor _, value := range array {\n\t\t\tkeyVal := fmt.Sprintf(\"%s-%s\", key, value)\n\t\t\tif result == \"\" {\n\t\t\t\tresult = \"?\" + keyVal\n\t... | [
"0.6832333",
"0.6594184",
"0.6566136",
"0.647473",
"0.6467218",
"0.645976",
"0.6438409",
"0.6438392",
"0.6338079",
"0.6316479",
"0.6304608",
"0.62643653",
"0.6253197",
"0.6245381",
"0.61825085",
"0.6172136",
"0.61507785",
"0.6148716",
"0.61405796",
"0.6129387",
"0.6121026",
... | 0.61299556 | 19 |
Deprecated: Use Empty.ProtoReflect.Descriptor instead. | func (*Empty) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{0}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*UnusedEmptyMessage) Descriptor() ([]byte, []int) {\n\treturn file_datasets_google_message4_benchmark_message4_2_proto_rawDescGZIP(), []int{33}\n}",
"func ProtoFromDescriptor(d protoreflect.Descriptor) proto.Message {\n\tswitch d := d.(type) {\n\tcase protoreflect.FileDescriptor:\n\t\treturn ProtoFromFileD... | [
"0.70006037",
"0.69941497",
"0.68269813",
"0.681359",
"0.67958504",
"0.6715465",
"0.66984934",
"0.66754323",
"0.6671088",
"0.66236264",
"0.6619724",
"0.6597582",
"0.65604174",
"0.6558394",
"0.6557662",
"0.65570986",
"0.65459114",
"0.65429693",
"0.65423435",
"0.6534779",
"0.65... | 0.0 | -1 |
Deprecated: Use Repository.ProtoReflect.Descriptor instead. | func (*Repository) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{1}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func ProtoFromDescriptor(d protoreflect.Descriptor) proto.Message {\n\tswitch d := d.(type) {\n\tcase protoreflect.FileDescriptor:\n\t\treturn ProtoFromFileDescriptor(d)\n\tcase protoreflect.MessageDescriptor:\n\t\treturn ProtoFromMessageDescriptor(d)\n\tcase protoreflect.FieldDescriptor:\n\t\treturn ProtoFromFiel... | [
"0.68783855",
"0.6843687",
"0.68375736",
"0.6735068",
"0.6714124",
"0.67126113",
"0.67100394",
"0.67075354",
"0.6700952",
"0.66977274",
"0.6691201",
"0.66736233",
"0.6665403",
"0.66508365",
"0.6647841",
"0.6630565",
"0.66266453",
"0.66193706",
"0.6612832",
"0.65966034",
"0.65... | 0.0 | -1 |
Deprecated: Use RepositoryID.ProtoReflect.Descriptor instead. | func (*RepositoryID) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{2}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*Ref) Descriptor() ([]byte, []int) {\n\treturn file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{13}\n}",
"func (*RepositoryNamedIdentification) Descriptor() ([]byte, []int) {\n\treturn file_modeldb_versioning_VersioningService_proto_rawDescGZIP(), []int{10}\n}",
"func (*Reposito... | [
"0.68321776",
"0.68248713",
"0.67511714",
"0.668972",
"0.6668801",
"0.66680187",
"0.66493356",
"0.66091496",
"0.65678436",
"0.6559239",
"0.6551037",
"0.6528242",
"0.6506257",
"0.6503224",
"0.64981985",
"0.6481601",
"0.64746153",
"0.64697844",
"0.646644",
"0.6431208",
"0.64123... | 0.647775 | 16 |
Deprecated: Use ListRepositoryReq.ProtoReflect.Descriptor instead. | func (*ListRepositoryReq) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{3}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*ListMetadataRequest) Descriptor() ([]byte, []int) {\n\treturn file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{23}\n}",
"func (*ListRepositoriesRequest) Descriptor() ([]byte, []int) {\n\treturn file_modeldb_versioning_VersioningService_proto_rawDescGZIP(), []int{12}\n}",
"func ... | [
"0.73137987",
"0.72216994",
"0.71340483",
"0.71158785",
"0.69697946",
"0.6960516",
"0.6959861",
"0.6948829",
"0.6934028",
"0.6908448",
"0.69048285",
"0.690034",
"0.68986243",
"0.689512",
"0.68887913",
"0.68837196",
"0.68708044",
"0.68625325",
"0.68586475",
"0.6857217",
"0.684... | 0.75993085 | 0 |
Deprecated: Use ListRepositoryRes.ProtoReflect.Descriptor instead. | func (*ListRepositoryRes) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{4}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*ListRepositoryReq) Descriptor() ([]byte, []int) {\n\treturn file_api_ops_proto_rawDescGZIP(), []int{3}\n}",
"func (*ListMetadataRequest) Descriptor() ([]byte, []int) {\n\treturn file_go_chromium_org_luci_cipd_api_cipd_v1_repo_proto_rawDescGZIP(), []int{23}\n}",
"func (*ListMetadataResponse) Descriptor()... | [
"0.702423",
"0.6973052",
"0.69654864",
"0.6897099",
"0.68097436",
"0.67948705",
"0.6777074",
"0.6746349",
"0.67213786",
"0.668595",
"0.6660488",
"0.66343534",
"0.65886915",
"0.65775126",
"0.65540314",
"0.65510374",
"0.6541655",
"0.651642",
"0.6510909",
"0.6510901",
"0.650161"... | 0.734723 | 0 |
Deprecated: Use Job.ProtoReflect.Descriptor instead. | func (*Job) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{5}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*Job) Descriptor() ([]byte, []int) {\n\treturn file_go_chromium_org_luci_scheduler_appengine_messages_config_proto_rawDescGZIP(), []int{4}\n}",
"func (*Job) Descriptor() ([]byte, []int) {\n\treturn file_protobuf_clusrun_proto_rawDescGZIP(), []int{6}\n}",
"func (*MutateBatchJobResult) Descriptor() ([]byte... | [
"0.68730223",
"0.68383205",
"0.6805697",
"0.6785015",
"0.6751275",
"0.6734359",
"0.6731901",
"0.67313254",
"0.67201996",
"0.67201066",
"0.67061776",
"0.6701944",
"0.66931605",
"0.668313",
"0.6682389",
"0.6678311",
"0.6670112",
"0.666552",
"0.6661476",
"0.6650469",
"0.6648507"... | 0.6516442 | 51 |
Deprecated: Use JobID.ProtoReflect.Descriptor instead. | func (*JobID) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{6}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*JobId) Descriptor() ([]byte, []int) {\n\treturn file_proto_jobproc_worker_proto_rawDescGZIP(), []int{0}\n}",
"func (*Job) Descriptor() ([]byte, []int) {\n\treturn file_go_chromium_org_luci_scheduler_appengine_messages_config_proto_rawDescGZIP(), []int{4}\n}",
"func (*Job) Descriptor() ([]byte, []int) {\... | [
"0.6843426",
"0.6759486",
"0.6712549",
"0.66921514",
"0.66482294",
"0.66406596",
"0.66044396",
"0.65817815",
"0.6566834",
"0.6542544",
"0.653092",
"0.65233004",
"0.652208",
"0.6515414",
"0.65150124",
"0.65135664",
"0.65102345",
"0.64974326",
"0.6486138",
"0.64722306",
"0.6470... | 0.6656509 | 4 |
Deprecated: Use ListJobReq.ProtoReflect.Descriptor instead. | func (*ListJobReq) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{7}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*ListJobsRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_manager_http_grpc_job_proto_rawDescGZIP(), []int{3}\n}",
"func (*ListBatchJobResultsRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_ads_googleads_v14_services_batch_job_service_proto_rawDescGZIP(), []int{7}\n}",
"func (*Get... | [
"0.7615721",
"0.7097827",
"0.7036084",
"0.6987018",
"0.6931635",
"0.6919937",
"0.69092584",
"0.68779176",
"0.6857533",
"0.68378437",
"0.6824317",
"0.681413",
"0.6808692",
"0.68012184",
"0.67888135",
"0.678158",
"0.6770477",
"0.67660964",
"0.67263854",
"0.6692397",
"0.6688013"... | 0.75819296 | 1 |
Deprecated: Use ListJobRes.ProtoReflect.Descriptor instead. | func (*ListJobRes) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{8}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*ListJobsRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_manager_http_grpc_job_proto_rawDescGZIP(), []int{3}\n}",
"func (*ListJobReq) Descriptor() ([]byte, []int) {\n\treturn file_api_ops_proto_rawDescGZIP(), []int{7}\n}",
"func (*ListJobsResponse) Descriptor() ([]byte, []int) {\n\treturn file... | [
"0.71542174",
"0.7084673",
"0.70369273",
"0.6963372",
"0.6837766",
"0.67902213",
"0.6754233",
"0.67203486",
"0.66875696",
"0.66731966",
"0.66695327",
"0.66659844",
"0.6660195",
"0.66439104",
"0.66189617",
"0.66168547",
"0.6597521",
"0.6573736",
"0.65519154",
"0.6539392",
"0.6... | 0.73013926 | 0 |
Deprecated: Use Variable.ProtoReflect.Descriptor instead. | func (*Variable) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{9}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*Variable) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_clouddebugger_v2_data_proto_rawDescGZIP(), []int{3}\n}",
"func (*Variable) Descriptor() ([]byte, []int) {\n\treturn file_proto_v1_synthetics_proto_rawDescGZIP(), []int{2}\n}",
"func (*Decl) Descriptor() ([]byte, []int) {\n\treturn f... | [
"0.7069272",
"0.6949201",
"0.6692112",
"0.6672231",
"0.6653387",
"0.6618355",
"0.6558401",
"0.65531915",
"0.6534766",
"0.64856",
"0.6484012",
"0.64780563",
"0.64625686",
"0.64596546",
"0.6448988",
"0.6426956",
"0.64212537",
"0.6388587",
"0.6385581",
"0.6384995",
"0.63774407",... | 0.65379226 | 8 |
Deprecated: Use VariableID.ProtoReflect.Descriptor instead. | func (*VariableID) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{10}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*Variable) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_clouddebugger_v2_data_proto_rawDescGZIP(), []int{3}\n}",
"func (*Variable) Descriptor() ([]byte, []int) {\n\treturn file_proto_v1_synthetics_proto_rawDescGZIP(), []int{2}\n}",
"func (*CMsg_CVars_CVar) Descriptor() ([]byte, []int) {\... | [
"0.7126352",
"0.69455767",
"0.66260874",
"0.6588909",
"0.65298015",
"0.652896",
"0.6456636",
"0.64446527",
"0.63759214",
"0.63162845",
"0.62901366",
"0.6273029",
"0.6255722",
"0.6251889",
"0.6215531",
"0.61692864",
"0.6162203",
"0.61464596",
"0.61338854",
"0.61130613",
"0.611... | 0.66086614 | 3 |
Deprecated: Use ListVariableReq.ProtoReflect.Descriptor instead. | func (*ListVariableReq) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{11}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*ListVariableRes) Descriptor() ([]byte, []int) {\n\treturn file_api_ops_proto_rawDescGZIP(), []int{12}\n}",
"func (*Variable) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_clouddebugger_v2_data_proto_rawDescGZIP(), []int{3}\n}",
"func (*ListRequest) Descriptor() ([]byte, []int) {\n\tretur... | [
"0.7003119",
"0.6571559",
"0.65231967",
"0.65141094",
"0.6512945",
"0.6493738",
"0.6483414",
"0.64811575",
"0.64797944",
"0.64721453",
"0.6448194",
"0.64414454",
"0.64365965",
"0.6429342",
"0.64083",
"0.63977855",
"0.63758576",
"0.63715404",
"0.63642275",
"0.6352802",
"0.6351... | 0.76881313 | 0 |
Deprecated: Use ListVariableRes.ProtoReflect.Descriptor instead. | func (*ListVariableRes) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{12}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*ListVariableReq) Descriptor() ([]byte, []int) {\n\treturn file_api_ops_proto_rawDescGZIP(), []int{11}\n}",
"func (*Variable) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_clouddebugger_v2_data_proto_rawDescGZIP(), []int{3}\n}",
"func (*Type_ListType) Descriptor() ([]byte, []int) {\n\tret... | [
"0.7172866",
"0.66695154",
"0.6534382",
"0.650128",
"0.6460396",
"0.63638353",
"0.6329906",
"0.6309684",
"0.6288664",
"0.62838805",
"0.6276277",
"0.62503725",
"0.62489116",
"0.6238479",
"0.62189096",
"0.62014437",
"0.62013793",
"0.6194213",
"0.6187662",
"0.6171217",
"0.617054... | 0.7408062 | 0 |
Deprecated: Use DescribeRepositoryReq.ProtoReflect.Descriptor instead. | func (*DescribeRepositoryReq) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{13}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*GetRepositoryRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_devtools_artifactregistry_v1_repository_proto_rawDescGZIP(), []int{3}\n}",
"func (*ComputeRepositoryDiffRequest) Descriptor() ([]byte, []int) {\n\treturn file_modeldb_versioning_VersioningService_proto_rawDescGZIP(), []int{22}\n}",... | [
"0.73243886",
"0.72970176",
"0.7288239",
"0.71888715",
"0.7183465",
"0.7175035",
"0.713901",
"0.71179855",
"0.69901067",
"0.6977314",
"0.6969404",
"0.692119",
"0.69194776",
"0.6916009",
"0.6915778",
"0.6902419",
"0.6895223",
"0.6869635",
"0.68641007",
"0.6858219",
"0.68566984... | 0.7458026 | 0 |
Deprecated: Use Playbook.ProtoReflect.Descriptor instead. | func (*Playbook) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{14}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func ProtoFromDescriptor(d protoreflect.Descriptor) proto.Message {\n\tswitch d := d.(type) {\n\tcase protoreflect.FileDescriptor:\n\t\treturn ProtoFromFileDescriptor(d)\n\tcase protoreflect.MessageDescriptor:\n\t\treturn ProtoFromMessageDescriptor(d)\n\tcase protoreflect.FieldDescriptor:\n\t\treturn ProtoFromFiel... | [
"0.6994223",
"0.69564056",
"0.68918157",
"0.6883137",
"0.6881855",
"0.68322396",
"0.6789128",
"0.6786295",
"0.67834914",
"0.6772274",
"0.6771531",
"0.67621785",
"0.6762107",
"0.67534095",
"0.6751933",
"0.6744234",
"0.6737102",
"0.6735611",
"0.6730613",
"0.6726951",
"0.6716874... | 0.0 | -1 |
Deprecated: Use RunOpsReq.ProtoReflect.Descriptor instead. | func (*RunOpsReq) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{15}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}",
"func (*PatchTasksRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{154}\n}",
"func (*UpdateTensorboardRunReque... | [
"0.7107612",
"0.7017801",
"0.6950608",
"0.67722416",
"0.6765324",
"0.6752489",
"0.67259437",
"0.67221236",
"0.6707314",
"0.67040014",
"0.66941196",
"0.6678439",
"0.6670832",
"0.6666073",
"0.6662944",
"0.66578716",
"0.6657816",
"0.66495866",
"0.664471",
"0.66404855",
"0.663125... | 0.7500174 | 0 |
Deprecated: Use RunOpsRes.ProtoReflect.Descriptor instead. | func (*RunOpsRes) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{16}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*RunOpsReq) Descriptor() ([]byte, []int) {\n\treturn file_api_ops_proto_rawDescGZIP(), []int{15}\n}",
"func (*UpdateTensorboardRunRequest) Descriptor() ([]byte, []int) {\n\treturn file_google_cloud_aiplatform_v1_tensorboard_service_proto_rawDescGZIP(), []int{24}\n}",
"func (*GetTensorboardRunRequest) Des... | [
"0.6750467",
"0.67362535",
"0.6681629",
"0.66724443",
"0.66413933",
"0.66265243",
"0.6616651",
"0.6573871",
"0.65253603",
"0.6516421",
"0.65161854",
"0.65145516",
"0.650977",
"0.64996266",
"0.6403638",
"0.63801986",
"0.6372133",
"0.6363645",
"0.6316747",
"0.6310355",
"0.63045... | 0.70218784 | 0 |
Deprecated: Use Playbook_Env.ProtoReflect.Descriptor instead. | func (*Playbook_Env) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{14, 0}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*PatchCollectorsRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{161}\n}",
"func (*Deprecation) Descriptor() ([]byte, []int) {\n\treturn file_external_cfgmgmt_response_nodes_proto_rawDescGZIP(), []int{8}\n}",
"func (*StandardProtocols) Descripto... | [
"0.6911421",
"0.6829972",
"0.68295133",
"0.68275696",
"0.68268377",
"0.68055516",
"0.67770445",
"0.6775906",
"0.67675984",
"0.6741583",
"0.672539",
"0.67178535",
"0.67139137",
"0.67027414",
"0.669617",
"0.6689195",
"0.66723967",
"0.6672052",
"0.66466224",
"0.6646433",
"0.6635... | 0.0 | -1 |
Deprecated: Use Playbook_Task.ProtoReflect.Descriptor instead. | func (*Playbook_Task) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{14, 1}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*Task) Descriptor() ([]byte, []int) {\n\treturn file_api_proto_tasklist_server_proto_rawDescGZIP(), []int{0}\n}",
"func (*OldSystemTask) Descriptor() ([]byte, []int) {\n\treturn file_offline_v3tasks_proto_rawDescGZIP(), []int{2}\n}",
"func (*Task) Descriptor() ([]byte, []int) {\n\treturn file_proto_task_... | [
"0.7182666",
"0.7142638",
"0.71236145",
"0.71081597",
"0.7098932",
"0.70734704",
"0.7066592",
"0.7059467",
"0.70552635",
"0.7039159",
"0.703849",
"0.7026142",
"0.702429",
"0.7005555",
"0.7005214",
"0.6996637",
"0.6988561",
"0.69673556",
"0.6951356",
"0.69451886",
"0.68928236"... | 0.6957531 | 18 |
Deprecated: Use Playbook_Task_Args.ProtoReflect.Descriptor instead. | func (*Playbook_Task_Args) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{14, 1, 0}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (*PatchTasksRequest) Descriptor() ([]byte, []int) {\n\treturn file_proto_clarifai_api_service_proto_rawDescGZIP(), []int{154}\n}",
"func (*TaskUpdateRequest) Descriptor() ([]byte, []int) {\n\treturn file_pkg_protobuf_v1_task_proto_rawDescGZIP(), []int{2}\n}",
"func (*Task) Descriptor() ([]byte, []int) {\n... | [
"0.6772049",
"0.67473507",
"0.67229784",
"0.6688819",
"0.6679389",
"0.6678997",
"0.6661416",
"0.66595143",
"0.6651677",
"0.66499674",
"0.6629894",
"0.6624345",
"0.6620293",
"0.66010374",
"0.6590303",
"0.65902686",
"0.6589136",
"0.6578645",
"0.6573349",
"0.6548069",
"0.6545608... | 0.6958025 | 0 |
Filename returns an absolute filename, appropriate for the operating system | func (s *Single) Filename() string {
if len(Lockfile) > 0 {
return Lockfile
}
return filepath.Join(os.TempDir(), fmt.Sprintf("%s.lock", s.name))
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (b *Builder) Filename() string {\n\txOsExts := map[string]string{\n\t\t\"darwin\": \"\",\n\t\t\"linux\": \"\",\n\t\t\"windows\": \".exe\",\n\t}\n\tbinaryName := fmt.Sprintf(\"%s_%s_%s%s\",\n\t\tb.Cmd, b.OS, b.Arch, xOsExts[b.OS])\n\tif b.BinaryName != \"\" {\n\t\tbinaryName = fmt.Sprintf(\"%s%s\",\n\t\t\tb... | [
"0.72051346",
"0.6865569",
"0.65848285",
"0.65466267",
"0.65000707",
"0.64210916",
"0.6379323",
"0.6375483",
"0.6336399",
"0.63012487",
"0.63003117",
"0.6290895",
"0.6288496",
"0.62345266",
"0.62114173",
"0.61891854",
"0.6177012",
"0.61716574",
"0.614597",
"0.6145935",
"0.613... | 0.57931376 | 50 |
CheckLock tries to obtain an exclude lock on a lockfile and returns an error if one occurs | func (s *Single) CheckLock() error {
if err := os.Remove(s.Filename()); err != nil && !os.IsNotExist(err) {
return ErrAlreadyRunning
}
file, err := os.OpenFile(s.Filename(), os.O_EXCL|os.O_CREATE, 0600)
if err != nil {
return err
}
s.file = file
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func TestGetLock(t *testing.T) {\n\tlockfile := lockOrFail(t)\n\tdefer removeTestLock(lockfile)\n}",
"func checkTrylockMainProcess(t *testing.T) {\n\tvar err error\n\tlockfile := lockOrFail(t)\n\tdefer removeTestLock(lockfile)\n\tlockdir := filepath.Dir(lockfile.File.Name())\n\totherAcquired, message, err := for... | [
"0.6637657",
"0.6374418",
"0.6349784",
"0.62125856",
"0.6165353",
"0.6146329",
"0.60941714",
"0.6085537",
"0.5988191",
"0.5964219",
"0.5961086",
"0.5947109",
"0.5945785",
"0.58900595",
"0.586523",
"0.5865227",
"0.5832653",
"0.5813164",
"0.5785906",
"0.5783055",
"0.5755824",
... | 0.6662857 | 0 |
TryUnlock closes and removes the lockfile | func (s *Single) TryUnlock() error {
if err := s.file.Close(); err != nil {
return fmt.Errorf("failed to close the lock file: %v", err)
}
if err := os.Remove(s.Filename()); err != nil {
return fmt.Errorf("failed to remove the lock file: %v", err)
}
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (l *lock) Unlock() error {\n\treturn l.file.Close()\n}",
"func (l *NullPathLocker) Unlock() {}",
"func release() error {\n\tif disabled() {\n\t\treturn nil\n\t}\n\n\tpath, err := path(lockFile)\n\tif err != nil {\n\t\treturn err\n\t}\n\treturn os.Remove(path)\n}",
"func (l *Lock) Unlock() (err error) {\... | [
"0.7291195",
"0.71327233",
"0.7082573",
"0.6988317",
"0.6927185",
"0.6922704",
"0.69134337",
"0.6886802",
"0.6824476",
"0.68202007",
"0.67619586",
"0.671021",
"0.664967",
"0.6605279",
"0.6600593",
"0.65595156",
"0.65485597",
"0.65302503",
"0.65296257",
"0.65162563",
"0.650584... | 0.7891906 | 0 |
String is the Stringer interface of Statistics. | func (s Statistics) String() string {
return fmt.Sprintf("\nResult statistic:\nCnt: bad=%v, timeout=%v\nTime: min=%v, middle=%v, max=%v, full=%v",
s.CntBad, s.CntTimeout, s.MinTime, s.MiddleTime, s.MaxTime, s.FullTime)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (s Statistics) String() string {\n\treturn awsutil.Prettify(s)\n}",
"func (s Statistics) String() string {\n\treturn awsutil.Prettify(s)\n}",
"func (s MeterStats) String() string {\n\treturn fmt.Sprintf(\"Meter <%s>: %d since %v, rate: %.3f current, %.3f average\\n\",\n\t\ts.Name, s.TotalCount, s.Start.Fo... | [
"0.8234325",
"0.8234325",
"0.7525964",
"0.7318602",
"0.7292317",
"0.729065",
"0.72792244",
"0.72606456",
"0.72602284",
"0.7199449",
"0.71782595",
"0.71585536",
"0.7139482",
"0.7139436",
"0.71277934",
"0.71164274",
"0.71054",
"0.71043813",
"0.70839185",
"0.705832",
"0.7039552"... | 0.7850229 | 2 |
Main function parsed initial parameters, created requests and check result | func main() {
domain := flag.String("domain", "", "a domain name")
var cntRepeat uint
flag.UintVar(&cntRepeat, "cnt", 0, "repeat requests count - positive")
var timeout uint
flag.UintVar(&timeout, "timeout", 0, "[timeout (ms) - optional, positive]")
flag.Parse()
// Check existing obligatory params
if *domain... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func compareRequest() {\n\tvar artifactList1, artifactList2 []ArtifactRecord\n\tvar artifactSetName1, artifactSetName2 string = \"111\", \"222\"\n\tvar listTitle1, listTitle2 string\n\tvar repoCount int\n\tvar err error\n\n\tif len(os.Args[1:]) == 1 {\n\t\tfmt.Println(_COMPARE_HELP_CONTENT)\n\t\treturn\n\t}\n\n\t/... | [
"0.6644718",
"0.6372502",
"0.61876494",
"0.61371124",
"0.61044574",
"0.6081842",
"0.6022942",
"0.5953721",
"0.5951159",
"0.5951089",
"0.59170794",
"0.5904697",
"0.5890247",
"0.5870842",
"0.5866545",
"0.5783277",
"0.5732452",
"0.5727227",
"0.5726936",
"0.5726187",
"0.5726061",... | 0.62286013 | 2 |
Check availability of resource | func checkResource(url *string, channel chan RetData, cl *http.Client) {
ret := RetData{}
ret.startTime = time.Now()
resp, err := cl.Get(*url)
ret.finishTime = time.Now()
if err != nil {
ret.bad = true
if terr, ok := err.(net.Error); ok && terr.Timeout() {
ret.timeOut = true
}
} else {
if resp.Status... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (m *Manager) IsAvailableResource(item interface{}) bool {\n\tif v, ok := item.(BinConfig); ok {\n\t\treturn utils.FileExists(v.Path) || utils.DirectoryExists(v.Path)\n\t}\n\tif v, ok := item.(WeightConfig); ok {\n\t\treturn utils.FileExists(v.Path)\n\t}\n\tif v, ok := item.(ConfigConfig); ok {\n\t\treturn uti... | [
"0.6957629",
"0.65660626",
"0.6525871",
"0.6500754",
"0.63357186",
"0.6233591",
"0.6208432",
"0.62077105",
"0.61648816",
"0.61453456",
"0.6126107",
"0.61117184",
"0.6087532",
"0.60803294",
"0.6074985",
"0.6069196",
"0.6069196",
"0.6064944",
"0.60560715",
"0.6051149",
"0.60148... | 0.6669036 | 1 |
NewLocalCollector returns a Collector that writes directly to a Store. | func NewLocalCollector(s Store) Collector {
return s
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewCollector(store *store.MemoryStore) *Collector {\n\treturn &Collector{\n\t\tstore: store,\n\t\tstopChan: make(chan struct{}),\n\t\tdoneChan: make(chan struct{}),\n\t}\n}",
"func NewCollector() collector.RPCCollector {\n\treturn &storageCollector{}\n}",
"func NewCollector() Collector {\n\treturn make... | [
"0.7043134",
"0.6845503",
"0.6701996",
"0.6606692",
"0.6517277",
"0.6481328",
"0.63933116",
"0.6308921",
"0.62407637",
"0.62237227",
"0.6169103",
"0.6142803",
"0.6077568",
"0.60701793",
"0.60639817",
"0.6062933",
"0.60500205",
"0.6038892",
"0.5981425",
"0.59649676",
"0.592751... | 0.8576599 | 0 |
newCollectPacket returns an initialized wire.CollectPacket given a span and set of annotations. | func newCollectPacket(s SpanID, as Annotations) *wire.CollectPacket {
return &wire.CollectPacket{
Spanid: s.wire(),
Annotation: as.wire(),
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (cc *ChunkedCollector) Collect(span SpanID, anns ...Annotation) error {\n\tcc.mu.Lock()\n\tdefer cc.mu.Unlock()\n\n\tif cc.stopped {\n\t\treturn errors.New(\"ChunkedCollector is stopped\")\n\t}\n\tif !cc.started {\n\t\tcc.start()\n\t}\n\n\tif cc.pendingBySpanID == nil {\n\t\tcc.pendingBySpanID = map[SpanID]*w... | [
"0.5870983",
"0.58339983",
"0.5465129",
"0.54080963",
"0.54068404",
"0.53500813",
"0.53196156",
"0.5210788",
"0.5104033",
"0.50751895",
"0.49993894",
"0.4986562",
"0.49562997",
"0.4911006",
"0.4851788",
"0.48231903",
"0.48181325",
"0.48133972",
"0.48114294",
"0.47517624",
"0.... | 0.87639284 | 0 |
Collect adds the span and annotations to a local buffer until the next call to Flush (or when MinInterval elapses), at which point they are sent (grouped by span) to the underlying collector. | func (cc *ChunkedCollector) Collect(span SpanID, anns ...Annotation) error {
cc.mu.Lock()
defer cc.mu.Unlock()
if cc.stopped {
return errors.New("ChunkedCollector is stopped")
}
if !cc.started {
cc.start()
}
if cc.pendingBySpanID == nil {
cc.pendingBySpanID = map[SpanID]*wire.CollectPacket{}
}
if p, p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (as *AggregateStore) Collect(id SpanID, anns ...Annotation) error {\n\tas.mu.Lock()\n\tdefer as.mu.Unlock()\n\n\t// Initialization\n\tif as.groups == nil {\n\t\tas.groups = make(map[ID]*spanGroup)\n\t\tas.groupsByName = make(map[string]ID)\n\t\tas.pre = &LimitStore{\n\t\t\tMax: as.MaxRate,\n\t\t\tDele... | [
"0.6309139",
"0.62056905",
"0.59496146",
"0.5861292",
"0.58595854",
"0.5749108",
"0.5731653",
"0.57281625",
"0.56668395",
"0.5666777",
"0.5659342",
"0.5649344",
"0.55813223",
"0.55552435",
"0.55202997",
"0.55081296",
"0.54767895",
"0.54767895",
"0.54666686",
"0.545717",
"0.54... | 0.7222805 | 0 |
Flush immediately sends all pending spans to the underlying collector. | func (cc *ChunkedCollector) Flush() error {
cc.mu.Lock()
pendingBySpanID := cc.pendingBySpanID
pending := cc.pending
cc.pendingBySpanID = nil
cc.pending = nil
cc.mu.Unlock()
var errs []error
for _, spanID := range pending {
p := pendingBySpanID[spanID]
if err := cc.Collector.Collect(spanIDFromWire(p.Spanid... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (s *Collector) Flush() error {\n\treturn s.flusher.Flush(s.stats)\n}",
"func (c *HTTPCollector) flush(b []*zipkincore.Span) (err error) {\n\tdefer func() {\n\t\tc.batchPool.Put(b[:0])\n\t\tif err != nil {\n\t\t\tc.logger.Log(\"err\", err)\n\t\t}\n\t}()\n\n\t// Do not send an empty batch\n\tif len(b) == 0 {\... | [
"0.7013252",
"0.70100605",
"0.68950844",
"0.67272437",
"0.67241",
"0.6619081",
"0.65922195",
"0.6541169",
"0.6531564",
"0.64752495",
"0.6468364",
"0.64626235",
"0.6339146",
"0.6326567",
"0.63122135",
"0.63055515",
"0.62817365",
"0.6278763",
"0.6242171",
"0.6241586",
"0.619008... | 0.7357907 | 0 |
Stop stops the collector. After stopping, no more data will be sent to the underlying collector and calls to Collect will fail. | func (cc *ChunkedCollector) Stop() {
cc.mu.Lock()
defer cc.mu.Unlock()
close(cc.stopChan)
cc.stopped = true
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (c *collector) Stop() {\n\tclose(c.stop)\n}",
"func (collector *Collector) Stop() {\n\t// Stop the underlying Prospector (this should block until all workers shutdown)\n\tcollector.prospector.Stop()\n\n\t// Signal our internal processing to stop as well. It's probably safer to do this\n\t// after we've stop... | [
"0.8214492",
"0.7792185",
"0.74716896",
"0.7078853",
"0.7061585",
"0.7058037",
"0.70358753",
"0.7024886",
"0.70175046",
"0.6925726",
"0.6919977",
"0.68957543",
"0.689342",
"0.68918055",
"0.6859882",
"0.6839737",
"0.6836054",
"0.68354684",
"0.6822285",
"0.6815464",
"0.677485",... | 0.7611308 | 2 |
NewRemoteCollector creates a collector that sends data to a collector server (created with NewServer). It sends data immediately when Collect is called. To send data in chunks, use a ChunkedCollector. | func NewRemoteCollector(addr string) *RemoteCollector {
return &RemoteCollector{
addr: addr,
dial: func() (net.Conn, error) {
return net.Dial("tcp", addr)
},
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewRemoteAmboyStatsCollector(env cedar.Environment, id string) amboy.Job {\n\tj := makeAmboyStatsCollector()\n\tj.ExcludeLocal = true\n\tj.env = env\n\tj.SetID(fmt.Sprintf(\"%s-%s\", amboyStatsCollectorJobName, id))\n\treturn j\n}",
"func NewCollector() *Collector {\n\tcollector := &Collector{\n\t\tresults:... | [
"0.6678328",
"0.6632261",
"0.65414196",
"0.6530185",
"0.6512622",
"0.64971226",
"0.6375079",
"0.63555616",
"0.62438387",
"0.6209447",
"0.62021196",
"0.6182788",
"0.61450464",
"0.61132157",
"0.6028201",
"0.5957508",
"0.5919775",
"0.59160614",
"0.5884967",
"0.584295",
"0.581836... | 0.7760482 | 0 |
NewTLSRemoteCollector creates a RemoteCollector that uses TLS. | func NewTLSRemoteCollector(addr string, tlsConfig *tls.Config) *RemoteCollector {
return &RemoteCollector{
addr: addr,
dial: func() (net.Conn, error) {
return tls.Dial("tcp", addr, tlsConfig)
},
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewTLSConnection(\n\tsrvRemote Remote,\n\trootCerts []byte,\n\terrorUnwrapper ErrorUnwrapper,\n\thandler ConnectionHandler,\n\tlogFactory LogFactory,\n\tinstrumenterStorage NetworkInstrumenterStorage,\n\tlogOutput LogOutputWithDepthAdder,\n\tmaxFrameLength int32,\n\topts ConnectionOpts,\n) *Connection {\n\ttr... | [
"0.62902963",
"0.616452",
"0.6161178",
"0.58453023",
"0.58117586",
"0.5769236",
"0.5683554",
"0.5679266",
"0.5537916",
"0.5532538",
"0.5434783",
"0.5386184",
"0.53491753",
"0.53105533",
"0.53019303",
"0.5281855",
"0.5261915",
"0.5235258",
"0.52274466",
"0.52274024",
"0.522740... | 0.8349122 | 0 |
Collect implements the Collector interface by sending the events that occured in the span to the remote collector server (see CollectorServer). | func (rc *RemoteCollector) Collect(span SpanID, anns ...Annotation) error {
return rc.collectAndRetry(newCollectPacket(span, anns))
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (cc *ChunkedCollector) Collect(span SpanID, anns ...Annotation) error {\n\tcc.mu.Lock()\n\tdefer cc.mu.Unlock()\n\n\tif cc.stopped {\n\t\treturn errors.New(\"ChunkedCollector is stopped\")\n\t}\n\tif !cc.started {\n\t\tcc.start()\n\t}\n\n\tif cc.pendingBySpanID == nil {\n\t\tcc.pendingBySpanID = map[SpanID]*w... | [
"0.7156506",
"0.6469556",
"0.6441961",
"0.64078486",
"0.6387556",
"0.6346833",
"0.63250047",
"0.6303169",
"0.62795997",
"0.6277225",
"0.62503505",
"0.6235564",
"0.6233566",
"0.6229621",
"0.62251043",
"0.622124",
"0.6186137",
"0.6175919",
"0.6171378",
"0.61642337",
"0.6159943"... | 0.6961146 | 1 |
connect makes a connection to the collector server. It must be called with rc.mu held. | func (rc *RemoteCollector) connect() error {
if rc.pconn != nil {
rc.pconn.Close()
rc.pconn = nil
}
c, err := rc.dial()
if err == nil {
// Create a protobuf delimited writer wrapping the connection. When the
// writer is closed, it also closes the underlying connection (see
// source code for details).
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (s *Slave) connect(uri string, options Options) (err error) {\n\tdsn, opts, err := parseOptions(uri, options)\n\tif err != nil {\n\t\treturn\n\t}\n\tconn, err := newConn(context.Background(), dsn.Scheme, dsn.Host, opts)\n\tif err != nil {\n\t\treturn\n\t}\n\ts.c = conn\n\ts.cr = bufio.NewReaderSize(s.c.tcpCon... | [
"0.67077905",
"0.6634654",
"0.6631335",
"0.65912145",
"0.6491219",
"0.64541703",
"0.64315164",
"0.6377671",
"0.6353071",
"0.63220286",
"0.6295981",
"0.62878853",
"0.626565",
"0.6226095",
"0.6194442",
"0.6186907",
"0.6164935",
"0.6159773",
"0.61356914",
"0.6104107",
"0.6100774... | 0.7555079 | 0 |
Close closes the connection to the server. | func (rc *RemoteCollector) Close() error {
rc.mu.Lock()
defer rc.mu.Unlock()
if rc.pconn != nil {
err := rc.pconn.Close()
rc.pconn = nil
return err
}
return nil
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (s *Server) Close() {\n\ts.conn.Close()\n}",
"func (c *SodaClient) Close() {\n\tc.conn.Close()\n}",
"func (n *NSCAServer) Close() {\n\tif n.conn != nil {\n\t\tn.conn.Close()\n\t\tn.conn = nil\n\t}\n\tn.serverTimestamp = 0\n\tn.encryption = nil\n}",
"func (s *Server) CloseConnection() {}",
"func (s *AP... | [
"0.7401296",
"0.7280614",
"0.7266565",
"0.72523844",
"0.72429657",
"0.7223785",
"0.7193747",
"0.7156631",
"0.71448433",
"0.71035224",
"0.7053198",
"0.70466304",
"0.70466304",
"0.7041368",
"0.7033896",
"0.70191634",
"0.70035464",
"0.6993156",
"0.6981221",
"0.69740236",
"0.6962... | 0.0 | -1 |
NewServer creates and starts a new server that listens for spans and annotations on l and adds them to the collector c. Call the CollectorServer's Start method to start listening and serving. | func NewServer(l net.Listener, c Collector) *CollectorServer {
cs := &CollectorServer{c: c, l: l}
return cs
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewServer(cfg config.Config, ll *log.Logger) *Server {\n\tif ll == nil {\n\t\tll = log.New(ioutil.Discard, \"\", 0)\n\t}\n\n\t// Set up Prometheus instrumentation using the typical Go collectors.\n\treg := prometheus.NewPedanticRegistry()\n\treg.MustRegister(\n\t\tprometheus.NewGoCollector(),\n\t\tprometheus.... | [
"0.6450294",
"0.6137566",
"0.6124656",
"0.60456717",
"0.5995859",
"0.598988",
"0.5989809",
"0.598493",
"0.5978896",
"0.59556425",
"0.59531736",
"0.5947071",
"0.5943734",
"0.5936937",
"0.5906985",
"0.5880917",
"0.58790934",
"0.5876771",
"0.5866584",
"0.5829714",
"0.5829714",
... | 0.78174824 | 0 |
Start starts the server. | func (cs *CollectorServer) Start() {
for {
conn, err := cs.l.Accept()
if err != nil {
cs.log().Printf("Accept: %s", err)
continue
}
if cs.Debug {
cs.log().Printf("Client %s connected", conn.RemoteAddr())
}
go cs.handleConn(conn)
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (s *Server) Start() error {\n\ts.logger = s.configureLogger(s.config.LogDebug)\n\n\ts.configureRouter()\n\n\tif err := s.configureStore(); err != nil {\n\t\treturn err\n\t}\n\n\ts.logger.Logf(\"[INFO] Server is starting at %v...\\n\", s.config.BindAddr)\n\n\treturn http.ListenAndServe(s.config.BindAddr, s.rou... | [
"0.80488575",
"0.8009313",
"0.79481596",
"0.794424",
"0.7928491",
"0.7914126",
"0.7882072",
"0.7867788",
"0.7858528",
"0.7816456",
"0.7776155",
"0.7773969",
"0.7755403",
"0.775531",
"0.77436584",
"0.7737684",
"0.76871955",
"0.767836",
"0.7669713",
"0.7668373",
"0.7663645",
... | 0.0 | -1 |
JSON prettyprints a JSON response | func JSON(response []byte) {
// pretty-print the json
utils.PrintJSON(response)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (r *Response) pretty() string {\n\n\tvar body api.Response\n\t_ = json.Unmarshal(r.recorder.Body.Bytes(), &body)\n\n\tlr := LogResponse{Res{\n\t\tCode: r.recorder.Code,\n\t\tHeaders: r.recorder.Header(),\n\t\tBody: body,\n\t}}\n\tres, err := json.MarshalIndent(lr, \"\", \" \")\n\tgomega.Expect(err).To(... | [
"0.7428383",
"0.7371021",
"0.7005541",
"0.6922205",
"0.67745775",
"0.67342776",
"0.6713497",
"0.65828955",
"0.6571731",
"0.655957",
"0.6534516",
"0.65136945",
"0.6480092",
"0.6469898",
"0.6422201",
"0.6416509",
"0.6416509",
"0.6371389",
"0.6342987",
"0.6337074",
"0.6328864",
... | 0.71797454 | 2 |
JSONString prettyprints a string that contains JSON | func JSONString(response string) {
// pretty-print the json
utils.PrintJSON([]byte(response))
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func PrettyPrintJSON(jsonStr string) {\n\n\tfmt.Println(PrettyJSON(jsonStr))\n\n}",
"func jsonPrettyPrint(in string) string {\r\n var out bytes.Buffer\r\n err := json.Indent(&out, []byte(in), \"\", \"\\t\")\r\n if err != nil {\r\n return in\r\n }\r\n return out.String()\r\n}",
"func prett... | [
"0.8059519",
"0.77302325",
"0.74448645",
"0.7308321",
"0.70394874",
"0.7010589",
"0.6955381",
"0.69457674",
"0.6940481",
"0.6935861",
"0.6905035",
"0.69007504",
"0.68278",
"0.6813687",
"0.68090546",
"0.6773632",
"0.67731917",
"0.672755",
"0.66992265",
"0.6654713",
"0.6650314"... | 0.74176973 | 3 |
NewUInt64 creates a new UInt64 with default values. | func NewUInt64() *UInt64 {
self := UInt64{}
self.SetDefaults()
return &self
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewUint64(x uint64) *Numeric {\n\tvar r Numeric\n\treturn r.SetUint64(x)\n}",
"func NewUint64(store *store.Store, cfgPath string) *Uint64 {\n\tf := &Uint64{}\n\tf.init(store, f.mapCfgValue, cfgPath)\n\treturn f\n}",
"func NewUint64(value uint64) *Uint64 {\n\treturn &Uint64{\n\t\tvalue: value,\n\t}\n}",
... | [
"0.78732526",
"0.7719561",
"0.7704975",
"0.75963604",
"0.75139385",
"0.73335713",
"0.7065201",
"0.69081914",
"0.6897038",
"0.6895006",
"0.6835414",
"0.679808",
"0.6780824",
"0.6757169",
"0.67129046",
"0.6652362",
"0.65899986",
"0.65518826",
"0.6498531",
"0.6391094",
"0.636019... | 0.8665488 | 0 |
CloneUInt64Slice clones src to dst by calling Clone for each element in src. Panics if len(dst) < len(src). | func CloneUInt64Slice(dst, src []UInt64) {
for i := range src {
dst[i] = *src[i].Clone()
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func CloneUInt8Slice(dst, src []UInt8) {\n\tfor i := range src {\n\t\tdst[i] = *src[i].Clone()\n\t}\n}",
"func CloneImuSlice(dst, src []Imu) {\n\tfor i := range src {\n\t\tdst[i] = *src[i].Clone()\n\t}\n}",
"func CloneFloat64Slice(dst, src []Float64) {\n\tfor i := range src {\n\t\tdst[i] = *src[i].Clone()\n\t}... | [
"0.6897268",
"0.6507103",
"0.6395663",
"0.6381664",
"0.61048645",
"0.56997764",
"0.5694446",
"0.5657911",
"0.5633476",
"0.5577525",
"0.55724555",
"0.5572285",
"0.5505419",
"0.54988307",
"0.5482363",
"0.54418826",
"0.5430907",
"0.54308385",
"0.5412383",
"0.5385675",
"0.5267024... | 0.83064985 | 0 |
GetEcsServiceConfig returns config for aws_ecs_service | func GetEcsServiceConfig(c *ecs.Service) []AWSResourceConfig {
cf := EcsServiceConfig{
Config: Config{
Name: c.ServiceName,
Tags: c.Tags,
},
IamRole: c.Role,
}
return []AWSResourceConfig{{
Resource: cf,
Metadata: c.AWSCloudFormationMetadata,
}}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func GetServiceConfig(req *restful.Request, resp *restful.Response) {\n\tconst (\n\t\thandler = \"GetServiceConfig\"\n\t)\n\tspan := v1http.SetHTTPSpanContextInfo(req, handler)\n\tdefer span.Finish()\n\n\tr, err := generateData(req, getMultiCls)\n\tif err != nil {\n\t\tutils.SetSpanLogTagError(span, err)\n\t\tblog... | [
"0.6821646",
"0.67600626",
"0.66528106",
"0.6580003",
"0.657921",
"0.6567093",
"0.624718",
"0.61671364",
"0.6118922",
"0.60779226",
"0.60774213",
"0.60474586",
"0.59474874",
"0.59273213",
"0.5882051",
"0.5842291",
"0.5829497",
"0.5804335",
"0.57492363",
"0.5749054",
"0.574452... | 0.83150405 | 0 |
GetPageConfig will parse the web post entry at filepath. | func GetPageConfig(filepath, sitepath string) (Post, error) {
cfg, err := getPageConfig(filepath)
if err != nil {
return cfg, err
}
cfg.FilePath = filepath
cfg.SitePath = sitepath
if cfg.Date != "" {
t, err := time.Parse(time.RFC3339, cfg.Date)
if err != nil {
return cfg, fmt.Errorf("parsing date %s: %... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func ParseConfigFile(url string, wd *url.URL) (*Config, error) {\n\treturn ParseConfigFileWithSchemes(urlfetch.DefaultSchemes, url, wd)\n}",
"func (o Ocs) GetConfig(w http.ResponseWriter, r *http.Request) {\n\tmustNotFail(render.Render(w, r, response.DataRender(&data.ConfigData{\n\t\tVersion: \"1.7\", // TODO g... | [
"0.5595617",
"0.55334187",
"0.55258375",
"0.5509629",
"0.5492174",
"0.54913056",
"0.5481108",
"0.5445968",
"0.54088974",
"0.53772765",
"0.5319755",
"0.5253507",
"0.5245969",
"0.5245487",
"0.5240613",
"0.522218",
"0.5200091",
"0.520003",
"0.51966673",
"0.5176976",
"0.51648146"... | 0.776008 | 0 |
multidimensional slices and arrays are currently not supported | func MyMultiSliceFunc(nums [][][]int) { fmt.Println(nums) } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func main() {\n\ta := make([]int, 5)\n\tprintSlice(\"a\", a)\n\n\tb := make([]int, 0, 7)\n\tprintSlice(\"b\", b)\n\n\tc := b[:2]\n\tprintSlice(\"c\", c)\n\n\td := c[2:5]\n\tprintSlice(\"d\", d)\n\n\t//Slices can be composed into multi-dimensional data structures. The\n\t//length of the inner slices can vary, unlik... | [
"0.67055786",
"0.66364324",
"0.62440515",
"0.61460614",
"0.61310977",
"0.6121645",
"0.6115807",
"0.6086621",
"0.60235363",
"0.5970817",
"0.5903322",
"0.5894619",
"0.5876776",
"0.58745736",
"0.58611864",
"0.58575004",
"0.57885885",
"0.57874656",
"0.57834643",
"0.57588685",
"0.... | 0.6770064 | 0 |
NewMockProviders creates a new mock instance | func NewMockProviders(ctrl *gomock.Controller) *MockProviders {
mock := &MockProviders{ctrl: ctrl}
mock.recorder = &MockProvidersMockRecorder{mock}
return mock
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func NewMock(middleware []Middleware) OrganizationService {\n\tvar svc OrganizationService = NewBasicOrganizationServiceServiceMock()\n\tfor _, m := range middleware {\n\t\tsvc = m(svc)\n\t}\n\treturn svc\n}",
"func NewProviders() *Providers {\n\treturn &Providers{\n\t\tinternal: provider.Unknown,\n\t\tprovider... | [
"0.6564672",
"0.6390504",
"0.63529956",
"0.62278885",
"0.61835265",
"0.6167602",
"0.6167602",
"0.6167602",
"0.6167602",
"0.6167602",
"0.6167602",
"0.6167602",
"0.6167602",
"0.61669147",
"0.6132294",
"0.60496056",
"0.5984718",
"0.59554595",
"0.59195",
"0.59074426",
"0.5889402"... | 0.7244181 | 0 |
EXPECT returns an object that allows the caller to indicate expected use | func (m *MockProviders) EXPECT() *MockProvidersMockRecorder {
return m.recorder
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (mmGetObject *mClientMockGetObject) Expect(ctx context.Context, head insolar.Reference) *mClientMockGetObject {\n\tif mmGetObject.mock.funcGetObject != nil {\n\t\tmmGetObject.mock.t.Fatalf(\"ClientMock.GetObject mock is already set by Set\")\n\t}\n\n\tif mmGetObject.defaultExpectation == nil {\n\t\tmmGetObjec... | [
"0.5815729",
"0.5713649",
"0.56725484",
"0.5639139",
"0.5627882",
"0.55727607",
"0.5567769",
"0.55297476",
"0.55062264",
"0.54872644",
"0.5472953",
"0.54643434",
"0.54606736",
"0.54418445",
"0.5441045",
"0.5406193",
"0.5402902",
"0.5389263",
"0.53836423",
"0.53836423",
"0.536... | 0.0 | -1 |
ChannelProvider mocks base method | func (m *MockProviders) ChannelProvider() fab.ChannelProvider {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ChannelProvider")
ret0, _ := ret[0].(fab.ChannelProvider)
return ret0
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (m *MockClient) ChannelProvider() fab.ChannelProvider {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"ChannelProvider\")\n\tret0, _ := ret[0].(fab.ChannelProvider)\n\treturn ret0\n}",
"func (m *MockRConnectionInterface) Channel() (*amqp.Channel, error) {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Cha... | [
"0.74381363",
"0.6751296",
"0.6729731",
"0.6153569",
"0.61135983",
"0.6057166",
"0.6054517",
"0.5930565",
"0.5925086",
"0.59205496",
"0.59125435",
"0.5870955",
"0.5845958",
"0.5832964",
"0.5823897",
"0.58165205",
"0.5808184",
"0.57830024",
"0.57754666",
"0.57749516",
"0.57468... | 0.72489923 | 1 |
ChannelProvider indicates an expected call of ChannelProvider | func (mr *MockProvidersMockRecorder) ChannelProvider() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChannelProvider", reflect.TypeOf((*MockProviders)(nil).ChannelProvider))
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (mr *MockClientMockRecorder) ChannelProvider() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"ChannelProvider\", reflect.TypeOf((*MockClient)(nil).ChannelProvider))\n}",
"func (m *MockClient) ChannelProvider() fab.ChannelProvider {\n\tm.ctrl.T.Helper()\n... | [
"0.70419014",
"0.6634641",
"0.65435016",
"0.6516153",
"0.6099235",
"0.59935945",
"0.5946837",
"0.5912251",
"0.57246834",
"0.56565267",
"0.5589579",
"0.5576268",
"0.55481195",
"0.5538942",
"0.5522845",
"0.54247093",
"0.539553",
"0.5343411",
"0.53341347",
"0.53230613",
"0.53107... | 0.6936447 | 1 |
CryptoSuite mocks base method | func (m *MockProviders) CryptoSuite() core.CryptoSuite {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CryptoSuite")
ret0, _ := ret[0].(core.CryptoSuite)
return ret0
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func TestEncrypt() {\n\n}",
"func (m *MockisCryptoApiRequest_CryptoApiReq) isCryptoApiRequest_CryptoApiReq() {\n\tm.ctrl.Call(m, \"isCryptoApiRequest_CryptoApiReq\")\n}",
"func (m *MockisCryptoAsymApiReqSetupPrivateKeyEx_Key) isCryptoAsymApiReqSetupPrivateKeyEx_Key() {\n\tm.ctrl.Call(m, \"isCryptoAsymApiReqSet... | [
"0.6349443",
"0.6250889",
"0.61085963",
"0.61015576",
"0.609855",
"0.5863399",
"0.5833078",
"0.5814647",
"0.5803716",
"0.57591796",
"0.57540137",
"0.57426",
"0.57124424",
"0.56994677",
"0.56921124",
"0.56864023",
"0.56789786",
"0.5662635",
"0.5635828",
"0.5629587",
"0.5623318... | 0.61201334 | 2 |
CryptoSuite indicates an expected call of CryptoSuite | func (mr *MockProvidersMockRecorder) CryptoSuite() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CryptoSuite", reflect.TypeOf((*MockProviders)(nil).CryptoSuite))
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (mr *MockClientMockRecorder) CryptoSuite() *gomock.Call {\n\tmr.mock.ctrl.T.Helper()\n\treturn mr.mock.ctrl.RecordCallWithMethodType(mr.mock, \"CryptoSuite\", reflect.TypeOf((*MockClient)(nil).CryptoSuite))\n}",
"func (pc *MockProviderContext) CryptoSuite() apicryptosuite.CryptoSuite {\n\treturn pc.cryptoSu... | [
"0.630053",
"0.5933194",
"0.58964694",
"0.5805351",
"0.56914747",
"0.5639266",
"0.5618166",
"0.5600513",
"0.54475665",
"0.5333737",
"0.5328652",
"0.5317787",
"0.5312988",
"0.5312179",
"0.5296953",
"0.5289792",
"0.52888066",
"0.5247725",
"0.5241643",
"0.52147925",
"0.51980615"... | 0.6295867 | 1 |
EndpointConfig mocks base method | func (m *MockProviders) EndpointConfig() fab.EndpointConfig {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EndpointConfig")
ret0, _ := ret[0].(fab.EndpointConfig)
return ret0
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"func (m *MockClient) EndpointConfig() fab.EndpointConfig {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"EndpointConfig\")\n\tret0, _ := ret[0].(fab.EndpointConfig)\n\treturn ret0\n}",
"func (m *MockConfiguration) IntrospectionEndpoint() op.Endpoint {\n\tm.ctrl.T.Helper()\n\tret := m.ctrl.Call(m, \"Introspecti... | [
"0.7284712",
"0.62881446",
"0.6148093",
"0.607511",
"0.60254085",
"0.59867734",
"0.59809434",
"0.5971515",
"0.5964234",
"0.5937066",
"0.5932493",
"0.5927245",
"0.58994836",
"0.5884062",
"0.58370537",
"0.5783843",
"0.5769066",
"0.5700508",
"0.5699805",
"0.56984586",
"0.5690053... | 0.7244226 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.