text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (in *Execution) DeepCopyInto(out *Execution) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
} | [
0.4308653175830841,
-0.4788898229598999,
0.5870015621185303,
0.4617563784122467,
-0.5213705897331238,
0.41819316148757935,
0.38070958852767944,
0.6282023787498474,
-1.3185609579086304,
-0.09573362022638321,
-0.42201870679855347,
1.4674943685531616,
0.1640855222940445,
-0.05590079352259636,... |
func (in *Execution) DeepCopy() *Execution {
if in == nil {
return nil
}
out := new(Execution)
in.DeepCopyInto(out)
return out
} | [
-0.1303739994764328,
0.4630705416202545,
0.4844299554824829,
1.8090873956680298,
-0.31631550192832947,
-0.1563367247581482,
0.5374289751052856,
0.13192611932754517,
-0.04229839891195297,
-0.014809795655310154,
-0.05851266160607338,
0.023918980732560158,
-0.6036088466644287,
-0.743736207485... |
func (in *Execution) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
0.09941570460796356,
0.07709670066833496,
0.7247409820556641,
0.8120501637458801,
-0.704485297203064,
0.446124792098999,
1.090203881263733,
0.20652636885643005,
-0.6415624618530273,
-0.45994338393211365,
-0.0604885034263134,
0.11532541364431381,
-0.07844428718090057,
-0.17189602553844452,
... |
func (in *ExecutionList) DeepCopyInto(out *ExecutionList) {
*out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]Execution, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
} | [
0.022175714373588562,
0.5234206914901733,
0.6757233738899231,
0.4973703622817993,
-0.22837282717227936,
0.08637255430221558,
0.3886025846004486,
0.9330483078956604,
-0.8888704180717468,
0.1724262684583664,
-0.531389594078064,
0.6976220607757568,
-0.30081120133399963,
0.17027226090431213,
... |
func (in *ExecutionList) DeepCopy() *ExecutionList {
if in == nil {
return nil
}
out := new(ExecutionList)
in.DeepCopyInto(out)
return out
} | [
-0.42777496576309204,
0.6648229956626892,
0.3676605820655823,
1.2877247333526611,
-0.22681722044944763,
0.3508092761039734,
0.5237597823143005,
0.48253631591796875,
0.511452317237854,
0.17799727618694305,
-0.6045995950698853,
-0.35538971424102783,
-0.6007081270217896,
-0.009059098549187183... |
func (in *ExecutionList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
}
return nil
} | [
-0.3597356975078583,
0.3046090006828308,
0.6810925602912903,
0.6489681005477905,
-0.5386999845504761,
0.6635808348655701,
1.121923565864563,
0.3779810667037964,
-0.28599244356155396,
-0.39639750123023987,
-0.48869264125823975,
-0.15692509710788727,
-0.24722006916999817,
0.18417617678642273... |
func (in *ExecutionSpec) DeepCopyInto(out *ExecutionSpec) {
*out = *in
if in.Tasks != nil {
in, out := &in.Tasks, &out.Tasks
*out = make([]Task, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.NodeSelector != nil {
in, out := &in.NodeSelector, &out.NodeSelector
*out = make(... | [
0.22695915400981903,
-0.12376635521650314,
0.6494163274765015,
-0.27784740924835205,
-0.5005137324333191,
-0.051211338490247726,
0.4756922423839569,
0.3390410542488098,
-0.9969223141670227,
0.3644882142543793,
-0.09296101331710815,
0.957798957824707,
0.37206336855888367,
-0.069760799407958... |
func (in *ExecutionSpec) DeepCopy() *ExecutionSpec {
if in == nil {
return nil
}
out := new(ExecutionSpec)
in.DeepCopyInto(out)
return out
} | [
0.1708628088235855,
0.38460853695869446,
0.3787026107311249,
0.36963149905204773,
-0.22537685930728912,
0.6303220987319946,
0.6245152354240417,
0.08081352710723877,
-0.2076718509197235,
0.05560010299086571,
0.4652429223060608,
0.3953263461589813,
0.3316178321838379,
-0.5523775219917297,
... |
func (in *ExecutionStatus) DeepCopyInto(out *ExecutionStatus) {
*out = *in
in.StartedAt.DeepCopyInto(&out.StartedAt)
in.FinishedAt.DeepCopyInto(&out.FinishedAt)
if in.Vertices != nil {
in, out := &in.Vertices, &out.Vertices
*out = make(map[string]VertexStatus, len(*in))
for key, val := range *in {
(*out)[k... | [
0.3476133644580841,
0.26375988125801086,
0.5185648202896118,
-0.2176501452922821,
-1.0639839172363281,
0.32796454429626465,
0.06789872795343399,
0.4199713468551636,
-1.0940570831298828,
0.30702611804008484,
-0.7671645879745483,
1.1113325357437134,
0.37708163261413574,
-0.38293159008026123,... |
func (in *ExecutionStatus) DeepCopy() *ExecutionStatus {
if in == nil {
return nil
}
out := new(ExecutionStatus)
in.DeepCopyInto(out)
return out
} | [
-0.30331555008888245,
0.35290029644966125,
-0.067080557346344,
0.12907961010932922,
-0.5352381467819214,
0.44202542304992676,
-0.07653400301933289,
0.28077512979507446,
-0.12989027798175812,
-0.41618725657463074,
-0.2020341455936432,
0.1700752079486847,
0.26484254002571106,
-0.456631153821... |
func (in *GenericCondition) DeepCopyInto(out *GenericCondition) {
*out = *in
if in.MatchRules != nil {
in, out := &in.MatchRules, &out.MatchRules
*out = make([]MatchRule, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
} | [
0.12454153597354889,
-0.20601071417331696,
0.517444372177124,
-0.14365974068641663,
-0.19919879734516144,
0.29277729988098145,
0.23153696954250336,
0.8044265508651733,
-1.818447232246399,
0.5753774046897888,
0.001532528200186789,
0.9346553683280945,
-0.1516467183828354,
-0.4354267120361328... |
func (in *GenericCondition) DeepCopy() *GenericCondition {
if in == nil {
return nil
}
out := new(GenericCondition)
in.DeepCopyInto(out)
return out
} | [
-0.5423853993415833,
-0.40656283497810364,
0.160127192735672,
0.48425060510635376,
-0.3564492166042328,
0.4558325409889221,
0.4388536214828491,
-0.21710774302482605,
-1.0038187503814697,
0.31632423400878906,
0.11979200690984726,
0.19631639122962952,
-0.4829981327056885,
-0.4596260190010071... |
func (in *MatchRule) DeepCopyInto(out *MatchRule) {
*out = *in
if in.Values != nil {
in, out := &in.Values, &out.Values
*out = make([]string, len(*in))
copy(*out, *in)
}
return
} | [
0.48939043283462524,
0.2576036751270294,
0.6297946572303772,
-0.5188045501708984,
-0.2221173197031021,
0.4507049322128296,
-0.42949381470680237,
1.0105937719345093,
-1.4394103288650513,
0.00557264219969511,
-0.3138584494590759,
0.7571045756340027,
-0.11436126381158829,
-0.3354056179523468,... |
func (in *MatchRule) DeepCopy() *MatchRule {
if in == nil {
return nil
}
out := new(MatchRule)
in.DeepCopyInto(out)
return out
} | [
0.1724250614643097,
0.27343302965164185,
0.4631352722644806,
0.27891188859939575,
0.18493887782096863,
0.8616132140159607,
-0.03477146849036217,
0.7994428873062134,
-0.2800692617893219,
-0.030087178573012352,
-0.13517281413078308,
0.2839045822620392,
-0.7829198241233826,
-0.517195463180542... |
func (in *ResourceRequirements) DeepCopyInto(out *ResourceRequirements) {
*out = *in
out.Memory = in.Memory.DeepCopy()
out.Cpu = in.Cpu.DeepCopy()
return
} | [
0.2256489396095276,
0.07283632457256317,
0.4619293808937073,
-0.13739334046840668,
-0.8797744512557983,
0.5037835240364075,
0.11152824014425278,
0.8570577502250671,
-1.1428704261779785,
0.08984147757291794,
-0.5931878685951233,
0.9996095299720764,
-0.012634524144232273,
-0.2671521902084350... |
func (in *ResourceRequirements) DeepCopy() *ResourceRequirements {
if in == nil {
return nil
}
out := new(ResourceRequirements)
in.DeepCopyInto(out)
return out
} | [
-1.1199532747268677,
0.16600361466407776,
0.07278737425804138,
0.5364035367965698,
-0.0483098141849041,
0.06906666606664658,
0.36977729201316833,
-0.49876919388771057,
0.3662833571434021,
0.2834570109844208,
-0.45206543803215027,
-0.3057333827018738,
-0.9385340809822083,
-0.228449523448944... |
func (in *Task) DeepCopyInto(out *Task) {
*out = *in
if in.NodeSelector != nil {
in, out := &in.NodeSelector, &out.NodeSelector
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.Affinity != nil {
in, out := &in.Affinity, &out.Affinity
*out = new(v1.Affin... | [
0.19611042737960815,
-0.486401230096817,
0.7028552889823914,
0.17817626893520355,
-0.9928237199783325,
-0.29708558320999146,
0.5792919993400574,
-0.007077918853610754,
-0.9650965929031372,
-0.1580929309129715,
-0.6450542211532593,
0.219927579164505,
0.3101714551448822,
-0.15752063691616058... |
func (in *Task) DeepCopy() *Task {
if in == nil {
return nil
}
out := new(Task)
in.DeepCopyInto(out)
return out
} | [
-0.16643357276916504,
0.25320595502853394,
0.2646009922027588,
1.7543058395385742,
-0.5439488291740417,
0.3348708152770996,
0.766215980052948,
0.31998783349990845,
-0.03529316559433937,
-0.5352490544319153,
-0.7976313829421997,
0.4420657455921173,
-0.23447470366954803,
-0.7903761267662048,... |
func (in *VertexStatus) DeepCopyInto(out *VertexStatus) {
*out = *in
in.StartedAt.DeepCopyInto(&out.StartedAt)
in.FinishedAt.DeepCopyInto(&out.FinishedAt)
if in.Children != nil {
in, out := &in.Children, &out.Children
*out = make([]string, len(*in))
copy(*out, *in)
}
return
} | [
0.49314776062965393,
-0.04699021950364113,
0.4935426115989685,
0.18046270310878754,
-0.9191452860832214,
-0.06881946325302124,
-0.02184532769024372,
0.24136123061180115,
-0.9241603016853333,
0.4477933645248413,
-1.247268557548523,
0.9713382720947266,
-0.029809625819325447,
-0.7407469153404... |
func (in *VertexStatus) DeepCopy() *VertexStatus {
if in == nil {
return nil
}
out := new(VertexStatus)
in.DeepCopyInto(out)
return out
} | [
0.3393866717815399,
-0.19380754232406616,
-0.3106832504272461,
0.6540793180465698,
-0.613484263420105,
-0.2978813350200653,
-0.040985580533742905,
-0.46611377596855164,
0.30992910265922546,
0.09291916340589523,
-1.422387957572937,
0.6423818469047546,
-0.5367770791053772,
-1.084123373031616... |
func (in *Volume) DeepCopyInto(out *Volume) {
*out = *in
out.MountFrom = in.MountFrom
return
} | [
1.121315598487854,
-0.9580296277999878,
0.587265133857727,
0.12081125378608704,
-0.7976208329200745,
0.1518605500459671,
-0.26816102862358093,
0.5878381729125977,
-0.9360237121582031,
-0.6618176698684692,
-0.3055593967437744,
0.8984243869781494,
0.15770894289016724,
-0.49829408526420593,
... |
func (in *Volume) DeepCopy() *Volume {
if in == nil {
return nil
}
out := new(Volume)
in.DeepCopyInto(out)
return out
} | [
0.08634288609027863,
-0.2469748854637146,
0.3508594334125519,
1.0061633586883545,
-0.3166733980178833,
-0.1917867660522461,
0.14703674614429474,
0.1754506379365921,
-0.10920834541320801,
-0.7645999193191528,
-0.008115717209875584,
0.41163334250450134,
-0.9688583016395569,
-0.78543990850448... |
func (in *VolumeSource) DeepCopyInto(out *VolumeSource) {
*out = *in
return
} | [
0.610074520111084,
-0.07802768051624298,
0.32161417603492737,
-0.19843940436840057,
-0.3182165324687958,
-0.28520485758781433,
-0.6377758979797363,
0.8258941769599915,
-0.740816056728363,
-0.5342807173728943,
-1.1176550388336182,
0.4120088815689087,
0.365871399641037,
-0.6479817032814026,
... |
func (in *VolumeSource) DeepCopy() *VolumeSource {
if in == nil {
return nil
}
out := new(VolumeSource)
in.DeepCopyInto(out)
return out
} | [
-0.32967397570610046,
0.13124890625476837,
-0.2293117642402649,
1.050133466720581,
0.2917671799659729,
-1.3729286193847656,
-0.8462627530097961,
-0.0020354664884507656,
0.13129115104675293,
0.009926358237862587,
-0.9661187529563904,
-0.7829500436782837,
-0.4677290618419647,
-0.843555629253... |
func assert(c bool, msg string) {
if !c {
panic(msg)
}
} | [
1.2785298824310303,
0.7457253336906433,
0.15844029188156128,
-0.014504730701446533,
0.2744789719581604,
1.0323344469070435,
-0.1782642900943756,
0.046326957643032074,
-0.34781908988952637,
-0.07254523038864136,
0.002725487109273672,
0.7908759117126465,
-1.0761277675628662,
0.89472103118896... |
func NewCoord(x, y float64) *Coord {
return &Coord{
x: x,
y: y,
}
} | [
0.47354909777641296,
-0.8431451320648193,
0.4348188638687134,
0.1200571060180664,
-0.9628909230232239,
-0.13150444626808167,
-1.6233375072479248,
-1.0127308368682861,
-0.46581748127937317,
-0.08248172700405121,
-0.12821058928966522,
0.9101607799530029,
0.057584453374147415,
-0.598626852035... |
func (pt *Coord) X() float64 { return pt.x } | [
-0.12694519758224487,
0.45230981707572937,
-0.05098884552717209,
0.12181835621595383,
-0.22103720903396606,
1.283442497253418,
-0.7299827933311462,
-0.3312402665615082,
-0.035791147500276566,
-0.8604766726493835,
-0.26336416602134705,
0.7614055871963501,
-0.13525569438934326,
-0.1105073764... |
func (pt *Coord) Y() float64 { return pt.y } | [
0.04305786266922951,
-0.13686588406562805,
0.21238848567008972,
0.11794598400592804,
0.8256667256355286,
0.6912418007850647,
0.29069799184799194,
-0.9507874846458435,
-0.9312801361083984,
-1.0027238130569458,
0.189139723777771,
0.4694803059101105,
-0.08503079414367676,
0.03852520510554314,... |
func (pt Coord) String() string {
return fmt.Sprintf("{%v,%v}", pt.x, pt.y)
} | [
-0.2315806895494461,
-1.0014212131500244,
0.016924357041716576,
-1.3619459867477417,
-0.3169916272163391,
1.052350401878357,
-0.2362121045589447,
-1.3745194673538208,
-0.8763317465782166,
0.35465484857559204,
0.41568365693092346,
0.5610894560813904,
-0.0510144867002964,
-1.013303279876709,... |
func ReadFile(fsys FS, name string) ([]byte, error) {
if fsys, ok := fsys.(ReadFileFS); ok {
return fsys.ReadFile(name)
}
file, err := fsys.Open(name)
if err != nil {
return nil, err
}
defer file.Close()
var size int
if info, err := file.Stat(); err == nil {
size64 := info.Size()
if int64(int(size64))... | [
-0.35333436727523804,
0.243238165974617,
0.7505894899368286,
0.23131078481674194,
-0.48918208479881287,
-0.6327313780784607,
-0.4665590226650238,
-0.29861196875572205,
-0.44689229130744934,
-0.4805643558502197,
0.13498318195343018,
-0.153846874833107,
0.25815829634666443,
0.496171504259109... |
func (us DeptService) InfoOfId(dto dto.GeneralGetDto) model.Department {
return deptDao.Get(dto.Id)
} | [
-0.01348792016506195,
-0.1656600534915924,
0.3575116693973541,
-0.776911735534668,
-0.3576468825340271,
0.08220516890287399,
-0.6325279474258423,
-1.2430399656295776,
0.44867706298828125,
-0.23919160664081573,
0.4971563518047333,
0.7637253999710083,
1.4024239778518677,
0.4328642785549164,
... |
func (us DeptService) List(dto dto.GeneralListDto) ([]model.Department, int64) {
return deptDao.List(dto)
} | [
-0.9813963174819946,
0.20889659225940704,
0.32024091482162476,
0.07422735542058945,
-0.44487690925598145,
0.6260107159614563,
-0.2072135955095291,
0.5397146940231323,
0.5982191562652588,
-0.35429877042770386,
-0.607463538646698,
0.7627829313278198,
1.3714649677276611,
1.2323276996612549,
... |
func (us DeptService) Create(dto dto.DeptCreateDto) model.Department {
deptModel := model.Department{
Name: dto.Name,
ParentId: dto.ParentId,
OrderNum: dto.OrderNum,
}
c := deptDao.Create(&deptModel)
if c.Error != nil {
log.Error(c.Error.Error())
}
return deptModel
} | [
-0.26524269580841064,
0.1319642812013626,
0.5720741748809814,
0.35959962010383606,
0.09239511936903,
1.2595771551132202,
0.3316994905471802,
-0.24881498515605927,
-0.28229236602783203,
-0.5433830618858337,
-0.3173743486404419,
0.05136951059103012,
0.6600778102874756,
0.613385796546936,
-... |
func (us DeptService) Update(dto dto.DeptEditDto) int64 {
deptModel := model.Department{
Id: dto.Id,
}
c := deptDao.Update(&deptModel, map[string]interface{}{
"name": dto.Name,
//"parentId": dto.ParentId,
"orderNum": dto.OrderNum,
})
return c.RowsAffected
} | [
-1.4731221199035645,
0.24559444189071655,
0.7420823574066162,
-0.345913827419281,
-0.9404076337814331,
0.18353231251239777,
0.5328219532966614,
-0.17262688279151917,
0.3446485102176666,
-0.3720795810222626,
-0.777040421962738,
0.2921701967716217,
0.478134423494339,
0.3443540632724762,
-0... |
func (us DeptService) CheckIfPeopleInside(dto dto.GeneralDelDto) int64 {
return 0
} | [
-0.6379317045211792,
0.5041776895523071,
0.4792533218860626,
-0.1585732102394104,
-0.637900710105896,
1.0372819900512695,
-0.0003489293158054352,
0.4316859245300293,
-0.3242659568786621,
-0.7950136661529541,
0.6556220650672913,
0.2229749858379364,
-1.0508917570114136,
1.3015196323394775,
... |
func NewAsmTest(cfg printer.Config) Interface {
return &asmtest{cfg: cfg}
} | [
-0.03435215353965759,
-0.7336268424987793,
0.0403621532022953,
-0.6344555616378784,
-1.7781580686569214,
-0.5348318815231323,
-0.9251302480697632,
-0.9225634932518005,
0.7845827341079712,
0.5788247585296631,
-0.1531524807214737,
-0.16759726405143738,
-1.004763126373291,
0.6118010878562927,... |
func (a asmtest) arg(t string, i int) string {
m := map[string]string{
"1": "$1", // <xs:enumeration value="1" />
"3": "$3", // <xs:enumeration value="3" />
"imm2u": "$3",
// <xs:enumeration value="imm4" />
"imm8": fmt.Sprintf("$%d", math.MaxInt8), // <xs:enumeration value="imm8" />
"imm16": fmt.... | [
-0.8655722737312317,
-0.27476516366004944,
0.8148006796836853,
-0.8572736382484436,
-0.33853164315223694,
0.4582972824573517,
0.3436373472213745,
0.5246196389198303,
0.12026206403970718,
0.6714766621589661,
-0.010825222358107567,
0.20963704586029053,
1.0056911706924438,
0.1866254210472107,... |
func deployUnits(hosts Hosts, appName, appVersion, unitFile string) bool {
// get the next instance number to use for deployment
// this function will also handling initializing the instance number
// if one does not exist
fmt.Println("getting instance number for non global unit")
nextInstNum := getNextInstance(h... | [
-1.2852652072906494,
0.1864369958639145,
0.7654658555984497,
-0.08105383068323135,
0.5566772818565369,
0.48792940378189087,
0.08214624226093292,
0.4359995424747467,
-0.8127428889274597,
0.1562565267086029,
-0.017270216718316078,
-0.38208654522895813,
-0.6639885902404785,
0.4014419913291931... |
func New(user string, password string, crowdURL string) (s *SSO, err error) {
s = &SSO{}
s.LoginPage = loginPage
s.ClientAddressFinder = DefaultClientAddressFinder
s.LoginTemplate = template.Must(template.New("authPage").Parse(defLoginPage))
cwd, err := crowd.New(user, password, crowdURL)
if err != nil {
retur... | [
0.45899122953414917,
0.16934187710285187,
0.4152298867702484,
0.8925178647041321,
-0.42489829659461975,
-0.12169328331947327,
0.16595318913459778,
0.49264824390411377,
-0.3292916417121887,
0.018496593460440636,
-0.6546293497085571,
-0.16233214735984802,
0.9490758180618286,
0.49470791220664... |
func (s *SSO) Handler(h http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if s.loginHandler(w, r) == false {
return
}
h.ServeHTTP(w, r)
})
} | [
-0.24663347005844116,
0.08041907101869583,
0.3044826090335846,
0.5902625918388367,
-0.6480275988578796,
0.9998257756233215,
0.3812031149864197,
0.6995624899864197,
0.7205122113227844,
-0.6507052183151245,
-0.13165414333343506,
-0.1286776214838028,
0.7496256828308105,
0.1315716654062271,
... |
func (s *SSO) StartSession(w http.ResponseWriter, cs crowd.Session) {
ck := http.Cookie{
Name: s.CookieConfig.Name,
Domain: s.CookieConfig.Domain,
Secure: s.CookieConfig.Secure,
Value: cs.Token,
Expires: cs.Expires,
}
http.SetCookie(w, &ck)
} | [
0.015735715627670288,
-0.5388380885124207,
0.3354588449001312,
0.5081211924552917,
0.36714187264442444,
-0.10384656488895416,
0.730349063873291,
0.4787503480911255,
0.2976861596107483,
0.1292802095413208,
-0.8739800453186035,
1.1063824892044067,
1.2707970142364502,
0.06791739910840988,
-... |
func (s *SSO) EndSession(w http.ResponseWriter, r *http.Request) {
currentCookie, _ := r.Cookie(s.CookieConfig.Name)
newCookie := &http.Cookie{
Name: s.CookieConfig.Name,
Domain: s.CookieConfig.Domain,
Secure: s.CookieConfig.Secure,
MaxAge: -1,
Expires: time.Unix(1, 0),
Value: "LOGGED-OUT",
}
s.... | [
-0.4215363562107086,
-0.35447007417678833,
0.6565511226654053,
-0.1398230791091919,
0.08086121827363968,
-0.16052402555942535,
0.4458238184452057,
0.9689072966575623,
0.10189835727214813,
0.545249342918396,
-0.39078834652900696,
0.6784694790840149,
-0.24079182744026184,
0.548130989074707,
... |
func (s *SSO) GetUser(r *http.Request) (u crowd.User, err error) {
currentCookie, err := r.Cookie(s.CookieConfig.Name)
if err == http.ErrNoCookie {
return u, errors.New("no session cookie")
}
userSession, err := s.CrowdApp.GetSession(currentCookie.Value)
if err != nil {
return u, errors.New("session not valid... | [
-0.25674355030059814,
-0.244673490524292,
0.6193991899490356,
1.5613025426864624,
0.21856850385665894,
-0.562246561050415,
0.7833925485610962,
-0.6298398971557617,
0.8472569584846497,
0.028614619746804237,
0.2694748342037201,
0.4357321262359619,
0.8187018632888794,
0.033390145748853683,
... |
func Include(attributes ...string) Options {
return include{attributes: attributes}
} | [
0.6461998820304871,
0.42494726181030273,
0.2670627534389496,
0.2959352433681488,
-0.8218022584915161,
1.4057066440582275,
-0.43627721071243286,
0.2637404501438141,
0.3917571008205414,
-0.15209971368312836,
0.053417813032865524,
0.1574408859014511,
-0.3076847493648529,
-0.35971030592918396,... |
func Exclude(attributes ...string) Options {
return exclude{attributes: attributes}
} | [
0.2315293550491333,
0.39289188385009766,
0.2108139544725418,
0.017245182767510414,
-0.9204208254814148,
1.1026158332824707,
-0.13036194443702698,
-0.5316402912139893,
0.42334482073783875,
-0.7325357794761658,
-0.09389875084161758,
0.07169579714536667,
-0.3000328540802002,
-0.35327273607254... |
func skipUnlessIntegrationTest(t *testing.T) {
_ = skipUnlessEnvSet(t, rockset.APIKeyEnvironmentVariableName)
} | [
-0.0470576174557209,
0.02887563593685627,
0.10236059129238129,
-1.2843810319900513,
-0.20292018353939056,
0.5884839296340942,
0.8387898206710815,
-0.4852953553199768,
-0.35068634152412415,
0.11631274223327637,
-0.42713916301727295,
-0.222793310880661,
-1.344764232635498,
0.1258137077093124... |
func testCtx() context.Context {
return testCtxWithLevel(zerolog.WarnLevel)
} | [
1.1112382411956787,
-0.4945015013217926,
0.5260710716247559,
-0.12091729789972305,
-0.41089966893196106,
0.40925419330596924,
-0.05457078292965889,
-0.5471758842468262,
0.42015060782432556,
-0.8031706809997559,
0.20372149348258972,
0.5861057639122009,
0.0980069488286972,
-0.408789068460464... |
func stripPatchVersion(v string) string {
fields := strings.Split(v, ".")
if len(fields) != 3 {
panic("malformed version string: " + v)
}
return strings.Join(fields[:2], ".")
} | [
0.4003833830356598,
-1.1080901622772217,
0.49690598249435425,
-0.8145323395729065,
-1.2898567914962769,
1.1474393606185913,
0.5017700791358948,
0.46222010254859924,
0.7975310683250427,
0.7885521650314331,
-0.3699941635131836,
0.5162394642829895,
-0.41387027502059937,
-1.9089468717575073,
... |
func vcrSettings(offline bool) []govcr.Setting {
const authHeader = "Authorization"
settings := []govcr.Setting{
govcr.WithRequestMatchers(
func(httpRequest, trackRequest *track.Request) bool {
httpRequest.Header.Del(authHeader)
trackRequest.Header.Del(authHeader)
v := httpRequest.Header.Get(rockset... | [
-0.7069665193557739,
0.14937183260917664,
0.6187983155250549,
-0.43075016140937805,
-0.23756256699562073,
-0.3049156665802002,
-0.9432563781738281,
-1.0971142053604126,
0.11263615638017654,
1.369227647781372,
-0.40560877323150635,
0.35744091868400574,
-0.7970998287200928,
-0.04092999920248... |
func stringWithCharset(length int, charset string) string {
b := make([]byte, length)
for i := range b {
b[i] = charset[seededRand.Intn(len(charset))]
}
return string(b)
} | [
0.38672563433647156,
-0.5711683034896851,
0.22409601509571075,
-1.578627586364746,
-0.8132367730140686,
-0.05640678107738495,
-0.8001880049705505,
-1.3230639696121216,
0.43280842900276184,
0.45846179127693176,
-0.5849591493606567,
0.39937537908554077,
-0.00461621256545186,
-1.0214853286743... |
func randomString(length int) string {
return stringWithCharset(length, charset)
} | [
0.0462292805314064,
0.1857450008392334,
-0.07233508676290512,
-1.5594877004623413,
-1.282812476158142,
0.6075599193572998,
-0.7388395071029663,
-0.7753525972366333,
0.8830234408378601,
-0.3878710865974426,
-0.3353075683116913,
0.08880402892827988,
-0.12711428105831146,
-0.8446941375732422,... |
func TestTemplate(t *testing.T) {
rc, _ := vcrTestClient(t, t.Name())
ctx := testCtx()
log := zerolog.Ctx(ctx)
org, err := rc.GetOrganization(ctx)
require.NoError(t, err)
log.Debug().Str("org", org.GetDisplayName())
} | [
0.48037606477737427,
0.4607613980770111,
0.539442777633667,
-0.2690182328224182,
0.5068188905715942,
-0.4896993041038513,
0.2843751013278961,
-0.09702146798372269,
0.4457537829875946,
-0.49761325120925903,
-0.414594441652298,
0.25997549295425415,
-0.980510950088501,
-0.22142712771892548,
... |
func (Skill) Fields() []ent.Field {
return []ent.Field{
field.Time("created_at").Default(time.Now).Immutable().Annotations(entproto.Field(2)),
field.Time("updated_at").Default(time.Now).Annotations(entproto.Field(3)),
field.String("name").MaxLen(32).NotEmpty().Annotations(entproto.Field(4)),
field.String("logo... | [
-0.2718096673488617,
-0.0018166633090004325,
0.42520561814308167,
-1.0577735900878906,
0.010985026136040688,
0.8305193185806274,
-0.36477282643318176,
-0.6918901205062866,
0.20704838633537292,
-0.2759067118167877,
-0.934785008430481,
-0.24466164410114288,
0.5521922707557678,
-0.16354075074... |
func (Skill) Edges() []ent.Edge {
return []ent.Edge{
edge.To("experiences", WorkExperience.Type).Annotations(entproto.Field(6)),
edge.To("jobs", Job.Type).Annotations(entproto.Field(7)),
}
} | [
-1.0128557682037354,
-0.22467368841171265,
0.47617849707603455,
-0.4132251739501953,
0.5011203289031982,
0.7244529128074646,
-0.7691083550453186,
0.006499117240309715,
0.48937129974365234,
0.3018944561481476,
-0.1306850016117096,
0.5375089049339294,
0.46696338057518005,
0.10234958678483963... |
func (Skill) Annotations() []schema.Annotation {
return []schema.Annotation{
entproto.Message(),
entproto.Service(),
}
} | [
-0.18204230070114136,
-0.008454171940684319,
0.30312854051589966,
0.6260938048362732,
0.4322773516178131,
0.1124497577548027,
-0.33998310565948486,
-0.22860001027584076,
0.4776826798915863,
-0.4192497730255127,
-1.1443284749984741,
0.47708070278167725,
0.35148558020591736,
0.55266833305358... |
func (s *Server) StartTrace(ctx thrift.Context, request *tracetest.StartTraceRequest) (*tracetest.TraceResponse, error) {
return nil, errCannotStartInTChannel
} | [
0.6635944843292236,
-0.18556629121303558,
0.5346714854240417,
0.4637828767299652,
0.5219953656196594,
0.07087894529104233,
0.5182875394821167,
-0.5988798141479492,
1.4424834251403809,
-0.3234861493110657,
0.257225900888443,
0.658494770526886,
-1.5990722179412842,
0.5700216293334961,
-0.5... |
func (s *Server) JoinTrace(ctx thrift.Context, request *tracetest.JoinTraceRequest) (*tracetest.TraceResponse, error) {
log.Printf("tchannel server handling JoinTrace")
return s.prepareResponse(ctx, request.ServerRole, request.Downstream)
} | [
0.34641799330711365,
0.2662160396575928,
0.33632150292396545,
-0.3492968678474426,
0.5051819682121277,
0.12591710686683655,
1.081622838973999,
0.006418204866349697,
0.6422380208969116,
0.1844569891691208,
0.5265802145004272,
-0.07354702800512314,
-0.8371068835258484,
0.3012755811214447,
... |
func (r *RegistrationRecord) Flatten() RegistrationRecord {
for _, id := range r.OtherIdList.OtherId {
if id.Type == "DiocesanStudentId" {
r.DiocesanId = id.Value
}
if id.Type == "NationalStudentId" {
r.NationalId = id.Value
}
if id.Type == "OtherId" {
r.OtherId = id.Value
}
if id.Type == "NAPPl... | [
-1.0147042274475098,
-0.45787134766578674,
0.4732030928134918,
-0.532147228717804,
-0.13364668190479279,
-0.11157730221748352,
0.7551030516624451,
0.4811268150806427,
0.09619073569774628,
0.5432380437850952,
-0.6945313811302185,
0.5709642767906189,
-0.6184415221214294,
0.6069295406341553,
... |
func (r *RegistrationRecord) Unflatten() RegistrationRecord {
r.OtherIdList.OtherId = make([]XMLAttributeStruct, 0)
if r.DiocesanId != "" {
r.OtherIdList.OtherId = append(r.OtherIdList.OtherId, XMLAttributeStruct{"DiocesanStudentId", r.DiocesanId})
}
if r.NationalId != "" {
r.OtherIdList.OtherId = append(r.Othe... | [
-0.5792325139045715,
-0.5218302607536316,
0.5884718298912048,
-1.3597978353500366,
-0.608992338180542,
0.09393925964832306,
0.6469630599021912,
0.8499144911766052,
-0.1576128900051117,
0.3548605442047119,
-0.3387868106365204,
0.03809475898742676,
-0.6295018196105957,
0.7512542009353638,
... |
func (r RegistrationRecord) FieldsKey(keys []string) string {
ret := ""
for _, k := range keys {
switch k {
case "RefId":
ret += r.RefId
case "LocalId":
ret += r.LocalId
case "StateProvinceId":
ret += r.StateProvinceId
case "FamilyName":
ret += r.FamilyName
case "GivenName":
ret += r.GivenN... | [
-0.79144287109375,
-0.103341244161129,
0.5449240803718567,
-0.6774018406867981,
0.14997798204421997,
-0.03454890474677086,
0.332032710313797,
0.028079094365239143,
-0.3152683973312378,
0.7300233840942383,
-0.2224292904138565,
-0.025523487478494644,
-0.2568541467189789,
0.44243842363357544,... |
func (r RegistrationRecord) GetOtherId(idtype string) string {
for _, id := range r.OtherIdList.OtherId {
if strings.EqualFold(id.Type, idtype) {
return id.Value
}
}
return ""
} | [
0.21898339688777924,
-0.5567728281021118,
0.6219912767410278,
0.23032882809638977,
-0.2614487111568451,
0.25023171305656433,
-0.007186172064393759,
-0.4086599051952362,
0.50042325258255,
0.9203253388404846,
0.009088343940675259,
0.3664933741092682,
-1.379682183265686,
0.9991421103477478,
... |
func (r RegistrationRecord) GetHeaders() []string {
return []string{"ASLSchoolId",
"AddressLine1",
"AddressLine2",
"BirthDate",
"ClassGroup",
"CountryOfBirth",
"DiocesanId",
"EducationSupport",
"FFPOS",
"FTE",
"FamilyName",
"GivenName",
"HomeSchooledStudent",
"Homegroup",
"IndigenousStatus"... | [
-0.11262858659029007,
-0.32732054591178894,
0.7508699893951416,
0.13468743860721588,
0.2387712150812149,
0.23187080025672913,
0.8116185665130615,
-0.3977975845336914,
0.4945046603679657,
0.20333953201770782,
-0.14860022068023682,
0.2626112699508667,
-0.7344199419021606,
0.45709967613220215... |
func (r RegistrationRecord) GetSlice() []string {
return []string{r.ASLSchoolId,
r.AddressLine1,
r.AddressLine2,
r.BirthDate,
r.ClassGroup,
r.CountryOfBirth,
//r.DiocesanId,
r.GetOtherId("DiocesanId"),
r.EducationSupport,
r.FFPOS,
r.FTE,
r.FamilyName,
r.GivenName,
r.HomeSchooledStudent,
r.H... | [
-0.4286285936832428,
-0.5769008994102478,
0.6340826749801636,
0.1513848751783371,
-0.15575486421585083,
-0.4439322054386139,
0.5733163952827454,
-0.18936759233474731,
0.08865606039762497,
0.45523709058761597,
0.01017727516591549,
0.7378173470497131,
-0.6164215207099915,
0.4910820424556732,... |
func generateFile(fileName string, content string) {
if content == "" {
content = "#empty"
}
if _, err := os.Stat(fileName); err == nil {
fmt.Printf("File exists\n")
} else {
d := []byte(content)
check(ioutil.WriteFile(fileName, d, 0644))
}
} | [
0.6293294429779053,
0.3566218614578247,
0.6916980743408203,
0.1038089320063591,
1.2359771728515625,
1.051790714263916,
0.2057580202817917,
1.0932509899139404,
-0.6269016265869141,
-0.3967709243297577,
-0.0760364681482315,
-0.5147895216941833,
-0.19299018383026123,
0.1823251098394394,
-0.... |
func NewDatasetAzureBlob(ctx *pulumi.Context,
name string, args *DatasetAzureBlobArgs, opts ...pulumi.ResourceOption) (*DatasetAzureBlob, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.DataFactoryId == nil {
return nil, errors.New("invalid value for require... | [
-0.16629558801651,
0.8680936098098755,
0.5524531006813049,
0.10172773152589798,
-0.05569234862923622,
0.8378096222877502,
-0.38259389996528625,
0.6591106653213501,
-0.18051615357398987,
-0.2504434585571289,
-0.2654588222503662,
0.42164260149002075,
0.3634739816188812,
-0.4697222411632538,
... |
func GetDatasetAzureBlob(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *DatasetAzureBlobState, opts ...pulumi.ResourceOption) (*DatasetAzureBlob, error) {
var resource DatasetAzureBlob
err := ctx.ReadResource("azure:datafactory/datasetAzureBlob:DatasetAzureBlob", name, id, state, &resource, opts...)
if... | [
0.14126718044281006,
0.46549496054649353,
0.35280248522758484,
0.07848551869392395,
-0.33723077178001404,
0.4171582758426666,
-0.4931778609752655,
0.35845234990119934,
0.678144633769989,
-0.04876909777522087,
0.26275044679641724,
1.2955353260040283,
0.4642409086227417,
-1.3246980905532837,... |
func (o DatasetAzureBlobOutput) AdditionalProperties() pulumi.StringMapOutput {
return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput)
} | [
0.44653692841529846,
-0.8284164667129517,
0.5857025384902954,
-0.40455740690231323,
-0.2355479598045349,
0.9719167351722717,
0.002649290720000863,
0.6908496022224426,
0.8014271855354309,
-0.545307457447052,
-0.4066712558269501,
0.054687488824129105,
-0.15284892916679382,
-0.962185084819793... |
func (o DatasetAzureBlobOutput) Annotations() pulumi.StringArrayOutput {
return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput)
} | [
0.006482601165771484,
-0.0013402994954958558,
0.5693150162696838,
0.5976176857948303,
1.0237926244735718,
0.6286092400550842,
-0.1591312289237976,
0.44453364610671997,
0.42100074887275696,
0.30508050322532654,
-1.1973739862442017,
0.5825803875923157,
0.024979937821626663,
-0.35464227199554... |
func (o DatasetAzureBlobOutput) DataFactoryId() pulumi.StringOutput {
return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput)
} | [
0.12775853276252747,
0.2896403670310974,
0.21521565318107605,
0.1736845076084137,
0.13243995606899261,
0.800957441329956,
0.058413974940776825,
0.7429720759391785,
0.3846568167209625,
-0.45640477538108826,
-0.2930578291416168,
0.8672773241996765,
0.3409726917743683,
-0.873063325881958,
-... |
func (o DatasetAzureBlobOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
} | [
0.6278263926506042,
0.15615443885326385,
0.43382105231285095,
0.11735700815916061,
0.45437371730804443,
1.0150326490402222,
-0.5497490763664246,
0.5757676959037781,
0.2166597992181778,
0.6634804010391235,
0.09585247188806534,
1.126609206199646,
-0.4086448848247528,
-1.1254234313964844,
-... |
func (o DatasetAzureBlobOutput) DynamicFilenameEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *DatasetAzureBlob) pulumi.BoolPtrOutput { return v.DynamicFilenameEnabled }).(pulumi.BoolPtrOutput)
} | [
0.3506949841976166,
0.0156331118196249,
0.7702932357788086,
0.5341977477073669,
0.3182646930217743,
0.6887665390968323,
0.047994375228881836,
0.6407867670059204,
-0.5616150498390198,
0.4029664099216461,
-0.6226614117622375,
0.12358083575963974,
-0.5116515159606934,
-0.31384050846099854,
... |
func (o DatasetAzureBlobOutput) DynamicPathEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *DatasetAzureBlob) pulumi.BoolPtrOutput { return v.DynamicPathEnabled }).(pulumi.BoolPtrOutput)
} | [
0.345807284116745,
0.2150353640317917,
0.6667836308479309,
1.3488099575042725,
0.4184851348400116,
1.202233076095581,
0.7789247035980225,
0.8453264832496643,
-0.0299946628510952,
0.4259974956512451,
-0.5992065072059631,
0.042241863906383514,
-1.0916975736618042,
-0.23507748544216156,
-0.... |
func (o DatasetAzureBlobOutput) Filename() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringPtrOutput { return v.Filename }).(pulumi.StringPtrOutput)
} | [
0.5725463032722473,
-0.43668341636657715,
0.6010614037513733,
0.15509963035583496,
0.3391376733779907,
0.9033211469650269,
0.2693667709827423,
1.2981340885162354,
-0.2696620225906372,
0.24550965428352356,
0.16144390404224396,
0.6560565233230591,
0.43991366028785706,
-0.984574019908905,
0... |
func (o DatasetAzureBlobOutput) Folder() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput)
} | [
-0.28048884868621826,
0.11128322035074234,
0.3124406933784485,
0.1908501386642456,
0.1683475226163864,
1.1055039167404175,
0.5389761924743652,
0.31860020756721497,
0.27857619524002075,
-0.261625736951828,
0.17507155239582062,
0.9651737809181213,
-0.14485129714012146,
-0.5440348386764526,
... |
func (o DatasetAzureBlobOutput) LinkedServiceName() pulumi.StringOutput {
return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringOutput { return v.LinkedServiceName }).(pulumi.StringOutput)
} | [
0.4103791117668152,
-0.4973735213279724,
0.6497992873191833,
-0.5875522494316101,
0.03738222271203995,
1.321799635887146,
-0.11526118218898773,
-0.372727632522583,
0.6553999781608582,
-0.48131421208381653,
0.32154589891433716,
0.7649902701377869,
-0.22147585451602936,
-0.8218883275985718,
... |
func (o DatasetAzureBlobOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
} | [
0.1470261514186859,
-0.23847739398479462,
0.49683207273483276,
0.1550585776567459,
-0.4170605540275574,
1.1052063703536987,
-0.10957327485084534,
0.24368581175804138,
-0.15259456634521484,
0.989303469657898,
-0.4158710837364197,
0.558956503868103,
0.37214624881744385,
-0.7665507793426514,
... |
func (o DatasetAzureBlobOutput) Parameters() pulumi.StringMapOutput {
return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput)
} | [
-0.23471032083034515,
-0.21737949550151825,
0.5495366454124451,
-0.5295774340629578,
0.552169144153595,
0.660323441028595,
-0.3775596022605896,
0.8995232582092285,
0.06459997594356537,
0.8306406140327454,
-0.5393046736717224,
0.5583526492118835,
-0.08766325563192368,
-0.6416677832603455,
... |
func (o DatasetAzureBlobOutput) Path() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetAzureBlob) pulumi.StringPtrOutput { return v.Path }).(pulumi.StringPtrOutput)
} | [
0.5397245287895203,
-0.031468603760004044,
0.25772982835769653,
0.42294585704803467,
0.37177255749702454,
1.5858129262924194,
0.7233656048774719,
0.4545466899871826,
0.28459128737449646,
0.2796301543712616,
0.1806822419166565,
0.2018771767616272,
-0.35184380412101746,
-1.2107182741165161,
... |
func (o DatasetAzureBlobOutput) SchemaColumns() DatasetAzureBlobSchemaColumnArrayOutput {
return o.ApplyT(func(v *DatasetAzureBlob) DatasetAzureBlobSchemaColumnArrayOutput { return v.SchemaColumns }).(DatasetAzureBlobSchemaColumnArrayOutput)
} | [
-0.281835675239563,
-0.5448983311653137,
0.5466932654380798,
0.07961973547935486,
0.6007910370826721,
0.2993156313896179,
-0.06597232818603516,
0.14423933625221252,
0.2222832441329956,
0.08270074427127838,
-0.625111997127533,
0.7221802473068237,
0.24917387962341309,
-1.240915298461914,
0... |
func NewProducer(ctx context.Context, connStr string) stream.Stream {
hub, err := eh.NewHubFromConnectionString(connStr)
if err != nil {
log.Fatal(err.Error())
}
return &eventhubs{
hub: hub,
ctx: ctx,
}
} | [
0.16365046799182892,
0.010632544755935669,
0.15015707910060883,
0.6272430419921875,
-0.6374127268791199,
-0.17598505318164825,
0.29088741540908813,
-0.4188450872898102,
0.7562597990036011,
-0.47420230507850647,
0.5318325161933899,
0.09719967097043991,
-0.9066230654716492,
0.781711757183075... |
func NewConsumer(ctx context.Context, eventHubConnStr string, storageAccountName string, storageAccountKey string, storageContainerName string) stream.Stream {
// Azure Event Hub connection string
parsed, err := conn.ParsedConnectionFromStr(eventHubConnStr)
if err != nil {
log.Fatal(err.Error())
}
// SAS token ... | [
0.9522382616996765,
-0.5109480023384094,
0.6508544683456421,
0.7637186646461487,
0.12696313858032227,
-0.02397053688764572,
0.31949150562286377,
0.578372061252594,
0.49033859372138977,
0.7039762139320374,
0.6702553033828735,
-0.13233783841133118,
-0.3687707781791687,
0.7907208204269409,
... |
func (e *eventhubs) Receive(receiveFunc stream.ReceiveFunc) error {
e.receiveFunc = receiveFunc
_, err := e.eph.RegisterHandler(e.ctx, e.handleEvent)
if err != nil {
return err
}
return e.eph.Start(e.ctx)
} | [
0.11248859018087387,
0.04727917164564133,
0.7137388586997986,
0.498860627412796,
1.3816018104553223,
0.647233784198761,
0.7426700592041016,
0.9172400832176208,
-0.0810956135392189,
-0.6777431964874268,
-0.5258864760398865,
0.048595525324344635,
0.5708662271499634,
0.47666147351264954,
1.... |
func (e *eventhubs) Send(message string) error {
ctx, cancel := context.WithTimeout(e.ctx, 10*time.Second)
defer cancel()
return e.hub.Send(ctx, eh.NewEventFromString(message))
} | [
0.6982184648513794,
0.3181719183921814,
0.5254702568054199,
0.9224504232406616,
0.6775355935096741,
0.5097765922546387,
0.22174441814422607,
0.07019934058189392,
-0.15811719000339508,
0.47604796290397644,
0.27225521206855774,
0.03709040954709053,
-0.7399111390113831,
0.49317002296447754,
... |
func (m *matcher) unique(parent, subname string) string {
name := fmt.Sprintf("%s/%s", parent, subname)
empty := subname == ""
for {
next, exists := m.subNames[name]
if !empty && !exists {
m.subNames[name] = 1 // next count is 1
return name
}
// Name was already used. We increment with the count and ap... | [
-0.06673484295606613,
0.15241096913814545,
0.8823223114013672,
-0.5740242600440979,
-0.22927206754684448,
0.3268364667892456,
0.6259291172027588,
-0.396688312292099,
-0.4763602912425995,
-0.6198604702949524,
-0.5127297639846802,
0.15146075189113617,
-0.010179792530834675,
-0.02996934205293... |
func rewrite(s string) string {
b := []byte{}
for _, r := range s {
switch {
case unicode.IsSpace(r):
b = append(b, '_')
case !strconv.IsPrint(r):
s := strconv.QuoteRune(r)
b = append(b, s[1:len(s)-1]...)
default:
b = append(b, string(r)...)
}
}
return string(b)
} | [
-0.2859128415584564,
-0.2174009531736374,
0.6388916969299316,
-0.12200936675071716,
0.3321654200553894,
-0.372623473405838,
-0.2935209274291992,
0.020373517647385597,
-0.07731050997972488,
0.43881115317344666,
0.6714004874229431,
0.6005354523658752,
-0.10457711666822433,
-0.310686737298965... |
func (RouteTableSelector_Expression_Operator) EnumDescriptor() ([]byte, []int) {
return file_github_com_solo_io_gloo_projects_gateway_api_v1_virtual_service_proto_rawDescGZIP(), []int{5, 1, 0}
} | [
-1.3156992197036743,
-0.0178742203861475,
0.2649918496608734,
0.7375850677490234,
-0.3819865882396698,
-0.749680757522583,
0.44057536125183105,
0.8166912794113159,
-0.34668833017349243,
0.9478733539581299,
0.09990265220403671,
-0.19027197360992432,
-0.4850497543811798,
-0.05772706866264343... |
func (*VirtualService) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_gloo_projects_gateway_api_v1_virtual_service_proto_rawDescGZIP(), []int{0}
} | [
0.05809209123253822,
-0.037366148084402084,
0.016867991536855698,
0.1578129678964615,
-0.09497490525245667,
-0.0052895876578986645,
0.022977570071816444,
0.3253815472126007,
-0.12083571404218674,
0.2831454277038574,
0.18106962740421295,
0.23171955347061157,
-0.8652055859565735,
0.864251911... |
func (*VirtualHost) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_gloo_projects_gateway_api_v1_virtual_service_proto_rawDescGZIP(), []int{1}
} | [
0.880799412727356,
0.29235994815826416,
-0.09611836075782776,
-0.036028895527124405,
-0.42908546328544617,
0.30665674805641174,
-0.09017474949359894,
0.14606459438800812,
-0.3872135877609253,
0.04992983862757683,
-0.14366011321544647,
0.48172640800476074,
-0.5714430212974548,
0.40390732884... |
func (*Route) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_gloo_projects_gateway_api_v1_virtual_service_proto_rawDescGZIP(), []int{2}
} | [
-0.3287379741668701,
0.6695693135261536,
0.3231997489929199,
0.05988367274403572,
0.03071078099310398,
-0.4205275774002075,
-0.1885938048362732,
0.3519100844860077,
-0.4945085644721985,
-0.335628479719162,
0.11716362088918686,
0.2812153995037079,
-0.6766400933265686,
0.9143297076225281,
... |
func (*DelegateOptionsRefs) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_gloo_projects_gateway_api_v1_virtual_service_proto_rawDescGZIP(), []int{3}
} | [
0.39882779121398926,
1.0538097620010376,
0.6967259645462036,
-0.9047037363052368,
0.8115618228912354,
0.3195316195487976,
0.7522769570350647,
0.0011355166789144278,
0.3093568980693817,
-0.1432712972164154,
-0.3409470319747925,
0.6825698614120483,
-0.904186487197876,
0.014823746867477894,
... |
func (*DelegateAction) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_gloo_projects_gateway_api_v1_virtual_service_proto_rawDescGZIP(), []int{4}
} | [
0.7320047616958618,
0.14648115634918213,
0.4817458987236023,
-0.14604505896568298,
0.8621158003807068,
0.16387037932872772,
1.1201720237731934,
0.1665550321340561,
0.4643450379371643,
-0.030237268656492233,
-0.6417968273162842,
0.5934416055679321,
-0.6749332547187805,
0.5139750242233276,
... |
func (x *DelegateAction) GetName() string {
if x != nil {
return x.Name
}
return ""
} | [
0.6802855134010315,
0.18331685662269592,
0.7820496559143066,
0.3314931094646454,
0.4477945864200592,
0.04233481362462044,
-0.031658947467803955,
0.0008173180976882577,
1.1874984502792358,
0.5049429535865784,
-0.22385568916797638,
0.5047568082809448,
0.3115040957927704,
0.6622579097747803,
... |
func (x *DelegateAction) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
} | [
0.9064602255821228,
0.264148086309433,
0.47770726680755615,
0.5419325828552246,
0.636369526386261,
0.15821419656276703,
-0.07956071197986603,
-0.679431140422821,
2.1809141635894775,
-0.8747390508651733,
0.3776096999645233,
0.929000735282898,
0.028431834653019905,
0.8464452624320984,
0.66... |
func (*RouteTableSelector) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_gloo_projects_gateway_api_v1_virtual_service_proto_rawDescGZIP(), []int{5}
} | [
-0.9886846542358398,
0.18526320159435272,
0.19412720203399658,
-0.07357774674892426,
0.15611718595027924,
-0.5483385324478149,
0.6831973791122437,
-0.3460143208503723,
-0.74927818775177,
-0.027601294219493866,
-0.4575363099575043,
0.32301628589630127,
-0.9921998381614685,
0.485894292593002... |
func (*RouteTableSelector_Expression) Descriptor() ([]byte, []int) {
return file_github_com_solo_io_gloo_projects_gateway_api_v1_virtual_service_proto_rawDescGZIP(), []int{5, 1}
} | [
-1.5670561790466309,
0.09139673411846161,
0.2829875946044922,
0.24987468123435974,
0.029767334461212158,
-0.5874744057655334,
-0.2645426094532013,
0.7010419964790344,
-0.7262490391731262,
0.4817914068698883,
-0.007118599954992533,
0.4143783450126648,
-0.6477780342102051,
0.1842778474092483... |
func NewClient(timeout time.Duration, flags int, logger Logger) *ZClient {
if logger == nil {
logger = DefaultLogger
}
jar, _ := cookiejar.New(nil)
return &ZClient{
c: &http.Client{
Timeout: timeout,
Jar: jar,
},
flags: flags,
logger: logger,
}
} | [
0.16629698872566223,
-0.20984086394309998,
0.350475549697876,
0.5970216393470764,
-0.9930381774902344,
-0.3226989805698395,
0.8713513612747192,
-0.27241867780685425,
0.3623634874820709,
0.17699626088142395,
-0.021653030067682266,
0.8039618730545044,
-0.6671820282936096,
-0.2098483294248581... |
func NewClientWithHTTPClient(hc *http.Client, flags int, logger Logger) *ZClient {
if logger == nil {
logger = DefaultLogger
}
return &ZClient{
c: hc,
flags: flags,
logger: logger,
}
} | [
0.3993639349937439,
-0.9040867686271667,
0.43363603949546814,
0.30180826783180237,
-0.3318121135234833,
0.3051978051662445,
0.4712532162666321,
-0.6846694946289062,
0.6033844947814941,
-0.5003793835639954,
-0.39792051911354065,
0.4355144202709198,
-0.45360177755355835,
-0.03838403895497322... |
func NewClientWithTransport(timeout time.Duration, ts *http.Transport, flags int, logger Logger) *ZClient {
if logger == nil {
logger = DefaultLogger
}
jar, _ := cookiejar.New(nil)
return &ZClient{
c: &http.Client{
Timeout: timeout,
Transport: ts,
Jar: jar,
},
flags: flags,
logger: logge... | [
0.35122910141944885,
-0.6327366828918457,
0.37118080258369446,
-0.048609212040901184,
-1.0019981861114502,
-0.11692366003990173,
0.35464948415756226,
-1.0776907205581665,
0.2846873700618744,
-0.10689948499202728,
-0.6608749032020569,
0.18458858132362366,
-0.12077723443508148,
-0.5490369796... |
func NewClientWithSSLSkipVerify(timeout time.Duration, flags int, logger Logger) *ZClient {
if logger == nil {
logger = DefaultLogger
}
jar, _ := cookiejar.New(nil)
return &ZClient{
c: &http.Client{
Timeout: timeout,
Transport: TransportWithSSLSkipVerify,
Jar: jar,
},
flags: flags,
logge... | [
0.12410496175289154,
-0.07189135253429413,
0.36510586738586426,
0.8384032249450684,
-1.027794599533081,
0.6177620887756348,
0.1550830602645874,
-0.47632503509521484,
0.4282979667186737,
-0.13042901456356049,
-0.5013400912284851,
0.4264128804206848,
-0.0031786649487912655,
0.408728003501892... |
func (c *ZClient) Open() *ZRequest {
zr := ZRequest{
query: url.Values{},
headers: http.Header{},
client: c,
}
return zr.SetUserAgent(defaultUserAgent)
} | [
-0.7955213785171509,
-0.10482503473758698,
0.15746723115444183,
-0.07086914777755737,
-1.0283805131912231,
-0.009396462701261044,
0.08344237506389618,
0.355066180229187,
0.4055960476398468,
-0.45149949193000793,
0.2278432548046112,
0.46663573384284973,
-0.5859352350234985,
-0.7726669907569... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.