text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (h *HandlerSwitch) ServeHTTP(w http.ResponseWriter, r *http.Request) { host := r.Host local := matcher.MatchString(host) if local { h.Mux.ServeHTTP(w, r) } else { var serve bool for _, v := range h.AllowedHosts { if strings.Contains(host, v) { serve = true break } } if serve { h.Redi...
[ -0.31928205490112305, 0.8173877000808716, 0.739468514919281, 1.1017519235610962, -0.5085809230804443, 0.7385804653167725, -0.10102621465921402, 0.4662003815174103, -0.8322407603263855, 0.6953091621398926, 0.6934395432472229, -0.07976950705051422, -0.3360497057437897, 0.47307106852531433, ...
func (e *Event) String() string { s, _ := json.Marshal(e) return string(s) }
[ 0.3266937732696533, -1.213545799255371, 0.4344141185283661, -0.8069941997528076, -0.4193720817565918, 0.47246211767196655, 0.06352350860834122, -0.7388651967048645, 0.25193148851394653, 0.5178221464157104, -0.30217495560646057, 1.0108054876327515, 0.6679332852363586, -0.13886532187461853, ...
func (e *Event) GoString() string { return e.String() }
[ 0.08936091512441635, 0.1260889321565628, 0.5413667559623718, -0.35189616680145264, 0.35433053970336914, 0.7047851085662842, 0.30440405011177063, -0.15667743980884552, -0.5482591986656189, 0.8512300848960876, -0.33751848340034485, 0.15819010138511658, 0.000031772113288752735, 0.022654540836...
func (f *BigQueryTablesCreateFlags) Validate() error { if err := f.DataCoordinates.Validate(); err != nil { return err } if err := f.Authentication.Validate(); err != nil { return err } return nil }
[ 0.48374107480049133, 1.4362537860870361, 0.2465471476316452, 0.16904692351818085, 1.4156112670898438, 0.8644199967384338, 0.035114578902721405, -1.0081257820129395, -2.061160087585449, -0.6514357924461365, -0.3610234558582306, 0.27827373147010803, -0.5154873728752136, 1.1032469272613525, ...
func (f *BigQueryTablesCreateFlags) ToOptions(ctx context.Context) (*allJobsTableCreatorOptions, error) { bigQueryClient, err := f.Authentication.NewBigQueryClient(ctx, f.DataCoordinates.ProjectID) if err != nil { return nil, err } ciDataClient := jobrunaggregatorlib.NewRetryingCIDataClient( jobrunaggregatorlib...
[ -0.15660591423511505, 0.7659491896629333, 0.38694506883621216, -0.8285698890686035, 1.055772304534912, 0.45584800839424133, -0.07112475484609604, -0.8815072774887085, -0.982460081577301, -0.19529514014720917, -0.16425324976444244, 0.509162962436676, -0.46368899941444397, 0.0628534927964210...
func NewDiskManifestLoader[T kubernetesManifest](paths ...string) DiskManifestLoader[T] { var zero T return DiskManifestLoader[T]{ paths: paths, kind: zero.Kind(), } }
[ -0.45787960290908813, -1.0660086870193481, 0.2412298172712326, 1.3014074563980103, -0.8279057145118713, -0.7419863939285278, -1.0909411907196045, 0.5800058841705322, -0.286945641040802, -0.5714409947395325, -0.302126944065094, -0.20642173290252686, -0.0795021802186966, 0.9308328628540039, ...
func (m *DiskManifestLoader[T]) SetZeroValueFn(zvFn func() T) { m.zvFn = zvFn }
[ -0.467515230178833, -1.2078135013580322, 0.10499808192253113, 0.8796429634094238, 0.3831106722354889, -1.2086114883422852, 0.2547546923160553, 1.0557410717010498, -0.39828768372535706, -0.7917926907539368, -0.7297309041023254, 0.2996290922164917, 0.9801301956176758, 0.7000615000724792, -...
func (m DiskManifestLoader[T]) Load() ([]T, error) { manifests := []T{} for _, path := range m.paths { loaded, err := m.loadManifestsFromPath(path) if err != nil { return nil, err } if len(loaded) > 0 { manifests = append(manifests, loaded...) } } return manifests, nil }
[ -1.1661423444747925, -0.7443638443946838, 0.4463362395763397, 0.5503223538398743, -0.08787092566490173, -0.23853221535682678, -0.24786525964736938, 0.47476035356521606, -1.0530486106872559, -0.142107754945755, -0.09233216196298599, -1.0488805770874023, -0.4122271239757538, 1.14941930770874...
func (m DiskManifestLoader[T]) decodeYaml(b []byte) ([]T, []error) { list := make([]T, 0) errors := []error{} scanner := bufio.NewScanner(bytes.NewReader(b)) scanner.Split(splitYamlDoc) for { if !scanner.Scan() { err := scanner.Err() if err != nil { errors = append(errors, err) continue } b...
[ -0.586941123008728, -1.4133268594741821, 0.7681428790092468, 0.3954014480113983, -0.21758946776390076, -0.9118579030036926, 0.6608438491821289, 0.994043231010437, 0.03020530194044113, 0.13544203341007233, -0.6374275088310242, -0.01936938427388668, -0.4986189901828766, 0.5528132319450378, ...
func splitYamlDoc(data []byte, atEOF bool) (advance int, token []byte, err error) { if atEOF && len(data) == 0 { return 0, nil, nil } sep := len([]byte(yamlSeparator)) if i := bytes.Index(data, []byte(yamlSeparator)); i >= 0 { i += sep after := data[i:] if len(after) == 0 { if atEOF { return len(dat...
[ 0.19455276429653168, -0.3117562532424927, 0.8646623492240906, -0.7053273916244507, -0.6421365737915039, -1.2699644565582275, 0.22414158284664154, 0.6783530712127686, 0.0790036991238594, -0.19366860389709473, -0.8377989530563354, 0.23522503674030304, 0.12082619220018387, 0.6958497762680054,...
func NewIdentity(log *util.Logger) *Identity { return &Identity{ Helper: request.NewHelper(log), } }
[ -0.40984317660331726, -1.0619540214538574, 0.140920490026474, 0.9066863656044006, 0.4215514659881592, 0.1286642849445343, 0.09421775490045547, -0.8239812850952148, 0.7036165595054626, -0.5468793511390686, -0.5230046510696411, 0.013025462627410889, 0.01604665070772171, 0.26547929644584656, ...
func Archive() { start := time.Now() lastArchived := getLastArchivedDate() CreatePageviewTotals(lastArchived) CreateVisitorTotals(lastArchived) CreateScreenTotals(lastArchived) CreateLanguageTotals(lastArchived) CreateBrowserTotals(lastArchived) CreateReferrerTotals(lastArchived) datastore.SetOption("last_arc...
[ 0.6949350833892822, 0.5292814373970032, 0.5355141758918762, -0.9939193725585938, 0.13228541612625122, -0.06109169125556946, 0.8059603571891785, -0.11693626642227173, -0.30357998609542847, -0.3444303274154663, 0.5199217796325684, 0.9068204760551453, 1.0731401443481445, 1.084527850151062, ...
func (t *Total) Save(Conn *sql.DB, table string) error { stmt, err := datastore.DB.Prepare(`INSERT INTO ` + table + `( value, count, count_unique, date ) VALUES( ?, ?, ?, ? ) ON DUPLICATE KEY UPDATE count = ?, count_unique = ?`) if err != nil { return err } defer stmt.Close() result, err := st...
[ -0.75926673412323, 0.621585488319397, 0.7223275303840637, -0.6910602450370789, 0.1757831573486328, -0.3402084708213806, 0.33136171102523804, 0.06969000399112701, -0.8654101490974426, 0.9884480237960815, -1.770242691040039, -0.8928273916244507, -0.2734683156013489, -0.306395560503006, 0.0...
func (o *GetFnsFnIDCallsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGetFnsFnIDCallsOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, ni...
[ 0.006659106817096472, -0.2655404806137085, 0.7321376800537109, -0.27429020404815674, 0.37103018164634705, -1.706075668334961, -0.6501124501228333, -1.3005385398864746, 0.3331853449344635, -0.05254005640745163, 0.27820661664009094, -0.9876466989517212, -0.4344523549079895, -0.12715741991996...
func NewGetFnsFnIDCallsOK() *GetFnsFnIDCallsOK { return &GetFnsFnIDCallsOK{} }
[ 0.527087390422821, 1.1563470363616943, 0.12292029708623886, 0.5347257256507874, -0.43630895018577576, -1.8625072240829468, -1.3427459001541138, -1.2555840015411377, -0.21657195687294006, -1.0444769859313965, -0.6018028259277344, -0.30420559644699097, 0.9039698243141174, -0.3690009415149688...
func NewGetFnsFnIDCallsNotFound() *GetFnsFnIDCallsNotFound { return &GetFnsFnIDCallsNotFound{} }
[ 0.2303495854139328, -0.14134004712104797, -0.05343163013458252, -0.19780562818050385, 0.4238235652446747, -0.5391074419021606, -0.8294825553894043, -1.724931001663208, -0.26730915904045105, -1.0137971639633179, -0.6339899897575378, -0.41484612226486206, 0.1700097918510437, -0.2287667691707...
func (c *Consumer) onAgentRefresh(ctx context.Context, ack <-chan struct{}, message wire.Message) error { c.Log.Info("On AgentRefresh") if message.Type != wire.MessageTypeAgentRefresh { return errors.New("message.Type != MessageTypeAgentRefresh") } c.Log.Info(message.String()) <-ack return nil }
[ 0.6038857102394104, -0.8334083557128906, 0.29418909549713135, 0.14020776748657227, -0.3177614212036133, -0.6491941809654236, -0.44938671588897705, -1.1965577602386475, 0.3850363492965698, 0.6293509602546692, 0.3065165877342224, 1.171017050743103, 0.2299414724111557, 1.1636202335357666, 0...
func (p *PageInformationSegment) Init(h *Header, r reader.StreamReader) error { p.r = r p.parseHeader() return nil }
[ -0.10589435696601868, -0.9974132180213928, 0.29173195362091064, -0.8662042021751404, 0.25760722160339355, 0.5191176533699036, -0.6633753180503845, 0.2974218726158142, -1.1548396348953247, -0.3972955644130707, 0.2885637581348419, -0.08541139960289001, -0.6325849890708923, 0.1544899493455886...
func (p *PageInformationSegment) CombinationOperator() bitmap.CombinationOperator { return p.combinationOperator }
[ -0.24276402592658997, -0.47511839866638184, 0.2552897036075592, 0.18910223245620728, -0.24554729461669922, -0.5430682897567749, 0.4083906412124634, 0.05197621136903763, 0.8995786309242249, -0.5983572602272034, 0.5553222894668579, -1.2780578136444092, -0.5976460576057434, -0.169110238552093...
func (p *PageInformationSegment) CombinationOperatorOverrideAllowed() bool { return p.combinaitonOperatorOverrideAllowed }
[ -0.8853398561477661, -0.24462996423244476, 0.40841859579086304, 0.910099446773529, -0.08512185513973236, -0.07011360675096512, 0.6962268352508545, 0.43009939789772034, -0.14497816562652588, -0.5751690864562988, 0.12604890763759613, -0.8459852933883667, -0.37194833159446716, -0.621144950389...
func (p *PageInformationSegment) DefaultPixelValue() uint8 { return p.defaultPixelValue }
[ -0.07740337401628494, 0.10980480909347534, 0.1810186356306076, -0.12047143280506134, 0.5230163335800171, 1.1451683044433594, -0.41397711634635925, -0.24484196305274963, -0.21747569739818573, -0.48470890522003174, 0.5429943799972534, -0.5928459167480469, -0.7149069905281067, 0.7900230884552...
func (p *PageInformationSegment) String() string { sb := &strings.Builder{} sb.WriteString("\n[PAGE-INFORMATION-SEGMENT]\n") sb.WriteString(fmt.Sprintf("\t- BMHeight: %d\n", p.PageBMHeight)) sb.WriteString(fmt.Sprintf("\t- BMWidth: %d\n", p.PageBMWidth)) sb.WriteString(fmt.Sprintf("\t- ResolutionX: %d\n", p.Resol...
[ 0.1823560744524002, -0.9357896447181702, 0.457091748714447, -0.8636967539787292, -0.022673750296235085, 0.3121456205844879, 0.19469471275806427, -0.7150805592536926, -0.6329885721206665, -0.3350555896759033, 0.10380716621875763, 0.41120466589927673, -0.5796938538551331, -0.4135648608207702...
func (p *PageInformationSegment) readCombinationOperator() error { b, err := p.r.ReadBits(2) if err != nil { return err } p.combinationOperator = bitmap.CombinationOperator(int(b)) return nil }
[ -0.37218213081359863, 0.010799363255500793, 0.24173909425735474, 0.23678620159626007, -0.2779221832752228, -0.8710649609565735, 0.7403104901313782, -0.03583940491080284, -0.20938600599765778, -0.09604183584451675, 0.41466543078422546, -0.7955510020256042, -0.36593469977378845, -0.004628219...
func newCtx(dir string) (*sdcgContext, error) { var err error if dir == "" { dir, err = os.Getwd() if err != nil { return nil, fmt.Errorf("unable to get working directory: %w", err) } } modFile, err := findGoModFile(dir) if err != nil { return nil, err } mod, err := gomod.Parse("go.mod", modFile) if ...
[ -0.5390003323554993, -0.06490949541330338, 0.6060898303985596, -0.12202399969100952, -0.7160692811012268, -0.09729413688182831, 0.11072850227355957, 0.02823205292224884, 0.1777687519788742, 0.8965981602668762, 0.23262782394886017, 0.23831823468208313, -0.15822649002075195, 0.00501762377098...
func NewParser(r io.Reader, lang *Language) *Parser { return &Parser{s: NewScanner(r), lang: lang} }
[ 0.19585765898227692, -1.8271360397338867, 0.05167675390839577, -0.2800738215446472, -1.390159010887146, -0.08511960506439209, -1.4617855548858643, -0.39347150921821594, -0.005873925052583218, -0.9256787896156311, 0.17134353518486023, -0.44221416115760803, -0.18429480493068695, 0.1663342863...
func (p *Parser) Parse() (Statement, error) { tok, lit := p.scanIgnoreWhitespace() if _, ok := p.lang.trees[tok]; !ok { return nil, fmt.Errorf("found %q, expected %s", lit, tokensToString(p.lang.trees)) } tree := p.lang.trees[tok] params := Params{} for { tok, lit = p.scanIgnoreWhitespace() if tok == EOF { ...
[ 0.2552695870399475, -0.05908473953604698, 0.6569694876670837, -0.4952496290206909, -0.738891065120697, -0.950097382068634, -0.6826045513153076, -0.43703800439834595, -0.7822129726409912, 0.15623080730438232, 0.6862403154373169, -0.49868571758270264, -0.39911994338035583, 0.7955103516578674...
func (p *Parser) scan() (tok Token, lit string) { // If we have a token on the buffer, then return it. if p.buf.n != 0 { p.buf.n = 0 return p.buf.tok, p.buf.lit } // Otherwise read the next token from the scanner. tok, lit = p.s.Scan() // Save it to the buffer in case we unscan later. p.buf.tok, p.buf.lit ...
[ 0.10430499911308289, -0.7181909084320068, 0.5939464569091797, -0.2664923071861267, -0.8252299427986145, -0.6351362466812134, -0.3962043523788452, 0.3377237617969513, -0.3835811913013458, -1.4930102825164795, -0.04999595135450363, 0.23866617679595947, -0.28672316670417786, 0.029231365770101...
func (p *Parser) scanIgnoreWhitespace() (tok Token, lit string) { tok, lit = p.scan() if tok == WS { tok, lit = p.scan() } return }
[ -0.20999296009540558, -0.479526162147522, 0.5379810929298401, -0.903596043586731, -0.8929079174995422, -0.23939749598503113, -0.7170926332473755, -0.5964410305023193, 0.9921219944953918, 0.22691035270690918, -0.004184229299426079, -0.05445016175508499, -0.3460477292537689, 0.60984480381011...
func (p *Parser) unscan() { p.buf.n = 1 }
[ 0.03997119888663292, 0.13158416748046875, 0.19683794677257538, -0.8885951042175293, -0.38327756524086, -0.39810657501220703, 0.7862793803215027, 0.30194294452667236, -1.1208187341690063, -0.9840484261512756, -0.7866923809051514, 0.08231345564126968, -0.2387239933013916, 0.3054220676422119,...
func (accountBalance) TableName() string { return "account_balance" }
[ 1.0011106729507446, -0.666832685470581, 0.4592294692993164, 0.9834540486335754, 0.1009107232093811, 0.6515665650367737, 0.5995174050331116, -0.13339842855930328, 0.2365066111087799, -0.01966318115592003, 0.6122276782989502, 0.07439130544662476, 0.6305260062217712, 0.25035643577575684, 0....
func NewAccountRepository(dbClient *gorm.DB) *AccountRepository { return &AccountRepository{ dbClient: dbClient, } }
[ -0.02887428179383278, -0.07818669825792313, 0.09117366373538971, -0.3910589814186096, -0.29382482171058655, -0.33882367610931396, 0.23471884429454803, 0.6831606030464172, 0.6906546950340271, -0.0349055677652359, 0.8125318884849548, 0.0036443949211388826, 0.2356945127248764, 0.7384042739868...
func (ar *AccountRepository) RetrieveBalanceAtBlock(addressStr string, consensusEnd int64) (*types.Amount, *rTypes.Error) { acc, err := types.AccountFromString(addressStr) if err != nil { return nil, err } entityID, err1 := acc.ComputeEncodedID() if err1 != nil { return nil, errors.Errors[errors.InvalidAccount...
[ -0.19696225225925446, 0.1288859248161316, 0.9140141010284424, -0.6184428930282593, 0.12629900872707367, -0.6912991404533386, -0.13546806573867798, -0.5927509069442749, 0.3869376480579376, -0.1950683891773224, 0.5058550238609314, 0.3571895658969879, -0.4259895086288452, 0.5014200806617737, ...
func Boot(db *db.DB) *grpc.Server { h := &Handler{db: db} s := grpc.NewServer() RegisterLeaseControlServer(s, h) return s }
[ 0.3235926032066345, -0.061615943908691406, 0.48399412631988525, -0.7609175443649292, 0.319959431886673, 1.1892882585525513, -0.6836414933204651, -0.029662299901247025, 1.1169923543930054, -0.6547823548316956, -0.4912791848182678, 0.7415993213653564, -0.9257035851478577, 0.877641499042511, ...
func (h *Handler) SetLease(ctx context.Context, lease *Lease) (*empty.Empty, error) { mac, err := net.ParseMAC(lease.MACAddress) if err != nil { return nil, status.Errorf(codes.InvalidArgument, "mac address is invalid: %v", err) } ip := net.ParseIP(lease.IPAddress) if len(ip) == 0 { return nil, status.Errorf(...
[ -0.4888734817504883, 0.31010183691978455, 0.5893766283988953, -0.07735743373632431, 0.08985559642314911, -0.20025964081287384, -0.8125350475311279, 0.34493374824523926, -0.4642186164855957, -0.046463001519441605, -0.03395892679691315, -0.39267033338546753, -1.2279787063598633, 0.6109755039...
func (h *Handler) GetLease(ctx context.Context, mac *MACAddress) (*Lease, error) { m, err := net.ParseMAC(mac.Address) if err != nil { return nil, status.Errorf(codes.InvalidArgument, "mac address is invalid: %v", err) } lease, err := h.db.GetLease(m) if err != nil { return nil, status.Errorf(codes.Aborted, "...
[ 0.19421714544296265, 0.7569903135299683, 0.5488850474357605, 0.21484459936618805, 0.04661225900053978, -0.5445250868797302, -0.16666340827941895, -0.2128019779920578, 0.022843407467007637, 0.12061512470245361, 0.3123786449432373, 0.18920010328292847, -1.8369269371032715, 0.6487981677055359...
func (h *Handler) ListLeases(ctx context.Context, empty *empty.Empty) (*Leases, error) { list := []*Lease{} leases, err := h.db.ListLeases() if err != nil { return nil, status.Errorf(codes.Aborted, "could not list leases: %v", err) } for _, lease := range leases { list = append(list, toGRPC(lease)) } retu...
[ -0.09032131731510162, 0.02178186923265457, 0.3607979714870453, -0.30595508217811584, -0.1319991797208786, 0.2674618065357208, -0.9061484336853027, -0.24941366910934448, 0.4043259024620056, -0.25844207406044006, 0.600055456161499, 0.3286604583263397, -1.0969161987304688, 0.8395186066627502,...
func (h *Handler) RemoveLease(ctx context.Context, mac *MACAddress) (*empty.Empty, error) { m, err := net.ParseMAC(mac.Address) if err != nil { return nil, status.Errorf(codes.InvalidArgument, "mac address is invalid: %v", err) } if err := h.db.RemoveLease(m); err != nil { return nil, status.Errorf(codes.Abort...
[ 0.009768475778400898, 0.17546722292900085, 0.43566060066223145, -0.24245670437812805, -0.5917857885360718, -0.6569221615791321, -0.3850823640823364, 0.9418781399726868, 0.1309397965669632, 0.3443017899990082, -0.2272573858499527, -0.8302730321884155, -1.8704111576080322, 1.0584399700164795...
func NewConnectivityFormat(source string, quiet bool) Format { switch source { case TableFormatKey: if quiet { return connectivityTableQuietFormat } return connectivityTableFormat case RawFormatKey: if quiet { return connectivityRawQuietFormat } return connectivityRawFormat case SummaryFormatKey: ...
[ 0.36816343665122986, -1.0916839838027954, 0.19785642623901367, -0.6196650862693787, -0.8591605424880981, -0.7397160530090332, -0.6892126798629761, -0.7828881144523621, 0.408911794424057, -0.13246187567710876, 0.5170978903770447, 0.22619879245758057, -0.5720850229263306, 0.15577371418476105...
func ConnectivityWrite(ctx Context, results types.ConnectivityResults) error { render := func(format func(subContext subContext) error) error { switch ctx.Trunc { case true: if err := format(&connectivityContext{ok: results.IsOK()}); err != nil { return err } case false: for _, cr := range results {...
[ -0.5317338705062866, -0.5079203844070435, 0.5158675312995911, 0.2538570463657379, 1.150186538696289, 0.10799648612737656, 0.7129082679748535, -0.07794275134801865, 0.30274489521980286, 0.36044633388519287, 0.537275493144989, -1.298490047454834, -0.4759598970413208, -0.2160576581954956, -...
func CountSort(arr, sorted []int, k int) { c := make([]int, k) // This is not required, as Go int has already a zero // value of 0 - but it is explicitly mentioned in the // algorithm given in Introduction to Algorithms, MIT Press for i := 0; i < k; i++ { c[i] = 0 } for j := 0; j < len(arr); j++ { c[arr[j]]...
[ 1.083795189857483, -0.1352415531873703, 0.7549360990524292, 0.34274420142173767, -0.7068089842796326, 0.18239115178585052, 1.0756707191467285, 0.009959413670003414, -0.07663226127624512, 0.3038414716720581, -0.40770962834358215, -0.11001956462860107, -0.38569656014442444, 0.955658078193664...
func MakeLoadbalancerMemberTypeSlice() []*LoadbalancerMemberType { return []*LoadbalancerMemberType{} }
[ -0.10915177315473557, 0.17205564677715302, 0.4098173677921295, -0.2044251710176468, 0.7803431153297424, 0.6690300107002258, -0.47167983651161194, -1.2652515172958374, 0.019456621259450912, 0.19283239543437958, -0.5944259762763977, 0.5940573215484619, -1.712731957435608, 0.8155888319015503,...
func InterfaceToLoadbalancerMemberTypeSlice(i interface{}) []*LoadbalancerMemberType { list := schema.InterfaceToInterfaceList(i) if list == nil { return nil } result := []*LoadbalancerMemberType{} for _, item := range list { result = append(result, InterfaceToLoadbalancerMemberType(item)) } return result }
[ -1.0794470310211182, 0.41952499747276306, 0.4707488417625427, -0.015271523967385292, 1.0417345762252808, 0.19951455295085907, 0.09189647436141968, -1.359904170036316, 0.2500861585140228, 0.8568374514579773, -0.6701968312263489, 0.6140725612640381, -1.4777300357818604, 1.156820297241211, ...
func (s *Stack) ValidateExpense() Middleware { return func(f http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { expense, ok := r.Context().Value(ContextExpenseKey).(models.Expense) if !ok { s.logger.WithField("method", "middleware.ValidateExpense").Error(helpers.Erro...
[ -0.7719918489456177, -0.4735706150531769, 0.9820649027824402, 0.5858214497566223, -0.1457238346338272, -0.7580313086509705, 0.18681062757968903, -0.3388776481151581, 0.24549052119255066, 0.8973668813705444, 0.5656659603118896, -0.3869721591472626, -0.5326814651489258, 0.37313222885131836, ...
func AddContract( ctx context.Context, fc *client.Client, km keys.Manager, accountAddress string, contract flow_templates.Contract, transactionTimeout time.Duration) error { // Get admin account authorizer payer, err := km.AdminAuthorizer(ctx) if err != nil { return err } // Get user account authorizer ...
[ 0.9014301896095276, 0.0634082704782486, 1.153650164604187, 0.005502978805452585, -0.3978836238384247, -0.38816797733306885, -0.0778132751584053, -0.15035219490528107, 0.6939886808395386, 0.3884432315826416, 0.522079348564148, 0.20499691367149353, -0.48232296109199524, 0.593460202217102, ...
func Int(i *int) int { if i == nil { return 0 } return *i }
[ 0.3635062575340271, 0.39411449432373047, 0.11233615130186081, -0.07800380885601044, 0.14551889896392822, -0.47424229979515076, 0.7578365206718445, 0.11389821022748947, 0.30071014165878296, 0.009724071249365807, -0.07486868649721146, -0.12629899382591248, 0.13285812735557556, 0.542792320251...
func Int8(i *int8) int8 { if i == nil { return 0 } return *i }
[ -0.5739466547966003, -0.047712769359350204, -0.09693382680416107, 0.471292644739151, -0.03518625721335411, 0.038195520639419556, 0.49417567253112793, 0.2894402742385864, 1.5378952026367188, 0.10823262482881546, 0.39751848578453064, 0.10250121355056763, -1.0981638431549072, 0.62228196859359...
func Int16(i *int16) int16 { if i == nil { return 0 } return *i }
[ 0.3787067234516144, 0.12335291504859924, 0.08199671655893326, 0.2324782907962799, 0.4461553990840912, -0.5757676362991333, 0.1952580064535141, -0.2060461789369583, 0.8254516124725342, -0.24176156520843506, -0.019902238622307777, -0.2853463292121887, -0.3220383822917938, 0.2086411714553833,...
func Int32(i *int32) int32 { if i == nil { return 0 } return *i }
[ 0.057520534843206406, 0.3322497606277466, 0.203571617603302, -0.13805900514125824, -0.007905757054686546, 0.25628912448883057, -0.044100239872932434, -0.6594414114952087, 0.7361122369766235, -0.5763444304466248, 0.18104875087738037, -0.07674368470907211, -0.4653106927871704, 0.474063217639...
func Int64(i *int64) int64 { if i == nil { return 0 } return *i }
[ -0.6526280045509338, 0.36789700388908386, 0.2450500726699829, 0.8762888312339783, 0.3729762136936188, -0.8222206830978394, 0.523274302482605, 0.08253089338541031, 0.76246178150177, -0.4370408356189728, 0.5481767654418945, -0.6219168901443481, -0.6046898365020752, 0.5690836310386658, 0.41...
func Uint(u *uint) uint { if u == nil { return 0 } return *u }
[ -0.4350048303604126, 0.09531252831220627, 0.31629887223243713, 0.10064137727022171, -0.22469379007816315, -0.47499364614486694, 0.274066299200058, 0.4929119348526001, 1.0685679912567139, -1.3521347045898438, 0.153701514005661, 0.5951710343360901, 0.40533447265625, 0.5216455459594727, 0.5...
func Uint8(u *uint8) uint8 { if u == nil { return 0 } return *u }
[ -0.7386383414268494, -0.21684661507606506, 0.10904916375875473, 0.5820394158363342, -0.09423093497753143, -0.18112869560718536, 0.49241456389427185, 0.69507896900177, 1.6600877046585083, -0.49947595596313477, 0.2724629044532776, 0.4779624044895172, -0.13414178788661957, 0.6190999150276184,...
func Uint16(u *uint16) uint16 { if u == nil { return 0 } return *u }
[ 0.07917632907629013, 0.34238171577453613, 0.20750564336776733, 0.3530341684818268, 0.10693469643592834, -0.7779714465141296, 0.09056007117033005, 0.10137990862131119, 0.9732285737991333, -0.7900869846343994, 0.046432435512542725, -0.08016988635063171, 0.3731546700000763, 0.2889493405818939...
func Uint32(u *uint32) uint32 { if u == nil { return 0 } return *u }
[ -0.01785334385931492, 0.46910279989242554, 0.3456830084323883, 0.02971065603196621, -0.3854198753833771, -0.0018701872322708368, -0.19350400567054749, -0.10686339437961578, 0.7225822806358337, -0.988600492477417, 0.2282148152589798, 0.3440423011779785, 0.3522854149341583, 0.644511580467224...
func Uint64(u *uint64) uint64 { if u == nil { return 0 } return *u }
[ -0.6735415458679199, 0.4863758385181427, 0.3757394850254059, 1.2233262062072754, 0.15521863102912903, -1.0119580030441284, 0.36531928181648254, 0.6035078763961792, 0.8255025744438171, -0.9473194479942322, 0.5767871141433716, -0.3409227132797241, 0.14030897617340088, 0.8417002558708191, 0...
func Float32(f *float32) float32 { if f == nil { return 0 } return *f }
[ 0.71921306848526, 0.9487490057945251, 0.3166113495826721, 0.30402928590774536, 0.353279709815979, -0.4013853669166565, -0.11752727627754211, -0.17983677983283997, -0.09352398663759232, -0.724824845790863, 0.08060445636510849, 0.1666724979877472, 0.29174676537513733, 0.9587678909301758, 0...
func Float64(f *float64) float64 { if f == nil { return 0 } return *f }
[ -0.023100564256310463, 0.8210920691490173, 0.40281087160110474, 1.3174939155578613, 0.800750732421875, -1.3163459300994873, 0.3995690643787384, 0.4064544439315796, 0.1240006759762764, -0.5926644206047058, 0.4112880229949951, -0.5321704149246216, 0.13539154827594757, 0.9042451977729797, -...
func Bool(b *bool) bool { if b == nil { return false } return *b }
[ 0.09995637089014053, 0.5614607334136963, 0.2290881723165512, 1.1071401834487915, 0.1370244026184082, 0.2103966623544693, 0.36476898193359375, 0.9056366682052612, 0.7939300537109375, -0.3010585308074951, -0.5505906343460083, 0.06296339631080627, -0.5166914463043213, -0.5368392467498779, 0...
func String(s *string) string { if s == nil { return "" } return *s }
[ 0.3644970655441284, -0.2372414469718933, -0.19618724286556244, 0.022222938016057014, -0.41240382194519043, -0.7315686345100403, 1.1252223253250122, -0.8733360171318054, 1.3154056072235107, -0.34990209341049194, -0.2177942991256714, 0.326530396938324, 0.1516178548336029, -0.1103749945759773...
func Complex64(c *complex64) complex64 { if c == nil { return 0 } return *c }
[ -0.27782121300697327, 0.2543664872646332, 0.5117367506027222, 1.4168989658355713, 0.4943126440048218, -1.0711071491241455, 1.1776092052459717, 0.0015348372980952263, 1.028203010559082, -0.6882668733596802, -0.26718980073928833, -1.0330514907836914, -0.2995264232158661, 0.6304572820663452, ...
func Complex128(c *complex128) complex128 { if c == nil { return 0 } return *c }
[ 0.026688227429986, -0.1528242528438568, 0.23397192358970642, 0.5521883964538574, 0.18982665240764618, 0.23346790671348572, 0.6692585349082947, -0.11231730133295059, 1.0331486463546753, 0.2751041352748871, -0.7422904372215271, -0.004257273860275745, -0.48904645442962646, 0.5113364458084106,...
func Time(t *time.Time) time.Time { if t == nil { return time.Time{} } return *t }
[ -0.04924513399600983, -0.06636735051870346, 0.27319562435150146, 0.27846479415893555, 0.12801852822303772, -0.35949474573135376, -0.296989381313324, -0.60103839635849, 0.8782072067260742, 0.3443825840950012, -0.7195566296577454, -0.5788570642471313, 0.25253957509994507, 0.8253556489944458,...
func NewTopic(project, name string) Topic { return Topic(newResource(project, "topics", name)) }
[ 1.011337399482727, -0.03582488000392914, -0.1134597510099411, -0.039770741015672684, -0.6370723843574524, 0.6754923462867737, -0.7686076760292053, -0.9667831659317017, -0.8619732856750488, 0.28174087405204773, 0.4427180588245392, 0.39018702507019043, 0.5421408414840698, -0.8402008414268494...
func (t Topic) Validate() error { return validateResource(string(t), "topics") }
[ 0.6029899716377258, 0.08976618200540543, -0.06168322637677193, -0.301786333322525, 0.5336593985557556, 0.5613943934440613, -0.341591477394104, -0.6717274785041809, -0.3381471633911133, 0.015916690230369568, 1.4572343826293945, -1.0748863220214844, 0.2375427782535553, -0.28635430335998535, ...
func (t Topic) Split() (p, n string) { p, n, _ = t.SplitErr() return }
[ -0.8111269474029541, -0.15642456710338593, 0.21414214372634888, -0.24969150125980377, 0.15079830586910248, 0.3819657564163208, -0.29440826177597046, -0.00017768720863386989, -0.27383798360824585, 0.1769988238811493, -0.10354344546794891, 0.022792093455791473, -0.5443198084831238, -0.327709...
func (t Topic) SplitErr() (p, n string, err error) { p, n, err = resourceProjectName(string(t)) return }
[ -0.5768610835075378, -0.6650994420051575, 0.18294978141784668, -0.8968531489372253, -0.34131118655204773, 0.20110180974006653, -0.08275517076253891, 0.04774869233369827, 0.13681450486183167, 0.5866442322731018, 0.16853152215480804, -0.6198817491531372, -0.5102616548538208, 0.52170300483703...
func DisableTopicBundling(t *pubsub.Topic) { t.PublishSettings.DelayThreshold = 0 t.PublishSettings.NumGoroutines = 1 t.PublishSettings.CountThreshold = 1 }
[ 0.3219718039035797, 0.5157020688056946, 0.034912772476673126, 0.8023182153701782, -0.13470740616321564, 1.0217552185058594, 0.953732430934906, 0.6498106122016907, -1.0065772533416748, -0.4412212669849396, 0.003665959695354104, -1.1238222122192383, -0.8608114719390869, 0.5217941999435425, ...
func NewRegistry() *Registry { t := Registry{} t.Reset() return &t }
[ -0.46987754106521606, -0.1771308332681656, -0.20084746181964874, 0.6424658894538879, 0.2280796319246292, -0.7637082934379578, 0.4359232187271118, -0.5177471041679382, 0.1118483915925026, -0.6896032691001892, -0.14514081180095673, 1.3278260231018066, -0.5019246935844421, 0.0489407517015934,...
func (rg *Registry) Reset() { rg.roles = make(map[Role][]Right) }
[ -0.7937362194061279, 0.36795395612716675, 0.08237673342227936, -0.8317907452583313, 0.8204562664031982, 0.07372471690177917, 0.036998946219682693, -0.07990628480911255, -0.7958976626396179, 0.8408469557762146, -0.3147222697734833, 1.5788754224777222, -0.43400126695632935, 0.142239421606063...
func (rg *Registry) RegisterRole(role Role, rights ...Right) { rg.roles[role] = rights }
[ -0.6573163270950317, 1.1430760622024536, 0.11688292771577835, -0.028784966096282005, 1.531648874282837, 0.5355912446975708, -1.3636541366577148, -0.12348910421133041, -0.5715147852897644, 0.16644269227981567, -0.10422684997320175, 0.2925213575363159, -0.460071325302124, 0.8363279104232788,...
func (rg *Registry) NewUser(id uint, roles ...Role) *User { return &User{Registry: rg, ID: id, rights: rg.GetRights(roles...)} }
[ -0.4715491235256195, -0.27935853600502014, 0.2912563383579254, 0.3080989122390747, -0.15301844477653503, 0.3669043779373169, -0.3077238202095032, -0.482349693775177, 0.48458021879196167, -0.2574085295200348, -0.22444620728492737, 0.4892595410346985, 0.19249089062213898, -0.0749640688300132...
func (rg *Registry) GetRights(roles ...Role) []Right { result := make([]Right, 0) for _, roleID := range roles { rights, ok := rg.roles[roleID] if ok { result = append(result, rights...) } } return result }
[ -0.2681936025619507, 0.6585612893104553, 0.3783482611179352, 0.6899935007095337, 1.0216636657714844, -0.21878300607204437, -0.6981716156005859, -0.3878878653049469, -0.20658405125141144, 0.7187783718109131, 0.5103452205657959, 0.7310318946838379, -0.7182218432426453, 0.8399373888969421, ...
func (rg *Registry) CheckRequest(types ...Right) func(*http.Request) bool { return func(r *http.Request) bool { return UserFromContext(r.Context()).Check(types...) } }
[ -1.4741811752319336, 0.302145779132843, 0.486660897731781, 1.0335475206375122, 0.45413997769355774, 0.9397590160369873, -0.03862689808011055, -0.22463953495025635, -0.1100640520453453, 0.5030752420425415, 0.8797754049301147, 0.5818933844566345, -0.28777459263801575, 0.26064956188201904, ...
func (rg *Registry) GuardRequest(redirect string, types ...Right) func(http.Handler) http.Handler { return func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { ok := UserFromContext(r.Context()).Check(types...) if !ok { http.Redirect(w, r, redirect, ...
[ -0.9949238300323486, 0.28409543633461, 0.7562199234962463, 0.9409431219100952, 0.06792385131120682, 0.4551320970058441, 0.6243311762809753, -0.9106622934341431, 0.9570025205612183, 0.11262895911931992, 0.6264485716819763, 0.3645293414592743, -0.44815459847450256, 0.16989412903785706, 0.1...
func (r *RefsService) ListTags(owner, repoSlug string, opts ...interface{}) (*Refs, *Response, error) { result := new(Refs) urlStr := r.client.requestURL("/repositories/%s/%s/refs/tags", owner, repoSlug) urlStr, addOptErr := addQueryParams(urlStr, opts...) if addOptErr != nil { return nil, nil, addOptErr } res...
[ -0.6932764053344727, 0.16897901892662048, 0.5218812227249146, -0.20529800653457642, 0.7583598494529724, -1.2016912698745728, -0.9493027925491333, -1.1247750520706177, 0.1848565638065338, 0.09310019016265869, -0.2851342260837555, 1.1094058752059937, -0.8215122222900391, 0.43436020612716675,...
func (r *RefsService) CreateTag(owner, repoSlug string, ro *RefRequest) (*Ref, *Response, error) { result := new(Ref) urlStr := r.client.requestURL("/repositories/%s/%s/refs/tags", owner, repoSlug) response, err := r.client.execute("POST", urlStr, result, ro) return result, response, err }
[ -0.3915075361728668, -0.0029586353339254856, 0.37930789589881897, -0.01571534387767315, 1.2797104120254517, -0.021046649664640427, -0.4785471260547638, -0.7398511171340942, -0.40475863218307495, 0.6001518964767456, -0.08679275214672089, 0.3675706088542938, -0.6444767117500305, 0.7248083949...
func (r *RefsService) GetTag(owner, repoSlug, name string, opts ...interface{}) (*Ref, *Response, error) { result := new(Ref) urlStr := r.client.requestURL("/repositories/%s/%s/refs/tags/%s", owner, repoSlug, name) urlStr, addOptErr := addQueryParams(urlStr, opts...) if addOptErr != nil { return nil, nil, addOptE...
[ -0.2920840084552765, 0.3571777939796448, 0.4690341353416443, 0.1520157754421234, 1.2152456045150757, -0.638787567615509, -0.38939806818962097, -0.8169350624084473, -0.2515909671783447, 0.18205255270004272, 0.08740150928497314, 1.096496343612671, -0.7487978935241699, 0.3001737594604492, -...
func (r *RefsService) DeleteTag(owner, repoSlug, name string) (*Response, error) { urlStr := r.client.requestURL("/repositories/%s/%s/refs/tags/%s", owner, repoSlug, name) response, err := r.client.execute("DELETE", urlStr, nil, nil) return response, err }
[ -0.17612792551517487, -0.11864499747753143, 0.32095810770988464, -0.3171134889125824, 0.8215950727462769, -0.4016364514827728, -0.22585013508796692, -0.2999514937400818, -0.3109675645828247, 0.48424890637397766, -0.053312793374061584, 0.8038967251777649, -0.7859370708465576, 1.114302754402...
func NewClient(transportFactory TransportFactory, options ...ClientOption) *Client { client := &Client{ TransportFactory: transportFactory, Retrier: retry.NewRetrier(), } for _, option := range options { option(client) } return client }
[ 0.652822732925415, -0.026258766651153564, 0.1361803263425827, 0.30694520473480225, 0.1354442983865738, 0.33974772691726685, 0.2278313785791397, -0.46025002002716064, -0.0018911435035988688, -0.30977311730384827, -0.09934231638908386, 0.17972561717033386, -0.4252707362174988, -1.32838702201...
func RetrierOption(retrier *retry.Retrier) ClientOption { return func(client *Client) { client.Retrier = retrier } }
[ 1.23142409324646, -0.6231480240821838, 0.30308154225349426, 0.11608725786209106, -0.3158559501171112, 0.1294553130865097, 0.7237674593925476, -0.23911680281162262, 0.19226787984371185, 0.13302196562290192, -0.056488510221242905, -0.20786069333553314, -0.539048969745636, -0.4874495565891266...
func (_m *Handler) Close() error { ret := _m.Called() var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() } else { r0 = ret.Error(0) } return r0 }
[ -0.6029590368270874, -0.031516075134277344, 0.5262362957000732, 0.5131527781486511, -0.31073838472366333, 0.37937334179878235, 1.10713529586792, 0.3137809932231903, -0.5128026604652405, -0.5802531838417053, 0.36943942308425903, -0.11693863570690155, -0.38917121291160583, 0.7571727633476257...
func (_m *Handler) HandleNodeMessage(ctx context.Context, msg *api.Message, nodeAddr string) error { ret := _m.Called(ctx, msg, nodeAddr) var r0 error if rf, ok := ret.Get(0).(func(context.Context, *api.Message, string) error); ok { r0 = rf(ctx, msg, nodeAddr) } else { r0 = ret.Error(0) } return r0 }
[ -0.5858971476554871, 0.5551464557647705, 0.33902236819267273, -0.2945592701435089, 0.5178008079528809, -0.6110467910766602, 0.9620614051818848, 0.10710024833679199, 0.13903410732746124, -0.5146322846412659, 0.20868727564811707, -0.24338160455226898, -0.14337895810604095, 1.2321445941925049...
func (_m *Handler) HandleUserMessage(ctx context.Context, msg *api.Message, callbackCh chan<- handlers.UserCallbackPayload) error { ret := _m.Called(ctx, msg, callbackCh) var r0 error if rf, ok := ret.Get(0).(func(context.Context, *api.Message, chan<- handlers.UserCallbackPayload) error); ok { r0 = rf(ctx, msg, c...
[ -0.45256155729293823, 0.29168370366096497, 0.6635519862174988, 0.754409670829773, 0.09463652968406677, -0.2927969992160797, 1.1511263847351074, 0.03786623477935791, 0.35543304681777954, -0.9910850524902344, -0.4405997693538666, -0.6490955352783203, -0.19162660837173462, 0.8246000409126282,...
func (_m *Handler) Start(_a0 context.Context) error { ret := _m.Called(_a0) var r0 error if rf, ok := ret.Get(0).(func(context.Context) error); ok { r0 = rf(_a0) } else { r0 = ret.Error(0) } return r0 }
[ 0.3626321256160736, -0.6769758462905884, 0.1300143450498581, -0.3574015498161316, -0.22208918631076813, -0.47860845923423767, 1.1274596452713013, 0.9797950387001038, -0.06740348786115646, 0.4143315851688385, -0.03877289220690727, 0.8811864256858826, 0.6314883232116699, 0.2513419985771179, ...
func NewHandler(t mockConstructorTestingTNewHandler) *Handler { mock := &Handler{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }
[ -0.377087265253067, -0.8494042158126831, -0.09355674684047699, 0.49541598558425903, -0.017625100910663605, 1.388320803642273, 0.6424363255500793, 0.5615895986557007, 0.12218501418828964, -1.0644409656524658, 0.299944132566452, -0.5056540369987488, -0.09596796333789825, 0.29757159948349, ...
func SelectProduct(dbtx DBTX, productToFind models.Product) (product models.Product, err error) { if dbtx == nil { err = errs.ErrClosedDatabase return } identifier := productToFind.GetIdentifier() if identifier == nil { err = fmt.Errorf("failed to select product: %w (product)", errs.ErrNotProvidedOrInvalidOb...
[ -0.746789813041687, -0.13377392292022705, 0.5136359930038452, 0.1463129073381424, 0.3274267911911011, 0.2510177195072174, 0.11731763184070587, -1.3466492891311646, 1.0423046350479126, -0.30383461713790894, 0.6415774822235107, 0.20802155137062073, -0.14046528935432434, -0.3218635618686676, ...
func (a AccessPolicy) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { type alias AccessPolicy aux := &struct { *alias Expiry *timeRFC3339 `xml:"Expiry"` Start *timeRFC3339 `xml:"Start"` }{ alias: (*alias)(&a), Expiry: (*timeRFC3339)(a.Expiry), Start: (*timeRFC3339)(a.Start), } return en...
[ 1.2296781539916992, -0.15087570250034332, 0.10981231927871704, -0.3327986001968384, -0.6152428388595581, 0.8122068643569946, -0.47808998823165894, 1.2123969793319702, 0.9293382167816162, 0.5099059343338013, 0.7870050072669983, 0.7204017639160156, 0.28349563479423523, -0.17903253436088562, ...
func (a *AccessPolicy) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error { type alias AccessPolicy aux := &struct { *alias Expiry *timeRFC3339 `xml:"Expiry"` Start *timeRFC3339 `xml:"Start"` }{ alias: (*alias)(a), } if err := dec.DecodeElement(aux, &start); err != nil { return err } a.Expir...
[ 0.8869394659996033, 0.12590546905994415, 0.4602780044078827, -1.4053499698638916, -0.6971690654754639, 0.49774807691574097, -0.41598817706108093, 0.9988809823989868, 0.04810251668095589, 0.7380422949790955, 0.6380530595779419, 0.6695210933685303, 0.3023083508014679, -0.14016802608966827, ...
func (a ArrowConfiguration) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { type alias ArrowConfiguration aux := &struct { *alias Schema *[]*ArrowField `xml:"Schema>Field"` }{ alias: (*alias)(&a), } if a.Schema != nil { aux.Schema = &a.Schema } return enc.EncodeElement(aux, start) }
[ 0.14111989736557007, 0.2534918487071991, 0.09985032677650452, 0.2575460374355316, -0.5435938835144043, 0.3523603677749634, 0.21086294949054718, 1.1856757402420044, 1.033314824104309, -0.05332237109541893, -0.46108490228652954, 0.5855852365493774, 0.574100911617279, 0.09295106679201126, 0...
func (b BlobFlatListSegment) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { type alias BlobFlatListSegment aux := &struct { *alias BlobItems *[]*BlobItem `xml:"Blob"` }{ alias: (*alias)(&b), } if b.BlobItems != nil { aux.BlobItems = &b.BlobItems } return enc.EncodeElement(aux, start) }
[ 0.7667490839958191, 0.004562485497444868, 0.19342529773712158, 0.5451310276985168, -0.07302406430244446, 1.0070550441741943, -0.19108057022094727, 0.733038067817688, -0.16127769649028778, 0.13717450201511383, -0.3788675367832184, -0.1980532556772232, -0.06589198112487793, 0.530447959899902...
func (b BlobHierarchyListSegment) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { type alias BlobHierarchyListSegment aux := &struct { *alias BlobItems *[]*BlobItem `xml:"Blob"` BlobPrefixes *[]*BlobPrefix `xml:"BlobPrefix"` }{ alias: (*alias)(&b), } if b.BlobItems != nil { aux.BlobItem...
[ 0.5054087042808533, -0.31574082374572754, 0.39155614376068115, 0.5465549826622009, 0.10358833521604538, 0.1994551420211792, -0.33297479152679443, 0.5646088123321533, 0.14594674110412598, 0.24121259152889252, -0.5740804076194763, 0.3241826891899109, -0.0035904922988265753, 0.507488667964935...
func (b *BlobItem) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error { type alias BlobItem aux := &struct { *alias Metadata additionalProperties `xml:"Metadata"` OrMetadata additionalProperties `xml:"OrMetadata"` }{ alias: (*alias)(b), } if err := dec.DecodeElement(aux, &start); err != nil { ...
[ 0.2789204716682434, 0.30856460332870483, 0.5786687731742859, -0.33474287390708923, -0.42064762115478516, 0.39699169993400574, -0.34721827507019043, 0.9520490765571594, -0.7933197617530823, 0.33206096291542053, 0.08711616694927216, 0.28661811351776123, 0.36551234126091003, -0.30975136160850...
func (b BlobProperties) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { type alias BlobProperties aux := &struct { *alias AccessTierChangeTime *timeRFC1123 `xml:"AccessTierChangeTime"` ContentMD5 *string `xml:"Content-MD5"` CopyCompletionTime *timeRFC1123 `xm...
[ 0.8319352865219116, -0.8521013259887695, 0.5803143978118896, 0.006356375757604837, -0.5644140839576721, -0.05275451019406319, 0.08377086371183395, 0.41733109951019287, -0.0553651861846447, 0.3069732189178467, 0.1951381117105484, 0.489165335893631, -0.5263811945915222, 0.06504648923873901, ...
func (b *BlobProperties) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error { type alias BlobProperties aux := &struct { *alias AccessTierChangeTime *timeRFC1123 `xml:"AccessTierChangeTime"` ContentMD5 *string `xml:"Content-MD5"` CopyCompletionTime *timeRFC1123 ...
[ 0.3757568895816803, -0.5607045292854309, 0.7323818206787109, -0.9076434373855591, -0.7608749270439148, -0.35236862301826477, -0.21222035586833954, 0.4521038830280304, -0.3157275915145874, 0.5364342331886292, -0.092897430062294, 0.299754798412323, -0.2157570719718933, -0.14949803054332733, ...
func (b BlobTags) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { start.Name.Local = "Tags" type alias BlobTags aux := &struct { *alias BlobTagSet *[]*BlobTag `xml:"TagSet>Tag"` }{ alias: (*alias)(&b), } if b.BlobTagSet != nil { aux.BlobTagSet = &b.BlobTagSet } return enc.EncodeElement(aux,...
[ 1.2301687002182007, 0.004778200760483742, 0.27090683579444885, 0.11181965470314026, -0.010366067290306091, 0.041707009077072144, -0.7969332337379456, 0.21897737681865692, -0.3749977946281433, 0.3212558925151825, -0.40143635869026184, 0.34685131907463074, -0.06988365203142166, 0.74098962545...
func (b BlockList) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { type alias BlockList aux := &struct { *alias CommittedBlocks *[]*Block `xml:"CommittedBlocks>Block"` UncommittedBlocks *[]*Block `xml:"UncommittedBlocks>Block"` }{ alias: (*alias)(&b), } if b.CommittedBlocks != nil { aux.Co...
[ 0.622769296169281, 0.08216120302677155, 0.3157773017883301, 0.750347912311554, -0.6028396487236023, -0.07499197870492935, -0.3088443875312805, 0.7441906332969666, 0.01443694531917572, 0.9717047214508057, -0.2671922445297241, 0.1567765772342682, -0.24995362758636475, 1.0414440631866455, -...
func (b BlockLookupList) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { start.Name.Local = "BlockList" type alias BlockLookupList aux := &struct { *alias Committed *[]*string `xml:"Committed"` Latest *[]*string `xml:"Latest"` Uncommitted *[]*string `xml:"Uncommitted"` }{ alias: (*alia...
[ -0.05118654668331146, 0.20467236638069153, 0.3403213918209076, 0.5084783434867859, -0.7023049592971802, -0.004845511633902788, -0.6531966924667358, 0.7837048768997192, 0.07800186425447464, 0.7585806250572205, -0.16932427883148193, -0.20050515234470367, -0.1160142570734024, 0.23355093598365...
func (c *ContainerItem) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error { type alias ContainerItem aux := &struct { *alias Metadata additionalProperties `xml:"Metadata"` }{ alias: (*alias)(c), } if err := dec.DecodeElement(aux, &start); err != nil { return err } c.Metadata = (map[string]*str...
[ 0.09500256180763245, 0.7082409262657166, 0.439623087644577, -0.3359673023223877, -0.2142288237810135, 0.11224180459976196, -0.2706592082977295, 0.9147982001304626, -0.4739271402359009, -0.0022757432889193296, 0.11770361661911011, 0.14454759657382965, 0.596138596534729, -0.04501824826002121...
func (c ContainerProperties) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { type alias ContainerProperties aux := &struct { *alias DeletedTime *timeRFC1123 `xml:"DeletedTime"` LastModified *timeRFC1123 `xml:"Last-Modified"` }{ alias: (*alias)(&c), DeletedTime: (*timeRFC1123)(c.Delete...
[ 0.7118560671806335, -0.29580631852149963, 0.2479306310415268, -0.12728692591190338, -0.3207159638404846, -0.14497369527816772, -0.31537508964538574, 0.8885109424591064, 0.3296763300895691, -0.38623055815696716, 0.6961458921432495, 0.27241626381874084, 0.5834193825721741, 0.3887335360050201...
func (c *ContainerProperties) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error { type alias ContainerProperties aux := &struct { *alias DeletedTime *timeRFC1123 `xml:"DeletedTime"` LastModified *timeRFC1123 `xml:"Last-Modified"` }{ alias: (*alias)(c), } if err := dec.DecodeElement(aux, &start)...
[ 0.2857610881328583, 0.2576085329055786, 0.46904775500297546, -1.137093424797058, -0.5240933299064636, -0.4965013861656189, -0.2115732580423355, 0.8392447829246521, -0.19808146357536316, -0.10767630487680435, 0.5196169018745422, 0.13646045327186584, 0.4268178641796112, 0.019811272621154785,...
func (f FilterBlobSegment) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { type alias FilterBlobSegment aux := &struct { *alias Blobs *[]*FilterBlobItem `xml:"Blobs>Blob"` }{ alias: (*alias)(&f), } if f.Blobs != nil { aux.Blobs = &f.Blobs } return enc.EncodeElement(aux, start) }
[ 0.9166050553321838, -0.32356908917427063, 0.16853830218315125, 0.47641876339912415, -0.7401477098464966, 0.39457565546035767, 0.08370164781808853, 0.3810107111930847, 0.270819753408432, 0.44672372937202454, 0.07855498790740967, 0.35316717624664307, 0.03621309623122215, 0.03099961020052433,...