text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (r *Resolver) Timeout() time.Duration {
return time.Duration(30) * time.Second
} | [
0.6240777969360352,
1.085844874382019,
0.22717979550361633,
-0.4904719889163971,
-0.0015633617294952273,
0.7941130995750427,
-0.23421864211559296,
0.19328312575817108,
0.4455036222934723,
0.3839738070964813,
0.4272562563419342,
0.49511250853538513,
0.21796122193336487,
0.23317457735538483,... |
func New(maybeConfig *iam.Config, options ...Option) Doer {
defaultClient := &http.Client{}
for i := range options {
if options[i] != nil {
options[i](defaultClient)
}
}
if maybeConfig != nil {
authClient := &authClient{
client: defaultClient,
config: maybeConfig,
}
return authClient
}
return d... | [
-0.27772441506385803,
-0.5798832178115845,
0.41438037157058716,
-0.08325467258691788,
0.3381845951080322,
0.03789769113063812,
0.04318619892001152,
-0.5473929643630981,
0.44841820001602173,
0.1495695561170578,
0.31950485706329346,
0.533781886100769,
-0.03803826868534088,
0.1772479861974716... |
func Timeout(timeout time.Duration) Option {
return func(client *http.Client) {
client.Timeout = timeout
}
} | [
0.8765592575073242,
0.5086194276809692,
0.3233926296234131,
-0.3766777813434601,
0.5108046531677246,
1.1340829133987427,
0.4081087112426758,
-0.13503976166248322,
0.810977041721344,
0.26970523595809937,
0.015484455972909927,
0.8226926922798157,
0.17970845103263855,
-0.6199190616607666,
-... |
func Transport(tr http.RoundTripper) Option {
return func(client *http.Client) {
client.Transport = tr
}
} | [
0.1616034358739853,
0.307504266500473,
0.2629320025444031,
-0.2900152802467346,
0.10610733926296234,
0.7715486884117126,
1.0286041498184204,
-1.6625072956085205,
0.43894001841545105,
-0.658440113067627,
-0.6256062388420105,
-0.09561271965503693,
0.12260127812623978,
-0.6566148400306702,
... |
func (a *authClient) Do(req *http.Request) (*http.Response, error) {
// TODO if we still have a valid token, try using it first
token := jwt.New(jwt.SigningMethodRS256)
token.Claims["uid"] = a.config.ID
token.Claims["exp"] = time.Now().Add(time.Hour).Unix()
// SignedString will treat secret as PEM-encoded key
tok... | [
-0.4080197513103485,
-0.3872334361076355,
1.0087740421295166,
-0.33238938450813293,
-0.21153999865055084,
-0.3025439977645874,
-0.7842332720756531,
-0.3375481069087982,
0.2311812937259674,
0.021268727257847786,
-0.21648156642913818,
0.6072735786437988,
0.2066173404455185,
-0.25900906324386... |
func TLSConfig(enabled bool, caPool *x509.CertPool) (opt urls.Option, config *tls.Config) {
opt = urls.Scheme("http")
if enabled {
opt = urls.Scheme("https")
if caPool != nil {
config = &tls.Config{
RootCAs: caPool,
}
} else {
// do HTTPS without verifying the Mesos master certificate
config = &... | [
0.8949347138404846,
0.38614460825920105,
0.5468857288360596,
-0.4285242557525635,
-0.9669232368469238,
0.09042535722255707,
-0.9514734148979187,
1.2092128992080688,
0.19145700335502625,
0.5130195617675781,
-0.9741321802139282,
0.11136367172002792,
0.33559727668762207,
1.0680150985717773,
... |
func New(alg string, signKey []byte, verifyKey []byte) *JwtAuth {
return &JwtAuth{
signKey: signKey,
verifyKey: verifyKey,
signer: jwt.GetSigningMethod(alg),
}
} | [
-0.1364736258983612,
-0.7881731390953064,
0.2588469088077545,
0.6284294724464417,
-1.7240550518035889,
-0.516559362411499,
0.07070007175207138,
0.05936237424612045,
-0.1111874133348465,
0.852850079536438,
-0.4052813947200775,
0.6761351823806763,
0.3476521968841553,
0.7636523246765137,
0.... |
func NewWithParser(alg string, parser *jwt.Parser, signKey []byte, verifyKey []byte) *JwtAuth {
return &JwtAuth{
signKey: signKey,
verifyKey: verifyKey,
signer: jwt.GetSigningMethod(alg),
parser: parser,
}
} | [
-0.17887307703495026,
-1.122807502746582,
0.3748069703578949,
0.3155865967273712,
-2.305837392807007,
-0.3661082684993744,
-0.5103858113288879,
-0.3602607250213623,
0.19426609575748444,
0.5321201682090759,
-0.827937662601471,
0.2768397033214569,
-0.09188909083604813,
0.6906874179840088,
... |
func (ja *JwtAuth) Verifier(next http.Handler) http.Handler {
return ja.Verify("")(next)
} | [
0.4603371024131775,
0.07340384274721146,
-0.010867389850318432,
0.23490196466445923,
-0.6608514189720154,
0.3403259813785553,
-0.3989541828632355,
-0.2571881115436554,
-0.16996033489704132,
-0.8597890734672546,
-1.2708349227905273,
0.787969708442688,
0.3180868625640869,
1.4887031316757202,... |
func Authenticator(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
ctx := r.Context()
jwtToken, err := TokenFromContext(ctx)
if err != nil {
http.Error(w, http.StatusText(401), 401)
return
}
_ = jwtToken
// Token is authenticated, pass it th... | [
-0.7523185014724731,
0.02179618366062641,
0.4849088788032532,
-0.12198493629693985,
-1.6586717367172241,
0.45449280738830566,
0.04922926425933838,
-0.2724282443523407,
0.48406684398651123,
0.1665736734867096,
-0.5556729435920715,
0.48892778158187866,
0.7235053777694702,
-0.0011851367307826... |
func TokenFromContext(ctx context.Context) (jwt.Token, error) {
if jwtErr, ok := ctx.Value("jwt.err").(error); ok {
if jwtErr != nil {
return jwt.Token{}, jwtErr
}
}
jwtToken, ok := ctx.Value("jwt").(*jwt.Token)
if !ok || jwtToken == nil || !jwtToken.Valid {
return jwt.Token{}, ErrInvalidToken
}
return ... | [
0.029222117736935616,
-0.53061842918396,
0.3400290012359619,
-0.20390261709690094,
-0.8766945600509644,
0.2818787097930908,
-0.3688698410987854,
-0.4819779098033905,
1.317758560180664,
-0.537891685962677,
-0.05272630229592323,
0.47046875953674316,
0.7732980251312256,
-0.07996612787246704,
... |
func (c Claims) SetIssuedAt(tm time.Time) Claims {
c["iat"] = tm.UTC().Unix()
return c
} | [
0.20128177106380463,
-0.6006970405578613,
0.436086505651474,
-1.8509867191314697,
0.2966959476470947,
0.7465601563453674,
-0.3643661141395569,
-0.06486929953098297,
0.0816458985209465,
-0.4639875590801239,
-0.6324149370193481,
0.25237149000167847,
0.6727925539016724,
-0.17630299925804138,
... |
func (c Claims) SetIssuedNow() Claims {
c["iat"] = EpochNow()
return c
} | [
0.3460942804813385,
-0.39998406171798706,
0.3840372860431671,
-0.8989465832710266,
0.11725015193223953,
0.7150318026542664,
-0.23534256219863892,
0.5616674423217773,
-0.4443298280239105,
-0.34754711389541626,
-1.1340950727462769,
0.0985473021864891,
0.3793131411075592,
0.7243385910987854,
... |
func (c Claims) SetExpiry(tm time.Time) Claims {
c["exp"] = tm.UTC().Unix()
return c
} | [
0.5995786786079407,
-0.3151262402534485,
0.21310947835445404,
-0.5747779011726379,
0.7876734137535095,
0.27948328852653503,
-1.0650830268859863,
0.7023164629936218,
-0.3128030002117157,
-0.08005685359239578,
-0.7267968058586121,
0.43141087889671326,
0.29184064269065857,
0.4988999366760254,... |
func (c Claims) SetExpiryIn(tm time.Duration) Claims {
c["exp"] = ExpireIn(tm)
return c
} | [
0.08966132253408432,
-0.3677015006542206,
0.19620004296302795,
-1.1327905654907227,
-0.35893481969833374,
0.5879115462303162,
-0.5225268602371216,
0.9536694288253784,
-0.5761358141899109,
-0.33218735456466675,
-1.1784802675247192,
0.36946210265159607,
0.30807405710220337,
0.322681248188018... |
func EpochNow() int64 {
return time.Now().UTC().Unix()
} | [
-0.14622801542282104,
0.35566210746765137,
0.6340823173522949,
0.00869961641728878,
-0.6716338992118835,
-0.5436236262321472,
-0.9050369262695312,
1.037431240081787,
-1.8422044515609741,
-0.16276656091213226,
-0.8398487567901611,
0.46456199884414673,
0.8759481310844421,
0.4933454990386963,... |
func ExpireIn(tm time.Duration) int64 {
return EpochNow() + int64(tm.Seconds())
} | [
-0.5342820286750793,
0.017574120312929153,
0.4696293771266937,
-0.2921443581581116,
-0.5939854383468628,
0.36366498470306396,
-0.41204705834388733,
0.23801706731319427,
-1.0731914043426514,
0.4705495834350586,
-0.2936386466026306,
0.6113533973693848,
0.4715138077735901,
0.7057783603668213,... |
func (g *GitRepo) sortBranches() []string {
sorted := []string{"master"}
for _, branch := range g.branches {
if branch == "master" || branch == "origin/master" {
continue
}
sorted = append(sorted, branch)
}
return sorted
} | [
-0.03913688287138939,
-0.6318429708480835,
0.531751275062561,
0.027605943381786346,
-0.15576797723770142,
0.8432022333145142,
-0.5944623351097107,
-0.5940250754356384,
-0.6478592157363892,
-0.02136664092540741,
-0.028109747916460037,
0.28330475091934204,
-1.2977885007858276,
0.279427886009... |
func (g *GitRepo) lookupBranch(branch string) (*git.Branch, error) {
remoteBranch := fmt.Sprintf("%s%s", originPrefix, branch)
b, err := g.r.LookupBranch(remoteBranch, git.BranchRemote)
if err == nil && b != nil {
log.Infof("Found remote branch '%s'", remoteBranch)
return b, nil
}
log.Infof("Searching for loc... | [
0.012451386079192162,
-0.18477237224578857,
0.5924955010414124,
0.013940391130745411,
-0.0764433965086937,
0.3360968232154846,
-0.59597247838974,
0.07203525304794312,
0.5942708849906921,
-0.5332539677619934,
0.0046842568553984165,
0.29368630051612854,
-0.6637213826179504,
0.421913862228393... |
func (g *GitRepo) checkoutTree(oid *git.Oid) (*git.Tree, error) {
tree, err := g.r.LookupTree(oid)
if err != nil {
return nil, err
}
if err = g.r.CheckoutTree(tree, checkoutOpts); err != nil {
return nil, err
}
return tree, nil
} | [
-0.12916181981563568,
0.10296723991632462,
0.4406231939792633,
-1.0076383352279663,
-0.6134107112884521,
-0.3548485040664673,
-0.2644820809364319,
-0.2047332376241684,
0.597794234752655,
1.7347846031188965,
0.48690682649612427,
0.37492629885673523,
-0.5766051411628723,
0.6349911689758301,
... |
func (g *GitRepo) CheckoutCommit(branch string, c *git.Commit) error {
log.Infof("Checking out commit-id '%s/%s'", branch, c.Id().String())
tree, err := g.checkoutTree(c.TreeId())
if err != nil {
return err
}
defer tree.Free()
r, err := g.r.References.Create(fmt.Sprintf("refs/head/%s", branch), c.Id(), true, b... | [
0.6097829341888428,
-0.39515286684036255,
0.745883584022522,
-0.5211047530174255,
-0.5807181000709534,
-0.19010289013385773,
-0.5436186790466309,
-0.354640930891037,
-0.8511316180229187,
1.8699957132339478,
-0.150508850812912,
-0.14359693229198456,
-0.9902297258377075,
-0.04609502106904983... |
func (g *GitRepo) checkoutBranch(branch string) error {
log.Infof("Checking out branch '%s' HEAD...", branch)
b, err := g.lookupBranch(branch)
if err != nil {
return err
}
defer b.Free()
c, err := g.r.LookupCommit(b.Target())
if err != nil {
return err
}
defer c.Free()
tree, err := g.checkoutTree(c.Tree... | [
0.026174120604991913,
0.17124710977077484,
0.6137486100196838,
-0.4146662950515747,
0.14222098886966705,
0.3982170820236206,
-0.018029337748885155,
-0.07643581926822662,
0.18849271535873413,
1.036960244178772,
-0.14325828850269318,
1.052308440208435,
-0.9190037250518799,
0.6055681705474854... |
func (g *GitRepo) branchIter(fn branchIterFn) error {
for _, branch := range g.sortBranches() {
if branch != "master" {
if err := g.checkoutBranch(branch); err != nil {
return err
}
}
log.Infof("Transversing '%s' commits...", branch)
odb, err := g.r.Odb()
if err != nil {
return err
}
defer ... | [
-0.46266087889671326,
-0.024280035868287086,
0.5578004121780396,
0.1645965278148651,
-0.4927753210067749,
-0.09200367331504822,
0.2191726565361023,
-0.47525647282600403,
-1.2831324338912964,
1.079964280128479,
0.9035154581069946,
-0.8123681545257568,
-0.19902804493904114,
0.418979912996292... |
func (g *GitRepo) ModifiedFiles(c *git.Commit, tree *git.Tree) ([]string, error) {
opts := &git.DiffOptions{}
modified := []string{}
parentCount := c.ParentCount()
for i := uint(0); i <= parentCount; i++ {
parentID := c.ParentId(i)
if parentID == nil {
continue
}
log.Debugf("Looking up parent commit-id ... | [
0.4432072341442108,
-0.36137881875038147,
0.7369240522384644,
-0.9349340200424194,
0.4208325743675232,
-0.24734345078468323,
0.15407852828502655,
0.16184628009796143,
-0.4762710630893707,
0.5809161067008972,
0.06476875394582748,
0.1819380670785904,
-0.784859836101532,
1.5175102949142456,
... |
func (g *GitRepo) CommitIter(fn CommitIterFn) error {
return g.branchIter(func(branch string, odb *git.Odb) error {
head, err := g.r.Head()
if err != nil {
return err
}
defer head.Free()
c, err := g.r.LookupCommit(head.Target())
if err != nil {
return err
}
defer c.Free()
tree, err := c.Tree(... | [
-0.706637978553772,
-0.28129464387893677,
0.9223936200141907,
-0.034400634467601776,
-0.6405399441719055,
-0.37532639503479004,
0.438363254070282,
-0.8455605506896973,
-0.6995113492012024,
1.6215382814407349,
0.894105851650238,
-0.6963651180267334,
-0.0648026317358017,
0.7194815874099731,
... |
func (g *GitRepo) LookupCommit(id string) (*git.Commit, error) {
oid, err := git.NewOid(id)
if err != nil {
return nil, err
}
return g.r.LookupCommit(oid)
} | [
0.03517259284853935,
-0.5032637119293213,
0.6844128966331482,
-0.6229744553565979,
-0.4824275076389313,
-1.0536763668060303,
-0.6111037135124207,
-0.8795841336250305,
0.07225978374481201,
0.44696956872940063,
0.21528147161006927,
-0.024020938202738762,
-0.13261282444000244,
0.0115433037281... |
func extractBranches(r *git.Repository) ([]string, error) {
iter, err := r.NewBranchIterator(git.BranchAll)
if err != nil {
return nil, err
}
branchRef := []string{}
err = iter.ForEach(func(branch *git.Branch, branchType git.BranchType) error {
name, err := branch.Name()
if err != nil {
return err
}
n... | [
-0.10354608297348022,
-0.5484893918037415,
0.426742285490036,
-0.2787054181098938,
-0.3188859224319458,
0.2583574950695038,
-0.5697416067123413,
-0.5253945589065552,
-0.03903592750430107,
0.9380400776863098,
-0.324017196893692,
-0.30946680903434753,
-0.9750140309333801,
0.8617702722549438,... |
func NewGitRepo(cfg *Config, workdingDir string) (*GitRepo, error) {
log.Infof("Working directory at '%s'", workdingDir)
opts := &git.CloneOptions{
FetchOptions: &git.FetchOptions{
DownloadTags: git.DownloadTagsAll,
},
CheckoutOpts: checkoutOpts,
}
if cfg.RelativeDir != "" {
opts.CheckoutOpts.Paths = []s... | [
0.15484081208705902,
-0.23411764204502106,
0.49736571311950684,
-0.46081724762916565,
-0.8711825609207153,
-0.49035370349884033,
-0.5488519072532654,
-0.4558582603931427,
0.09127186983823776,
0.6444259285926819,
-0.36168792843818665,
-0.4803398847579956,
-0.5291306972503662,
-0.34259092807... |
func NewImageImportManifest() *ImageImportManifest {
this := ImageImportManifest{}
return &this
} | [
-0.20932583510875702,
-0.7564407587051392,
0.22365237772464752,
-0.5306367874145508,
-0.8207215666770935,
-0.2807745933532715,
-0.044952940195798874,
-0.3872801661491394,
0.4463142156600952,
0.4534382224082947,
-1.486452579498291,
-0.9338828325271606,
-0.8915127515792847,
-0.40553516149520... |
func NewImageImportManifestWithDefaults() *ImageImportManifest {
this := ImageImportManifest{}
return &this
} | [
-0.01938406191766262,
-0.06762763857841492,
0.12206388264894485,
-0.1628948152065277,
0.43862828612327576,
-0.1525433361530304,
-0.5440440773963928,
-0.10043877363204956,
0.20805417001247406,
-0.15552933514118195,
-1.181740403175354,
-1.9447442293167114,
-1.1389014720916748,
-0.14207348227... |
func (o *ImageImportManifest) GetContents() ImportContentDigests {
if o == nil || o.Contents == nil {
var ret ImportContentDigests
return ret
}
return *o.Contents
} | [
0.6129887700080872,
0.4488022029399872,
0.2992267310619354,
0.30091163516044617,
-0.18015369772911072,
-1.0013532638549805,
1.0418751239776611,
-1.1559762954711914,
1.2765216827392578,
-0.5013984441757202,
0.13529403507709503,
-1.7839367389678955,
-0.5746457576751709,
0.3047458231449127,
... |
func (o *ImageImportManifest) GetContentsOk() (*ImportContentDigests, bool) {
if o == nil || o.Contents == nil {
return nil, false
}
return o.Contents, true
} | [
0.3065106272697449,
-0.26722678542137146,
0.18564561009407043,
0.22461532056331635,
-0.40492701530456543,
-0.9035831689834595,
1.095672369003296,
-1.1317706108093262,
0.110984206199646,
-0.2398129403591156,
-0.4329754114151001,
-1.647654414176941,
0.21637171506881714,
0.5250106453895569,
... |
func (o *ImageImportManifest) HasContents() bool {
if o != nil && o.Contents != nil {
return true
}
return false
} | [
0.5484493374824524,
0.22116954624652863,
0.10054761171340942,
-0.30462944507598877,
0.21755951642990112,
-0.5961495637893677,
0.31786200404167175,
-0.40280842781066895,
0.7193772196769714,
-1.1806719303131104,
0.19342564046382904,
-1.7604410648345947,
-0.2676790654659271,
0.414228707551956... |
func (o *ImageImportManifest) SetContents(v ImportContentDigests) {
o.Contents = &v
} | [
0.6458291411399841,
-0.18658657371997833,
-0.08237054944038391,
-0.5926892161369324,
-0.7469450235366821,
-0.5574143528938293,
0.12460837513208389,
-1.816582441329956,
0.36644813418388367,
-0.49230289459228516,
0.16473405063152313,
-0.5050421357154846,
-0.45229974389076233,
-0.502008080482... |
func (o *ImageImportManifest) GetTags() []string {
if o == nil || o.Tags == nil {
var ret []string
return ret
}
return o.Tags
} | [
0.7900211215019226,
0.6037137508392334,
-0.39645156264305115,
0.43843647837638855,
0.6613122224807739,
-0.1345667839050293,
0.11807908117771149,
-0.7459688782691956,
0.9527081251144409,
-0.6414762139320374,
0.18849407136440277,
-0.3642869293689728,
-0.36538341641426086,
0.8095453381538391,... |
func (o *ImageImportManifest) GetTagsOk() ([]string, bool) {
if o == nil || o.Tags == nil {
return nil, false
}
return o.Tags, true
} | [
0.7296833992004395,
1.662017583847046,
0.14545361697673798,
0.654037594795227,
0.6950121521949768,
-0.9260017275810242,
-0.2684915363788605,
-0.32450351119041443,
-0.21300947666168213,
0.3859308063983917,
-1.2657716274261475,
-1.078011393547058,
0.4676991403102875,
0.49518194794654846,
-... |
func (o *ImageImportManifest) HasTags() bool {
if o != nil && o.Tags != nil {
return true
}
return false
} | [
0.915195643901825,
1.2686607837677002,
0.005457334220409393,
-0.18607322871685028,
0.5396832227706909,
-0.586772620677948,
-0.3084337115287781,
0.037635691463947296,
0.09782761335372925,
-0.9012681841850281,
-0.49939724802970886,
-0.9822169542312622,
-0.09347899258136749,
0.693448007106781... |
func (o *ImageImportManifest) SetTags(v []string) {
o.Tags = v
} | [
-0.3517659604549408,
0.5749635696411133,
-0.20209865272045135,
0.0180982518941164,
-0.04885292798280716,
0.08462940901517868,
-0.6318458914756775,
-0.5450836420059204,
0.1085793748497963,
0.22358043491840363,
-0.7890487909317017,
-0.3123212158679962,
-0.40215572714805603,
0.888469040393829... |
func (o *ImageImportManifest) GetDigest() string {
if o == nil || o.Digest == nil {
var ret string
return ret
}
return *o.Digest
} | [
0.6891773343086243,
0.5266513228416443,
0.3032059371471405,
0.1828726977109909,
0.14204680919647217,
-0.03185438737273216,
0.8944236636161804,
-0.48858314752578735,
1.1393582820892334,
-1.1096519231796265,
0.2264116257429123,
-1.3153020143508911,
-0.7224577069282532,
0.371930330991745,
0... |
func (o *ImageImportManifest) GetDigestOk() (*string, bool) {
if o == nil || o.Digest == nil {
return nil, false
}
return o.Digest, true
} | [
-0.5182955265045166,
0.5578031539916992,
0.7138304710388184,
0.3423665761947632,
0.09599221497774124,
-0.5912376642227173,
0.6957306861877441,
0.5153648853302002,
0.6181995868682861,
-0.7585594654083252,
-1.2083063125610352,
-0.8196341395378113,
0.6393660306930542,
0.5633845329284668,
0.... |
func (o *ImageImportManifest) HasDigest() bool {
if o != nil && o.Digest != nil {
return true
}
return false
} | [
0.7962726354598999,
0.5168961882591248,
0.6028302907943726,
-0.3520808815956116,
0.6373749375343323,
-0.30791175365448,
-0.09003331512212753,
0.3725738227367401,
0.3317944407463074,
-1.34087073802948,
-0.7051255702972412,
-1.4466663599014282,
-0.17563237249851227,
0.4460727274417877,
0.2... |
func (o *ImageImportManifest) SetDigest(v string) {
o.Digest = &v
} | [
0.5413773655891418,
-0.20193248987197876,
-0.02459009923040867,
-0.8502742052078247,
-0.5998339653015137,
0.11261466145515442,
-0.22028285264968872,
-1.037025809288025,
0.040928978472948074,
-0.6592634916305542,
-0.15428751707077026,
0.4072546064853668,
-0.6676697731018066,
-0.557656705379... |
func (o *ImageImportManifest) GetParentDigest() string {
if o == nil || o.ParentDigest == nil {
var ret string
return ret
}
return *o.ParentDigest
} | [
1.29424250125885,
0.2894589900970459,
0.0436289943754673,
-0.21579770743846893,
-0.9954330921173096,
-0.07008280605077744,
0.3152652084827423,
-0.7098289728164673,
0.0724324882030487,
-1.1728570461273193,
0.28848421573638916,
-0.9038154482841492,
-1.0858217477798462,
0.8277095556259155,
... |
func (o *ImageImportManifest) GetParentDigestOk() (*string, bool) {
if o == nil || o.ParentDigest == nil {
return nil, false
}
return o.ParentDigest, true
} | [
0.668546199798584,
0.5030405521392822,
0.5592989921569824,
0.04266811162233353,
-0.46404942870140076,
-0.2871454656124115,
0.410928875207901,
0.02500860206782818,
-0.2059822380542755,
-0.8582819700241089,
-0.7575505375862122,
-0.7634376287460327,
0.12059515714645386,
0.536985456943512,
-... |
func (o *ImageImportManifest) HasParentDigest() bool {
if o != nil && o.ParentDigest != nil {
return true
}
return false
} | [
1.227429747581482,
-0.07443367689847946,
0.40411490201950073,
-0.663022518157959,
-0.2828039526939392,
-0.5827258229255676,
-0.030235791578888893,
0.325112909078598,
-0.11391130089759827,
-1.045501947402954,
-0.5898253321647644,
-1.0790213346481323,
-0.10082788020372391,
0.8222710490226746... |
func (o *ImageImportManifest) SetParentDigest(v string) {
o.ParentDigest = &v
} | [
1.4531683921813965,
-0.2455136477947235,
-0.11442158371210098,
-1.2736177444458008,
-1.33827543258667,
0.1689055860042572,
-0.1109745055437088,
-0.936487078666687,
-0.36710062623023987,
-0.7563313245773315,
0.07772693037986755,
0.3389061689376831,
-0.9786375164985657,
-0.42972350120544434,... |
func (o *ImageImportManifest) GetLocalImageId() string {
if o == nil || o.LocalImageId == nil {
var ret string
return ret
}
return *o.LocalImageId
} | [
0.9408281445503235,
-0.494322806596756,
-0.03712371736764908,
0.06040520593523979,
-0.7005668878555298,
-0.020593583583831787,
-0.3494095504283905,
0.6610523462295532,
1.2643550634384155,
0.6126462817192078,
-0.2184438556432724,
-0.30981963872909546,
-0.9509518146514893,
1.749079704284668,... |
func (o *ImageImportManifest) GetLocalImageIdOk() (*string, bool) {
if o == nil || o.LocalImageId == nil {
return nil, false
}
return o.LocalImageId, true
} | [
0.6262392401695251,
0.0457935631275177,
0.2588289678096771,
0.21878954768180847,
-0.0679185688495636,
0.11442666500806808,
-0.2617422640323639,
1.4155991077423096,
0.7093461751937866,
0.6581497192382812,
-1.159624457359314,
-0.5618754029273987,
-0.628376841545105,
1.2150299549102783,
-0.... |
func (o *ImageImportManifest) HasLocalImageId() bool {
if o != nil && o.LocalImageId != nil {
return true
}
return false
} | [
1.1836638450622559,
-0.25156185030937195,
0.21050618588924408,
-0.5720767974853516,
-0.2943079471588135,
-0.44846224784851074,
-0.622090756893158,
1.955012321472168,
0.5342969298362732,
0.667391836643219,
-0.8077306151390076,
-0.1921522170305252,
-0.22588282823562622,
2.1910457611083984,
... |
func (o *ImageImportManifest) SetLocalImageId(v string) {
o.LocalImageId = &v
} | [
1.0621378421783447,
-0.655234158039093,
-0.14964115619659424,
-0.9456080198287964,
-1.1928845643997192,
0.17112654447555542,
-0.7750035524368286,
0.8589179515838623,
0.8563107252120972,
1.1593350172042847,
-0.3063902258872986,
0.8970882892608643,
-0.47068852186203003,
0.7216587066650391,
... |
func (o *ImageImportManifest) GetOperationUuid() string {
if o == nil || o.OperationUuid == nil {
var ret string
return ret
}
return *o.OperationUuid
} | [
-0.07299502938985825,
0.8450155258178711,
0.4369339346885681,
0.5973936915397644,
-0.4333282709121704,
0.20746076107025146,
1.274950385093689,
0.28415074944496155,
0.7782816886901855,
0.15599749982357025,
0.4831847548484802,
-2.1338047981262207,
-0.531213641166687,
-0.34943461418151855,
... |
func (o *ImageImportManifest) GetOperationUuidOk() (*string, bool) {
if o == nil || o.OperationUuid == nil {
return nil, false
}
return o.OperationUuid, true
} | [
-0.5268009901046753,
0.8252183794975281,
0.6816955804824829,
0.24559636414051056,
-0.3970339596271515,
0.6022459864616394,
1.5868765115737915,
1.0152429342269897,
-0.1516067087650299,
1.2312136888504028,
0.08535660803318024,
-1.838748574256897,
0.28233250975608826,
-0.6605538129806519,
-... |
func (o *ImageImportManifest) HasOperationUuid() bool {
if o != nil && o.OperationUuid != nil {
return true
}
return false
} | [
0.010240910574793816,
1.428993821144104,
0.4963948726654053,
0.04796196147799492,
-0.12875677645206451,
-0.5228182077407837,
0.7220866084098816,
1.039950966835022,
-0.13325893878936768,
0.12186519056558609,
0.020905256271362305,
-2.344801664352417,
0.018488837406039238,
-0.1643119901418686... |
func (o *ImageImportManifest) SetOperationUuid(v string) {
o.OperationUuid = &v
} | [
-0.1393948644399643,
0.6567249298095703,
0.05344894900918007,
-0.6387766599655151,
-0.8714846968650818,
0.28945422172546387,
0.7013934254646301,
0.1331714242696762,
0.16431479156017303,
0.8249260187149048,
0.29234299063682556,
-0.8249440789222717,
-0.3257928788661957,
-1.2969390153884888,
... |
func (b *BoardInfo) NewGame() error {
sg := SnakeGame{
BoardInfo: *b,
CurrentRound: 1,
Score: 0,
GameOver: false,
}
// Set food position
sg.SetFood(sg.BoardInfo.FoodPos)
// Set snake head position
sg.SetSnake()
if err := sg.SetGameState(); err != nil {
return err
}
fmt.Printf("Creat... | [
-0.1212841272354126,
0.6496314406394958,
0.7864417433738708,
-0.11618554592132568,
0.4149586260318756,
0.742941677570343,
-0.46028441190719604,
-0.5407098531723022,
-0.6945957541465759,
0.4727102816104889,
-0.009043946862220764,
-0.08841828256845474,
-0.47443434596061707,
0.808469712734222... |
func (s *SnakeGame) SetFood(p Position) {
s.BoardInfo.FoodPos = p
s.BoardInfo.Board[p.Row][p.Column] = "f"
} | [
-0.24815529584884644,
0.1816493421792984,
0.31217116117477417,
-0.2967449724674225,
0.3094574511051178,
-0.20175540447235107,
-0.4230506122112274,
-0.1808576136827469,
-0.7516925930976868,
-0.11460431665182114,
-0.9112058281898499,
0.5013130307197571,
0.40130093693733215,
0.448441714048385... |
func (s *SnakeGame) SetSnake() {
sn := s.BoardInfo.Snake
b := s.BoardInfo.Board
var bp Position
// Clear existing snake
for i := 0; i < s.BoardInfo.Size.Rows; i++ {
for j := 0; j < s.BoardInfo.Size.Columns; j++ {
b[i][j] = ""
}
}
for i := 0; i < s.BoardInfo.Size.Rows; i++ {
for j := 0; j < s.BoardInfo... | [
-0.5525094270706177,
0.14210207760334015,
0.625274658203125,
-0.5179666876792908,
0.40796133875846863,
-0.42465001344680786,
0.0018821265548467636,
0.38162410259246826,
-0.421171635389328,
0.6014525294303894,
-0.42359381914138794,
1.1232960224151611,
0.14517101645469666,
0.5575370192527771... |
func (s *SnakeGame) CheckGameOver(p Position) {
// Check whether snake passes horizontal borders
if (p.Row < 0) || (p.Row >= s.BoardInfo.Size.Rows) {
s.GameOver = true
}
// Check whether snake passes vertical borders
if (p.Column < 0) || (p.Column >= s.BoardInfo.Size.Columns) {
s.GameOver = true
}
// Check ... | [
-0.03913034126162529,
-0.18014195561408997,
1.2946475744247437,
0.058055296540260315,
-0.3839995265007019,
1.0366883277893066,
-0.3301089406013489,
-0.5245715975761414,
-0.2564595639705658,
0.9785669445991516,
-0.4284493029117584,
-0.305097371339798,
-0.8622207045555115,
0.6872161030769348... |
func (s *SnakeGame) CheckFoundFood(np Position) error {
sb := s.BoardInfo.Snake.Body
nb := []Position{np}
if np == s.BoardInfo.FoodPos {
nb = append(nb, sb...)
s.BoardInfo.Snake.Body = nb
pos := Position{
Row: RealRandom(s.BoardInfo.Size.Rows),
Column: RealRandom(s.BoardInfo.Size.Columns),
}
/... | [
-0.14107725024223328,
-0.31208083033561707,
0.9569123983383179,
-0.055766284465789795,
0.5153118371963501,
-0.16351652145385742,
0.31940385699272156,
-0.8942041397094727,
0.4052793085575104,
0.23710843920707703,
-0.8453913927078247,
0.5236347913742065,
-0.061319030821323395,
1.109123468399... |
func (s *SnakeGame) EndGame() error {
fmt.Println("GAME OVER!")
fmt.Println("Score: ", s.Score)
if err := os.Remove("temp/gamestate.json"); err != nil {
return err
}
return nil
} | [
-0.3639792203903198,
0.2560429573059082,
0.6772595047950745,
-0.9584175944328308,
0.26148688793182373,
0.7409576773643494,
-0.5361181497573853,
-0.08577724546194077,
-0.6551016569137573,
1.380429983139038,
-0.07826672494411469,
-0.24143552780151367,
-0.8685860633850098,
0.7514894008636475,... |
func (s *SnakeGame) MoveNext(np Position) {
// Check if game over
s.CheckGameOver(np)
// if s.GameOver == true {
// s.EndGame()
// }
// Check if next pos is food
s.CheckFoundFood(np)
} | [
-1.3140060901641846,
-0.042973779141902924,
0.785969078540802,
0.8411317467689514,
-0.8192299008369446,
0.25696536898612976,
-0.7179331183433533,
-0.6273695230484009,
0.38210517168045044,
1.0117056369781494,
-0.27722978591918945,
0.04084913805127144,
-0.4509686827659607,
0.3567861020565033... |
func newUpdateStoredInfoTypeUpdateStoredInfoTypeRequest(ctx context.Context, f *StoredInfoType, c *Client) (map[string]interface{}, error) {
req := map[string]interface{}{}
res := f
_ = res
if v := f.DisplayName; !dcl.IsEmptyValueIndirect(v) {
req["displayName"] = v
}
if v := f.Description; !dcl.IsEmptyValueIn... | [
-1.330177903175354,
-0.32321062684059143,
0.6453105211257935,
-0.5311869382858276,
-0.3297247290611267,
-0.7229530811309814,
0.5734829902648926,
-0.15554045140743256,
0.10041474550962448,
-0.11042065173387527,
0.15514610707759857,
0.6522903442382812,
-0.04146251082420349,
0.546256184577941... |
func marshalUpdateStoredInfoTypeUpdateStoredInfoTypeRequest(c *Client, m map[string]interface{}) ([]byte, error) {
return json.Marshal(m)
} | [
-1.268303632736206,
-0.36923617124557495,
0.5728277564048767,
-0.05618542432785034,
-0.29149800539016724,
0.15698210895061493,
-0.08798497915267944,
-0.22147499024868011,
0.47661662101745605,
0.3909091353416443,
0.16361868381500244,
0.7206530570983887,
-0.17603546380996704,
0.0013850331306... |
func (c *Client) listStoredInfoTypeRaw(ctx context.Context, r *StoredInfoType, pageToken string, pageSize int32) ([]byte, error) {
u, err := r.urlNormalized().listURL(c.Config.BasePath)
if err != nil {
return nil, err
}
m := make(map[string]string)
if pageToken != "" {
m["pageToken"] = pageToken
}
if pageS... | [
-0.7583528161048889,
0.10418538749217987,
0.5521305799484253,
-0.4020822048187256,
0.09216252714395523,
0.10920881479978561,
-0.6644116640090942,
-0.5368309020996094,
0.6237407922744751,
-0.1373826414346695,
-0.6241896748542786,
0.7362143397331238,
-0.3216645121574402,
0.6076705455780029,
... |
func canonicalizeStoredInfoTypeDesiredState(rawDesired, rawInitial *StoredInfoType, opts ...dcl.ApplyOption) (*StoredInfoType, error) {
if rawInitial == nil {
// Since the initial state is empty, the desired state is all we have.
// We canonicalize the remaining nested objects with nil to pick up defaults.
rawD... | [
-0.41853097081184387,
-0.47364673018455505,
0.6002376079559326,
-0.42068353295326233,
-0.006135778035968542,
-0.20591145753860474,
0.31997641921043396,
0.3389962911605835,
-0.18707314133644104,
-0.9373282194137573,
-0.010494448244571686,
0.6834661960601807,
0.7366824150085449,
0.2347091436... |
func diffStoredInfoType(c *Client, desired, actual *StoredInfoType, opts ...dcl.ApplyOption) ([]*dcl.FieldDiff, error) {
if desired == nil || actual == nil {
return nil, fmt.Errorf("nil resource passed to diff - always a programming error: %#v, %#v", desired, actual)
}
c.Config.Logger.Infof("Diff function called ... | [
-1.0023058652877808,
-0.3491498827934265,
0.7147983312606812,
0.026379680261015892,
0.24096915125846863,
0.24444761872291565,
0.5755877494812012,
-0.9587720632553101,
0.22214719653129578,
-0.250892698764801,
-0.37442252039909363,
0.48239803314208984,
0.020023435354232788,
0.334528058767318... |
func (r *StoredInfoType) urlNormalized() *StoredInfoType {
normalized := dcl.Copy(*r).(StoredInfoType)
normalized.Name = dcl.SelfLinkToName(r.Name)
normalized.DisplayName = dcl.SelfLinkToName(r.DisplayName)
normalized.Description = dcl.SelfLinkToName(r.Description)
normalized.Parent = r.Parent
normalized.Location... | [
-0.19243668019771576,
-0.8054850101470947,
0.2333066165447235,
-0.6923836469650269,
-0.7799046039581299,
-0.2306922823190689,
-0.22930236160755157,
0.22596970200538635,
0.9645739197731018,
-0.9532024264335632,
-0.8037400245666504,
0.2256489098072052,
-0.2249676138162613,
0.1621227860450744... |
func (r *StoredInfoType) marshal(c *Client) ([]byte, error) {
m, err := expandStoredInfoType(c, r)
if err != nil {
return nil, fmt.Errorf("error marshalling StoredInfoType: %w", err)
}
m = encodeStoredInfoTypeCreateRequest(m)
return json.Marshal(m)
} | [
0.15786676108837128,
0.35731440782546997,
0.294725239276886,
0.10882177203893661,
0.04605591297149658,
0.894162654876709,
-0.3067542612552643,
-0.182875856757164,
0.3099682331085205,
-0.2510918080806732,
-0.5728694200515747,
1.1439478397369385,
-0.896695077419281,
0.18716542422771454,
1.... |
func unmarshalStoredInfoType(b []byte, c *Client, res *StoredInfoType) (*StoredInfoType, error) {
var m map[string]interface{}
if err := json.Unmarshal(b, &m); err != nil {
return nil, err
}
return unmarshalMapStoredInfoType(m, c, res)
} | [
0.12027449160814285,
-0.36284202337265015,
0.2045890837907791,
-0.23267804086208344,
-0.12259068340063095,
0.21694831550121307,
0.4883645176887512,
-0.18566960096359253,
0.32231780886650085,
-0.12257833033800125,
-0.5112621188163757,
-0.14004398882389069,
-1.0727201700210571,
-0.1905713826... |
func expandStoredInfoType(c *Client, f *StoredInfoType) (map[string]interface{}, error) {
m := make(map[string]interface{})
res := f
_ = res
if v := f.Name; dcl.ValueShouldBeSent(v) {
m["name"] = v
}
if v := f.DisplayName; dcl.ValueShouldBeSent(v) {
m["displayName"] = v
}
if v := f.Description; dcl.ValueSho... | [
-0.4861402213573456,
0.13346707820892334,
0.8169283270835876,
-0.748843252658844,
-0.6076858639717102,
0.0907091349363327,
0.7863282561302185,
-0.37958166003227234,
0.40813180804252625,
-0.8669208288192749,
-0.25921037793159485,
0.4529356062412262,
0.36435171961784363,
0.7012383341789246,
... |
func flattenStoredInfoType(c *Client, i interface{}, res *StoredInfoType) *StoredInfoType {
m, ok := i.(map[string]interface{})
if !ok {
return nil
}
if len(m) == 0 {
return nil
}
resultRes := &StoredInfoType{}
resultRes.Name = dcl.SelfLinkToName(dcl.FlattenString(m["name"]))
resultRes.DisplayName = dcl.Fl... | [
-0.47598567605018616,
-0.08400480449199677,
0.26420626044273376,
-0.6853761076927185,
-0.12638317048549652,
-0.03843490034341812,
0.063754141330719,
-0.28380072116851807,
0.7165849208831787,
-0.5641182065010071,
-0.6363882422447205,
0.1320483535528183,
-1.0143792629241943,
-0.4604123532772... |
func expandStoredInfoTypeLargeCustomDictionaryMap(c *Client, f map[string]StoredInfoTypeLargeCustomDictionary, res *StoredInfoType) (map[string]interface{}, error) {
if f == nil {
return nil, nil
}
items := make(map[string]interface{})
for k, item := range f {
i, err := expandStoredInfoTypeLargeCustomDictionar... | [
-1.032854676246643,
0.5194065570831299,
0.2120286226272583,
-0.6154546737670898,
0.06846538931131363,
-0.1876765489578247,
0.023656047880649567,
0.5967366695404053,
0.627488374710083,
0.08572034537792206,
-0.2824508547782898,
-0.14572061598300934,
-0.12974360585212708,
0.2631101906299591,
... |
func expandStoredInfoTypeLargeCustomDictionarySlice(c *Client, f []StoredInfoTypeLargeCustomDictionary, res *StoredInfoType) ([]map[string]interface{}, error) {
if f == nil {
return nil, nil
}
items := []map[string]interface{}{}
for _, item := range f {
i, err := expandStoredInfoTypeLargeCustomDictionary(c, &i... | [
-1.1713697910308838,
0.6499714851379395,
0.2543487548828125,
-0.4229205846786499,
0.4177728593349457,
-0.5066652894020081,
-0.5475276708602905,
0.5897960662841797,
-0.012163989245891571,
0.6282262802124023,
0.22334057092666626,
0.23994743824005127,
0.048904407769441605,
0.49020859599113464... |
func flattenStoredInfoTypeLargeCustomDictionaryMap(c *Client, i interface{}, res *StoredInfoType) map[string]StoredInfoTypeLargeCustomDictionary {
a, ok := i.(map[string]interface{})
if !ok {
return map[string]StoredInfoTypeLargeCustomDictionary{}
}
if len(a) == 0 {
return map[string]StoredInfoTypeLargeCustomD... | [
-1.0045931339263916,
0.24695202708244324,
0.31690362095832825,
-0.8424543142318726,
0.15210001170635223,
-0.2027668058872223,
-0.0016390983946621418,
0.3262713849544525,
0.598504364490509,
-0.011722608469426632,
-0.40215003490448,
-0.033203426748514175,
-0.3991367220878601,
0.1370923519134... |
func flattenStoredInfoTypeLargeCustomDictionarySlice(c *Client, i interface{}, res *StoredInfoType) []StoredInfoTypeLargeCustomDictionary {
a, ok := i.([]interface{})
if !ok {
return []StoredInfoTypeLargeCustomDictionary{}
}
if len(a) == 0 {
return []StoredInfoTypeLargeCustomDictionary{}
}
items := make([]S... | [
-1.240090250968933,
0.5394079089164734,
0.3070020377635956,
-0.30367422103881836,
0.3703792095184326,
-0.5168452262878418,
-0.6025133728981018,
0.24156346917152405,
0.09915870428085327,
0.5023409128189087,
-0.05904380977153778,
0.3665814697742462,
-0.34761136770248413,
0.3070385158061981,
... |
func expandStoredInfoTypeLargeCustomDictionary(c *Client, f *StoredInfoTypeLargeCustomDictionary, res *StoredInfoType) (map[string]interface{}, error) {
if dcl.IsEmptyValueIndirect(f) {
return nil, nil
}
m := make(map[string]interface{})
if v, err := expandStoredInfoTypeLargeCustomDictionaryOutputPath(c, f.Outpu... | [
-0.4393974244594574,
0.19829480350017548,
0.5141700506210327,
-0.7990832328796387,
-0.6412164568901062,
-0.04062258079648018,
0.5598309636116028,
-0.1105666309595108,
0.28517380356788635,
-0.2881265878677368,
0.18215122818946838,
0.36171770095825195,
0.26069021224975586,
0.2882013618946075... |
func flattenStoredInfoTypeLargeCustomDictionary(c *Client, i interface{}, res *StoredInfoType) *StoredInfoTypeLargeCustomDictionary {
m, ok := i.(map[string]interface{})
if !ok {
return nil
}
r := &StoredInfoTypeLargeCustomDictionary{}
if dcl.IsEmptyValueIndirect(i) {
return EmptyStoredInfoTypeLargeCustomDic... | [
-0.7077770829200745,
0.4770684838294983,
0.1370164006948471,
-0.8780653476715088,
-0.45744985342025757,
-0.22616785764694214,
0.0972619578242302,
0.0593293197453022,
0.4196486175060272,
-0.22057318687438965,
-0.5508707761764526,
0.4283336400985718,
-0.4242263734340668,
-0.06758160889148712... |
func expandStoredInfoTypeLargeCustomDictionaryOutputPathMap(c *Client, f map[string]StoredInfoTypeLargeCustomDictionaryOutputPath, res *StoredInfoType) (map[string]interface{}, error) {
if f == nil {
return nil, nil
}
items := make(map[string]interface{})
for k, item := range f {
i, err := expandStoredInfoType... | [
-0.8686249852180481,
0.30636972188949585,
0.33903926610946655,
-0.20053988695144653,
-0.007000416982918978,
-0.1882062405347824,
1.0049093961715698,
0.3746408224105835,
0.2980118989944458,
0.32727327942848206,
0.14040033519268036,
-1.195046305656433,
-0.32396233081817627,
-0.30415448546409... |
func expandStoredInfoTypeLargeCustomDictionaryOutputPathSlice(c *Client, f []StoredInfoTypeLargeCustomDictionaryOutputPath, res *StoredInfoType) ([]map[string]interface{}, error) {
if f == nil {
return nil, nil
}
items := []map[string]interface{}{}
for _, item := range f {
i, err := expandStoredInfoTypeLargeCu... | [
-1.2586764097213745,
0.7289406061172485,
0.3855120837688446,
0.2432755082845688,
0.20316742360591888,
-0.601310670375824,
0.18302278220653534,
0.4271882474422455,
-0.2263217270374298,
0.6884905695915222,
0.6448532938957214,
-0.616252601146698,
0.04331224784255028,
-0.33113428950309753,
0... |
func flattenStoredInfoTypeLargeCustomDictionaryOutputPathMap(c *Client, i interface{}, res *StoredInfoType) map[string]StoredInfoTypeLargeCustomDictionaryOutputPath {
a, ok := i.(map[string]interface{})
if !ok {
return map[string]StoredInfoTypeLargeCustomDictionaryOutputPath{}
}
if len(a) == 0 {
return map[str... | [
-1.0618689060211182,
-0.066651351749897,
0.4123310446739197,
-0.3702552318572998,
0.0801793560385704,
-0.014750100672245026,
0.9302900433540344,
-0.03688472509384155,
0.22320914268493652,
0.20452232658863068,
0.012173166498541832,
-0.9621323943138123,
-0.2219776064157486,
-0.27005046606063... |
func flattenStoredInfoTypeLargeCustomDictionaryOutputPathSlice(c *Client, i interface{}, res *StoredInfoType) []StoredInfoTypeLargeCustomDictionaryOutputPath {
a, ok := i.([]interface{})
if !ok {
return []StoredInfoTypeLargeCustomDictionaryOutputPath{}
}
if len(a) == 0 {
return []StoredInfoTypeLargeCustomDicti... | [
-1.2506122589111328,
0.46093371510505676,
0.5013956427574158,
0.24188147485256195,
0.19192536175251007,
-0.3665817975997925,
0.018871106207370758,
-0.07767342031002045,
-0.09786693006753922,
0.5806625485420227,
0.49582386016845703,
-0.576062023639679,
-0.13056662678718567,
-0.4183269143104... |
func expandStoredInfoTypeLargeCustomDictionaryOutputPath(c *Client, f *StoredInfoTypeLargeCustomDictionaryOutputPath, res *StoredInfoType) (map[string]interface{}, error) {
if dcl.IsEmptyValueIndirect(f) {
return nil, nil
}
m := make(map[string]interface{})
if v := f.Path; !dcl.IsEmptyValueIndirect(v) {
m["pat... | [
-0.6049988865852356,
0.36876142024993896,
0.22341056168079376,
-0.7770624160766602,
-0.7525165677070618,
-0.11979008466005325,
0.3940209746360779,
0.15192605555057526,
0.4420565068721771,
-0.11400289833545685,
0.6323010921478271,
-0.3558684289455414,
-0.043142691254615784,
-0.5083242654800... |
func flattenStoredInfoTypeLargeCustomDictionaryOutputPath(c *Client, i interface{}, res *StoredInfoType) *StoredInfoTypeLargeCustomDictionaryOutputPath {
m, ok := i.(map[string]interface{})
if !ok {
return nil
}
r := &StoredInfoTypeLargeCustomDictionaryOutputPath{}
if dcl.IsEmptyValueIndirect(i) {
return Emp... | [
-0.6929506063461304,
0.2394019216299057,
0.10866574198007584,
-0.7796092629432678,
-0.44734153151512146,
-0.13874737918376923,
0.4762515127658844,
-0.1522422730922699,
0.2796808183193207,
0.027856692671775818,
0.34158480167388916,
-0.2116815745830536,
-0.5464212894439697,
-0.80254536867141... |
func expandStoredInfoTypeLargeCustomDictionaryCloudStorageFileSetMap(c *Client, f map[string]StoredInfoTypeLargeCustomDictionaryCloudStorageFileSet, res *StoredInfoType) (map[string]interface{}, error) {
if f == nil {
return nil, nil
}
items := make(map[string]interface{})
for k, item := range f {
i, err := ex... | [
-0.25438636541366577,
0.4143677055835724,
0.4762173891067505,
-0.39817312359809875,
0.25585830211639404,
-0.047776661813259125,
-0.12643945217132568,
0.7054654359817505,
0.620512068271637,
-0.2181698977947235,
-0.05848078057169914,
-0.6023745536804199,
0.31294214725494385,
-0.2313812673091... |
func expandStoredInfoTypeLargeCustomDictionaryCloudStorageFileSetSlice(c *Client, f []StoredInfoTypeLargeCustomDictionaryCloudStorageFileSet, res *StoredInfoType) ([]map[string]interface{}, error) {
if f == nil {
return nil, nil
}
items := []map[string]interface{}{}
for _, item := range f {
i, err := expandSto... | [
-0.31359851360321045,
0.14642499387264252,
0.49050983786582947,
-0.2800939977169037,
0.24378158152103424,
-0.4030838906764984,
-0.08936963230371475,
0.3557865023612976,
-0.2461291253566742,
0.33068302273750305,
0.1837010681629181,
-0.3381783664226532,
-0.1215745359659195,
0.088971354067325... |
func flattenStoredInfoTypeLargeCustomDictionaryCloudStorageFileSetMap(c *Client, i interface{}, res *StoredInfoType) map[string]StoredInfoTypeLargeCustomDictionaryCloudStorageFileSet {
a, ok := i.(map[string]interface{})
if !ok {
return map[string]StoredInfoTypeLargeCustomDictionaryCloudStorageFileSet{}
}
if len... | [
-0.44282880425453186,
-0.09290159493684769,
0.5822598934173584,
-0.4977538287639618,
0.3126102387905121,
0.07474852353334427,
-0.15610885620117188,
0.1764361411333084,
0.35793378949165344,
-0.3278597891330719,
-0.17343632876873016,
-0.524193286895752,
0.13257330656051636,
-0.40416061878204... |
func flattenStoredInfoTypeLargeCustomDictionaryCloudStorageFileSetSlice(c *Client, i interface{}, res *StoredInfoType) []StoredInfoTypeLargeCustomDictionaryCloudStorageFileSet {
a, ok := i.([]interface{})
if !ok {
return []StoredInfoTypeLargeCustomDictionaryCloudStorageFileSet{}
}
if len(a) == 0 {
return []Sto... | [
-0.5297201871871948,
-0.190436452627182,
0.5132301449775696,
-0.04867186024785042,
0.33871352672576904,
-0.16495312750339508,
-0.025811530649662018,
-0.1337876170873642,
-0.16194367408752441,
0.10829581320285797,
0.2114763706922531,
-0.43561407923698425,
-0.41507184505462646,
-0.2213332206... |
func expandStoredInfoTypeLargeCustomDictionaryCloudStorageFileSet(c *Client, f *StoredInfoTypeLargeCustomDictionaryCloudStorageFileSet, res *StoredInfoType) (map[string]interface{}, error) {
if dcl.IsEmptyValueIndirect(f) {
return nil, nil
}
m := make(map[string]interface{})
if v := f.Url; !dcl.IsEmptyValueIndir... | [
0.03477446734905243,
0.5161229968070984,
0.43111085891723633,
-1.2018159627914429,
-0.026910914108157158,
-0.17179641127586365,
-0.1813635528087616,
0.5074188113212585,
0.222633495926857,
-0.333670049905777,
0.3847414553165436,
0.006632314529269934,
0.24860543012619019,
-0.2311680763959884... |
func flattenStoredInfoTypeLargeCustomDictionaryCloudStorageFileSet(c *Client, i interface{}, res *StoredInfoType) *StoredInfoTypeLargeCustomDictionaryCloudStorageFileSet {
m, ok := i.(map[string]interface{})
if !ok {
return nil
}
r := &StoredInfoTypeLargeCustomDictionaryCloudStorageFileSet{}
if dcl.IsEmptyValu... | [
-0.13315272331237793,
0.40617838501930237,
0.3095766603946686,
-0.9817386865615845,
0.2617686688899994,
-0.17870357632637024,
-0.059174180030822754,
-0.08753281086683273,
0.006429027300328016,
-0.4314020574092865,
0.07360627502202988,
-0.19768479466438293,
-0.3423992097377777,
-0.604621648... |
func expandStoredInfoTypeLargeCustomDictionaryBigQueryFieldMap(c *Client, f map[string]StoredInfoTypeLargeCustomDictionaryBigQueryField, res *StoredInfoType) (map[string]interface{}, error) {
if f == nil {
return nil, nil
}
items := make(map[string]interface{})
for k, item := range f {
i, err := expandStoredIn... | [
-1.016205072402954,
0.7810865044593811,
0.2986201047897339,
-0.6525874733924866,
0.4693027436733246,
0.13915784657001495,
0.5285860896110535,
0.5816320776939392,
0.4982442259788513,
-0.24183973670005798,
-0.3804103136062622,
-0.004325357731431723,
-0.5026373267173767,
-0.3066929280757904,
... |
func expandStoredInfoTypeLargeCustomDictionaryBigQueryFieldSlice(c *Client, f []StoredInfoTypeLargeCustomDictionaryBigQueryField, res *StoredInfoType) ([]map[string]interface{}, error) {
if f == nil {
return nil, nil
}
items := []map[string]interface{}{}
for _, item := range f {
i, err := expandStoredInfoTypeL... | [
-1.3265143632888794,
0.4915422201156616,
0.257251501083374,
-0.301969975233078,
0.3241557776927948,
-0.2635085880756378,
-0.20860664546489716,
0.6709399223327637,
-0.19217070937156677,
0.20743992924690247,
-0.2531597912311554,
-0.10586535930633545,
-0.46426427364349365,
-0.0497068576514720... |
func flattenStoredInfoTypeLargeCustomDictionaryBigQueryFieldMap(c *Client, i interface{}, res *StoredInfoType) map[string]StoredInfoTypeLargeCustomDictionaryBigQueryField {
a, ok := i.(map[string]interface{})
if !ok {
return map[string]StoredInfoTypeLargeCustomDictionaryBigQueryField{}
}
if len(a) == 0 {
retur... | [
-0.9871504902839661,
0.3879856467247009,
0.38100507855415344,
-0.7993645071983337,
0.6181015968322754,
0.3556629717350006,
0.36936861276626587,
0.13172999024391174,
0.4856277108192444,
-0.3525286614894867,
-0.5569509863853455,
-0.14512909948825836,
-0.7003468871116638,
-0.6306928396224976,... |
func flattenStoredInfoTypeLargeCustomDictionaryBigQueryFieldSlice(c *Client, i interface{}, res *StoredInfoType) []StoredInfoTypeLargeCustomDictionaryBigQueryField {
a, ok := i.([]interface{})
if !ok {
return []StoredInfoTypeLargeCustomDictionaryBigQueryField{}
}
if len(a) == 0 {
return []StoredInfoTypeLargeCu... | [
-1.3525174856185913,
0.20344866812229156,
0.3355281949043274,
-0.24316981434822083,
0.38356107473373413,
0.07794512808322906,
-0.3356860876083374,
0.05617279186844826,
0.14657047390937805,
0.06238212436437607,
-0.3823550343513489,
-0.0702558159828186,
-0.7247273325920105,
-0.49545747041702... |
func expandStoredInfoTypeLargeCustomDictionaryBigQueryField(c *Client, f *StoredInfoTypeLargeCustomDictionaryBigQueryField, res *StoredInfoType) (map[string]interface{}, error) {
if dcl.IsEmptyValueIndirect(f) {
return nil, nil
}
m := make(map[string]interface{})
if v, err := expandStoredInfoTypeLargeCustomDicti... | [
-0.7405158281326294,
0.6921126246452332,
0.3762918710708618,
-0.7832364439964294,
-0.6043092608451843,
0.40372753143310547,
0.16396579146385193,
0.20638802647590637,
0.2082100808620453,
-0.5210559964179993,
0.3456168472766876,
0.5581484436988831,
-0.04988521710038185,
-0.02273515611886978,... |
func flattenStoredInfoTypeLargeCustomDictionaryBigQueryField(c *Client, i interface{}, res *StoredInfoType) *StoredInfoTypeLargeCustomDictionaryBigQueryField {
m, ok := i.(map[string]interface{})
if !ok {
return nil
}
r := &StoredInfoTypeLargeCustomDictionaryBigQueryField{}
if dcl.IsEmptyValueIndirect(i) {
r... | [
-0.5951007604598999,
0.6962197422981262,
0.2614400386810303,
-0.7621320486068726,
-0.09817977249622345,
0.45546388626098633,
0.11195078492164612,
0.09932994097471237,
0.41323715448379517,
-0.5482883453369141,
-0.10827329754829407,
0.3520447909832001,
-0.6688454747200012,
-0.860648691654205... |
func expandStoredInfoTypeLargeCustomDictionaryBigQueryFieldTableMap(c *Client, f map[string]StoredInfoTypeLargeCustomDictionaryBigQueryFieldTable, res *StoredInfoType) (map[string]interface{}, error) {
if f == nil {
return nil, nil
}
items := make(map[string]interface{})
for k, item := range f {
i, err := expa... | [
-0.5828604102134705,
0.9614149928092957,
0.42913562059402466,
0.17797401547431946,
0.3279145359992981,
-0.08360563963651657,
0.7169316411018372,
0.4735617935657501,
0.08255922794342041,
0.1459234654903412,
-0.2942206561565399,
-0.21518635749816895,
-0.30739399790763855,
0.07332613319158554... |
func expandStoredInfoTypeLargeCustomDictionaryBigQueryFieldTableSlice(c *Client, f []StoredInfoTypeLargeCustomDictionaryBigQueryFieldTable, res *StoredInfoType) ([]map[string]interface{}, error) {
if f == nil {
return nil, nil
}
items := []map[string]interface{}{}
for _, item := range f {
i, err := expandStore... | [
-0.9549039602279663,
1.325440526008606,
0.34447866678237915,
0.45422255992889404,
0.14848262071609497,
-0.12402147799730301,
0.2395930141210556,
0.3960350453853607,
-0.40854567289352417,
0.20399019122123718,
-0.13522844016551971,
0.12664970755577087,
0.12417271733283997,
0.3580338060855865... |
func flattenStoredInfoTypeLargeCustomDictionaryBigQueryFieldTableMap(c *Client, i interface{}, res *StoredInfoType) map[string]StoredInfoTypeLargeCustomDictionaryBigQueryFieldTable {
a, ok := i.(map[string]interface{})
if !ok {
return map[string]StoredInfoTypeLargeCustomDictionaryBigQueryFieldTable{}
}
if len(a)... | [
-0.6132807731628418,
0.5701302289962769,
0.5017616152763367,
-0.07628390192985535,
0.3835112750530243,
0.16476477682590485,
0.5802736878395081,
-0.019353680312633514,
0.055882640182971954,
-0.10472360998392105,
-0.5064411759376526,
-0.19952000677585602,
-0.6321510076522827,
0.0128591610118... |
func flattenStoredInfoTypeLargeCustomDictionaryBigQueryFieldTableSlice(c *Client, i interface{}, res *StoredInfoType) []StoredInfoTypeLargeCustomDictionaryBigQueryFieldTable {
a, ok := i.([]interface{})
if !ok {
return []StoredInfoTypeLargeCustomDictionaryBigQueryFieldTable{}
}
if len(a) == 0 {
return []Stored... | [
-1.0239176750183105,
0.9890164732933044,
0.46934303641319275,
0.3967215418815613,
0.1760265976190567,
0.07593293488025665,
0.08435796201229095,
-0.08596605807542801,
-0.23082798719406128,
0.095466747879982,
-0.30400335788726807,
0.22710074484348297,
-0.2537286579608917,
0.12835803627967834... |
func expandStoredInfoTypeLargeCustomDictionaryBigQueryFieldTable(c *Client, f *StoredInfoTypeLargeCustomDictionaryBigQueryFieldTable, res *StoredInfoType) (map[string]interface{}, error) {
if dcl.IsEmptyValueIndirect(f) {
return nil, nil
}
m := make(map[string]interface{})
if v, err := dcl.SelfLinkToNameExpander... | [
-0.3925184905529022,
0.8217430710792542,
0.54763263463974,
-0.6815776824951172,
-0.7766170501708984,
0.18697936832904816,
0.260234534740448,
0.18414486944675446,
0.2514779567718506,
-0.5528867840766907,
0.38961103558540344,
0.4056505560874939,
0.11990220844745636,
0.3926907479763031,
-0.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.