text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
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... | [
0.29923075437545776,
0.3934836983680725,
1.0734593868255615,
0.33836665749549866,
-0.10335619747638702,
-0.13250406086444855,
-0.4969140291213989,
-0.999068558216095,
-0.4543018937110901,
-0.48512476682662964,
0.2580830156803131,
0.8174974918365479,
-0.31206637620925903,
0.7070446610450745... |
func NewGetPlanSchedules(planID uuid.UUID, logger *zap.Logger, db pgxload.PgxLoader) *GetPlanSchedules {
return &GetPlanSchedules{
planID: planID,
db: db,
logger: logger.Named("GetPlanSchedules"),
}
} | [
0.32541409134864807,
0.35865160822868347,
0.1956367790699005,
0.49124279618263245,
-1.0983797311782837,
0.23199334740638733,
-0.03470376506447792,
-0.6392931342124939,
0.2392539232969284,
0.28847363591194153,
-0.4978561997413635,
0.17300623655319214,
-0.4480611979961395,
-0.565382301807403... |
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... | [
0.19223548471927643,
-0.25190621614456177,
0.16826465725898743,
-0.8285021185874939,
0.8354969620704651,
-0.8970886468887329,
-0.34024572372436523,
-0.4518226087093353,
0.06551055610179901,
-0.1922374814748764,
0.1006583422422409,
1.0025933980941772,
-0.5559157729148865,
-0.046215847134590... |
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... | [
0.10768105834722519,
-0.9011876583099365,
0.4540591835975647,
-0.17941604554653168,
1.1653937101364136,
-0.9352883100509644,
-0.68781578540802,
0.37572312355041504,
0.6702100038528442,
0.3806321918964386,
-0.17704488337039948,
0.7851155400276184,
-0.03887350112199783,
0.5034938454627991,
... |
func (c *FakeCloudwatchEventTargets) Watch(opts v1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchAction(cloudwatcheventtargetsResource, c.ns, opts))
} | [
0.06609269231557846,
-0.19683875143527985,
0.31511661410331726,
0.1279624104499817,
1.161495566368103,
-0.2810020446777344,
0.5130327343940735,
0.11562073230743408,
0.5977044701576233,
-0.4505516588687897,
-0.7199772000312805,
1.3189363479614258,
0.20892861485481262,
0.2959339916706085,
... |
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... | [
0.3433476686477661,
0.05284538120031357,
0.032185059040784836,
-0.5898389220237732,
0.775432825088501,
-0.3601306676864624,
-0.1750568300485611,
-0.7776415348052979,
-0.05425198748707771,
-0.41178324818611145,
0.0956122875213623,
-0.03273914009332657,
-0.895348072052002,
0.5239472985267639... |
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... | [
0.19076907634735107,
-0.7474774122238159,
0.13339145481586456,
-0.8859809637069702,
0.2769513726234436,
-0.534893810749054,
-0.032765816897153854,
-0.5313310623168945,
0.3955899178981781,
0.055301617830991745,
0.08690835535526276,
0.34357699751853943,
-0.8106510043144226,
-0.09526372700929... |
func (c *FakeCloudwatchEventTargets) UpdateStatus(cloudwatchEventTarget *v1alpha1.CloudwatchEventTarget) (*v1alpha1.CloudwatchEventTarget, error) {
obj, err := c.Fake.
Invokes(testing.NewUpdateSubresourceAction(cloudwatcheventtargetsResource, "status", c.ns, cloudwatchEventTarget), &v1alpha1.CloudwatchEventTarget{})... | [
0.1376921832561493,
-0.7570028305053711,
0.3261311650276184,
-0.3277382254600525,
-0.33207786083221436,
-0.1016838476061821,
0.06935609132051468,
0.16997596621513367,
0.564470648765564,
-0.0640392154455185,
-0.6191644072532654,
1.1192727088928223,
-0.18868029117584229,
0.18629111349582672,... |
func (c *FakeCloudwatchEventTargets) Delete(name string, options *v1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteAction(cloudwatcheventtargetsResource, c.ns, name), &v1alpha1.CloudwatchEventTarget{})
return err
} | [
0.977957010269165,
0.012468322180211544,
0.4256874918937683,
-0.10684806853532791,
0.9636919498443604,
-0.5882689356803894,
0.20022624731063843,
-0.12737728655338287,
0.7852104902267456,
0.22848674654960632,
0.0549125149846077,
0.45681971311569214,
-0.6444090008735657,
0.17985683679580688,... |
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
} | [
-0.13182827830314636,
-0.10648033767938614,
0.6442878246307373,
-0.03636503219604492,
1.072139859199524,
-0.6657788157463074,
0.659278154373169,
-0.29770612716674805,
0.7600845694541931,
-0.6885777115821838,
-0.04175012186169624,
1.0233246088027954,
0.2898285686969757,
1.2922379970550537,
... |
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... | [
0.4909918010234833,
-0.2276841551065445,
0.2778811752796173,
-0.6321205496788025,
-0.4742867350578308,
0.3181716203689575,
-0.24862244725227356,
0.08278393745422363,
0.49294933676719666,
-0.6834370493888855,
0.09763649851083755,
1.1123172044754028,
-0.5806217789649963,
0.000332654919475317... |
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" {
... | [
0.300597220659256,
-0.5033366084098816,
0.5151275396347046,
-1.1321369409561157,
-0.10574312508106232,
-0.15095926821231842,
0.6415967345237732,
-1.4795700311660767,
-1.2870780229568481,
-0.19765397906303406,
0.466639906167984,
0.9485399127006531,
-0.3821343183517456,
1.0626298189163208,
... |
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)
} | [
0.35478106141090393,
-0.7443304061889648,
0.37227052450180054,
-0.7853838205337524,
-0.07552552968263626,
0.047273632138967514,
0.13338685035705566,
-0.7217565774917603,
-0.2941192388534546,
-0.03585848957300186,
0.31192120909690857,
1.1774224042892456,
-1.1245367527008057,
0.4471460878849... |
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... | [
0.5182955861091614,
-0.5081860423088074,
0.31631818413734436,
-0.6601358652114868,
-0.2607126832008362,
0.1487349420785904,
0.7088706493377686,
-1.4835891723632812,
-0.7567597031593323,
0.07621145993471146,
0.11803088337182999,
-0.3211979568004608,
-0.4598957300186157,
0.108770951628685,
... |
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... | [
-0.638423502445221,
-0.34745728969573975,
0.6127378344535828,
-0.17167745530605316,
0.715259850025177,
-0.2928766906261444,
0.4445776641368866,
0.05403804033994675,
-0.08045259863138199,
0.3976963758468628,
0.16477063298225403,
0.3769252598285675,
0.16058023273944855,
0.2651405334472656,
... |
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())
} | [
0.33094775676727295,
0.18454782664775848,
0.7692806124687195,
-0.3576422333717346,
-0.8394963145256042,
0.008033937774598598,
-0.3684574365615845,
-0.013303554616868496,
-0.8346850275993347,
0.07054592669010162,
0.043194495141506195,
-0.9308645129203796,
0.18177711963653564,
-0.00432978337... |
func (c *Content) IsAttachment() bool {
return c.Type == CONTENT_TYPE_ATTACHMENT
} | [
-0.43766236305236816,
-0.9072327613830566,
0.21997769176959991,
0.4640391767024994,
-0.39945486187934875,
0.30559927225112915,
0.5237528681755066,
-0.9430920481681824,
0.5291562080383301,
0.7802871465682983,
0.2961026728153229,
0.8378052711486816,
-0.5451011657714844,
0.6892860531806946,
... |
func (c *Content) IsComment() bool {
return c.Type == CONTENT_TYPE_COMMENT
} | [
-0.6599176526069641,
-0.8305985331535339,
0.24639275670051575,
0.6530024409294128,
0.721093475818634,
-0.37668514251708984,
1.1939027309417725,
-0.013284824788570404,
0.12582813203334808,
0.7993400692939758,
-0.3626071810722351,
-0.009889064356684685,
-1.086297869682312,
0.1953025460243225... |
func (c *Content) IsPage() bool {
return c.Type == CONTENT_TYPE_PAGE
} | [
0.018663769587874413,
-0.21865952014923096,
0.43109095096588135,
0.4909987151622772,
0.8332414031028748,
0.3552336096763611,
-0.1818164587020874,
-0.20144742727279663,
0.022566167637705803,
0.23459666967391968,
0.7614601254463196,
0.031620003283023834,
-2.0338308811187744,
0.38075023889541... |
func (c *Content) IsTrashed() bool {
return c.Status == CONTENT_STATUS_TRASHED
} | [
0.3884027898311615,
0.042836811393499374,
0.33219441771507263,
-0.6589149832725525,
0.9055346250534058,
0.2549881935119629,
0.0009407571633346379,
0.43608906865119934,
0.30600428581237793,
-0.1571241170167923,
-1.037755012512207,
0.7291046380996704,
-0.551452100276947,
-0.11113021522760391... |
func (c *Content) IsDraft() bool {
return c.Status == CONTENT_STATUS_DRAFT
} | [
-0.1899758130311966,
-0.3234069347381592,
0.2865711450576782,
-0.021635113283991814,
0.05011288449168205,
0.6856405735015869,
-0.8684669733047485,
-0.45378318428993225,
0.6121088862419128,
-0.3499084413051605,
-0.27148526906967163,
0.9961729049682617,
-0.6251103281974792,
0.417640626430511... |
func (s *Space) IsGlobal() bool {
return s.Type == SPACE_TYPE_GLOBAL
} | [
-0.11291533708572388,
1.0262082815170288,
0.3118576407432556,
1.3278048038482666,
-0.42577260732650757,
0.8607507944107056,
0.48772555589675903,
0.24212998151779175,
0.6189519762992859,
0.7736896276473999,
-0.4982398748397827,
1.5820866823196411,
-0.8831951022148132,
1.0010151863098145,
... |
func (s *Space) IsPersonal() bool {
return s.Type == SPACE_TYPE_PERSONAL
} | [
-0.11961212754249573,
0.16424496471881866,
0.30102211236953735,
1.5449068546295166,
-0.6517813801765442,
0.04627148061990738,
-0.39036431908607483,
-0.40315887331962585,
0.597730278968811,
-0.6161972284317017,
-0.3536193072795868,
1.4119316339492798,
-0.23398052155971527,
1.229043364524841... |
func (s *Space) IsArchived() bool {
return s.Type == SPACE_STATUS_ARCHIVED
} | [
0.8071877956390381,
-0.8084366321563721,
0.2342362105846405,
0.36491090059280396,
-0.22754432260990143,
0.839593231678009,
-0.5452148914337158,
1.1228854656219482,
1.02837073802948,
-0.17999377846717834,
-0.014927294105291367,
1.8078804016113281,
0.5483275651931763,
1.0959043502807617,
-... |
func (c *Container) IsPage() bool {
return c.Title != ""
} | [
0.015012886375188828,
0.3690934181213379,
0.6017506718635559,
0.5407251119613647,
0.8656156063079834,
0.6603437662124634,
-0.7221641540527344,
0.12928952276706696,
0.3231389820575714,
-0.08452076464891434,
0.8398188948631287,
-0.3355858623981476,
-1.4154572486877441,
0.41412147879600525,
... |
func (c *Container) IsSpace() bool {
return c.Key != ""
} | [
0.3358224928379059,
0.07750599086284637,
0.3123953640460968,
0.46734553575515747,
1.0320485830307007,
-0.10509034246206284,
-0.35556355118751526,
0.2319822758436203,
0.868043839931488,
0.4046419560909271,
-0.11317692697048187,
0.4747268855571747,
-0.8865188360214233,
0.9372530579566956,
... |
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... | [
-0.2366696149110794,
-0.9509912133216858,
0.47932761907577515,
0.744884729385376,
0.4425375163555145,
0.6183159351348877,
-0.34810370206832886,
-0.4663833677768707,
0.14373712241649628,
0.12495822459459305,
0.6586265563964844,
0.4083803594112396,
-0.24751779437065125,
1.7383402585983276,
... |
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
} | [
0.25191444158554077,
1.2917526960372925,
0.581838846206665,
-1.0512912273406982,
-0.7195171117782593,
0.2961729168891907,
-0.6444074511528015,
0.1516074389219284,
0.03109568916261196,
0.1738945096731186,
-0.3757920563220978,
-0.07178201526403427,
-0.3420678377151489,
0.7481429576873779,
... |
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
} | [
0.13472430408000946,
-0.4653461277484894,
0.6404819488525391,
-0.7808175086975098,
-0.40024155378341675,
-0.5502572059631348,
0.23859085142612457,
-0.2655330002307892,
0.5733550786972046,
0.7850305438041687,
0.27097833156585693,
0.2920730412006378,
-0.5183607935905457,
1.4239445924758911,
... |
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
} | [
-0.34196922183036804,
0.10850712656974792,
0.7263273596763611,
-0.7724890112876892,
-0.927517294883728,
-0.42468777298927307,
0.380929172039032,
0.48249760270118713,
0.7196422815322876,
0.5697028040885925,
-0.3882531225681305,
-0.6308793425559998,
-0.7402347326278687,
-0.37298691272735596,... |
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
} | [
-0.3965938687324524,
1.1330677270889282,
0.6662884950637817,
-0.9235258102416992,
-0.1638258695602417,
-0.4557493329048157,
0.05408075079321861,
0.4513159394264221,
0.355751097202301,
0.5386295318603516,
-0.5720281600952148,
-0.15008684992790222,
0.40233370661735535,
0.4124552309513092,
... |
func (p EmptyParameters) Validate() error {
return nil
} | [
-0.23112685978412628,
0.24102231860160828,
0.2822934687137604,
-0.10137861967086792,
1.2338228225708008,
0.984605610370636,
0.0074427505023777485,
-0.45552489161491394,
-0.9130569100379944,
-0.023668082430958748,
0.5694420337677002,
0.20005321502685547,
-1.630488395690918,
0.73720431327819... |
func (p EmptyParameters) ToQuery() string {
return ""
} | [
-0.27380695939064026,
-0.09125250577926636,
0.10728567838668823,
-0.6923821568489075,
0.9158796668052673,
0.4892333149909973,
-0.16525007784366608,
0.13052387535572052,
0.02925453893840313,
0.7606446146965027,
0.32662883400917053,
0.39509621262550354,
-0.9056053161621094,
0.008872509002685... |
func (p ExpandParameters) ToQuery() string {
return paramsToQuery(p)
} | [
0.03440456464886665,
0.32676219940185547,
0.33748340606689453,
-0.2633489966392517,
0.0197908878326416,
0.0865379124879837,
0.2286801040172577,
0.36354485154151917,
0.37448883056640625,
0.6626007556915283,
1.0286047458648682,
-0.1387442797422409,
-0.5661914944648743,
-0.5008504986763,
-1... |
func (p CollectionParameters) ToQuery() string {
return paramsToQuery(p)
} | [
-0.023776182904839516,
-0.3471548557281494,
0.23086175322532654,
-0.2185516506433487,
1.06454598903656,
0.6996179223060608,
-0.12923817336559296,
0.0052641816437244415,
-0.2637433111667633,
1.042293906211853,
0.5568655133247375,
0.1523149460554123,
-0.4265114367008209,
-0.01770184747874736... |
func (p AuditParameters) ToQuery() string {
return paramsToQuery(p)
} | [
0.08813446015119553,
-0.1794118583202362,
0.35712331533432007,
-0.6273102760314941,
0.5391517281532288,
0.12422072142362595,
0.3106057345867157,
0.258281946182251,
0.6781781315803528,
0.9823558330535889,
1.076690673828125,
0.7872320413589478,
-0.060886532068252563,
-0.13272444903850555,
... |
func (p AuditSinceParameters) ToQuery() string {
return paramsToQuery(p)
} | [
0.4421558976173401,
0.19361065328121185,
0.39453330636024475,
-0.5553171038627625,
0.16333262622356415,
0.11240752041339874,
0.5791308283805847,
0.3485482633113861,
0.3879011571407318,
1.0287631750106812,
1.0825250148773193,
0.5428851842880249,
-0.025561805814504623,
-0.2679486870765686,
... |
func (p ContentParameters) ToQuery() string {
return paramsToQuery(p)
} | [
0.004602513741701841,
-0.47206807136535645,
0.1372935026884079,
-0.5341225266456604,
0.5607209205627441,
0.23251110315322876,
-0.09685442596673965,
-0.018841350451111794,
-0.4439912438392639,
0.9910118579864502,
0.7763748168945312,
0.256326824426651,
-0.7348348498344421,
-0.314476013183593... |
func (p ContentIDParameters) ToQuery() string {
return paramsToQuery(p)
} | [
0.15916608273983002,
-0.6451274752616882,
0.11180969327688217,
-0.8536192178726196,
0.5126267075538635,
-0.13419218361377716,
-0.19417116045951843,
-0.15147359669208527,
-0.20374305546283722,
1.096234679222107,
0.5634276866912842,
0.31889742612838745,
-1.1284202337265015,
-0.25732079148292... |
func (p ContentSearchParameters) ToQuery() string {
return paramsToQuery(p)
} | [
-0.1513662040233612,
-0.5284955501556396,
0.16997018456459045,
-0.5228827595710754,
0.8886249661445618,
0.06727238744497299,
-0.23334181308746338,
0.08598186075687408,
-0.36744195222854614,
0.8211043477058411,
0.6001880168914795,
-0.13922515511512756,
-0.5541751980781555,
-0.06213631108403... |
func (p ChildrenParameters) ToQuery() string {
return paramsToQuery(p)
} | [
0.13115280866622925,
-0.3058125376701355,
0.3511500358581543,
-0.6406648755073547,
0.20936733484268188,
0.18818317353725433,
0.05088062956929207,
0.10193365812301636,
-0.27145642042160034,
1.0312341451644897,
0.03022838942706585,
-0.01232449896633625,
-0.1558363139629364,
-0.24189373850822... |
func (p AttachmentParameters) ToQuery() string {
return paramsToQuery(p)
} | [
0.2515648901462555,
-0.8267866373062134,
0.3807000517845154,
-0.6815768480300903,
0.28802812099456787,
0.34195476770401,
-0.0153511306270957,
-0.3034457564353943,
0.39712682366371155,
0.5747300982475281,
1.1032042503356934,
0.5610092878341675,
0.0824858695268631,
-0.421929270029068,
-1.3... |
func (p LabelParameters) ToQuery() string {
return paramsToQuery(p)
} | [
-0.3650122582912445,
-0.5272136330604553,
0.38067924976348877,
-0.6647793650627136,
0.5812110900878906,
0.7815600633621216,
-0.43490657210350037,
-0.05019460618495941,
-0.07114805281162262,
1.462615728378296,
0.9701187014579773,
0.41050994396209717,
-0.328850120306015,
-0.21794238686561584... |
func (p SearchParameters) ToQuery() string {
return paramsToQuery(p)
} | [
-0.2723136842250824,
-0.19396716356277466,
0.23142468929290771,
-0.0987403392791748,
0.8651267290115356,
0.09718341380357742,
-0.16023056209087372,
0.1530638486146927,
-0.12429357320070267,
1.1601499319076538,
0.49728327989578247,
0.0740915834903717,
-0.2852365970611572,
-0.227090850472450... |
func (p SpaceParameters) ToQuery() string {
return paramsToQuery(p)
} | [
0.19034257531166077,
-0.1637723296880722,
0.17568643391132355,
-0.10336381196975708,
0.30518051981925964,
0.40248528122901917,
-0.2143057882785797,
0.44486814737319946,
0.3378136157989502,
0.9920989274978638,
0.7263186573982239,
0.616845965385437,
-0.225025475025177,
0.25970950722694397,
... |
func (p UserParameters) ToQuery() string {
return paramsToQuery(p)
} | [
-0.10873828828334808,
-0.20114947855472565,
0.2327064424753189,
-0.04906679689884186,
0.15468326210975647,
0.302156537771225,
0.017603004351258278,
0.025906316936016083,
0.15020796656608582,
0.8947044014930725,
0.49330270290374756,
0.08125227689743042,
-0.06844669580459595,
-0.349150419235... |
func (p WatchParameters) ToQuery() string {
return paramsToQuery(p)
} | [
0.3109077513217926,
-0.3752966523170471,
0.3494732975959778,
-0.3135032057762146,
0.6165969967842102,
0.25998765230178833,
0.16920778155326843,
-0.0016958072083070874,
-0.06688953936100006,
1.1093028783798218,
0.6389917731285095,
0.7140931487083435,
-0.10520660132169724,
-0.210569024085998... |
func (p ListWatchersParameters) ToQuery() string {
return paramsToQuery(p)
} | [
0.1706799864768982,
-0.36420926451683044,
0.3017753064632416,
-0.4486619532108307,
0.6978296637535095,
-0.019395772367715836,
-0.2357170730829239,
0.17263096570968628,
0.24705632030963898,
1.057443618774414,
0.3989831209182739,
0.4732111692428589,
-0.2859472334384918,
0.3838801681995392,
... |
func (*Empty) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{0}
} | [
-0.9719933271408081,
0.2594543993473053,
0.6535022854804993,
-0.36078715324401855,
0.17987371981143951,
0.22865644097328186,
0.159501850605011,
0.15674611926078796,
-0.8247743844985962,
0.31562507152557373,
-0.5927276611328125,
0.6285783052444458,
0.22741219401359558,
0.5819631814956665,
... |
func (*Repository) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{1}
} | [
-1.1813925504684448,
0.5314016938209534,
0.265317440032959,
0.03990783914923668,
-0.07836612313985825,
-0.659468948841095,
0.5162584185600281,
1.0138574838638306,
0.1292547583580017,
-0.7270626425743103,
-0.650935173034668,
0.02081017941236496,
0.07591218501329422,
0.8112199306488037,
1.... |
func (*RepositoryID) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{2}
} | [
-0.3783387541770935,
0.20851528644561768,
0.09321020543575287,
-0.05150584876537323,
-0.1545674055814743,
0.06379955261945724,
-0.19514232873916626,
0.71461421251297,
-0.12806718051433563,
0.7048050761222839,
-0.054496292024850845,
0.4569544494152069,
0.14261548221111298,
1.028901934623718... |
func (*ListRepositoryReq) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{3}
} | [
-1.4067233800888062,
-0.46583113074302673,
0.47339093685150146,
-0.2066984623670578,
0.9287123084068298,
-1.03205144405365,
-0.31814807653427124,
1.3387936353683472,
0.1523737609386444,
-0.6268489360809326,
-1.0309468507766724,
-0.05363363400101662,
-0.056817058473825455,
0.964442133903503... |
func (*ListRepositoryRes) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{4}
} | [
-0.8913707137107849,
0.34155988693237305,
-0.0018466735491529107,
-0.9610406160354614,
0.4298764169216156,
-1.3734723329544067,
-0.3383638560771942,
0.5585382580757141,
0.4015877842903137,
-0.020731860771775246,
-0.3151692748069763,
0.2731967270374298,
-0.0766981691122055,
0.74292844533920... |
func (*Job) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{5}
} | [
-0.5562247037887573,
1.0180388689041138,
0.4875825047492981,
0.3644011914730072,
-0.8356492519378662,
0.028361763805150986,
0.22448866069316864,
0.4312841296195984,
-0.4538429081439972,
-0.8511394262313843,
-0.597337007522583,
0.18253611028194427,
-0.39552631974220276,
0.5664117336273193,
... |
func (*JobID) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{6}
} | [
-0.256483256816864,
0.14191381633281708,
0.2806602418422699,
0.14327280223369598,
-0.3611131012439728,
0.17735189199447632,
-0.05454070493578911,
0.0645412802696228,
-0.5724450349807739,
0.37111568450927734,
-0.042021848261356354,
0.518900454044342,
0.16376416385173798,
0.7955117225646973,... |
func (*ListJobReq) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{7}
} | [
-0.9338257312774658,
-0.7236077785491943,
0.8536558151245117,
0.32291796803474426,
0.09919768571853638,
-0.49654310941696167,
-0.07603916525840759,
0.44941017031669617,
-0.7000062465667725,
-0.8983897566795349,
-1.4977515935897827,
0.4599836468696594,
-0.13534748554229736,
1.13690280914306... |
func (*ListJobRes) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{8}
} | [
-0.5676678419113159,
0.6041467189788818,
0.21649204194545746,
-0.09860249608755112,
-0.5241482257843018,
-0.3691291809082031,
-0.09052868187427521,
-0.35143929719924927,
0.059077583253383636,
-0.7427869439125061,
-0.8078209757804871,
0.29334449768066406,
-0.5791893005371094,
0.919430434703... |
func (*Variable) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{9}
} | [
-0.8319986462593079,
0.36094239354133606,
0.38922029733657837,
-0.2854112684726715,
0.18431684374809265,
-0.7712355852127075,
0.24502630531787872,
0.4561622440814972,
-0.4907948076725006,
-0.514263927936554,
-0.8150291442871094,
0.052170462906360626,
-0.3028360605239868,
0.5442782640457153... |
func (*VariableID) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{10}
} | [
0.36956748366355896,
-0.14089345932006836,
0.06430352479219437,
-0.238387793302536,
0.037940870970487595,
-0.43199050426483154,
-0.23328638076782227,
0.6456965804100037,
-0.19253863394260406,
0.8536404371261597,
-0.558020293712616,
0.8846948146820068,
-0.5649784803390503,
0.773204684257507... |
func (*ListVariableReq) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{11}
} | [
-0.6384110450744629,
-0.7927718162536621,
0.5845981240272522,
0.6567124724388123,
0.7366804480552673,
-0.6226475834846497,
-0.7406421303749084,
0.7097492218017578,
-0.4142298698425293,
-0.2870286703109741,
-0.8460088968276978,
0.07920699566602707,
-0.3698205351829529,
0.7667311429977417,
... |
func (*ListVariableRes) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{12}
} | [
-0.19024965167045593,
-0.3927643895149231,
0.1638209968805313,
-0.5091869235038757,
0.5079454779624939,
-1.0669045448303223,
-0.44065389037132263,
-0.28386834263801575,
-0.17455224692821503,
-0.21066109836101532,
-1.1708705425262451,
-0.5613125562667847,
-0.2975623309612274,
-0.26321738958... |
func (*DescribeRepositoryReq) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{13}
} | [
-0.6524342894554138,
0.44025442004203796,
0.5464264750480652,
-0.1339360475540161,
0.5256787538528442,
-0.7854744791984558,
-0.020282773301005363,
0.4444741904735565,
-0.5480877161026001,
-0.5680368542671204,
-0.40040263533592224,
0.9738003015518188,
-0.9212298393249512,
0.9575096964836121... |
func (*Playbook) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{14}
} | [
-0.5209172368049622,
0.4058811068534851,
0.5688677430152893,
-0.11763379722833633,
-0.07839211821556091,
0.25182750821113586,
0.9506446123123169,
-0.06677813082933426,
-0.35608240962028503,
-0.29239413142204285,
-0.7418218851089478,
0.3483186960220337,
-0.9010248184204102,
0.54864555597305... |
func (*RunOpsReq) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{15}
} | [
-2.1911473274230957,
0.1775783896446228,
0.7313193082809448,
0.037347014993429184,
-0.2829076051712036,
-0.3575408160686493,
0.9606296420097351,
-0.07017207890748978,
-0.953582763671875,
-0.9531431794166565,
-0.36371028423309326,
0.5669189095497131,
0.19345667958259583,
0.6251316666603088,... |
func (*RunOpsRes) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{16}
} | [
-0.9855934381484985,
0.2806231379508972,
0.38813480734825134,
-0.5350040793418884,
-0.1698940396308899,
-0.5938385725021362,
1.077846884727478,
-0.5738894939422607,
-0.047249238938093185,
-0.6093183755874634,
-0.7353326082229614,
-0.09327282756567001,
-0.3197154998779297,
-0.12989747524261... |
func (*Playbook_Env) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{14, 0}
} | [
-0.304212749004364,
0.2266930192708969,
0.45067545771598816,
0.6806149482727051,
0.28112512826919556,
-0.12515248358249664,
1.1610338687896729,
-0.22341687977313995,
-1.4350308179855347,
0.03692980483174324,
-0.4015447199344635,
1.1513957977294922,
-0.6781345009803772,
1.0380245447158813,
... |
func (*Playbook_Task) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{14, 1}
} | [
-0.2491532266139984,
0.39986562728881836,
0.3478218615055084,
1.1096376180648804,
-0.04073767364025116,
-0.46089550852775574,
0.005182565655559301,
-0.11201101541519165,
-1.248288869857788,
-0.007813367061316967,
-1.4916813373565674,
-0.04656156152486801,
-0.8253467082977295,
0.61509907245... |
func (*Playbook_Task_Args) Descriptor() ([]byte, []int) {
return file_api_ops_proto_rawDescGZIP(), []int{14, 1, 0}
} | [
-0.5904157161712646,
0.15362416207790375,
0.21749255061149597,
0.6699244976043701,
0.36101847887039185,
-0.1541462242603302,
0.34669703245162964,
-0.13212448358535767,
-1.747340440750122,
1.194153070449829,
-1.4381158351898193,
-0.8768093585968018,
-1.073804259300232,
0.39237990975379944,
... |
func (s *Single) Filename() string {
if len(Lockfile) > 0 {
return Lockfile
}
return filepath.Join(os.TempDir(), fmt.Sprintf("%s.lock", s.name))
} | [
0.2519107460975647,
-0.08382981270551682,
0.4962448179721832,
0.24871031939983368,
0.4201444089412689,
0.4952486753463745,
1.0843232870101929,
1.0776917934417725,
-0.4010222852230072,
0.07414780557155609,
0.4609520137310028,
-0.19214999675750732,
0.20556864142417908,
0.07146235555410385,
... |
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
} | [
0.39323097467422485,
0.19555503129959106,
0.8066791296005249,
0.35425540804862976,
1.2246818542480469,
0.6068741679191589,
1.5308998823165894,
1.310154676437378,
-0.2759368121623993,
0.09654992073774338,
0.15240009129047394,
0.8936415910720825,
0.08821103721857071,
1.1665232181549072,
0.... |
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
} | [
-0.21088911592960358,
0.6884270906448364,
0.7985896468162537,
-0.6074316501617432,
1.0013898611068726,
-0.5194764137268066,
1.0623458623886108,
0.7728952765464783,
-0.8639748096466064,
-0.49232685565948486,
0.08645880967378616,
0.37742677330970764,
-0.20443493127822876,
0.17131181061267853... |
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)
} | [
0.6381317377090454,
-0.6994563937187195,
0.28483498096466064,
-0.295534610748291,
-0.24962569773197174,
0.17972034215927124,
0.4295696020126343,
-1.4636337757110596,
-0.49167728424072266,
-0.025299187749624252,
-0.0982619896531105,
0.523497998714447,
0.27526289224624634,
-0.838461756706237... |
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... | [
0.5692208409309387,
0.12383116781711578,
1.1038423776626587,
0.4986222982406616,
0.6412419080734253,
0.969606339931488,
0.5138989686965942,
-0.38209059834480286,
-1.0719884634017944,
-0.07011955976486206,
0.23716653883457184,
0.560183048248291,
-0.37278079986572266,
0.00472122710198164,
... |
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... | [
-0.6524093747138977,
-0.5152633786201477,
0.7581928372383118,
-0.4181602895259857,
0.3242347836494446,
0.892862856388092,
-0.7198247909545898,
-0.0966874361038208,
-0.6288158893585205,
0.7212942242622375,
0.6746910214424133,
0.567443311214447,
-0.8250601291656494,
0.3489221930503845,
0.3... |
func NewLocalCollector(s Store) Collector {
return s
} | [
0.5376371741294861,
-1.231189250946045,
-0.0023348385002464056,
-0.8182159066200256,
-1.8385896682739258,
-1.0045956373214722,
-0.6077019572257996,
0.8982219696044922,
0.9854526519775391,
-0.7214139699935913,
-0.48403000831604004,
0.23631207644939423,
0.28459277749061584,
1.052200436592102... |
func newCollectPacket(s SpanID, as Annotations) *wire.CollectPacket {
return &wire.CollectPacket{
Spanid: s.wire(),
Annotation: as.wire(),
}
} | [
0.4582720100879669,
-0.424662321805954,
0.1276397854089737,
-0.15529978275299072,
-1.3476295471191406,
0.1088470071554184,
-0.7462106347084045,
-1.5653268098831177,
1.0668821334838867,
0.06366714835166931,
0.31897661089897156,
0.9561590552330017,
0.6682023406028748,
1.0495432615280151,
-... |
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... | [
-0.003318143542855978,
-0.743105947971344,
0.4969167411327362,
-0.41720548272132874,
-0.38229310512542725,
0.3178112804889679,
0.10803495347499847,
-0.713432252407074,
0.28914445638656616,
0.0557735301554203,
-0.14653992652893066,
0.7992081046104431,
0.17414651811122894,
1.306207537651062,... |
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... | [
0.047888074070215225,
-0.32283294200897217,
0.466910183429718,
-1.0192822217941284,
0.19722123444080353,
0.44661009311676025,
0.4622281789779663,
-0.7292134165763855,
-0.15375559031963348,
-0.19694022834300995,
0.37857678532600403,
0.5918849110603333,
-0.3487510681152344,
1.565625786781311... |
func (cc *ChunkedCollector) Stop() {
cc.mu.Lock()
defer cc.mu.Unlock()
close(cc.stopChan)
cc.stopped = true
} | [
-0.23592780530452728,
-1.246274471282959,
0.36861586570739746,
-0.9841097593307495,
0.7824240922927856,
0.6033459305763245,
0.10462932288646698,
-0.5008655190467834,
-0.8899320363998413,
-0.5400288701057434,
-0.9158463478088379,
0.06404926627874374,
-0.5829420685768127,
0.41507434844970703... |
func NewRemoteCollector(addr string) *RemoteCollector {
return &RemoteCollector{
addr: addr,
dial: func() (net.Conn, error) {
return net.Dial("tcp", addr)
},
}
} | [
0.05995545908808708,
-1.1104375123977661,
0.4789087772369385,
-0.9587908983230591,
-1.3423857688903809,
0.234643816947937,
-0.8722591400146484,
-0.161346435546875,
0.6641206741333008,
-0.2832399010658264,
-0.7852977514266968,
0.704306960105896,
-0.288373738527298,
0.47171834111213684,
-0... |
func NewTLSRemoteCollector(addr string, tlsConfig *tls.Config) *RemoteCollector {
return &RemoteCollector{
addr: addr,
dial: func() (net.Conn, error) {
return tls.Dial("tcp", addr, tlsConfig)
},
}
} | [
0.9182780981063843,
-1.1989117860794067,
0.4301343262195587,
-1.7061412334442139,
-1.4420136213302612,
0.9120630025863647,
-1.3173437118530273,
-0.2251787632703781,
0.5356762409210205,
0.15646715462207794,
-0.8850047588348389,
0.5971962213516235,
-0.03172411024570465,
0.3226655125617981,
... |
func (rc *RemoteCollector) Collect(span SpanID, anns ...Annotation) error {
return rc.collectAndRetry(newCollectPacket(span, anns))
} | [
-0.10344351828098297,
-0.04919993504881859,
0.1255129873752594,
-0.22510790824890137,
-0.6879686117172241,
0.752116858959198,
-0.342195600271225,
-1.2761776447296143,
0.5826864242553711,
0.24401335418224335,
-0.5041645765304565,
0.6300872564315796,
0.26092928647994995,
0.41726765036582947,... |
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).
... | [
-0.01171469409018755,
-0.6989634037017822,
0.5536150932312012,
0.16416309773921967,
-0.0148835564032197,
0.6489086747169495,
-0.5084389448165894,
-0.2799610495567322,
-0.5639554858207703,
-0.3174611032009125,
-0.3149995505809784,
-0.7966896295547485,
-0.7487544417381287,
0.0090654240921139... |
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
} | [
0.25753623247146606,
-0.8041452765464783,
0.7670234441757202,
-0.2837517261505127,
0.09163618087768555,
1.0460326671600342,
-0.3270629942417145,
-0.5942344069480896,
-0.4460492730140686,
-0.6968247294425964,
-0.11885849386453629,
-0.7301278114318848,
-1.6014949083328247,
0.3187053799629211... |
func NewServer(l net.Listener, c Collector) *CollectorServer {
cs := &CollectorServer{c: c, l: l}
return cs
} | [
0.8053877949714661,
-1.169818639755249,
0.3737107217311859,
-0.14426392316818237,
0.5835701823234558,
1.0364474058151245,
-0.8125621676445007,
-0.43450501561164856,
0.1714331954717636,
-0.3554128408432007,
-0.637594997882843,
-0.46423932909965515,
-0.19553142786026,
0.17767947912216187,
... |
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)
}
} | [
0.024744901806116104,
-0.8633904457092285,
0.7013671398162842,
-0.3688320517539978,
0.71834397315979,
1.0343921184539795,
-0.12712933123111725,
0.4583517014980316,
-0.8820943832397461,
-0.22935371100902557,
-0.7050958871841431,
0.784529447555542,
0.08771900087594986,
0.3619112968444824,
... |
func JSON(response []byte) {
// pretty-print the json
utils.PrintJSON(response)
} | [
-0.0014907080912962556,
-1.1619888544082642,
0.26456311345100403,
-0.655081570148468,
-0.5934703350067139,
-0.6253358125686646,
0.7193765044212341,
-0.2639930248260498,
0.8416404724121094,
-0.7114040851593018,
-0.6447781324386597,
0.8621227741241455,
0.7090333104133606,
-0.0183940343558788... |
func JSONString(response string) {
// pretty-print the json
utils.PrintJSON([]byte(response))
} | [
-0.6179031729698181,
-0.964284360408783,
0.27055367827415466,
-0.8693801760673523,
-0.8294850587844849,
-0.3696695864200592,
0.11491645872592926,
-1.1438590288162231,
0.8198365569114685,
-0.2270234078168869,
-0.28897595405578613,
0.12045259773731232,
0.9484293460845947,
-0.6231875419616699... |
func NewUInt64() *UInt64 {
self := UInt64{}
self.SetDefaults()
return &self
} | [
-0.48099416494369507,
-0.25519096851348877,
-0.10508600622415543,
1.2563923597335815,
0.18966452777385712,
-0.8168562650680542,
-0.3397894501686096,
0.08310911804437637,
-0.06107889860868454,
-0.9931244850158691,
-0.052668146789073944,
-0.9359175562858582,
-0.374850332736969,
0.58077484369... |
func CloneUInt64Slice(dst, src []UInt64) {
for i := range src {
dst[i] = *src[i].Clone()
}
} | [
-1.420000672340393,
-0.00618258910253644,
0.2768367826938629,
0.7513641715049744,
-0.13874779641628265,
0.4734244644641876,
-0.7989925146102905,
0.20759013295173645,
0.00916679110378027,
1.10867178440094,
0.4953109622001648,
0.746789813041687,
0.99399334192276,
0.5791391134262085,
-0.859... |
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,
}}
} | [
-0.7096403241157532,
0.010644227266311646,
0.5237508416175842,
-1.108076810836792,
-0.09599962830543518,
0.14088022708892822,
-1.0446494817733765,
-0.3383401036262512,
-0.4769337475299835,
0.3353692889213562,
-1.0388463735580444,
0.17993991076946259,
0.7254497408866882,
1.4722405672073364,... |
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: %... | [
0.5196496844291687,
0.6556529998779297,
0.8356630206108093,
0.7132354378700256,
-0.1764664500951767,
0.12480993568897247,
-0.10555854439735413,
0.2067272812128067,
-0.43550434708595276,
0.4087288975715637,
0.41021260619163513,
-0.3370116949081421,
-0.5971032977104187,
0.9799105525016785,
... |
func MyMultiSliceFunc(nums [][][]int) { fmt.Println(nums) } | [
0.19251219928264618,
-0.7435407638549805,
0.4382750689983368,
0.34872162342071533,
-0.007382404990494251,
-0.876758337020874,
0.3256656527519226,
0.22235938906669617,
0.6404331922531128,
0.5996968746185303,
0.12302084267139435,
0.774295449256897,
0.2991594076156616,
0.7393178343772888,
-... |
func NewMockProviders(ctrl *gomock.Controller) *MockProviders {
mock := &MockProviders{ctrl: ctrl}
mock.recorder = &MockProvidersMockRecorder{mock}
return mock
} | [
-0.6286869645118713,
0.09922946989536285,
0.1377265751361847,
0.90391606092453,
0.40997081995010376,
-0.45121923089027405,
0.18224456906318665,
-0.4220208525657654,
1.362920880317688,
1.2555922269821167,
-0.5295064449310303,
0.12158570438623428,
-0.9708988666534424,
0.6511276364326477,
0... |
func (m *MockProviders) EXPECT() *MockProvidersMockRecorder {
return m.recorder
} | [
-0.42166224122047424,
0.029519833624362946,
0.16896648705005646,
0.17646804451942444,
0.5558425188064575,
-0.03364134952425957,
-0.19606952369213104,
0.34139519929885864,
1.207638144493103,
0.4039870798587799,
0.26667284965515137,
1.183895230293274,
-0.8017120361328125,
0.27445757389068604... |
func (m *MockProviders) ChannelProvider() fab.ChannelProvider {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ChannelProvider")
ret0, _ := ret[0].(fab.ChannelProvider)
return ret0
} | [
0.09931815415620804,
0.17486459016799927,
-0.01773032173514366,
0.1589532494544983,
0.5082377791404724,
0.5252159237861633,
0.27968257665634155,
-0.23507621884346008,
-0.5768957734107971,
0.4561392366886139,
-0.013704202137887478,
-0.14611925184726715,
-0.8856679201126099,
0.75182616710662... |
func (mr *MockProvidersMockRecorder) ChannelProvider() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChannelProvider", reflect.TypeOf((*MockProviders)(nil).ChannelProvider))
} | [
0.5930314660072327,
0.8712098598480225,
-0.015030781738460064,
0.1806466281414032,
-0.07100207358598709,
0.5860116481781006,
-0.6066650152206421,
-0.6988228559494019,
1.2305033206939697,
1.1539280414581299,
0.6603600978851318,
0.8353440761566162,
-1.0409579277038574,
0.8982097506523132,
... |
func (m *MockProviders) CryptoSuite() core.CryptoSuite {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CryptoSuite")
ret0, _ := ret[0].(core.CryptoSuite)
return ret0
} | [
-0.36748024821281433,
-0.1391972154378891,
0.07524866610765457,
0.04595913365483284,
1.282814383506775,
0.3596711754798889,
0.80694180727005,
-0.40502873063087463,
-0.695342481136322,
0.05603955313563347,
-0.4613940417766571,
-0.5927870273590088,
-1.0929100513458252,
0.699283242225647,
0... |
func (mr *MockProvidersMockRecorder) CryptoSuite() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CryptoSuite", reflect.TypeOf((*MockProviders)(nil).CryptoSuite))
} | [
0.0432199090719223,
0.5876066088676453,
0.021786702796816826,
0.07977671921253204,
0.5370476841926575,
0.4778095483779907,
-0.3050857186317444,
-0.6595668196678162,
0.560232937335968,
0.5750423073768616,
0.2973335385322571,
0.8103012442588806,
-0.8047727942466736,
0.7565015554428101,
0.0... |
func (m *MockProviders) EndpointConfig() fab.EndpointConfig {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EndpointConfig")
ret0, _ := ret[0].(fab.EndpointConfig)
return ret0
} | [
-0.27240705490112305,
-0.014390475116670132,
0.2581704556941986,
0.3107491433620453,
0.4715383052825928,
0.773495614528656,
0.6488783359527588,
0.6688841581344604,
-0.5350725650787354,
0.21459446847438812,
-0.8458526730537415,
-0.830359697341919,
-0.8111833333969116,
1.01109778881073,
0.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.