text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (o *ListNSGroupsParams) WithIncludedFields(includedFields *string) *ListNSGroupsParams {
o.SetIncludedFields(includedFields)
return o
} | [
-0.4359918534755707,
0.698969841003418,
0.2139330357313156,
-0.16464823484420776,
-0.7433337569236755,
-0.0927363857626915,
-0.1533626914024353,
-0.6071180701255798,
0.28637513518333435,
-0.4841034710407257,
-0.3465712070465088,
0.5548455715179443,
-1.6362422704696655,
0.1042947992682457,
... |
func (o *ListNSGroupsParams) SetIncludedFields(includedFields *string) {
o.IncludedFields = includedFields
} | [
-0.13341543078422546,
0.7626754641532898,
0.021219532936811447,
-0.03191176801919937,
-0.519649863243103,
-0.2366124540567398,
0.5201130509376526,
-0.27268093824386597,
0.35770270228385925,
-0.6099599003791809,
-1.1257208585739136,
0.5562294125556946,
-1.6558380126953125,
0.255611032247543... |
func (o *ListNSGroupsParams) WithMemberTypes(memberTypes *string) *ListNSGroupsParams {
o.SetMemberTypes(memberTypes)
return o
} | [
0.35539475083351135,
0.3060777187347412,
-0.0022526681423187256,
0.6816155314445496,
-0.13738179206848145,
-0.7594470977783203,
-0.8897097706794739,
-0.8780583143234253,
0.37687572836875916,
-0.06328082829713821,
-0.4013333022594452,
-0.053925421088933945,
-1.2234219312667847,
1.0505357980... |
func (o *ListNSGroupsParams) SetMemberTypes(memberTypes *string) {
o.MemberTypes = memberTypes
} | [
-0.14908279478549957,
0.39096271991729736,
0.08208546787500381,
0.6276471018791199,
0.07632345706224442,
-0.5634444952011108,
-0.6459460854530334,
-0.7347102165222168,
-0.07899962365627289,
-0.16427522897720337,
-0.9238297939300537,
0.5680966377258301,
-1.790912389755249,
1.044225931167602... |
func (o *ListNSGroupsParams) WithPageSize(pageSize *int64) *ListNSGroupsParams {
o.SetPageSize(pageSize)
return o
} | [
-0.6458602547645569,
0.4929044842720032,
0.18718481063842773,
0.08283265680074692,
-0.14477290213108063,
-0.7555999755859375,
-0.5308445692062378,
-0.8281192183494568,
0.5614165663719177,
-0.22122052311897278,
0.14566290378570557,
-0.40563246607780457,
-0.7919077277183533,
0.92048883438110... |
func (o *ListNSGroupsParams) SetPageSize(pageSize *int64) {
o.PageSize = pageSize
} | [
-0.9519952535629272,
0.5680215954780579,
0.1613086462020874,
0.1850580871105194,
0.07269706577062607,
-0.4518771469593048,
-0.37642431259155273,
-0.5304701328277588,
-0.022450370714068413,
-0.40638861060142517,
0.04203840717673302,
0.08517414331436157,
-1.4293156862258911,
1.28713703155517... |
func (o *ListNSGroupsParams) WithPopulateReferences(populateReferences *bool) *ListNSGroupsParams {
o.SetPopulateReferences(populateReferences)
return o
} | [
-0.5919057130813599,
0.9808773994445801,
0.31091099977493286,
-0.10864318907260895,
0.44782260060310364,
-0.1680063158273697,
-0.38748815655708313,
-1.4429899454116821,
0.22298769652843475,
-0.18445822596549988,
0.14931268990039825,
-0.27700990438461304,
-0.5751570463180542,
0.588391602039... |
func (o *ListNSGroupsParams) SetPopulateReferences(populateReferences *bool) {
o.PopulateReferences = populateReferences
} | [
-1.1719595193862915,
0.9118358492851257,
0.5364702343940735,
-0.4479469656944275,
0.6480970978736877,
0.07108094543218613,
-0.14036744832992554,
-1.25836980342865,
-0.1673097014427185,
-0.09108053147792816,
-0.10061977058649063,
-0.25668156147003174,
-0.9980735778808594,
0.6756761074066162... |
func (o *ListNSGroupsParams) WithSortAscending(sortAscending *bool) *ListNSGroupsParams {
o.SetSortAscending(sortAscending)
return o
} | [
0.2526235580444336,
-0.17175692319869995,
0.05494380742311478,
0.3841778635978699,
-0.722244918346405,
-0.44318342208862305,
-0.6088607311248779,
-1.485457181930542,
-0.5338571667671204,
-0.012061040848493576,
-0.4754751920700073,
-0.484740674495697,
0.5266962051391602,
1.326545000076294,
... |
func (o *ListNSGroupsParams) SetSortAscending(sortAscending *bool) {
o.SortAscending = sortAscending
} | [
-0.18561556935310364,
-0.2683784067630768,
0.09759203344583511,
0.43700218200683594,
-0.5944143533706665,
-0.42519479990005493,
-0.5127638578414917,
-1.5258773565292358,
-0.7828819155693054,
0.17936144769191742,
-0.9229318499565125,
-0.26042723655700684,
0.15178757905960083,
1.543922543525... |
func (o *ListNSGroupsParams) WithSortBy(sortBy *string) *ListNSGroupsParams {
o.SetSortBy(sortBy)
return o
} | [
-0.5269244909286499,
0.382215291261673,
0.00008765608072280884,
0.4346427619457245,
-0.09545574337244034,
-0.7250786423683167,
-0.29429736733436584,
-1.3589849472045898,
-0.26876217126846313,
0.3447558879852295,
-0.33729907870292664,
-0.8251388669013977,
-0.3725167214870453,
0.601768076419... |
func (o *ListNSGroupsParams) SetSortBy(sortBy *string) {
o.SortBy = sortBy
} | [
-0.945242166519165,
0.6364744901657104,
0.05542135611176491,
0.7880151867866516,
-0.13490541279315948,
-0.7670446038246155,
-0.5610599517822266,
-1.2131136655807495,
-0.6939429044723511,
0.04262823984026909,
-0.6721170544624329,
-0.07350745797157288,
-1.3809514045715332,
0.7761650085449219... |
func (o *ListNSGroupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if o.Cursor != nil {
// query param cursor
var qrCursor string
if o.Cursor != nil {
qrCursor = *o.Cursor
}
qCursor := qrCur... | [
-0.7096884846687317,
-0.13758225739002228,
0.8308902382850647,
-1.0370692014694214,
0.4383806586265564,
-0.5688474774360657,
0.22558467090129852,
-0.9129174947738647,
0.22589103877544403,
-0.26001864671707153,
-0.1521393209695816,
0.5461020469665527,
-0.5806524753570557,
0.90606689453125,
... |
func (r *Connection) UnmarshalYAML(unmarshal func(interface{}) error) error {
type tmp Connection
var s struct {
tmp `yaml:",inline"`
}
err := unmarshal(&s)
if err != nil {
return fmt.Errorf("unable to parse YAML: %s", err)
}
*r = Connection(s.tmp)
if err := utils.ValidateTags(r); err != nil {
return e... | [
0.02918073907494545,
0.6439831852912903,
0.6649477481842041,
-0.4022116959095001,
0.30298563838005066,
-1.3511499166488647,
0.6587818264961243,
0.4387778043746948,
-0.17376641929149628,
0.32852229475975037,
0.1469736546278,
-0.2148255556821823,
0.15580211579799652,
-0.3735574185848236,
-... |
func HostSubnet(name string) *HostSubnetApplyConfiguration {
b := &HostSubnetApplyConfiguration{}
b.WithName(name)
b.WithKind("HostSubnet")
b.WithAPIVersion("network.openshift.io/v1")
return b
} | [
0.551906168460846,
0.053164076060056686,
0.5008331537246704,
0.3654538094997406,
-0.8194792866706848,
0.38011878728866577,
-0.6815431714057922,
1.0623582601547241,
-0.5213049650192261,
-0.8308247327804565,
-1.405929684638977,
-0.03581951931118965,
0.3021218180656433,
-0.48779919743537903,
... |
func ExtractHostSubnet(hostSubnet *networkv1.HostSubnet, fieldManager string) (*HostSubnetApplyConfiguration, error) {
return extractHostSubnet(hostSubnet, fieldManager, "")
} | [
0.02063438482582569,
0.5727444887161255,
0.38363951444625854,
0.8447291254997253,
-0.744714617729187,
0.11988138407468796,
-0.028739001601934433,
0.8448934555053711,
-0.5846003293991089,
-0.36935630440711975,
-1.0163284540176392,
-0.1479368358850479,
-0.03325201943516731,
0.663482785224914... |
func ExtractHostSubnetStatus(hostSubnet *networkv1.HostSubnet, fieldManager string) (*HostSubnetApplyConfiguration, error) {
return extractHostSubnet(hostSubnet, fieldManager, "status")
} | [
0.12200063467025757,
0.10720434039831161,
0.16175149381160736,
0.6462310552597046,
-0.4564675986766815,
0.472357839345932,
-0.44500669836997986,
1.397527813911438,
-0.38764458894729614,
-0.2157323807477951,
-1.4415267705917358,
-0.2300127148628235,
0.5282196402549744,
0.8320732116699219,
... |
func (b *HostSubnetApplyConfiguration) WithKind(value string) *HostSubnetApplyConfiguration {
b.Kind = &value
return b
} | [
0.5889320969581604,
0.668705403804779,
0.10264759510755539,
0.5067021250724792,
-0.3734431266784668,
0.638760507106781,
0.3290427625179291,
0.17156186699867249,
-0.3581739664077759,
-0.222864031791687,
-0.2917754352092743,
0.43892723321914673,
0.5979921817779541,
0.9196830987930298,
0.21... |
func (b *HostSubnetApplyConfiguration) WithAPIVersion(value string) *HostSubnetApplyConfiguration {
b.APIVersion = &value
return b
} | [
0.45220255851745605,
-0.33844295144081116,
0.29476556181907654,
-0.06171374022960663,
-0.16473516821861267,
0.22100605070590973,
0.10783850401639938,
1.4873312711715698,
0.10099396109580994,
-0.4901735186576843,
-1.5022119283676147,
-0.5868680477142334,
0.33874058723449707,
0.1196007654070... |
func (b *HostSubnetApplyConfiguration) WithName(value string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
b.Name = &value
return b
} | [
0.1480679214000702,
0.18582677841186523,
0.37181052565574646,
0.4106627106666565,
-0.5198913812637329,
0.38106563687324524,
0.3559453785419464,
0.6470029354095459,
0.09116648137569427,
0.5859661102294922,
-1.0830786228179932,
-0.47229987382888794,
0.9491340517997742,
0.23753879964351654,
... |
func (b *HostSubnetApplyConfiguration) WithGenerateName(value string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
b.GenerateName = &value
return b
} | [
-0.33294400572776794,
0.3157326281070709,
0.5838919878005981,
0.4116707742214203,
-0.3109448552131653,
0.7644354104995728,
0.0033041685819625854,
0.393849641084671,
0.2624013125896454,
-0.3903491795063019,
-0.9694063067436218,
-0.9874008297920227,
1.3713183403015137,
0.5292363166809082,
... |
func (b *HostSubnetApplyConfiguration) WithNamespace(value string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
b.Namespace = &value
return b
} | [
0.20790404081344604,
0.20792065560817719,
0.27740728855133057,
0.30150166153907776,
-0.36686062812805176,
0.2771388590335846,
-0.051629967987537384,
-0.17421099543571472,
1.1235435009002686,
-0.533795952796936,
-0.46228423714637756,
-0.3128592371940613,
0.7747653126716614,
0.63417476415634... |
func (b *HostSubnetApplyConfiguration) WithUID(value types.UID) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
b.UID = &value
return b
} | [
0.1872083842754364,
-0.20225290954113007,
0.4147075414657593,
0.3309650123119354,
-0.3906138837337494,
1.1129214763641357,
0.6133468747138977,
1.044149398803711,
0.8387742638587952,
-0.9140158295631409,
-0.5698263645172119,
0.4669800400733948,
0.9568236470222473,
0.4996364116668701,
-0.3... |
func (b *HostSubnetApplyConfiguration) WithResourceVersion(value string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
b.ResourceVersion = &value
return b
} | [
0.700197696685791,
-0.4612026810646057,
0.22681957483291626,
0.10576927661895752,
-0.18341761827468872,
0.4105643630027771,
0.7156518697738647,
0.5682894587516785,
0.2680073082447052,
-0.5569708943367004,
-0.8344205021858215,
-0.7636364698410034,
1.1732844114303589,
0.5170444846153259,
-... |
func (b *HostSubnetApplyConfiguration) WithGeneration(value int64) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
b.Generation = &value
return b
} | [
-0.32936403155326843,
0.480193167924881,
0.29628458619117737,
0.6752467751502991,
-0.020588137209415436,
0.5522429347038269,
0.7897530794143677,
0.6022043824195862,
-0.38792553544044495,
-0.3945747911930084,
-0.8282384276390076,
-0.6315819025039673,
1.502333164215088,
0.8197799921035767,
... |
func (b *HostSubnetApplyConfiguration) WithCreationTimestamp(value metav1.Time) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
b.CreationTimestamp = &value
return b
} | [
0.7542813420295715,
0.2743796110153198,
0.2109769731760025,
0.7056580781936646,
0.1893470734357834,
0.6469007134437561,
-0.06511789560317993,
0.11469423025846481,
0.071287602186203,
-0.3101423680782318,
-0.7960605621337891,
-0.40538328886032104,
1.2868099212646484,
0.6480134129524231,
-0... |
func (b *HostSubnetApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
b.DeletionTimestamp = &value
return b
} | [
1.070554494857788,
-0.18803885579109192,
0.4636084735393524,
0.6497765779495239,
-0.38065305352211,
0.5064385533332825,
-0.2871275842189789,
0.5946835875511169,
0.9024528861045837,
-0.5360645055770874,
-0.6475222706794739,
-0.39797237515449524,
1.16650390625,
0.49647584557533264,
0.04714... |
func (b *HostSubnetApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
b.DeletionGracePeriodSeconds = &value
return b
} | [
0.7902707457542419,
0.22573067247867584,
0.4842741787433624,
0.35058221220970154,
-0.39760464429855347,
0.7676650285720825,
0.25294455885887146,
0.3550443649291992,
-0.17085987329483032,
0.0794297531247139,
0.247802734375,
0.31851309537887573,
0.5625861883163452,
0.6358336210250854,
-0.1... |
func (b *HostSubnetApplyConfiguration) WithLabels(entries map[string]string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
if b.Labels == nil && len(entries) > 0 {
b.Labels = make(map[string]string, len(entries))
}
for k, v := range entries {
b.Labels[k] = v
}
return b
} | [
0.21436914801597595,
-0.10701721161603928,
0.3809753954410553,
-0.45673951506614685,
-0.4078965485095978,
0.49421441555023193,
-0.8738495707511902,
0.676535427570343,
-0.05048562213778496,
0.04248955473303795,
0.004386717453598976,
-0.46413087844848633,
0.28303292393684387,
0.3911491930484... |
func (b *HostSubnetApplyConfiguration) WithAnnotations(entries map[string]string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
if b.Annotations == nil && len(entries) > 0 {
b.Annotations = make(map[string]string, len(entries))
}
for k, v := range entries {
b.Annotations[k] = v
}... | [
0.5636876225471497,
-0.05150756239891052,
0.3585703372955322,
0.3062119483947754,
-0.3335379958152771,
0.23509176075458527,
-0.42192140221595764,
0.5190919041633606,
0.2727569043636322,
-0.12979069352149963,
-0.7712206840515137,
-0.3205192983150482,
0.5765336155891418,
0.5598296523094177,
... |
func (b *HostSubnetApplyConfiguration) WithOwnerReferences(values ...*v1.OwnerReferenceApplyConfiguration) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
}
b.OwnerReferences = append(b... | [
-0.2813636064529419,
0.10317353159189224,
0.5364437699317932,
0.5594779849052429,
0.6513669490814209,
0.39016014337539673,
0.4210564196109772,
-0.21827679872512817,
-0.13508595526218414,
-0.594713568687439,
0.09282148629426956,
0.2138351947069168,
0.06018872931599617,
-0.06987089663743973,... |
func (b *HostSubnetApplyConfiguration) WithFinalizers(values ...string) *HostSubnetApplyConfiguration {
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
b.Finalizers = append(b.Finalizers, values[i])
}
return b
} | [
0.2624080777168274,
0.26527270674705505,
0.2540721595287323,
0.6849688291549683,
0.02020099014043808,
0.27233949303627014,
-0.126775324344635,
0.5407779216766357,
0.004576279316097498,
-0.5729130506515503,
-0.547044575214386,
-0.8396106362342834,
0.09092848747968674,
0.6529278755187988,
... |
func (b *HostSubnetApplyConfiguration) WithHost(value string) *HostSubnetApplyConfiguration {
b.Host = &value
return b
} | [
1.0634095668792725,
0.33802247047424316,
0.19099430739879608,
0.3656683564186096,
-0.5085352063179016,
0.8229929804801941,
-0.12385731935501099,
1.186051368713379,
-0.25958454608917236,
-0.5707522034645081,
-0.5203685760498047,
-0.31549277901649475,
0.9159039258956909,
-0.04174585267901420... |
func (b *HostSubnetApplyConfiguration) WithHostIP(value string) *HostSubnetApplyConfiguration {
b.HostIP = &value
return b
} | [
0.4327549934387207,
0.230974480509758,
0.428708553314209,
1.033219814300537,
-0.4678591191768646,
0.336152046918869,
0.1453242003917694,
1.1001132726669312,
-0.3687232732772827,
0.4697944223880768,
-0.4583166241645813,
-1.445718765258789,
1.317501187324524,
-0.5431247353553772,
-0.269872... |
func (b *HostSubnetApplyConfiguration) WithSubnet(value string) *HostSubnetApplyConfiguration {
b.Subnet = &value
return b
} | [
0.5905718803405762,
0.10975968837738037,
0.27225083112716675,
0.644811749458313,
-0.11366289854049683,
0.42319339513778687,
-0.1979268342256546,
0.5633201599121094,
-0.31294915080070496,
-0.7571566700935364,
-0.4160841405391693,
0.015603439882397652,
0.9288850426673889,
0.5767150521278381,... |
func (b *HostSubnetApplyConfiguration) WithEgressIPs(values ...networkv1.HostSubnetEgressIP) *HostSubnetApplyConfiguration {
for i := range values {
b.EgressIPs = append(b.EgressIPs, values[i])
}
return b
} | [
-0.24122579395771027,
0.9141107797622681,
0.3598054349422455,
0.5088087320327759,
-0.11268434673547745,
-0.06715240329504013,
-0.6190811991691589,
0.5116222500801086,
-0.2683734595775604,
-0.34864673018455505,
0.0848398208618164,
-1.0050915479660034,
0.22606809437274933,
-0.103226795792579... |
func (b *HostSubnetApplyConfiguration) WithEgressCIDRs(values ...networkv1.HostSubnetEgressCIDR) *HostSubnetApplyConfiguration {
for i := range values {
b.EgressCIDRs = append(b.EgressCIDRs, values[i])
}
return b
} | [
-0.04205803945660591,
0.6747444272041321,
0.4220171272754669,
-0.018842974677681923,
0.08761211484670639,
-0.010850916616618633,
0.15649442374706268,
0.5192716717720032,
-0.7699208855628967,
0.25165268778800964,
-0.3180563747882843,
-0.18041926622390747,
-0.38474974036216736,
0.20711830258... |
func send_mp3_file(song_file string, client int) {
defer syscall.Close(client)
bytes, err := ioutil.ReadFile("songs/" + song_file)
if err != nil {
panic(err)
}
syscall.Write(client, bytes)
} | [
0.5351141691207886,
-0.27410998940467834,
0.5036270022392273,
-0.2605568468570709,
0.09239330887794495,
1.2529635429382324,
0.45562201738357544,
-0.23365631699562073,
-1.5887168645858765,
0.5160280466079712,
-0.3598578870296478,
0.3790106177330017,
-0.8905494213104248,
-0.7998246550559998,... |
func become_discoverable(args []string) {
songs := get_local_song_info(args[2])
msg_content := ""
for _, s := range songs {
msg_content += s
}
msg := prepare_msg(INIT, 0, []byte(msg_content))
tracker := send(*msg, TRACKER_IP+args[1])
defer tracker.Close()
} | [
0.01683703251183033,
0.17077204585075378,
0.6610678434371948,
0.4094240367412567,
1.2444320917129517,
-0.5788360834121704,
0.08191923052072525,
-0.5786521434783936,
-1.496250033378601,
0.390623539686203,
-0.5737588405609131,
0.7252958416938782,
-0.3315396308898926,
0.7398279309272766,
0.... |
func prepare_msg(t byte, id int, content []byte) *TSP_msg {
return &TSP_msg{TSP_header{t, id}, content}
} | [
0.6596724390983582,
0.17620833218097687,
0.2857603132724762,
-0.866889476776123,
-0.5247923135757446,
-0.36985430121421814,
-1.4694797992706299,
0.19085702300071716,
-0.15259727835655212,
0.8381878733634949,
-0.22140751779079437,
-1.0159204006195068,
-0.13262127339839935,
-0.03744397684931... |
func send(msg TSP_msg, dest_ip string) (conn net.Conn) {
conn, err := net.Dial("tcp", dest_ip)
if err != nil {
fmt.Println("error connecting to " + dest_ip)
os.Exit(1)
}
encoder := gob.NewEncoder(conn)
encoder.Encode(msg)
return
} | [
0.1433570235967636,
0.28993216156959534,
0.39683663845062256,
0.537995457649231,
0.25854936242103577,
-0.07134521752595901,
-1.3302626609802246,
0.31962260603904724,
-1.437469482421875,
1.231440782546997,
0.0435180738568306,
-0.41912662982940674,
-0.4795915186405182,
-0.2668854296207428,
... |
func get_local_song_info(dir_name string) []string {
info_files, err := ioutil.ReadDir(dir_name)
if err != nil {
fmt.Println("cant read songs")
os.Exit(1)
}
song_info := make([]string, len(info_files))
for i := 0; i < len(info_files); i++ {
if path.Ext(info_files[i].Name()) != ".info" {
continue
}
co... | [
-0.1846640557050705,
-1.0536552667617798,
0.7386284470558167,
0.05300998315215111,
0.2641068696975708,
0.3964087963104248,
0.16159413754940033,
-0.13567544519901276,
-1.0474425554275513,
0.6749112010002136,
-0.12745536863803864,
0.5232015252113342,
0.1297360062599182,
0.5426625609397888,
... |
func print_master_list(list string) {
rows := strings.Split(list, "\n")
for _, r := range rows {
song_id := strings.Split(r, ":")[0]
song_name := strings.Split(r, ",")[1]
song_artist := strings.Split(r, ",")[2]
end := strings.Index(song_artist, ">")
fmt.Println(song_id + ":" + song_name + "," + song_artist[... | [
-0.33487823605537415,
-0.7916513085365295,
0.8826890587806702,
-0.0036073224619030952,
0.03781791776418686,
0.4145108163356781,
-0.6435779333114624,
1.2218565940856934,
-0.17060723900794983,
0.3704526126384735,
-1.273335576057434,
0.8228709101676941,
-0.29991117119789124,
0.053955204784870... |
func get_cmd() string {
ui := &input.UI{
Writer: os.Stdout,
Reader: os.Stdin,
}
query := "Select option"
cmd, _ := ui.Select(query, []string{"LIST", "INFO", "PLAY", "STOP", "QUIT"}, &input.Options{
Loop: true,
})
return cmd
} | [
-0.38314276933670044,
-0.542218029499054,
0.6426963806152344,
0.3781040906906128,
0.4457938075065613,
0.4361763298511505,
0.4801695644855499,
-1.1702414751052856,
0.1807856410741806,
-0.4296305775642395,
0.7755767107009888,
0.32234475016593933,
0.18228884041309357,
-0.13903872668743134,
... |
func get_song_info(id string) {
songs := strings.Split(master_list, "\n")
for _, s := range songs {
song_id := strings.Split(s, ":")[0]
if song_id == id {
fmt.Println(s + "\n")
return
}
}
fmt.Println("Song not found.")
return
} | [
0.44905754923820496,
-0.4624335765838623,
0.6833233833312988,
0.08411430567502975,
0.48815152049064636,
0.1343807578086853,
-0.33547326922416687,
0.4663965702056885,
-1.063787579536438,
0.48691707849502563,
-0.8104158639907837,
0.7553023099899292,
-0.12498457729816437,
-0.15748600661754608... |
func get_song_selection() (int, string) {
songs := strings.Split(master_list, "\n")
var ip string
ui := &input.UI{
Writer: os.Stdout,
Reader: os.Stdin,
}
query := "Select a song"
id, _ := ui.Ask(query, &input.Options{
ValidateFunc: func(id string) error {
for _, s := range songs {
song_id := strings... | [
-0.44927874207496643,
-0.43137937784194946,
0.8474146723747253,
-0.11624514311552048,
0.13342620432376862,
-0.2205268144607544,
0.14299796521663666,
0.11793520301580429,
-0.3354452848434448,
0.15824095904827118,
-0.9229204654693604,
0.28015395998954773,
-0.6399761438369751,
-0.437930554151... |
func receive_master_list(tracker net.Conn) {
defer tracker.Close()
decoder := gob.NewDecoder(tracker)
in_msg := new(TSP_msg)
decoder.Decode(&in_msg)
master_list = string(in_msg.Msg[:])
print_master_list(master_list)
} | [
0.18731407821178436,
-0.4443390965461731,
0.5539633631706238,
-0.47857946157455444,
0.17265558242797852,
0.18994536995887756,
-0.9566227793693542,
1.3435049057006836,
-0.8746440410614014,
0.9636783599853516,
-1.3846105337142944,
0.28915905952453613,
-0.6108739376068115,
0.09194958955049515... |
func handle_command(args []string, play chan bool, stop chan bool) int {
cmd := get_cmd()
switch cmd {
case "LIST":
msg := prepare_msg(LIST, 0, nil)
tracker := send(*msg, TRACKER_IP+args[1])
receive_master_list(tracker)
case "PLAY":
id, peer_ip := get_song_selection()
msg := prepare_msg(PLAY, id, nil)
... | [
-0.9515506029129028,
0.06729526817798615,
0.9085018634796143,
0.0839187502861023,
0.8860102891921997,
0.15889352560043335,
0.4802688956260681,
-0.3534800410270691,
-0.6710780262947083,
-0.06428027898073196,
-0.024474451318383217,
-0.08865654468536377,
-0.6542902588844299,
-0.01498768478631... |
func receive_mp3(server net.Conn, play chan bool, stop chan bool) {
defer server.Close()
for {
select {
case <-stop:
return
case <-play:
decoder, err := mp3.NewDecoder(server)
if err != nil && err == io.EOF {
return
}
if err != nil && err != io.EOF {
panic(err)
}
defer decoder.Close... | [
-0.2490522265434265,
-0.7728747725486755,
1.026479721069336,
-0.5087517499923706,
-0.1777498424053192,
-0.06211055442690849,
-0.05273646488785744,
-0.7473801374435425,
-0.10843413323163986,
0.34591206908226013,
0.2155982106924057,
0.15070052444934845,
-0.4397520422935486,
-0.60148394107818... |
func (c *Base) Init(ct *context.Context, controllerName, actionName string, app interface{}) {
// this part activates the authentication
c.AuthController.Init(ct, controllerName, actionName, app)
// this is the main html file
c.Layout = "layout.html"
// tabs in your navbar
c.Data["menu"] = map[string]string{
... | [
-0.3303212523460388,
-0.4167672097682953,
0.49219632148742676,
0.7200140357017517,
0.38041168451309204,
0.8142720460891724,
-0.0594160221517086,
1.0497684478759766,
-0.6813275218009949,
0.03957848250865936,
0.20823436975479126,
0.4411909580230713,
0.5928155779838562,
0.2303205281496048,
... |
func (au *AuthHandler) RequestResetPasswordCode(w http.ResponseWriter, r *http.Request){
w.Header().Add("content-type", "application/json")
email := struct {Email string `json:"email" validate:"email,required"`}{}
if err := utils.ParseJsonFromRequest(r, &email); err != nil {
utils.GetError(err, http.StatusUnproce... | [
-1.2349796295166016,
0.05969221517443657,
0.6351845264434814,
-0.41592609882354736,
0.3992375135421753,
-0.3854310214519501,
0.43430837988853455,
-0.6202078461647034,
-0.3971007466316223,
0.7907572984695435,
-0.7511061429977417,
0.9673696160316467,
-0.3392564654350281,
-0.08526694029569626... |
func (h Handler) makeGetOne(v Injection) http.HandlerFunc {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
params := mux.Vars(r)
mtx.Lock()
item, ok := v.Share[params["id"]]
mtx.Unlock()
if ok {
json.NewEncoder(w).Encode(item)
} else {
io.WriteString(w, "null")
}
})
} | [
-0.7809281349182129,
-0.024731824174523354,
0.7952650785446167,
0.29809102416038513,
0.35907453298568726,
-0.39381206035614014,
0.3737417757511139,
-0.07719990611076355,
-0.275258332490921,
0.45741838216781616,
-0.46658894419670105,
-0.5608004331588745,
-0.43104058504104614,
-0.49586075544... |
func (h Handler) makeCreate(v Injection) http.HandlerFunc {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
var n share.Model
json.NewDecoder(r.Body).Decode(&n)
mtx.Lock()
v.Share[strconv.Itoa(n.ID)] = n
mtx.Unlock()
json.NewEncoder(w).Encode(&n)
})
} | [
-0.701562762260437,
-0.072622150182724,
0.5043414831161499,
-0.18862052261829376,
0.015207096934318542,
0.582362174987793,
-0.18516437709331512,
-0.5174697041511536,
-0.8193963766098022,
0.25329339504241943,
-0.18630145490169525,
-0.853411853313446,
-0.2120925486087799,
-0.7171080112457275... |
func (h Handler) makeDelete(v Injection) http.HandlerFunc {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
params := mux.Vars(r)
mtx.Lock()
_, deleted := v.Share[params["id"]]
delete(v.Share, params["id"])
mtx.Unlock()
json.NewEncoder(w).Encode(deleted)
})
} | [
-0.45845746994018555,
-0.41992709040641785,
0.552505612373352,
0.022799374535679817,
-0.04912015423178673,
-0.1822497397661209,
0.3951033353805542,
-0.16027842462062836,
0.07092230767011642,
0.767526388168335,
0.2969639003276825,
-0.19496116042137146,
-0.12047804147005081,
-0.8110969066619... |
func NewRouter() *httprouter.Router {
router := httprouter.New()
notFound := new(NotFound)
router.NotFound = notFound
return router
} | [
-0.7710584402084351,
-1.7420310974121094,
0.13011488318443298,
-0.011800920590758324,
0.06996484845876694,
0.9688018560409546,
-0.047961410135030746,
0.3262254297733307,
0.6393579244613647,
-0.6607491374015808,
-0.245935320854187,
1.2312122583389282,
-0.46320509910583496,
0.953477799892425... |
func (tx *Tx) Get(bucket, key string, out interface{}) error {
return tx.Bucket(bucket).Get(key, out)
} | [
-0.33892014622688293,
0.2563999593257904,
0.21012918651103973,
0.09946779161691666,
-0.8748261332511902,
-1.0937539339065552,
-0.20916420221328735,
-0.3661840260028839,
-1.3351774215698242,
0.31022897362709045,
-0.6036431193351746,
0.5644984245300293,
0.09365836530923843,
-0.76633739471435... |
func (tx *Tx) Set(bucket, key string, v interface{}) error {
return tx.Bucket(bucket).Set(key, v)
} | [
-0.43481484055519104,
0.3649654686450958,
0.07645993679761887,
-0.23739595711231232,
-0.27451154589653015,
-0.5139380693435669,
-0.4978257417678833,
-0.3566639721393585,
-0.7631242275238037,
1.150917649269104,
-1.2047176361083984,
0.29704803228378296,
0.18573978543281555,
-0.50993907451629... |
func (tx *Tx) GetRaw(bucket, key string) []byte {
return tx.Bucket(bucket).GetRaw(key)
} | [
-0.44160693883895874,
1.2427194118499756,
0.8093506693840027,
0.3319495916366577,
-0.9451066255569458,
-0.5103773474693298,
-1.392751932144165,
-1.0786536931991577,
-0.7128428220748901,
-0.19605106115341187,
-0.7115135192871094,
1.1107999086380005,
0.29493463039398193,
-0.6063327789306641,... |
func (tx *Tx) SetRaw(bucket, key string, v []byte) error {
return tx.Bucket(bucket).SetRaw(key, v)
} | [
-0.8467364311218262,
1.3917858600616455,
0.4401215612888336,
0.11125878244638443,
-1.0268007516860962,
-0.1300058662891388,
-0.8579097986221313,
-0.49051031470298767,
-0.3796561658382416,
0.2280399352312088,
-1.052017092704773,
0.38675305247306824,
0.7117502093315125,
-0.5423001646995544,
... |
func (tx *Tx) ForEach(fn func(name string, b *Bucket) error) error {
for n, b := range tx.buckets {
if err := fn(n, b); err != nil {
return err
}
}
return nil
} | [
0.05741863697767258,
0.52049320936203,
0.47996076941490173,
0.3831476867198944,
0.3254808783531189,
-0.5246544480323792,
0.3024210035800934,
-0.9785634279251099,
-1.2869747877120972,
0.6509857773780823,
-0.3981998860836029,
-0.2661064863204956,
0.8151700496673584,
-0.09185872972011566,
-... |
func (tx *Tx) ForEachSorted(fn func(name string, b *Bucket) error, reverse bool) error {
for _, name := range tx.KeysSorted(reverse) {
if err := fn(name, tx.buckets[name]); err != nil {
return err
}
}
return nil
} | [
0.15799035131931305,
-0.1032506600022316,
0.64215487241745,
-0.21207323670387268,
0.240956649184227,
-0.2630544900894165,
0.4975956976413727,
-1.2881050109863281,
-1.4656718969345093,
0.3932598829269409,
-0.5701857209205627,
0.5571010708808899,
0.5041507482528687,
0.3679421544075012,
-1.... |
func (tx *Tx) Keys() []string {
keys := make([]string, 0, len(tx.buckets))
for n := range tx.buckets {
keys = append(keys, n)
}
return keys
} | [
-0.5166590213775635,
0.11019476503133774,
0.1668478101491928,
-0.7346494197845459,
0.3952473998069763,
-0.025680406019091606,
-0.849590539932251,
-0.42023321986198425,
-0.12003760039806366,
1.0015335083007812,
-0.5802157521247864,
-0.0932445079088211,
-0.13022048771381378,
-0.8406752943992... |
func (tx *Tx) KeysSorted(rev bool) []string {
keys := tx.Keys()
if rev {
sort.Sort(sort.Reverse(sort.StringSlice(keys)))
} else {
sort.Sort(sort.StringSlice(keys))
}
return keys
} | [
0.06260042637586594,
0.0952676311135292,
0.5661898255348206,
-1.1431812047958374,
-0.4252628684043884,
-0.42039501667022705,
-0.4628186821937561,
-0.46992138028144836,
-0.1738569140434265,
0.47947266697883606,
0.2015736699104309,
0.6924835443496704,
-0.863792896270752,
-0.7012677788734436,... |
func (tx *Tx) Bucket(name string) *Bucket {
b, ok := tx.buckets[name]
if ok {
return b
}
if tx.ro {
return nil
}
tx.db.m.Lock()
if b = tx.db.buckets[name]; b == nil {
tx.action(backend.ActionCreateBucket, name, "", nil)
b = newBucket(name, tx.db.opts.DefaultMarshalFn, tx.db.opts.DefaultUnmarshalFn)
b... | [
0.2237451821565628,
0.5854349732398987,
0.58880215883255,
0.33103251457214355,
-0.1356397569179535,
-0.6318895816802979,
0.5718003511428833,
-1.1090672016143799,
0.4754997789859772,
-0.4049461781978607,
0.21084141731262207,
-0.008209291845560074,
0.14320649206638336,
-0.7576645016670227,
... |
func (tx *Tx) SetBucket(name string, mFn MarshalFn, uFn UnmarshalFn) *Bucket {
if mFn == nil {
mFn = tx.db.opts.DefaultMarshalFn
}
if uFn == nil {
uFn = tx.db.opts.DefaultUnmarshalFn
}
b, ok := tx.buckets[name]
if ok {
goto RET
}
tx.db.m.Lock()
if b = tx.db.buckets[name]; b == nil {
tx.action(backend... | [
-0.38417866826057434,
0.9894524216651917,
0.7464670538902283,
0.39843618869781494,
-0.08959414064884186,
-1.150267481803894,
0.4100227952003479,
0.27654939889907837,
0.005890646018087864,
-0.7883605360984802,
-0.24896520376205444,
-0.08427764475345612,
0.18086673319339752,
-0.5834721922874... |
func (tx *Tx) DeleteBucket(name string) error {
if tx.ro {
return ErrReadOnly
}
tx.action(backend.ActionDeleteBucket, name, "", nil)
delete(tx.buckets, name)
return nil
} | [
0.38657763600349426,
0.7991102933883667,
0.4589095711708069,
-0.14936380088329315,
0.6730283498764038,
-0.4293100833892822,
0.612302303314209,
-0.7928981184959412,
0.13166697323322296,
-0.05044163763523102,
-0.23417365550994873,
0.24523267149925232,
0.3721711337566376,
-0.05565539747476578... |
func GetClasses(c *gin.Context) {
db := initDb()
defer db.Close()
var classes []m.Class
class := c.Params.ByName("cid")
if m.IsAuthorizedUserType(c, db, 1) {
if class != "" {
db.Table("teach_classes").Select("class_id, location, year").Group("class_id").Where("class_id = ?", class).Order("LENGTH(class_id), c... | [
-1.0205787420272827,
0.36839044094085693,
0.8056580424308777,
0.8734662532806396,
0.5697777271270752,
0.11512133479118347,
0.2268499732017517,
-0.1185549646615982,
0.22859527170658112,
0.1971379518508911,
0.697317361831665,
0.2275112271308899,
-0.029375622048974037,
0.6952433586120605,
-... |
func GetClassStudents(c *gin.Context) {
db := initDb()
defer db.Close()
class := c.Params.ByName("cid")
var students []m.Student
if m.IsAuthorizedUserType(c, db, 1) {
db.Where("class_id = ?", class).Find(&students)
if len(students) > 0 {
var objectsWithLink []m.StudentWithLink
var tempObj m.StudentWithL... | [
-1.7293345928192139,
-0.8097531199455261,
0.8213909268379211,
0.5162904262542725,
0.15865279734134674,
-0.20425133407115936,
0.6243318319320679,
-0.1361694037914276,
-0.46697092056274414,
-0.015627117827534676,
-0.5264943242073059,
0.6104565858840942,
-0.38258829712867737,
0.65792977809906... |
func NewQueryBus() *QueryBus {
cBus := &QueryBus{
handlers: make(map[string]QueryHandler),
}
return cBus
} | [
-0.30119583010673523,
-0.4253857135772705,
-0.06347564607858658,
0.402093768119812,
-0.6420992612838745,
0.53562331199646,
-0.3790976107120514,
-0.3802035450935364,
0.16928578913211823,
-1.2027736902236938,
-1.0297342538833618,
0.29604020714759827,
-0.4907209575176239,
0.3175303041934967,
... |
func (b *QueryBus) Dispatch(query QueryMessage, w *http.ResponseWriter) error {
if handler, ok := b.handlers[query.QueryType()]; ok {
return handler.Handle(query, w)
}
return fmt.Errorf("the query bus does not have a handler for query of type: %s", query)
} | [
0.10399553179740906,
0.00014694461424369365,
0.17460069060325623,
0.5670915246009827,
0.2688491940498352,
0.8785609602928162,
0.262138694524765,
-0.4246879816055298,
0.22718848288059235,
-0.7451723217964172,
0.044191379100084305,
0.18321530520915985,
-1.0439425706863403,
0.6836692690849304... |
func (b *QueryBus) RegisterHandler(handler QueryHandler, query interface{}) error {
typeName := typeOf(query)
if _, ok := b.handlers[typeName]; ok {
return fmt.Errorf("duplicate query handler registration with query bus for query of type: %s", typeName)
}
b.handlers[typeName] = handler
return nil
} | [
-1.1179448366165161,
0.6817471385002136,
0.022995291277766228,
0.9586066007614136,
0.5461068153381348,
1.0056371688842773,
0.028193417936563492,
-0.5447728633880615,
0.07947679609060287,
-0.5168704390525818,
-0.15807069838047028,
0.31039199233055115,
-1.2549669742584229,
0.8383828997612,
... |
func NewQueryMessage(query interface{}) *QueryDescriptor {
return &QueryDescriptor{
query: query,
}
} | [
-0.3312654197216034,
-0.0022935254964977503,
0.04030377417802811,
-0.5302538275718689,
-0.5059108734130859,
-0.568800687789917,
-1.093497395515442,
-1.0543217658996582,
-0.02439202554523945,
-0.10216034948825836,
-0.00365086761303246,
0.6726685762405396,
0.22913844883441925,
0.562493681907... |
func (c *QueryDescriptor) QueryType() string {
return typeOf(c.query)
} | [
0.8395757675170898,
0.8061693906784058,
-0.01833798550069332,
-0.04818328842520714,
0.6147444248199463,
0.053956255316734314,
-0.19353513419628143,
0.10865597426891327,
1.1052323579788208,
-0.21595452725887299,
0.9374797344207764,
0.4803071618080139,
-0.3784334063529968,
0.7585338354110718... |
func (c *QueryDescriptor) Payload() interface{} {
return c.query
} | [
0.24910172820091248,
0.3223262429237366,
0.24258749186992645,
-0.813195526599884,
-0.6959769129753113,
0.731656551361084,
-0.11522462218999863,
-0.8011931777000427,
0.07018282264471054,
-0.22447994351387024,
0.4958327114582062,
-0.35942044854164124,
-0.2861221432685852,
0.3996964991092682,... |
func NewPlanSchemasServiceInstanceCreate() *PlanSchemasServiceInstanceCreate {
this := PlanSchemasServiceInstanceCreate{}
return &this
} | [
0.4847473204135895,
-0.2021045684814453,
0.2501370906829834,
-0.37381622195243835,
-0.058470286428928375,
0.9566669464111328,
0.03134934976696968,
0.6422220468521118,
0.250780314207077,
-1.0696576833724976,
-0.6128922700881958,
-0.9385644197463989,
-1.0322275161743164,
-0.7072128653526306,... |
func NewPlanSchemasServiceInstanceCreateWithDefaults() *PlanSchemasServiceInstanceCreate {
this := PlanSchemasServiceInstanceCreate{}
return &this
} | [
0.42124485969543457,
0.30947041511535645,
0.27540427446365356,
-0.4227711856365204,
1.1312007904052734,
0.9956295490264893,
-0.7651251554489136,
0.28402939438819885,
0.2669264078140259,
-1.0106245279312134,
-1.05673086643219,
-1.7394700050354004,
-1.0037171840667725,
-0.3685609996318817,
... |
func (o *PlanSchemasServiceInstanceCreate) GetProperties() map[string]interface{} {
if o == nil || IsNil(o.Properties) {
var ret map[string]interface{}
return ret
}
return o.Properties
} | [
0.058505307883024216,
-0.1369405835866928,
-0.020435377955436707,
-0.11734974384307861,
0.35239559412002563,
-0.4379115700721741,
0.3167998194694519,
-0.05464843288064003,
0.7950993180274963,
-0.869899570941925,
-0.2342771738767624,
-0.8557155132293701,
-0.5626232028007507,
0.8043385148048... |
func (o *PlanSchemasServiceInstanceCreate) GetPropertiesOk() (map[string]interface{}, bool) {
if o == nil || IsNil(o.Properties) {
return map[string]interface{}{}, false
}
return o.Properties, true
} | [
0.013047069311141968,
-0.4252671003341675,
0.12184757739305496,
-0.3111346364021301,
-0.03249778971076012,
-0.3077852725982666,
0.5040585994720459,
-0.3399713933467865,
-0.12295070290565491,
0.47409024834632874,
-0.666946530342102,
-1.1877180337905884,
0.264325886964798,
0.8111438751220703... |
func (o *PlanSchemasServiceInstanceCreate) HasProperties() bool {
if o != nil && !IsNil(o.Properties) {
return true
}
return false
} | [
0.19853362441062927,
0.2596176266670227,
-0.42631468176841736,
-0.6083661317825317,
0.43076643347740173,
-0.359019011259079,
-0.24514971673488617,
0.4959721267223358,
0.17505142092704773,
-1.011324405670166,
-0.32905054092407227,
-1.4452136754989624,
-0.6590850353240967,
0.357798308134079,... |
func flash_red(){
// Set up options.
options := serial.OpenOptions{
PortName: "/dev/ttyUSB0",
BaudRate: 19200,
DataBits: 8,
StopBits: 1,
MinimumReadSize: 4,
}
// Open the port.
port, err := serial.Open(options)
if err != nil {
log.Fatalf("serial.Open: %v", er... | [
1.2205685377120972,
0.5057277083396912,
0.8110477328300476,
-0.19494707882404327,
0.49749717116355896,
-0.22394374012947083,
0.6364989280700684,
-0.2445925921201706,
0.3317517042160034,
-0.27450472116470337,
-0.909774124622345,
1.0025548934936523,
0.48180410265922546,
0.7958658933639526,
... |
func (p Vector3) DistanceTo(o Vector3) Coord {
dx := p.X - o.X
dy := p.Y - o.Y
dz := p.Z - o.Z
return Coord(math.Sqrt(float64(dx*dx + dy*dy + dz*dz)))
} | [
0.31711408495903015,
-0.1942923367023468,
0.921210765838623,
-1.1146800518035889,
-0.1134808287024498,
1.151028037071228,
0.2841738760471344,
0.03269658982753754,
0.5964974761009216,
0.3264382481575012,
-0.9036254286766052,
-0.2216300666332245,
0.06257463991641998,
-1.1616766452789307,
-... |
func (p Vector3) Sub(o Vector3) Vector3 {
return Vector3{p.X - o.X, p.Y - o.Y, p.Z - o.Z}
} | [
0.6617481112480164,
-0.3500179946422577,
0.6595274209976196,
-0.38827574253082275,
-1.0381629467010498,
1.835249423980713,
0.031080877408385277,
0.00709714787080884,
0.8033608794212341,
-0.3431055247783661,
-1.254321575164795,
0.2557079493999481,
0.033222705125808716,
-1.4605134725570679,
... |
func (p Vector3) Mul(m Coord) Vector3 {
return Vector3{p.X * m, p.Y * m, p.Z * m}
} | [
0.7691521048545837,
0.006062701344490051,
0.3548472225666046,
-0.003052136395126581,
-0.31515905261039734,
1.6733360290527344,
-0.7643146514892578,
0.3543137311935425,
0.9055577516555786,
-0.20696084201335907,
-0.07268158346414566,
-0.08576123416423798,
-0.3514856994152069,
-1.112131118774... |
func (dir Vector3) DirToYaw() Yaw {
dir.Normalize()
yaw := math.Acos(float64(dir.X))
if dir.Z < 0 {
yaw = math.Pi*2 - yaw
}
yaw = yaw / math.Pi * 180 // convert to angle
if yaw <= 90 {
yaw = 90 - yaw
} else {
yaw = 90 + (360 - yaw)
}
return Yaw(yaw)
} | [
-0.7086458802223206,
-0.19494402408599854,
0.8084222674369812,
-0.667817234992981,
-0.6113046407699585,
0.11844820529222488,
0.41219279170036316,
0.049595557153224945,
0.38192129135131836,
-0.6596595048904419,
-0.3012250065803528,
0.4012274742126465,
1.0538811683654785,
0.5770876407623291,... |
func NewEquipmentIoCardBase(classId string, objectType string) *EquipmentIoCardBase {
this := EquipmentIoCardBase{}
this.ClassId = classId
this.ObjectType = objectType
return &this
} | [
-1.0795793533325195,
-1.0861245393753052,
0.3738752007484436,
0.23745481669902802,
0.861453652381897,
-0.44546234607696533,
0.30501997470855713,
-0.9056551456451416,
-0.3296031057834625,
0.5562698841094971,
-0.6759499907493591,
-0.46147987246513367,
-0.02885943464934826,
-0.489633470773696... |
func NewEquipmentIoCardBaseWithDefaults() *EquipmentIoCardBase {
this := EquipmentIoCardBase{}
return &this
} | [
-0.4771239161491394,
0.1485223025083542,
0.09497281163930893,
0.4246833026409149,
1.3811098337173462,
-0.6671983599662781,
0.17448227107524872,
-1.0887552499771118,
-0.5800460577011108,
-0.28680169582366943,
-0.8005539178848267,
-2.3900465965270996,
-0.4571976363658905,
-0.3300220966339111... |
func (o *EquipmentIoCardBase) GetClassId() string {
if o == nil {
var ret string
return ret
}
return o.ClassId
} | [
0.5853073000907898,
-0.3025619089603424,
-0.01286699716001749,
0.8891561627388,
0.5204134583473206,
0.7673234939575195,
0.44088464975357056,
0.014244070276618004,
1.1273142099380493,
-0.7224499583244324,
0.587571918964386,
-0.3092319071292877,
-0.36240270733833313,
0.11644915491342545,
1... |
func (o *EquipmentIoCardBase) GetClassIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ClassId, true
} | [
-0.49281254410743713,
0.34919121861457825,
0.6291459202766418,
1.1898478269577026,
0.5322265028953552,
0.5899748802185059,
0.6755951046943665,
0.7312448024749756,
0.5489996075630188,
-0.1312362402677536,
-0.7956809401512146,
-0.5444244146347046,
0.047204189002513885,
0.549668550491333,
-... |
func (o *EquipmentIoCardBase) SetClassId(v string) {
o.ClassId = v
} | [
0.13785332441329956,
-0.526270866394043,
-0.08211671561002731,
0.21378223598003387,
0.19396740198135376,
0.641122043132782,
-0.00757753336802125,
0.32181328535079956,
0.6027551889419556,
0.4252384901046753,
-0.0878482311964035,
0.2834641635417938,
-0.23521976172924042,
0.14587000012397766,... |
func (o *EquipmentIoCardBase) GetObjectType() string {
if o == nil {
var ret string
return ret
}
return o.ObjectType
} | [
0.4492163062095642,
0.26671019196510315,
-0.05378960445523262,
0.16351467370986938,
0.8191897869110107,
0.43789517879486084,
0.1245802640914917,
-0.3961203098297119,
0.13438574969768524,
-0.11102781444787979,
0.008650467731058598,
-1.1455096006393433,
-0.7364672422409058,
-0.57099580764770... |
func (o *EquipmentIoCardBase) GetObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ObjectType, true
} | [
-0.27647143602371216,
0.12488225102424622,
0.656426727771759,
-0.0450640432536602,
0.247077077627182,
0.4699070453643799,
0.09547583013772964,
0.2419329583644867,
-0.3049291670322418,
1.7839566469192505,
-1.3408414125442505,
-1.673555850982666,
0.3011792004108429,
-0.2551042437553406,
0.... |
func (o *EquipmentIoCardBase) SetObjectType(v string) {
o.ObjectType = v
} | [
0.16526226699352264,
-0.048530176281929016,
0.041315630078315735,
-0.4476892054080963,
0.291288286447525,
0.6655824780464172,
-0.3043243885040283,
-0.6200912594795227,
-0.4427729547023773,
0.776246964931488,
-0.7250514626502991,
-0.6301128268241882,
-0.3299003541469574,
-0.5695680975914001... |
func (o *EquipmentIoCardBase) GetConnectionStatus() string {
if o == nil || o.ConnectionStatus == nil {
var ret string
return ret
}
return *o.ConnectionStatus
} | [
0.3165174722671509,
-0.1864488571882248,
-0.04346159100532532,
0.3915562629699707,
-0.04773478955030441,
-0.2427838295698166,
-0.19013448059558868,
0.0013844878412783146,
0.46375182271003723,
-0.40359973907470703,
0.21757836639881134,
-1.7500779628753662,
-0.3874494433403015,
0.27260312438... |
func (o *EquipmentIoCardBase) GetConnectionStatusOk() (*string, bool) {
if o == nil || o.ConnectionStatus == nil {
return nil, false
}
return o.ConnectionStatus, true
} | [
-0.3426245450973511,
0.4495747983455658,
0.487798810005188,
0.813584566116333,
-0.03499072045087814,
-0.1055552214384079,
0.15904344618320465,
0.5337080359458923,
-0.18003664910793304,
-0.3370451033115387,
-0.6628809571266174,
-1.2727514505386353,
0.7020379900932312,
0.19280506670475006,
... |
func (o *EquipmentIoCardBase) HasConnectionStatus() bool {
if o != nil && o.ConnectionStatus != nil {
return true
}
return false
} | [
0.45275092124938965,
-0.316051185131073,
0.03182821720838547,
-0.27590447664260864,
0.4779174029827118,
-0.4522722661495209,
-0.99188232421875,
0.7094829082489014,
-0.32155802845954895,
-0.7986401319503784,
-0.5238221287727356,
-1.6341667175292969,
0.7153753638267517,
0.6049679517745972,
... |
func (o *EquipmentIoCardBase) SetConnectionStatus(v string) {
o.ConnectionStatus = &v
} | [
0.6086488366127014,
-0.7134736776351929,
-0.3135129511356354,
-0.795021116733551,
-0.7539222836494446,
-0.0041835070587694645,
-1.0049009323120117,
-0.5634822249412537,
-0.610407292842865,
-0.055914171040058136,
-0.11359859257936478,
-0.2983430027961731,
0.007583312690258026,
-0.6268103718... |
func (o *EquipmentIoCardBase) GetDescription() string {
if o == nil || o.Description == nil {
var ret string
return ret
}
return *o.Description
} | [
1.0587034225463867,
0.2979199290275574,
0.1773899793624878,
1.1175569295883179,
0.30510997772216797,
-0.4599494934082031,
0.65697181224823,
-0.559001088142395,
0.9680517911911011,
0.09776046127080917,
0.2945002317428589,
-1.6283237934112549,
-0.5587208271026611,
0.7861994504928589,
1.201... |
func (o *EquipmentIoCardBase) GetDescriptionOk() (*string, bool) {
if o == nil || o.Description == nil {
return nil, false
}
return o.Description, true
} | [
0.42776361107826233,
0.31275036931037903,
0.34961122274398804,
0.7358824610710144,
0.027546193450689316,
0.6781332492828369,
0.5731422305107117,
0.4504224359989166,
-0.07821543514728546,
0.9086989164352417,
-0.13915397226810455,
-0.9948263168334961,
0.4026554524898529,
0.662431538105011,
... |
func (o *EquipmentIoCardBase) HasDescription() bool {
if o != nil && o.Description != nil {
return true
}
return false
} | [
0.7879390716552734,
0.34067779779434204,
0.1209649071097374,
0.5472123622894287,
0.7582744359970093,
-0.42468133568763733,
0.14742901921272278,
0.5531245470046997,
0.49027472734451294,
0.04292934760451317,
-0.2676859200000763,
-0.985050618648529,
0.0851367637515068,
0.6633349061012268,
0... |
func (o *EquipmentIoCardBase) SetDescription(v string) {
o.Description = &v
} | [
0.7447681427001953,
0.05754225328564644,
-0.35664287209510803,
0.3313690721988678,
-0.26311320066452026,
-0.1212562769651413,
-0.3544290065765381,
-0.9326460361480713,
-0.11077112704515457,
0.5679446458816528,
0.221865713596344,
0.7575809955596924,
0.05581581965088844,
-0.534564197063446,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.