text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (kv BatchKeyRotateKV) Validate() error { if kv.Key == "" { return errInvalidArgument } return nil }
[ 0.026642760261893272, 0.9866714477539062, 0.4566783010959625, 0.47603362798690796, 0.7502219676971436, 0.13303959369659424, -0.7065726518630981, -0.5796326994895935, -0.7642724514007568, 0.2979363203048706, 0.393015056848526, 0.15021798014640808, -1.1549129486083984, 0.5235930681228638, ...
func (kv BatchKeyRotateKV) Empty() bool { return kv.Key == "" && kv.Value == "" }
[ -0.9304683208465576, -0.1547880917787552, 0.4495650827884674, 0.08815331757068634, -0.17492564022541046, 1.068869948387146, -1.039979100227356, -0.2809968590736389, -1.0237184762954712, 1.1068165302276611, -0.12871703505516052, 0.36570924520492554, -0.5688691139221191, 0.3745655119419098, ...
func (kv BatchKeyRotateKV) Match(ikv BatchKeyRotateKV) bool { if kv.Empty() { return true } if strings.EqualFold(kv.Key, ikv.Key) { return wildcard.Match(kv.Value, ikv.Value) } return false }
[ -0.3104669451713562, 0.2841627895832062, 0.42929181456565857, 0.5716686844825745, -0.846479594707489, 0.4817379117012024, -0.7537519931793213, 0.07276219874620438, -0.4375104010105133, 0.41655558347702026, 0.11075962334871292, 0.1104707345366478, -1.380975604057312, -0.18121488392353058, ...
func (r BatchKeyRotateRetry) Validate() error { if r.Attempts < 0 { return errInvalidArgument } if r.Delay < 0 { return errInvalidArgument } return nil }
[ -0.000984826241619885, 0.5875564813613892, 0.36989256739616394, -0.6442087888717651, 0.5770320892333984, -0.024540508165955544, -0.33891743421554565, -0.18146295845508575, -0.7754948735237122, -0.12748347222805023, 0.37711775302886963, 0.47330641746520996, -1.0397554636001587, 0.0087280096...
func (e BatchJobKeyRotateEncryption) Validate() error { if e.Type != sses3 && e.Type != ssekms { return errInvalidArgument } spaces := strings.HasPrefix(e.Key, " ") || strings.HasSuffix(e.Key, " ") if e.Type == ssekms && spaces { return crypto.ErrInvalidEncryptionKeyID } if e.Type == ssekms && GlobalKMS != ni...
[ 0.12242551147937775, 0.2982063889503479, 0.6352657079696655, -0.17613400518894196, -0.004344114102423191, -0.10946110635995865, 0.015855740755796432, -0.08621501922607422, -0.015349986962974072, 0.6457124352455139, 0.12119663506746292, 0.7072761654853821, -1.2814291715621948, 0.13557733595...
func (r BatchJobKeyRotateV1) Notify(ctx context.Context, body io.Reader) error { if r.Flags.Notify.Endpoint == "" { return nil } ctx, cancel := context.WithTimeout(ctx, 10*time.Second) defer cancel() req, err := http.NewRequestWithContext(ctx, http.MethodPost, r.Flags.Notify.Endpoint, body) if err != nil { ...
[ -0.10658847540616989, 0.783786952495575, 0.7229128479957581, 0.053303975611925125, 0.3037277162075043, -0.03224259242415428, -0.6709797978401184, -0.350965291261673, -0.7400847673416138, 0.699505090713501, -0.7807550430297852, 1.146504282951355, -1.1196887493133545, 0.13216975331306458, ...
func (r *BatchJobKeyRotateV1) KeyRotate(ctx context.Context, api ObjectLayer, objInfo ObjectInfo) error { srcBucket := r.Bucket srcObject := objInfo.Name if objInfo.DeleteMarker || !objInfo.VersionPurgeStatus.Empty() { return nil } sseKMS := crypto.S3KMS.IsEncrypted(objInfo.UserDefined) sseS3 := crypto.S3.IsEn...
[ 0.033762168139219284, -0.21394053101539612, 0.90592360496521, 0.3044299781322479, -0.41847509145736694, 0.4971586763858795, -0.2702895998954773, -0.6849428415298462, -0.37764692306518555, 0.905549168586731, -0.7045323848724365, 0.7959602475166321, -0.5219142436981201, -0.28765207529067993,...
func (r *BatchJobKeyRotateV1) Start(ctx context.Context, api ObjectLayer, job BatchJobRequest) error { ri := &batchJobInfo{ JobID: job.ID, JobType: string(job.Type()), StartTime: job.Started, } if err := ri.load(ctx, api, job); err != nil { return err } globalBatchJobsMetrics.save(job.ID, ri) lastO...
[ -0.3883378207683563, -0.004974015057086945, 0.916000485420227, -0.03578095883131027, -0.054520729929208755, 0.5514588952064514, 0.2617105543613434, -0.29926711320877075, -1.2482147216796875, 0.4616854190826416, -0.667880117893219, 0.7782585024833679, -0.6770904064178467, 0.1600352078676223...
func (r *BatchJobKeyRotateV1) Validate(ctx context.Context, job BatchJobRequest, o ObjectLayer) error { if r == nil { return nil } if r.APIVersion != batchKeyRotateAPIVersion { return errInvalidArgument } if r.Bucket == "" { return errInvalidArgument } if _, err := o.GetBucketInfo(ctx, r.Bucket, BucketO...
[ -0.025287311524152756, 0.4359394907951355, 0.7027027010917664, -0.032817620784044266, 0.26533299684524536, 0.22393256425857544, 0.036331985145807266, -0.6862438917160034, -1.0974258184432983, 0.4333334267139435, -0.05561162531375885, 0.5605464577674866, -1.0029798746109009, 0.5336635708808...
func (bi *baseInstance) toGA() *ga.Instance { inst := &ga.Instance{Name: bi.name, Zone: bi.zone, NetworkInterfaces: []*ga.NetworkInterface{{}}} if bi.aliasRange != "" { inst.NetworkInterfaces[0].AliasIpRanges = []*ga.AliasIpRange{ {IpCidrRange: bi.aliasRange, SubnetworkRangeName: util.TestSecondaryRangeName}, ...
[ -0.4542478621006012, 0.11454251408576965, 0.49527326226234436, -1.1164051294326782, 0.06662886589765549, 0.38236021995544434, 1.4992233514785767, 0.22627122700214386, 0.366234689950943, 0.6948931813240051, 0.10042548179626465, 0.13243220746517181, -0.192301943898201, 0.04409587010741234, ...
func (bi *baseInstance) toBeta() *beta.Instance { inst := &beta.Instance{Name: bi.name, Zone: bi.zone, NetworkInterfaces: []*beta.NetworkInterface{{}}} if bi.aliasRange != "" { inst.NetworkInterfaces[0].AliasIpRanges = []*beta.AliasIpRange{ {IpCidrRange: bi.aliasRange, SubnetworkRangeName: util.TestSecondaryRang...
[ -0.46532267332077026, -1.1826021671295166, 0.503454864025116, -0.8379363417625427, 0.690399169921875, 0.32764607667922974, 1.1707053184509277, 0.0013985283439978957, 0.31677135825157166, 0.07638624310493469, -0.6206489205360413, 0.06777199357748032, -0.6966487765312195, 0.263074666261673, ...
func newBaseInstanceList(allocateCIDR bool, clusterCIDR *net.IPNet, subnetMaskSize int) *baseInstanceList { cidrSet, _ := cidrset.NewCIDRSet(clusterCIDR, subnetMaskSize) return &baseInstanceList{ allocateCIDR: allocateCIDR, clusterCIDR: clusterCIDR, subnetMaskSize: subnetMaskSize, cidrSet: cidrSet...
[ -0.4031822681427002, -0.15699274837970734, 0.26480454206466675, 0.19682258367538452, -0.25172170996665955, 0.12927387654781342, -0.4998641014099121, 0.3172222375869751, 0.49352067708969116, 0.9632507562637329, -0.6210214495658875, 0.10766885429620743, -0.7521268725395203, -0.40889066457748...
func (bil *baseInstanceList) getOrCreateBaseInstance(key *meta.Key) *baseInstance { bil.lock.Lock() defer bil.lock.Unlock() inst, found := bil.instances[*key] if !found { inst = &baseInstance{name: key.Name, zone: key.Zone} if bil.allocateCIDR { nextRange, _ := bil.cidrSet.AllocateNext() inst.aliasRange ...
[ -0.9581999182701111, 0.08845288306474686, 0.430483341217041, -0.06728263944387436, -0.05890948325395584, 0.6990026831626892, 0.012731487862765789, 0.18029239773750305, 0.44382813572883606, 0.852178156375885, -0.3289169669151306, -0.747591495513916, -1.4240185022354126, -0.03367677330970764...
func (bil *baseInstanceList) newGAGetHook() func(ctx context.Context, key *meta.Key, m *cloud.MockInstances) (bool, *ga.Instance, error) { return func(ctx context.Context, key *meta.Key, m *cloud.MockInstances) (bool, *ga.Instance, error) { m.Lock.Lock() defer m.Lock.Unlock() if _, found := m.Objects[*key]; !fo...
[ -1.2358100414276123, 0.11266414076089859, 0.47346723079681396, -0.371133953332901, 0.7406155467033386, 0.5556462407112122, 0.08164023607969284, -0.17130909860134125, -0.8782141208648682, 1.176628589630127, -0.12536399066448212, 0.10850157588720322, -0.5891318321228027, 0.05948024243116379,...
func (bil *baseInstanceList) newBetaGetHook() func(ctx context.Context, key *meta.Key, m *cloud.MockBetaInstances) (bool, *beta.Instance, error) { return func(ctx context.Context, key *meta.Key, m *cloud.MockBetaInstances) (bool, *beta.Instance, error) { m.Lock.Lock() defer m.Lock.Unlock() if _, found := m.Obje...
[ -0.9730961322784424, -0.596874475479126, 0.624492347240448, -0.3752913475036621, 0.972872257232666, 0.49729153513908386, 0.34753483533859253, -0.35889285802841187, -0.9102959632873535, 0.7176127433776855, -0.5860968828201294, -0.15834636986255646, -0.8489134907722473, 0.6458202004432678, ...
func (bil *baseInstanceList) newMockCloud() cloud.Cloud { c := cloud.NewMockGCE(nil) // insert hooks to lazy create a instance when needed c.MockInstances.GetHook = bil.newGAGetHook() c.MockBetaInstances.GetHook = bil.newBetaGetHook() return c }
[ -0.9153252243995667, 0.5759029388427734, 0.3814961910247803, 0.23668010532855988, 0.7283787727355957, -0.2503964304924011, 1.0391392707824707, -0.03988014906644821, 0.09919970482587814, 0.35192978382110596, -0.3556603789329529, 0.11997859925031662, -0.9478236436843872, 1.3042782545089722, ...
func Asset(name string) ([]byte, error) { canonicalName := strings.Replace(name, "\\", "/", -1) if f, ok := _bindata[canonicalName]; ok { a, err := f() if err != nil { return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) } return a.bytes, nil } return nil, fmt.Errorf("Asset %s not found"...
[ -1.0117802619934082, -1.1598913669586182, 0.6830528974533081, -0.6832774877548218, -1.3779864311218262, -0.04716435447335243, 0.3233034014701843, -1.387198567390442, -1.1437952518463135, 0.4887535572052002, 0.508706271648407, 0.4118397831916809, -0.556188702583313, -0.2793940007686615, 0...
func AssetString(name string) (string, error) { data, err := Asset(name) return string(data), err }
[ -1.247711420059204, -0.7423804402351379, 0.39674192667007446, -1.4730795621871948, -1.8356839418411255, 0.45875734090805054, -0.22362041473388672, -1.3954719305038452, -0.5910036563873291, 0.673730194568634, 0.5670546293258667, 0.45071396231651306, 0.12421981245279312, -0.6748082637786865,...
func MustAsset(name string) []byte { a, err := Asset(name) if err != nil { panic("asset: Asset(" + name + "): " + err.Error()) } return a }
[ -0.012778956443071365, 0.11985661834478378, 0.4091298282146454, -0.5268413424491882, -0.8276715278625488, 0.4719155430793762, -0.8186293840408325, -1.5736604928970337, 0.16388541460037231, 0.6357062458992004, -0.5354578495025635, 0.35693347454071045, 0.0057142809964716434, -0.0248885955661...
func MustAssetString(name string) string { return string(MustAsset(name)) }
[ -0.7957004308700562, -0.4993444085121155, 0.4154260754585266, -0.059688813984394073, -1.7780245542526245, 0.7658588886260986, -0.5333529710769653, -1.525808334350586, -0.11369087547063828, 0.8382498025894165, 0.9579691290855408, -0.4543590545654297, 0.2904685139656067, 0.30602753162384033,...
func AssetInfo(name string) (os.FileInfo, error) { canonicalName := strings.Replace(name, "\\", "/", -1) if f, ok := _bindata[canonicalName]; ok { a, err := f() if err != nil { return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) } return a.info, nil } return nil, fmt.Errorf("AssetIn...
[ 0.1966029703617096, -0.9794570207595825, 0.5885098576545715, -0.9617621302604675, -1.2945103645324707, 0.0021701965015381575, 0.8489783406257629, -0.8787258267402649, -1.2970008850097656, 0.33993929624557495, 0.4047488272190094, 0.37507039308547974, 0.06526204943656921, -0.2895668148994446...
func AssetDigest(name string) ([sha256.Size]byte, error) { canonicalName := strings.Replace(name, "\\", "/", -1) if f, ok := _bindata[canonicalName]; ok { a, err := f() if err != nil { return [sha256.Size]byte{}, fmt.Errorf("AssetDigest %s can't read by error: %v", name, err) } return a.digest, nil } ret...
[ -0.3591914772987366, -0.6181963086128235, 0.7434927821159363, -1.1689051389694214, -1.152544617652893, -0.5196005702018738, -0.2411303073167801, -1.0479568243026733, -0.5882827043533325, 0.310821533203125, 0.08598455786705017, -0.05696683004498482, -0.296350359916687, 0.04578978568315506, ...
func Digests() (map[string][sha256.Size]byte, error) { mp := make(map[string][sha256.Size]byte, len(_bindata)) for name := range _bindata { a, err := _bindata[name]() if err != nil { return nil, err } mp[name] = a.digest } return mp, nil }
[ -0.8371758460998535, -0.8630334734916687, 0.8149356245994568, -0.20492912828922272, -0.4950232207775116, -0.7048240303993225, -0.32209330797195435, -0.4336596429347992, -0.07046830654144287, -0.36870822310447693, -0.4737861156463623, 0.22748501598834991, 0.2845746874809265, 0.8567589521408...
func AssetNames() []string { names := make([]string, 0, len(_bindata)) for name := range _bindata { names = append(names, name) } return names }
[ -0.7293784618377686, -0.8460342288017273, 0.7321816682815552, -0.39323121309280396, -0.48951536417007446, 0.7661203145980835, -0.5028699636459351, -0.8655748963356018, -0.4145073890686035, 0.8099913597106934, 0.16903363168239594, 1.163049578666687, -0.028152840211987495, 0.0342608317732811...
func RestoreAsset(dir, name string) error { data, err := Asset(name) if err != nil { return err } info, err := AssetInfo(name) if err != nil { return err } err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) if err != nil { return err } err = ioutil.WriteFile(_filePath(dir, name), d...
[ -0.04950583726167679, -0.19623512029647827, 0.6907734274864197, -1.3569048643112183, -0.2967042326927185, -0.3611973226070404, 0.07744784653186798, -0.471956729888916, -0.31164032220840454, -0.08379734307527542, -0.002142141805961728, 0.06316494196653366, -0.342814564704895, -0.61630117893...
func RestoreAssets(dir, name string) error { children, err := AssetDir(name) // File if err != nil { return RestoreAsset(dir, name) } // Dir for _, child := range children { err = RestoreAssets(dir, filepath.Join(name, child)) if err != nil { return err } } return nil }
[ 0.42261892557144165, 0.30020031332969666, 0.5813396573066711, -0.20641657710075378, -0.23828908801078796, -0.24414615333080292, 0.5739709138870239, -0.029911456629633904, 0.06188219040632248, -0.43923482298851013, 0.5113736987113953, 0.3275970220565796, -0.6125145554542542, 0.0351656526327...
func GetTask(name, action string, conf *config.MountConfig) (iface.Task, error) { switch action { case "", "create": return NewCreateTask(name, conf), nil case "remove", "rm": return NewRemoveTask(name, conf), nil default: return nil, fmt.Errorf("Invalid mount action %q for task %q", action, name) } }
[ 0.9275368452072144, 0.22969239950180054, 0.5144813656806946, 1.2450313568115234, 0.393149733543396, -0.9246536493301392, 0.16892525553703308, -0.17732688784599304, 0.1696605086326599, 0.7460327744483948, -0.42588159441947937, 0.522742748260498, 0.2736903131008148, -0.0019442365737631917, ...
func NewCommonTime(bpm float64) *Meter { return &Meter{ BeatsPerMinute: bpm, BeatsPerBar: 4, BeatValue: notes.Quarter, } }
[ 0.7726558446884155, -0.5060451626777649, 0.493057519197464, 0.6785610318183899, -0.6684271097183228, 0.08486653119325638, 0.5099836587905884, -1.2032219171524048, 0.015477149747312069, 0.27839115262031555, 0.3114222586154938, -1.2728816270828247, -1.7455604076385498, 0.6304903030395508, ...
func New(bpm, beatsPerBar float64, beatValue notes.Duration) *Meter { return &Meter{ BeatsPerMinute: bpm, BeatsPerBar: beatsPerBar, BeatValue: beatValue, } }
[ 0.2792244851589203, -0.6272886395454407, 0.38884663581848145, 0.48435506224632263, -1.3464168310165405, 0.830123782157898, 0.3920733630657196, -0.8415870666503906, -1.1673357486724854, -0.7643009424209595, 0.6291108131408691, 0.2765462398529053, -0.2007182538509369, 0.27814415097236633, ...
func (m Meter) NoteToTime(noteVal notes.Duration) time.Duration { return time.Duration((float64(noteVal/m.BeatValue) / m.BeatsPerMinute) * float64(time.Minute)) }
[ 0.45074379444122314, 0.03157070279121399, 0.722062885761261, -0.2903810441493988, -0.03873991221189499, 0.60772705078125, -0.18138596415519714, -1.0544185638427734, -0.1456023007631302, 0.8373576998710632, -0.08209720999002457, -0.597680389881134, -0.5755668878555298, -0.5575106739997864, ...
func (m Meter) NoteToFreq(noteVal notes.Duration) float64 { duration := m.NoteToTime(noteVal) return 1 / float64(duration.Seconds()) }
[ -0.017698008567094803, 0.6594343781471252, 0.26055219769477844, 0.3937453031539917, 0.20303237438201904, -0.179672509431839, 0.003908089827746153, -0.9517785906791687, -0.3884314298629761, -0.2685004472732544, 0.7258263826370239, 0.1072215735912323, 0.11903566122055054, 0.6385542750358582,...
func powerSeries(a int) (int, int) { return a * a, a * a * a }
[ -0.7639811038970947, -0.9014233350753784, 0.5747990012168884, -0.631123423576355, -0.4761609435081482, -1.258398175239563, -0.07116144150495529, -0.012900380417704582, 0.5072786808013916, 0.0740586444735527, 0.6604655981063843, 0.357217013835907, 0.1940554529428482, -0.14075826108455658, ...
func GenerateJWTToken(userName, jwtAccSecretKey string) (string, error) { claims := jwt.MapClaims{ "username": userName, "ExpiresAt": jwt.TimeFunc().Add(1 * time.Minute).Unix(), "IssuedAt": jwt.TimeFunc().Unix(), } token := jwt.NewWithClaims(jwt.SigningMethodHS256, claims) return token.SignedString([]byte(...
[ 0.020095515996217728, -0.16995024681091309, 0.7249864935874939, -0.668918251991272, -0.9904894232749939, 0.06033828854560852, -0.04322507604956627, 0.17263928055763245, -0.14376811683177948, 0.06896734237670898, -1.5999751091003418, 0.6863822937011719, 1.0523486137390137, -0.10408217459917...
func ValidateJWTToken(jwtKey, tokenString string) (*Claims, error) { clms := &Claims{} tkn, err := jwt.ParseWithClaims(tokenString, clms, func(token *jwt.Token) (interface{}, error) { if _, ok := token.Method.(*jwt.SigningMethodHMAC); !ok { return nil, fmt.Errorf("Unexpected signing method: %v", token.Header["al...
[ 0.1322028934955597, -0.604500412940979, 0.6126733422279358, -0.6767377853393555, -0.6044673323631287, -0.3509107828140259, 0.062463968992233276, -0.7514342665672302, -0.26670408248901367, 0.2261439561843872, -0.30981674790382385, 0.41524654626846313, -0.22251158952713013, 0.401006132364273...
func WriteCloserWithContext(ctx context.Context, closer WriteContextCloser) io.WriteCloser { return &closerWithContext{ WriteContextCloser: closer, ctx: ctx, } }
[ -0.37894925475120544, -1.4756057262420654, 0.7051990628242493, -0.17164087295532227, -1.5924755334854126, 0.1953272521495819, -0.5040967464447021, -1.4529272317886353, 0.5959348082542419, -0.3648659586906433, -0.07199446856975555, -0.4858299195766449, -0.4141988456249237, 0.175979197025299...
func (c *closerWithContext) Close() error { return c.WriteContextCloser.Close(c.ctx) }
[ -0.3247835636138916, -0.9570193290710449, 0.5740498304367065, -0.1817086786031723, -0.6981911063194275, 0.3120352029800415, 0.7292696833610535, -1.2254921197891235, 0.09021123498678207, -0.8271109461784363, 0.720372200012207, -0.3680412471294403, -1.4782509803771973, 0.6377775073051453, ...
func NilCloser(r io.Closer) io.Closer { if r == nil { return &nilCloser{} } return r }
[ 0.6911765933036804, -0.538444995880127, 0.5576964020729065, -0.047086846083402634, -1.779412031173706, -0.12479297071695328, 0.029005391523241997, -1.2081704139709473, 0.3139559030532837, -0.8678202033042908, 1.108213186264038, -1.1214972734451294, -0.4219554364681244, 1.6710320711135864, ...
func NopWriteCloser(r io.Writer) io.WriteCloser { return nopWriteCloser{r} }
[ -0.8770066499710083, -0.7584269046783447, 0.41850546002388, -0.2776223421096802, -1.4791908264160156, 0.21618781983852386, 0.6854555606842041, -1.2594692707061768, -0.32068687677383423, -0.9171640872955322, 0.9099603891372681, -0.8888201713562012, -1.3304895162582397, 1.4169838428497314, ...
func NewTracer(description string) *Tracer { return &Tracer{Started: time.Now().UTC(), Description: description} }
[ 0.7690732479095459, -0.061592940241098404, 0.26064711809158325, -0.1325751394033432, -0.5140888690948486, 0.9166579246520996, -1.041967749595642, 0.06523381918668747, -0.4573265612125397, 0.11914338916540146, 0.13832394778728485, 0.8493688702583313, -0.369439035654068, 1.082098364830017, ...
func (t *Tracer) Start() *Tracer { log.Debugf("Tracer started %v.", t.Description) return t }
[ 0.794134259223938, -0.523540735244751, 0.16533806920051575, -0.16122208535671234, 0.30361446738243103, 0.6269379258155823, 0.2914707660675049, 0.0466279536485672, 0.20823131501674652, 0.2879007160663605, -0.6370719075202942, 0.9879946708679199, 0.019106682389974594, 0.45092543959617615, ...
func (t *Tracer) Stop() *Tracer { log.Debugf("Tracer completed %v in %v.", t.Description, time.Since(t.Started)) return t }
[ -0.3497878313064575, -0.5050581097602844, 0.2287953794002533, -0.8061238527297974, 0.265716016292572, 0.8962690234184265, 0.6514359712600708, -0.4857794940471649, -0.4593973755836487, 0.9100097417831421, -0.9429514408111572, 0.21651458740234375, -0.5506083965301514, -0.012385840527713299, ...
func ThisFunction() string { var pc [32]uintptr runtime.Callers(2, pc[:]) return runtime.FuncForPC(pc[0]).Name() }
[ -0.01654645800590515, -0.5332701802253723, 0.6818472146987915, 0.010824884288012981, 0.3567618131637573, -0.1438586562871933, 0.42025327682495117, -0.9898331761360168, -0.666657567024231, -0.04954253137111664, -0.08536673337221146, 0.5328006744384766, -0.8671500086784363, -0.17606914043426...
func (s *SyncString) Value() string { s.Lock() defer s.Unlock() return s.string }
[ 0.41604113578796387, -0.6450409293174744, 0.09170559793710709, -0.2372458279132843, -0.14653527736663818, 0.6417519450187683, 0.5815017819404602, -1.107582688331604, 0.1465454250574112, 0.21663589775562286, 0.5688902735710144, 0.7753849625587463, -0.33791935443878174, -0.9048658609390259, ...
func (s *SyncString) Set(v string) { s.Lock() defer s.Unlock() s.string = v }
[ 0.31078624725341797, -0.3432106077671051, -0.2093251645565033, -0.5306836366653442, -0.11567353457212448, 0.36584562063217163, 0.6060327291488647, -0.7201122045516968, -0.8075235486030579, 0.10920882970094681, -0.29854217171669006, 1.1051400899887085, -0.4087550938129425, -0.80866605043411...
func ClickableURL(in string) string { out, err := url.Parse(in) if err != nil { return in } host, port, err := net.SplitHostPort(out.Host) if err != nil { return in } ip := net.ParseIP(host) // if address is not an IP, unspecified, e.g. all interfaces 0.0.0.0 or multicast, // replace with localhost that is...
[ -0.4581274390220642, 0.027626175433397293, 0.5499333143234253, 0.37885424494743347, -1.0973598957061768, 0.209730863571167, 0.7476769089698792, 0.9367818236351013, -0.09705979377031326, 0.4861377775669098, 0.5123783349990845, -0.07438129186630249, 0.06559979915618896, -0.26270392537117004,...
func AsBool(v string) bool { if v == "" { return false } out, _ := apiutils.ParseBool(v) return out }
[ -0.14391453564167023, -0.21472924947738647, 0.36337539553642273, -0.08119107037782669, -0.3380758762359619, -0.007789983879774809, -0.6214824914932251, 0.42815685272216797, 0.2494904100894928, 0.6961682438850403, -0.5629181265830994, 0.2526080906391144, 0.013433708809316158, -0.51002800464...
func ParseAdvertiseAddr(advertiseIP string) (string, string, error) { advertiseIP = strings.TrimSpace(advertiseIP) host := advertiseIP port := "" if len(net.ParseIP(host)) == 0 && strings.Contains(advertiseIP, ":") { var err error host, port, err = net.SplitHostPort(advertiseIP) if err != nil { return "", ...
[ -0.34468749165534973, -0.7957306504249573, 0.775210440158844, -0.3989179730415344, -0.4130784273147583, -0.423605740070343, 0.6484354734420776, 0.4494033455848694, 0.6418493986129761, 0.8154340982437134, 0.5994189381599426, 0.5057008862495422, -0.22115683555603027, 0.1252305805683136, 1....
func StringsSliceFromSet(in map[string]struct{}) []string { if in == nil { return nil } out := make([]string, 0, len(in)) for key := range in { out = append(out, key) } sort.Strings(out) return out }
[ -0.14804589748382568, -1.189711093902588, 0.16288615763187408, -0.87613844871521, -0.5317922830581665, -0.35706040263175964, -1.1050264835357666, -1.0614829063415527, -0.022456027567386627, 0.45054417848587036, 0.6642783284187317, 0.5171360373497009, 0.13625849783420563, 0.3120019733905792...
func ParseOnOff(parameterName, val string, defaultValue bool) (bool, error) { switch val { case teleport.On: return true, nil case teleport.Off: return false, nil case "": return defaultValue, nil default: return false, trace.BadParameter("bad %q parameter value: %q, supported values are on or off", parame...
[ 0.30350226163864136, 0.46149733662605286, 0.6400398015975952, -0.361977756023407, -0.9160820841789246, 0.16469290852546692, -0.856441080570221, 0.45201995968818665, -0.3989163637161255, 0.7246091961860657, -0.2345077395439148, -0.5796079635620117, -0.43113967776298523, 0.48012083768844604,...
func IsGroupMember(gid int) (bool, error) { groups, err := os.Getgroups() if err != nil { return false, trace.ConvertSystemError(err) } for _, group := range groups { if group == gid { return true, nil } } return false, nil }
[ -0.914675772190094, 0.43118083477020264, 0.2781497538089752, -0.023476889356970787, -0.164458230137825, -0.6115524768829346, 0.158323734998703, -0.7084879279136658, -0.21670395135879517, 0.49503615498542786, -0.4491966664791107, 0.7827284932136536, -0.9353992938995361, 1.1466490030288696, ...
func DNSName(hostport string) (string, error) { host, err := Host(hostport) if err != nil { return "", trace.Wrap(err) } if ip := net.ParseIP(host); len(ip) != 0 { return "", trace.BadParameter("%v is an IP address", host) } return host, nil }
[ -0.26449209451675415, 0.6311851739883423, 0.5868179202079773, 0.8196777701377869, -0.8987001180648804, -0.7340933680534363, -0.41760289669036865, -0.42743849754333496, 0.38818249106407166, 0.47914403676986694, -0.17518150806427002, -0.2419443130493164, 0.06529952585697174, -0.1008130908012...
func Host(hostname string) (string, error) { if hostname == "" { return "", trace.BadParameter("missing parameter hostname") } // if this is IPv4 or V6, return as is if ip := net.ParseIP(hostname); len(ip) != 0 { return hostname, nil } // has no indication of port, return, note that // it will not break ipv6...
[ 0.3304602801799774, -0.5612292289733887, 0.9547392725944519, 0.6824876666069031, -0.9788975119590759, 0.012351072393357754, 0.8607843518257141, 0.48143306374549866, 0.045312970876693726, 0.7947925329208374, 0.5584071278572083, -0.6280765533447266, -0.6771210432052612, -0.7715064883232117, ...
func SplitHostPort(hostname string) (string, string, error) { host, port, err := net.SplitHostPort(hostname) if err != nil { return "", "", trace.Wrap(err) } if host == "" { return "", "", trace.BadParameter("empty hostname") } return host, port, nil }
[ -0.35412710905075073, -0.28611522912979126, 0.5937280654907227, 0.09880819916725159, -0.10761204361915588, -0.029606852680444717, 0.9255134463310242, 0.7241649031639099, -0.31257981061935425, 0.41527172923088074, -1.3328145742416382, -0.31857091188430786, -0.9835700392723083, 0.31940883398...
func IsValidHostname(hostname string) bool { for _, label := range strings.Split(hostname, ".") { if len(validation.IsDNS1035Label(label)) > 0 { return false } } return true }
[ -1.175741195678711, -0.2257639616727829, 0.7027598023414612, 1.3920384645462036, -0.7255195379257202, 1.0585217475891113, -0.18801052868366241, 0.2043018788099289, 0.1152263656258583, 0.23479273915290833, -0.33318039774894714, -0.6560142040252686, -0.7755182385444641, 0.17851294577121735, ...
func ReadPath(path string) ([]byte, error) { if path == "" { return nil, trace.NotFound("empty path") } s, err := filepath.Abs(path) if err != nil { return nil, trace.ConvertSystemError(err) } abs, err := filepath.EvalSymlinks(s) if err != nil { if errors.Is(err, fs.ErrPermission) { //do not convert to ...
[ 0.18526838719844818, -0.13207922875881195, 0.8332865238189697, 0.5661120414733887, -0.6169641613960266, 0.1649443656206131, 0.44176387786865234, -0.5562652945518494, 0.10029617697000504, 0.023587916046380997, 1.0640759468078613, -0.02648213505744934, -0.9919022917747498, 0.724642276763916,...
func MultiCloser(closers ...io.Closer) io.Closer { return &multiCloser{ closers: closers, } }
[ -0.9487524032592773, -0.8071200847625732, 0.5665355920791626, 0.9783309102058411, -1.6643989086151123, 0.061959538608789444, -1.2416020631790161, -0.8480716347694397, 0.09743864089250565, -0.8814333081245422, -0.8898241519927979, -0.8420932292938232, 0.13790321350097656, 1.4666047096252441...
func OpaqueAccessDenied(err error) error { if trace.IsAccessDenied(err) { return trace.NotFound("not found") } return trace.Wrap(err) }
[ -0.2868956923484802, -0.5688055753707886, 0.5557907819747925, -0.44189104437828064, -0.49601316452026367, 0.7822352647781372, 0.855202317237854, -0.34278297424316406, 0.9980708360671997, -0.3425164818763733, 1.8290610313415527, 0.941120982170105, 0.7072620391845703, 0.5840740203857422, 1...
func (p *PortList) Pop() string { p.Lock() defer p.Unlock() if len(p.ports) == 0 { panic("list is empty") } val := p.ports[len(p.ports)-1] p.ports = p.ports[:len(p.ports)-1] return val }
[ -0.05360309034585953, 0.2125627100467682, 0.6710448861122131, 0.20556972920894623, -0.05213482677936554, 0.6838898062705994, 0.0646136924624443, -0.2469303160905838, -0.012288758531212807, 1.2412216663360596, -0.4579440653324127, -0.020839836448431015, -1.0608282089233398, -0.6135457158088...
func (p *PortList) PopInt() int { i, err := strconv.Atoi(p.Pop()) if err != nil { panic(err) } return i }
[ 0.6140867471694946, 0.11876118928194046, 0.47020265460014343, -1.1344155073165894, -0.6254138946533203, 0.2580789029598236, -0.15941134095191956, -0.4913131594657898, -1.0365604162216187, 1.5450571775436401, -0.2330814152956009, -0.6735208630561829, -1.0487953424453735, -0.4569871425628662...
func GetFreeTCPPorts(n int, offset ...int) (PortList, error) { list := make([]string, 0, n) start := PortStartingNumber if len(offset) != 0 { start = offset[0] } for i := start; i < start+n; i++ { list = append(list, strconv.Itoa(i)) } return PortList{ports: list}, nil }
[ -0.6750104427337646, 0.4300391972064972, 0.5252799987792969, -0.6183559894561768, -0.16991160809993744, -0.03991623967885971, 0.10793820768594742, -0.9678183794021606, -0.15567554533481598, 0.2956325113773346, -1.0662119388580322, 0.19688650965690613, -1.0515186786651611, 0.078022122383117...
func HostUUIDExistsLocally(dataDir string) bool { _, err := ReadHostUUID(dataDir) return err == nil }
[ -0.2955937087535858, -0.35018613934516907, 0.47164401412010193, -0.31612497568130493, 0.7018553018569946, 0.35757583379745483, -0.06217960640788078, 1.7905471324920654, -1.3210039138793945, 0.35306987166404724, -0.07200705260038376, 0.013934838585555553, 0.21005339920520782, -0.07539964467...
func ReadHostUUID(dataDir string) (string, error) { out, err := ReadPath(filepath.Join(dataDir, HostUUIDFile)) if err != nil { if errors.Is(err, fs.ErrPermission) { //do not convert to system error as this loses the ability to compare that it is a permission error return "", err } return "", trace.Convert...
[ 0.17386066913604736, -0.10295160114765167, 0.6882220506668091, -0.43974679708480835, -0.8112940192222595, 0.7430385947227478, 0.43941643834114075, 0.9899892807006836, -0.877892255783081, 0.18484185636043549, 0.5581774115562439, -0.058801427483558655, -0.8142806887626648, -0.253300726413726...
func WriteHostUUID(dataDir string, id string) error { err := os.WriteFile(filepath.Join(dataDir, HostUUIDFile), []byte(id), os.ModeExclusive|0400) if err != nil { if errors.Is(err, fs.ErrPermission) { //do not convert to system error as this loses the ability to compare that it is a permission error return er...
[ -0.20783162117004395, -0.06099250912666321, 0.5330637693405151, -0.0970759466290474, 0.3418860137462616, 1.0344375371932983, 0.38135018944740295, 1.3585164546966553, -0.5778802037239075, -0.1296277642250061, -0.6115469932556152, 0.2174447625875473, -0.36106014251708984, 0.06978762149810791...
func ReadOrMakeHostUUID(dataDir string) (string, error) { id, err := ReadHostUUID(dataDir) if err == nil { return id, nil } if !trace.IsNotFound(err) { return "", trace.Wrap(err) } // Checking error instead of the usual uuid.New() in case uuid generation // fails due to not enough randomness. It's been known...
[ -0.4398522973060608, 0.01961418241262436, 0.7372891902923584, -0.7923278212547302, -0.19051413238048553, 0.4214073717594147, 0.8852887749671936, 1.028490662574768, -0.1618289351463318, 0.12913648784160614, 0.5952070355415344, -0.42916715145111084, 0.2582697570323944, -0.009024330414831638,...
func StringSliceSubset(a []string, b []string) error { aset := make(map[string]bool) for _, v := range a { aset[v] = true } for _, v := range b { _, ok := aset[v] if !ok { return trace.BadParameter("%v not in set", v) } } return nil }
[ 0.35712936520576477, -0.9612728357315063, 0.6234046220779419, -1.1566457748413086, -0.3677535057067871, 0.05941284820437431, -0.9226059317588806, -0.32558855414390564, -0.7645896673202515, 1.3394392728805542, 0.7325278520584106, 1.5030725002288818, -0.3904082477092743, -0.1529942899942398,...
func UintSliceSubset(a []uint16, b []uint16) error { aset := make(map[uint16]bool) for _, v := range a { aset[v] = true } for _, v := range b { _, ok := aset[v] if !ok { return trace.BadParameter("%v not in set", v) } } return nil }
[ 0.4381711781024933, -0.23320871591567993, 0.6629653573036194, -0.6366173624992371, -0.07238799333572388, 0.10601427406072617, -0.38640984892845154, -0.12358205020427704, -0.029606647789478302, 0.5766779780387878, 0.7029632329940796, 0.4288060963153839, 0.18668614327907562, -0.1586674749851...
func RemoveFromSlice(slice []string, values ...string) []string { output := make([]string, 0, len(slice)) remove := make(map[string]bool) for _, value := range values { remove[value] = true } for _, s := range slice { _, ok := remove[s] if ok { continue } output = append(output, s) } return outpu...
[ -0.11756773293018341, -1.0530126094818115, 0.4974899888038635, 0.29102271795272827, -0.7951609492301941, -0.5901929140090942, -1.0355138778686523, 0.1850711852312088, -0.7758059501647949, 1.0417273044586182, -0.36599692702293396, -0.3451419174671173, -0.18332089483737946, 0.599790751934051...
func ChooseRandomString(slice []string) string { switch len(slice) { case 0: return "" case 1: return slice[0] default: return slice[rand.Intn(len(slice))] } }
[ -0.1649625599384308, -0.31299781799316406, 0.27700576186180115, 0.09097587317228317, -0.25364071130752563, 0.31994694471359253, -0.22965110838413239, -0.5685182213783264, 0.6483157873153687, 0.8765195608139038, 0.888863205909729, -0.21690312027931213, -0.28394079208374023, 0.29574662446975...
func CheckCertificateFormatFlag(s string) (string, error) { switch s { case constants.CertificateFormatStandard, teleport.CertificateFormatOldSSH, teleport.CertificateFormatUnspecified: return s, nil default: return "", trace.BadParameter("invalid certificate format parameter: %q", s) } }
[ 0.13397695124149323, -0.36021697521209717, 0.5154279470443726, 0.0705711841583252, -0.7670977115631104, 0.5520023703575134, 0.04100410267710686, 0.5754097104072571, -0.8999893665313721, 0.06779450178146362, -0.20231109857559204, 0.14827218651771545, 0.2664538323879242, 1.276198387145996, ...
func AddrsFromStrings(s apiutils.Strings, defaultPort int) ([]NetAddr, error) { addrs := make([]NetAddr, len(s)) for i, val := range s { addr, err := ParseHostPortAddr(val, defaultPort) if err != nil { return nil, trace.Wrap(err) } addrs[i] = *addr } return addrs, nil }
[ -0.1260005086660385, -0.02564661018550396, 0.12280343472957611, -0.13955634832382202, 0.6708686351776123, -0.2752828598022461, -0.2770345211029053, -0.5155403017997742, 0.21030116081237793, 0.18196648359298706, 0.5132554769515991, 0.15223674476146698, -0.546597957611084, -0.400700688362121...
func FileExists(fp string) bool { _, err := os.Stat(fp) if err != nil && os.IsNotExist(err) { return false } return true }
[ -0.2255106270313263, -0.5306165814399719, 0.5765917301177979, -0.20291967689990997, 1.0747839212417603, 1.1767100095748901, -0.5363908410072327, 0.3978438079357147, -0.852853536605835, -0.2618452310562134, -0.251161128282547, -1.0894006490707397, 0.35269472002983093, 0.5172157883644104, ...
func ReadAtMost(r io.Reader, limit int64) ([]byte, error) { limitedReader := &io.LimitedReader{R: r, N: limit} data, err := io.ReadAll(limitedReader) if err != nil { return data, err } if limitedReader.N <= 0 { return data, ErrLimitReached } return data, nil }
[ -0.7318168878555298, -0.12894971668720245, 0.7701836228370667, -0.5510109663009644, -0.19904494285583496, -0.35774293541908264, -2.079925060272217, -0.9456245303153992, -0.50296950340271, 0.25850680470466614, 0.8585732579231262, 0.7680101990699768, -0.35308369994163513, -0.5428957939147949...
func HasPrefixAny(prefix string, values []string) bool { for _, val := range values { if strings.HasPrefix(val, prefix) { return true } } return false }
[ 0.3269903063774109, -0.5587384700775146, 0.5248438119888306, 0.5005619525909424, 0.38252174854278564, -1.4026124477386475, -1.763150930404663, 0.25937914848327637, -0.38801226019859314, -0.41107791662216187, -0.09747366607189178, -0.19606482982635498, 0.3963835835456848, 1.4500278234481812...
func ByteCount(b int64) string { const unit = 1000 if b < unit { return fmt.Sprintf("%d B", b) } div, exp := int64(unit), 0 for n := b / unit; n >= unit; n /= unit { div *= unit exp++ } return fmt.Sprintf("%.1f %cB", float64(b)/float64(div), "kMGTPE"[exp]) }
[ 0.7834934592247009, 0.5710414052009583, 0.5544421076774597, -0.18665455281734467, -0.6205517053604126, -0.028886184096336365, -0.02653948962688446, 0.6022772789001465, -0.1625068485736847, 0.8413996696472168, 0.3862394094467163, 0.11488918215036392, 0.4223219156265259, 0.34314990043640137,...
func (m *Match) Equals(other *Match) bool { if m == nil && other == nil { return true } else if m == nil { return false } else if other == nil { return false } return m.PC == other.PC && m.StartLine == other.StartLine && m.StartColumn == other.StartColumn && m.EndLine == other.EndLine && m.EndColumn ...
[ -0.1927676647901535, -0.9326996803283691, 0.9445534944534302, -0.13359488546848297, -0.19369074702262878, -0.38019612431526184, -0.2954515516757965, -0.3384355306625366, 0.06161269173026085, -0.5368881821632385, -0.7338363528251648, 0.4184750020503998, -0.870077908039093, -0.24187000095844...
func (m Match) String() string { return fmt.Sprintf("<Match %d %d (%d, %d)-(%d, %d) '%v'>", m.PC, m.TC, m.StartLine, m.StartColumn, m.EndLine, m.EndColumn, string(m.Bytes)) }
[ 0.4521928131580353, -1.1215195655822754, 0.3525610864162445, -0.5181432962417603, -0.4001500904560089, 0.17758741974830627, 0.7844641804695129, -0.9375101923942566, -0.8871117234230042, -0.0306805819272995, 0.4275173246860504, 0.18841886520385742, -0.43216317892074585, -0.8395743370056152,...
func LexerEngine(program inst.Slice, text []byte) Scanner { done := false matchPC := -1 matchTC := -1 prevTC := 0 line := 1 col := 1 var scan Scanner var cqueue, nqueue *queue.Queue = queue.New(len(program)), queue.New(len(program)) scan = func(tc int) (int, *Match, error, Scanner) { if done && tc == len(t...
[ -0.00865717139095068, -0.1506126970052719, 0.7655768394470215, -0.3133631944656372, -0.5039923787117004, -0.7691817283630371, 0.6483579277992249, 0.5609461665153503, -0.7544064521789551, 0.4409777820110321, 0.13381756842136383, -0.3753347098827362, -0.5775116682052612, 0.13818858563899994,...
func Test_Add_Read(t *testing.T) { var test_shorthand = make([]byte, 20) var test_fullpath = make([]byte, 20) prio := -1 rand.Read(test_shorthand) rand.Read(test_fullpath) short := make_printable(test_shorthand) full := make_printable(test_fullpath) e := Entry{ shorthand: short, full_path: full, pri...
[ 0.9258126020431519, 0.06203237920999527, 0.6731866598129272, -0.09394875168800354, 0.33926212787628174, 0.6355386972427368, 0.09317512065172195, -0.052002180367708206, 0.8119468688964844, -0.6369242668151855, 0.3298448920249939, 0.5812920331954956, 0.04969880357384682, -0.5180354118347168,...
func GetUsersHandler(w http.ResponseWriter, r *http.Request) { var users []User for _, v := range Listusers { users = append(users, v) } w.Header().Set("Content-Type", "application/json") j, err := json.Marshal(users) if err != nil { panic(err) } w.WriteHeader(http.StatusOK) w.Write(j) }
[ -1.106200933456421, -0.1467304229736328, 0.6258933544158936, 0.05623198673129082, -0.058277763426303864, 0.22958140075206757, -0.33138713240623474, -0.005054950714111328, -0.34454217553138733, 0.3202437162399292, -0.23479339480400085, 0.3045051693916321, -0.03686466068029404, 0.78898322582...
func PostUserHandler(w http.ResponseWriter, r *http.Request) { var user User err := json.NewDecoder(r.Body).Decode(&user) if err != nil { panic(err) } user.CreateAt = time.Now() id++ k := strconv.Itoa(id) Listusers[k] = user w.Header().Set("Content-Type", "application/json") j, err := json.Marshal(user) if...
[ -1.1939964294433594, -0.5742660760879517, 0.6121317148208618, 0.11204835027456284, -0.5494469404220581, 0.7732571363449097, 0.08441794663667679, -0.16380809247493744, -0.4596497118473053, -0.2568577527999878, -1.3825055360794067, -0.20969611406326294, -0.35588446259498596, 0.70616608858108...
func PutUserHandler(w http.ResponseWriter, r *http.Request) { params := mux.Vars(r) k := params["id"] var userupdate User err := json.NewDecoder(r.Body).Decode(&userupdate) if err != nil { panic(err) } if user, ok := Listusers[k]; ok { userupdate.CreateAt = user.CreateAt delete(Listusers, k) Listusers[k]...
[ -0.8993921279907227, -0.6639958620071411, 0.6658169031143188, 0.2747596800327301, -0.6250468492507935, 0.6585373878479004, -0.11911603063344955, -0.1299991011619568, 0.022848209366202354, 0.5833438038825989, -0.8202353119850159, -0.3305665850639343, -1.1462650299072266, 0.14376576244831085...
func DeleteUserHandler(w http.ResponseWriter, r *http.Request) { params := mux.Vars(r) k := params["id"] if _, ok := Listusers[k]; ok { delete(Listusers, k) } else { log.Printf("No encontramos el id %s", k) } w.WriteHeader(http.StatusNoContent) }
[ -0.4713795781135559, -0.3243945240974426, 0.4552595019340515, 1.1002823114395142, -0.7090712785720825, 0.36621931195259094, 0.4181589186191559, 0.1925351917743683, 0.1697433888912201, -0.07144566625356674, -0.05369046330451965, -0.3509220778942108, -0.8427199125289917, 0.6066009998321533, ...
func (v UnloadCheckResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson6a975c40EncodeJsonBenchmark(&w, v) return w.Buffer.BuildBytes(), w.Error }
[ -0.001939122099429369, -0.7557072639465332, 0.1996912807226181, -0.33167698979377747, 0.23408548533916473, -0.9083637595176697, 0.9356998801231384, 0.22368651628494263, 0.5486629009246826, -0.2618720233440399, -0.49912217259407043, -0.3831186890602112, -0.6670917868614197, 0.06318668276071...
func (v UnloadCheckResponse) MarshalEasyJSON(w *jwriter.Writer) { easyjson6a975c40EncodeJsonBenchmark(w, v) }
[ -0.24981528520584106, -0.5482391119003296, 0.27759242057800293, -0.6325929164886475, 0.3651266098022461, -1.1754674911499023, 0.9814974665641785, -0.889067530632019, 0.47605252265930176, -0.25704360008239746, -0.7603517770767212, -0.3559202551841736, -0.2976369261741638, 0.6829066276550293...
func (v *UnloadCheckResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson6a975c40DecodeJsonBenchmark(&r, v) return r.Error() }
[ -0.15460817515850067, -0.4738105833530426, 0.28585636615753174, -1.3494913578033447, -0.3277469575405121, -0.2943253815174103, 0.8837777972221375, -0.006636542268097401, 0.36688318848609924, -0.44566282629966736, -0.11456215381622314, -0.608864963054657, -1.0863323211669922, 0.032130368053...
func (v *UnloadCheckResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson6a975c40DecodeJsonBenchmark(l, v) }
[ -0.03645233437418938, -0.5025207996368408, 0.33971264958381653, -1.0975158214569092, 0.09418310970067978, -1.2498266696929932, 1.2584936618804932, -0.36704903841018677, 0.3609294593334198, -0.3921264708042145, -0.6210597157478333, -0.5839586853981018, -0.327278196811676, 0.3637100756168365...
func (v OrderCheckResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson6a975c40EncodeJsonBenchmark1(&w, v) return w.Buffer.BuildBytes(), w.Error }
[ 0.08094190061092377, -0.8001170754432678, 0.21376335620880127, 0.34405380487442017, 0.28989481925964355, -0.7964324951171875, 1.1235787868499756, -0.27026891708374023, 0.8836880326271057, 0.08072707802057266, -0.43034130334854126, 0.22828340530395508, -0.6756758093833923, 0.389977991580963...
func (v OrderCheckResponse) MarshalEasyJSON(w *jwriter.Writer) { easyjson6a975c40EncodeJsonBenchmark1(w, v) }
[ -0.11253887414932251, -0.6381998062133789, 0.26735562086105347, 0.13373802602291107, 0.2987038493156433, -1.115973711013794, 1.1074519157409668, -1.0614875555038452, 0.8157059550285339, -0.04805804416537285, -0.6540217399597168, 0.03382036089897156, -0.2529853284358978, 0.8187708854675293,...
func (v *OrderCheckResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson6a975c40DecodeJsonBenchmark1(&r, v) return r.Error() }
[ 0.03939995914697647, -0.4248862862586975, 0.272483229637146, -0.7981385588645935, -0.30536550283432007, -0.49606651067733765, 1.0406285524368286, -0.21011321246623993, 0.5756775736808777, -0.08175206929445267, 0.07791569828987122, -0.20193421840667725, -0.9127044677734375, 0.21446609497070...
func (v *OrderCheckResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson6a975c40DecodeJsonBenchmark1(l, v) }
[ 0.13921773433685303, -0.4834466576576233, 0.33694592118263245, -0.5199735760688782, 0.13690000772476196, -1.4352957010269165, 1.325308918952942, -0.4843553602695465, 0.5431400537490845, -0.04784997180104256, -0.6028121709823608, -0.3158447742462158, -0.28799527883529663, 0.502016007900238,...
func (v ItemCheckResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson6a975c40EncodeJsonBenchmark2(&w, v) return w.Buffer.BuildBytes(), w.Error }
[ 0.05816551670432091, -0.954052746295929, 0.05669482797384262, 0.2262672632932663, 0.6006052494049072, -0.9593439102172852, 0.8521145582199097, -0.16551879048347473, 1.0155229568481445, -0.059533294290304184, -0.561550498008728, 0.006564553361386061, -0.750652551651001, -0.23614679276943207...
func (v ItemCheckResponse) MarshalEasyJSON(w *jwriter.Writer) { easyjson6a975c40EncodeJsonBenchmark2(w, v) }
[ -0.14471982419490814, -0.8170039057731628, 0.17070423066616058, 0.048351090401411057, 0.6491269469261169, -1.1581473350524902, 0.9579105377197266, -0.9609584808349609, 0.772155225276947, -0.20475539565086365, -0.8618001341819763, -0.14643895626068115, -0.28660356998443604, 0.31948032975196...
func (v *ItemCheckResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson6a975c40DecodeJsonBenchmark2(&r, v) return r.Error() }
[ -0.06332176923751831, -0.5947771668434143, 0.14322541654109955, -0.8809306025505066, -0.04941124469041824, -0.6169536709785461, 0.8777809143066406, 0.027978332713246346, 0.5819605588912964, -0.18556347489356995, -0.1451994627714157, -0.2643755078315735, -0.9624244570732117, -0.570005834102...
func (v *ItemCheckResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson6a975c40DecodeJsonBenchmark2(l, v) }
[ 0.07565857470035553, -0.6667599081993103, 0.21983028948307037, -0.5699451565742493, 0.42931458353996277, -1.5042688846588135, 1.2717965841293335, -0.22284746170043945, 0.4723896384239197, -0.15349584817886353, -0.8209654092788696, -0.41549497842788696, -0.3270511329174042, -0.1118249818682...
func (v DocumentResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson6a975c40EncodeJsonBenchmark3(&w, v) return w.Buffer.BuildBytes(), w.Error }
[ -0.1383334845304489, -0.45797374844551086, 0.06954248249530792, 0.09192671626806259, -0.7325339317321777, -0.8589553833007812, 0.8566734790802002, -0.5930526852607727, 0.7431398034095764, -0.21555845439434052, -0.9985011219978333, -0.2552625834941864, -0.9033832550048828, -0.11371088773012...
func (v DocumentResponse) MarshalEasyJSON(w *jwriter.Writer) { easyjson6a975c40EncodeJsonBenchmark3(w, v) }
[ -0.19274261593818665, -0.24238300323486328, 0.147908553481102, -0.406265527009964, -0.4550977945327759, -1.055416226387024, 1.0714794397354126, -1.3337810039520264, 0.792055070400238, -0.17484287917613983, -1.18182373046875, -0.21328532695770264, -0.48633357882499695, 0.643362283706665, ...
func (v *DocumentResponse) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson6a975c40DecodeJsonBenchmark3(&r, v) return r.Error() }
[ -0.01985243894159794, -0.31438109278678894, 0.10893656313419342, -1.1546516418457031, -1.0013740062713623, -0.6868599057197571, 0.7017084956169128, -0.32527637481689453, 0.5814140439033508, -0.2827916145324707, -0.4438292682170868, -0.5633918642997742, -1.1345493793487549, -0.0681124627590...
func (v *DocumentResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson6a975c40DecodeJsonBenchmark3(l, v) }
[ 0.27259114384651184, -0.3306560516357422, 0.24711088836193085, -0.9680673480033875, -0.4952843487262726, -1.6011685132980347, 1.166260004043579, -0.5200994610786438, 0.6291777491569519, -0.07219371944665909, -1.0298048257827759, -0.581044614315033, -0.45468655228614807, 0.38449275493621826...
func (v BlitzedItemResponse) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson6a975c40EncodeJsonBenchmark4(&w, v) return w.Buffer.BuildBytes(), w.Error }
[ -0.01733955182135105, -0.7983301877975464, 0.1312776505947113, -0.16511522233486176, 0.6127817034721375, -0.9335452318191528, 1.205201268196106, 0.2092549204826355, 0.7279440760612488, -0.36432260274887085, -1.6096440553665161, -0.1272301971912384, -0.7110888361930847, 0.023195110261440277...
func (v BlitzedItemResponse) MarshalEasyJSON(w *jwriter.Writer) { easyjson6a975c40EncodeJsonBenchmark4(w, v) }
[ 0.03431671857833862, -0.7401176691055298, 0.2756531238555908, -0.3779871463775635, 0.6358663439750671, -1.2593669891357422, 1.3026057481765747, -0.6521586179733276, 0.6513262391090393, -0.5195870399475098, -1.6854894161224365, -0.23742440342903137, -0.25422203540802, 0.43520689010620117, ...