text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func NewCurlP81() SpongeFunction {
return NewCurl(CurlP81)
} | [
-0.20920470356941223,
-0.8799474835395813,
0.0005319928750395775,
0.16977302730083466,
-1.06801176071167,
0.2137356847524643,
0.24954676628112793,
0.18986882269382477,
0.7710767388343811,
0.15702952444553375,
-0.2088949978351593,
0.5922842621803284,
-0.21719245612621307,
-0.640090465545654... |
func (c *Curl) NumRounds() int {
return int(c.rounds)
} | [
0.348798006772995,
0.23106002807617188,
0.0408724881708622,
-0.6856071949005127,
0.17592063546180725,
-0.32396283745765686,
0.25445565581321716,
-0.3737591505050659,
0.34273096919059753,
-0.41174450516700745,
-1.079846739768982,
-0.18192751705646515,
-1.038299560546875,
0.501156210899353,
... |
func (c *Curl) CopyState(s Trits) {
copy(s, c.state[:])
} | [
-0.24471604824066162,
-0.9659635424613953,
0.020577576011419296,
-0.27933576703071594,
-0.08261578530073166,
0.38411152362823486,
0.23795324563980103,
-0.0756833404302597,
0.8514630198478699,
0.2633945643901825,
-0.46145740151405334,
-0.10951615124940872,
0.07696475833654404,
-0.2534520030... |
func (c *Curl) Squeeze(tritsCount int) (Trits, error) {
if tritsCount%HashTrinarySize != 0 {
return nil, ErrInvalidSqueezeLength
}
out := make(Trits, tritsCount)
for p := out; len(p) >= HashTrinarySize; p = p[HashTrinarySize:] {
c.squeeze(p)
}
return out, nil
} | [
-0.05428174138069153,
0.17588071525096893,
0.4331984221935272,
-0.4417170584201813,
-0.006710642948746681,
-0.2758120894432068,
0.17502471804618835,
-0.8884145617485046,
0.3807237446308136,
-0.11736848205327988,
-0.1567399501800537,
-0.5456873774528503,
-0.6268904805183411,
-0.510475635528... |
func (c *Curl) MustSqueeze(tritsCount int) Trits {
out, err := c.Squeeze(tritsCount)
if err != nil {
panic(err)
}
return out
} | [
-0.3777490258216858,
-0.0019550886936485767,
0.31654080748558044,
0.19004254043102264,
0.5271311402320862,
0.1788308173418045,
-0.307598739862442,
-0.8961561918258667,
0.04450512304902077,
0.18393750488758087,
0.05751302093267441,
-0.7941404581069946,
-0.8328982591629028,
0.723851680755615... |
func (c *Curl) SqueezeTrytes(tritsCount int) (Trytes, error) {
trits, err := c.Squeeze(tritsCount)
if err != nil {
return "", err
}
return MustTritsToTrytes(trits), nil
} | [
-0.6385896801948547,
-0.1484946608543396,
0.3726857900619507,
-0.5702103972434998,
-0.5288960337638855,
-0.4148698151111603,
0.17096276581287384,
-0.47798392176628113,
0.3399946391582489,
0.7848597764968872,
-0.47044360637664795,
-0.5104144215583801,
-1.0625287294387817,
-0.177190452814102... |
func (c *Curl) MustSqueezeTrytes(tritsCount int) Trytes {
return MustTritsToTrytes(c.MustSqueeze(tritsCount))
} | [
-0.12110994756221771,
-0.019107691943645477,
0.05962403118610382,
0.028570814058184624,
0.5059693455696106,
-0.4121374487876892,
0.07328401505947113,
-0.14183014631271362,
0.33597221970558167,
-0.15282364189624786,
-0.4290333390235901,
-0.0648433044552803,
-0.15675397217273712,
0.857719302... |
func (c *Curl) Absorb(in Trits) error {
if len(in) == 0 || len(in)%HashTrinarySize != 0 {
return errors.Wrap(ErrInvalidTritsLength, "trits slice length must be a multiple of 243")
}
if c.direction != SpongeAbsorbing {
panic("absorb after squeeze")
}
for len(in) >= HashTrinarySize {
copy(c.state[:HashTrinary... | [
-0.7257719039916992,
0.17490121722221375,
0.5549259781837463,
-0.9286214113235474,
0.1681831032037735,
0.4961126744747162,
0.9614412784576416,
0.5600289702415466,
0.9056933522224426,
-0.36117514967918396,
-0.3575392961502075,
0.08196638524532318,
-0.18353021144866943,
0.14928016066551208,
... |
func (c *Curl) AbsorbTrytes(in Trytes) error {
if len(in) == 0 || len(in)%HashTrytesSize != 0 {
return errors.Wrap(ErrInvalidTrytesLength, "trytes length must be a multiple of 81")
}
trits, err := TrytesToTrits(in)
if err != nil {
return err
}
return c.Absorb(trits)
} | [
-0.4789568781852722,
0.19028952717781067,
0.36058497428894043,
-0.47700685262680054,
-0.18648545444011688,
0.1302463710308075,
0.1679266095161438,
0.6907190680503845,
1.0125036239624023,
0.39008408784866333,
0.10015096515417099,
0.12848514318466187,
-0.05354996398091316,
0.7987596988677979... |
func (c *Curl) MustAbsorbTrytes(in Trytes) {
err := c.Absorb(MustTrytesToTrits(in))
if err != nil {
panic(err)
}
} | [
-0.2939375936985016,
0.041489988565444946,
0.3105793595314026,
-0.7427599430084229,
-0.23632307350635529,
1.3065699338912964,
-0.15324372053146362,
-0.35129547119140625,
-0.14167886972427368,
0.38464781641960144,
-0.17455805838108063,
0.31660616397857666,
-0.057421986013650894,
1.637221574... |
func (c *Curl) transform() {
var tmp [StateSize]int8
transform(&tmp, &c.state, uint(c.rounds))
// for odd number of rounds we need to copy the buffer into the state
if c.rounds%2 != 0 {
copy(c.state[:], tmp[:])
}
} | [
-1.0313611030578613,
-0.14105737209320068,
0.39486050605773926,
-1.0095683336257935,
0.3980519771575928,
-0.2711699903011322,
1.118607997894287,
-0.04456080496311188,
0.8992631435394287,
-0.174063041806221,
-0.49562862515449524,
0.00392983527854085,
-0.6358821392059326,
0.330134779214859,
... |
func (c *Curl) Reset() {
for i := range c.state {
c.state[i] = 0
}
c.direction = SpongeAbsorbing
} | [
-0.8459525108337402,
-0.42232322692871094,
-0.0023082613479346037,
-0.8245260119438171,
0.5044795274734497,
0.6099950671195984,
1.3166682720184326,
0.064679354429245,
-0.2909964919090271,
0.16087386012077332,
-0.4261292517185211,
0.4771345555782318,
-0.07611790299415588,
0.3966704308986664... |
func HashTrits(trits Trits, rounds ...CurlRounds) (Trits, error) {
c := NewCurl(rounds...)
if err := c.Absorb(trits); err != nil {
return nil, err
}
return c.Squeeze(HashTrinarySize)
} | [
0.5064123272895813,
0.28282487392425537,
0.38976413011550903,
-0.7541628479957581,
0.3840580880641937,
-0.24246743321418762,
0.23121945559978485,
-0.11115685105323792,
0.015233563259243965,
-0.4093376100063324,
-0.3982084095478058,
-0.25902023911476135,
-0.36043161153793335,
-0.38457161188... |
func HashTrytes(t Trytes, rounds ...CurlRounds) (Trytes, error) {
c := NewCurl(rounds...)
if err := c.AbsorbTrytes(t); err != nil {
return "", err
}
return c.SqueezeTrytes(HashTrinarySize)
} | [
0.7037641406059265,
0.4201885759830475,
0.45505815744400024,
-0.46067389845848083,
0.08741112798452377,
-0.9110768437385559,
-0.5925648808479309,
0.3779284954071045,
-0.10067351162433624,
0.6832243800163269,
-0.8935429453849792,
-0.5399976968765259,
0.061947643756866455,
0.13883076608181,
... |
func MustHashTrytes(t Trytes, rounds ...CurlRounds) Trytes {
trytes, err := HashTrytes(t, rounds...)
if err != nil {
panic(err)
}
return trytes
} | [
0.08179540187120438,
0.29347532987594604,
0.4198707938194275,
0.4105207920074463,
-0.22890016436576843,
0.5826572775840759,
-1.3791780471801758,
-0.4956590235233307,
-0.11679059267044067,
0.7815831303596497,
-0.5604758858680725,
-0.17189227044582367,
0.06520292907953262,
0.8992550373077393... |
func (c *Curl) Clone() SpongeFunction {
return &Curl{
state: c.state,
rounds: c.rounds,
direction: c.direction,
}
} | [
0.16760726273059845,
-1.3634551763534546,
0.35058072209358215,
-0.2918223440647125,
-0.7594926357269287,
0.5636516213417053,
0.7104784250259399,
-0.6623737215995789,
0.7100882530212402,
0.030766023322939873,
-0.6805466413497925,
0.29007893800735474,
-0.2859400808811188,
-0.8171849846839905... |
func DefaultMeta() *Meta {
return &Meta{
Mirror: "http://mirrors.servercentral.com/voidlinux/current",
Services: []string{"dhcpcd", "sshd"},
}
} | [
0.2965461313724518,
0.3040420711040497,
0.20806878805160522,
0.8541103005409241,
0.22864560782909393,
0.17377416789531708,
-1.0342844724655151,
0.6273906230926514,
-0.22355493903160095,
-0.7672744989395142,
0.375230610370636,
0.4462265968322754,
-0.4253917634487152,
0.5293985605239868,
-... |
func NewWriterFile(filePath string, perm os.FileMode) *WriterFile {
f, err := os.OpenFile(filePath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, perm)
if err != nil {
panic(err)
}
return &WriterFile{
file: f,
mutex: new(sync.Mutex),
}
} | [
0.003824088489636779,
-0.3184790313243866,
0.2861082851886749,
0.12598732113838196,
-0.3307291269302368,
0.578044056892395,
0.9529836177825928,
0.29372575879096985,
-0.8707782030105591,
0.3763454258441925,
0.01044425554573536,
-0.2482561469078064,
-0.9756413102149963,
-0.2339397370815277,
... |
func (w *WriterFile) Write(_ Level, p []byte) (int, error) {
w.mutex.Lock()
defer w.mutex.Unlock()
return w.file.Write(append(p, '\n'))
} | [
-0.9915022850036621,
0.1828448325395584,
0.29037922620773315,
-0.4627869427204132,
0.6977663636207581,
0.03754595294594765,
0.01058620773255825,
0.6650465726852417,
-1.6430968046188354,
0.11491576582193375,
-0.2756650447845459,
-0.8092896938323975,
-1.3737637996673584,
0.33088091015815735,... |
func ReadAccessKey() string {
file, err := os.Open("./access")
if err != nil {
log.Fatal(err)
}
defer file.Close()
b, err := ioutil.ReadAll(file)
if err != nil {
log.Fatal(err)
}
return string(b)
} | [
0.37874799966812134,
-1.196943998336792,
0.9284841418266296,
-0.32648468017578125,
-0.6497833132743835,
0.45450279116630554,
0.42530086636543274,
-0.06665224581956863,
-0.8262795805931091,
0.5329192280769348,
1.386226773262024,
1.1399610042572021,
0.4602109491825104,
0.4998418092727661,
... |
func PostHandler(w http.ResponseWriter, r *http.Request) {
accessKey := ReadAccessKey()
// init client
client := &http.Client{}
// get request body
req, _ := http.NewRequest(r.Method, "https://api2.autopilothq.com/v1/contact", r.Body)
// This part of code is for ease of test
if len(r.Header.Get("autopilotapikey"... | [
-0.3787834346294403,
-0.5686969757080078,
0.8618180751800537,
0.37571659684181213,
-0.5213866233825684,
0.7611979842185974,
0.14251667261123657,
0.006385249085724354,
-0.6557841897010803,
0.006630599033087492,
0.0876820981502533,
0.04279201850295067,
-0.659213662147522,
0.14888443052768707... |
func GetHandler(w http.ResponseWriter, r *http.Request) {
accessKey := ReadAccessKey()
// init client
client := &http.Client{}
// get params
id := strings.TrimPrefix(r.URL.Path, "/contact/")
fmt.Printf("Queried id: %v\n", id)
req, _ := http.NewRequest(r.Method, fmt.Sprintf("https://api2.autopilothq.com/v1/contac... | [
-0.4823876917362213,
-0.5161406397819519,
0.7746761441230774,
0.40046030282974243,
-0.17965340614318848,
0.37473243474960327,
0.13629740476608276,
-0.25933846831321716,
-0.4719938039779663,
-0.3183594048023224,
0.462586373090744,
0.5066152811050415,
-0.46134263277053833,
-0.093940183520317... |
func SetupMongoDb(ctx context.Context) (*mongo.Client, error) {
log.Println("Connecting to MongoDB")
// Read config file
data, err := ioutil.ReadFile("./config.json")
if err != nil {
log.Fatalln("Error in opening file")
return nil, err
}
var config models.Config
err = json.Unmarshal(data, &config)
if err ... | [
-0.08801247924566269,
-0.6339364647865295,
0.9067859053611755,
-0.04827207326889038,
0.39179527759552,
1.0581068992614746,
0.11508584022521973,
0.13584567606449127,
-0.10722890496253967,
1.2202564477920532,
-0.06161044165492058,
0.09375862032175064,
-0.9425423741340637,
0.08780137449502945... |
func AddUserToMongoDb(ctx context.Context, username string, passwordHash string) error {
userDocument := models.User{
Username: username,
PasswordHash: passwordHash,
}
_, err := DbCollection.InsertOne(ctx, userDocument)
if err != nil {
log.Println("Insert failed")
return err
}
return nil
} | [
-0.3142690658569336,
0.1255091428756714,
0.6511592864990234,
0.4100192189216614,
0.8966936469078064,
1.672149419784546,
-0.11306141316890717,
0.1765257716178894,
-0.4064891040325165,
0.18580521643161774,
-0.8835632801055908,
-0.4778197407722473,
-0.5195126533508301,
0.4127435088157654,
0... |
func GetUserFromMongoDb(ctx context.Context, username string) (*models.User, error) {
result := &models.User{}
filter := bson.D{
primitive.E{Key: "username", Value: username},
}
err := DbCollection.FindOne(ctx, filter).Decode(&result)
if err != nil {
log.Println("Error in getting user from Db")
return nil, ... | [
-0.0642809122800827,
0.5890535116195679,
0.18563108146190643,
0.9342294335365295,
0.47510194778442383,
0.6611632704734802,
-0.1620662808418274,
-0.3446614444255829,
-0.012831316329538822,
0.7045731544494629,
-0.61882084608078,
-0.1739393025636673,
-1.1350393295288086,
0.2130119949579239,
... |
func URL(host string, path string) string {
parsedHost, err := url.Parse(host)
if err != nil {
panic(err)
}
parsedHost.Path = path
return parsedHost.String()
} | [
0.6458993554115295,
0.020122256129980087,
0.15141180157661438,
0.1030372753739357,
-0.47872430086135864,
0.6264752745628357,
-0.7233466506004333,
1.0303670167922974,
-0.9284000992774963,
0.46597087383270264,
0.15353801846504211,
0.853113055229187,
-0.2480894774198532,
-1.1553837060928345,
... |
func ParseResponse(data []byte) (result Result, err error) {
err = json.Unmarshal(data, &result)
return
} | [
0.11869678646326065,
-0.5631601214408875,
0.38537558913230896,
-0.4276951849460602,
-1.1948375701904297,
-1.3563711643218994,
-0.2927400767803192,
-0.4644419848918915,
1.129546880722046,
-0.39329060912132263,
-0.9364551901817322,
-0.9495441317558289,
-0.9883268475532532,
-0.817454338073730... |
func NewMultiHostReverseProxy(opts ...Option) (*MultiHostReverseProxy, error) {
options := newOptions(opts...)
rp := &MultiHostReverseProxy{
Directors: make(map[string]map[config.RouteType]map[string]map[string]func(req *http.Request)),
logger: options.Logger,
config: options.Config,
}
rp.Director = f... | [
0.16600440442562103,
-0.36793017387390137,
0.9285231232643127,
-0.25766563415527344,
-0.17290174961090088,
-0.05865805968642235,
-0.2299845665693283,
0.02542802505195141,
-0.2913360595703125,
0.7011236548423767,
-0.8680136799812317,
0.288015753030777,
-1.442224383354187,
0.1533173322677612... |
func (ir *ImageEngine) ManifestCreate(ctx context.Context, name string, images []string, opts entities.ManifestCreateOptions) (string, error) {
options := new(manifests.CreateOptions).WithAll(opts.All).WithAmend(opts.Amend)
imageID, err := manifests.Create(ir.ClientCtx, name, images, options)
if err != nil {
retur... | [
-0.3139623701572418,
-0.3511239290237427,
0.5564051866531372,
0.10025831311941147,
-0.5682198405265808,
-0.26835814118385315,
-1.2783654928207397,
-0.1343105137348175,
0.4333285987377167,
0.4337427616119385,
0.006519246380776167,
-0.3499630391597748,
-0.45105335116386414,
1.115350246429443... |
func (ir *ImageEngine) ManifestExists(ctx context.Context, name string) (*entities.BoolReport, error) {
exists, err := manifests.Exists(ir.ClientCtx, name, nil)
if err != nil {
return nil, err
}
return &entities.BoolReport{Value: exists}, nil
} | [
-0.4909380376338959,
-0.6172486543655396,
0.5193639993667603,
-0.9391307234764099,
0.11843486875295639,
-0.48286160826683044,
-1.2509257793426514,
0.1576535850763321,
0.4284680187702179,
0.5318402051925659,
-0.4667084515094757,
-0.4235598146915436,
-0.6400817036628723,
0.45675379037857056,... |
func (ir *ImageEngine) ManifestInspect(ctx context.Context, name string, opts entities.ManifestInspectOptions) ([]byte, error) {
options := new(manifests.InspectOptions).WithAuthfile(opts.Authfile)
if s := opts.SkipTLSVerify; s != types.OptionalBoolUndefined {
if s == types.OptionalBoolTrue {
options.WithSkipTLS... | [
-0.8206948041915894,
-0.5726131200790405,
0.6066792607307434,
-0.854773223400116,
-1.7530454397201538,
-0.27337145805358887,
-1.4982300996780396,
0.03489946946501732,
0.8552025556564331,
0.5142011642456055,
-0.17665575444698334,
0.45555946230888367,
0.10761132091283798,
0.865898609161377,
... |
func (ir *ImageEngine) ManifestAdd(_ context.Context, name string, imageNames []string, opts entities.ManifestAddOptions) (string, error) {
options := new(manifests.AddOptions).WithAll(opts.All).WithArch(opts.Arch).WithVariant(opts.Variant)
options.WithFeatures(opts.Features).WithImages(imageNames).WithOS(opts.OS).Wi... | [
-0.4074588418006897,
-0.6456850171089172,
0.9764593243598938,
0.025413602590560913,
-0.9457172751426697,
0.3512413501739502,
-0.9194043874740601,
0.315734326839447,
1.011675477027893,
0.6032246947288513,
0.017309922724962234,
0.348746120929718,
-0.44051671028137207,
0.8286529183387756,
0... |
func (ir *ImageEngine) ManifestAnnotate(ctx context.Context, name, images string, opts entities.ManifestAnnotateOptions) (string, error) {
options := new(manifests.ModifyOptions).WithArch(opts.Arch).WithVariant(opts.Variant)
options.WithFeatures(opts.Features).WithOS(opts.OS).WithOSVersion(opts.OSVersion)
if len(op... | [
-0.6120047569274902,
-0.711408257484436,
0.7299705743789673,
0.06388925015926361,
-0.6306841373443604,
-0.28789374232292175,
-1.0438631772994995,
0.6967402100563049,
0.49794188141822815,
0.6055198311805725,
0.026616236194968224,
0.16488757729530334,
-0.5264231562614441,
1.1865237951278687,... |
func (ir *ImageEngine) ManifestRemoveDigest(ctx context.Context, name string, image string) (string, error) {
updatedListID, err := manifests.Remove(ir.ClientCtx, name, image, nil)
if err != nil {
return updatedListID, fmt.Errorf("removing from manifest %s: %w", name, err)
}
return fmt.Sprintf("%s :%s\n", updated... | [
-0.8612850308418274,
-0.5409043431282043,
0.613803505897522,
-1.081933617591858,
-1.3617985248565674,
-0.3295500576496124,
-1.3477777242660522,
0.6051678657531738,
0.6440185308456421,
0.5756171941757202,
-0.2490648627281189,
-0.274260938167572,
-0.8385260105133057,
0.4474945664405823,
0.... |
func (ir *ImageEngine) ManifestRm(ctx context.Context, names []string) (*entities.ImageRemoveReport, []error) {
return ir.Remove(ctx, names, entities.ImageRemoveOptions{LookupManifest: true})
} | [
-0.6564225554466248,
-0.5431017875671387,
0.34920161962509155,
0.09486856311559677,
-0.9587030410766602,
-0.6083788275718689,
-0.58855140209198,
0.43543753027915955,
0.7614210844039917,
-0.07331749051809311,
0.33200588822364807,
-0.5662041902542114,
-0.700188159942627,
1.6425933837890625,
... |
func (ir *ImageEngine) ManifestPush(ctx context.Context, name, destination string, opts entities.ImagePushOptions) (string, error) {
if opts.Signers != nil {
return "", fmt.Errorf("forwarding Signers is not supported for remote clients")
}
options := new(images.PushOptions)
options.WithUsername(opts.Username).Wi... | [
-0.38792601227760315,
0.17941737174987793,
0.917262852191925,
-0.3243130147457123,
-1.4715051651000977,
-0.02538222447037697,
-0.8470777869224548,
0.3669123351573944,
0.7850459218025208,
1.4489331245422363,
-0.18860307335853577,
0.4216881990432739,
-0.04864257946610451,
0.7987643480300903,... |
func DeviceTestConfig() TestConfig {
return TestConfig{
GtestFilter: "Camera3DeviceTest/*",
}
} | [
0.23379717767238617,
0.25152847170829773,
0.2615163326263428,
0.4703824818134308,
-0.6204819679260254,
0.830109715461731,
0.4641696512699127,
0.11847050487995148,
0.7422996163368225,
0.27784785628318787,
-0.9102457761764526,
0.5282400846481323,
-0.3001905083656311,
0.06122938543558121,
-... |
func FrameTestConfig() TestConfig {
return TestConfig{
GtestFilter: "Camera3FrameTest/*",
}
} | [
0.8523509502410889,
0.009191326797008514,
0.27705851197242737,
0.6277999877929688,
-0.8964735865592957,
0.3378504812717438,
-0.09433721005916595,
-0.07734602689743042,
0.5257276892662048,
0.41037434339523315,
-0.7882655262947083,
0.2459876835346222,
-0.3709297776222229,
0.6801291704177856,... |
func JDATestConfig() TestConfig {
return TestConfig{
CameraHALs: []string{"usb"},
GtestFilter: "*/Camera3SingleFrameTest.GetFrame/0",
ForceJPEGHWDec: true,
}
} | [
0.05123818665742874,
0.5655150413513184,
0.3978118598461151,
0.1827927529811859,
-0.6476614475250244,
0.4708721935749054,
0.4245861768722534,
-0.31704187393188477,
0.3489406704902649,
0.27069541811943054,
-0.7154825329780579,
0.28793153166770935,
0.49326324462890625,
1.108686923980713,
-... |
func JEAUSBTestConfig() TestConfig {
return TestConfig{
CameraHALs: []string{"usb"},
GtestFilter: "*/Camera3SimpleStillCaptureTest.TakePictureTest/0",
ForceJPEGHWEnc: true,
}
} | [
0.12868042290210724,
-0.2573672831058502,
0.3940008580684662,
0.19610974192619324,
-0.9408668875694275,
0.8800649642944336,
0.05136088654398918,
-0.2681570053100586,
0.698963463306427,
0.6937338709831238,
-1.2582504749298096,
0.3002685308456421,
0.06983768939971924,
1.1265789270401,
-0.9... |
func JEATestConfig() TestConfig {
return TestConfig{
GtestFilter: "*/Camera3SimpleStillCaptureTest.TakePictureTest/0",
ForceJPEGHWEnc: true,
}
} | [
0.5832445025444031,
-0.16215839982032776,
0.36845502257347107,
-0.4160182476043701,
-0.485151082277298,
0.4097740352153778,
0.4951445162296295,
-0.4296573996543884,
0.5294352173805237,
0.7611161470413208,
-0.9239152669906616,
0.26715734601020813,
0.5721368193626404,
0.933745265007019,
-1... |
func ModuleTestConfig() TestConfig {
return TestConfig{
GtestFilter: "Camera3ModuleFixture.*",
RequireRecordingParams: true,
}
} | [
0.8653729557991028,
-0.21029765903949738,
0.28976789116859436,
0.06933631747961044,
-0.5839093327522278,
0.6680653691291809,
0.03987427055835724,
0.3300105035305023,
1.0203871726989746,
0.957099437713623,
-0.4836123585700989,
1.2398089170455933,
-0.9586538076400757,
0.8813298940658569,
-... |
func PerfTestConfig() TestConfig {
return TestConfig{
GtestFilter: "Camera3StillCaptureTest/Camera3SimpleStillCaptureTest.PerformanceTest/*",
GeneratePerfLog: true,
}
} | [
0.8700727224349976,
0.5666118860244751,
0.383104145526886,
0.08350664377212524,
-0.9829342365264893,
0.7801647782325745,
0.3652685284614563,
0.07747112214565277,
0.25394564867019653,
0.44106560945510864,
0.07266780734062195,
-0.07003530859947205,
-0.7852627038955688,
1.053839087486267,
-... |
func PreviewTestConfig() TestConfig {
return TestConfig{
GtestFilter: "Camera3PreviewTest/*",
}
} | [
0.4479629099369049,
0.07280737906694412,
0.34982791543006897,
-0.017641203477978706,
-1.1861015558242798,
1.0025196075439453,
0.035403717309236526,
0.3619256019592285,
1.3249266147613525,
0.5915778279304504,
-0.5993919372558594,
0.878135085105896,
-0.02357392944395542,
0.25628578662872314,... |
func RecordingTestConfig() TestConfig {
return TestConfig{
GtestFilter: "Camera3RecordingFixture/*",
RequireRecordingParams: true,
}
} | [
0.37023699283599854,
0.4835188686847687,
0.4577339291572571,
0.40645426511764526,
-0.612544059753418,
0.8031138181686401,
0.10602788627147675,
0.38753819465637207,
0.44182807207107544,
1.076157808303833,
-0.8229358792304993,
0.8742854595184326,
-0.4485378861427307,
0.28990429639816284,
-... |
func StillCaptureTestConfig() TestConfig {
return TestConfig{
GtestFilter: "Camera3StillCaptureTest/*",
}
} | [
0.373727411031723,
-0.6991209387779236,
0.31366729736328125,
0.3460071384906769,
-1.3208011388778687,
0.9827634692192078,
0.26619911193847656,
-0.44244977831840515,
1.471563458442688,
0.4362999498844147,
-0.6020423173904419,
0.7040229439735413,
-0.3267326354980469,
0.35487109422683716,
-... |
func StreamTestConfig() TestConfig {
return TestConfig{
GtestFilter: "Camera3StreamTest/*",
}
} | [
1.023784875869751,
-0.1086224615573883,
0.342696875333786,
0.1396302580833435,
-0.9749597907066345,
1.1396870613098145,
-0.07057998329401016,
-0.21682950854301453,
0.5661240816116333,
0.6072248816490173,
-0.538105309009552,
1.3491194248199463,
-0.9046322703361511,
0.3692537844181061,
-2.... |
func PortraitModeTestConfig(generatePerfLog bool, portraitModeTestFile string) TestConfig {
return TestConfig{
GtestFilter: "Camera3FrameTest/Camera3PortraitModeTest.*",
ConnectToCameraService: true,
GeneratePerfLog: generatePerfLog,
PortraitModeTestData: portraitModeTestFile,
}
} | [
0.3463246524333954,
-0.5149815082550049,
0.40855106711387634,
0.15533719956874847,
-0.6438514590263367,
1.0310410261154175,
-0.13813768327236176,
0.4431413412094116,
0.4566471576690674,
0.39503663778305054,
-0.49361109733581543,
-0.08337371051311493,
-1.5900888442993164,
-0.343927651643753... |
func StillCaptureZSLTestConfig() TestConfig {
return TestConfig{
GtestFilter: "Camera3StillCaptureTest/Camera3SimpleStillCaptureTest.TakePictureZslTest/*",
ConnectToCameraService: true,
}
} | [
0.5427632927894592,
-0.7088485360145569,
0.2918938994407654,
0.26995357871055603,
-1.3880096673965454,
0.4878518879413605,
0.20277179777622223,
-0.363435298204422,
1.460054874420166,
0.2711659073829651,
-0.7428741455078125,
0.39932137727737427,
-0.39948612451553345,
0.6438149809837341,
-... |
func AUETestConfig() TestConfig {
return TestConfig{
// For now AUE test is only covering Camera3Preview functionality.
// It can be expanded to cover other functionalities.
// To cover multiple tests, separate the filters with semicolon.
GtestFilter: "Camera3PreviewTest/*",
}
} | [
0.32043513655662537,
0.08423350751399994,
0.26914629340171814,
0.2699373662471771,
-0.1419714391231537,
-0.14227330684661865,
0.27093788981437683,
0.17721764743328094,
0.8319999575614929,
0.587422251701355,
-0.14923454821109772,
0.2877286970615387,
0.30713459849357605,
0.13083480298519135,... |
func Command(v *viper.Viper, adminPort int) *cobra.Command {
c := &cobra.Command{
Use: "status",
Short: "Print the status.",
Long: `Print Jaeger component status information, exit non-zero on any error.`,
RunE: func(cmd *cobra.Command, args []string) error {
url := convert(v.GetString(statusHTTPHostPort)... | [
0.12861371040344238,
-0.4147808849811554,
0.5763513445854187,
-0.5770437717437744,
0.41435322165489197,
0.4939855933189392,
-0.5599015355110168,
-0.14704608917236328,
0.29548195004463196,
-0.21742600202560425,
0.43986356258392334,
1.2322081327438354,
-0.34476837515830994,
0.525782406330108... |
func Is2xx(status int) bool {
return status >= 200 && status < 300
} | [
-0.87483811378479,
-1.4744236469268799,
0.6855810284614563,
0.6314694285392761,
-1.227162480354309,
0.5884050130844116,
-1.1072909832000732,
-0.13179591298103333,
0.9143277406692505,
-0.38498905301094055,
-0.8074596524238586,
1.005829095840454,
1.158637523651123,
-0.483624666929245,
-0.3... |
func WrapWithLogging(c *http.Client) *http.Client {
return &http.Client{
Transport: roundTripFunc(func(req *http.Request) (*http.Response, error) {
b, _ := httputil.DumpRequestOut(req, true)
log.Printf("Sending request\n\n%s\n", b)
res, err := c.Do(req)
if err != nil {
return res, err
}
b, _ ... | [
-0.3183731734752655,
-0.5378616452217102,
0.9702463746070862,
-0.060692381113767624,
-0.29899361729621887,
0.03609099239110947,
-0.39503195881843567,
-0.9852079153060913,
0.1214248538017273,
-0.012969127856194973,
0.4407772719860077,
0.592753529548645,
0.661800742149353,
-0.588507354259491... |
func Ch(x uint32, y uint32, z uint32) uint32 {
return (x & y) ^ (^x & z)
} | [
0.9042434692382812,
0.29166314005851746,
0.7703250646591187,
-0.3359273672103882,
-0.8724215030670166,
1.8027263879776,
-0.42665955424308777,
-0.17651937901973724,
0.14980962872505188,
-0.30203184485435486,
-0.26221683621406555,
1.14404296875,
-0.07021032273769379,
-0.8447402715682983,
0... |
func (u *User) MarshalJSON() ([]byte, error) {
type Alias User
return json.Marshal(&struct {
*Alias
DateCreated string `json:"date_created"`
DateModified string `json:"date_modified"`
}{
Alias: (*Alias)(u),
DateCreated: u.DateCreated.Format("2006-01-02T15:04:05.000Z07:00"),
DateModified: u.DateM... | [
-0.2439495474100113,
0.017708124592900276,
0.5791500210762024,
0.29605087637901306,
-0.6947585940361023,
0.704903244972229,
0.3827267289161682,
0.09328660368919373,
0.2893047630786896,
-0.035882849246263504,
-0.9188147187232971,
1.198920726776123,
0.9540839791297913,
1.0442370176315308,
... |
func (jbobject *ServicesEc2ModelPlacement) Clone2() (*JavaLangObject, error) {
jret, err := jbobject.CallMethod(javabind.GetEnv(), "clone", "java/lang/Object")
if err != nil {
var zero *JavaLangObject
return zero, err
}
retconv := javabind.NewJavaToGoCallable()
dst := &javabind.Callable{}
retconv.Dest(dst)
i... | [
-0.15051639080047607,
-0.658100426197052,
0.7910807132720947,
0.45878756046295166,
-1.490792155265808,
0.24646273255348206,
-0.02198154479265213,
-1.455999732017517,
-0.09885333478450775,
0.18057067692279816,
-0.8142607808113098,
0.8135848045349121,
0.027826596051454544,
0.0520446598529815... |
func NewCalc(logger *log.Logger) calc.Service {
return &calcsrvc{logger}
} | [
1.4238872528076172,
-0.23009519279003143,
0.3495277464389801,
-0.06281840056180954,
-0.6787206530570984,
-0.06797956675291061,
-0.6629677414894104,
-1.0899839401245117,
0.10460113734006882,
-0.6994825005531311,
0.56639164686203,
0.9315285682678223,
0.3529728055000305,
0.5861718058586121,
... |
func (p *Pancakes) SortStack() *Pancakes {
l := len(p.Stack)
fdi := strings.Index(p.Stack, "-")
fui := strings.Index(p.Stack, "+")
if l == 0 {
panic("You must have a stack of at least 1 pancake!")
}
if fui == -1 {
p.Stack = flipstack(p.Stack)
p.Count++
fmt.Printf("Flip#: %d, Result: %s \n", p.Count, p.S... | [
-0.559381902217865,
0.6505650877952576,
0.8763338923454285,
0.23372596502304077,
-0.9114445447921753,
0.026020972058176994,
1.1145060062408447,
-0.255608469247818,
-0.03967690467834473,
-0.7514510154724121,
0.16417662799358368,
0.21118603646755219,
-0.4703376293182373,
0.43983757495880127,... |
func flipstack(s string) string {
fd := strings.Index(s, "-")
if fd > -1 {
return strings.Replace(s, "-", "+", -1)
}
return strings.Replace(s, "+", "-", -1)
} | [
-0.7546305060386658,
0.3670966923236847,
0.8509413599967957,
-0.6345083117485046,
-1.0910515785217285,
-0.5117805600166321,
0.3072156608104706,
0.693648636341095,
0.165122851729393,
-0.08045471459627151,
0.021533330902457237,
0.6468592882156372,
0.14008352160453796,
0.3137734532356262,
1... |
func validateInput(s string) string {
match, _ := regexp.MatchString("^[\\-\\+]+$", s)
if !match {
panic("Input must be a string made up of only `+` or `-`!")
}
return s
} | [
-0.1454819142818451,
0.2762916386127472,
0.3634387254714966,
0.5509398579597473,
-1.2137038707733154,
1.6267626285552979,
0.3109704554080963,
0.03452274203300476,
0.54816073179245,
-0.5787866711616516,
0.8157667517662048,
0.12527699768543243,
-0.21544039249420166,
-0.2839266359806061,
1.... |
func validate(element Element, object any, name string) error {
switch typed := element.(type) {
case Any:
return nil
case Array:
return validate_array(typed, object, name)
case Boolean:
return validate_boolean(typed, object, name)
case Integer:
return validate_integer(typed, object, name)
case Numb... | [
-0.37192967534065247,
-0.3344123065471649,
0.8164041638374329,
0.8536087870597839,
-0.034371186047792435,
-0.15561068058013916,
-0.3656090795993805,
-0.704114556312561,
0.16566704213619232,
0.2752797603607178,
-0.1541639119386673,
0.4262237548828125,
-0.3807128667831421,
0.2207501232624054... |
func validate_array(element Array, object any, name string) error {
if getter, ok := object.(PointerGetter); ok {
if value, ok := getter.GetPointer(name); ok {
return element.Validate(value)
}
}
// Fall through means that we don't have a PointerGetter. That's bad...
return derp.NewInternalError("schema.va... | [
-0.5115119814872742,
-0.6559262275695801,
0.634924590587616,
0.29973697662353516,
-0.24245059490203857,
-0.23916928470134735,
-0.49962952733039856,
-0.275324285030365,
0.31262609362602234,
0.4971238970756531,
0.724624514579773,
0.3223317563533783,
-0.66265469789505,
0.8364675045013428,
1... |
func validate_boolean(element Boolean, object any, name string) error {
if getter, ok := object.(BoolGetter); ok {
if value, ok := getter.GetBoolOK(name); ok {
return element.Validate(value)
}
}
if getter, ok := object.(PointerGetter); ok {
if value, ok := getter.GetPointer(name); ok {
if typed, ok := ... | [
-0.7940570116043091,
-0.12835197150707245,
0.7934523820877075,
0.4543880820274353,
-0.18486356735229492,
0.25715941190719604,
0.10982511937618256,
-0.07305707037448883,
-0.6328121423721313,
0.6934093832969666,
-0.14320549368858337,
-0.006261579226702452,
-0.367901474237442,
0.4531627595424... |
func validate_integer(element Integer, object any, name string) error {
if element.BitSize == 64 {
return validate_int64(element, object, name)
}
return validate_int32(element, object, name)
} | [
-0.2290179282426834,
0.5057371258735657,
0.3643972873687744,
0.78786301612854,
-1.0503778457641602,
0.5726630687713623,
0.09512337297201157,
-0.7459588050842285,
0.06124807149171829,
0.41892892122268677,
-0.5974485278129578,
0.24470989406108856,
-0.10392683744430542,
1.179789423942566,
1... |
func validate_int32(element Integer, object any, name string) error {
if getter, ok := object.(IntGetter); ok {
if value, ok := getter.GetIntOK(name); ok {
return element.Validate(value)
}
}
if getter, ok := object.(PointerGetter); ok {
if value, ok := getter.GetPointer(name); ok {
if typed, ok := value... | [
-0.5622820258140564,
-0.23474916815757751,
0.6443935632705688,
-0.3277733325958252,
-0.7028506994247437,
0.684722363948822,
-0.3390527665615082,
-1.0281033515930176,
-0.36352303624153137,
0.5725641846656799,
0.17728689312934875,
0.3021973669528961,
-0.6851078271865845,
0.7514316439628601,
... |
func validate_int64(element Integer, object any, name string) error {
if getter, ok := object.(Int64Getter); ok {
if value, ok := getter.GetInt64OK(name); ok {
return element.Validate(value)
}
}
if getter, ok := object.(PointerGetter); ok {
if value, ok := getter.GetPointer(name); ok {
if typed, ok := v... | [
-1.2400113344192505,
-0.5227748155593872,
0.540871262550354,
0.6758937239646912,
-0.23312029242515564,
-0.06555140018463135,
0.062264781445264816,
-0.6155694127082825,
-0.17151980102062225,
0.6866979002952576,
0.36032605171203613,
-0.024698788300156593,
-0.6958574652671814,
0.7347413897514... |
func validate_number(element Number, object any, name string) error {
if getter, ok := object.(FloatGetter); ok {
if value, ok := getter.GetFloatOK(name); ok {
return element.Validate(value)
}
}
if getter, ok := object.(PointerGetter); ok {
if value, ok := getter.GetPointer(name); ok {
if typed, ok := ... | [
-0.7371435165405273,
0.09813068062067032,
0.6752206683158875,
0.774224042892456,
-0.008232020772993565,
-0.0641208216547966,
0.06337935477495193,
-0.057045698165893555,
0.23118939995765686,
-0.06028314679861069,
-0.22444143891334534,
-0.009391596540808678,
0.13732530176639557,
0.8801367878... |
func validate_object(element Object, object any, name string) error {
if getter, ok := object.(PointerGetter); ok {
if value, ok := getter.GetPointer(name); ok {
return element.Validate(value)
}
}
return derp.NewInternalError("schema.validate_object", "To validate this property, the Object must be a 'Pointe... | [
-0.20206451416015625,
-0.29717984795570374,
0.5874421000480652,
0.5411925911903381,
-0.5723391175270081,
0.01671944372355938,
-0.35257333517074585,
-0.1318911612033844,
0.24245937168598175,
0.46828100085258484,
0.6244285106658936,
0.05282249674201012,
-0.3094439208507538,
0.121968269348144... |
func validate_string(element String, object any, name string) error {
if getter, ok := object.(StringGetter); ok {
if value, ok := getter.GetStringOK(name); ok {
return element.Validate(value)
}
}
if getter, ok := object.(PointerGetter); ok {
if value, ok := getter.GetPointer(name); ok {
if typed, ok :=... | [
-0.5052450895309448,
-0.6491591334342957,
0.4209374487400055,
-0.09369733184576035,
-0.3214305341243744,
0.15368421375751495,
-0.1645946204662323,
-0.7283182144165039,
0.04472042992711067,
0.50271075963974,
0.4696514308452606,
0.5828779935836792,
-0.13162867724895477,
0.054798055440187454,... |
func ConnectToServer() {
icb.Connect("default.icb.net", "7326")
_ = ReadLengthByteFromConnection // read the protocol version then ignore it :)
loginPacket := icb.CreatePacket("login", "goBee", "goBee7", "goGroup", "login", "\000")
loginPacket.Send()
} | [
-1.1521971225738525,
0.12745927274227142,
0.43173059821128845,
0.2759350836277008,
1.066159963607788,
0.6391437649726868,
0.10256487876176834,
-0.1115981712937355,
-0.44219455122947693,
0.5951529145240784,
-1.244087815284729,
-0.017631595954298973,
-1.5089913606643677,
-0.12720559537410736... |
func ReadFromServer() {
go func() {
for {
packet := ReadPacketFromConnection()
message := packet.Decode()
PrintToScreen(message)
}
}()
} | [
-0.053530845791101456,
-0.6000955700874329,
0.4593014717102051,
-0.2677707076072693,
-0.25181570649147034,
0.5144901871681213,
-0.45820197463035583,
-0.7519228458404541,
-0.9918932914733887,
-0.3298777937889099,
0.04035668447613716,
1.0193026065826416,
-0.06705129146575928,
0.8972576856613... |
func ReadPacketFromConnection() icb.Packet {
var packet icb.Packet
length := ReadLengthByteFromConnection()
buffer := ReadLengthBytesFromServer(length)
// fmt.Printf("length: %v\n data:\n\t%v\n\t\"%s\"\n", length, buffer, buffer)
packet.Write(buffer)
return packet
} | [
0.5400755405426025,
-0.23647665977478027,
0.5234414339065552,
-1.2060030698776245,
-0.4443804621696472,
0.8443319201469421,
-0.43897315859794617,
-0.10167262703180313,
-0.20750094950199127,
-0.5742145776748657,
0.19866137206554413,
0.5688333511352539,
-0.8541811108589172,
-0.71961945295333... |
func ReadLengthByteFromConnection() int {
var length = make([]byte, 1)
icb.Connection.Read(length)
return int(length[0])
} | [
1.0433756113052368,
-0.42345383763313293,
0.479371577501297,
-0.49720752239227295,
0.09037695825099945,
0.9351792931556702,
-0.1295097917318344,
0.33341407775878906,
-0.2621300518512726,
0.5092813372612,
-0.21213726699352264,
-0.8598906397819519,
-1.7323111295700073,
-0.2944331765174866,
... |
func ReadLengthBytesFromServer(length int) []byte {
var buffer = make([]byte, length)
var bytesRead = 0
for bytesRead < length {
r, _ := icb.Connection.Read(buffer[bytesRead:])
bytesRead += r
}
return buffer
} | [
-0.33286651968955994,
-0.5074664950370789,
0.6023958921432495,
-0.7629921436309814,
-0.6480002403259277,
0.8410766124725342,
-0.24098509550094604,
-0.6917186379432678,
0.3105710446834564,
0.3194507956504822,
-1.104156732559204,
0.17080232501029968,
-1.8384032249450684,
0.20026390254497528,... |
func NewKey(saddr, daddr util.Address, sport, dport uint16, topicName string, requestAPIKey, requestAPIVersion uint16) Key {
return Key{
ConnectionKey: types.NewConnectionKey(saddr, daddr, sport, dport),
TopicName: topicName,
RequestAPIKey: requestAPIKey,
RequestVersion: requestAPIVersion,
}
} | [
-0.4948814809322357,
0.018272550776600838,
0.38101431727409363,
-0.32315635681152344,
0.4326339662075043,
-0.05510680004954338,
-1.220239520072937,
-0.5796059966087341,
0.0040772221982479095,
0.2544304430484772,
1.0597892999649048,
0.16496391594409943,
-0.7879231572151184,
-0.5791345238685... |
func (r *RequestStat) CombineWith(newStats *RequestStat) {
r.Count += newStats.Count
} | [
0.01526887807995081,
-0.7259246706962585,
0.46622905135154724,
0.4936085045337677,
0.11462945491075516,
0.6942446827888489,
-0.9044526815414429,
-1.2547903060913086,
0.6585548520088196,
-0.7073920369148254,
0.10719776898622513,
0.05551262944936752,
0.4190088212490082,
0.4994947612285614,
... |
func updateLastUpdate() error {
now := strconv.FormatInt(time.Now().Unix(), 10)
_, err := dynamo.PutItem(&dynamodb.PutItemInput{
TableName: aws.String(table),
Item: map[string]*dynamodb.AttributeValue{
"LockName": &dynamodb.AttributeValue{S: aws.String("Leader")},
"LeaderName": &dynamodb.AttributeValue{S... | [
-0.6507247686386108,
-0.3009699583053589,
0.5778322815895081,
-0.7436240315437317,
-0.384134978055954,
-0.5551347732543945,
-0.7730756998062134,
0.3132197856903076,
0.09223238378763199,
0.3455507755279541,
-0.12027530372142792,
-0.03093925304710865,
-0.4052067697048187,
-0.1971385031938552... |
func Repeat(character string, repeatCount int) string {
var repeated string
for i := 0; i < repeatCount; i++ {
repeated += character
}
return repeated
} | [
-0.1455068588256836,
-0.11258800327777863,
0.44638586044311523,
-0.6717967391014099,
-0.4306083023548126,
-0.04897559806704521,
-0.15244466066360474,
0.05469606816768646,
-0.5628397464752197,
-0.049289874732494354,
-0.8320183753967285,
0.6637792587280273,
-0.3437156081199646,
-1.0849643945... |
func ExampleRepeat() {
sum := Repeat("a", 5)
fmt.Println(sum)
// Output: aaaaa
} | [
0.7180227041244507,
0.02284320443868637,
0.5305669903755188,
-0.21093088388442993,
-0.9521761536598206,
0.028442678973078728,
0.14175444841384888,
0.24103069305419922,
0.5423001050949097,
0.021860184147953987,
-1.2365187406539917,
0.8589890599250793,
-0.15374530851840973,
-1.26010215282440... |
func (vuu *VacUserUpdate) Where(ps ...predicate.VacUser) *VacUserUpdate {
vuu.mutation.predicates = append(vuu.mutation.predicates, ps...)
return vuu
} | [
0.43279045820236206,
-0.4486369788646698,
0.1642988622188568,
0.41130736470222473,
-0.7391461730003357,
0.46719470620155334,
-0.3057982921600342,
0.5304734110832214,
-0.5524499416351318,
-0.271420955657959,
0.5310685038566589,
0.7639584541320801,
-0.3042559027671814,
-0.8549273014068604,
... |
func (vuu *VacUserUpdate) SetUpdatedAt(t time.Time) *VacUserUpdate {
vuu.mutation.SetUpdatedAt(t)
return vuu
} | [
-0.19909676909446716,
-0.1547982096672058,
0.45398467779159546,
-0.1977771520614624,
-0.2833775281906128,
0.9903168082237244,
-0.1430283635854721,
0.681674063205719,
0.1607275754213333,
-0.6897822022438049,
-0.2859857380390167,
0.04295344278216362,
0.6599275469779968,
0.14383937418460846,
... |
func (vuu *VacUserUpdate) SetPartition(s string) *VacUserUpdate {
vuu.mutation.SetPartition(s)
return vuu
} | [
0.04516047239303589,
0.22516310214996338,
-0.14297334849834442,
0.9380064010620117,
-0.24171875417232513,
-0.17982399463653564,
1.142042875289917,
0.8192538619041443,
0.4707581698894501,
-0.3246069550514221,
-0.4540357291698456,
-0.22081676125526428,
-0.09839653223752975,
0.133356228470802... |
func (vuu *VacUserUpdate) SetNillablePartition(s *string) *VacUserUpdate {
if s != nil {
vuu.SetPartition(*s)
}
return vuu
} | [
0.3292350172996521,
0.14005430042743683,
-0.17308923602104187,
-0.20198118686676025,
-0.7626083493232727,
-0.24551889300346375,
0.013907593674957752,
0.18938085436820984,
-0.09829386323690414,
-0.4257226884365082,
-0.15660937130451202,
-0.8348041772842407,
-1.2569668292999268,
0.2141886353... |
func (vuu *VacUserUpdate) ClearPartition() *VacUserUpdate {
vuu.mutation.ClearPartition()
return vuu
} | [
-0.06405224651098251,
0.13207484781742096,
0.051740895956754684,
0.8089395761489868,
-0.6299082040786743,
-0.11166439205408096,
0.21421805024147034,
0.006182071752846241,
0.4400206506252289,
0.22280512750148773,
0.5216949582099915,
0.37659046053886414,
-0.30691298842430115,
-0.359448403120... |
func (vuu *VacUserUpdate) SetRangeKey(s string) *VacUserUpdate {
vuu.mutation.SetRangeKey(s)
return vuu
} | [
-0.9331786632537842,
0.17932847142219543,
-0.4900088310241699,
0.9347954392433167,
0.4128524363040924,
-0.23337505757808685,
0.5120776891708374,
0.6647865176200867,
-0.38061097264289856,
0.1721504181623459,
-0.8582093119621277,
0.2061731219291687,
0.20318426191806793,
0.23122230172157288,
... |
func (vuu *VacUserUpdate) SetNillableRangeKey(s *string) *VacUserUpdate {
if s != nil {
vuu.SetRangeKey(*s)
}
return vuu
} | [
-0.7640432715415955,
-0.20597918331623077,
-0.29304319620132446,
0.18627645075321198,
-0.5420130491256714,
-0.12361955642700195,
0.10908776521682739,
0.1002022847533226,
-0.332630455493927,
0.33625710010528564,
-0.4371402859687805,
-0.2659362256526947,
-0.7349063158035278,
1.07252967357635... |
func (vuu *VacUserUpdate) ClearRangeKey() *VacUserUpdate {
vuu.mutation.ClearRangeKey()
return vuu
} | [
-1.053007960319519,
0.1487925499677658,
-0.3463878631591797,
1.0365207195281982,
-0.33526429533958435,
0.15572649240493774,
0.0011878818040713668,
-0.21960921585559845,
-0.38826245069503784,
0.792531430721283,
-0.1265099197626114,
0.5575553178787231,
0.1377675086259842,
-0.0174712147563695... |
func (vuu *VacUserUpdate) SetPassword(s string) *VacUserUpdate {
vuu.mutation.SetPassword(s)
return vuu
} | [
0.05092375725507736,
0.5185478329658508,
0.06404512375593185,
2.08475661277771,
-0.2294524759054184,
0.18397802114486694,
0.7837432026863098,
0.8437016010284424,
0.40193742513656616,
-0.3482285439968109,
-0.5415449738502502,
-0.28232449293136597,
0.07668665051460266,
-0.29481831192970276,
... |
func (vuu *VacUserUpdate) SetNillablePassword(s *string) *VacUserUpdate {
if s != nil {
vuu.SetPassword(*s)
}
return vuu
} | [
0.6065794825553894,
0.28155311942100525,
-0.17984125018119812,
1.0413501262664795,
-0.6253508925437927,
0.10321787744760513,
-0.009494717232882977,
0.5489699244499207,
-0.09846927970647812,
0.2997879981994629,
-0.3078491687774658,
-0.04092813655734062,
-0.7439278960227966,
0.67899698019027... |
func (vuu *VacUserUpdate) ClearPassword() *VacUserUpdate {
vuu.mutation.ClearPassword()
return vuu
} | [
0.10376699268817902,
0.49837440252304077,
0.1440499722957611,
1.7827260494232178,
-0.3693053722381592,
0.48184826970100403,
0.10518912225961685,
0.4960753917694092,
0.6511796712875366,
0.47525957226753235,
0.29666733741760254,
0.5971084833145142,
-0.18659472465515137,
-0.4469137191772461,
... |
func (vuu *VacUserUpdate) SetToken(s string) *VacUserUpdate {
vuu.mutation.SetToken(s)
return vuu
} | [
0.0725158080458641,
0.5061270594596863,
-0.08119025826454163,
1.6082407236099243,
-0.4431043267250061,
0.2620089650154114,
0.8754130601882935,
1.7189397811889648,
0.48628661036491394,
-1.010825753211975,
-0.878878116607666,
0.589278519153595,
0.7627548575401306,
-0.18298591673374176,
-0.... |
func (vuu *VacUserUpdate) SetNillableToken(s *string) *VacUserUpdate {
if s != nil {
vuu.SetToken(*s)
}
return vuu
} | [
0.5629143714904785,
0.21382500231266022,
-0.07068487256765366,
0.2814057171344757,
-0.8931548595428467,
0.20230892300605774,
-0.059780485928058624,
1.2754096984863281,
-0.1239459216594696,
-0.5329520106315613,
-0.8667269945144653,
0.4226810038089752,
-0.1723971962928772,
0.0890424549579620... |
func (vuu *VacUserUpdate) ClearToken() *VacUserUpdate {
vuu.mutation.ClearToken()
return vuu
} | [
0.15881164371967316,
0.395799845457077,
0.08498037606477737,
1.0126214027404785,
-0.6567009687423706,
0.4289131760597229,
0.1143232136964798,
1.1988571882247925,
0.49079951643943787,
-0.4781431555747986,
-0.16763922572135925,
1.1636627912521362,
0.466777503490448,
-0.8579107522964478,
-0... |
func (vuu *VacUserUpdate) SetWatcherEnabled(b bool) *VacUserUpdate {
vuu.mutation.SetWatcherEnabled(b)
return vuu
} | [
0.40603214502334595,
0.555398166179657,
0.23988604545593262,
0.7514767050743103,
0.1827583760023117,
0.4127199947834015,
0.6267976760864258,
1.0077722072601318,
-0.632845938205719,
-0.31604519486427307,
-0.8825819492340088,
0.16199126839637756,
-1.1519584655761719,
0.2751959264278412,
-1... |
func (vuu *VacUserUpdate) SetNillableWatcherEnabled(b *bool) *VacUserUpdate {
if b != nil {
vuu.SetWatcherEnabled(*b)
}
return vuu
} | [
0.9572023749351501,
0.41704633831977844,
0.17901206016540527,
0.4638303816318512,
-0.31497034430503845,
0.270389586687088,
-0.06237019971013069,
0.24928595125675201,
-0.5278472900390625,
-0.3125959634780884,
-0.45292872190475464,
-0.21936097741127014,
-1.6438219547271729,
0.777536034584045... |
func (vuu *VacUserUpdate) ClearWatcherEnabled() *VacUserUpdate {
vuu.mutation.ClearWatcherEnabled()
return vuu
} | [
0.8914933204650879,
0.2503119111061096,
-0.004980986472219229,
1.1224231719970703,
-1.1794072389602661,
0.20214144885540009,
-0.2115749716758728,
0.03322687745094299,
-0.7740407586097717,
0.516288697719574,
-0.012838243506848812,
0.7765074372291565,
-0.8512175679206848,
0.257388710975647,
... |
func (vuu *VacUserUpdate) SetReserveConfig(sc *schema.ReserveConfig) *VacUserUpdate {
vuu.mutation.SetReserveConfig(sc)
return vuu
} | [
-0.09612308442592621,
0.5370771884918213,
-0.1368725448846817,
0.2460797131061554,
0.06023472920060158,
-0.1777322143316269,
-0.18860004842281342,
1.0999594926834106,
-0.02588820643723011,
0.6150831580162048,
-1.1096088886260986,
-0.5142337083816528,
-0.3065146505832672,
0.2011489123106002... |
func (vuu *VacUserUpdate) ClearReserveConfig() *VacUserUpdate {
vuu.mutation.ClearReserveConfig()
return vuu
} | [
0.018476327881217003,
0.6734871864318848,
-0.08376602083444595,
0.2107878029346466,
-0.378584086894989,
-0.10659706592559814,
-0.1338418424129486,
0.5720386505126953,
-0.2161722183227539,
0.8174050450325012,
-0.6446715593338013,
0.24716265499591827,
-0.5641058087348938,
-0.3516820073127746... |
func (vuu *VacUserUpdate) SetReserveEnabled(b bool) *VacUserUpdate {
vuu.mutation.SetReserveEnabled(b)
return vuu
} | [
0.08719515800476074,
0.4875084161758423,
0.08344027400016785,
0.7581149935722351,
-0.015839453786611557,
-0.007206462323665619,
0.04728677496314049,
1.217923879623413,
-0.13498586416244507,
0.23516270518302917,
-1.4284007549285889,
-0.21021056175231934,
-1.443892240524292,
0.16986259818077... |
func (vuu *VacUserUpdate) SetNillableReserveEnabled(b *bool) *VacUserUpdate {
if b != nil {
vuu.SetReserveEnabled(*b)
}
return vuu
} | [
0.4110530614852905,
0.4544309973716736,
0.1044040247797966,
-0.02638670615851879,
-0.24249346554279327,
-0.12042894214391708,
-0.3479826748371124,
0.4921054542064667,
0.4084884524345398,
-0.48118719458580017,
-0.6430428624153137,
-0.49016815423965454,
-1.5383696556091309,
0.352463841438293... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.