text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func NewDeleteProjectUserBadGateway() *DeleteProjectUserBadGateway {
return &DeleteProjectUserBadGateway{}
} | [
0.3311326205730438,
-0.280792772769928,
-0.04420633986592293,
1.8662359714508057,
-0.4633259177207947,
0.17662377655506134,
0.14240644872188568,
-0.03927544876933098,
-0.3184196650981903,
-0.7692078351974487,
0.0052220141515135765,
0.3019523620605469,
-0.3826267421245575,
0.597722887992858... |
func (o *DeleteProjectUserBadGateway) WithPayload(payload *models.ErrorResponse) *DeleteProjectUserBadGateway {
o.Payload = payload
return o
} | [
0.6835734248161316,
-0.07052884995937347,
0.027934562414884567,
0.6402258276939392,
-0.6759833097457886,
0.34059232473373413,
-0.2749139368534088,
-0.3080907166004181,
0.38963961601257324,
-0.603618860244751,
0.6989134550094604,
0.00927069690078497,
-0.30090370774269104,
0.1879575997591018... |
func (o *DeleteProjectUserBadGateway) SetPayload(payload *models.ErrorResponse) {
o.Payload = payload
} | [
0.39865773916244507,
0.3245317339897156,
-0.029443642124533653,
0.622066080570221,
-0.34862020611763,
0.24726693332195282,
-0.4736541211605072,
-0.1552722454071045,
0.3105394244194031,
-0.3486998677253723,
0.19607596099376678,
0.18901462852954865,
-0.7894067764282227,
0.5147022008895874,
... |
func (o *DeleteProjectUserBadGateway) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(502)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
} | [
-0.06488256901502609,
-0.32247394323349,
0.1459587812423706,
0.5763745307922363,
0.2477365881204605,
-0.4205433428287506,
0.3445722460746765,
-0.14013299345970154,
0.41543394327163696,
0.2793055772781372,
0.2484263777732849,
0.040679141879081726,
-0.9573712944984436,
-0.03580832853913307,
... |
func BytesToFloat(s []byte) (float64, error) {
// Find the decimal point
n := bytes.IndexByte(s, '.')
// ...or just process as an int if there isn't one
if n == -1 {
i, err := BytesToInt(s)
return float64(i), err
}
// ...and count decimal places
dp := (len(s) - n) - 1
//... | [
0.3328574597835541,
-0.1288049817085266,
0.4720700681209564,
-0.6168963313102722,
0.8598687052726746,
-1.0613714456558228,
0.017924664542078972,
0.013057531788945198,
0.1840077042579651,
0.01651126705110073,
-0.4016309082508087,
-0.027460571378469467,
-0.5011980533599854,
0.302534282207489... |
func BytesToInt(s []byte) (int, error) {
var i int
for _, v := range s {
if v < '0' || v > '9' {
return 0, errors.New("NaN")
}
i *= 10
i += int(v - '0')
}
return i, nil
} | [
0.16368398070335388,
-0.49547702074050903,
0.3838007152080536,
-1.037607192993164,
0.09704823046922684,
0.13592083752155304,
-0.05194176733493805,
0.10221146792173386,
-0.24179607629776,
0.29786840081214905,
-1.1373497247695923,
0.3755764663219452,
-0.34841084480285645,
0.04766757786273956... |
func ExtractUnit(t float64, u float64) (uint, float64) {
i := math.Floor(t / u)
return uint(i), t - i * u
} | [
-0.13710424304008484,
-0.14368537068367004,
0.42258405685424805,
-0.5242167115211487,
0.21241679787635803,
0.05559273436665535,
1.099151849746704,
0.09713198989629745,
-0.37548699975013733,
-0.7744886875152588,
-0.5220475792884827,
0.2842293679714203,
-0.33533182740211487,
-0.6274824142456... |
func GetRawUptime() (float64, error) {
s, err := ioutil.ReadFile("/proc/uptime")
if err != nil {
return 0, err
}
f, err := BytesToFloat(s[:bytes.IndexByte(s, ' ')])
return f, err
} | [
-0.2723437547683716,
0.323405385017395,
0.9359237551689148,
-0.5810555815696716,
-0.5570308566093445,
-0.09601392596960068,
-0.24246951937675476,
0.4261908531188965,
-0.686735212802887,
0.3870154023170471,
-0.5545032620429993,
0.11119795590639114,
-0.4941721558570862,
0.5568807125091553,
... |
func NewDuration(f float64) *Duration {
weeks, f := ExtractUnit(f, WEEK)
days, f := ExtractUnit(f, DAY)
hours, f := ExtractUnit(f, HOUR)
minutes, f := ExtractUnit(f, MINUTE)
seconds := math.Round(f * 100) / 100
return &Duration {
uint8(weeks),
uint8(days),
uint8(ho... | [
-0.2773723304271698,
0.2809212803840637,
0.23922018706798553,
0.025367313995957375,
-0.6331685781478882,
-0.6029412746429443,
0.6119715571403503,
-0.7514560222625732,
0.5610352754592896,
-0.05742158368229866,
0.07836809009313583,
-0.6095764636993408,
0.9361816644668579,
0.00383111392147839... |
func TestLocalFSRepoTestSuite(t *testing.T) {
suite.Run(t, new(LocalFSRepoTestSuite))
} | [
0.07401599735021591,
0.18906067311763763,
0.2863130271434784,
-0.42982953786849976,
0.8805177211761475,
-0.5298907160758972,
0.37951093912124634,
0.8587241768836975,
0.6026030778884888,
-0.7101653814315796,
-0.1721338927745819,
0.29318171739578247,
0.17620792984962463,
0.12678535282611847,... |
func (suite *LocalFSRepoTestSuite) TestProcessArtist() {} | [
-0.09239602088928223,
-0.4581746757030487,
0.17606087028980255,
-0.2693712115287781,
-0.13977690041065216,
-0.20658309757709503,
1.1362907886505127,
0.4019976258277893,
0.6224683523178101,
-0.5875651836395264,
-0.2110135406255722,
0.7045424580574036,
-0.7697465419769287,
0.681744396686554,... |
func MustNew(area image.Rectangle) *braille.Canvas {
cvs, err := braille.New(area)
if err != nil {
panic(fmt.Sprintf("braille.New => unexpected error: %v", err))
}
return cvs
} | [
0.10581713169813156,
0.07730118185281754,
0.5304329991340637,
0.4107339084148407,
-0.30783194303512573,
0.49681341648101807,
-0.6631729006767273,
-1.1174540519714355,
0.48632845282554626,
-0.2776496708393097,
0.14271403849124908,
0.4260494112968445,
1.101613998413086,
1.2375307083129883,
... |
func MustApply(bc *braille.Canvas, t *faketerm.Terminal) {
if err := bc.Apply(t); err != nil {
panic(fmt.Sprintf("braille.Apply => unexpected error: %v", err))
}
} | [
0.7633368372917175,
0.33242517709732056,
0.5404161214828491,
0.21914926171302795,
-0.18421690165996552,
0.9019116163253784,
-1.0111039876937866,
0.0745026171207428,
0.056941986083984375,
0.972415566444397,
-0.414806067943573,
0.6198775768280029,
-0.05793309584259987,
1.1008895635604858,
... |
func MustSetPixel(bc *braille.Canvas, p image.Point, opts ...cell.Option) {
if err := bc.SetPixel(p, opts...); err != nil {
panic(fmt.Sprintf("braille.SetPixel => unexpected error: %v", err))
}
} | [
-0.06713595986366272,
0.6414933204650879,
0.3280923366546631,
0.5594043731689453,
0.23441126942634583,
0.9599395990371704,
-0.7097120881080627,
-0.7817603945732117,
0.11793971806764603,
0.5466521382331848,
0.27794963121414185,
0.7032632231712341,
-0.05011064559221268,
0.7592882513999939,
... |
func MustClearPixel(bc *braille.Canvas, p image.Point, opts ...cell.Option) {
if err := bc.ClearPixel(p, opts...); err != nil {
panic(fmt.Sprintf("braille.ClearPixel => unexpected error: %v", err))
}
} | [
0.018169933930039406,
0.7028220295906067,
0.46317410469055176,
0.4884328246116638,
-0.39008060097694397,
1.3198890686035156,
-1.163413405418396,
-1.1338731050491333,
0.4185357391834259,
0.8665915131568909,
0.6847060322761536,
0.9145784378051758,
0.08173398673534393,
0.24211788177490234,
... |
func MustCopyTo(bc *braille.Canvas, dst *canvas.Canvas) {
if err := bc.CopyTo(dst); err != nil {
panic(fmt.Sprintf("bc.CopyTo => unexpected error: %v", err))
}
} | [
-0.15558312833309174,
0.5830140113830566,
0.45019927620887756,
-0.5254915952682495,
0.11201892793178558,
0.8298653364181519,
-0.5865336656570435,
-0.7704045176506042,
-0.32266518473625183,
0.5161547660827637,
-0.20831988751888275,
1.020571231842041,
0.6633967757225037,
0.639650285243988,
... |
func MustSetCellOpts(bc *braille.Canvas, cellPoint image.Point, opts ...cell.Option) {
if err := bc.SetCellOpts(cellPoint, opts...); err != nil {
panic(fmt.Sprintf("bc.SetCellOpts => unexpected error: %v", err))
}
} | [
0.22767826914787292,
0.33286231756210327,
0.37927764654159546,
0.6870279312133789,
0.18394915759563446,
0.28153616189956665,
-0.552634596824646,
-1.1446200609207153,
0.23632831871509552,
0.9873225092887878,
0.01741250604391098,
0.19057053327560425,
0.05301712080836296,
0.4814702570438385,
... |
func MustSetAreaCellOpts(bc *braille.Canvas, cellArea image.Rectangle, opts ...cell.Option) {
if err := bc.SetAreaCellOpts(cellArea, opts...); err != nil {
panic(fmt.Sprintf("bc.SetAreaCellOpts => unexpected error: %v", err))
}
} | [
0.24876107275485992,
0.49558183550834656,
0.559715747833252,
0.4106600880622864,
0.03668459877371788,
0.4472784399986267,
-0.14035771787166595,
-1.0797109603881836,
0.7921221852302551,
0.7467847466468811,
0.8346294164657593,
0.21951258182525635,
0.5392450094223022,
1.077785611152649,
0.2... |
func ProcessPackageFile(file *model.DriverFile, packageFolder, writeFolder string, definitions []model.Definition) model.Output {
output := model.Output{Code: constant.OutputSuccess, Debug: constant.Undefined}
if file == nil {
output.Code = constant.OutputError
output.Debug = "trying to process a nil DriverFile"... | [
-0.23807470500469208,
0.09159013628959656,
0.9082856774330139,
0.288577139377594,
-0.08002688735723495,
-0.3709169328212738,
0.742814302444458,
0.5824204087257385,
-0.23533494770526886,
0.40186578035354614,
0.8272189497947693,
-0.8413445353507996,
-0.011682890355587006,
0.6526796817779541,... |
func GetDefault() *Shortid {
return (*Shortid)(atomic.LoadPointer((*unsafe.Pointer)(unsafe.Pointer(&shortid))))
} | [
1.53077232837677,
-0.016008973121643066,
0.5293408632278442,
0.8251819610595703,
0.27572086453437805,
-0.3082573711872101,
-0.36231836676597595,
-0.6790656447410583,
0.4720269739627838,
-0.20195870101451874,
0.008131660521030426,
0.8329839706420898,
-0.8630691170692444,
-0.0017097105737775... |
func SetDefault(sid *Shortid) {
target := (*unsafe.Pointer)(unsafe.Pointer(&shortid))
source := unsafe.Pointer(sid)
atomic.SwapPointer(target, source)
} | [
0.3749461770057678,
0.1917835772037506,
0.17438896000385284,
-0.16883054375648499,
0.8399941921234131,
-0.2888111472129822,
0.12366253137588501,
0.17309951782226562,
1.0250126123428345,
-0.23982369899749756,
-0.5703766942024231,
1.4148463010787964,
-0.10409668833017349,
0.41294044256210327... |
func Generate() (string, error) {
return shortid.Generate()
} | [
0.5145627856254578,
-0.5005038380622864,
0.3475349247455597,
0.9348979592323303,
-0.8725469708442688,
0.4604482650756836,
-0.27220970392227173,
-0.09195993095636368,
-0.3609446883201599,
-0.2635003626346588,
-0.5901934504508972,
-0.06602979451417923,
0.1430264711380005,
0.549689531326294,
... |
func MustGenerate() string {
id, err := Generate()
if err == nil {
return id
}
panic(err)
} | [
-0.31552937626838684,
0.07352618873119354,
0.5175343751907349,
0.5872766971588135,
-0.271650493144989,
0.9106858372688293,
-0.9370691776275635,
0.03007630631327629,
-0.6371867656707764,
0.3905155658721924,
-0.08221505582332611,
-0.7850091457366943,
-0.46028998494148254,
0.34353530406951904... |
func New(worker uint8, alphabet string, seed uint64) (*Shortid, error) {
if worker > 31 {
return nil, errors.New("expected worker in the range [0,31]")
}
abc, err := NewAbc(alphabet, seed)
if err == nil {
sid := &Shortid{
abc: abc,
worker: uint(worker),
epoch: time.Date(2016, time.January, 1, 0, 0,... | [
0.47931891679763794,
-0.5520356297492981,
0.6558234691619873,
-0.08802865445613861,
-0.5755206346511841,
0.6312159895896912,
0.15889322757720947,
-0.988249659538269,
0.05046398192644119,
0.0028251055628061295,
-0.2289435714483261,
0.8620145320892334,
0.19473282992839813,
0.3526759147644043... |
func MustNew(worker uint8, alphabet string, seed uint64) *Shortid {
sid, err := New(worker, alphabet, seed)
if err == nil {
return sid
}
panic(err)
} | [
0.21624420583248138,
0.19259916245937347,
0.4824102520942688,
0.7138525247573853,
-0.7210680246353149,
0.8921760320663452,
-0.9568259716033936,
-0.8916007876396179,
0.19592143595218658,
0.18369492888450623,
-0.5812978744506836,
0.7313276529312134,
-0.13405416905879974,
0.1761007010936737,
... |
func (sid *Shortid) Generate() (string, error) {
return sid.GenerateInternal(nil, sid.epoch)
} | [
0.2684263288974762,
-0.3235146105289459,
0.37403634190559387,
0.31285494565963745,
-0.99267578125,
0.1826922595500946,
-0.3155289888381958,
-0.2004338800907135,
0.3336248993873596,
-0.3435262143611908,
-0.9888880252838135,
0.16449102759361267,
0.8197168111801147,
0.4229680895805359,
-0.0... |
func (sid *Shortid) MustGenerate() string {
id, err := sid.Generate()
if err == nil {
return id
}
panic(err)
} | [
0.24158388376235962,
-0.13770362734794617,
0.5500818490982056,
0.8253940343856812,
-0.5342243313789368,
0.7002264261245728,
-1.241780161857605,
-0.22794856131076813,
0.15855565667152405,
0.01307691540569067,
-0.16607560217380524,
-0.08199833333492279,
0.0010148314759135246,
0.4863193929195... |
func (sid *Shortid) GenerateInternal(tm *time.Time, epoch time.Time) (string, error) {
ms, count := sid.getMsAndCounter(tm, epoch)
idrunes := make([]rune, 9)
if tmp, err := sid.abc.Encode(ms, 8, 5); err == nil {
copy(idrunes, tmp) // first 8 symbols
} else {
return "", err
}
if tmp, err := sid.abc.Encode(sid.... | [
0.23300683498382568,
0.050363194197416306,
0.8552704453468323,
-0.828945517539978,
-0.9081527590751648,
0.1857595443725586,
-0.19153283536434174,
-0.23012211918830872,
-0.19718219339847565,
0.5345784425735474,
-0.5820090174674988,
0.6817622780799866,
-0.531385064125061,
0.39806270599365234... |
func (sid *Shortid) String() string {
return fmt.Sprintf("Shortid(worker=%v, epoch=%v, abc=%v)", sid.worker, sid.epoch, sid.abc)
} | [
0.9973233342170715,
-1.3883191347122192,
0.20798958837985992,
-0.7654356956481934,
-0.262166827917099,
0.6651320457458496,
0.004593187943100929,
-0.9522829651832581,
0.2565004527568817,
0.2020096778869629,
-0.19326870143413544,
1.3760589361190796,
-0.011601969599723816,
-0.3867459893226623... |
func (sid *Shortid) Abc() Abc {
return sid.abc
} | [
1.017140507698059,
-1.3024777173995972,
0.36494460701942444,
0.09642735123634338,
-0.4475919008255005,
1.0618915557861328,
0.07585754245519638,
-0.4634547233581543,
1.6837462186813354,
-0.16906115412712097,
-0.13541467487812042,
1.5254255533218384,
0.09180823713541031,
-0.22759300470352173... |
func (sid *Shortid) Epoch() time.Time {
return sid.epoch
} | [
0.996143639087677,
-0.2420104742050171,
0.47187313437461853,
0.3600609004497528,
-1.0110998153686523,
0.6765466928482056,
-0.5282438397407532,
0.1207701712846756,
0.015727831050753593,
0.3497466742992401,
-0.7598183751106262,
1.387877106666565,
0.6785640120506287,
0.7177311778068542,
0.2... |
func (sid *Shortid) Worker() uint {
return sid.worker
} | [
-0.4765861928462982,
-0.21683773398399353,
0.2891734838485718,
0.34818536043167114,
-0.8454814553260803,
0.09742894768714905,
0.4953222870826721,
0.049162767827510834,
1.0327694416046143,
-1.177160620689392,
-1.3665378093719482,
-0.043373264372348785,
0.0989796593785286,
0.5259473323822021... |
func NewAbc(alphabet string, seed uint64) (Abc, error) {
runes := []rune(alphabet)
if len(runes) != len(DefaultABC) {
return Abc{}, fmt.Errorf("alphabet must contain %v unique characters", len(DefaultABC))
}
if nonUnique(runes) {
return Abc{}, errors.New("alphabet must contain unique characters only")
}
abc :... | [
0.5071558356285095,
-0.49123555421829224,
0.4477929174900055,
-0.014339020475745201,
-0.3805491030216217,
-0.25835588574409485,
1.1949831247329712,
-0.46936556696891785,
0.697309136390686,
0.39208686351776123,
0.3673150837421417,
0.999527633190155,
0.14188550412654877,
-0.2756480276584625,... |
func MustNewAbc(alphabet string, seed uint64) Abc {
res, err := NewAbc(alphabet, seed)
if err == nil {
return res
}
panic(err)
} | [
-0.31292709708213806,
0.038645196706056595,
0.5274193286895752,
0.4414735436439514,
-0.39257439970970154,
0.8788906335830688,
-0.3829966187477112,
-1.1028565168380737,
0.21712927520275116,
0.6044606566429138,
-0.4042625427246094,
0.2537696957588196,
-0.15873882174491882,
0.6725520491600037... |
func (abc *Abc) Encode(val, nsymbols, digits uint) ([]rune, error) {
if digits < 4 || 6 < digits {
return nil, fmt.Errorf("allowed digits range [4,6], found %v", digits)
}
var computedSize uint = 1
if val >= 1 {
computedSize = uint(math.Log2(float64(val)))/digits + 1
}
if nsymbols == 0 {
nsymbols = compute... | [
-0.44990649819374084,
1.0474038124084473,
0.6899985671043396,
-0.17623113095760345,
-0.33810973167419434,
-0.1635260283946991,
0.33151859045028687,
-0.9064464569091797,
1.243530035018921,
0.6394293904304504,
-0.18061964213848114,
0.7119026184082031,
-0.6718847155570984,
0.05270685628056526... |
func (abc *Abc) MustEncode(val, size, digits uint) []rune {
res, err := abc.Encode(val, size, digits)
if err == nil {
return res
}
panic(err)
} | [
-0.1672278642654419,
0.8586529493331909,
0.11906861513853073,
0.8047468662261963,
0.13025017082691193,
0.3747801184654236,
-0.5855733752250671,
-1.2663084268569946,
0.734235405921936,
1.1649489402770996,
-0.288725346326828,
0.5524845719337463,
-0.7694478034973145,
0.7903625965118408,
0.5... |
func (abc Abc) String() string {
return fmt.Sprintf("Abc{alphabet='%v')", abc.Alphabet())
} | [
-0.135397270321846,
-0.6267098784446716,
-0.001825579907745123,
-1.2901878356933594,
0.02481045387685299,
1.0609275102615356,
0.44539543986320496,
-1.0641025304794312,
0.5506678819656372,
0.6177103519439697,
-0.5120068192481995,
0.8834605813026428,
-0.5417085886001587,
-0.04044464230537414... |
func (abc Abc) Alphabet() string {
return string(abc.alphabet)
} | [
-0.4400872588157654,
-0.9027635455131531,
0.2500849664211273,
-0.5554620027542114,
0.13062523305416107,
0.6700599193572998,
0.2796323001384735,
-1.4702203273773193,
0.7846986651420593,
0.6362801194190979,
0.3135070204734802,
0.4466417729854584,
-0.05984075367450714,
0.3324793875217438,
0... |
func ConvertString(val string) StringConverter {
return &stringConverterImp{
val: val,
}
} | [
-0.3434692621231079,
-0.7356109023094177,
0.21726328134536743,
-0.6388006210327148,
-0.6132634282112122,
-0.6444845199584961,
-0.3952803313732147,
-0.05712512880563736,
0.557200014591217,
-0.2659318447113037,
0.15374743938446045,
-0.26696154475212097,
0.3652384579181671,
0.212346151471138,... |
func GetClient() *mongo.Client {
clientOptions := options.Client().ApplyURI(DBUri)
client, err := mongo.NewClient(clientOptions)
if err != nil {
log.Fatal(err)
}
ctx, _ := context.WithTimeout(context.Background(), time.Second*2)
err = client.Connect(ctx)
if err != nil {
log.Fatal(err)
}
repositoryClient = ... | [
0.2347525805234909,
0.44637396931648254,
0.6757618188858032,
-0.0770891010761261,
0.9242177605628967,
0.03753366321325302,
-0.06109774857759476,
-0.27411866188049316,
-0.2536747455596924,
0.12581436336040497,
0.45232364535331726,
1.0793792009353638,
-1.1772922277450562,
-0.6062818765640259... |
func checkMongoClient() error {
if repositoryClient == nil {
return errors.New(nilMongoClientError)
}
return nil
} | [
0.6827117800712585,
-0.03202003240585327,
0.3701604902744293,
0.5789800882339478,
0.8768641352653503,
-0.31020012497901917,
-0.05556628853082657,
0.03448640927672386,
-0.09701446443796158,
1.0068994760513306,
-0.07345804572105408,
0.9839650988578796,
-1.4854739904403687,
0.7606767416000366... |
func InsertUsers(docs []interface{}) error {
err := checkMongoClient()
if err != nil {
return err
}
collection := repositoryClient.Database(DBName).Collection(CollectionName)
//unique index for Email field
ctx := context.TODO()
_, err = collection.Indexes().CreateOne(
ctx,
mongo.IndexModel{
Keys: bso... | [
-1.4522608518600464,
1.6888245344161987,
0.5854501724243164,
-0.08249388635158539,
0.5659458637237549,
0.9408413767814636,
1.2532637119293213,
0.3453841507434845,
-0.3565925061702728,
0.4889511168003082,
-0.35380852222442627,
-0.1718357652425766,
-1.5939693450927734,
0.056790418922901154,
... |
func ReadUsersPagination(limit int64, page int64) (*[]entity.User, error) {
err := checkMongoClient()
if err != nil {
return nil, err
}
collection := repositoryClient.Database(DBName).Collection(CollectionName)
// Querying paginated data
paginatedData, err := pagination.New(collection).Limit(limit).Page(page).... | [
-0.7589315176010132,
-0.4001741111278534,
0.6695742607116699,
-0.2749374508857727,
-0.009158379398286343,
0.23810504376888275,
-0.5419096350669861,
0.12810957431793213,
-0.22014334797859192,
1.3650332689285278,
0.8100409507751465,
0.21331100165843964,
-0.5083582997322083,
0.364161401987075... |
func ReadUserByID(id string) (entity.User, error) {
var result entity.User
err := checkMongoClient()
if err != nil {
return entity.User{}, err
}
collection := repositoryClient.Database(DBName).Collection(CollectionName)
ctx, _ := context.WithTimeout(context.Background(), 2*time.Second)
objectID, err := primiti... | [
-0.18452832102775574,
-0.29534509778022766,
0.5910893082618713,
0.0021285805851221085,
-0.17310167849063873,
0.16980911791324615,
0.2242201715707779,
-1.1475794315338135,
0.0800682082772255,
0.4811268150806427,
0.21342486143112183,
-0.04472244530916214,
-0.3936486840248108,
0.0667494237422... |
func CreateUser(doc interface{}) (interface{}, error) {
err := checkMongoClient()
if err != nil {
return nil, err
}
collection := repositoryClient.Database(DBName).Collection(CollectionName)
ctx, _ := context.WithTimeout(context.Background(), 2*time.Second)
result, err := collection.InsertOne(ctx, doc)
if err ... | [
0.021142875775694847,
0.5797368884086609,
0.7326920032501221,
0.42309609055519104,
0.007069525774568319,
0.9049850702285767,
1.0530328750610352,
-0.7464326620101929,
-0.1847912222146988,
0.6815204620361328,
-0.8541548848152161,
-1.0694642066955566,
-1.6874492168426514,
0.6995312571525574,
... |
func ReplaceUserByID(objectID primitive.ObjectID, doc interface{}) error {
err := checkMongoClient()
if err != nil {
return err
}
collection := repositoryClient.Database(DBName).Collection(CollectionName)
ctx, _ := context.WithTimeout(context.Background(), 2*time.Second)
_, err = collection.ReplaceOne(ctx, bson... | [
0.13885146379470825,
-0.1317635476589203,
0.37950748205184937,
0.27256083488464355,
-0.44342485070228577,
0.23515409231185913,
0.668529748916626,
-0.31922203302383423,
0.008960006758570671,
0.6086814999580383,
-0.8566718101501465,
0.4789222478866577,
-1.106598138809204,
0.46633195877075195... |
func MetricNameFromLabelAdapters(labels []cortexpb.LabelAdapter) (string, error) {
unsafeMetricName, err := UnsafeMetricNameFromLabelAdapters(labels)
if err != nil {
return "", err
}
// Force a string copy since LabelAdapter is often a pointer into
// a large gRPC buffer which we don't want to keep alive on the... | [
-0.038976408541202545,
-0.2626006603240967,
0.057070937007665634,
-0.05393679812550545,
-1.364684820175171,
0.9109692573547363,
-0.028732912614941597,
-0.733049750328064,
-0.23396608233451843,
0.953700840473175,
0.7947791218757629,
-0.5475942492485046,
-0.11365758627653122,
-0.467387616634... |
func UnsafeMetricNameFromLabelAdapters(labels []cortexpb.LabelAdapter) (string, error) {
for _, label := range labels {
if label.Name == model.MetricNameLabel {
return label.Value, nil
}
}
return "", errNoMetricNameLabel
} | [
-0.16856083273887634,
-0.19349901378154755,
0.09221567958593369,
0.16399265825748444,
-1.2226091623306274,
0.738884687423706,
-0.1902070939540863,
-1.2482973337173462,
-0.4944406747817993,
1.007975459098816,
0.5722448825836182,
-0.08936063945293427,
-0.26817744970321655,
-0.457093596458435... |
func MetricNameFromMetric(m model.Metric) (model.LabelValue, error) {
if value, found := m[model.MetricNameLabel]; found {
return value, nil
}
return "", fmt.Errorf("no MetricNameLabel for chunk")
} | [
0.3386387526988983,
-0.3231241703033447,
0.14589887857437134,
-0.008555673062801361,
-1.0868552923202515,
0.3001249134540558,
0.023989498615264893,
-1.3727105855941772,
-1.1301281452178955,
0.953802227973938,
0.6421513557434082,
-0.5312357544898987,
0.25054341554641724,
-0.2658487260341644... |
func MetricNameMatcherFromMatchers(matchers []*labels.Matcher) (*labels.Matcher, []*labels.Matcher, bool) {
// Handle the case where there is no metric name and all matchers have been
// filtered out e.g. {foo=""}.
if len(matchers) == 0 {
return nil, matchers, false
}
outMatchers := make([]*labels.Matcher, len(... | [
0.12406383454799652,
-0.3684370219707489,
0.44970598816871643,
0.13155177235603333,
-0.7859491109848022,
0.4443415403366089,
-0.45683878660202026,
-0.5568291544914246,
-0.8656076788902283,
0.5997293591499329,
-0.16243906319141388,
-1.0701874494552612,
-0.7400563955307007,
-0.08653920888900... |
func MetricNameFromLabels(lbls labels.Labels) (metricName string, err error) {
metricName = lbls.Get(model.MetricNameLabel)
if metricName == "" {
err = errNoMetricNameLabel
}
return
} | [
-0.07309356331825256,
-0.0534399077296257,
-0.04137985035777092,
-0.02010391466319561,
-0.6900774836540222,
0.6572204828262329,
-0.39328324794769287,
-0.620087742805481,
-0.8009790778160095,
0.5864975452423096,
0.9356345534324646,
-0.9774534106254578,
0.010038670152425766,
-0.1945209801197... |
func CheckPurgeDays(CreationDate string, Purge int) bool {
c, err := time.Parse("2006-01-02T15:04:05Z", CreationDate)
if err != nil {
return false
}
return int(time.Now().Sub(c).Hours()/24) > Purge
} | [
-0.7190956473350525,
0.4505062997341156,
0.7949122786521912,
0.47622308135032654,
-0.29608187079429626,
0.24836848676204681,
-1.6712881326675415,
-0.6742866635322571,
-0.2858112156391144,
0.13084441423416138,
-0.09598364681005478,
0.8967682123184204,
0.17519496381282806,
0.9303190112113953... |
func (s Specification) ListAllBackupImages(ec2svc ec2iface.EC2API) []string {
var AMILists []string
res, err := ec2svc.DescribeImages(&ec2.DescribeImagesInput{
Owners: []*string{aws.String(s.OWNER)},
})
if err != nil {
return AMILists
}
for _, i := range res.Images {
if strings.Contains(*i.Name, "daily-") &... | [
-0.6490945219993591,
-0.6948025226593018,
0.5201618075370789,
0.2995373010635376,
-0.03502665087580681,
-0.5246542096138,
-0.8693048357963562,
0.6209390163421631,
0.7035338878631592,
0.7314029335975647,
-0.020135296508669853,
0.3293430507183075,
0.3359659016132355,
1.2716245651245117,
0.... |
func DeregisterImages(ec2svc ec2iface.EC2API, InstainceID string) {
_, err := ec2svc.DeregisterImage(&ec2.DeregisterImageInput{
ImageId: aws.String(InstainceID),
})
if err != nil {
if awsErr, ok := err.(awserr.Error); ok {
fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr())
if reqErr, ok := err.... | [
-1.1538116931915283,
0.5103658437728882,
0.5099307894706726,
-0.6967652440071106,
0.24203887581825256,
-0.6528339385986328,
0.3686271011829376,
0.10334494709968567,
-0.12680332362651825,
0.12290709465742111,
0.08260202407836914,
0.980949878692627,
-0.656568706035614,
0.7749629020690918,
... |
func RecordFromProtobuf(partitionKeyIndex *uint64, hashKeyIndex *uint64, payload proto.Message, tags ...*Tag) (*Record, error) {
var record = &Record{}
data, err := proto.Marshal(payload)
if err != nil {
return record, fmt.Errorf("Error marshaling payload.\t", err)
}
record.PartitionKeyIndex = partitionKeyIndex
... | [
0.4002992510795593,
0.08149988949298859,
0.48770061135292053,
-0.19499987363815308,
0.12400282174348831,
0.1825413554906845,
-0.8542222380638123,
0.03910168260335922,
-1.076292634010315,
-1.0014301538467407,
-0.10983002185821533,
0.404170960187912,
-0.816889762878418,
-0.2524507939815521,
... |
func NewAggregatedRecord(partitionKeyTable []string, hashKeyTable []string, records []*Record) *AggregatedRecord {
ar := &AggregatedRecord{}
ar.PartitionKeyTable = partitionKeyTable
ar.ExplicitHashKeyTable = hashKeyTable
ar.Records = records
return ar
} | [
1.0892925262451172,
-0.163669615983963,
0.47522562742233276,
0.050348155200481415,
-0.27759748697280884,
0.09634937345981598,
-0.6931131482124329,
0.5653072595596313,
-0.8857482075691223,
-0.07209574431180954,
0.979137122631073,
0.4729510247707367,
-0.471112996339798,
0.4843209385871887,
... |
func parseConfigIPVersion(version string) (v allregions.ConfigIPVersion, err error) {
switch version {
case "4":
v = allregions.IPv4Only
case "6":
v = allregions.IPv6Only
case "auto":
v = allregions.Auto
default: // unspecified or invalid
err = fmt.Errorf("invalid value for edge-ip-version: %s", version)
... | [
-1.1807708740234375,
-0.7776786684989929,
0.419613242149353,
0.08551063388586044,
-0.6881974935531616,
-0.415531724691391,
0.11283966898918152,
0.23731975257396698,
0.16621661186218262,
1.302093267440796,
-0.3549123704433441,
-1.5379704236984253,
-0.4221969544887543,
-0.46425575017929077,
... |
func findLocalAddr(dst net.IP, port int) (netip.Addr, error) {
udpConn, err := net.DialUDP("udp", nil, &net.UDPAddr{
IP: dst,
Port: port,
})
if err != nil {
return netip.Addr{}, err
}
defer udpConn.Close()
localAddrPort, err := netip.ParseAddrPort(udpConn.LocalAddr().String())
if err != nil {
return ne... | [
0.3439306318759918,
-0.17241844534873962,
0.7149836421012878,
-0.6563351154327393,
-0.794938325881958,
-0.34428590536117554,
0.011122595518827438,
0.008882654830813408,
0.25495538115501404,
0.3340858519077301,
0.6740395426750183,
0.15595240890979767,
-0.15875522792339325,
0.552444994449615... |
func TestIsTest(t *testing.T) {
cmd := exec.Command(os.Args[0], "-test.list=.")
out, err := cmd.CombinedOutput()
if err != nil {
t.Fatalf("%s: %v\n%s", strings.Join(cmd.Args, " "), err, out)
}
t.Logf("%s:\n%s", strings.Join(cmd.Args, " "), out)
isTestFunction := map[string]bool{}
lines := strings.Split(string... | [
0.27510568499565125,
0.07560929656028748,
0.6728833317756653,
0.37665849924087524,
0.385007381439209,
-0.47637608647346497,
0.3936261236667633,
-0.5298449993133545,
-0.13953006267547607,
-0.2568835914134979,
-0.5947765707969666,
0.13732104003429413,
-0.34541982412338257,
0.4183357059955597... |
func nameOf(t *testing.T, f interface{}) string {
t.Helper()
v := reflect.ValueOf(f)
if v.Kind() != reflect.Func {
t.Fatalf("%v is not a function", f)
}
rf := runtime.FuncForPC(v.Pointer())
if rf == nil {
t.Fatalf("%v.Pointer() is not a known function", f)
}
fullName := rf.Name()
parts := strings.Split(... | [
0.2083073854446411,
-0.17433692514896393,
0.7649171948432922,
-0.5400590896606445,
-1.1583412885665894,
-0.5269056558609009,
0.23184828460216522,
-0.5850169658660889,
-0.050751518458127975,
0.7444573044776917,
0.20003396272659302,
-0.26259592175483704,
-0.006342891603708267,
-0.26263752579... |
func TestisNotATest(t *testing.T) {
panic("This is not a valid test function.")
} | [
0.7279983758926392,
0.5386714339256287,
0.2886371612548828,
1.287719964981079,
0.5133263468742371,
0.8598368167877197,
-0.12962742149829865,
-0.6683570146560669,
0.5452983379364014,
0.004729838110506535,
-0.6403641700744629,
0.24663086235523224,
-0.5711942315101624,
-0.32108262181282043,
... |
func Test1IsATest(t *testing.T) {
} | [
-0.35732874274253845,
-0.06562815606594086,
0.4308033883571625,
1.635574221611023,
0.3292156457901001,
0.6999130249023438,
1.1853073835372925,
-0.03922425955533981,
1.3714404106140137,
-0.17993208765983582,
-0.5981224179267883,
0.4596693813800812,
-0.8665581345558167,
0.40850940346717834,
... |
func Test(t *testing.T) {
} | [
0.709854781627655,
0.019038235768675804,
0.26623597741127014,
0.8031125068664551,
0.49314531683921814,
0.6861264109611511,
1.789301872253418,
0.005472223274409771,
0.04447796195745468,
-0.40851569175720215,
-1.0503720045089722,
0.045919060707092285,
-0.22168928384780884,
-0.066961891949176... |
func ExampleisNotAnExample() {
panic("This is not a valid example function.")
// Output:
// None. (This is not really an example function.)
} | [
0.9907811880111694,
-0.39210399985313416,
0.21472372114658356,
1.053148627281189,
-0.11774741858243942,
-0.11238396167755127,
-0.8324497938156128,
0.07685250043869019,
0.5912420749664307,
0.17911025881767273,
-0.9919633865356445,
0.8892146944999695,
-0.07215307652950287,
-0.59092116355896,... |
func BenchmarkisNotABenchmark(b *testing.B) {
panic("This is not a valid benchmark function.")
} | [
1.3365516662597656,
0.7958929538726807,
0.0798812210559845,
1.0839123725891113,
0.38546493649482727,
0.49496155977249146,
0.08961436152458191,
0.1728990375995636,
0.29025906324386597,
0.605903685092926,
0.026073239743709564,
0.7239590883255005,
-0.4888423681259155,
0.14660197496414185,
-... |
func pasteHandler(w http.ResponseWriter, req *http.Request) {
req.ParseForm()
data := req.Form.Get("textFile")
appText = unidecode.Unidecode(string(data))
w.Header().Set("Location", "/process")
w.WriteHeader(http.StatusTemporaryRedirect)
} | [
0.07264918833971024,
-0.1080150231719017,
0.48714664578437805,
-0.31249570846557617,
-0.7340443134307861,
1.276440143585205,
-0.0547112300992012,
1.411193609237671,
-0.5784368515014648,
0.7495086789131165,
0.16334795951843262,
-0.9855141639709473,
-0.49622470140457153,
0.07315198332071304,... |
func SaveErrlog(data interface{}) bool {
// errlogDB := SetDB(DBerrlogServer...)
// defer errlogDB.Close()
// return errlogDB.Save(data)
return true
} | [
-0.33461207151412964,
0.3703233301639557,
0.4533213973045349,
-0.6038066744804382,
-0.2052285075187683,
0.8001136779785156,
-0.18921442329883575,
0.32775476574897766,
-0.21399368345737457,
0.674322783946991,
-2.4769651889801025,
-0.5480912923812866,
-1.2736036777496338,
0.6745229363441467,... |
func GetTemplateRefs(t *testing.T, hostAwait *wait.HostAwaitility, tierName string) TemplateRefs { // nolint:unparam // false positive on unused return param `0`??
templateTier, err := hostAwait.WaitForNSTemplateTier(t, tierName, wait.UntilNSTemplateTierSpec(wait.HasNoTemplateRefWithSuffix("-000000a")))
require.NoErr... | [
0.07823487371206284,
-0.2547760605812073,
0.5621843338012695,
-0.9204432964324951,
-0.5802022814750671,
-0.540514349937439,
-0.14016102254390717,
-0.20637118816375732,
0.09157617390155792,
-0.23306016623973846,
-0.12940889596939087,
0.4244183897972107,
-0.37557053565979004,
1.1189565658569... |
func MD5(input string) string {
//Initiate MD5 type
h := md5.New()
//Set input
h.Write([]byte(input))
//Return hash as string
return hex.EncodeToString(h.Sum(nil))
} | [
-0.04960356280207634,
0.005802853498607874,
0.3647983968257904,
-0.04279452934861183,
-0.9470930695533752,
1.0719420909881592,
0.8918119072914124,
-0.3625313341617584,
-0.04655914381146431,
-0.19541999697685242,
-0.6764836311340332,
-0.05269486829638481,
-0.12253448367118835,
-0.1696359068... |
func SHA1(input string) string {
//Initiate SHA-1 type
h := sha1.New()
//Set input
h.Write([]byte(input))
//Return hash as string
return hex.EncodeToString(h.Sum(nil))
} | [
-0.20635591447353363,
0.05460314452648163,
0.5173933506011963,
0.7583545446395874,
-0.6188654899597168,
1.48592209815979,
-0.19492806494235992,
0.31720903515815735,
0.35426926612854004,
0.5543416738510132,
-0.26864388585090637,
0.305337131023407,
-0.08540308475494385,
-0.563912034034729,
... |
func (c *Controller) printMetrics() {
metrics, err := c.MetClient.MetricsV1beta1().PodMetricses("").List(metav1.ListOptions{});
if (err != nil) {
c.Logger.Debugf("%v", err)
}
for i, metric := range metrics.Items {
c.Logger.Infof("========================================");
c.Logger.Infof("Pod %v\n", i);
c.L... | [
0.040741436183452606,
-0.12738138437271118,
0.6180721521377563,
-0.8042013049125671,
0.2605332136154175,
0.6805406212806702,
0.299955278635025,
-0.7255342602729797,
-1.3167505264282227,
-0.10367008298635483,
0.48194292187690735,
1.161162257194519,
-0.4461174011230469,
0.20984049141407013,
... |
func SuperrewardsAuthRequired(whitelistIPs string) gin.HandlerFunc {
ips := make(map[string]struct{})
for _, v := range strings.Split(whitelistIPs, ",") {
ips[v] = struct{}{}
}
return func(c *gin.Context) {
if _, ok := ips[c.ClientIP()]; !ok {
c.AbortWithStatus(http.StatusForbidden)
return
}
c.Next(... | [
-0.6492591500282288,
-0.41196656227111816,
0.4463709592819214,
-0.1331779807806015,
-0.6482123732566833,
0.03171984851360321,
-0.08504463732242584,
0.2887972295284271,
0.7493398189544678,
0.8639041185379028,
0.5345278382301331,
0.32639455795288086,
-0.018450036644935608,
-0.742717742919921... |
func NewListOfDevicesOK() *ListOfDevicesOK {
return &ListOfDevicesOK{}
} | [
-0.23495374619960785,
-0.3532389998435974,
0.03338151052594185,
0.539588451385498,
-0.9129043817520142,
-0.8590680360794067,
0.48990166187286377,
-0.19312183558940887,
0.9203014373779297,
0.08353996276855469,
-0.5462213754653931,
-0.43747952580451965,
1.3513197898864746,
0.1642772853374481... |
func (o *ListOfDevicesOK) WithPayload(payload models.Devices) *ListOfDevicesOK {
o.Payload = payload
return o
} | [
-0.13374745845794678,
0.25995075702667236,
-0.20249882340431213,
0.19766739010810852,
-0.7767738699913025,
-1.076469898223877,
0.4362093508243561,
-0.4526155889034271,
1.2094935178756714,
0.0695052519440651,
-0.028580080717802048,
-1.1618595123291016,
1.045117735862732,
0.5178133845329285,... |
func (o *ListOfDevicesOK) SetPayload(payload models.Devices) {
o.Payload = payload
} | [
-0.23740318417549133,
0.439007967710495,
-0.19944341480731964,
0.3427385091781616,
-0.4913151264190674,
-0.5034935474395752,
0.4364515542984009,
-0.56382817029953,
0.8931235671043396,
0.3691486716270447,
-0.2941797375679016,
-1.0225392580032349,
0.3062136471271515,
1.1028084754943848,
0.... |
func (o *ListOfDevicesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(200)
payload := o.Payload
if payload == nil {
payload = make(models.Devices, 0, 50)
}
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
... | [
-0.8013691306114197,
0.029089437797665596,
0.10179276764392853,
0.38508886098861694,
0.5497134327888489,
-0.9922337532043457,
0.9299464821815491,
-0.32781675457954407,
1.1295467615127563,
0.820952296257019,
0.03464829549193382,
-1.0150614976882935,
0.0045484742149710655,
0.5106463432312012... |
func NewListOfDevicesDefault(code int) *ListOfDevicesDefault {
if code <= 0 {
code = 500
}
return &ListOfDevicesDefault{
_statusCode: code,
}
} | [
-0.8971602916717529,
0.5079832673072815,
0.04555749148130417,
0.3665672838687897,
0.7375364899635315,
-0.9335249662399292,
0.23042823374271393,
0.1833031326532364,
1.6529529094696045,
0.463371604681015,
-0.8218820095062256,
-0.5870251655578613,
0.2726370096206665,
0.7443150877952576,
-0.... |
func (o *ListOfDevicesDefault) WithStatusCode(code int) *ListOfDevicesDefault {
o._statusCode = code
return o
} | [
-0.4887593388557434,
0.22965040802955627,
-0.09056505560874939,
0.6579246520996094,
0.42170724272727966,
-0.8802269101142883,
0.18045231699943542,
0.7673373818397522,
1.1858150959014893,
0.4247489869594574,
-0.9662184715270996,
-1.0423961877822876,
0.41944369673728943,
0.898129940032959,
... |
func (o *ListOfDevicesDefault) SetStatusCode(code int) {
o._statusCode = code
} | [
-0.7385531067848206,
0.6649656295776367,
0.07422097027301788,
0.562046229839325,
0.2609368860721588,
-0.32417452335357666,
0.7235207557678223,
0.8302897810935974,
0.7760900259017944,
0.18064337968826294,
-0.903162956237793,
-0.6712543368339539,
-0.163124218583107,
1.0567023754119873,
0.3... |
func (o *ListOfDevicesDefault) WithPayload(payload *models.Error) *ListOfDevicesDefault {
o.Payload = payload
return o
} | [
-0.2531128525733948,
0.950326681137085,
-0.11579588800668716,
0.011031142435967922,
0.5357951521873474,
-1.1045281887054443,
-0.15322476625442505,
-0.2989146411418915,
1.1181105375289917,
-0.19718720018863678,
-0.23575752973556519,
-1.2375448942184448,
0.41058260202407837,
0.63758486509323... |
func (o *ListOfDevicesDefault) SetPayload(payload *models.Error) {
o.Payload = payload
} | [
-0.43917715549468994,
1.028862714767456,
-0.04705642908811569,
0.14665281772613525,
0.7318528890609741,
-0.44946444034576416,
0.13750727474689484,
-0.0633731484413147,
0.7308467030525208,
0.024157429113984108,
-0.4420216381549835,
-0.7493972778320312,
-0.08562760800123215,
0.82051432132720... |
func (o *ListOfDevicesDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {
rw.WriteHeader(o._statusCode)
if o.Payload != nil {
payload := o.Payload
if err := producer.Produce(rw, payload); err != nil {
panic(err) // let the recovery middleware deal with this
}
}
} | [
-0.7854813933372498,
0.5298947691917419,
0.20903168618679047,
0.6192368865013123,
1.3846627473831177,
-0.8409377932548523,
0.5200229287147522,
0.018873119726777077,
1.1291415691375732,
0.3997502028942108,
-0.1455007642507553,
-1.1632400751113892,
-0.2344464808702469,
0.10971330106258392,
... |
func (o *ParametersDataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewParametersDataOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, nil
... | [
-0.24558959901332855,
-0.7044561505317688,
0.6482154726982117,
0.24073529243469238,
0.25068649649620056,
-0.6418227553367615,
0.05112852528691292,
-0.49338507652282715,
-0.025868462398648262,
0.4478723108768463,
0.8079621195793152,
-0.3927815556526184,
-1.0103366374969482,
0.36861327290534... |
func NewParametersDataOK() *ParametersDataOK {
return &ParametersDataOK{}
} | [
0.20235088467597961,
-0.045727841556072235,
0.255401074886322,
-0.18309089541435242,
-0.9143048524856567,
0.6517255306243896,
-0.6354048252105713,
0.5375608205795288,
-0.32225725054740906,
-0.40343084931373596,
-0.503169059753418,
-0.4594513475894928,
0.5045496821403503,
0.5859202742576599... |
func NewParametersDataDefault(code int) *ParametersDataDefault {
return &ParametersDataDefault{
_statusCode: code,
}
} | [
-0.30452895164489746,
0.32978057861328125,
0.2936018705368042,
-0.6205768585205078,
0.3724410831928253,
0.7707117795944214,
-0.8588071465492249,
0.1434689164161682,
-0.011214353144168854,
0.025192303583025932,
-0.9067075848579407,
0.2758040726184845,
-0.8384948372840881,
0.3760304450988769... |
func (o *ParametersDataDefault) Code() int {
return o._statusCode
} | [
-0.3930859863758087,
0.3623068034648895,
0.13858546316623688,
0.3167620897293091,
0.562982976436615,
0.28431811928749084,
-0.18250107765197754,
0.49256569147109985,
-0.5962665677070618,
0.33932507038116455,
0.19819147884845734,
-0.01792498305439949,
-0.38243862986564636,
0.9079251885414124... |
func NewUserMfaFactorsResponseDataAuthFactors() *UserMfaFactorsResponseDataAuthFactors {
this := UserMfaFactorsResponseDataAuthFactors{}
return &this
} | [
-0.483254075050354,
-0.8133129477500916,
0.05454513803124428,
-0.02306016907095909,
-0.2552310526371002,
-0.26272401213645935,
0.8936200141906738,
-0.23645947873592377,
1.2427797317504883,
-1.0221807956695557,
-1.2772204875946045,
0.27261021733283997,
-0.35648274421691895,
-1.1545020341873... |
func NewUserMfaFactorsResponseDataAuthFactorsWithDefaults() *UserMfaFactorsResponseDataAuthFactors {
this := UserMfaFactorsResponseDataAuthFactors{}
return &this
} | [
-0.2691732347011566,
-0.11701178550720215,
0.17235231399536133,
-0.15891368687152863,
0.8406886458396912,
-0.3188048303127289,
0.2689034342765808,
-0.29166966676712036,
0.9584665894508362,
-1.319679856300354,
-1.1512123346328735,
-0.45817360281944275,
-0.7001068592071533,
-0.95356470346450... |
func (o *UserMfaFactorsResponseDataAuthFactors) GetFactorId() int32 {
if o == nil || o.FactorId == nil {
var ret int32
return ret
}
return *o.FactorId
} | [
0.4458625316619873,
-0.36441969871520996,
0.12506410479545593,
0.8376469612121582,
-0.08105970174074173,
0.2707732617855072,
0.48327842354774475,
-0.3009144961833954,
1.2758508920669556,
-0.3466421663761139,
0.092593714594841,
-0.1782929003238678,
-1.1583243608474731,
1.2196204662322998,
... |
func (o *UserMfaFactorsResponseDataAuthFactors) GetFactorIdOk() (*int32, bool) {
if o == nil || o.FactorId == nil {
return nil, false
}
return o.FactorId, true
} | [
0.08670871704816818,
0.10405510663986206,
0.2925625741481781,
0.6933443546295166,
0.5630258917808533,
0.19422395527362823,
0.5095006227493286,
0.5385838150978088,
0.8362922668457031,
-0.004162468947470188,
-0.5629273653030396,
-0.37813428044319153,
-0.30940085649490356,
0.800945520401001,
... |
func (o *UserMfaFactorsResponseDataAuthFactors) HasFactorId() bool {
if o != nil && o.FactorId != nil {
return true
}
return false
} | [
0.326884001493454,
-0.2871647775173187,
-0.04670063406229019,
0.06694678217172623,
0.12577509880065918,
-0.5880387425422668,
-0.33058586716651917,
0.6391322016716003,
0.975082278251648,
-0.3997420370578766,
-0.313786119222641,
-0.09648142755031586,
-0.35922226309776306,
1.1914256811141968,... |
func (o *UserMfaFactorsResponseDataAuthFactors) SetFactorId(v int32) {
o.FactorId = &v
} | [
0.2270832657814026,
-0.35239389538764954,
-0.16497229039669037,
-0.22589655220508575,
-0.5434987545013428,
0.6567831039428711,
-0.16365060210227966,
-0.6290209889411926,
0.5906720757484436,
0.17414003610610962,
-0.07497352361679077,
1.0536696910858154,
-0.3419739007949829,
0.53906166553497... |
func (o *UserMfaFactorsResponseDataAuthFactors) GetName() string {
if o == nil || o.Name == nil {
var ret string
return ret
}
return *o.Name
} | [
0.011183400638401508,
0.16409283876419067,
-0.10944118350744247,
0.9193567037582397,
-0.3306969404220581,
-0.8119434714317322,
0.7226195931434631,
-0.45199131965637207,
0.5298999547958374,
0.1102074533700943,
-0.46447259187698364,
-1.3607707023620605,
-0.6853281855583191,
0.237209081649780... |
func (o *UserMfaFactorsResponseDataAuthFactors) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
return nil, false
}
return o.Name, true
} | [
-0.16601717472076416,
-0.004235363099724054,
0.2875972092151642,
0.4786152243614197,
-0.4383799731731415,
0.15767884254455566,
0.28916072845458984,
-0.23653198778629303,
0.06136419624090195,
1.0592772960662842,
-1.1310456991195679,
-0.9438508749008179,
0.1388457715511322,
0.260687500238418... |
func (o *UserMfaFactorsResponseDataAuthFactors) HasName() bool {
if o != nil && o.Name != nil {
return true
}
return false
} | [
0.11428166925907135,
0.022190958261489868,
-0.15126767754554749,
0.5304110050201416,
-0.13283056020736694,
-0.6172240972518921,
0.22058051824569702,
-0.15162599086761475,
0.3690411448478699,
0.2292250394821167,
-0.6969444155693054,
-1.106053113937378,
-0.35551947355270386,
-0.2186289280653... |
func (o *UserMfaFactorsResponseDataAuthFactors) SetName(v string) {
o.Name = &v
} | [
-0.21196956932544708,
-0.14949646592140198,
-0.3637424409389496,
0.16826342046260834,
-1.24716055393219,
-0.8550882339477539,
0.010903271846473217,
-1.0146245956420898,
0.21901865303516388,
0.14610514044761658,
-0.45933520793914795,
0.5258255004882812,
-0.34976664185523987,
-0.841090321540... |
func (AppliedStatus) Values() []AppliedStatus {
return []AppliedStatus{
"APPLIED",
"NOT_APPLIED",
}
} | [
0.27455827593803406,
-0.31057238578796387,
0.127560093998909,
-0.5651777386665344,
0.16606447100639343,
0.9494331479072571,
-1.57920503616333,
0.6969355940818787,
0.3386649489402771,
-0.4827934801578522,
-0.8189059495925903,
0.7509245872497559,
0.9155467748641968,
1.9540283679962158,
-0.... |
func (ConflictExceptionReason) Values() []ConflictExceptionReason {
return []ConflictExceptionReason{
"ZonalShiftAlreadyExists",
"ZonalShiftStatusNotActive",
"SimultaneousZonalShiftsConflict",
}
} | [
-0.018200065940618515,
-0.9368996024131775,
0.31953394412994385,
0.12106077373027802,
0.9972193837165833,
0.29953792691230774,
0.16666841506958008,
0.01970244199037552,
0.7326438426971436,
-0.05109153315424919,
-0.29517650604248047,
-0.3426094651222229,
-0.07737787812948227,
-0.03528955206... |
func (ValidationExceptionReason) Values() []ValidationExceptionReason {
return []ValidationExceptionReason{
"InvalidExpiresIn",
"InvalidStatus",
"MissingValue",
"InvalidToken",
"InvalidResourceIdentifier",
"InvalidAz",
"UnsupportedAz",
}
} | [
0.441116064786911,
-0.7850757241249084,
0.17923633754253387,
0.13623254001140594,
-0.037934593856334686,
0.4888918995857239,
-1.484999179840088,
-0.3122919499874115,
1.0251904726028442,
-0.5211165547370911,
-0.1707489788532257,
0.07666214555501938,
-0.4439500868320465,
0.3273939788341522,
... |
func (ZonalShiftStatus) Values() []ZonalShiftStatus {
return []ZonalShiftStatus{
"ACTIVE",
"EXPIRED",
"CANCELED",
}
} | [
0.4777946472167969,
-0.6095125079154968,
0.1932266503572464,
-0.3202592730522156,
0.7241015434265137,
1.1872122287750244,
-0.7190488576889038,
-0.3078300356864929,
0.7290841341018677,
-0.12471288442611694,
-0.723966121673584,
0.3885292410850525,
0.3710063099861145,
0.8375555872917175,
-0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.