text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (i ISODuration) GetWeeks() int {
return i.duration.Weeks
} | [
-0.28100553154945374,
1.4031091928482056,
0.36094197630882263,
-0.12587395310401917,
-0.120064876973629,
-0.10203606635332108,
0.48041579127311707,
-0.505497932434082,
0.6444229483604431,
-0.3909102976322174,
0.22395937144756317,
0.7808706164360046,
-0.06234227865934372,
-0.226836606860160... |
func (i ISODuration) GetDays() int {
return i.duration.Days
} | [
-0.3126251697540283,
1.3946932554244995,
0.2755804657936096,
0.3051722049713135,
0.19520777463912964,
0.12473956495523453,
0.4534100294113159,
-0.7031497955322266,
-0.06122387573122978,
-0.5460643768310547,
0.05082650110125542,
0.4718444347381592,
0.32634806632995605,
-0.29647254943847656,... |
func (i ISODuration) GetHours() int {
return i.duration.Hours
} | [
-0.3623782992362976,
1.2178940773010254,
0.5260012149810791,
0.6388039588928223,
-0.20754000544548035,
0.5760327577590942,
0.650884747505188,
0.05800386145710945,
-0.38132378458976746,
0.5789490938186646,
0.2808658182621002,
-0.532974362373352,
-0.1196783185005188,
-0.7055863738059998,
0... |
func (i ISODuration) GetMinutes() int {
return i.duration.Minutes
} | [
-0.2272651493549347,
0.7425799369812012,
0.2809818685054779,
0.24234308302402496,
0.29523804783821106,
-0.24206778407096863,
0.27942901849746704,
-0.4583054482936859,
0.29708749055862427,
0.07202184945344925,
0.12823209166526794,
-0.09701031446456909,
-0.6643654704093933,
-0.41207894682884... |
func (i ISODuration) GetSeconds() int {
return i.duration.Seconds
} | [
0.14043039083480835,
0.669672966003418,
0.27922871708869934,
1.266487717628479,
-0.35472023487091064,
-0.22616465389728546,
1.1319961547851562,
-0.2634323239326477,
-0.003735399805009365,
-0.4374881386756897,
-0.3012280762195587,
0.2329607605934143,
0.23591971397399902,
-0.1827269643545150... |
func (i ISODuration) GetMilliSeconds() int {
return i.duration.MilliSeconds
} | [
0.4076891243457794,
0.48218655586242676,
0.3266298472881317,
0.7559347152709961,
-0.26422253251075745,
-0.2659760117530823,
0.6062718033790588,
0.32263827323913574,
0.3851773738861084,
-0.025686563923954964,
0.2173169106245041,
0.034758180379867554,
-0.5278736352920532,
0.07981601357460022... |
func (i ISODuration) SetYears(years int) {
i.duration.Years = years
} | [
-0.9730890989303589,
0.7136773467063904,
0.2585201859474182,
0.6050130724906921,
-0.5236285924911499,
0.8930222392082214,
0.048002101480960846,
0.02154526114463806,
0.2872094511985779,
0.7824478149414062,
-1.0981113910675049,
-0.2253081053495407,
0.034658730030059814,
0.12518399953842163,
... |
func (i ISODuration) SetWeeks(weeks int) {
i.duration.Weeks = weeks
} | [
-1.0158107280731201,
1.2237299680709839,
0.22169356048107147,
-0.2501426339149475,
-0.31863468885421753,
0.3168873190879822,
0.25375640392303467,
-0.3101763129234314,
0.7781469821929932,
-0.08386548608541489,
-0.5343730449676514,
-0.049620985984802246,
0.0527866892516613,
0.228637501597404... |
func (i ISODuration) SetDays(days int) {
i.duration.Days = days
} | [
-1.184180498123169,
1.2827612161636353,
0.11970438808202744,
0.19219240546226501,
-0.23781763017177582,
0.5035733580589294,
0.15568062663078308,
-0.4420318603515625,
-0.07131756842136383,
-0.2530248165130615,
-0.7087382078170776,
-0.09277044981718063,
0.6302122473716736,
0.3789994120597839... |
func (i ISODuration) SetHours(hours int) {
i.duration.Hours = hours
} | [
-0.5919962525367737,
1.2788984775543213,
0.3125976026058197,
0.2563117444515228,
-0.37285539507865906,
1.0594913959503174,
0.11307753622531891,
0.3985614776611328,
-0.16458724439144135,
0.6841030120849609,
-0.2631867825984955,
-0.754721999168396,
0.3999164402484894,
-0.18904662132263184,
... |
func (i ISODuration) SetMinutes(minutes int) {
i.duration.Minutes = minutes
} | [
-0.9157254099845886,
0.9296180009841919,
0.053451426327228546,
-0.06245604529976845,
0.13348087668418884,
0.17200851440429688,
-0.19416260719299316,
-0.2681976556777954,
0.3893626034259796,
0.3161042332649231,
-0.551184892654419,
-0.36168453097343445,
-0.38858169317245483,
0.08723802119493... |
func (i ISODuration) SetSeconds(seconds int) {
i.duration.Seconds = seconds
} | [
-0.5053503513336182,
0.4131266176700592,
0.026513056829571724,
1.2220450639724731,
-0.5788000226020813,
0.08066903054714203,
1.0720571279525757,
-0.22368717193603516,
-0.298454225063324,
-0.10995802283287048,
-1.018667459487915,
-0.1604621857404709,
0.5589990019798279,
0.3664521276950836,
... |
func (i ISODuration) SetMilliSeconds(milliSeconds int) {
i.duration.MilliSeconds = milliSeconds
} | [
0.06417877972126007,
0.2992972135543823,
0.38575679063796997,
0.8571341633796692,
-0.7285428643226624,
0.12133364379405975,
0.737650990486145,
0.5342601537704468,
0.5808350443840027,
0.25810274481773376,
-0.3378885090351105,
-0.3516080379486084,
-0.5594168305397034,
0.5884045362472534,
-... |
func ParseISODuration(s string) (*ISODuration, error) {
d, err := cjl.FromString(s)
if err != nil {
return nil, err
}
return &ISODuration{
duration: *d,
}, nil
} | [
-0.18284393846988678,
-0.49427083134651184,
-0.050330158323049545,
0.18311448395252228,
-1.6809134483337402,
-0.5024664998054504,
0.9479249119758606,
0.18860377371311188,
0.8579909801483154,
1.246191382408142,
-0.5503308773040771,
-0.05590241029858589,
0.051000747829675674,
-0.603382706642... |
func NewDuration(years int, weeks int, days int, hours int, minutes int, seconds int, milliSeconds int) *ISODuration {
return &ISODuration{
duration: cjl.Duration{
Years: years,
Weeks: weeks,
Days: days,
Hours: hours,
Minutes: minutes,
Seconds: seconds... | [
0.2019328474998474,
0.011015700176358223,
0.5270788073539734,
0.2992735207080841,
-1.4553911685943604,
0.02079983614385128,
0.6755422949790955,
-0.4592147469520569,
0.7341292500495911,
0.8434190154075623,
0.16175757348537445,
-0.20302250981330872,
0.2156040519475937,
0.058199651539325714,
... |
func (i ISODuration) String() string {
return i.duration.String()
} | [
-0.16000184416770935,
-0.7649138569831848,
0.04130573198199272,
0.6127843856811523,
-0.536339521408081,
1.1030128002166748,
1.0935945510864258,
-1.0878093242645264,
0.17461253702640533,
0.9121276140213013,
0.46766090393066406,
0.11679860204458237,
0.26927679777145386,
-0.6982648968696594,
... |
func FromDuration(d time.Duration) *ISODuration {
return NewDuration(0, 0, 0, 0, 0, 0, int(d.Truncate(time.Millisecond).Milliseconds()))
} | [
0.2968909442424774,
0.10189255326986313,
0.650299608707428,
0.7098917365074158,
-1.2430635690689087,
0.037853874266147614,
0.5762980580329895,
-0.1449117362499237,
1.4479378461837769,
0.45748427510261536,
0.25288575887680054,
-0.1592855602502823,
0.7051627039909363,
-0.3709191679954529,
... |
func (d ISODuration) ToDuration() (time.Duration, error) {
return d.duration.ToDuration()
} | [
-0.17777691781520844,
0.4382595419883728,
0.5053411722183228,
0.3052275478839874,
-0.05851859971880913,
-0.06496595591306686,
0.7475844621658325,
-0.20654211938381195,
1.059705138206482,
0.7425252199172974,
-0.16194231808185577,
0.04012582451105118,
0.9579814076423645,
0.15765145421028137,... |
func (o *AlertDefinitionGetAllEscalationLevelsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewAlertDefinitionGetAllEscalationLevelsOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {... | [
0.453471839427948,
-0.9219667315483093,
0.6817918419837952,
0.9141011834144592,
-0.3078398108482361,
-0.46880561113357544,
-0.31714510917663574,
-0.4250522553920746,
0.4187016487121582,
0.42307302355766296,
0.928757905960083,
-0.1660410463809967,
-0.5261003971099854,
0.07585322856903076,
... |
func NewAlertDefinitionGetAllEscalationLevelsOK() *AlertDefinitionGetAllEscalationLevelsOK {
return &AlertDefinitionGetAllEscalationLevelsOK{}
} | [
1.206450343132019,
-0.16955021023750305,
0.5360020995140076,
0.9701929688453674,
-1.2245690822601318,
-0.06616022437810898,
-0.7882928848266602,
-0.1636551022529602,
-0.03493446856737137,
0.5476125478744507,
0.23149043321609497,
0.20269858837127686,
1.5577064752578735,
0.5881766080856323,
... |
func NewAlertDefinitionGetAllEscalationLevelsBadRequest() *AlertDefinitionGetAllEscalationLevelsBadRequest {
return &AlertDefinitionGetAllEscalationLevelsBadRequest{}
} | [
0.16665144264698029,
0.00833031814545393,
0.8431081175804138,
1.252738118171692,
-0.5201470255851746,
-0.5030339956283569,
-1.6607069969177246,
-0.0415218248963356,
-0.2555733323097229,
-0.09383515268564224,
0.8128251433372498,
0.8466008305549622,
0.9585525393486023,
1.113533854484558,
1... |
func NewAlertDefinitionGetAllEscalationLevelsForbidden() *AlertDefinitionGetAllEscalationLevelsForbidden {
return &AlertDefinitionGetAllEscalationLevelsForbidden{}
} | [
1.005860686302185,
0.22271886467933655,
0.5477922558784485,
1.3941539525985718,
-1.1096643209457397,
0.35209962725639343,
-0.9321521520614624,
-0.7139710783958435,
0.31739941239356995,
-0.1954272985458374,
0.6932737827301025,
0.8450640439987183,
1.0107007026672363,
0.0070444256998598576,
... |
func NewAlertDefinitionGetAllEscalationLevelsNotFound() *AlertDefinitionGetAllEscalationLevelsNotFound {
return &AlertDefinitionGetAllEscalationLevelsNotFound{}
} | [
0.9712764620780945,
-0.45424702763557434,
0.5193365812301636,
0.8951342701911926,
-0.14386337995529175,
0.20862753689289093,
-1.048413872718811,
-0.28430575132369995,
0.36693060398101807,
0.055727019906044006,
0.2906563878059387,
0.9157497882843018,
1.2940353155136108,
0.49389582872390747,... |
func (md CountryModel) NewSet(env models.Environment) m.CountrySet {
return country.CountrySet{
RecordCollection: env.Pool("Country"),
}
} | [
0.4031619131565094,
0.15895302593708038,
0.12213663756847382,
-0.22095707058906555,
0.01528620719909668,
1.1078808307647705,
0.6829608678817749,
-1.027402400970459,
-1.0831691026687622,
0.02759021893143654,
0.4776947498321533,
0.8679320812225342,
0.15616783499717712,
0.169289231300354,
-... |
func (md CountryModel) Create(env models.Environment, data m.CountryData) m.CountrySet {
return country.CountrySet{
RecordCollection: md.Model.Create(env, data),
}
} | [
0.4283929765224457,
0.40599486231803894,
0.27184146642684937,
-0.2021052986383438,
-0.08843594044446945,
1.4294073581695557,
-0.17450439929962158,
-0.9267389178276062,
-1.5614641904830933,
-0.09188144654035568,
0.5969315767288208,
-0.0410284698009491,
-0.4230329096317291,
0.536803185939788... |
func (md CountryModel) Search(env models.Environment, cond q.CountryCondition) m.CountrySet {
return country.CountrySet{
RecordCollection: md.Model.Search(env, cond),
}
} | [
0.4707907736301422,
0.8826049566268921,
0.19618822634220123,
-0.43674758076667786,
-0.5868746042251587,
1.1858309507369995,
0.355059951543808,
-0.7563073039054871,
-1.2741440534591675,
-0.39045098423957825,
0.9063259363174438,
0.30167537927627563,
-0.3534699082374573,
0.5475345253944397,
... |
func (md CountryModel) Browse(env models.Environment, ids []int64) m.CountrySet {
return country.CountrySet{
RecordCollection: md.Model.Browse(env, ids),
}
} | [
0.29789578914642334,
0.5160020589828491,
0.10647545754909515,
0.4804616868495941,
0.07795153558254242,
0.22731007635593414,
0.7616420388221741,
-1.1330350637435913,
-0.8306400179862976,
-0.5773688554763794,
0.5194151997566223,
1.0023194551467896,
-0.0939352959394455,
0.2245766967535019,
... |
func (md CountryModel) BrowseOne(env models.Environment, id int64) m.CountrySet {
return country.CountrySet{
RecordCollection: md.Model.BrowseOne(env, id),
}
} | [
0.2830348014831543,
0.3985660970211029,
0.1592472791671753,
0.29966020584106445,
-0.48246851563453674,
0.15071497857570648,
0.27514562010765076,
-0.7631928324699402,
-0.45704391598701477,
-0.354898065328598,
0.18008361756801605,
0.659347414970398,
-0.4351624846458435,
0.5678907036781311,
... |
func (md CountryModel) NewData(fm ...models.FieldMap) m.CountryData {
return &country.CountryData{
ModelData: models.NewModelData(Country(), fm...),
}
} | [
0.11704852432012558,
-0.2964459955692291,
0.1077016070485115,
0.6979461908340454,
-0.06912852823734283,
1.6068227291107178,
0.3758394420146942,
-0.04638034850358963,
-0.35422247648239136,
-1.1114981174468994,
-0.06537844985723495,
-0.3007219433784485,
0.04885967820882797,
0.264563471078872... |
func (md CountryModel) Fields() country.FieldsCollection {
return country.FieldsCollection{
FieldsCollection: md.Model.Fields(),
}
} | [
-0.031141992658376694,
0.4511711895465851,
0.05541795864701271,
-1.1196578741073608,
-0.27721014618873596,
1.4165074825286865,
-0.011843016371130943,
-0.8200185298919678,
-0.06028226763010025,
-0.9814099669456482,
-0.48277753591537476,
-0.6887767314910889,
0.016675448045134544,
0.215377941... |
func (md CountryModel) Methods() country.MethodsCollection {
return country.MethodsCollection{
MethodsCollection: md.Model.Methods(),
}
} | [
-0.3187919557094574,
0.4080370366573334,
0.1819782555103302,
-0.5164695382118225,
-0.3680758774280548,
0.25283998250961304,
-0.1730683296918869,
-1.2568950653076172,
0.08194846659898758,
-0.808962881565094,
-0.19906795024871826,
-0.8130910992622375,
0.15817995369434357,
0.8866587281227112,... |
func (md CountryModel) Underlying() *models.Model {
return md.Model
} | [
-0.23165307939052582,
0.050752755254507065,
0.21728883683681488,
-0.904941737651825,
-0.6452622413635254,
2.2928318977355957,
0.1323130875825882,
-0.3637724816799164,
0.030612975358963013,
-0.22476685047149658,
0.4470951557159424,
-0.3425709903240204,
0.7689345479011536,
0.2895316183567047... |
func (md CountryModel) Coalesce(lst ...m.CountrySet) m.CountrySet {
var last m.CountrySet
for _, elem := range lst {
if elem.Collection().IsNotEmpty() {
return elem
}
last = elem
}
return last
} | [
0.4002796411514282,
0.4881894290447235,
0.45188355445861816,
0.4474894106388092,
0.6014128923416138,
0.44141414761543274,
-0.5562795400619507,
-0.31894442439079285,
-0.7004153728485107,
-0.4518345892429352,
0.521923303604126,
0.0602443628013134,
-1.1049588918685913,
0.4443263113498688,
-... |
func Country() CountryModel {
return CountryModel{
Model: models.Registry.MustGet("Country"),
}
} | [
1.0432226657867432,
0.1581047922372818,
-0.015292387455701828,
1.1384395360946655,
0.3147934377193451,
1.2579013109207153,
0.8285123109817505,
0.09299302846193314,
0.02439538761973381,
-0.03393565118312836,
-0.2904227077960968,
0.2633166015148163,
0.47691765427589417,
0.08532791584730148,
... |
func (scanInfo *SecTestScanInfo) New(RID, URL, branch, securityTestName string, languageExclusions map[string]bool, dockerHost string) error {
scanInfo.RID = RID
scanInfo.URL = URL
scanInfo.Branch = branch
scanInfo.LanguageExclusions = languageExclusions
scanInfo.SecurityTestName = securityTestName
scanInfo.Docke... | [
0.6941836476325989,
-0.9657749533653259,
0.3095323443412781,
0.06877142935991287,
-0.2678864300251007,
0.4159914255142212,
-0.2741963565349579,
-0.23245301842689514,
-0.30421507358551025,
-0.9269479513168335,
-0.29110777378082275,
-0.3464790880680084,
-0.18298394978046417,
0.05941298231482... |
func (scanInfo *SecTestScanInfo) Start() error {
if os.Getenv("HUSKYCI_INFRASTRUCTURE_USE") == "kubernetes" {
if err := scanInfo.kubeRun(scanInfo.Container.SecurityTest.TimeOutInSeconds); err != nil {
scanInfo.ErrorFound = err
scanInfo.prepareContainerAfterScan()
return scanInfo.ErrorFound
}
}
if os.Get... | [
0.22696752846240997,
-0.3180020749568939,
0.7266248464584351,
0.7758453488349915,
0.21239204704761505,
-0.0063719116151332855,
0.741097092628479,
-0.6141446232795715,
-0.5387477278709412,
-0.25565966963768005,
0.16460324823856354,
0.5265159010887146,
0.12562832236289978,
0.452107697725296,... |
func (b *Buf) Bytes() []byte { return b.b } | [
-0.21677462756633759,
-0.7148392796516418,
0.2337663620710373,
0.48337244987487793,
0.948577344417572,
0.4920620024204254,
-0.44332417845726013,
-0.18813756108283997,
0.23460569977760315,
-1.2983760833740234,
-1.2313811779022217,
1.1184234619140625,
-0.8646383285522461,
-0.1312082111835479... |
func (b *Buf) String() string { return string(b.b) } | [
0.5088096261024475,
-1.2128376960754395,
0.02470408007502556,
0.6897432208061218,
0.05037365108728409,
0.6545777916908264,
0.992388904094696,
-1.0284173488616943,
-0.20826144516468048,
-1.0473614931106567,
-1.0132720470428467,
0.6240483522415161,
-1.0781526565551758,
-0.58113694190979,
0... |
func (b *Buf) Write(bts []byte) {
n := b.grow(len(bts)) // Evaluate, grow slice before copying.
copy(b.b[n:], bts)
} | [
-1.1516557931900024,
0.031707197427749634,
0.3087150454521179,
0.9916447997093201,
0.7338752150535583,
1.212742567062378,
0.2988998591899872,
0.039515890181064606,
0.13436616957187653,
0.02763580158352852,
-1.1417608261108398,
-0.06224697083234787,
-0.7093896269798279,
0.20467866957187653,... |
func (b *Buf) WriteString(str string) {
n := b.grow(len(str))
copy(b.b[n:], str)
} | [
-0.7058957815170288,
0.14762407541275024,
0.35463452339172363,
0.5426740646362305,
0.6062073707580566,
0.5843071937561035,
1.128531575202942,
-0.5873857736587524,
0.19989252090454102,
-0.5779576897621155,
-0.9479261040687561,
0.08974574506282806,
-0.29927054047584534,
-0.22537167370319366,... |
func (b *Buf) WriteByte(bt byte) {
n := b.grow(1)
b.b[n] = bt
} | [
-0.3331907391548157,
0.7759520411491394,
0.457012414932251,
0.8241783380508423,
1.5217621326446533,
0.9199113249778748,
0.6926122903823853,
-0.21500393748283386,
0.15299834311008453,
-0.6796378493309021,
-1.0157989263534546,
0.1349797248840332,
-1.679308295249939,
0.5927138924598694,
0.1... |
func (b *Buf) grow(n int) (indx int) {
indx = len(b.b)
need := indx + n // The minimum total length needed for the write.
if need <= cap(b.b) { // No growing is necessary.
b.b = b.b[:need] // Since we never append to the internal buffer (but only copy), we must re-slice as needed.
return
}
// Allocate a new... | [
-1.159914493560791,
0.6980025768280029,
0.9994572997093201,
0.5667520761489868,
0.24659310281276703,
0.24112464487552643,
0.5258804559707642,
-0.8261870741844177,
0.23635999858379364,
-1.2120603322982788,
-0.43713369965553284,
0.2480224221944809,
-0.4830392897129059,
0.04702804237604141,
... |
func (b *Buf) Len() int { return len(b.b) } | [
0.46780985593795776,
-0.3422408401966095,
0.1268969029188156,
0.2999485731124878,
0.7866311073303223,
-0.3566074073314667,
1.1309123039245605,
0.8283857107162476,
-0.3348892033100128,
-1.1621180772781372,
-1.9986006021499634,
0.3282674252986908,
-0.400673508644104,
-0.34335076808929443,
... |
func (b *Buf) Reset() { b.b = b.b[:0] } | [
-0.026167115196585655,
-0.41282030940055847,
0.181743785738945,
0.7270573377609253,
1.325948715209961,
0.24523791670799255,
0.6840808391571045,
-0.42250919342041016,
-1.0559320449829102,
-0.38250088691711426,
-0.8675121665000916,
0.9879838228225708,
-1.4320638179779053,
-0.7144379615783691... |
func NewAsyncBundleUnacks(r Async) *AsyncBundleUnacks {
return &AsyncBundleUnacks{
r: r,
}
} | [
-0.24838781356811523,
0.22432714700698853,
0.3522680401802063,
-0.17707671225070953,
0.6313979625701904,
-1.1439454555511475,
0.14567047357559204,
-0.3982282280921936,
0.22986799478530884,
0.06752870231866837,
0.06374070793390274,
-0.44383078813552856,
0.06338000297546387,
-0.5003379583358... |
func (p *AsyncBundleUnacks) ConnectWithContext(ctx context.Context) error {
return p.r.ConnectWithContext(ctx)
} | [
-0.4897649884223938,
0.0884198322892189,
0.7200377583503723,
0.29097649455070496,
0.2850229740142822,
-0.6523710489273071,
-0.23665176331996918,
-2.0975959300994873,
0.730307400226593,
0.4693031311035156,
0.15475396811962128,
-0.4733660817146301,
-0.6747437119483948,
-0.3058980405330658,
... |
func (p *AsyncBundleUnacks) ReadWithContext(ctx context.Context) (types.Message, AsyncAckFn, error) {
msg, aFn, err := p.r.ReadWithContext(ctx)
if err != nil {
return nil, nil, err
}
return msg, p.wrapAckFn(aFn), nil
} | [
-0.29687315225601196,
-0.016699498519301414,
0.6669358015060425,
-0.1913852095603943,
-0.05501147732138634,
-0.6026676297187805,
0.13612715899944305,
-1.5534180402755737,
0.38072797656059265,
0.4825340509414673,
1.0317186117172241,
0.27848780155181885,
-0.16441063582897186,
-0.597199559211... |
func (p *AsyncBundleUnacks) CloseAsync() {
p.r.CloseAsync()
} | [
0.32816559076309204,
0.003574763424694538,
0.5470600128173828,
-0.1904289424419403,
0.7007097601890564,
0.09174244850873947,
0.7217835783958435,
-0.8460567593574524,
0.132411926984787,
-0.5570272207260132,
1.1610463857650757,
-0.4062598645687103,
0.15629303455352783,
0.5054097175598145,
... |
func (p *AsyncBundleUnacks) WaitForClose(tout time.Duration) error {
return p.r.WaitForClose(tout)
} | [
0.23986993730068207,
0.8064605593681335,
0.41085609793663025,
-0.2183639109134674,
0.44544467329978943,
-0.5090447664260864,
-0.01158906240016222,
-0.9741403460502625,
-0.8538498282432556,
-0.7234886288642883,
1.3088263273239136,
-0.8772270083427429,
-0.08548100292682648,
0.132011041045188... |
func (c *FakeIamV1) RESTClient() rest.Interface {
var ret *rest.RESTClient
return ret
} | [
0.03366203233599663,
-0.03732699900865555,
0.29022738337516785,
0.7920677661895752,
-0.47610771656036377,
0.20640896260738373,
1.0278191566467285,
-0.5353010296821594,
0.794431209564209,
-0.4960121512413025,
-1.0322189331054688,
1.0957391262054443,
-1.1057024002075195,
-0.9773475527763367,... |
func TestLoopinInUse(t *testing.T) {
var (
peer1 = route.Vertex{1}
chan1 = lnwire.NewShortChanIDFromInt(1)
peer2 = route.Vertex{2}
chan2 = lnwire.NewShortChanIDFromInt(2)
)
tests := []struct {
name string
ongoingLoopOut *lnwire.ShortChannelID
ongoingLoopIn *route.Vertex
failedLoopIn *r... | [
-0.16975830495357513,
-0.31761062145233154,
0.8756893277168274,
-0.09765023738145828,
0.05625825375318527,
0.7570350170135498,
0.3206641376018524,
0.530579149723053,
-0.03829599544405937,
-0.45541560649871826,
-0.3095405399799347,
0.4394833743572235,
-1.1852169036865234,
-0.117137677967548... |
func TestLoopinBuildSwap(t *testing.T) {
var (
peer1 = route.Vertex{1}
chan1 = lnwire.NewShortChanIDFromInt(1)
htlcConfTarget int32 = 6
swapAmt btcutil.Amount = 100000
quote = &loop.LoopInQuote{
SwapFee: 1,
MinerFee: 2,
}
expectedSwap = &loopInSwapSuggestion{
loop.LoopInReque... | [
-0.648612380027771,
-0.29638129472732544,
0.7102652192115784,
-0.16484235227108002,
0.21381962299346924,
0.6391863226890564,
0.17313942313194275,
0.3877784013748169,
-0.0007847707020118833,
-0.3537919819355011,
-0.3334549367427826,
0.39833885431289673,
-0.5522425770759583,
0.27168396115303... |
func NewMockRepository() Repository {
return mockRepository{
User{
Email: "user1@gmail.com",
Name: "User Friendly",
Role: "user",
ID: 42,
Password: "user1",
},
User{
Email: "user2@gmail.com",
Name: "John Walker",
Role: "user",
ID: 45,
Password: "123... | [
-1.0563879013061523,
-0.2556111514568329,
0.16811667382717133,
0.002158453455194831,
-0.42836567759513855,
-0.6351406574249268,
0.31415480375289917,
-0.23284880816936493,
0.4090018570423126,
0.19979393482208252,
-0.6520708799362183,
-0.24779842793941498,
-0.6661368608474731,
0.581723034381... |
func (repo mockRepository) GetByCreds(email, password string) (*User, error) {
for _, u := range repo {
if u.Email == email && u.Password == password {
return &u, nil
}
}
return nil, ErrNoSuchUser
} | [
0.47076115012168884,
0.7100476622581482,
0.2518238127231598,
-0.036150164902210236,
0.21944698691368103,
-0.3173249661922455,
-0.8765227198600769,
-0.008434898220002651,
-0.5837457776069641,
-0.4531562030315399,
0.3910597264766693,
1.285278558731079,
-0.7262932658195496,
-0.669067203998565... |
func (repo mockRepository) GetByID(id int) (*User, error) {
for _, u := range repo {
if u.ID == id {
return &u, nil
}
}
return nil, ErrNoSuchUser
} | [
0.3402756154537201,
0.5688859224319458,
0.3667753040790558,
0.1580817997455597,
0.15023447573184967,
-0.2982059717178345,
0.19284655153751373,
-0.012183481827378273,
0.48105356097221375,
-0.3591516613960266,
-0.8339346051216125,
0.7060656547546387,
-0.4665660262107849,
-0.17975914478302002... |
func demo_stack() {
fmt.Print("\n---STACK Logic---\n\n")
s := stack.Stack{}
for i := 0; i <= 5; i++ {
s.Push(i)
}
fmt.Print("---Stack Before Pop---\n")
s.PrintAll()
popped := s.Pop()
fmt.Printf("\nPopped Value: %v\n", popped)
fmt.Print("---Stack After Pop---\n")
s.Prin... | [
0.5309457182884216,
0.8343611359596252,
0.772848904132843,
0.19626353681087494,
-0.4705163538455963,
-0.2839081585407257,
1.1805479526519775,
-1.0433098077774048,
-0.37343209981918335,
0.3285043239593506,
-0.07411366701126099,
-0.013815061189234257,
0.6242378354072571,
0.6855056285858154,
... |
func demo_queue() {
fmt.Print("\n---QUEUE Logic---\n\n")
q := queue.Queue{}
for i := 0; i <= 5; i++ {
q.Enqueue(i)
}
fmt.Print("---Queue Before Dequeue---\n")
q.PrintAll()
dequeued := q.Dequeue()
fmt.Printf("Dequeued Value: %v\n", dequeued)
fmt.Print("---Queue After Dequeue... | [
0.5577302575111389,
-0.010701810009777546,
0.8795749545097351,
-0.28946226835250854,
0.24634255468845367,
-0.4679470360279083,
0.12641213834285736,
-0.6815154552459717,
-0.17406657338142395,
-0.5881777405738831,
0.06985078752040863,
0.41977566480636597,
0.5921623706817627,
1.56692707538604... |
func demo_bst() {
fmt.Print("\n---Binary Search Tree Demo---\n\n")
bst := binarysearchtree.BST{}
bst.Insert(20, "test")
bst.Insert(15, "other test")
bst.Insert(30, "stuff")
bst.Insert(2, "more stuff")
bst.Insert(16, "stuff")
bst.Insert(7, "not sure")
bst.Insert(8, "value goes here")
... | [
0.5539970993995667,
0.42972323298454285,
0.9072476625442505,
-0.18579749763011932,
-0.16514936089515686,
0.06231662631034851,
0.11655274033546448,
-0.040450673550367355,
-0.03649178519845009,
0.016814926639199257,
-0.3659879267215729,
0.9780773520469666,
-0.01598452962934971,
0.75699591636... |
func RunLengthEncoding(S []rune) (comp []rune, cnts []int) {
comp = []rune{}
cnts = []int{}
l := 0
for i := 0; i < len(S); i++ {
if i == 0 {
l = 1
continue
}
if S[i-1] == S[i] {
l++
} else {
comp = append(comp, S[i-1])
cnts = append(cnts, l)
l = 1
}
}
comp = append(comp, S[len(S)-1])... | [
-0.4350004196166992,
-0.25702786445617676,
0.6584243178367615,
-0.5470440983772278,
-0.25012636184692383,
-0.6488940715789795,
1.4516900777816772,
0.3544541299343109,
0.6485952734947205,
0.49124079942703247,
-0.8909277319908142,
0.6307465434074402,
-0.4707561433315277,
0.6675278544425964,
... |
func RunLengthDecoding(comp []rune, cnts []int) (S []rune) {
if len(comp) != len(cnts) {
panic("S, L are not RunLengthEncoding results")
}
S = []rune{}
for i := 0; i < len(comp); i++ {
for j := 0; j < cnts[i]; j++ {
S = append(S, comp[i])
}
}
return
} | [
-0.3449229300022125,
0.35350358486175537,
0.6312926411628723,
-0.5017362833023071,
-0.09654645621776581,
0.15115025639533997,
-0.045463286340236664,
0.06447596102952957,
-0.02318795956671238,
0.5011769533157349,
-0.2819465100765228,
0.7266035676002502,
-0.518349289894104,
0.448906123638153... |
func (s *Service) GetEmp(id int) ([]byte, error) {
cnt := "json (s *Service) GetEmp" // Имя текущего метода для логирования
//mylog.PrintfDebug("[DEBUG] %v - START, param: '%+v'", cnt, id)
// считаем данные из сервиса
v, err := s.empService.GetEmp(id)
if err != nil {
errM := fmt.Sprintf("[ERROR] %v - ERROR - s... | [
-0.948441743850708,
-0.16316404938697815,
1.13746178150177,
-0.5985221266746521,
-0.21848149597644806,
0.007931682281196117,
0.46731433272361755,
-0.5778452754020691,
0.14619822800159454,
0.34813183546066284,
-0.8792605400085449,
0.4430006742477417,
-0.16358569264411926,
0.8229643702507019... |
func (s *Service) CreateEmp(buf []byte) ([]byte, error) {
cnt := "json (s *Service) CreateEmp" // Имя текущего метода для логирования
//mylog.PrintfDebug("[DEBUG] %v - START", cnt)
// Извлечем из pool новую структуру
v := model.GetEmp()
defer model.PutEmp(v) // возвращаем в pool струкуру
// Парсим JSON в струк... | [
-0.7007848024368286,
-0.5270355939865112,
0.9843791127204895,
-0.5520117878913879,
-0.12092047929763794,
0.40571901202201843,
0.4503300189971924,
-0.8093918561935425,
0.09720143675804138,
0.5400726199150085,
-1.2652943134307861,
0.023216428235173225,
-0.24518892168998718,
0.709907054901123... |
func (extension *ServerFarmExtension) GetExtendedResources() []genruntime.KubernetesResource {
return []genruntime.KubernetesResource{
&v20220301.ServerFarm{},
&v20220301s.ServerFarm{},
&v1beta20220301.ServerFarm{},
&v1beta20220301s.ServerFarm{}}
} | [
0.326326847076416,
-0.04999053105711937,
0.6643481254577637,
0.4909089505672455,
-0.2943975627422333,
-0.35305219888687134,
0.366150826215744,
0.012322725728154182,
1.0976581573486328,
0.16843201220035553,
-0.6986587643623352,
0.9375551342964172,
-0.9382700324058533,
0.7709274888038635,
... |
func newVisibilityManagerFromDataStoreConfig(
dsConfig config.DataStore,
persistenceResolver resolver.ServiceResolver,
esClient esclient.Client,
esProcessorConfig *elasticsearch.ProcessorConfig,
searchAttributesProvider searchattribute.Provider,
searchAttributesMapperProvider searchattribute.MapperProvider,
ma... | [
0.03530680760741234,
-0.08726592361927032,
0.5165320038795471,
-0.3351384997367859,
-1.0361464023590088,
-0.46864402294158936,
0.09092528373003006,
0.1049991175532341,
0.6426022052764893,
0.24724358320236206,
0.04392228275537491,
-0.29675811529159546,
0.5915030241012573,
1.0692205429077148... |
func WriteResponses(w http.ResponseWriter, responses []*http.Response) error {
var buf bytes.Buffer
multipartWriter := multipart.NewWriter(&buf)
mimeHeaders := textproto.MIMEHeader(make(map[string][]string))
mimeHeaders.Set("Content-Type", "application/http")
for _, resp := range responses {
part, err := multi... | [
-0.09168810397386551,
-0.6239404082298279,
0.6041014790534973,
-0.47974693775177,
0.9132083058357239,
0.14738373458385468,
-0.07465266436338425,
-0.4926098883152008,
0.2886480391025543,
-0.24741233885288239,
-0.1826944798231125,
-1.258794903755188,
-0.5714122653007507,
0.21682631969451904,... |
func (c *BookController) Create(w http.ResponseWriter, r *http.Request) {
userId, _ := c.ParseClaims(r)
payload := models.BookModel{}
if err := render.Bind(r, &payload); err != nil {
render.Render(w, r, helper.ResponseError(422, err))
return
}
userIdInt, _ := strconv.Atoi(userId)
user, _, err := services... | [
-0.6245246529579163,
-0.13073286414146423,
0.7455657124519348,
1.0097250938415527,
0.07289697974920273,
1.4959510564804077,
-0.24693652987480164,
-0.47653114795684814,
-1.0292270183563232,
0.1307237595319748,
0.5438527464866638,
-0.2541229724884033,
-0.1768689602613449,
1.1173896789550781,... |
func (c *BookController) UpdateBook(w http.ResponseWriter, r *http.Request) {
payload := models.BookModel{}
if err := render.Bind(r, &payload); err != nil {
render.Render(w, r, helper.ResponseError(422, err))
return
}
id, code, err := c.ValidateId(r)
if err != nil {
render.Render(w, r, helper.ResponseErr... | [
-1.867350697517395,
-0.5795637369155884,
0.7383819222450256,
0.9330682158470154,
-0.4718020558357239,
0.971963107585907,
-0.15875738859176636,
-0.004507263191044331,
-0.5549299716949463,
0.019362173974514008,
0.18192033469676971,
0.12369360774755478,
-0.40967246890068054,
0.890325367450714... |
func (c *BookController) DeleteBook(w http.ResponseWriter, r *http.Request) {
id, code, err := c.ValidateId(r)
if err != nil {
render.Render(w, r, helper.ResponseError(code, err))
return
}
user, err := services.GetBookByID(id)
if err != nil {
render.Render(w, r, helper.ResponseError(http.StatusInternalSer... | [
-0.8448925018310547,
-0.1965819150209427,
0.7077605128288269,
1.2176789045333862,
-0.11241846531629562,
0.9861111044883728,
0.27277663350105286,
0.11268134415149689,
-0.07984054088592529,
-0.43482857942581177,
1.0836395025253296,
0.11280254274606705,
-0.29141998291015625,
1.477540493011474... |
func (c *BookController) All(w http.ResponseWriter, r *http.Request) {
userId, _ := c.ParseClaims(r)
userIdInt, _ := strconv.Atoi(userId)
admin, _, err := services.GetUserByID(r, userIdInt)
if err != nil {
render.Render(w, r, helper.ResponseError(http.StatusInternalServerError, err))
return
}
if !admin["i... | [
0.26837167143821716,
-0.6624462604522705,
0.7606765627861023,
1.1113218069076538,
0.2609424591064453,
1.2731389999389648,
-0.5947059392929077,
0.12685196101665497,
-0.9844366908073425,
0.050335969775915146,
1.027116298675537,
0.8528271317481995,
0.2852930724620819,
1.4656126499176025,
-0... |
func (c *BookController) Find(w http.ResponseWriter, r *http.Request) {
id, code, err := c.ValidateId(r)
if err != nil {
render.Render(w, r, helper.ResponseError(code, err))
return
}
user, err := services.GetBookByID(id)
if err != nil {
render.Render(w, r, helper.ResponseError(http.StatusInternalServerErr... | [
-0.5080912113189697,
-0.3531271815299988,
0.5690869092941284,
0.8518655300140381,
-0.07286005467176437,
0.6788901686668396,
0.1752018928527832,
-0.24217134714126587,
-1.0565917491912842,
-0.03128195181488991,
0.843582808971405,
-0.37425100803375244,
-0.7257457375526428,
1.3336907625198364,... |
func escapeCharacters(line string) string {
return strconv.Quote(line)
} | [
-0.6606495380401611,
-0.4240812361240387,
-0.058522894978523254,
-0.853724479675293,
0.22947096824645996,
-0.06393738090991974,
-1.1417351961135864,
0.1435634344816208,
-0.6336389183998108,
1.0275003910064697,
-1.1797865629196167,
0.5778442025184631,
-0.6610990762710571,
-0.763109445571899... |
func (c *Client) GetFile(ctx context.Context, params *GetFileInput, optFns ...func(*Options)) (*GetFileOutput, error) {
if params == nil {
params = &GetFileInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetFile", params, optFns, addOperationGetFileMiddlewares)
if err != nil {
return nil, err
}
o... | [
-0.21023514866828918,
1.01933753490448,
0.5936297178268433,
0.6607142686843872,
1.179866075515747,
-0.5347955226898193,
0.7553291916847229,
-1.1990998983383179,
0.043500468134880066,
-0.6350569725036621,
0.33645251393318176,
0.9906795620918274,
-0.6614890098571777,
-0.6842288970947266,
-... |
func NewWorkbook()(*Workbook) {
m := &Workbook{
Entity: *NewEntity(),
}
return m
} | [
-0.30587488412857056,
-0.3862130045890808,
0.2666371464729309,
0.9307385087013245,
0.08313541114330292,
0.35723811388015747,
0.174021914601326,
-0.6914464235305786,
-0.17766155302524567,
-0.7292661070823669,
-0.4838879406452179,
0.5695220828056335,
-0.5371360778808594,
0.6843224763870239,
... |
func CreateWorkbookFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewWorkbook(), nil
} | [
0.4199828803539276,
-0.08343741297721863,
0.547249972820282,
0.27021080255508423,
-0.6771405935287476,
0.7629082798957825,
0.4705195426940918,
-0.10378775745630264,
0.1534777134656906,
-0.5485050082206726,
-0.2196003794670105,
0.01673966273665428,
-0.49080824851989746,
0.430308073759079,
... |
func (m *Workbook) GetApplication()(WorkbookApplicationable) {
return m.application
} | [
0.5014148950576782,
-0.5616309642791748,
0.38338062167167664,
1.3482897281646729,
0.010303262621164322,
0.8546483516693115,
0.8226019144058228,
-0.48389843106269836,
0.058003172278404236,
-0.22676365077495575,
0.7535578608512878,
0.019449425861239433,
-0.7438948750495911,
-0.01322284154593... |
func (m *Workbook) GetComments()([]WorkbookCommentable) {
return m.comments
} | [
0.14495018124580383,
-1.1051265001296997,
0.14564280211925507,
1.357103943824768,
1.3116514682769775,
0.9608265161514282,
0.17212849855422974,
-0.7274459600448608,
-0.4739031195640564,
-0.1470964401960373,
-0.1670996993780136,
0.0521111860871315,
-1.434435248374939,
0.09891907125711441,
... |
func (m *Workbook) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := m.Entity.GetFieldDeserializers()
res["application"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetObjectValue(CreateWorkbookApplicatio... | [
0.014156213961541653,
0.15206286311149597,
0.6156322360038757,
-0.4252421259880066,
-0.2640048563480377,
0.20723360776901245,
0.47087475657463074,
0.0749015137553215,
-0.8730093240737915,
-0.7118182182312012,
-0.6787889003753662,
-0.18065093457698822,
-0.8402553796768188,
0.123697817325592... |
func (m *Workbook) GetFunctions()(WorkbookFunctionsable) {
return m.functions
} | [
-0.030590614303946495,
0.1681659072637558,
0.340091347694397,
1.486925482749939,
0.43771353363990784,
0.2158583253622055,
0.005418799351900816,
-0.4075644612312317,
-0.05964942276477814,
-1.3432772159576416,
-0.9881232976913452,
0.34297433495521545,
-1.858968734741211,
-0.5882830619812012,... |
func (m *Workbook) GetNames()([]WorkbookNamedItemable) {
return m.names
} | [
-0.3610450327396393,
0.07281653583049774,
0.2126527577638626,
0.9020621180534363,
0.26699864864349365,
0.8537198901176453,
-0.08619436621665955,
-0.8843149542808533,
-0.36506474018096924,
-0.26823514699935913,
-0.5061562657356262,
0.683448314666748,
-0.9068482518196106,
0.6216323971748352,... |
func (m *Workbook) GetOperations()([]WorkbookOperationable) {
return m.operations
} | [
-0.15006178617477417,
0.8402301669120789,
0.5150919556617737,
1.677251935005188,
1.0108439922332764,
0.5320454835891724,
0.6300553679466248,
-0.560988187789917,
0.15825815498828888,
-0.47947055101394653,
-0.019071053713560104,
-1.1332902908325195,
-1.2005480527877808,
-0.05678682401776314,... |
func (m *Workbook) GetTables()([]WorkbookTableable) {
return m.tables
} | [
0.09957442432641983,
0.30539894104003906,
0.30644160509109497,
1.9232460260391235,
0.3199624717235565,
1.414315938949585,
0.3784584403038025,
-0.898027777671814,
-0.596938967704773,
-1.0514509677886963,
-0.1299285739660263,
0.5264898538589478,
-1.180910348892212,
0.11791480332612991,
-0.... |
func (m *Workbook) GetWorksheets()([]WorkbookWorksheetable) {
return m.worksheets
} | [
-0.03343266248703003,
0.03483262285590172,
0.15952330827713013,
1.2865536212921143,
0.25115489959716797,
0.6607784032821655,
0.3669872283935547,
-1.1573519706726074,
-0.19410181045532227,
-0.9778463244438171,
-0.2284001260995865,
0.05081343278288841,
-1.0822573900222778,
-0.327922254800796... |
func (m *Workbook) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
err := m.Entity.Serialize(writer)
if err != nil {
return err
}
{
err = writer.WriteObjectValue("application", m.GetApplication())
if err != nil {
... | [
-0.25573599338531494,
-0.0019971292931586504,
0.8186192512512207,
0.19892311096191406,
0.5596853494644165,
0.16931986808776855,
1.2460612058639526,
-0.5853581428527832,
-0.7183629870414734,
0.0272700022906065,
-0.48363012075424194,
-0.08105208724737167,
-0.7905336022377014,
0.5555550456047... |
func (m *Workbook) SetApplication(value WorkbookApplicationable)() {
m.application = value
} | [
-0.06321128457784653,
0.044047024101018906,
0.18747764825820923,
1.4645270109176636,
-0.19448179006576538,
1.2642290592193604,
1.0309340953826904,
-0.11972988396883011,
-0.47981974482536316,
0.7115702629089355,
0.3701712489128113,
-0.6947164535522461,
-0.04963603988289833,
0.61407244205474... |
func (m *Workbook) SetComments(value []WorkbookCommentable)() {
m.comments = value
} | [
-0.22144846618175507,
-0.40895938873291016,
0.22334468364715576,
1.294814109802246,
1.1523118019104004,
0.9249900579452515,
0.8174559473991394,
-0.7747881412506104,
-1.0925190448760986,
0.3077985942363739,
-0.12901611626148224,
-0.7183403372764587,
-1.0035336017608643,
0.6581923961639404,
... |
func (m *Workbook) SetFunctions(value WorkbookFunctionsable)() {
m.functions = value
} | [
-0.44299039244651794,
1.0976144075393677,
0.16159631311893463,
1.1166610717773438,
0.3831700384616852,
0.3517104685306549,
0.05632805451750755,
-0.294998437166214,
-0.6398867964744568,
-1.0396333932876587,
-1.1219360828399658,
-0.22831234335899353,
-1.234405755996704,
-0.12348033487796783,... |
func (m *Workbook) SetNames(value []WorkbookNamedItemable)() {
m.names = value
} | [
-1.0222933292388916,
0.6645172238349915,
0.02132730931043625,
0.30999401211738586,
-0.22571344673633575,
0.766289234161377,
0.1581614911556244,
-1.0321376323699951,
-0.8492431640625,
-0.01879139430820942,
-0.9255387783050537,
-0.05852342024445534,
-0.3023456633090973,
1.2694101333618164,
... |
func (m *Workbook) SetOperations(value []WorkbookOperationable)() {
m.operations = value
} | [
-0.4570978581905365,
1.4116888046264648,
0.37791016697883606,
1.3939425945281982,
0.39838966727256775,
0.31978240609169006,
1.252498984336853,
-0.6811234951019287,
-0.2612472474575043,
-0.29496854543685913,
0.07344777137041092,
-2.1312012672424316,
-0.5425091981887817,
0.5461068749427795,
... |
func (m *Workbook) SetTables(value []WorkbookTableable)() {
m.tables = value
} | [
-0.4069194197654724,
0.8907832503318787,
0.2240985631942749,
1.8150746822357178,
-0.2037745863199234,
1.557796597480774,
0.7723774313926697,
-0.8475649952888489,
-0.880163311958313,
-0.5663577914237976,
-0.4217642843723297,
-0.3752842843532562,
-0.3389313220977783,
0.6998313069343567,
-1... |
func (m *Workbook) SetWorksheets(value []WorkbookWorksheetable)() {
m.worksheets = value
} | [
-0.2731836140155792,
0.6173135638237,
0.05665599927306175,
0.9865387678146362,
0.05302443727850914,
0.7353032827377319,
0.7086858153343201,
-1.258164644241333,
-0.6159960031509399,
-0.5104950666427612,
-0.4293334186077118,
-0.7836406826972961,
-0.7097679376602173,
0.08427631855010986,
-1... |
func NewSummaryEventResponse() *SummaryEventResponse {
this := SummaryEventResponse{}
return &this
} | [
0.40396612882614136,
-0.9869686961174011,
0.13498467206954956,
0.5188791155815125,
-0.5440186262130737,
-0.6682518124580383,
1.030516266822815,
0.10243458300828934,
1.4965101480484009,
0.2052030861377716,
-0.7841951847076416,
-0.23035016655921936,
-0.8594956398010254,
-0.20250828564167023,... |
func NewSummaryEventResponseWithDefaults() *SummaryEventResponse {
this := SummaryEventResponse{}
return &this
} | [
0.255836546421051,
-0.5962018370628357,
0.0910974070429802,
0.6176795959472656,
0.24120746552944183,
-0.39195844531059265,
0.5115481615066528,
-0.422467440366745,
1.4368715286254883,
-0.17321686446666718,
-0.906705379486084,
-1.1886450052261353,
-1.0118497610092163,
-0.041190024465322495,
... |
func (o *SummaryEventResponse) GetToday() int32 {
if o == nil || o.Today == nil {
var ret int32
return ret
}
return *o.Today
} | [
0.3540576696395874,
0.24303291738033295,
0.5482226610183716,
0.7821933627128601,
0.44572511315345764,
-0.1553133875131607,
1.1503183841705322,
-0.9544644951820374,
-0.023308629170060158,
-1.0671191215515137,
-0.5689813494682312,
-1.5703505277633667,
-0.5013057589530945,
0.5776594281196594,... |
func (o *SummaryEventResponse) GetTodayOk() (*int32, bool) {
if o == nil || o.Today == nil {
return nil, false
}
return o.Today, true
} | [
-0.5350292325019836,
-0.009046521037817001,
0.4683282971382141,
0.9118325710296631,
0.5809826254844666,
0.19259168207645416,
0.6505510210990906,
0.015434226021170616,
-0.8372663855552673,
0.2636437714099884,
-0.8628905415534973,
-1.4324818849563599,
0.5584732890129089,
0.7112458348274231,
... |
func (o *SummaryEventResponse) HasToday() bool {
if o != nil && o.Today != nil {
return true
}
return false
} | [
0.7006750106811523,
-0.046930741518735886,
0.4199901521205902,
0.1826123595237732,
1.5199930667877197,
-0.06264322251081467,
-0.20629937946796417,
-0.2402927279472351,
-0.8475507497787476,
-0.6582484841346741,
-0.7285333871841431,
-2.032923936843872,
0.08464321494102478,
0.2142460346221923... |
func (o *SummaryEventResponse) SetToday(v int32) {
o.Today = &v
} | [
-0.011657255701720715,
0.1377488225698471,
0.27689480781555176,
-0.28344792127609253,
-0.4669331908226013,
0.42967894673347473,
-0.08996937423944473,
-1.8775426149368286,
-0.2496546059846878,
-0.2938586473464966,
-0.5388011336326599,
-0.08860845118761063,
0.002523064613342285,
-0.448563218... |
func (o *SummaryEventResponse) GetUpcoming() int32 {
if o == nil || o.Upcoming == nil {
var ret int32
return ret
}
return *o.Upcoming
} | [
-0.49424734711647034,
0.44333362579345703,
0.7435961365699768,
0.11017368733882904,
-1.0757631063461304,
0.2923170328140259,
-0.03119926154613495,
-0.3735276162624359,
0.18243637681007385,
-1.0653281211853027,
-0.5487737059593201,
-0.0948069766163826,
0.24602726101875305,
0.423190385103225... |
func (o *SummaryEventResponse) GetUpcomingOk() (*int32, bool) {
if o == nil || o.Upcoming == nil {
return nil, false
}
return o.Upcoming, true
} | [
-0.9173693656921387,
0.36716964840888977,
0.5617097616195679,
0.4814622402191162,
-1.0575422048568726,
0.36853501200675964,
-0.0036191591061651707,
0.6296629905700684,
-0.5996707677841187,
0.15105825662612915,
-0.937881350517273,
0.008172518573701382,
1.3143595457077026,
0.6359963417053223... |
func (o *SummaryEventResponse) HasUpcoming() bool {
if o != nil && o.Upcoming != nil {
return true
}
return false
} | [
-0.24652671813964844,
0.427919864654541,
0.6025885343551636,
-0.39117759466171265,
-0.11324413865804672,
-0.419593870639801,
-0.8832030892372131,
0.7326047420501709,
-0.08355071395635605,
-0.7008348107337952,
-1.2608505487442017,
-0.6916571259498596,
0.9381099343299866,
0.45047473907470703... |
func (o *SummaryEventResponse) SetUpcoming(v int32) {
o.Upcoming = &v
} | [
-0.45687782764434814,
0.24951507151126862,
0.3230866491794586,
-1.0861116647720337,
-1.3954073190689087,
0.20952998101711273,
-0.6525237560272217,
-1.2241460084915161,
0.02634240686893463,
-0.14162284135818481,
-0.15457507967948914,
0.5582114458084106,
0.6138501167297363,
-0.17834599316120... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.